Section#
Qualified name: rsm.nodes.Section
- class rsm.nodes.Section(title='', **kwargs)[source]#
Bases:
Heading
Methods
Attributes
Whether to automatically assign a number to this node during transform step.
level
- autonumber: ClassVar[bool] = True[source]#
Whether to automatically assign a number to this node during transform step.
Examples
>>> msc, thm1, thm2 = nodes.Manuscript(), nodes.Theorem(), nodes.Theorem() >>> (thm1.number, thm2.number) == (None, None) True >>> tform = rsm.transformer.Transformer() >>> tform.transform(msc.append([thm1, thm2])) >>> thm1.number, thm2.number (1, 2)