dockerfiles
dockerfiles copied to clipboard
! LaTeX Error: File `enumitem.sty' not found.
I am trying to use this workaround for being able to convert a markdown file to pdf with more than 6 levels of nesting.
But I get:
! LaTeX Error: File `enumitem.sty' not found
Could it be something that needs to be added to the docker container to be able to fix this issue, for better supporting markdown to pdf?
command used:
# deeplists.tex content is described in the above issue workaround
docker run --rm --volume "`pwd`:/data" --user `id -u`:`id -g` pandoc/latex:2.6 input.md -o output.pdf -H deeplists.tex
# Error producing PDF.
# ! LaTeX Error: File `enumitem.sty' not found.
# Type X to quit or <RETURN> to proceed,
# or enter new name. (Default extension: sty)
You may not need this anymore, but you can use tlmgr within the container to install any extra texlive packages you need. You can either do this for every build (installing 1 package only take a couple of seconds), or if you have many more deps you could write your own Dockerfile that builds on the base image (see this comment for a complete example: https://github.com/pandoc/dockerfiles/issues/81#issuecomment-616519019).
My suggestion would be to keep the existing image as lean as reasonably possible, but perhaps do a better job of documenting the alternatives for "fatter" images including one-off additions using tlmgr and rolling images with additions for specific projets.