Space math atoms by TeX class

This commit is contained in:
gloamxun committed 2026-10-20 12:54:03 +08:00
1 parent b6d55e63dc
commit c545c7ff9a
2 files changed
+65 -1

No files matched your search

+2
View File
@@ -104,6 +104,8 @@ overfull ratio 4.11, badness 6942. TeX rejects the underfull candidate under
its tolerance but still emits the moderately overfull 5-word line. Reproducing
this needs a two-pass tolerance algorithm with an emergency overfull pass, not
a single cost function.
- `MathClass` and TeX's 0/3/4/5mu inter-atom table add spacing for
binary/relation/open/close/punctuation atoms in `MathAtom::Row`.
- `parse_math` converts a small TeX math subset (symbols, `{}` groups,
`_`/`^` scripts, `\frac`, `\sqrt`) into `MathAtom::Row`.
- `MathAtom::{Symbol, Script, Fraction}` and `layout_math` produce