Parse math alphabet wrappers as text metrics

This commit is contained in:
gloamxun committed 2026-10-20 13:06:14 +08:00
1 parent 6465915dc1
commit 40af634efd
2 files changed
+27

No files matched your search

+3
View File
@@ -124,6 +124,9 @@ a single cost function.
- `MathAtom::Binomial { numerator, denominator }` parses
`\binom{n}{k}` / `\dbinom` / `\tbinom`; layout stacks the arguments with a
4pt delimiter allowance.
- `\mathcal`, `\mathbb`, `\mathbf`, `\mathit`, `\mathsf`, `\mathtt`,
`\mathfrak`, `\mathnormal` parse their argument as upright `Text` for metrics;
visual alphabet selection waits for the NFSS math font layer.
- Named operators (`\max`, `\min`, `\sin`, `\log`, `\det`, ...) parse as
upright `Text` atoms.
- `MathAtom::Underline { base }` parses `\underline{...}` and adds 2pt depth