Diagnosing R package build warning: “LaTeX errors when creating PDF version”

前端 未结 5 1666
南方客
南方客 2020-12-07 20:28

When building a package, I received the following warning:

* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typicall         


        
5条回答
  •  情深已故
    2020-12-07 21:17

    Concluding from the comments and from my own experience the problem often seems to be that some TeX fonts are missing, most often

    • inconsolata.sty and
    • upquote.sty

    First you have to find the right directory where TeX fonts are stored - in my case this is:

    C:\Program Files\R\R-3.3.0\share\texmf\tex\latex
    

    Then you can download them here:

    • https://www.ctan.org/tex-archive/fonts/inconsolata/?lang=en
    • https://www.ctan.org/tex-archive/macros/latex/contrib/upquote?lang=en

    Just copy them to the respective folder and in many cases the problem will be solved (in my case too). This should work for all operating systems.

提交回复
热议问题