xkdog
我用的window 10系统,装了ctex 2.9.2+r 3.2.3+ rstudio 最新版(15年12月版)。但是装了rticles这个包后,按默认的中文rmarkdown文档,试图生成中文的pdf,仍然出现错误,错误提示如下,不知是什么原因? 在Rstudio的sweave选项里已经把默认引擎改为XeLaTex。
pandoc.exe: Error producing PDF from TeX source
错误: pandoc document conversion failed with error 43
此外: Warning message:
运行命令'"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS 11.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output 11.pdf --table-of-contents --toc-depth 2 --template "C:\Users\Kahn\Documents\R\win-library\3.2\rticles\rmarkdown\templates\ctex\resources\default.latex" --number-sections --highlight-style tango --latex-engine xelatex'的状态是43
停止执行
不过,我注意到同样使用这个包,生成英文的pdf是不成问题的,但是看它的提示,似乎仍是使用pdfLaTex引擎生成,具体如下:
"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS Untitled.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output Untitled.tex --template "C:\Users\Kahn\Documents\R\win-library\3.2\rticles\rmarkdown\templates\rjournal_article\resources\template.tex" --highlight-style tango --latex-engine pdflatex
output file: Untitled.knit.md
不知道我应当调整哪块的设置?谢谢!
另外,在win 7 + Texlive 2014模式下,可以正确生成中文pdf。不知道这是win 10的问题,还是我装的ctex的问题?