Skip to content

Custom section numbering (Letters, numbers) #6614

@yves-chevallier

Description

@yves-chevallier

I have written this Stackoverflow question which also explain this feature request.

Goal

The goal is to customise the toctree numbering method. So use i., ii, ... for frontmatter, 1, 2, 3.1.2 for the content and A., A1, A1.1, B1.2 for the appendix.

By looking at the code, it seems it is easy to add a kludge on the _walk_toc method located in the TocTreeCollector class. However I don't see how I can easily extend this class.

The goal would be to add .. toctree:: directives the options :numbering-format: letters

Considerations

Before I try to implement this feature, I would like to get some feedback. Perhaps it is already possible to do this in a different manner.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions