Use texlive to generate PDFs from LaTeX files.
docker build --tag latex .
Or using podman
podman build --tag latex .
-
Add this alias to
~/.bashrc
alias latex='docker container run --rm --volume "${PWD}:/data" --name latex latex'
Or using
podman
alias latex='podman container run --privileged --rm --volume "${PWD}:/data" --name latex latex' alias latex='podman container run --rm --volume "${PWD}:/data:Z" --name latex latex'
-
Navigate to the directory containing the
.tex
file and runlatex filename.tex
Tip
Using podman
helps in avoiding the owner as root for the generated PDF files. However, it requires the --privileged
flag to disable SELinux host isolation.