Sign inSign up

keopx/latex

By keopx

Updated about 5 years ago

Latex image to compile files

Image
0

312

keopx/latex repository overview

Latex docker container Docker hub

Quick Setup

Compile latex sources using docker:

Change to your project

cd my_latex_project

Download the command wrapper and make it executable

wget https://raw.githubusercontent.com/keopx/docker-latex/master/latexdockercmd.sh
chmod +x latexdockercmd.sh

Optional: Change the version (see above, default blang/latex:ubuntu)

edit ./latexdockercmd.sh

Compile using pdflatex (docker will pull the image automatically)

./latexdockercmd.sh pdflatex main.tex
Common errors
LaTeX Warning: Reference `LastPage' on page 1 undefined on input line 111.

Solution: Run command again

Or use latexmk (best option)

./latexdockercmd.sh latexmk -cd -f -interaction=batchmode -pdf main.tex

Cleanup:

./dockercmd.sh latexmk -c or -C

Or make multiple passes (does not start container twice)

../latexdockercmd.sh /bin/sh -c "pdflatex main.tex && pdflatex main.tex"

Tag summary

Content type

Image

Digest

Size

2.9 GB

Last updated

about 5 years ago

docker pull keopx/latex