pub enum MathStyle {
Text,
Script,
ScriptScript,
Full,
Symbol,
SubSymbol,
User1,
User2,
}Expand description
Size preset an equation is laid out at, matching the size classes an author picks from.
The seven MathType typesizes plus this crate’s own text size: the typesizes are full, subscript, sub-subscript, symbol, sub-symbol, user 1 and user 2 (manual 11.45). A character records the class it is set in, not the points that class currently resolves to, so a change to the preset moves every character set in it.
Variants§
Text
Inline text size.
Script
Smaller than text, one step down in the nesting hierarchy.
ScriptScript
Smallest supported size, two steps down in the nesting hierarchy.
Full
Full size.
Symbol
The size a large operator’s own glyph is drawn at.
SubSymbol
The size a large operator takes when it sits inside a script.
User1
The first user-defined size.
User2
The second user-defined size.
Implementations§
Source§impl MathStyle
impl MathStyle
Sourcepub fn smaller(self) -> Self
pub fn smaller(self) -> Self
The next smaller preset, saturating at MathStyle::ScriptScript.
Material inside a script slot steps down the positional ladder: full size, the symbol class and the user classes step to the subscript, and the subscript, the sub-symbol and the sub-subscript step to the sub-subscript. The sub-symbol class is where a symbol lands when it sits inside a script.