On Sat, Nov 17, 2018 at 9:10 AM Jouke Witteveen
I ran into an inconvenience with lualatex and would like some help debugging it.
Consider the following .tex file: ---- documentclass{article}
\usepackage{bbm}
\begin{document} $\mathbbm{1}$ \end{document} ----
When compiling with pdflatex, the font file for the bbm font is created in the local cache (~/.texlive/texmf-var/fonts) only if it does not exist. When the font exists in the cache, it is used without warning.
When compiling with lualatex, the font file is created every time. When the font exists, this results in a simple warning ("mktexpk: [...] already exists."). Trying to create the fonts slows down compilation noticeably.
How do I go about debugging this? The fact that pdflatex has no problems suggests that this is not an issue with my texmf.cnf, right?
A little tinkering later, I discovered that if I remove $MAKETEX_MODE in the line PKFONTS = .;{$TEXMF/fonts,$VARTEXFONTS}/pk/{$MAKETEX_MODE,modeless}// in texmf.cnf, or replace $MAKETEX_MODE by /, the problems go away. Apparently, that variable is not set the way it should on my system. Any ideas on why this might be? Thanks, - Jouke