Add underline math atoms

This commit is contained in:
gloamxun committed 2026-10-20 13:00:20 +08:00
1 parent 053468875e
commit b11fc864f2
2 files changed
+31

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::Underline { base }` parses `\underline{...}` and adds 2pt depth
without changing width or height.
- `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`