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:
Mac/Linux
docker run --rm -t --user="$(id -u):$(id -g)" --net=none -v "$(pwd):/tmp" leplusorg/latex latexmk -outdir=/tmp -pdf /tmp/foo.texWindows
In cmd:
docker run --rm -t --net=none -v "%cd%:/tmp" leplusorg/latex latexmk -outdir=/tmp -pdf /tmp/foo.texIn PowerShell:
docker run --rm -t --net=none -v "${PWD}:/tmp" leplusorg/latex latexmk -outdir=/tmp -pdf /tmp/foo.texTo know more command-line options of latexmk:
docker run --rm --net=none leplusorg/latex latexmk -hPlease 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.
