Honour raggedright and raggedleft paragraph alignment

This commit is contained in:
gloamxun committed 2026-10-19 14:16:50 +08:00
1 parent c7b7660049
commit 2c8d5e12d8
13 files changed
+238 -40

No files matched your search

+3 -2
View File
@@ -20,7 +20,8 @@ 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, first-line `\parindent` (17pt default, group-scoped, `\setlength`/
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
text block, geometry-aware `\textwidth`/`\textheight`/`\linewidth`/
@@ -71,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` (33 tests: 29 compiler
- `cargo fmt --check` passes; `cargo test --offline` (35 tests: 31 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