Keep sum superscripts above the operator

Large-operator limits used the ordinary-base superscript gap, which could
leave N just below the sum baseline. Use a negative gap for large operators
so both limits straddle the operator, and add a unit test asserting the
subscript is below and the superscript above the base within 12pt.

Test count is 1080.
This commit is contained in:
gloamxun committed 2026-10-28 08:28:17 +08:00
1 parent 02742d201f
commit 676eb7f323
6 files changed
+41 -8

No files matched your search

+2 -2
View File
@@ -46,7 +46,7 @@ now means route-D.
| Area | Route-D | Evidence / impact |
| --- | --- | --- |
| Article/report basics: title, sections, lists, TOC, page numbers | Supported | corpus and 1079-test suite |
| Article/report basics: title, sections, lists, TOC, page numbers | Supported | corpus and 1080-test suite |
| Inline/display math, equations, tags, cleveref | Supported | math tests, oracle fixtures |
| Floats, captions, tables, booktabs | Supported | table/math tests, corpus |
| PNG/JPEG/BMP `\includegraphics` | Supported | project image tests; PDF XObjects use pixel dimensions and the SVG preview embeds a PNG data URI |
@@ -148,7 +148,7 @@ PDF was rendered page-by-page next to the route-D output.
| Citations | natbib author-year `(Kour and Saabne, 2014a; …)` | author-year `(Kour and Saabne, 2014a; Keshet et al., 2016)` for `.bib`; numeric for unlabeled inline bibliographies |
| Table | booktabs rules, `Size (µm)`, `~100`, `10^6` | centred with rules; `Size (µm)`, `~100`, `10⁶` |
| Figure | framed rule box above the caption | centred framed rule body (raster) on page 3 |
| Display equation | fully typeset fraction/product/sum | approximate body; fraction box uses full extents, sum limits sit close to large operators, subscripts attach even after a space, and the tag is at the right margin |
| Display equation | fully typeset fraction/product/sum | approximate body; fraction box uses full extents, large-operator limits straddle the operator closely, subscripts attach even after a space, and the tag is at the right margin |
| References | author-year, italic venue, DOI link | author-year entries; DOI appended when present in the .bib |
| Float order | figure/table on page 3 with section 3.4 | figure/table on page 3 above 3.3/3.4 |