class documentation

class SectNum(Transform):

View In Hierarchy

Automatically assigns numbers to the titles of document sections.

It is possible to limit the maximum section level for which the numbers are added. For those sections that are auto-numbered, the "autonum" attribute is set, informing the contents table generator that a different form of the TOC should be used.

Method apply Override to apply the transform to the document tree.
Method update​_section​_numbers Undocumented
Class Variable default​_priority Should be applied before Contents.
Instance Variable maxdepth Undocumented
Instance Variable prefix Undocumented
Instance Variable startvalue Undocumented
Instance Variable suffix Undocumented

Inherited from Transform:

Method __init__ Initial setup for in-place document transforms.
Instance Variable document The document tree to transform.
Instance Variable language Language module local to this document.
Instance Variable startnode Node from which to begin the transform. For many transforms which apply to the document as a whole, startnode is not set (i.e. its value is None).
def apply(self):
Override to apply the transform to the document tree.
def update_section_numbers(self, node, prefix=(), depth=0):

Undocumented

default_priority: int =
Should be applied before Contents.
maxdepth =

Undocumented

prefix =

Undocumented

startvalue =

Undocumented

suffix =

Undocumented