Place display equation tags at the right margin

Tagged display math used the body width as its box, so the equation number sat
immediately after the formula. Add a TaggedWidth atom carrying the line
measure: the body is centred in the measure and the tag is painted at its right
edge.

The arXiv equation number now matches the TeX right-margin placement; the
formula body remains approximate. Test count stays 1077.
This commit is contained in:
gloamxun committed 2026-10-28 00:32:56 +08:00
1 parent 9181bf49fe
commit 764bc18850
5 files changed
+43 -3

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ 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;
- display math is approximate; equation tags now 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