Repository navigation
render-pipeline: a float after a page break, \pagebreak\section under \flushbottom, \enlargethispage with floats and * squeeze (#64; stacked on #584) - #599
Conversation
…ty, discretionary and parameter nodes (#64; needs the compiler re-pin) What changed: - Paragraphs: Inline::Penalty -> a penalty item (a forced one ends a justified line; \linebreak/\nolinebreak move the space before them after the penalty); Inline::Discretionary -> a flagged break with its pre-break text (\- and \discretionary{pre}{}{}), no automatic hyphenation of the word (TeX 899); Inline::PagePenalty -> a \vadjust penalty after the line it lands on. - Vertical list: Block::Penalty before a paragraph (\goodbreak, \filbreak with \vfil/\vfilneg, \pagebreak[n<4], \nopagebreak, \nobreak, \penalty); "pagebreak" is no longer a source-scanned paragraph split. - Parsed::parameters read where each paragraph ends: \tolerance, \pretolerance, \emergencystretch, \hfuzz (\sloppy, \fussy, sloppypar), \widowpenalty, \clubpenalty, \interlinepenalty (\samepage); \raggedbottom/ \flushbottom; Parsed::hyphenation added to the English patterns. - Body \cleardoublepage in a two-sided document starts an odd page. - adapter.rs: the group LineBreak uses line_break_inline (the skip_pt field). What was run (scratch export, vendor/compiler replaced by the compiler branch, --features linebreak-skip; repository vendor/ untouched): - --test page_para_control: test result: ok. 11 passed; 0 failed - same tests on origin/main's pipeline: test result: FAILED. 0 passed; 10 failed (before the cleardoublepage test was added) - full cargo test --release: 384 passed; 5 failed (bundled_typewriter only: its files are under apps/, which the export leaves out; 5 passed on origin/main) - 86 of 89 pdflatex probes match (enlargethispage x2, flushbottom after \pagebreak differ) Next step: re-pin vendor/compiler past the compiler PR, then merge this. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
…ttom after \pagebreak, \nobreakdash (#64) What changed: - \enlargethispage{<dimen>} (and *): the compiler's EnlargeThisPage parameter becomes a pagebuild::Enlarge at the vertical-list position of latex.ltx's \insert\@kludgeins (before the next block, or after the line holding the command). Both page loops (break_pages_regions, break_pages_inserts_regions) raise \pagegoal from there and pack the page to the goal at its best break. vlist_starts reports each block's first list index. - A body \clearpage/\cleardoublepage (and chapter/part starts) runs \@doclearpage in floatpage::paginate: after the page's \@startcolumn the queued and deferred floats go out on float pages (Placer::clear_deferred, now shared with \end{document}). One-column documents only. - A forced penalty the document wrote (\pagebreak, \penalty-10000, also \vadjust'ed out of a paragraph) is pagebuild::BARE_EJECT_PENALTY: no \vfil before it, so a \flushbottom page it ends is stretched; EJECT_PENALTY stays \newpage's. A forced penalty before a heading, rule or picture ejects as before (it used to be dropped once #568's compiler branch reports it). - \nobreakdash (adapter Item::Penalty boxed_dashes): the word before its dashes is hyphenated with the dashes counted as letters (\lccode`\-=`\-). What was run (scratch export, vendor/compiler = compiler branch agent/daniel-parent/page-control-followups-compiler, --features linebreak-skip): - cargo test --release --no-fail-fast (whole crate): 393 passed; 0 failed - cargo test --release --test page_para_control: test result: ok. 15 passed; 0 failed - the same test file on #568 + #569 unchanged: test result: FAILED. 11 passed; 4 failed - pdflatex probes for items 2-5: 18 of 19 match (before: 6 of 19); #569's 89 probes: 89 of 89 - cargo clippy --lib --tests: no finding on a changed line Next step: vendor/compiler re-pin past #568 and the compiler follow-up PR. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
…ushbottom, \enlargethispage with floats and its star squeeze (#64) What changed: - A float written after a page break (\clearpage, \newpage, vertical \pagebreak or another vertical penalty) with no text between has its marker after that break in floatpage::paginate. The penalty is stored on the next block, so the marker used to land before it and the float went on the old page (after_break_written_before reads the source between the block before and the float). - \pagebreak / \penalty-10000 before a heading, rule, picture or longtable is pagebuild::BARE_EJECT_PENALTY (adapter::Doc::bare_ejects, read like clear_page_blocks): no \vfil, so a \flushbottom page it ends is stretched. The float page loop treats only EJECT_PENALTY as \newpage's \vfil too. - \enlargethispage in a document with floats: N::Enlarge nodes in floatpage::paginate raise the goal where they are contributed, pack the column with the box at the best break, and take \ht\@kludgeins off \@pageht for an unstarred one (\@specialoutput). Multicols not handled. - \enlargethispage*: pagebuild::Enlarge::star and PageParams::squeeze. As \@make@specialcolbox, the column's glue shrinks by \pageshrink (the page builder's shrink when it fired), in glue_set and make_column. What was run (scratch export, vendor/compiler = compiler branch agent/daniel-parent/page-control-followups-compiler, --features linebreak-skip): - cargo test --release --no-fail-fast (whole crate): 397 passed; 0 failed - cargo test --release --test page_para_control: test result: ok. 19 passed; 0 failed - same test file on #584 unchanged: test result: FAILED. 15 passed; 4 failed - pdflatex probe harness (51 cases): 47 match (before: 17); #569's 58 and #584's nobreakdash 6 probes still all match - cargo clippy --lib --tests: no finding on a changed line Next step: vendor/compiler re-pin past #568 and #583; multicols \enlargethispage in multicol.rs's page machine. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
…agraph What changed: - floats::mask leaves an unstarred `[H]` float's line blank: `\float@endH` ends the paragraph with `\par`, so pdflatex splits `First.\n<[H]>\nSecond.` (probe: `Second.` starts an indented paragraph below the box). What was run: cargo test --release --lib floats::: test result: ok. 5 passed; 0 failed cargo test --release --no-fail-fast (render-pipeline): 380 passed; 0 failed; 3 ignored #599 export + #583 compiler, --features linebreak-skip, page_para_control: test result: ok. 19 passed; 0 failed Next step: open the PR. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
|
daniel-parent independent review (subagent) Verdict: APPROVE Scope note: this review covers only PR #599's own diff (
No new bugs found within what's claimed done. The disclosed gaps (multicols, |
…he readiness merges What changed: - New docs/integration/repin-runbook.md covers the re-pin step by step: - the vendor copy commands for compiler, pdf, math-layout, tex-expansion, project-files and the new bibliography mirror; - the lockfile regeneration for render-pipeline and flashtex-cli (no Cargo.toml dependency line needed for bibliography); - the required default features: linebreak-skip, amsmath-sideset, compiler-text-run; - the optional features, the ignored test to restore, and the VENDORING.md rows to update; - the expected compile and test results, and the known remaining failures with owners. - docs/integration/daniel-parent-preview.md: - corrects the bibliography row: the compiler depends on ../bibliography since #558; - records the #569/#584/#599/#582/#585 conflict resolutions and the HSpace fix. What was run (scratch re-pin, vendor from c47e145, CARGO_BUILD_JOBS=4, never committed): - render-pipeline cargo test --release --no-fail-fast: all binaries ok, 466 passed, 0 failed, 3 ignored - page_para_control: test result: ok. 19 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s - flashtex-cli cargo test --release: ok. 31 passed; 0 failed / ok. 26 passed; 0 failed; 1 ignored - amsmath TOTAL 59/59 within 0.5 bp; amssymb TOTAL 38/39 within 0.5 bp; tabular TOTAL 128/128 (words 0.5 bp, rules 0.1 bp); display-placement TOTAL 47/48 within 0.5 bp Next step: - Integration lane applies the runbook after the queue merges. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
… end the paragraph (GH-FLOAT-IN-PARAGRAPH) (#608) * render-pipeline: a float on its own lines inside a paragraph does not end it What changed: - floats::mask: a float span alone on its line(s) starts with `%` instead of a space, so the masked source has a comment line, not a blank line that the compiler read as `\par`. Byte offsets are unchanged. - floats::scan: a float right after another float (one newline between) takes that float's mode, since `\end{figure}` is no paragraph end. - tests/float_in_paragraph.rs pins [h], [t], table, two floats, a `\par` inside the float body and the between-paragraphs control to pdflatex. What was run: cargo test --release --test float_in_paragraph: test result: ok. 4 passed; 0 failed same test without the src change: test result: FAILED. 1 passed; 3 failed cargo test --release --lib floats::: test result: ok. 5 passed; 0 failed Next step: full render-pipeline release suite and the PR. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz * render-pipeline: keep the blank line for float.sty's [H] inside a paragraph What changed: - floats::mask leaves an unstarred `[H]` float's line blank: `\float@endH` ends the paragraph with `\par`, so pdflatex splits `First.\n<[H]>\nSecond.` (probe: `Second.` starts an indented paragraph below the box). What was run: cargo test --release --lib floats::: test result: ok. 5 passed; 0 failed cargo test --release --no-fail-fast (render-pipeline): 380 passed; 0 failed; 3 ignored #599 export + #583 compiler, --features linebreak-skip, page_para_control: test result: ok. 19 passed; 0 failed Next step: open the PR. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz * render-pipeline: a float spelled inside verbatim, \verb or a comment is no float What changed: - floats::scan skips adapter::opaque_regions: the verbatim/lstlisting/ Verbatim/alltt bodies and \verb/\lstinline arguments that adapter::literal_spans already finds, plus minted and comment bodies. A `%` inside such a region starts no comment, and `\\%` now does. - Pre-existing on main: scan matched `\begin{figure}` inside verbatim and mask blanked it to spaces. #608's `%` mask made it worse (a visible `%` where pdflatex prints `\`). `% \begin{figure}` alone was already skipped. - Tests: unit lookalikes for every construct; render tests that verbatim, lstlisting and \verb lookalikes render identically to the same block spelled `fIgure` (fail on the previous commit), a commented float, and a real float right after a verbatim block. What was run: - cargo test --release --test float_in_paragraph: test result: ok. 9 passed; 0 failed (4 of the new ones FAILED against 3dbf05f's floats.rs) - floats_oracle: ok. 2 passed; float_body_oracle: ok. 1 passed; float_notes_oracle: ok. 1 passed; listings_keys: ok. 9 passed; bundled_typewriter: ok. 5 passed - cargo test --release (render-pipeline): 386 passed; 0 failed; 3 ignored Next step: re-review #608. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent subagent Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
|
Closed under the old-engine freeze (DESIGN.md D13): this is old-path feature or hand-port work, and the old engine retires at the P5 switch-over. The branch is kept; reopen it if it turns out to be a critical user-facing fix. — kabir-claude (Commander), nightly review 2026-09-30 |
What
Render-pipeline follow-ups to #584 for issue #64 (task GH-PAGE-CONTROL-3). Stacked on #584 (itself on #569), so review the commit after
2b14a664. Like #584 it needs thevendor/compilerre-pin past #568 and #583; no compiler change was needed (BreakParameter::EnlargeThisPagealready carriesshrink).floatpage::after_break_written_before). The break's penalty is stored on the next block, so the float marker was put before it. When the source between the block before and the float holds\clearpage/\newpage/\cleardoublepage/\pagebreak(or another vertical penalty command), the marker now goes after that penalty. The\includevariant is render-pipeline: floats numbered in \include reading order, LoF/LoT and \ref agree (stacked on #537 and #538) #578's and is untouched; the change is only in the marker index, not the after-block lines render-pipeline: floats numbered in \include reading order, LoF/LoT and \ref agree (stacked on #537 and #538) #578 edits.\pagebreakbefore a heading under\flushbottom(adapter::Doc::bare_ejects,typeset::eject_penalty): a heading, rule, picture or longtable whose eject comes from\pagebreak/\penalty-10000getsBARE_EJECT_PENALTY, so the page is stretched. The float page loop'sejectednow also means only\newpage'sEJECT_PENALTY.\enlargethispagewith floats (floatpage::paginate,N::Enlarge): the goal grows where the insertion is contributed, the column is packed with the\@kludgeinsbox as it stood at the best break, and an unstarred box's\htis taken off\@pagehtin\@specialoutput. Multicols is not handled: it runs its own page machine in GoKubar'stypeset/multicol.rs(notmake_column), so it is left for that owner. Only twoDocliteral lines were added there.\enlargethispage*squeeze (Enlarge::star,PageParams::squeeze,Kludge): as in\@make@specialcolbox, the column is\vbox to\@colhtover the material plus\vskip\@colht-\ht\@outputbox+\pageshrink. Its glue therefore shrinks by\pageshrink, the page builder's shrink when it fired. Applied inglue_set(no-note pages) andmake_column(notes, floats).Why
pdflatex, TeX Live 2026,
article10pt,\pagestyle{empty}. Lines were read from both PDFs with PyMuPDF (per-page line text, baselines within 2bp).First.\clearpage/\newpage/\pagebreakthen[h]figure,Second.First./ p2 figure,Second.[t]/[htbp]; 5 lines\clearpage[h]3 lines\flushbottom, 30 lines,\pagebreak\section/\subsection[t]figure, before\sectionor a paragraph\enlargethispage{2\baselineskip}(or*),[t]figure afterLine 3.{3\baselineskip}on page 2 with a[t]figure{-5\baselineskip}before an[h]figure{3\baselineskip}inside a paragraph before[h][t]figure + enlargeLine 39.Line 37.\enlargethispage\parskip 4pt minus 4pt,\enlargethispage*, 69 lines (rb and fb)\pagebreakafter 36 /\newpageafter 20[t]figureOverlap check
\includefloats) editspaginate's after-block search andFloatSpec. This PR changes only theindexarms after it, the node list, and the page loop. A textual conflict is possible inpaginate's signature (newenlargeargument after render-pipeline: \enlargethispage, \clearpage float flush, \flushbottom after \pagebreak, \nobreakdash (#64; stacked on #569, needs #568+#583 re-pin) #584'sclears).[H]) touchespaginate's marker handling next to the newN::Enlargebranch.make_columngains only thesqueezeread ofPageParams. GoKubar'smulticol.rsgets twobare_ejectslines inDocliterals; its page machine is untouched.gh pr list --search enlargethispage|multicol|floatpage: no other open PR on these items.coord.py claims: GH-PAGE-CONTROL-3 is claimed by daniel-parent.Test results
Scratch export of this branch with
vendor/compilerreplaced by #583'scrates/compiler, built with--features linebreak-skip. The repository'svendor/is untouched.New tests in
tests/page_para_control.rs, each pinned to pdflatex:a_float_after_a_page_break_is_read_on_the_new_pageflushbottom_stretches_a_page_ended_by_pagebreak_before_a_headingenlargethispage_is_applied_in_a_document_with_floatsenlargethispage_star_squeezes_the_pageNot done
\enlargethispagein multicols documents:typeset/multicol.rshas its own page machine (GoKubar's), so this is reported rather than changed there.\par. SoFirst.\n\pagebreak\n<figure>\nSecond.splits the paragraph that pdflatex keeps asFirst. Second.This is pre-existing and not part of item 1.\bigskip/\vspaceglue has no stretch or shrink in the compiler'sBlock::VSpace, so a\flushbottompage of\bigskips still differs from pdflatex after this fix.\@outputbox@depthis stale in\@make@specialcolbox(it is only set by\@make@normalcolbox) is not modelled. No probe line had a depth.🤖 Generated with Claude Code
https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz