rmarkdown: pandoc: pdflatex not found

后端 未结 7 1309
没有蜡笔的小新
没有蜡笔的小新 2021-01-31 06:58

When I use the render{rmarkdown} to produce pdf file from .Rmd file on my Mac, an error message says

pandoc: pdflatex not found. pdflatex is needed for pdf output.

7条回答
  •  遇见更好的自我
    2021-01-31 07:48

    For those using Dunk's answer(For people using UBUNTU) who get a Font at not loadable: Metric (TFM) file not found. error, you also need:

    sudo apt-get install texlive-fonts-recommended texlive-latex-recommended
    

    This does unfortunately expand the size of the texlive install considerably, but it is still about half the size of a texlive-latex-extra install.

提交回复
热议问题