Parse scripts, fractions and roots into math atoms
This commit is contained in:
1 parent
cd6baba53f
commit
b6d55e63dc
2 files changed
+145
No files matched your search
@@ -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.
|
||||
- `parse_math` converts a small TeX math subset (symbols, `{}` groups,
|
||||
`_`/`^` scripts, `\frac`, `\sqrt`) into `MathAtom::Row`.
|
||||
- `MathAtom::{Symbol, Script, Fraction}` and `layout_math` produce
|
||||
`MathBox { width, height, depth }`; `Unit::math` turns an atom into a
|
||||
vertical box. Parsing TeX math tokens and painting remain future M4 work.
|
||||
|
||||
Reference in new issue
Block a user