When compiling my bookdown document to PDF via latex,
I get nice output, but the following errors for my figure chunks:
! Missing number, treated as zero.
<to be read again>
\chardef
<to be read again>
\rhm@arabic
\addlanguage ...\chardef \csname rhm@#1\endcsname
=#5 \uselanguage {#1}\inpu...
l.65 \addlanguage{arabic}{zerohyph.tex}{}{}{}
?
! Emergency stop.
This error message is totally correct and stems from running fmtutil-sys --all
.
So what does it have to do with RStudio, which does a good job and is not the source of the error at all?
After carefully reading the output of fmtutil-sys
and doing some web search, one quickly realizes that it is only trying to generate hyphenation patterns, which I actually don't need as is also obvious from the perfect PDF output.
My question now is, why RStudio triggers the fmtutil-sys
at all for the figure code chunks and whether it can somehow be prevented.
This would be helpful, because the fmtutil-sys
runs seem to prolong the compilation time of the file quite a bit.