A convenient way to run LaTeX on various platform using Docker (latexmk, pdflatex...).
Assuming that you have a file foo.tex
in your current working directory that you want to convert into a PDF foo.pdf
:
docker run --rm -t --user="$(id -u):$(id -g)" --net=none -v "$(pwd):/tmp" thomasleplus/latex latexmk -outdir=/tmp -pdf /tmp/foo.tex
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
To know more command line options of latexmk
:
docker run --rm --net=none thomasleplus/latex latexmk -h
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.