latexindent
« Back to VersTracker
Description:
Add indentation to LaTeX files
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: latex formatting productivity perl developer-tools
Install: brew install latexindent
About:
latexindent is a Perl script designed to automatically format and indent LaTeX source code. It parses the document structure to apply consistent whitespace, line breaks, and alignment to environments, macros, and arguments. The tool helps maintain clean, readable codebases and can be customized extensively via YAML configuration files.
Key Features:
  • Recursive indentation for nested environments
  • Highly configurable via YAML settings files
  • Supports verbatim environments and custom macros
  • Can overwrite files or output to stdout
Use Cases:
  • Standardizing code style in collaborative LaTeX projects
  • Cleaning up auto-generated or poorly formatted LaTeX files
  • Integrating into CI/CD pipelines for documentation linting
Alternatives:
  • Latexmk – Automates compilation but lacks dedicated code formatting capabilities.
  • VS Code LaTeX Workshop – Provides editor-based formatting but relies on external tools like latexindent.
Version History
Detected Version Rev Change Commit
Dec 29, 2025 3:55pm 1 REVISION_ONLY 5f9f106b