当我在 Mac 上使用 render{rmarkdown} 从 .Rmd 文件生成 pdf 文件时,出现错误消息
pandoc: pdflatex not found. pdflatex is needed for pdf output.
Error: pandoc document conversion failed
但是当我检查时
pdflatex -v
I got
pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012)
kpathsea version 6.1.0
Copyright 2012 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.5.10; using libpng 1.5.10
Compiled with zlib 1.2.7; using zlib 1.2.7
Compiled with xpdf version 3.03
pdflatex 安装在我的机器上。
谁能帮忙告诉我如何告诉 R 在哪里可以找到 pdflatex?
非常感谢!
对于使用 ubuntu 的人来说,如果被困在这里,更好的选择(因为它的大小只有 1/5)是使用:
sudo apt-get install texlive-latex-base
我发现通过https://tex.stackexchange.com/a/128309 https://tex.stackexchange.com/a/128309
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)