math_spec.typesetting.legend
The legend: the glossary of symbols, and a note for each notation the equations use.
What the equations use is read off the program before anything prints
(:func:notice), so the legend explains every symbol the walk will print and
nothing the walk decides is asked of it twice.
PositionForm = Literal['plain', 'grouped', 'from_end']
module-attribute
#
TranslationPolicy = Literal['plain', 'wrap', 'edge']
module-attribute
#
Legend(program, symbols, format)
dataclass
#
The glossary and the notes, spelled with one program's symbols in one format.
format
instance-attribute
#
program
instance-attribute
#
symbols
instance-attribute
#
convention_notes()
#
What the two faces mean, with the model's own symbols.
Only where the model has both, and quoting only derived symbols: a table is the author's to write, so a symbol it supplies is not one this note governs.
Source code in src/math_spec/typesetting/legend.py
glossaries(noticed, defined)
#
The sets, parameters, variables and definitions, each with its symbol, its dims and its description.
defined names the expressions that print under their own symbol, so a legend row stands exactly where a symbol does.
Source code in src/math_spec/typesetting/legend.py
position_notes(noticed)
#
A sentence for each positional symbol the model printed; the first says which of pos(t) and t is the position.
Source code in src/math_spec/typesetting/legend.py
translation_notes(noticed)
#
A sentence for each translation symbol the model printed; plain t-k needs none.
Source code in src/math_spec/typesetting/legend.py
Noticed(policies, grouped, positions, numeric_coordinates)
dataclass
#
What the equations use that the legend has to explain.
| ATTRIBUTE | DESCRIPTION |
|---|---|
policies |
Each translation policy some
TYPE:
|
grouped |
Whether some translation is counted inside a relation's group.
TYPE:
|
positions |
Each form a
TYPE:
|
numeric_coordinates |
Each dimension whose index is compared against a number, where "position 3" and "the coordinate 3" are both readings of a line. |
notice(program)
#
What printing program uses, read off every tree the walk prints.
Source code in src/math_spec/typesetting/legend.py
policy_of(node)
#
Which translation symbol node prints with: cyclic, filled at the edge, or plain.