# Build failure due to "LaTeX Font Warning: Font shape \`T1/zi4/m/it' undefined" fixed with

**URL:** https://travis-ci.community/t/build-failure-due-to-latex-font-warning-font-shape-t1-zi4-m-it-undefined-fixed-with/3238
**Category:** R
**Tags:** build-env
**Created:** [April 30, 2019, 2:25pm UTC](https://travis-ci.community/t/build-failure-due-to-latex-font-warning-font-shape-t1-zi4-m-it-undefined-fixed-with/3238 "2019-04-30T14:25:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![katrinleinweber](https://avatars.discourse-cdn.com/v4/letter/k/e8c25b/32.png) [@katrinleinweber](https://travis-ci.community/u/katrinleinweber)
#### Post date: [April 30, 2019, 2:25pm UTC](https://travis-ci.community/t/build-failure-due-to-latex-font-warning-font-shape-t1-zi4-m-it-undefined-fixed-with/3238/1 "2019-04-30T14:25:22Z")

</div>

I’m using Travis in building an [R package](https://github.com/TIBHannover/BacDiveR/).

Not sure why exactly, but it started to run longer than usual and abort in the `R CMD check log logs` step [with a bunch of TeX-related messages](https://travis-ci.org/TIBHannover/BacDiveR/builds/497477508#L3637-L3638), like the above or “Warning: Option `some\_TeX\_pkg’ has already been used”.

[Removing `sudo: false` from the `.travis.yml` and adding `- sudo apt-get install texinfo` below `before_install:` solved the issue](https://github.com/TIBHannover/BacDiveR/commit/72c7370f34e92bac9980490e9e7edac3efb6b18d).

[According to the Travis+R docu](https://docs.travis-ci.com/user/languages/r#apt-packages) the following might have worked as well:

```auto
apt_packages:
  - texinfo

```

or

```auto
before_install:
  - tlmgr install

```

Is there any specific benefit of either installing a TeX Live package through `apt`, or through `tlmgr`?

---

<div class="post-metadata">

### Author: ![rtobar](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/rtobar/32/1452_2.png) [@rtobar](https://travis-ci.community/u/rtobar)
#### Post date: [May 1, 2019, 5:52am UTC](https://travis-ci.community/t/build-failure-due-to-latex-font-warning-font-shape-t1-zi4-m-it-undefined-fixed-with/3238/2 "2019-05-01T05:52:22Z")

</div>

I have a different but similar error. In my case it’s the OSX machines that fail:

[https://travis-ci.org/ICRAR/ProFit/jobs/526741895#L965-L969](https://travis-ci.org/ICRAR/ProFit/jobs/526741895#L965-L969)

However, this seems to be a problem with the TexLive repo used by tlmgr not supporting the local TexLive installation, causing packages to be missed in the installation:

[https://travis-ci.org/ICRAR/ProFit/jobs/526741895#L104-L117](https://travis-ci.org/ICRAR/ProFit/jobs/526741895#L104-L117)
