【发布时间】:2018-08-07 03:09:49
【问题描述】:
我通过Rbookdown使用GitBook格式。我需要在目录 (TOC) 中使用至少四个级别。默认值为三个。如何更改 TOC 的深度?
更新
现在我的_output.yml 文件中与 toc 相关的内容如下所示:
bookdown::gitbook:
config:
toc_depth: 4
toc:
collapse: section
scroll_highlight: yes
before: |
<li><a href="../index.html"><b>Main</b></a></li>
after: |
<li><a href="../index.html"><b>Main</b></a></li>
config: toc_depth: 4 不起作用。
【问题讨论】: