Correct fraction depth and subscript placement

The fraction box added bar clearance twice to its depth, leaving extra space
below the denominator. Use the painted extent instead. Scripts now include
script space after the base, and subscripts drop by the base depth plus 2pt
rather than sitting on the baseline when the base has no depth.

Test count stays 1077.
This commit is contained in:
gloamxun committed 2026-10-28 00:43:25 +08:00
1 parent 802526c352
commit 742986e4dd
4 files changed
+9 -7

No files matched your search

+3 -2
View File
@@ -48,8 +48,9 @@ execution is not a goal.
- project `.bib` entries now produce author-year labels and natbib-style
parenthetical citations; inline `thebibliography` without labels remains
numeric, and the full natbib option surface is not implemented;
- display math is approximate; fraction boxes now reserve the full
numerator/denominator extent, and tags sit at the right margin;
- display math is approximate; fraction boxes reserve the full
numerator/denominator extent, 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
+1 -1
View File
@@ -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 now reserves full numerator/denominator extent; tag at the right margin |
| Display equation | fully typeset fraction/product/sum | approximate body; fraction box uses full extents, subscripts drop below the base, and the tag sits at the right margin |
| References | author-year, italic venue, DOI link | author-year entries; plain venue text, no DOI |
| Float order | figure/table on page 3 with section 3.4 | figure/table on page 3 above 3.3/3.4 |