tex-fmt is a high-performance source code formatting utility written entirely in safe Rust for LaTeX documents. It automatically standardizes indentation, line wrapping, table alignment, and other formatting conventions. The application supports TEX, BIB, CLS, and STY files commonly used in LaTeX projects. Users can format individual documents or recursively process entire directory structures while respecting repository ignore patterns. Configurable TOML files allow developers to customize formatting preferences at project and user levels. Dedicated comments enable selective formatting exclusions for individual lines or code blocks. The utility supports formatting verification, standard stream processing, editor integrations, and automated quality checks through pre-commit hooks and GitHub Actions.

Features

  • High-performance LaTeX source code formatting with automatic indentation and line wrapping
  • Support for TEX, BIB, CLS, and STY document and configuration files
  • Recursive directory formatting with Git-compatible file exclusion patterns
  • Customizable formatting preferences through hierarchical TOML configuration files
  • Selective formatting exclusions with automatic preservation of verbatim environments
  • Formatting verification with editor integrations, pre-commit hooks, and GitHub Actions support

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow tex-fmt

tex-fmt Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of tex-fmt!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Rust

Related Categories

Rust TeX LaTeX, Rust Command Line Tools, Rust Code Formatters

Registered

2 hours ago