Sign inSign up

dhna/latex_slim

By dhna

•Updated 5 days ago

A lightweight image for compiling Latex documents.

Image
0

4.1K

dhna/latex_slim repository overview

⁠Minimal LaTeX images

CI

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:

  • collection-latexrecommended
  • collection-mathscience
  • collection-xetex
  • latexmk
  • texliveonfly

Additional packages can be installed with tlmgr

 $ tlmgr update --all
 $ tlmgr install <package-name>
⁠Automatic LaTeX Package Installation

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}'

⁠Tags

The images come in two variants:

  • latest
  • minimal

The latest tag includes the LaTeX collections listed above. The minimal tag includes all the same collections, except for collection-mathscience.

⁠DockerHub

The image is available on DockerHub⁠.

Tag summary

Content type

Image

Digest

sha256:306c69c04…

Size

351.9 MB

Last updated

5 days ago

docker pull dhna/latex_slim