Skip to content

Manual chapter/section numbering? #1024

Open
@henningsway

Description

@henningsway

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions