错误:pandoc文档转换失败,错误43 Windows 7 R studio [英] Error: pandoc document conversion failed with error 43 Windows 7 R studio
问题描述
我已经在论坛中搜索了答案,但是它们似乎没有用.
I have search the answers in the forum, but they dont seem to work.
我正在使用knitr软件包在Rstudio中编织pdf文档.我正在使用Windows 7和Rstudio.
I am knitting a pdf document in Rstudio using the knitr package. I am using Windows 7 and Rstudio.
pandoc.exe: Error producing PDF from TeX source
Error: pandoc document conversion failed with error 43
In addition: Warning message:
running command '"C:/Program Files/RStudio/bin/pandoc/pandoc" PA1_template.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output PA1_template.pdf --template "C:\R\Library\rmarkdown\rmd\latex\default.tex" --highlight-style tango --latex-engine pdflatex --variable "geometry:margin=1in"' had status 43
Execution halted
谢谢
路易斯
推荐答案
我遇到了同样的问题,但是在Linux上,使用了最新的rmarkdown软件包和pandoc 1.13.从本质上讲,pdflatex似乎不适用于pandoc生成的输出-您需要用xelatex(TeXLive的一部分)替换Latex-engine pdflatex
I had the same issue but on Linux using the latest rmarkdown package and pandoc 1.13. In essence it seems like pdflatex does not work with the output generated by pandoc - you need to replace the latex-engine pdflatex with xelatex (part of TeXLive)
对于rmarkdown,我的解决方案是编辑文件
For rmarkdown my solution was to edit the file
rmarkdown/templates/tufte_handout/resources/tufte-common.def
并替换行
\typeoutbool{pdfatex}{@tufte@pdf}
使用
\typeoutbool{xelatex}{@tufte@pdf}
然后将使用xelatex而不是pdflatex来生成带有rmarkdown的pdf
Then xelatex will be used instead of pdflatex to generate pdf's with rmarkdown
这篇关于错误:pandoc文档转换失败,错误43 Windows 7 R studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!