macOS
brew install tex-fmtlocal Homebrew formula metadata
安装
brew install tex-fmtlocal Homebrew formula metadata
sudo apt install tex-fmtDebian stable package indexes · tex-fmt · 来源: deb.debian.org
nix profile install nixpkgs#tex-fmtnixpkgs package indexes · pkgs/by-name/te/tex-fmt/package.nix · 来源: api.github.com
scoop install extras/tex-fmtScoop official bucket manifest trees · bucket/tex-fmt.json · 来源: api.github.com
概览
Extremely fast LaTeX formatter written in Rust
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.toml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
tex-fmt | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/WGUNDERWOOD/tex-fmt
安装元数据
| 软件包键 | brew:tex-fmt |
|---|---|
| 版本 | 0.5.7 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/tex-fmt |
| 主页 | https://wgunderwood.github.io/tex-fmt/ |
| 仓库 | https://github.com/WGUNDERWOOD/tex-fmt |
| 上游文档 | https://github.com/WGUNDERWOOD/tex-fmt#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/WGUNDERWOOD/tex-fmt/archive/refs/tags/v0.5.7.tar.gz |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-fmt来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.