/docker-latex

A convenient way to run LaTeX on various platform using Docker (latexmk, pdflatex...).

Primary LanguageDockerfileCreative Commons Zero v1.0 UniversalCC0-1.0

LaTeX Logo

A convenient way to run LaTeX on various platform using Docker (latexmk, pdflatex...).

Docker Build Docker Stars Docker Pulls Docker Automated Docker Build Docker Version

Example

Assuming that you have a file foo.tex in your current working directory that you want to convert into a PDF foo.pdf:

Mac/Linux

docker run --rm -t --user="$(id -u):$(id -g)" --net=none -v "$(pwd):/tmp" thomasleplus/latex latexmk -outdir=/tmp -pdf /tmp/foo.tex

Windows

In cmd:

docker run --rm -t --net=none -v "%cd%:/tmp" thomasleplus/latex latexmk -outdir=/tmp -pdf /tmp/foo.tex

In PowerShell:

docker run --rm -t --net=none -v "${PWD}:/tmp" thomasleplus/latex latexmk -outdir=/tmp -pdf /tmp/foo.tex

Help

To know more command line options of latexmk:

docker run --rm --net=none thomasleplus/latex latexmk -h

Request new tool

Please use this link (GitHub account required) to request that a new tool be added to the image. I am always interested in adding new capabilities to these images.