Commit Graph
199 Commits
Author SHA1 Message Date
gloamxun 65204a7dae Rebind native format TFM resources after project relocation 2026-11-28 01:46:37 +08:00
gloamxun 1ad9c4db82 Bind native format inputs after moving a project tree 2026-11-28 01:29:28 +08:00
gloamxun c2e1e64a60 Retain XeTeX image lookup paths in native formats 2026-11-28 01:06:12 +08:00
gloamxun 6a118d3b60 Reuse PDF preview pages across object renumbering 2026-11-28 00:46:52 +08:00
gloamxun c1c3c25b3f Allocate mapped Type 1 import objects in PDF write order 2026-11-28 00:30:57 +08:00
gloamxun 861c9dbfc9 Allocate indirect PDF import objects during native writes 2026-11-28 00:06:51 +08:00
gloamxun f14669ae39 Honor PDF draft mode in native execution and publication 2026-11-27 22:48:48 +08:00
gloamxun af19a26c23 Order native PDF link continuations with shipout effects 2026-11-27 22:34:01 +08:00
gloamxun e95d1264da Register native PDF navigation and raw objects in write order 2026-11-27 22:19:15 +08:00
gloamxun 70ebacb056 Allocate compressed PDF object streams during native output 2026-11-27 22:02:52 +08:00
gloamxun d87464fde3 Reserve PDF image objects before expanding options 2026-11-27 21:40:49 +08:00
gloamxun 342bedf9b4 Allocate native PNG transparency and palette objects 2026-11-27 21:30:31 +08:00
gloamxun 51451813dc Allocate and share native PDF font objects 2026-11-27 16:15:18 +08:00
gloamxun d12c4b034b Share pdfTeX image and page object numbers 2026-11-27 15:54:24 +08:00
gloamxun 57a7097857 Restore PDF Forms from native formats 2026-11-27 15:31:24 +08:00
gloamxun c2d3312e5a Write native pdfTeX Form XObjects 2026-11-27 15:06:44 +08:00
gloamxun 7ff988031f Handle legacy XeTeX paper and landscape specials 2026-11-27 14:47:39 +08:00
gloamxun d944552188 Honor XeTeX page setup during native shipout 2026-11-27 14:38:19 +08:00
gloamxun 9da2ee41cd Restore XeTeX picture boxes at native shipout 2026-11-27 13:41:27 +08:00
gloamxun c2f18f50dc Restore registered pdfTeX images from native formats 2026-11-27 13:32:22 +08:00
gloamxun 140bb19849 Validate PDF page dependencies before reusing SVG previews 2026-11-26 18:36:10 +08:00
gloamxun facecbf790 Measure native XeTeX glyphs and break after mapped dashes 2026-11-21 12:58:25 +08:00
gloamxun c548ca8e9f Execute TECkit font mappings in native XeLaTeX jobs 2026-11-21 12:39:29 +08:00
gloamxun d17680fcd8 Execute Unicode math codes and measured OpenType math characters 2026-11-21 11:47:56 +08:00
gloamxun ce8a780031 Execute positioned TeX specials through native PDF devices 2026-11-21 11:24:46 +08:00
gloamxun 70822cbd94 Shape and render explicit OpenType fonts in native Unicode jobs 2026-11-21 10:35:03 +08:00
gloamxun 584b708487 Allocate dedicated PDF spaces in the native font catalog at shipout 2026-11-21 07:11:48 +08:00
gloamxun 3ff339341b Put native PDF warnings on separate diagnostic lines 2026-11-21 06:45:35 +08:00
gloamxun d02777a1fc Report active native math alignment and output lists 2026-11-21 06:26:49 +08:00
gloamxun 3ed2c2cd54 Print DVI dictionary warnings on their own TeX lines 2026-11-21 06:03:17 +08:00
gloamxun 1822ab2d32 Apply native automatic kerns and protrusion at real line edges 2026-11-21 06:00:55 +08:00
gloamxun 6675ab639a Redirect native TeX diagnostics to real output streams 2026-11-21 05:38:05 +08:00
gloamxun 003d5d8726 Resolve FitR destinations using shipped box geometry 2026-11-21 05:18:07 +08:00
gloamxun 22154b53a6 Resolve native PDF structure destinations and local actions 2026-11-21 05:04:54 +08:00
gloamxun e113033b8a Expand native PDF checksums over resolved input bytes 2026-11-21 04:41:46 +08:00
gloamxun 413939911f Save the TeX cursor in native shipout order 2026-11-21 04:27:06 +08:00
gloamxun 555a029505 Import PNG images in the native PDF device 2026-11-21 04:13:18 +08:00
gloamxun 7f74251c8a Track PDF literal transforms in native source maps 2026-11-21 02:23:12 +08:00
gloamxun 361e8d070f Reuse decoded Type 1 fonts across native revisions 2026-11-20 16:55:48 +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 393fba42d8 Reuse closed events and line breaking after a checkpoint 2026-11-19 16:39:08 +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 a53d9c9bf9 Implement native PDF links and vertical discard lists 2026-11-18 23:39:45 +08:00
gloamxun 2741546ca8 Advance native LaTeX execution and preview 2026-11-18 22:17:21 +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 2ef5e29329 Embed raster images in the SVG preview
The SVG preview painted every DisplayItem::Image as a grey rectangle. Encode
the raw RGB image as a PNG (zlib via flate2, CRC32, base64) and emit an SVG
<image> data URI; keep the grey fallback for images above four megapixels.

The article preview now contains the real 480x240 plot and the framed rule
figure is visible while editing. Test count stays 1074.
2026-10-27 23:50:48 +08:00
gloamxun c2310d85ac Emit author-year labels for project BibTeX
The project .bib inliner now derives author-year labels (with a/b
disambiguation for duplicate author-years) and writes them as optional
\bibitem labels. The route-D citation pass uses those labels only when they
look like author-year labels: \citep gets parentheses, \citet becomes
Author (Year), and reference entries lose their numeric brackets. Inline
thebibliography entries without such labels remain numeric.

The arXiv sample now prints (Kour and Saabne, 2014a; Keshet et al., 2016) and
Kour and Saabne (2014b), matching natbib semantics more closely. Test count
stays 1073.
2026-10-27 23:07:00 +08:00
gloamxun c5bf150449 Draw the rule body of fbox figures
Parse the first non-zero \rule{width}{height} in a figure without a decoded
image and use it as the float dimensions, so the arXiv sample gets its black
rule body instead of a caption-only float. The fbox frame and vector images are
still unsupported.

This changes the arXiv corpus preview to 3 pages, matching TeX; update the
corpus expectation. Test count stays 1073.
2026-10-27 22:55:52 +08:00