Skip to content

Revert \Collect@Body: it unmasks a larger loss, as #482 had already found - #618

Merged
tannevaled merged 1 commit into
mainfrom
revert-collect-body
Oct 17, 2026
Merged

tannevaled merged 1 commit into
mainfrom
revert-collect-body

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Reverts #616 (d9d2d2a, v0.256.0). The defect it fixes is real; what it costs is larger, and I merged it on a measurement that could not see the cost.

The evidence I used was wrong

#616 read the ink — the count of glyph paths drawn — and found it RISING on the two papers whose page count fell most: +959 and +1076 glyphs. I took that as proof that no content was lost and that the shorter page counts were denser typesetting.

Ink cannot tell drawn in different places from drawn on top of itself. measure pagedens can, and on 2304.11274 against its reference:

page ours reference interline step
1 742 / 65×2 630 / 51×2 9.31 / 11.96
3 345 / 27×2 716 / 91×2 11.96 / 11.54
4 220 / 18×2 648 / 48×2 11.96 / 11.96
5 175 / 13×2 867 / 56×2 11.96 / 11.96
6 1004 / 75×2 603 / 42×2 9.77 / 11.96

Three pages nearly empty, three overfull with the interline step crushed to 9.31 and 9.77pt where every other page of the same document sits at 11.96. That is content overlaid, not paginated — exactly what #482 reported on 2026-09-27, and the reason it has stayed a draft for three weeks. I did not read its comments before building the same fix a second time.

Measured both ways

Same binary base, same fonts, same corpus paths:

paper with #616 reverted reference
2304.11274 10p / 6123w 13p / 7466w 12p / ~7756w
2405.20319 10p / 9217w 15p / 11116w 14p
2404.09749 6p / 5873w 10p / 6768w 8p
2304.01951 10p / 9555w 15p / 11595w 10p / 10930w

Against the reference’s word count, 2304.11274 goes from 79% to 96%.

Isolated, reproducible in one line

\makeatletter\renewenvironment{abstract}{}{}\makeatother

→ 13 pages, 7406 words. With the collection: 10 pages, 6123 words. So the collection is the trigger and the mechanism is downstream of it: acmart stores the abstract in \@abstract and emits it from \@mkabstract inside the title block.

What this costs, said plainly

2304.01951 goes back to 15 pages against a reference of 10. That paper has two \begin{abstract} and the collection removed the duplicate, which is how it landed exactly on 10. But it also had 11595 words against the reference’s 10930 — 106%, i.e. too much content — so what the revert restores there is a duplication, not missing text. Three papers keep their content; one keeps a duplicate. That is the better trade, and #482 reached it independently.

State of the search

Nine hypotheses falsified between #482 and today, including three of mine:

  • teaserfigure — acmart.cls:2065 is a sixth \Collect@Body environment that Embed environ.sty and trimspaces.sty: an abstract was losing its first LETTER #482 had not listed, and it is the only thing that separates the two biggest losers from the other seven papers. Neutralising it moves 6123 words to 6065: correlation, not cause.
  • re-splicing the body as source rather than collecting tokens: byte-identical results.
  • a doubly-closed group from readRawEnvBody: no measurable change.

All of it is in #615, reopened, so the next attempt starts from the ninth hypothesis and not the first.

🤖 Generated with Claude Code

…ad found

This reverts d9d2d2a (#616). The defect it fixes is real; what it costs is
larger, and I merged it on a measurement that could not see the cost.

WHAT #616 CLAIMED, AND WHY THE EVIDENCE WAS WRONG. It read the ink — the count
of glyph paths drawn — and found it RISING on the two papers whose page count
fell most: +959 and +1076 glyphs. I took that as proof that no content was lost
and that the shorter page counts were denser typesetting.

Ink cannot tell "drawn in different places" from "drawn on top of itself".
`measure pagedens` can, and on 2304.11274 against its reference it says:

    page   ours              reference        interline step
       1   742 / 65x2        630 / 51x2       9.31 / 11.96
       3   345 / 27x2        716 / 91x2      11.96 / 11.54
       4   220 / 18x2        648 / 48x2      11.96 / 11.96
       5   175 / 13x2        867 / 56x2      11.96 / 11.96
       6  1004 / 75x2        603 / 42x2       9.77 / 11.96

Three pages nearly empty, three overfull with the interline step CRUSHED to
9.31 and 9.77pt where every other page of the same document is at 11.96. That
is content overlaid, not paginated — exactly what #482 reported on 2026-09-27
and the reason it has stayed a draft for three weeks.

MEASURED BOTH WAYS, same binary base, same fonts:

    paper        with #616        reverted          reference
    2304.11274   10p /  6123w     13p /  7466w      12p / ~7756w
    2405.20319   10p /  9217w     15p / 11116w      14p
    2404.09749    6p /  5873w     10p /  6768w       8p
    2304.01951   10p /  9555w     15p / 11595w      10p / 10930w

Against the reference's word count, 2304.11274 goes from 79% to 96%.

ISOLATED, and reproducible in one line. Neutralising the collection restores
everything:

    \makeatletter\renewenvironment{abstract}{}{}\makeatother
    → 13 pages, 7406 words   (with the collection: 10 pages, 6123 words)

So the collection is the trigger and the mechanism is DOWNSTREAM of it: acmart
stores the abstract in \@abstract and emits it from \@mkabstract inside the
title block.

WHAT THIS COSTS TO REVERT, said plainly: 2304.01951 goes back to 15 pages
against a reference of 10. That paper has TWO \begin{abstract}, and the
collection removed the duplicate, which is how it landed exactly on 10. It also
had 11595 words against the reference's 10930 — 106%, i.e. too MUCH content —
so what the revert restores there is a duplication. Three papers keep their
content; one keeps a duplicate. That is the better trade, and it is the one #482
reached independently.

Nine hypotheses are now falsified between #482 and this session, including three
of mine today: teaserfigure (acmart.cls:2065 is a SIXTH \Collect@Body
environment #482 had not listed, and it correlates with the two biggest losers —
neutralising it changes 6123 words to 6065, so it is not the cause), the
re-splice-as-source reading, and the double group close. All of it goes back
into #615.

Co-Authored-By: Claude Opus 5 <[email protected]>
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