Abstract#
Qualified name: rsm.nodes.Abstract
- class rsm.nodes.Abstract(keywords=None, msc=None, **kwargs)[source]#
Bases:
NodeWithChildrenManuscript abstract.
Notes
By convention, abstracts contain only paragraphs and not other blocks. This convention is not enforced, but it may be assumed to be the case during the translation step.
Examples
:abstract: { :keywords: {cosmology, general relativity, black holes} } Black holes emit radiation. ::Methods
Attributes
Meta keys to add to those of the parent class.
Manuscript keywords.
Mathematics Subject Classification (MSC) codes.
nodeidNode id - always exists (unlike label), automatically assigned, unique within the tree.
labelUnique identifier.
classesCSS classes for this node.
handrail_depthThe number of ancestors of this node that have a handrail.
numberNode number.
nonumWhether this node should be automatically given a number.
reftext_templateReftext template, or "" to use
classreftext.start_pointThe start point of the corresponding concrete syntax tree node.
end_pointThe end point of the corresponding concrete syntax tree node.
- newmetakeys: ClassVar[set] = {'keywords', 'msc'}[source]#
Meta keys to add to those of the parent class.
Important
Only use this when defining a new Node subclass. When dealing with Node isntances, do not access this attribute directly neither for reading nor writing. Always use
metakeys()in that case.See also
metakeys()Examples
The keys in newmetakeys are added to the meta keys of the parent class.
>>> nodes.Heading.newmetakeys {'title'} >>> nodes.Heading.metakeys() == nodes.Node.metakeys() | {"title"} True
The intended use, and only supported use, of newmetakeys is at the time of class definition.
>>> class NewNode(nodes.Node): ... newmetakeys = {"newkey"} >>> NewNode.metakeys() == nodes.Node.metakeys() | {"newkey"} True