Capture vertical material in vbox and vtop
This commit is contained in:
1 parent
5e9552d785
commit
7ad3c327ec
8 files changed
+99
-14
No files matched your search
+7
-5
@@ -12,7 +12,8 @@ geometry-aware `\textwidth`/`\textheight` named length registers; table of
|
||||
contents and figure/table lists with dotted leaders; native PDF rectangles; unified pagination;
|
||||
`\centering`/`\raggedright`/`\raggedleft` declarations and environments;
|
||||
chapter headings with chapter-prefixed section numbering and page breaks;
|
||||
deferred top-float queue for figures; document-level custom `\maketitle`
|
||||
deferred top-float queue for figures; document-level custom `\maketitle`;
|
||||
`\vbox`/`\vtop` vertical-material capture with inline splicing
|
||||
(`build_positioned_pages` is the only page builder and no separate break
|
||||
planner remains).
|
||||
|
||||
@@ -23,8 +24,9 @@ planner remains).
|
||||
tune `\textfraction`/`\topfraction`, and support more than a one-page
|
||||
lookahead.
|
||||
|
||||
## 2. True vertical boxes (remaining)
|
||||
## 2. True vertical boxes (partial)
|
||||
|
||||
- `\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.
|
||||
- `\vbox`/`\vtop` now capture nested vertical material (rules, skips,
|
||||
paragraphs) and splice it into the surrounding column. A fully independent
|
||||
VBox still needs its own natural width, baseline, and nested line/box
|
||||
children in the positioned renderer.
|
||||
+5
-4
@@ -13,7 +13,7 @@ the source changes; the SVG preview is refreshed per page.
|
||||
- Headings: numbered `\section`/`\subsection`/`\subsubsection` and starred
|
||||
`\section*` variants (starred headings do not advance the counter).
|
||||
- Box material: `\rule` (raise/width/height), inline framed `\fbox`, block
|
||||
`\parbox`/`\minipage`, `\vbox`/`\vtop` (full-width block approximation),
|
||||
`\parbox`/`\minipage`, `\vbox`/`\vtop` (vertical material capture),
|
||||
inline `\mbox`, `\makebox[width][align]`, `\raisebox`, `center`, `\hrule`
|
||||
with `width`/`height`.
|
||||
- Fonts: Liberation Serif/Sans/Mono faces, bold/italic/monospace/sans
|
||||
@@ -64,8 +64,9 @@ See `docs/ROADMAP.md` for concrete implementation plans.
|
||||
|
||||
## Known approximations / gaps
|
||||
|
||||
- Boxes: `\parbox`/`\minipage` are block-level; `\vbox`/`\vtop` map to a
|
||||
full-width block rather than true nested VBox material.
|
||||
- Boxes: `\parbox`/`\minipage` are block-level; `\vbox`/`\vtop` capture
|
||||
and splice vertical material but do not expose an independent natural width
|
||||
or box baseline.
|
||||
- Pages: the figure queue only looks one page ahead; tables are not queued and
|
||||
there is no `\textfraction`/`\topfraction` tuning. Pagination is performed by
|
||||
the positioned renderer; the separate page-break planner was removed.
|
||||
@@ -79,7 +80,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` (38 tests: 34 compiler
|
||||
- `cargo fmt --check` passes; `cargo test --offline` (39 tests: 35 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