Zero-install LaTeX distribution for Linux.
Navigate to the repository where the LaTeX source lives and:
docker run --rm \
-v $(pwd):/workdir \
-u $(id -u):$(id -g) \
csegarragonz/latex-docker:texlive_2024 main.tex
To make it easier, copy this into your .zshrc
or .bashrc
:
alias latex-docker='docker run --rm -v $(pwd):/workdir -u $(id -u):$(id -g) csegarragonz/latex-docker:texlive_2024'
source ~/.zshrc
source ~/.bashrc
latex-docker main.tex
This repo is heavily inspired in arkark/latexmk-docker's. Given that the author had archived the latter, I decided to give it a crack myself.