pub struct TsState {Show 14 fields
pub show_prefix: Vec<u8>,
pub font_in_short_display: i64,
pub output_active: bool,
pub adjust_head: NodeRef,
pub pre_adjust_head: NodeRef,
pub adjust_tail: Option<NodeRef>,
pub pre_adjust_tail: Option<NodeRef>,
pub pack_begin_line: i32,
pub disc_ptr: [NodeRef; 4],
pub attr_cache: Option<(u64, Option<AttrList>)>,
pub align: AlignState,
pub last_totals: ([i32; 5], [i32; 5]),
pub just_box: NodeRef,
pub math: MathState,
}Expand description
Mutable state of the typesetting routines.
Fields§
§show_prefix: Vec<u8>The nesting string of show_box (cur_length of TeX’s string
pool).
font_in_short_display: i64The font assumed at the start of short_display (−1 for none).
output_active: boolWhether the output routine is active.
adjust_head: NodeRefHead of the adjustment list (adjust_head), allocated on first use.
pre_adjust_head: NodeRefHead of the pre-adjustment list (LuaTeX’s \vadjust pre).
adjust_tail: Option<NodeRef>Tail of the adjustment list collected by hpack, if active.
pre_adjust_tail: Option<NodeRef>Tail of the pre-adjustment list collected by hpack, if active.
pack_begin_line: i32Line where the current paragraph or alignment started
(pack_begin_line), negative for alignments.
disc_ptr: [NodeRef; 4]Items removed by the page builder and \vsplit (\pagediscards,
\splitdiscards).
attr_cache: Option<(u64, Option<AttrList>)>Cached current attribute list: (generation, list).
align: AlignStateAlignment state.
last_totals: ([i32; 5], [i32; 5])Stretch and shrink totals of the most recent hpack/vpack.
just_box: NodeRefThe last line box made by line_break (just_box).
math: MathStateThe state of mlist_to_hlist.