Skip to content

render-pipeline: \maketitle layout, titlepage, twocolumn title, book matter - #114

Closed
GoKubar wants to merge 2 commits into
mainfrom
agent/kabir-claude/maketitle-layout
Closed

GoKubar wants to merge 2 commits into
mainfrom
agent/kabir-claude/maketitle-layout

Conversation

@GoKubar

@GoKubar GoKubar commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

What

\maketitle title-block layout in crates/render-pipeline, transcribed from article.cls / report.cls / book.cls:

  • \@maketitle (article.cls 236-251), laid out at the \maketitle command from the compiler's TitleBlock:
    • vertical skips: \null, \vskip 2em, the center environment's \addvspace, \vskip 1.5em, \vskip 1em, \@endparenv's \@topsepadd, then \vskip 1.5em;
    • title in \LARGE;
    • authors as \large tabular[t]{c} boxes: strut rows, \tabcolsep, \and as 1em plus .17fil, \lineskip .5em, line breaks only between tabulars;
    • date paragraph set at the \normalsize baselineskip.
  • titlepage form (report/book default, article [titlepage]): own page, \vskip 60pt / 3em / 1.5em, \lineskip .75em, three \vfil sharing the page (+ .0001fil under \raggedbottom), \thispagestyle{empty}, page counter reset (again at the end when one-sided).
  • \twocolumn[\@maketitle]: a \textwidth box above both columns; the first page's columns lose its height + \dbltextfloatsep (\@topnewpage, \@combinedblfloats).
  • book \frontmatter / \mainmatter / \backmatter:
    • \cleardoublepage, with parity tested before the \pagenumbering that follows it;
    • roman/arabic numbering;
    • chapters outside \mainmatter are unnumbered and their running head is the title alone.
  • Page builder (verified with \showoutput):
    • an overfull column shrinks under any page style (\@makecol's \vbox to\@colht);
    • an overfilling box fires only when the page's shrink cannot absorb it (tex.web §1005).

Evidence

  • page-frame oracle: 12 new MacTeX pdflatex fixtures (33–44), 44 total. 31/32 and 33–44 now gate body baselines within 0.1pt; all pass. The exception is 35 (\thanks), which is gated on chrome/edges/x only.
  • cargo test --release (render-pipeline) green.
  • HW1/HW2 PDFs and v2 JSON byte-identical to main: at a9952df (sha256 cbca7ada…/011d4cea…, c500bf4c…/6f177d4e…), and after merging main a630863 (merge 309e73f, clean) to a630863's own output (f16b0a02…/03979027…, 2e2fc6ab…/ed42e28a…); tests re-run green on the merge.

Not implemented

  • \thanks footnote marks and \footins page-bottom text: the pipeline has no footnote insertion area, and the compiler strips \thanks with a diagnostic.
  • A \twocolumn[\@maketitle] after other material (it would start a new page) is set in the column with a warning. Floats together with a twocolumn title don't shorten the columns (warning).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu

GoKubar and others added 2 commits September 13, 2026 06:04
…matter

\maketitle is laid out from the compiler's TitleBlock at its source
position (article.cls 169-251, report.cls/book.cls identical):
\@maketitle's \null, \vskip 2em, center's \addvspace{\@topsep}, \LARGE
title, \vskip 1.5em, \large tabular[t]{c} authors (\@arstrut rows,
\tabcolsep, \and = \hskip 1em plus .17fil, \lineskip .5em), \vskip 1em,
the date paragraph at the \normalsize \baselineskip, \@endparenv's
\addvspace{\@topsepadd} and \vskip 1.5em (a new VBlock::pre_space_after
keeps the 1.5em as \lastskip for a following \section). The titlepage
form (report/book default, article [titlepage]) sets its own page:
\null\vfil\vskip 60pt, \vskip 3em, \lineskip .75em, three \vfil sharing
the page (plus \raggedbottom's .0001fil), \thispagestyle{empty}, page
counter reset (again at the end when one-sided). \twocolumn[\@maketitle]
is a \textwidth box above both columns of the first page, which lose
its height plus \dbltextfloatsep (\@topnewpage, \@combinedblfloats).
book \frontmatter/\mainmatter/\backmatter: \cleardoublepage (parity
tested before the \pagenumbering that follows), roman/arabic numbering,
unnumbered chapters marked with their title alone outside \mainmatter.

Page builder (verified against \showoutput of fixture 42): a column
taller than \vsize shrinks whatever the page style (\@makecol's
\vbox to\@ColhT), and an overfilling box fires only when the page's
shrink cannot absorb it (tex.web 1005).

Oracle: 12 new pdflatex fixtures (33-44), 44 total in
tests/page_frame.rs; 31/32 and 33-44 now gate body baselines within
0.1pt, except 35 (\thanks: footnote marks and \footins text are not
implemented; the compiler strips \thanks). cargo test --release green.
HW1/HW2 PDFs and display lists byte-identical to main a9952df.

Implementation-Agent: Claude Opus 5 (subagent kabir-claude maketitle layout, mac-m5pro-kabir)
Commit-Executor: Claude Code direct Git
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
Clean merge (vendor/compiler + vendor/math-layout re-pin, amsmath_inline tests); no TitleBlock/\and/LineBreak changes in the re-pinned parser.

Implementation-Agent: Claude Opus 5 (subagent kabir-claude maketitle layout, mac-m5pro-kabir)
Commit-Executor: Claude Code direct Git
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Xd5Hmwh5GHNTiAmHUJ1MZu
@GoKubar

GoKubar commented Sep 13, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto main 1d4604d as #122 (agent/kabir-claude/maketitle-layout-r @ 7185035). That PR has no force-push and keeps this PR's content, and its gates are green. HW1/HW2 are byte-identical to 1d4604d. The typeset.rs conflict was resolved as vskip_after: vskips, pre_space_after: None.

@GoKubar

GoKubar commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

Closing as superseded — the work is already on main.

Replacement: 7185035 same title, landed via integration/2026-09-13i

Closed by the integration lane while clearing a 219-PR backlog (112 of them drafts). If this is wrong, reopen it and tell me — I would rather be corrected than leave stale work buried.

— orchestrator-astra (Commander)

@GoKubar GoKubar closed this Sep 15, 2026
@GoKubar
GoKubar deleted the agent/kabir-claude/maketitle-layout branch September 16, 2026 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant