I want to use travis-ci on my project on github, a MWE of which is available here.
I am using the following .travis.yml
file, following the steps given in this Minimal CI LaTeX builder site.
before_install:
- sudo apt-get update -qq
- sudo apt-get install texlive-latex-base
script:
- mkdir build
- pdflatex -output-directory build Example.tex
deploy:
provider: releases
api_key:
secure: <mykey>
file: Example.pdf
skip_cleanup: true
on:
repo: HughParsonage/travis-latex-ci
However, when I push a commit, I get the error scrreprt.cls not found
.
I tried changing the installation to sudo apt-get install texlive-latex-extra
, but I then get the error adjustbox.sty not found
.
I understand these errors – the TeX Live distribution I requested travis use does not have the packages/class files I need, but not how to resolve them through a .travis.yml
file. I understand I could put the respective .cls/.sty
files in the same directory until I get no build errors. However, is there a way to get all these packages on the travis machine?
scrreport
is most likely not included in tex-live-base. I would recommend to do a standard installation ofTeX Live
that contains everything.sudo apt-get install texlive-latex-extra
achieved that, but I still get additional packages. What should I put aftersudo apt-get install
?adjustbox.sty
. What I generally recommend is not tu use the distribution LaTeX but rather to get TeX Live from tug.org.