Honour raggedright and raggedleft paragraph alignment
This commit is contained in:
1 parent
c7b7660049
commit
2c8d5e12d8
13 files changed
+238
-40
No files matched your search
+5
-10
@@ -9,7 +9,8 @@ family and true scaled small caps; inline box geometry (`\fbox`, `\makebox`,
|
||||
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
|
||||
contents and figure/table lists; native PDF rectangles; unified pagination;
|
||||
`\raggedright`/`\raggedleft` declarations and environments
|
||||
(`build_positioned_pages` is the only page builder and no separate break
|
||||
planner remains).
|
||||
|
||||
@@ -19,24 +20,18 @@ planner remains).
|
||||
per-page float queue with `\textfraction`/`\topfraction` tuning so a later
|
||||
float can move ahead of text while preserving source order numbers.
|
||||
|
||||
## 2. Paragraph alignment declarations (remaining)
|
||||
|
||||
- `\raggedright`/`\raggedleft` are parsed as no-ops. Thread a per-paragraph
|
||||
alignment into `Block::Paragraph`, then select natural spaces rather than
|
||||
justification in `boxworks_line_break`/`cached_paragraph_lines`.
|
||||
|
||||
## 3. True vertical boxes (remaining)
|
||||
## 2. True vertical boxes (remaining)
|
||||
|
||||
- `\vbox`/`\vtop` currently map to a full-width block `\parbox`. A real VBox
|
||||
needs a vertical-material capture with its own natural width, baseline, and
|
||||
nested line/box children in the positioned renderer.
|
||||
|
||||
## 4. Contents leaders (remaining)
|
||||
## 3. Contents leaders (remaining)
|
||||
|
||||
- TOC/list entries use infinite glue for right-aligned page numbers. Dotted
|
||||
leaders require a glue item that repeats a character across its stretch.
|
||||
|
||||
## 5. Custom title blocks (remaining)
|
||||
## 4. Custom title blocks (remaining)
|
||||
|
||||
- Let a document-level `\renewcommand{\maketitle}` contribute a real title
|
||||
block once the engine's title model can run box material.
|
||||
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user