Skip to content

Latest commit

 

History

History

texlive

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

TexLive

Use texlive to generate PDFs from LaTeX files.

Build the image

docker build --tag latex .

Or using podman

podman build --tag latex .

Generate the PDF

  1. 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'
  2. Navigate to the directory containing the .tex file and run

    latex 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.