tex-fmt
« Back to VersTracker
Description:
Extremely fast LaTeX formatter written in Rust
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: latex formatter rust cli productivity
Install: brew install tex-fmt
About:
TexFmt is a command-line utility designed to format LaTeX source files with exceptional speed and reliability. Written in Rust, it parses and reformats documents while adhering to standard LaTeX syntax and common style conventions. Its primary value proposition is delivering near-instantaneous formatting, even for large documents, which significantly enhances developer productivity.
Key Features:
  • Extremely fast formatting using a Rust-based parser
  • Zero-configuration with sensible defaults
  • Preserves document structure and comments
  • Low-latency for use in editor workflows
Use Cases:
  • Automating LaTeX code style in CI/CD pipelines
  • Integrating with text editors like Vim, Neovim, or VS Code for on-save formatting
  • Standardizing formatting across collaborative academic or technical writing projects
Alternatives:
  • latexindent – A Perl-based tool bundled with TeX Live; more configurable but significantly slower and has a heavier dependency footprint.
  • prettier – A general-purpose code formatter that supports LaTeX via a plugin; more widely used in web development contexts but not as specialized for LaTeX.
Version History
Detected Version Rev Change Commit
Sep 13, 2025 4:45am 0 VERSION_BUMP df2e5f25
Jan 3, 2025 11:17am 0 VERSION_BUMP 7795d877
Dec 29, 2024 3:16am 0 VERSION_BUMP c889f95f
Dec 29, 2024 2:35am 0 VERSION_BUMP 2d639e53