A tiny docker image with a working tectonic latex engine with a primed cache.
docker pull rekka/tectonic
A fully working latex engine. Packages that are not in the cache will be downloaded on demand.
Create a .gitlab-ci.yml
with the following content for very fast
pdf builds.
pdf:
image: rekka/tectonic
script:
- tectonic my-document.tex
artifacts:
paths:
- my-document.pdf
Create a .travis.yml
file with, assuming the main tex file to be src/main.tex
,
sudo: required
services:
- docker
script:
# We use the docker image from https://hub.docker.com/r/rekka/tectonic/
- docker pull rekka/tectonic
- docker run --mount src=$TRAVIS_BUILD_DIR/src,target=/usr/src/tex,type=bind rekka/tectonic tectonic main.tex
After building tectonic, it is run on the tex files in this repo to download all the common files from the tectonic bundle.
prime-cache.tex
is generated from local tectonic's manifest using
./create-prime-cache.sh manifest-file.txt
The manifest file is a file with a long hex string name located in
- Mac:
$HOME/Library/Caches/Tectonic/manifests/
- *nix:
$HOME/.cache/Tectonic/manifests/