Build for latex-docker, an image with TeXLive, among other things.
1.0K
This container helps with compilation of latex sources without the need to install all latex packages on your system.
This repository is forked from blang's repository in order to add other packages needed for a CI setup.
First, add your local user to docker group:
sudo usermod -aG docker YOURUSERNAME
build:
docker build -t jgoldfar/latex-docker .
docker run --rm -i --user="$(id -u):$(id -g)" --net=none -v "$(pwd)":/data jgoldfar/latex-docker:debian-latest
# Or better in one go (does not start container twice)
docker run --rm -i --user="$(id -u):$(id -g)" --net=none -v "$(pwd)":/data jgoldfar/latex-docker:debian-latest /bin/sh -c "pdflatex example.tex && pdflatex example.tex"
# View
./example.pdf
Called this way, your working directory would be mounted to /data inside container.
Why should I use this container?
chktex and pgf packages are explicitly installed to ensure they are always available.debian is the "legacy" image containing the complete TeXLive installation on top of Debian Stretch. Previous iterations of this repo called this default.
debian-minimal is a minimal Debian image containing just TeX & LaTeX, but very few other packages.
debian-minplus includes some additional packages on top of debian-minimal, primarily for typesetting mathematics.
alpine-minimal is an Alpine 3.9 image with a working TeX + LaTeX installation, as in debian-minimal
alpine-minplus includes some additional packages on top of alpine-minimal, primarily for typesetting mathematics.
Content type
Image
Digest
Size
244.3 MB
Last updated
over 6 years ago
docker pull jgoldfar/latex-docker:debian-minimal-latest