Skip to content

F2: no blank line above the captions of full-width figures - #204

Merged
SamMausberg merged 1 commit into
mainfrom
writing/f2-caption-gap
Oct 2, 2026
Merged

SamMausberg merged 1 commit into
mainfrom
writing/f2-caption-gap

Conversation

@SamMausberg

Copy link
Copy Markdown
Owner

F2: no blank line above the captions of full-width figures

Figures 3 and 5 each had about 12 pt more space above their captions than every other figure. This PR removes that space without changing the size or content of any figure, so the main text now ends about four lines higher on p10.

Cause

Two space tokens followed each of these full-width pictures:

  • one from the end of the figure file's last line, after \end{tikzpicture};
  • one from the end of the \input{figures/...} line in the float block.

Figures 3 and 5 are drawn at the full text width, so the two spaces pushed the paragraph a point or so past its line. TeX broke the line after the picture. The link anchor that hyperref places at the start of a caption then ended up on a line of its own, an empty line of about 12 pt between the picture and the caption.

The figure's own box was tight in every test: boxing the pictures in the full paper shows the extra space sits between the box and the caption, not inside the box. The float's vertical list (\showlists) shows the empty line directly. The narrower figures (1, 2, 4, 6) had slack in their line and were never affected.

Fix

  • Every figure file under paper/figures/ now ends its last line with %, including the three research-notes figures.
  • Every \input{figures/...} line in the paper's float blocks (intro.tex, setup.tex, app_exactness.tex) ends with %.
  • style.tex states the rule, so new figures follow it.

Effect

Gap from the lowest text in each figure to its caption, measured from pdftotext word boxes:

Figure main 25ccee6 this branch
1 (breakdown) 18.2 pt 18.2 pt
2 (mechanism) 18.2 pt 18.2 pt
3 (candidates, full width) 30.1 pt 18.2 pt
4 (frontier) 18.2 pt 18.2 pt
5 (transport, full width) 30.1 pt 18.2 pt
6 (divergence, appendix) 18.2 pt 18.2 pt

On p10 the main text ends earlier than on main:

On p10 main 25ccee6 this branch
Limitations heading (left column) line 46 line 42
Conclusion heading (right column) line 31 line 27
References heading (right column) line 45 line 40

That is about four lines freed in each column.

Checks

  • Build (CPU only): 0 LaTeX warnings, 0 overfull boxes. Paper 50 pages, References on p10; research notes 54 pages, 0 warnings.
  • The reference checker passes as part of the build.
  • pre-commit and numdiff are queued in the CPU window, because a timed GPU hold is running; results to follow. No number changes: the diff only adds % characters and three comment lines.

@SamMausberg

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-02T11:09:12.567952Z b1d57dd Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SamMausberg
SamMausberg force-pushed the writing/f2-caption-gap branch from 07737d9 to ceccf04 Compare October 2, 2026 10:19
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 07737d9191

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SamMausberg

Copy link
Copy Markdown
Owner Author

Rebased onto main 60cf549 at cf63fce; a clean rebase that adds only % characters and three comment lines. Checks:

  • Build at the rebased head: 50 pp, 0 LaTeX warnings, 0 overfull boxes. Conclusion and References both on p10 (References heading at line 44 of the right column).
  • Pre-commit passes on the pre-rebase head.
  • numdiff: no numbers lost. The one "added" token (320) was an artifact of comparing the old base with a main that Appendices C and D prose: targeted fixes by paragraph; D.4's summary as a list #200 had just changed.

@codex review

@SamMausberg
SamMausberg force-pushed the writing/f2-caption-gap branch from ceccf04 to cf63fce Compare October 2, 2026 11:01
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: cf63fcebf3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

