2015-09-09 112 views
0

我無法使用knitr包在Rstudio中創建輸出。 我有這個問題數週。我收到以下錯誤:無法從Rstudio中的knitr創建PDF輸出

"Error: pandoc document conversion failed with error 43 

另外我收到此警告消息:

running command '"C:/Users/Krish/AppData/Local/Pandoc/pandoc" +RTS -K512m -RTS assignment1.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output assignment1.pdf --template "C:\Users\Krish\Documents\R\win-library\3.1\rmarkdown\rmd\latex\default-1.14.tex" --highlight-style tango --latex-engine xelatex --variable "geometry:margin=1in"' had status 43"

+0

你有沒有正確安裝MiKTeX? – jeremycg

+0

我已經安裝了它。如何知道它是否安裝正確? –

+0

您可以檢查[最小LaTeX示例](https://en.wikibooks.org/wiki/LaTeX/Basics#The_LaTeX_syntax)是否編譯。 –

回答

0

我有同樣的問題!請確保您的LaTeX標記中沒有小錯誤。在我的示例中,將逗號的位置從$X,$更改爲$X$,後,我的pandoc錯誤消失了,我能夠呈現我的pdf。

相關問題