我的系统环境
sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)
Matrix products: default
BLAS: /home/xiaowj/R-3.6.3/lib/libRblas.so
LAPACK: /home/xiaowj/R-3.6.3/lib/libRlapack.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rmarkdown_2.3
loaded via a namespace (and not attached):
[1] complier_3.6.3 tools_3.6.3 htmltoos_0.5.0 rticles_0.15
[5] yaml_2.2.1 knitr_1.29 xfun_0.16 digest_0.6.25
[9] rlang_0.4.7 evaluate_0.14
yihui 按照修改
---
title: "xx"
documentclass: ctexart
output:
rticles::ctex:
pdf_document:
fig_caption: no
number_sections: yes
toc: yes
classoption: hyperref,
toc_depth: 3
---
运行最后报错:
! Undefined control sequence.
l.75 \huge\bfseries项目报告
Error:LaTeX failed to compile report.tex
找了一个小的测试脚本
---
title: "R语言简介"
author:PurePlayer
documentclass: ctexart
geometry: "left=2.5cm,right=2cm,top=3cm,bottom=2.5cm"
output:
rticles::ctex:
fig_caption: yes
number_sections: yes
toc: yes
classoption: "hyperref,"
---
chenggong成功出现一些warings,但是可以得到pdf文档
观察一下两个Rmd文档的差别,修改了代码
---
title: "xx"
documentclass: ctexart
output:
rticles::ctex:
fig_caption: no
number_sections: yes
toc: yes
classoption: hyperref,
toc_depth: 3
---
报错为:Error:Could not find template file ctex/resources/template.tex
为什么在测试文档中就可以运行成功?另外对应修改就不能运行了