Latex in Docker, useful for CI services
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Dockerfile.base
Dockerfile.full
Dockerfile.heavy
Dockerfile.science
Dockerfile.tikz
Makefile
README.md
dockercmd.sh
entry.sh

README.md

latex-docker

Inspired by blang/latex-docker

There are 5 tags available at cwpearson/latex:

All python packages are duplicated in python3 as well.

tag ubuntu packages
cwpearson/latex:base gcc, graphviz, inkscape, make, python, python-dev, python-tk, python-pip texlive-base
cwpearson/latex:science base + texlive-science
cwpearson/latex:tikz science + texlive-latex-extra, texlive-pictures, pgf
cwpearson/latex:heavy base + texlive-full without languages, documentation
cwpearson/latex:full heavy + texlive-full
tag pip packages
cwpearson/latex:base pandas, seaborn, setuptools
cwpearson/latex:science base
cwpearson/latex:tikz base
cwpearson/latex:heavy base
cwpearson/latex:full base

cwpearson/latex:latest points to cwpearson/latex:full

To run this in bash, try something like:

docker run --rm -i --user="$(id -u):$(id -g)" --net=none -v "$PWD":/data cwpearson/latex:heavy "$@"

To run in a makefile, try something like:

USR := $(shell id -u)
GRP := $(shell id -g)
PWD := $(shell pwd)
DOCKER = docker run --rm -i --user="${USR}:${GRP}" --net=none -v "${PWD}":/data cwpearson/latex:tikz
all:
    ${DOCKER} pdflatex <latex file>