-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed

Description
Hi there,
I am wondering whether there is a way to increase the TOC depth in bs4_book? It looks as if my current toc setting do not have any effect. This is the content of _output.yml
bookdown::bs4_book:
toc_depth: 6
theme:
primary: "#0d6efd"
base_font:
google: Sen
heading_font:
google:
family: Bitter
wght: 200
code_font:
google:
# arguments to sass::font_google()
family: DM Mono
local: false
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done
Milestone
Relationships
Development
Select code repository
Activity
cderv commentedon Aug 31, 2022
toc_depth
is not part of the customization possible forbs4_book
format. Related issue one year ago: #1254This is by design for this format as it would be hard to give a nice formatting for more than 3 levels
bookdown/R/bs4_book.R
Lines 134 to 138 in 7ce6dc6
BTW
toc
is not a supported argument inbs4_book
and settingtoc_depth
should have thrown an error. I'll fix that.`toc` is not customizable in `bs4_book`
bs4_book
#1378cderv commentedon Aug 31, 2022
I am closing and tracking the idea for votes in #1378
Also, it will throw an error in next version of bookdown to set
toc_depth
so that it is clear that it is not allowed as it does not work.thank you !
github-actions commentedon Mar 8, 2023
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.