Skip to content

Releases

Packaged for JavaScript and Python

Pre-release

Choose a tag to compare

@ApaxPhoenix ApaxPhoenix released this 09 Nov 08:15

The engine as packages for JavaScript and Python, released by GitHub Actions.

Features

  • A JavaScript package, mlatex: the WebAssembly module with a Node entry, types and a README, attached here as mlatex-0.1.2.tgz
  • Python wheels, mlatex, for Windows, macOS and Linux on x64 and ARM64, carrying the C library and its fonts for ctypes, attached here
  • An error names the file it is in: appendix.tex:3:5: error (macro): Undefined control sequence \foo
  • Releases are made by GitHub Actions from what the Build workflow tested

Fixes

  • latex_ffi.dll loads its JPEG and WebP libraries from its own folder, so a program that loads it from elsewhere, as Python does, no longer stops at its first picture
  • \evaluate answers powers of 0, 1 and -1 at once
  • \numexpr holds its products within 64 bits
  • \foreach counts its ranges in whole steps

Known issues

  • The installers are named 0.1.0, and mlatex --version says 0.1.0: this release came just before the VERSION file that now names every package

Contributors

@ApaxPhoenix

Full changelog: v0.2.0-beta.1...v0.2.0-beta.2

Snippets, and the browser

Pre-release

Choose a tag to compare

@ApaxPhoenix ApaxPhoenix released this 09 Nov 08:10

A piece of LaTeX can be set on its own, and the engine runs in the browser.

Features

  • Snippets: snippet sets a formula, a table or a picture with no preamble, on a page cropped to it, from C++, C and WebAssembly
  • standalone's pages are cropped to what they hold
  • The WebAssembly module, latex.js, latex.wasm and latex.data, built and checked in Node by the Build workflow, for a web page, a worker or Node

Fixes

  • A fraction in a line has room round its signs and from its bar

Changes

  • The whole project is formatted alike

Contributors

@ApaxPhoenix

Full changelog: v0.1.0...v0.2.0-beta.1

One program, every platform

Choose a tag to compare

@ApaxPhoenix ApaxPhoenix released this 09 Nov 08:06

One program, mlatex, built, tested and packaged for Windows, macOS and Linux.

Features

  • 509 packages and 14 classes, each proven by a document of its own
  • Tables that break across pages, with text kept inside its cells
  • Right-to-left text: Arabic and Hebrew paragraphs and tables, mirrored brackets, kashida justification and an Arabic face, Noto Naskh Arabic
  • Each language's own digits and spacing, and Chinese and Japanese broken between their characters
  • More drawing: TikZ's let and calc coordinates, trees, nodes with dashes, double outlines and rounded corners, xy-pic, and pgfplots' error bars, fills between plots, functions of x and y and plots in three dimensions
  • EPS pictures, drawn by running their PostScript, and SVG pictures
  • beamer: each slide of a frame, and beamer's themes
  • A .bib file imported through \input, or set as a document of its own
  • An offline switch that keeps a document off the network
  • The command line as mlatex, with TeX's own options
  • Packages for every platform: an MSI, a .pkg and a disk image, .deb and .rpm, and archives, built, tested and packaged on six runners

Fixes

  • The head and foot are placed by \headsep and \footskip, and keep their marks
  • A colour chosen inside a box's argument stays inside it
  • A line never ends at a penalty of ten thousand, and a ragged line is filled before it is broken
  • A glyph's ink is measured by its outline, not by the box its font file keeps

Changes

  • The engine is latex in the code, and the C library's function is engine()
  • On Windows, any CLion profile builds, with clang-cl chosen for it
  • The sandbox nothing ran is removed, and src/jit is reserved for the just-in-time target
  • A security policy, and a README rewritten around what the engine does today

Contributors

@ApaxPhoenix

Full changelog: v0.1.0-beta.2...v0.1.0

Reading real LaTeX

Reading real LaTeX Pre-release
Pre-release

Choose a tag to compare

@ApaxPhoenix ApaxPhoenix released this 09 Nov 08:02

The engine reads LaTeX as LaTeX writes it.

Features

  • Packages, classes, languages and links, and TeX's own rules
  • Commutative diagrams, circuits and trees, with TikZ matrices, edges and baselines

Changes

  • Code nothing runs is removed
  • A C++26 profile for IDEs

Contributors

@ApaxPhoenix

Full changelog: v0.1.0-beta.1...v0.1.0-beta.2

A working expander

A working expander Pre-release
Pre-release

Choose a tag to compare

@ApaxPhoenix ApaxPhoenix released this 09 Nov 08:02

A working expander, rebuilt on a primitive layer of its own, inside a sandbox.

Features

  • A primitive layer built from scratch: blocks, macros, values, arithmetic, loops and the full \if family
  • Constant-time symbol dispatch, with \global kept constant-time too
  • A traceback of errors per module, merged on demand
  • A sandbox: an allocator with a byte ceiling, a policy that denies host access by default, and a VM that runs a document from a string or a file
  • Reference documentation with Doxygen, built by an opt-in docs target

Fixes

  • Multi-digit numbers, octal and hexadecimal constants and units read correctly
  • The lexer emits \par again, so the parser can recover from errors
  • A comment swallows its line ending
  • A self-referential macro stops at the expansion limit instead of spinning forever
  • \global survives the end of a group
  • The expression parser keeps the token after every formula
  • The lexer and expansion tests pass again

Contributors

@ApaxPhoenix

Full changelog: v0.1.0-alpha.2...v0.1.0-beta.1

From syntax to the page

Pre-release

Choose a tag to compare

@ApaxPhoenix ApaxPhoenix released this 09 Nov 08:02

Syntax trees now reach the page, and the engine gains its first primitives and macros.

Features

  • A translation layer that turns the syntax and expression trees into layout
  • A font cache, arena allocators and profile-guided optimisation, for documents set in under 15 ms
  • Core primitives and macro support, with formulas parsed as expressions
  • A Code of Conduct and a security policy

Fixes

  • Faster line breaking: the breaker works on candidates and no longer calls std::pow
  • A deadlock when a font face was move-assigned, and a native handle the font registry leaked
  • Duplicate thread-local symbols when linking with MinGW

Contributors

@ApaxPhoenix

Full changelog: v0.1.0-alpha.1...v0.1.0-alpha.2

The first prototype

The first prototype Pre-release
Pre-release

Choose a tag to compare

@ApaxPhoenix ApaxPhoenix released this 09 Nov 08:02

The first prototype: a TeX engine that reads a document and sets it into pages, with no primitives or packages yet.

Features

  • A TeX core: catcodes, a lexer and an expression parser
  • A layout system of boxes and glue, with a paragraph line breaker
  • A typography module that loads fonts, caches faces and shapes text
  • Hyphenation with the official patterns from CTAN
  • A typesetter that turns the layout into pages
  • The structure of PDF and WebAssembly output, with WebAssembly builds that need no fontconfig
  • Unix builds alongside Windows, checked by a CMake workflow on GitHub Actions

Fixes

  • The line breaker no longer loops forever
  • Catcodes and the expression parser read their input correctly

Contributors

@ApaxPhoenix