我在使用Tufte Handout(HTML or PDF in Chinese) 模板时,YAML如下所示:
title: "R语言实战"
subtitle: "【实战二】学生成绩评定模型"
author: "王化琨"
date: "r Sys.Date()
"
output:
tufte::tufte_html: default
tufte::tufte_book:
citation_package: natbib
latex_engine: xelatex
tufte::tufte_handout:
citation_package: natbib
latex_engine: xelatex
ctex: yes
biblio-title: 参考文献
bibliography: skeleton.bib
link-citations: yes
选择默认的html输出格式正常,但当我选择Knit to Tufte_handout输出时,YAML自动变成如下的乱码:
title: "R璇█瀹炴垬"
author: "鐜嬪寲鐞<a8>"
date: 'r Sys.Date()
'
output:
tufte::tufte_handout:
citation_package: natbib
latex_engine: xelatex
tufte::tufte_book:
citation_package: natbib
latex_engine: xelatex
tufte::tufte_html: default
bibliography: skeleton.bib
link-citations: yes
ctex: yes
subtitle: 銆愬疄鎴樹簩銆戝鐢熸垚缁╄瘎瀹氭ā鍨<8b>
biblio-title: 鍙傝€冩枃鐚<ae>
错误提示:
stdin -> R璇█瀹炴垬浜?pdf
[1][2][3]
77138 bytes written
! File ended while scanning use of \\marginnote.
<inserted text>
\par
<*> ./R璇█瀹炴垬浜?tex
错误: Failed to compile R语言实战二.tex. See R语言实战二.log for more info.
此外: Warning messages:
1: Removed 6 rows containing non-finite
values (stat_boxplot).
2: Removed 6 rows containing non-finite
values (stat_summary).
3: 运行命令'"xelatex" -halt-on-error -interaction=batchmode "R璇█瀹炴垬浜?tex"'的状态是1
4: 运行命令'"xelatex" -halt-on-error -interaction=batchmode "R璇█瀹炴垬浜?tex"'的状态是1
停止执行
我不知道什么原因,请高手指教,谢谢!