dockerfiles
dockerfiles copied to clipboard
Getting font installation errors when using pandoc/extra docker image with the `--template eisvogel` option
I'm trying to use the pandoc/extra
docker image with the eisvogel
template and running into an issue when it is trying to get the necessary fonts.
$ docker run --rm --volume "$(pwd):/data" --user $(id -u):$(id -g) pandoc/extra:3.1.1.0 input.md -o output.pdf --template eisvogel
Unable to find image 'pandoc/extra:3.1.1.0' locally
3.1.1.0: Pulling from pandoc/extra
Digest: sha256:cc98998c5ab9a652b5c760d69c2fbf3395e063c6d0519890cd46dc3efbf9031a
Status: Downloaded newer image for pandoc/extra:3.1.1.0
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 tctt1095
mkdir: can't create directory '././.texlive': Permission denied
mktexpk: /opt/texlive/texdir/texmf-dist/web2c/mktexdir /.texlive/texmf-var/fonts/pk/ljfour/jknappen/ec failed.
kpathsea: Appending font creation commands to missfont.log.
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 tctt1095
mkdir: can't create directory '././.texlive': Permission denied
mktexpk: /opt/texlive/texdir/texmf-dist/web2c/mktexdir /.texlive/texmf-var/fonts/pk/ljfour/jknappen/ec failed.
kpathsea: Appending font creation commands to missfont.log.
Error producing PDF.
!pdfTeX error: pdflatex (file tctt1095): Font tctt1095 at 600 not found
==> Fatal error occurred, no output PDF file produced!
$
I've tried this using the pandoc/extra
, pandoc/extra:3.1.1.0
, pandoc/extra:3.0
, and pandoc/extra:2.19
images and they all produce the same error.
The missfont.log
file contains the following:
mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 tctt1095
FYI: I'm running on Ubuntu 20.04.5 LTS with Docker version 20.10.12 (I know, it's old, but it's a work system and this is the supported version).