问题描述:
Rstudio安装rmarkdown、,rticles包,使用New Files-R Markdown-From Template CTEX Documents模板建立中文文档不能编译成功,报错信息如下:
Rstudio安装rmarkdown、,rticles包,使用New Files-R Markdown-From Template CTEX Documents模板建立中文文档不能编译成功,报错信息如下:
! LaTeX Error: Option clash for package color.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.33 \hypersetup
pandoc.exe: Error producing PDF from TeX source
错误: pandoc document conversion failed with error 43
此外: Warning message:
运行命令'"D:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS rmarkwon-chinese.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output rmarkwon-chinese.pdf --table-of-contents --toc-depth 2 --template "D:\PROGRA~2\R-33~1.1\library\rticles\RMARKD~1\TEMPLA~1\ctex\RESOUR~1\DEFAUL~1.LAT" --number-sections --highlight-style tango --latex-engine xelatex'的状态是43
停止执行
R语言环境相关信息:
> sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rticles_0.2 ggvis_0.4.3 rmarkdown_1.0
loaded via a namespace (and not attached):
[1] Rcpp_0.12.6 knitr_1.13 magrittr_1.5 devtools_1.12.0
[5] xtable_1.8-2 R6_2.1.2 stringr_1.0.0 httr_1.2.1
[9] dplyr_0.5.0 tools_3.3.1 DBI_0.4-1 git2r_0.15.0
[13] withr_1.0.2 htmltools_0.3.5 yaml_2.1.13 assertthat_0.1
[17] digest_0.6.9 tibble_1.1 shiny_0.13.2 formatR_1.4
[21] curl_1.0 memoise_1.0.0 evaluate_0.9 mime_0.5
[25] stringi_1.1.1 httpuv_1.3.3