Honour the centering paragraph declaration

This commit is contained in:
gloamxun committed 2026-10-19 14:18:42 +08:00
1 parent 2c8d5e12d8
commit 1b0ce27ed3
8 files changed
+55 -10

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ footnotes/`\thanks`; figure/table `[htbp]` placement approximations; page
styles (plain/fancy, `\thispagestyle`, fancyhdr headers/footers, `\thepage`);
geometry-aware `\textwidth`/`\textheight` named length registers; table of
contents and figure/table lists; native PDF rectangles; unified pagination;
`\raggedright`/`\raggedleft` declarations and environments
`\centering`/`\raggedright`/`\raggedleft` declarations and environments
(`build_positioned_pages` is the only page builder and no separate break
planner remains).
+2 -2
View File
@@ -20,7 +20,7 @@ the source changes; the SVG preview is refreshed per page.
declarations with group scoping, grouped text-style commands, true small caps
(lowercase uppercase glyphs at 80% size), and sans/serif/mono small caps.
- Paragraphs: Knuth-Plass breaking, TeX hyphenation patterns, justification,
centering, `\raggedright`/`\raggedleft` declarations and environments,
`\centering`/`\raggedright`/`\raggedleft` declarations and environments,
first-line `\parindent` (17pt default, group-scoped, `\setlength`/
`\addtolength`/`\noindent` aware), and `\hfill`/`\hfil` infinite glue.
- Pages: A4/A5/B5/Letter/Legal/Executive, landscape, geometry margins and
@@ -72,7 +72,7 @@ See `docs/ROADMAP.md` for concrete implementation plans.
- `examples/hello.tex`, `examples/boxes.tex`, `examples/compat.tex` compile to
one A4 page each; the arXiv template project compiles to 3 Letter pages.
- `cargo fmt --check` passes; `cargo test --offline` (35 tests: 31 compiler
- `cargo fmt --check` passes; `cargo test --offline` (36 tests: 32 compiler
integration tests + 4 server tests) covers the three examples, the arXiv
fixture, floats/newpage, page styles and `\thispagestyle`, SVG/PDF output,
project API, static frontend assets, path traversal, the legacy