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-luaandtex-lua-derive) and precompiled LuaLaTeX format (lualatex.fmt.zst). - Dynamic primitive aliasing via
tex.enableprimitivesallows packages likeiftex.styto bind\IFTEX@detokenizeand\IFTEX@protected. - Full LuaTeX math primitives (
\Ustack,\Ustartmath,\Ustopmath) and style dimension parameters (\Umathfractiondelsize,\Umathstacknumup,\Umathstackdenomdown,\Umathstackvgap) resolveamsmath's\binomand generalized fractions under LuaTeX. - Preloaded standard modules:
luatexbase,ltluatex,luaharfbuzz,fontloader,l3backend-luatex, andlualatexquotejobname. - 100% embedded font subsets for Latin Modern Roman, Sans, and Math OpenType fonts under
lualatex.
- Integrated in-tree pure-Rust Lua 5.3 runtime (
-
Fully Automatic Pass Convergence:
- Removed manual single-pass CLI flags (
-1,--single-pass) andPassPolicy::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.
- Removed manual single-pass CLI flags (
-
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
mplibruntime (tex-mplib).
- Pure-Rust PostScript Level 2/3 and EPS interpreter (
-
Font & Rendering Fixes:
- Eliminated zero-width Latin character leakage after CJK font embedding across all pages.
- Fixed empty paragraph top-box artifact (
\leavevmode/\noindentwith 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
\chardefdimension scaling inspand 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