All apps/latexindent

latexindent

latexindent

Perl script to add indentation to LaTeX files.

Runs as latexindent, latexindent.pl|macOS, Linux, Windows|latexindentpl.readthedocs.io

Command form

ai-draft · 2 tasks · 6 fields

Indent one or more LaTeX files. Output goes to the terminal unless overwrite is set. YAML settings, logging and replacement options are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui latexindent
latexindentExample values, fixed in this page — nothing here reaches a terminal
Basic
LaTeX files*
file
TasksEach one presets the form for one job
Preview indentation
files
Indent in place
filesoverwrite
ParametersOnly these flags are editable in the form
LaTeX files
path · positional 0 · repeatable
Overwrite the files
Replace each input file with its indented version (a backup is made by default).
boolean
--overwrite-w
Silent
boolean
-s
Modify line breaks
boolean
-m
Only default settings
boolean
-d
Check only
Check whether indentation would change the text.
boolean
-k
SourcesEvery flag above is checked against these
manual
latexindent.pl myfile.tex latexindent.pl myfile1.tex myfile2.tex -w, overwrite latexindent.pl -w myfile.tex latexindent.pl myfile.tex --overwrite -s, silent latexindent.pl -s myfile.tex -d, onlydefault latexindent.pl -d myfile.tex latexindent.pl -m myfile.tex latexindent.pl -k myfile.tex
manualV4.0.3

mirrors.ctan.org

Before it fills your prompt, Otty checks the installed latexindent against its version. A form that does not match your version is not offered.