gpt4 book ai didi

rmarkdown : pandoc: pdflatex not found

转载 作者:行者123 更新时间:2023-12-03 05:51:46 35 4
gpt4 key购买 nike

当我在 Mac 上使用 render{rmarkdown} 从 .Rmd 文件生成 pdf 文件时,出现错误消息

pandoc:未找到 pdflatex。 pdf输出需要pdflatex。
错误:pandoc文档转换失败

但是当我检查

pdflatex -v

我得到了

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 找到的

关于rmarkdown : pandoc: pdflatex not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22081991/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com