Centre raster images inside floats

Add an x offset to VerticalItem::Image and use it when placing a decoded image
in a float, so a 0.4\textwidth plot is centred while its caption remains
centred across the float. Other image uses keep x=0.

Test count stays 1074.
This commit is contained in:
gloamxun committed 2026-10-27 23:37:54 +08:00
1 parent bbedf7676c
commit aa2f3cb0af
4 files changed
+12 -4

No files matched your search

+3 -3
View File
@@ -48,9 +48,9 @@ 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;
- PNG/JPEG/BMP floats now reserve their image height and embed the raster
with its real pixel dimensions; the fbox frame and vector/PDF images are
still missing, and float placement differs.
- PNG/JPEG/BMP floats now reserve their image height, embed the raster with
its real pixel dimensions, and centre the image within the float; the fbox
frame and vector/PDF images are still missing, and float placement differs.
- Incremental foundation exists:
- `Engine::edit` + page hashes;
- project-scoped sessions and changed-page reporting;