Attach math scripts across ignored spaces

TeX ignores spaces in math mode, but parse_sequence looked for _ or ^ at the
raw next index. Source such as \alpha _{i} therefore rendered the underscore
as a literal symbol at full size. Skip math spaces after the base before
checking for scripts.

The arXiv equation now has real subscripts and superscripts instead of literal
underscores. Test count is 1078.
This commit is contained in:
gloamxun committed 2026-10-28 00:48:51 +08:00
1 parent 742986e4dd
commit d5de8b9fe6
6 files changed
+17 -9

No files matched your search

+2 -2
View File
@@ -49,8 +49,8 @@ execution is not a goal.
parenthetical citations; inline `thebibliography` without labels remains
numeric, and the full natbib option surface is not implemented;
- display math is approximate; fraction boxes reserve the full
numerator/denominator extent, subscripts drop below the base, and tags sit
at the right margin;
numerator/denominator extent, scripts attach across math spaces, subscripts
drop below the base, and tags sit at the right margin;
- PNG/JPEG/BMP floats now reserve their image height, embed the raster with
its real pixel dimensions, centre the image within the float, and emit it
into the SVG preview as a PNG data URI. Table floats are centred with their