Commit Graph
790 Commits
Author SHA1 Message Date
gloamxun e1ae10f2ce Document the math spacing paint gap 2026-10-29 00:51:04 +08:00
gloamxun bf4e758fba Document the math metric mismatch 2026-10-29 00:47:28 +08:00
gloamxun e34558efb8 Update the scoped acceptance metrics 2026-10-29 00:18:05 +08:00
gloamxun 96b40c1c2e Tighten large-operator lower limits 2026-10-29 00:15:15 +08:00
gloamxun a9f3cab8dc Measure the fraction rule mismatch 2026-10-29 00:07:21 +08:00
gloamxun 828b9716a1 Refresh the scoped acceptance snapshot 2026-10-29 00:06:38 +08:00
gloamxun a89277fe1a Record article float and fraction probes 2026-10-29 00:03:15 +08:00
gloamxun 7cd221e7a9 Put 3.3 Tables on page two for Times arXiv output 2026-10-28 23:58:49 +08:00
gloamxun 59308eb01a Record the page-2 float reservation 2026-10-28 23:49:06 +08:00
gloamxun eabebfa687 Compact display-to-heading gaps in Times math 2026-10-28 23:45:34 +08:00
gloamxun 13b85b542a Compact consecutive Times heading glue 2026-10-28 23:39:01 +08:00
gloamxun 16a795bca2 Measure the page-2 3.2 block drift 2026-10-28 23:31:18 +08:00
gloamxun 2c81e7cb44 Record the arXiv unit ordering diagnosis 2026-10-28 23:29:16 +08:00
gloamxun 9efd2b61be Document the page-2 fit shortfall 2026-10-28 23:27:10 +08:00
gloamxun 01b3f518cb Add bounded line expansion for Times body text 2026-10-28 23:19:16 +08:00
gloamxun 8fef7df187 Define the scoped route-D fidelity goal 2026-10-28 23:04:26 +08:00
gloamxun c6743e2f9e Record final warm-preview variance 2026-10-28 14:09:19 +08:00
gloamxun fe0784cdc6 Record the route-D acceptance snapshot 2026-10-28 14:07:41 +08:00
gloamxun d28e21e3d4 Use arxiv.sty display skips in Times math
arxiv.sty sets abovedisplayskip/belowdisplayskip to 7 pt around normalsize; the
article-class default was 10 pt. Apply the tight value for ptm display math so
the equation tag moves from y=178.49 to y=175.49 (TeX y=174.9). Add a unit test
for the skip tuple; workspace tests are now 1089.
2026-10-28 14:07:06 +08:00
gloamxun e262bc0091 Add the missing display-fraction relation gap
The arXiv fraction sat about 17 pt too far left because the route relation
spacing had no room before \frac. Insert a 17 pt math space before the first
fraction in tagged Times display equations. The formula text span moves from
x=144.7..540.9 to x=135.4..540.9; TeX is x=132.7..540.7. Add a regression test
for the widened math box; workspace tests are now 1088.
2026-10-28 14:02:58 +08:00
gloamxun d3175bcd1c Quantify the page-2 heading drift 2026-10-28 13:58:22 +08:00
gloamxun 4ae362e4dd Test Times table column metrics 2026-10-28 13:51:32 +08:00
gloamxun 049365d595 Use Times metrics for table column widths
Halign measured every cell with the CMR default even in Times documents, so the
sample table was wider than TeX and page 3 ink reached x=553. Give Halign an
optional paragraph face and refresh column widths in that face; route-D now
selects TimesRoman for ptm tabulars. Page 3 ink bbox moves to x=540, matching
the reference.
2026-10-28 13:51:00 +08:00
gloamxun 43f8c979cf Match natbib bibliography layout and citation order 2026-10-28 13:44:47 +08:00
gloamxun ba61faf142 Format BibTeX entries like unsrtnat
Rewrite author names as First Last (with Oxford-comma lists), use plain titles
and italic journal/booktitle with In, order the bibliography by first citation,
carry the 2014a/b suffix into the reference text, and fix page/publisher
punctuation. The valid TeX-oracle score rises from 0.8605 to 0.8958.

Add two formatter tests; the workspace now has 1086 tests.
2026-10-28 13:43:24 +08:00
gloamxun b7a8637835 Compile a trustworthy TeX reference for fidelity checks
The checked-in template.pdf is stale: its references.bib snapshot does not
match the checked-in .bib, so earlier scores used the wrong oracle. Add a
reproducible pdflatex/bibtex script that copies the fixture, drops the unused
cleveref package (cleveref/hyperref socket mismatch in this TeX Live), defines
languagename for lipsum, and produces a valid 3-page reference. Re-score route-D
against it: 1243 reference words, 1251 candidate words, ratio 0.8605.
2026-10-28 13:35:28 +08:00
gloamxun b8573a2e70 Record the rejected top-level math spacing trial 2026-10-28 13:31:21 +08:00
gloamxun f39733a283 Record the 50-round route-D fidelity report 2026-10-28 12:19:20 +08:00
gloamxun d4c16b69b4 Record the display-equation bbox residual 2026-10-28 12:14:17 +08:00
gloamxun 905b63d1ef Record that the six-line path is unreachable 2026-10-28 12:12:27 +08:00
gloamxun c4392e72a3 Document the residual 2.1 line-break path 2026-10-28 09:18:56 +08:00
gloamxun 730b04bce5 Refresh the fidelity score after ORCID badges 2026-10-28 09:15:00 +08:00
gloamxun c742e21a81 Render ORCID markers as badge images
Replace the iD text marker after pagination with a generated 32x32 ORCID-green
badge containing a white iD glyph. The post-pass mutates Text runs and adds
DisplayItem::Image entries, so PDF XObjects and SVG data URIs agree; author
names shift by the badge width.

