首页 > 解决方案 > 无法在 bookdown 中的数字和标题之间获取冒号分隔符

问题描述

我在我的 _bookdown.yml 中有这个我试图用 bookdown 渲染的 word 文档。即使不创建 _bookdown.yml 文件,我仍然没有得到“:”分隔符。

delete_merged_file: true
language:
  label:
   fig: 'Figuee '
   tab: 'TABLE '
ui:
  chapter_name: "Chapter "

但它在word文档中显示为:Figuee 1 blah-blah

图号和标题之间没有冒号。在我的一生中,我看不到它是在哪里指定的,也看不到我可以在哪里改变它。我确定我在某处遗漏了一些简单的东西。

sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server 2012 R2 x64 (build 9600)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] bookdown_0.7

loaded via a namespace (and not attached):
[1] compiler_3.5.1 tools_3.5.1 knitr_1.20 xfun_0.3

标签: rbookdown

解决方案


这是bookdown一个错误我刚刚在 Github 上修复了它。请尝试开发版本:

remotes::install_github('rstudio/bookdown')

推荐阅读