I'm trying to set up a GitLab CI to compile my LaTeX file, but I would like to avoid having to download full TeXlive over and over again.
Afaik MiKTeX more or less will only download what is needed for the TeX file.
I already have a proper setup with the docker image blang/latex, but I can't seem to get miktex/miktex to compile.
It always fails with:
2018-06-21 09:40:38,858Z INFO pdflatex - mpm: extracting files from geometry-de.tar.lzma...
2018-06-21 09:40:39,257Z FATAL pdflatex - The installed file does not exist.
2018-06-21 09:40:39,257Z FATAL pdflatex - Info: fileName="/miktex/.miktex/texmfs/install/tex/latex/geometry-de/geometry.sty"
2018-06-21 09:40:39,257Z FATAL pdflatex - Source: Libraries/MiKTeX/Core/Session/findfile.cpp
2018-06-21 09:40:39,257Z FATAL pdflatex - Line: 55
2018-06-21 09:40:39,258Z INFO pdflatex - finishing with exit code 1
gitlab-ci.yml:
image: miktex/miktex
before_script:
- apt-get update -qq && apt-get install -y -qq inkscape python-pygments
build:
script:
- ./convert_svg.sh
- pdflatex -shell-escape abgabe.tex
artifacts:
paths:
- "*.pdf"
This is my project: https://gitlab.com/ZerataX/DS_TEMPLATE/
if there is some other tex distribution that is smaller, but also installs my dependencies automatically that would also be a great solution to my problem.
Best Answer
geometry-de
doesn't containgeometry.sty
(see https://github.com/MiKTeX/miktex-packaging/issues/29).I would recommend that you update the package database:
mpm --update-db