Skip to main content

classify_list

Function classify_list 

Source
pub fn classify_list(items: &[Node]) -> Vec<Option<AtomClass>>
Expand description

Classify a horizontal list: every item’s effective atom class, with TeX’s Bin→Ord degradation rules applied (appendix G, rules 5, 6, and 7):

  1. a Bin atom that opens the list or follows a Bin, Op, Rel, Open, or Punct atom becomes Ord;
  2. a Bin atom directly before a Rel, Close, or Punct atom becomes Ord;
  3. a Bin atom at the end of the list becomes Ord.

Non-atom items yield None and are transparent: they neither receive a class nor interrupt atom adjacency.