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
Mar 15, 2026 8:18am 0 REVISION_ONLY c88b2d44
Dec 29, 2025 3:55pm 1 REVISION_ONLY 5f9f106b
Sep 11, 2024 2:05am 0 VERSION_BUMP 69a01d56
May 12, 2024 9:37am 0 VERSION_BUMP e6512435
Jan 1, 2024 2:48pm 0 VERSION_BUMP 2a3e624f
Oct 14, 2023 9:41pm 0 VERSION_BUMP 55ad1c38
Sep 23, 2023 6:27pm 0 VERSION_BUMP 08275bad
Jun 1, 2023 9:27pm 0 VERSION_BUMP 1da3f7ca
May 20, 2023 12:45pm 0 VERSION_BUMP e0bd8fbd
May 20, 2023 12:24pm 0 VERSION_BUMP d43e1b07
May 1, 2023 12:05pm 0 VERSION_BUMP d617047a
Apr 8, 2023 5:20am 0 VERSION_BUMP b5c5cd70
Apr 7, 2023 7:46pm 0 VERSION_BUMP 688952d0