bookdown-chinese icon indicating copy to clipboard operation
bookdown-chinese copied to clipboard

支持 多级索引

Open qhsword opened this issue 5 years ago • 3 comments

在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" 

qhsword avatar Dec 08 '19 14:12 qhsword

能。

yihui avatar Dec 09 '19 06:12 yihui

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

qhsword avatar Dec 09 '19 07:12 qhsword

gitbooktoc_depth 选项。参见 ?rmarkdown::html_document

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

yihui avatar Dec 12 '19 19:12 yihui