yihui / bookdown-chinese

bookdown 中文书籍范例
MIT License
108 stars 90 forks source link

支持 多级索引 #31

Open bes2008 opened 4 years ago

bes2008 commented 4 years ago

在RStudio上构建时,由pandoc 生成html时,参数里有 --toc-depth 3, 能否指定为更多

"D:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS toturial.utf8.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash+smart --output toturial.html --email-obfuscation none --wrap preserve --standalone --section-divs --table-of-contents --toc-depth 3 --template "D:\PROGRA~1\R\R-36~1.1\library\bookdown\TEMPLA~1\GITBOO~1.HTM" --highlight-style pygments --number-sections --css style.css --include-in-header "C:\Users\ADMINI~1\AppData\Local\Temp\Rtmpcj7dNP\rmarkdown-str1b943c595493.html" --mathjax --lua-filter "D:/Program Files/R/R-3.6.1/library/rmarkdown/rmd/lua/pagebreak.lua" --lua-filter "D:/Program Files/R/R-3.6.1/library/rmarkdown/rmd/lua/latex-div.lua" --filter "D:/Program Files/RStudio/bin/pandoc/pandoc-citeproc.exe" 
yihui commented 4 years ago

能。

bes2008 commented 4 years ago

@yihui 怎么设置呢? 在RStudio上,找了几圈,没有发现

yihui commented 4 years ago

gitbooktoc_depth 选项。参见 ?rmarkdown::html_document

https://bookdown.org/yihui/rmarkdown/html-document.html#table-of-contents