Parse named math operators as upright text

This commit is contained in:
gloamxun committed 2026-10-20 13:01:07 +08:00
1 parent b11fc864f2
commit 639f5e8f8b
2 files changed
+17

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.
- Named operators (`\max`, `\min`, `\sin`, `\log`, `\det`, ...) parse as
upright `Text` atoms.
- `MathAtom::Underline { base }` parses `\underline{...}` and adds 2pt depth
without changing width or height.
- `MathAtom::Text(String)` parses `\text{...}` and `\mathrm{...}`;