用r markdown一段时间了,狠爽狠有写东西的欲望。这两天得空想上手bookdown,遇到一点小问题。将益辉的英文模板(https://github.com/rstudio/bookdown-demo )build为html、epub、pdf都没有问题,但build益辉的中文模板(https://github.com/yihui/bookdown-chinese)为pdf总是出错(html和epub没有问题)。
错误信息是这样的:
output file: bookdown.knit.md
! Undefined control sequence.
\FancyVerbFormatCom ->\xeCJKVerbAddon
\relax
l.199 \begin{Highlighting}[]
����: Failed to compile bookdown.tex. See bookdown.log for more info.
����: Warning message:
��������'"xelatex" -halt-on-error -interaction=batchmode "bookdown.tex"'��״̬��1
Please delete bookdown.Rmd after you finish debugging the error.
ִֹͣ��
Exited with status 1.
不知如何解决,请大家帮忙。非常感谢哈