macOS
brew install tex-fmtlocal Homebrew formula metadata
brew
Extremely fast LaTeX formatter written in Rust. Version 0.5.7 via Homebrew; verified from local package data.
install
brew install tex-fmtlocal Homebrew formula metadata
sudo apt install tex-fmtDebian stable package indexes · tex-fmt · source: deb.debian.org
nix profile install nixpkgs#tex-fmtnixpkgs package indexes · pkgs/by-name/te/tex-fmt/package.nix · source: api.github.com
scoop install extras/tex-fmtScoop official bucket manifest trees · bucket/tex-fmt.json · source: api.github.com
overview
Extremely fast LaTeX formatter written in Rust
history
tex-fmt is a Rust command-line formatter for LaTeX-related source files, focused on fast indentation, line wrapping, table formatting, and editor or CI integration.
The WGUNDERWOOD/tex-fmt repository was created in April 2024. Its README describes tex-fmt as an extremely fast LaTeX formatter written in safe Rust, handling .tex, .bib, .cls, and .sty files.
The release list shows rapid early iteration through 2024, from v0.2.0 in May to v0.5.0 in December, followed by v0.5.x releases in 2025. The README also documents a browser demo, configuration files, shell completion, and common CLI modes such as --check, --print, --recursive, --stdin, and --fail-on-change.
Official README installation notes show adoption across Cargo, Nix, Arch/AUR, Debian, Homebrew, GitHub releases, VS Code through LaTeX Workshop, Neovim through mason.nvim, a GitHub Action, and a CTAN package named latex-formatter.
That distribution pattern places tex-fmt in the formatter niche alongside rustfmt, prettier, and language-specific formatters: the package is valuable when an editor, CI job, or repository hook needs a reproducible formatting binary.
Typical use is direct file formatting, check-only CI mode, recursive formatting of a repository, stdin/stdout formatting for editor integrations, disabling formatting with in-source comments, and reading options from tex-fmt.toml.
The documented config search order is explicit: a named --config path, tex-fmt.toml in the current working directory, tex-fmt.toml at the git root, then a user configuration directory that differs across Linux, macOS, and Windows.
tex-fmt is interesting to package maintainers because LaTeX historically had fewer fast, conventional formatters than mainstream programming languages. A small Rust binary with package-manager and editor integration gives TeX projects a familiar formatting workflow.
Its presence in Homebrew, Debian, Nix, and editor package ecosystems makes it useful for reproducible academic, documentation, and publishing repositories that want formatting checks in CI without custom scripts.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
tex-fmt.toml./tex-fmt.toml<git-root>/tex-fmt.toml~/.config/tex-fmt/tex-fmt.tomltex-fmt.toml./tex-fmt.toml<git-root>/tex-fmt.toml/Users/<USER>/Library/Application Support/tex-fmt/tex-fmt.tomltex-fmt.toml.\tex-fmt.toml<git-root>\tex-fmt.tomlC:\Users\<USER>\AppData\Roaming\tex-fmt\tex-fmt.tomlexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
tex-fmt | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/WGUNDERWOOD/tex-fmt
install metadata
| Package key | brew:tex-fmt |
|---|---|
| Version | 0.5.7 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/tex-fmt |
| Homepage | https://wgunderwood.github.io/tex-fmt/ |
| Repository | https://github.com/WGUNDERWOOD/tex-fmt |
| Upstream docs | https://github.com/WGUNDERWOOD/tex-fmt#readme |
| License | MIT |
| Source archive | https://github.com/WGUNDERWOOD/tex-fmt/archive/refs/tags/v0.5.7.tar.gz |
| Build dependencies | rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | tex-fmt |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
tex-fmt 0.5.2+dfsg-3
fast LaTeX formatter
https://github.com/WGUNDERWOOD/tex-fmt
sudo apt install tex-fmttex-fmt
nix profile install nixpkgs#tex-fmtextras/tex-fmt
scoop install extras/tex-fmtsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.