#tex #latex #typesetting #font

bin+lib tectonic

A modernized, complete, embeddable TeX/LaTeX engine. Tectonic is forked from the XeTeX extension to the classic “Web2C” implementation of TeX and uses the TeXLive distribution of support files.

46 releases

0.15.0 Feb 5, 2024
0.14.1 Jun 15, 2023
0.13.1 May 22, 2023
0.12.0 Oct 27, 2022
0.1.3 Mar 16, 2017

#254 in Rendering

Download history 276/week @ 2023-11-03 280/week @ 2023-11-10 282/week @ 2023-11-17 341/week @ 2023-11-24 287/week @ 2023-12-01 304/week @ 2023-12-08 264/week @ 2023-12-15 289/week @ 2023-12-22 227/week @ 2023-12-29 232/week @ 2024-01-05 249/week @ 2024-01-12 276/week @ 2024-01-19 376/week @ 2024-01-26 419/week @ 2024-02-02 380/week @ 2024-02-09 821/week @ 2024-02-16

2,017 downloads per month
Used in 20 crates (19 directly)

MIT license

63K SLoC

C 39K SLoC // 0.0% comments Rust 20K SLoC // 0.1% comments C++ 4.5K SLoC // 0.1% comments Objective-C++ 181 SLoC // 0.2% comments

The Tectonic Typesetting System

The tectonic crate delivers a modernized, complete, self-contained TeX/LaTeX engine, powered by XeTeX and TeXLive. It provides a CLI and ties together the functionality of a large collection of sub-crates.

Building Tectonic

The Tectonic crates collectively depend on a relatively large number of third-party libraries. See the Book’s build instructions for a listing and guidance on setting up the build.

The crate build can be customized with the following Cargo features:

  • external-harfbuzz: build against an external version of the Harfbuzz text shaping library, rather than a vendored version (the default)
  • geturl-curl: use the curl crate to implement HTTP requests. In order for this to take effect, you must use --no-default-features because geturl-reqwest is a default feature and it takes precedence
  • geturl-reqwest: use the reqwest crate to implement HTTP requests (enabled by default)
  • native-tls-vendored: if using reqwest, activate the vendored option in the native-tls crate, causing OpenSSL to be vendored

The Book describes some less-used features and provides a bit more detail.


The main tectonic crate ties together the functionality of a number of sub-crates:


~1.5M SLoC