A lightweight image for compiling Latex documents.
4.1K
This is a lightweight Docker image for compiling LaTeX documents. It is based on the latest Alpine image. It includes an official TexLive installation.
The image includes the following collections and packages:
Additional packages can be installed with tlmgr
$ tlmgr update --all
$ tlmgr install <package-name>
This images comes with texliveonfly, a Python script that will automatically
download LaTeX packages required to compile a document. It is a wrapper around
the LaTeX compilers.
To compile a document, simply run
$ texliveonfly filename.tex
It even supports latexmk.
$ texliveonfly --compiler=latexmk --arguments='-shell-escape -interaction=nonstopmode -pdf' filename.tex
You can use texliveonfly to retrieve the list of tlmgr packages needed by a document.
$ texliveonfly filename.tex 2>&1 | awk '/^texliveonfly.*install LaTex package/ {print $NF}'
The images come in two variants:
latestminimalThe latest tag includes the LaTeX collections listed above. The minimal
tag includes all the same collections, except for collection-mathscience.
The image is available on DockerHub.
Content type
Image
Digest
sha256:306c69c04…
Size
351.9 MB
Last updated
5 days ago
docker pull dhna/latex_slim