MakisH / latex-docker

The universal docker image for all things LaTeX.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This docker image aims to be the universal Docker Image for LaTeX projects.

Content

  • Based on Ubuntu 20.04LTS
  • make via build-essential
  • python3 and pip3
  • font-awesome support via fonts-font-awesome and texlive-fonts-extra
  • gnuplot
  • .dot processing via graphviz
  • latexmk
  • xetex
  • pandoc
  • minted codehighlighting via python3-pygments
  • Extended TexLive via texlive, texlive-latex-extra, texlive-generic-extra and texlive-science
  • German language support via texlive-lang-german

Use Cases

Local Development

Build

$ cd my-latex-project
$ docker run --rm -it -v$(pwd):/src -w /src tumi5/latex latexmk -pdf main.tex

Build Continously

$ cd my-latex-project
$ docker run --rm -it -v$(pwd):/src -w /src tumi5/latex latexmk -pdf -pvc -view=none main.tex

Pipelines

.gitlab-ci.yml:

stages:
  - build

build:
  stage: build
  image: tumi5/latex
  script:
    - latexmk -pdf main.tex
  artifacts:
    paths:
      - main.pdf

Builds main.tex and provides the generated pdf as downloadable artifact.

About

The universal docker image for all things LaTeX.


Languages

Language:Dockerfile 55.3%Language:Shell 31.3%Language:Python 13.4%