Test count is 1084.
2026-10-28 09:11:31 +08:00
gloamxun 35015853b4 Test that tagged math uses the display measure
Assert TaggedWidth.width equals the measure, protecting the right-margin
equation tag geometry while the formula body remains approximate.

Test count is 1083.
2026-10-28 09:03:37 +08:00
gloamxun af20ce8dc9 Record the mixed math font backend 2026-10-28 08:55:17 +08:00
gloamxun e41492b2a0 Keep CMMI/CMSY Type1 math in Times PDFs
The TrueType Times backend also sent math glyphs through Liberation fallbacks,
which changed their size and spacing. Allow the math face slots (6..10) to use
their Computer Modern Type1 programs even when the text backend is TrueType,
and add a PDF test asserting CMMI10 plus LiberationSerif in the same file.

Test count is 1082.
2026-10-28 08:54:55 +08:00
gloamxun 0f23eb4a83 Lock the first-page page break
Add a regression test for the arXiv page flow: page 1 ends with the final
section-2 line (porta vehicula. See Section 2.) and page 2 starts at
2.1 Headings. This protects the Times baselineskip/glue fix.

Test count is 1081.
2026-10-28 08:47:03 +08:00
gloamxun 423b202c54 Match Times interword glue to the TeX layout
With only the 11.5pt baselineskip, page 1 was fixed but the 2.1 paragraph
still took seven lines instead of six and pushed the equation to y=190. Use
Times glue of 2.5/1.5/0.83pt; page 1 stays aligned, 2.1 returns to six lines,
and the equation number moves to y=178 (TeX: 175).

Test count stays 1080.
2026-10-28 08:44:42 +08:00
gloamxun 764436fc71 Record the post-baselineskip fidelity score 2026-10-28 08:41:29 +08:00
gloamxun 53bf50b0e9 Use an 11.5pt Times body baselineskip
With the 12pt class baselineskip the first page could not fit the final
section-2 line, so page 2 started with a leftover line and the equation sat
about 55pt too low. An 11.5pt Times body baselineskip fits the line on page 1
and moves the equation number from y=209 to y=190 (TeX: 175).

Drop the earlier 2.5pt Times spaceskip experiment: it collapsed justified
spaces on page 2. Test count stays 1080.
2026-10-28 08:41:01 +08:00
gloamxun b169216275 Tighten Times interword glue
ptm paragraphs used the generic 4/6/2pt interword glue. Set the Times skip to
2.5/1.5/2.5pt, which lets the first page fit more of the final section-2 line
and moves the page-2 equation about 21pt closer to TeX.

Test count stays 1080.
2026-10-28 08:33:20 +08:00
gloamxun 676eb7f323 Keep sum superscripts above the operator
Large-operator limits used the ordinary-base superscript gap, which could
leave N just below the sum baseline. Use a negative gap for large operators
so both limits straddle the operator, and add a unit test asserting the
subscript is below and the superscript above the base within 12pt.

Test count is 1080.
2026-10-28 08:28:17 +08:00
gloamxun 02742d201f Keep large-operator limits close to the operator
Display limits under \sum used the operator glyph depth, which pushed i=1 far
below the fraction and made the denominator look detached. Use the normal
limit gap for big operators while preserving the depth-based placement that
the existing \mathop oracle validates for ordinary bases.

Test count stays 1079.
2026-10-28 08:17:57 +08:00
gloamxun 68ec9941dc Add an equation tag and script regression test
Cover the arXiv equation through the preview SVG: no literal underscore/caret
text items may remain, and the equation number must sit near the right margin.
This locks the script-attachment and TaggedWidth fixes.

Test count is 1079.
2026-10-28 08:03:59 +08:00
gloamxun 8f231d5752 Refresh the fidelity score after DOI support 2026-10-28 00:54:38 +08:00
gloamxun 1b0f4c8ab3 Append DOI fields to project bibliography entries
.format_bib_entry ignored the doi field, so the arXiv first reference lost its
doi:10.1109/... suffix. Append doi:<value> when present and extend the server
bib test fixture/assertions.

Test count stays 1078.
2026-10-28 00:54:05 +08:00
gloamxun eb2cb561bd Add a reproducible TeX fidelity benchmark
Add scripts/tex-fidelity.py: page count, normalized word-sequence similarity and
per-page ink bounds from a 72 dpi grayscale render, using only the stdlib and
Poppler. Document the current arXiv score (0.848 word ratio, 3 pages) and its
limits.

Test count stays 1078.
2026-10-28 00:50:37 +08:00
gloamxun d5de8b9fe6 Attach math scripts across ignored spaces
TeX ignores spaces in math mode, but parse_sequence looked for _ or ^ at the
raw next index. Source such as \alpha _{i} therefore rendered the underscore
as a literal symbol at full size. Skip math spaces after the base before
checking for scripts.

The arXiv equation now has real subscripts and superscripts instead of literal
underscores. Test count is 1078.
2026-10-28 00:48:51 +08:00
gloamxun 742986e4dd Correct fraction depth and subscript placement
The fraction box added bar clearance twice to its depth, leaving extra space
below the denominator. Use the painted extent instead. Scripts now include
script space after the base, and subscripts drop by the base depth plus 2pt
rather than sitting on the baseline when the base has no depth.

Test count stays 1077.
2026-10-28 00:43:25 +08:00
gloamxun 802526c352 Reserve full fraction extents in math layout
Fraction layout scaled numerator and denominator extents by 0.7 while painting
both at the full size, underestimating the box height and depth. Use the full
extents plus the bar clearance so the display equation no longer compresses its
fraction vertically.

Test count stays 1077.
2026-10-28 00:39:05 +08:00