Sign inSign up

markgrimes/latex

By markgrimes

Updated over 8 years ago

Small(ish) image for compiling Latex documents

Image
0

315

markgrimes/latex repository overview

Latex docker image

This is an image as small as I could make for creating latex documents. Depending on your project there's a good chance it will be missing something you need, in which case use tlmgr install <package> to install your requirements.

It uses the texlive installer directly because I couldn't find an OS package that was a respectable size - even basic installations came out at 600Mb or so (full was 1.5Gb).

Running

The workdir is set as /project, so if you share your project directory to there you can run with e.g.:

docker run --rm -v $PWD:/project markgrimes/latex pdflatex mydocument.tex

If you need to install packages then the default command is a shell, so you can e.g.

docker run --name mylatexshell -it -v $PWD:/project markgrimes/latex

Then inside the container:

tlmgr install package1 package2 package3
pdflatex mydocument.tex

Tag summary

Content type

Image

Digest

Size

113.5 MB

Last updated

over 8 years ago

docker pull markgrimes/latex