1 R Markdown

数学公式 \(a^2 + b^2 = c^2\) 如图 1.1 所示

压力随温度的变化

Figure 1.1: 压力随温度的变化

图的 label 如何汉化,我想将 Figure 1.1 变为 图 1.1

编译出来的 HTML 文档中,关于 caption 显示为

<p class="caption">
Figure 1.1: 压力随温度的变化
</p>

1.1 运行环境

xfun::session_info(c("knitr", "bookdown", "rmarkdown", "prettydoc"))
## R Under development (unstable) (2019-10-24 r77329)
## Platform: x86_64-w64-mingw32/x64 (64-bit)
## Running under: Windows 8.1 x64 (build 9600)
## 
## Locale:
##   LC_COLLATE=Chinese (Simplified)_China.936 
##   LC_CTYPE=Chinese (Simplified)_China.936   
##   LC_MONETARY=Chinese (Simplified)_China.936
##   LC_NUMERIC=C                              
##   LC_TIME=Chinese (Simplified)_China.936    
## 
## Package version:
##   base64enc_0.1.3 bookdown_0.14   digest_0.6.22   evaluate_0.14  
##   glue_1.3.1      graphics_4.0.0  grDevices_4.0.0 highr_0.8      
##   htmltools_0.4.0 jsonlite_1.6    knitr_1.25      magrittr_1.5   
##   markdown_1.1    methods_4.0.0   mime_0.7        prettydoc_0.3.0
##   Rcpp_1.0.2      rlang_0.4.1     rmarkdown_1.16  stats_4.0.0    
##   stringi_1.4.3   stringr_1.4.0   tinytex_0.17    tools_4.0.0    
##   utils_4.0.0     xfun_0.10       yaml_2.2.0     
## 
## Pandoc version: 2.7.3
bookdown:::label_names
## $fig
## [1] "Figure "
## 
## $tab
## [1] "Table "
## 
## $eq
## [1] "Equation "
## 
## $thm
## [1] "Theorem "
## 
## $lem
## [1] "Lemma "
## 
## $cor
## [1] "Corollary "
## 
## $prp
## [1] "Proposition "
## 
## $cnj
## [1] "Conjecture "
## 
## $def
## [1] "Definition "
## 
## $exm
## [1] "Example "
## 
## $exr
## [1] "Exercise "

  1. 某某大学, ↩︎

  2. Institution Two, ↩︎