A space token after \end{tikzpicture} (the figure file's last line) and
another after \input{figures/...} (the float's line) made Figures 3 and 5,
which are drawn at the full text width, overflow their line by a few
points. TeX then broke the line, and the caption's link anchor, which
hyperref places in horizontal mode, went onto a line of its own: a blank
line of about 12 pt above each of those captions. Every figure file now
ends with % and every \input line in the paper's float blocks does too;
style.tex states the rule. No figure changes size or content.

Gap from the lowest figure text to the caption (pdftotext word boxes), main
25ccee6 against this branch: Figures 3 and 5, 30.1 pt to 18.2 pt; Figures
1, 2, 4 and 6 unchanged at 18.2 pt. On p10 the main text ends about four
lines higher in each column.
@SamMausberg

Copy link
Copy Markdown
Owner Author

Rebased onto main 136e2b0 (after #205) at b1d57dd. The one conflict was the Fig 1 \input line next to #205's caption edit; it keeps #205's caption and adds this PR's trailing %. Build: 50 pp, 0 warnings. Conclusion and References both on p10.

@codex review

@SamMausberg
SamMausberg force-pushed the writing/f2-caption-gap branch from cf63fce to b1d57dd Compare October 2, 2026 11:06
@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE at cf63fce

Reviewer 2. The diff adds only % after each figure's \end{tikzpicture} and after each \input{figures/...} line, plus three comment lines in style.tex. I built this head and main 60cf549 side by side (one core each, niced, during an untimed hold) and compared them three ways: page renders at 150 dpi, word bounding boxes from pdftotext -bbox (in points), and the full extracted text.

  • Figs 3 and 5, the fix. Both captions move up 11.96 pt (Fig 3: "Figure" from y = 218.50 to 206.55 pt on p6; Fig 5: 257.31 to 245.36 pt on p9), and the text below them moves with them. Every word inside both pictures keeps its position and width. The renders show the blank line gone, leaving the normal caption skip.
  • No figure changed size. In all six main-text and appendix figures, every word inside the picture keeps its width (to 0.01 pt), and no caption other than those of Figs 3 and 5 moves.
  • One side effect, harmless. Figs 1, 2, 4 and 6 move right by 2.49 pt, the same amount for every word in each figure. On main, the two trailing spaces left one space's glue inside each centred line and pushed those figures off centre by half of it. They are now exactly centred. Figs 3 and 5 overflowed instead, which is the bug the PR fixes, so they do not move sideways.
  • Content unchanged. The extracted text of the paper differs from main's by one hyphen: one line break moved in the reflow after p9, which also changes p10-p13 slightly. The research notes' text is character-identical.
  • Build. Paper 50 pp, notes 54 pp. 0 LaTeX warnings, 0 overfull or underfull boxes. The Conclusion and the References heading are on p10, as on main. check_paper_references.py --rev HEAD is clean, and numdiff against 60cf549 shows no change.
  • Codex: clean on cf63fce (11:03).

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: b1d57dde91

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@SamMausberg

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE at b1d57dd

Reviewer 2. A delta review of the rebase over #205, with the same side-by-side comparison against main 136e2b0 as at cf63fce (issuecomment-5950987022).

  • Diff of diffs (60cf549...cf63fce against 136e2b0...b1d57dd, paper sources): empty. The conflict resolution keeps Paper: the DFlash cycle split (Figure 1 bar, Appendix E.2, head ceiling; fold #192) #205's Fig 1 caption and adds only this PR's % to the \input line.
  • One more fix. Paper: the DFlash cycle split (Figure 1 bar, Appendix E.2, head ceiling; fold #192) #205's new DFlash bar made Fig 1 overflow its line too, so on main 136e2b0 it now has the same blank line above its caption. Here Fig 1's caption moves up 11.96 pt (from y = 238.20 to 226.25 pt on p2), as Fig 3's does (218.50 to 206.55, now on p7) and Fig 5's (257.31 to 245.36, p9).
  • No figure changed size. Every word inside every picture keeps its width. Figs 2, 4 and 6 move right by 2.49 pt as before, now exactly centred. Figs 1, 3 and 5 do not move sideways. No other caption moves.
  • Reflow. The text recovered on p2 and p7 moves §4.5's heading to the foot of p7's right column. Three lines follow it before Table 1, so it is not stranded. §5 starts at the top of p8's right column. Fig 4 still prints on p8 beside "Figure 4 plots ...". The extracted text differs from main's by two hyphens (moved line breaks), and the research notes' text is character-identical.
  • Build (my own, one core, niced, during an untimed hold): paper 50 pp, notes 54 pp. 0 LaTeX warnings, 0 overfull or underfull boxes. The Conclusion and the References heading are on p10. check_paper_references.py --rev HEAD is clean, and numdiff against 136e2b0 shows no change.
  • Codex: clean on b1d57dd (11:09).

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