Tectonic:一个现代化、完整且自包含的 TeX/LaTeX 引擎
Tectonic: A modernized, complete, self-contained TeX/LaTeX engine

原始链接: https://tectonic-typesetting.github.io/en-US/

Tectonic 是一个现代化的自包含排版系统,旨在简化 TeX 的使用体验。与传统陈旧且需要复杂手动安装的 TeX 发行版不同,Tectonic 能按需自动下载必要的支持文件,从而确保工作流程的精简与可复现。 Tectonic 基于 Rust 编程语言构建,原生支持 Unicode,通过 XeTeX 支持现代 OpenType 字体,并作为一个安静、自动化的命令行工具运行。它能智能管理编译过程,自动处理 BibTeX 和多次 TeX 编译,且不会在工作目录中产生冗余的中间文件。 Tectonic 专为高效与易用而设计,是进行科学排版与精密排版的理想选择。它可以集成到 GitHub Actions 等自动化工作流中,在文件变更时即时生成文档。通过将核心引擎封装为独立的库,它也极易被嵌入到其他应用程序中。Tectonic 站在成熟的 TeX 技术之上,为当代用户提供了现代化、友好的界面。该项目基于 MIT 许可证开源,托管于 GitHub。

Tectonic 是一个现代化的独立 TeX/LaTeX 引擎,旨在改进传统 TeX 引擎(如 XeTeX)那套极其复杂且“繁琐”的构建过程。 从历史上看,TeX 引擎依赖于一套过时的工具链:先将 Knuth 最初的 WEB 源文件转换为 Pascal,再将其翻译为 C 语言,最后链接各种旧版扩展进行编译。这种复杂的流程长期以来一直是开发的一大障碍。 Tectonic 通过将 XeTeX 构建过程中导出的 C/C++ 代码逐步重构为现代化的 Rust 代码来解决这一问题。通过构建更简洁、更易用的代码库,该项目旨在使 TeX 引擎更易于维护和开发。此外,Tectonic 提供了一种从源码重建最终 C/C++ 文件的机制,确保上游 XeTeX 项目的更新能够无缝集成到 Tectonic 演进中的 Rust 架构中。
相关文章

原文
The Tectonic Typesetting System — The Tectonic Typesetting System Fork me on GitHub

For those new to it, TeX is a programming language that you use to create typeset documents rather than computer software. TeX is quite archaic in some ways, but it’s still the tool of choice for documents that require precision typography or ones that involve lots of mathematical equations, which makes it especially important in the sciences. Tectonic converts TeX files into PDF files.

  • Tectonic automatically downloads support files so you don’t have to install a full LaTeX system in order to start using it. If you start using a new LaTeX package, Tectonic just pulls down the files it needs and continues processing. The underyling “bundle” technology allows for completely reproducible document compiles. Thanks to the Dataverse Project for hosting the large LaTeX resource files!
  • Tectonic has sophisticated logic and automatically loops TeX and BibTeX as needed, and only as much as needed. In its default mode it doesn’t write TeX’s intermediate files and always produces a fully-processed document.
  • The tectonic command-line program is quiet and never stops to ask for input.
  • Thanks to the power of XeTeX, Tectonic can use modern OpenType fonts and is fully Unicode-enabled.
  • The Tectonic engine has been extracted into a completely self-contained library so that it can be embedded in other applications.
  • Tectonic has been forked from the old-fashioned WEB2C implementation of TeX and is developed in the open on GitHub using modern tools like the Rust language.
  • Tectonic can be used from Github Actions to typeset your documents whenever a change to them is made:
user@host $ tectonic paper.tex
Running TeX ...
note: warnings were issued by the TeX engine; use --print and/or --keep-logs for details.
Running BibTeX ...
Rerunning TeX because bibtex was run ...
Rerunning TeX because "paper.aux" changed ...
Rerunning TeX because "paper.aux" changed ...
Running xdvipdfmx ...
Writing paper.pdf (383521 bytes)
Skipped writing 3 intermediate files (use --keep-intermediates to keep them)
user@host $

The name of the project is “Tectonic,” spelled and pronounced like a regular word because it is one. Enough with the cutesy obscurantism. In cases where the name might lead to ambiguities, it should be expanded to “Tectonic typesetting.”

If you’re feeling expansive, you can interpret the name as suggesting a large change in the TeX world. Or you can think of it as suggesting a salubrious offering for weary TeX users. Either way, the root of the word does go back to the ancient Greek τέκτων, ”carpenter,” which Donald Knuth — the creator of TeX and a devout Christian — might appreciate.

Tectonic would not have been possible without decades’ worth of hard work by the people behind LaTeX, TeXLive, XeTeX, and (x)dvipdfm-x. We stand on the shoulders of giants!

The Dataverse Project kindly hosts the large bundles of LaTeX resource files that enable Tectonic’s web-download capabilities.

Tectonic is licensed under the MIT License. This is the license under which the codebase from which it is primarily derived, XeTeX, is distributed. Various other elements of the TeX system on which Tectonic is based are licensed under other open-source licenses.

Site design cribbed from Rust. Copyright 2017–2022 The Tectonic Project.

联系我们 contact @ memedata.com