Skip to content

A Docker image that provides pdflatex with common latex packages

License

Notifications You must be signed in to change notification settings

theredfish/docker-pdflatex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

docker-pdflatex

A Docker image that provides pdflatex with common latex packages. This image inherits from Debian Bookworm and avoid issues with texlive package (loss of section numbering for example) from Ubuntu.

Build the image

cd dockerfile-pdflatex
docker build -t pdflatex .

Generate your PDF from your tex sources

Add this to your .zhsrc or .bashrc

alias pdflatex='docker run -it --rm -v "${PWD}:/root/shared/folder" --name pdflatex pdflatex'

Reload your terminal or type source ~/.zshrc if using zsh or source ~/.bashrc if using bash.

Go to your documents directory and then run:

pdflatex your-tex-file.tex

And the output should be generated on that folder.