Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持 多级索引 #31

Open
bes2008 opened this issue Dec 8, 2019 · 3 comments
Open

支持 多级索引 #31

bes2008 opened this issue Dec 8, 2019 · 3 comments

Comments

@bes2008
Copy link

bes2008 commented Dec 8, 2019

在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
Copy link
Owner

yihui commented Dec 9, 2019

能。

@bes2008
Copy link
Author

bes2008 commented Dec 9, 2019

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

@yihui
Copy link
Owner

yihui commented Dec 12, 2019

gitbooktoc_depth 选项。参见 ?rmarkdown::html_document

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants