pub struct MathMark {
pub tex: String,
pub display: bool,
pub glyph: Option<usize>,
pub rows: usize,
}Expand description
One formula a row stands in for — what a picture-capable frontend typesets
and draws in place of the glyph or the rows that hold its spot. See
VRow::math and, for the frontend’s view of the same thing,
MathInfo.
Fields§
§tex: StringThe TeX between the delimiters, verbatim — a display block’s keeps its
newlines. What leaf-math typesets.
display: boolDisplay style ($$…$$) rather than text style ($…$). True for every
block mark, and for a $$…$$ written inside a line of prose, which is
display style set inline.
glyph: Option<usize>The index into VRow::glyphs of the atom this mark stands behind —
the one Role::Math glyph an inline formula renders to. None for
a block mark, whose placeholder is the whole row.
rows: usizeHow many rows a block formula reserves — the label row plus the blank
fillers under it, the MediaMark::rows recipe, and from the same
door: a terminal frontend that has typeset and measured the picture
reports its height through crate::Doc::set_math_rows. 1 for an
inline atom, which reserves nothing.