Commit Graph
524 Commits
Author SHA1 Message Date
gloamxun 5c2ba9fad0 Implement pdfTeX random primitives with checkpointed state 2026-11-21 01:10:55 +08:00
gloamxun 361e8d070f Reuse decoded Type 1 fonts across native revisions 2026-11-20 16:55:48 +08:00
gloamxun 6e573dc1ce Run cancellable pdfTeX matching in native frontends 2026-11-20 16:43:48 +08:00
gloamxun ca60c66a17 Reuse the active edit line within the checkpoint budget 2026-11-20 16:08:36 +08:00
gloamxun e4a265ca6c Reuse valid checkpoints across auxiliary file changes 2026-11-20 15:17:28 +08:00
gloamxun 0a21eb27a7 Reuse session-verified source versions in native source maps 2026-11-20 14:18:42 +08:00
gloamxun 287d4a7cf0 Validate live checkpoint reuse across atomic project file changes 2026-11-20 08:26:44 +08:00
gloamxun 24ea6ef7ee Reuse fixed file identity within a live alias scan 2026-11-19 22:02:53 +08:00
gloamxun 37ae9b5e9e Verify real A3 continuation at the edited line 2026-11-19 20:35:19 +08:00
gloamxun ee22f25ee0 Resolve TeX inputs with the default suffix alternatives 2026-11-19 20:01:08 +08:00
gloamxun 3ffa452fd1 Use file identities for Unix alias checks 2026-11-19 18:43:34 +08:00
gloamxun 41af3d8d22 Cancel jobs while their private file sync drains 2026-11-19 18:01:50 +08:00
gloamxun b5e87a8706 Stop obsolete draft rendering between pages 2026-11-19 17:28:55 +08:00
gloamxun eda01fb689 Show native preview during durable file publication 2026-11-19 17:19:11 +08:00
gloamxun 75d156f0cf Retain recent checkpoints for alternating body edits 2026-11-19 17:02:26 +08:00
gloamxun 393fba42d8 Reuse closed events and line breaking after a checkpoint 2026-11-19 16:39:08 +08:00
gloamxun 28668ea10f Refresh interactive TeX state across successive edits 2026-11-19 16:19:29 +08:00
gloamxun 5163fc9854 Overlap durable sync for interactive document drafts 2026-11-19 16:01:20 +08:00
gloamxun 5aa7dc7331 Stream native failure manifests during publication 2026-11-19 14:50:11 +08:00
gloamxun 72ed779749 Promote verified native PDF and box capacity support 2026-11-19 14:39:39 +08:00
gloamxun 026bb15d9b Coalesce native draft ledger writes
Preserve checked final ledger bytes with one private file and keep the published ledger when unchanged. Record the full workspace, browser, and original publisher differentials.
2026-11-19 12:57:14 +08:00
gloamxun 43231a48c0 Reuse validated checkpoint executors during native preview 2026-11-19 11:16:40 +08:00
gloamxun 06463399bb Enable automatic native checkpoints and browser preview 2026-11-19 10:05:41 +08:00
gloamxun 0abf700817 Resume native editor jobs through verified checkpoints 2026-11-19 09:35:33 +08:00
gloamxun 2741546ca8 Advance native LaTeX execution and preview 2026-11-18 22:17:21 +08:00
gloamxun 7cd221e7a9 Put 3.3 Tables on page two for Times arXiv output 2026-10-28 23:58:49 +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 01b3f518cb Add bounded line expansion for Times body text 2026-10-28 23:19:16 +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 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 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 1959b18f82 Assert ORCID badges in the SVG preview
The arXiv preview must contain exactly two PNG data URIs for the author badges
and no iD text marker. This covers the SVG half of the ORCID post-processing;
the PDF half is covered by the display-list unit test.

Test count stays 1084.
2026-10-28 09:20:33 +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 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 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 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 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 764bc18850 Place display equation tags at the right margin
Tagged display math used the body width as its box, so the equation number sat
immediately after the formula. Add a TaggedWidth atom carrying the line
measure: the body is centred in the measure and the tag is painted at its right
edge.

The arXiv equation number now matches the TeX right-margin placement; the
formula body remains approximate. Test count stays 1077.
2026-10-28 00:32:56 +08:00
gloamxun 0562b13be8 Use the real lipsum package text
The filler array was a short Lorem ipsum paraphrase, so \lipsum[1] produced
about half the lines of the lipsum package and every later page break was
wrong. Replace the ten paragraphs with the actual lipsum.ltd.tex text.

The arXiv sample now has the same abstract/introduction flow as TeX and both
figure and table land on page 3 above 3.3/3.4; test count stays 1077.
2026-10-28 00:26:30 +08:00
gloamxun 3780aef88c Keep an iD marker for ORCID author graphics
Author metadata contains an ORCID PDF icon inside href; the author block was
dropping the include and showing only the name. Replace orcid.pdf includegraphics
and orcidlink with an iD text marker so the author line keeps a recognisable
ORCID cue. This is not the vector logo; it is a text approximation.

Test count is 1077.
2026-10-28 00:21:52 +08:00
gloamxun fd9ee0740b Use Times metrics for bold and italic text
Add ptmb8t/ptmri8t/ptmbi8t metrics and TimesBold/TimesItalic/TimesBoldItalic
paragraph faces. A ptm document now maps Roman, bold, italic and bold-italic
base faces to the Times family, so headings and emphasised runs use Times
widths while the PDF backend continues to embed Liberation Serif.

The arXiv output is unchanged at 3 pages; previews measured 12.5-17.5 ms warm
and 191 ms cold. Test count is 1076.
2026-10-28 00:08:19 +08:00
gloamxun e9bbd4bd87 Use Times metrics for ptm documents
Add a merged ptmr8t TFM asset, a TimesRoman paragraph face and Cmr10Metrics
entry, map a ptm Roman paragraph to it, and select the Liberation Serif
TrueType PDF backend for those projects. The title is uppercased rather than
small-capped so its widths use Times metrics.

The arXiv PDF now embeds Liberation Serif for body text; title/author/abstract
land at y=88/173/277pt with three pages and all references. Headings and bold/
italic Times faces still use CMR metrics.

Test count is 1075.
2026-10-28 00:00:34 +08:00
gloamxun 13d0dd2fb7 Draw a framed rule body for fbox figures
A figure whose body is \rule now gets a small raster fbox approximation:
black frame, white gap and filled body, centred in the float. Image height is
already part of the float height, so the caption follows instead of overlapping.

The arXiv figure is now a centred framed square; it is still on page 2 while
TeX puts it on page 3. Test count stays 1074.
2026-10-27 23:45:30 +08:00
gloamxun 576626fe04 Centre table floats without losing rules or columns
The rule rectangle used width-margin for its right edge, so a centred table
shrank or lost its booktabs rules. Derive the right edge from the last column
offset instead, then centre a table float by shifting its margin. All three
columns and the rules now stay inside the measure.

Test count stays 1074.
2026-10-27 23:42:15 +08:00
gloamxun aa2f3cb0af Centre raster images inside floats
Add an x offset to VerticalItem::Image and use it when placing a decoded image
in a float, so a 0.4\textwidth plot is centred while its caption remains
centred across the float. Other image uses keep x=0.

Test count stays 1074.
2026-10-27 23:37:54 +08:00