Add upright text atoms inside math

This commit is contained in:
gloamxun committed 2026-10-20 12:59:45 +08:00
1 parent ebab0eca05
commit 053468875e
2 files changed
+49

No files matched your search

+2
View File
@@ -110,6 +110,8 @@ a single cost function.
- `MathAtom::Accent { accent, base }` parses `\hat`, `\widehat`,
`\tilde`, `\widetilde`, `\bar`, `\overline` and `\vec`; it adds
accent height without changing the base width.
- `MathAtom::Text(String)` parses `\text{...}` and `\mathrm{...}`;
widths use upright CMR glyphs and spaces use the font space width.
- `MathAtom::Delimited { left, right, body }` and `\left...\right`
parsing grow the delimiter box with the body height/depth.
- `MathClass` and TeX's 0/3/4/5mu inter-atom table add spacing for