github leoliu0/texres v0.4.4
v0.4.4: native LuaTeX engine, automatic convergence, and in-tree graphics

latest releases: v0.7.7, v0.7.6, v0.7.5...
19 days ago

Release v0.4.4

Ratex v0.4.4 delivers complete native LuaTeX engine execution, fully automatic multi-pass convergence, in-tree pure-Rust PostScript/EPS and MetaPost engines, and extensive font embedding and visual parity fixes across Latin Modern, CJK, and mathematical symbol fonts.

Highlights & New Features

  • Native LuaTeX Engine Profile (EngineKind::LuaTeX, lualatex, -lualatex):

    • Integrated in-tree pure-Rust Lua 5.3 runtime (tex-lua and tex-lua-derive) and precompiled LuaLaTeX format (lualatex.fmt.zst).
    • Dynamic primitive aliasing via tex.enableprimitives allows packages like iftex.sty to bind \IFTEX@detokenize and \IFTEX@protected.
    • Full LuaTeX math primitives (\Ustack, \Ustartmath, \Ustopmath) and style dimension parameters (\Umathfractiondelsize, \Umathstacknumup, \Umathstackdenomdown, \Umathstackvgap) resolve amsmath's \binom and generalized fractions under LuaTeX.
    • Preloaded standard modules: luatexbase, ltluatex, luaharfbuzz, fontloader, l3backend-luatex, and lualatexquotejobname.
    • 100% embedded font subsets for Latin Modern Roman, Sans, and Math OpenType fonts under lualatex.
  • Fully Automatic Pass Convergence:

    • Removed manual single-pass CLI flags (-1, --single-pass) and PassPolicy::Single.
    • Convergence is now strictly automatic: clean documents without cross-references or citations finish in 1 pass, while documents with references, citations, tables of contents, or bibliographies run the exact required passes until auxiliary state stabilizes.
  • In-Tree PostScript & MetaPost:

    • Pure-Rust PostScript Level 2/3 and EPS interpreter (tex-ps) converts figures to PDF in-memory without external Ghostscript or shell dependencies.
    • Pure-Rust MetaPost 3.00 engine and mplib runtime (tex-mplib).
  • Font & Rendering Fixes:

    • Eliminated zero-width Latin character leakage after CJK font embedding across all pages.
    • Fixed empty paragraph top-box artifact (\leavevmode / \noindent with empty hlist).
    • Verified embedded subsets and visual rendering for CJK (CJKutf8), stmaryrd, bbding, and Latin Modern OpenType fonts.
    • Verified Spanish Babel hyphenation and caption convergence.
    • Corrected \chardef dimension scaling in sp and preserved unexpandable active characters during \edef.

Verification

  • Workspace Tests: All 1,464 tests across 52 test suites pass.
  • Visual Audits: Poppler and pdf.js rendering verified on multi-script, CJK, and complex mathematical formulas with 0 glyph clipping or font substitution artifacts.

Full Changelog: v0.4.3...v0.4.4

Don't miss a new texres release

NewReleases is sending notifications on new releases.