大家好,我知道这是个老生常谈的问题,但以前论坛中的方法我都已经试过了,都没有用,具体问题是这样的:
我想给一张图加标题,但是中文会报错,报错内容放在下面了
这是我输出pdf的设置
documentclass: ctexart
output:
rticles::ctex:
fig_caption: yes
这是我的sessioninfo
R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_China.936
[2] LC_CTYPE=Chinese (Simplified)_China.936
[3] LC_MONETARY=Chinese (Simplified)_China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.3 rstudioapi_0.11 knitr_1.25
[4] magrittr_1.5 tidyselect_0.2.5 munsell_0.5.0
[7] colorspace_1.4-1 R6_2.4.0 rlang_0.4.4
[10] dplyr_0.8.4 tools_3.5.0 grid_3.5.0
[13] gtable_0.3.0 xfun_0.10 htmltools_0.4.0
[16] yaml_2.2.0 lazyeval_0.2.2 assertthat_0.2.1
[19] digest_0.6.22 tibble_2.1.3 crayon_1.3.4
[22] purrr_0.3.3 ggplot2_3.2.1 glue_1.3.1
[25] evaluate_0.14 rmarkdown_1.16 compiler_3.5.0
[28] pillar_1.4.3 rticles_0.11 scales_1.0.0
[31] pkgconfig_2.0.3
谢谢大家了!