确实是字体问题。
---
documentclass: ctexart
output:
rticles::ctex:
keep_tex: yes
includes:
in_header: "header.tex"
---
下面二字显示出来:皞觍
header.tex 文件内容如下:
\setCJKmainfont[BoldFont={SimHei},ItalicFont={KaiTi}]{SimSun}
xfun::session_info()
R version 4.0.4 (2021-02-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.2 LTS, RStudio 1.4.1103
Locale:
LC_CTYPE=zh_CN.UTF-8 LC_NUMERIC=C LC_TIME=zh_CN.UTF-8
LC_COLLATE=zh_CN.UTF-8 LC_MONETARY=zh_CN.UTF-8 LC_MESSAGES=zh_CN.UTF-8
LC_PAPER=zh_CN.UTF-8 LC_NAME=C LC_ADDRESS=C
LC_TELEPHONE=C LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=C
Package version:
base64enc_0.1.3 compiler_4.0.4 digest_0.6.27 evaluate_0.14 glue_1.4.2
graphics_4.0.4 grDevices_4.0.4 highr_0.8 htmltools_0.5.1.1 jsonlite_1.7.2
knitr_1.31 magrittr_2.0.1 markdown_1.1 methods_4.0.4 mime_0.10
rlang_0.4.10 rmarkdown_2.7 rticles_0.18 stats_4.0.4 stringi_1.5.3
stringr_1.4.0 tinytex_0.29 tools_4.0.4 utils_4.0.4 xfun_0.21
yaml_2.2.1
2021 年 9 月27 日更新
---
documentclass: ctexart
output: rticles::ctex
CJKmainfont: Noto Serif CJK SC
---
下面二字显示不出来:皞觍
系统环境
xfun::session_info()
#> R version 4.1.1 (2021-08-10)
#> Platform: x86_64-pc-linux-gnu (64-bit)
#> Running under: Ubuntu 20.04.3 LTS
#>
#> Locale:
#> LC_CTYPE=zh_CN.UTF-8 LC_NUMERIC=C
#> LC_TIME=zh_CN.UTF-8 LC_COLLATE=zh_CN.UTF-8
#> LC_MONETARY=zh_CN.UTF-8 LC_MESSAGES=zh_CN.UTF-8
#> LC_PAPER=zh_CN.UTF-8 LC_NAME=C
#> LC_ADDRESS=C LC_TELEPHONE=C
#> LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=C
#>
#> Package version:
#> backports_1.2.1 base64enc_0.1.3 callr_3.7.0 cli_3.0.1
#> clipr_0.7.1 compiler_4.1.1 crayon_1.4.1 digest_0.6.27
#> ellipsis_0.3.2 evaluate_0.14 fansi_0.5.0 fastmap_1.1.0
#> fs_1.5.0 glue_1.4.2 graphics_4.1.1 grDevices_4.1.1
#> highr_0.9 htmltools_0.5.2 jsonlite_1.7.2 knitr_1.33
#> lifecycle_1.0.0 magrittr_2.0.1 markdown_1.1 methods_4.1.1
#> mime_0.11 pillar_1.6.2 pkgconfig_2.0.3 processx_3.5.2
#> ps_1.6.0 purrr_0.3.4 R.cache_0.15.0 R.methodsS3_1.8.1
#> R.oo_1.24.0 R.utils_2.10.1 R6_2.5.1 rematch2_2.1.2
#> reprex_2.0.0 rlang_0.4.11 rmarkdown_2.10 rprojroot_2.0.2
#> rstudioapi_0.13 stats_4.1.1 stringi_1.7.4 stringr_1.4.0
#> styler_1.5.1 tibble_3.1.4 tinytex_0.33 tools_4.1.1
#> utf8_1.2.2 utils_4.1.1 vctrs_0.3.8 withr_2.4.2
#> xfun_0.25 yaml_2.2.1
<sup>Created on 2021-09-27 by the reprex package (v2.0.0)</sup>