Manual chapter/section numbering?
Hey there!
I'm currently working on https://advanced-r-solutions.rbind.io/, where we will skip some of ther chapters and section numbers to maintain consistency to the structure/ numbering of Advanced R. (So that say Expressions will continue to be the 18th chapter even though there are only 14 Chapters before it in our book. The same may be the case for sections/ subsections)
I found the following post on Stackoverflow, but there doesn't seem to be a good solution yet: https://stackoverflow.com/questions/50277573/manual-numbering-in-bookdown
For pdf-output it's possible to get the desired numberings by introducing \stepcounter{chapter}, but this doesn't work for the gitbook. Is there already a way to achieve this result with bookdown?
PS: While experimenting I also saw bs4_book does not yet support number_sections: false, which might be useful.
You can indeed you number_section = FALSE in gitbook() but it is not possible in bs4_book().
Setting that would let you set manual number but you'll loose some feature like referencing with chapter number.
Also, if I understand the why for your use case, I don't think it should be so common. Usually when you write a book or a similar linear content, you need chapter to be sequentially numbered I think.