latexindent configuration
Configuration file for latexindent
| Type | object |
|---|---|
| File match |
latexindent.yaml
.latexindent.yaml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/latexindent-configuration/latest.json |
| Source | https://github.com/cmhughes/latexindent.pl/raw/main/documentation/latexindent-yaml-schema.json |
Validate with Lintel
npx @lintel/lintel check
latexindent.pl YAML schema helper, V4.0 2026-03-15
Properties
calling latexindent.pl to operate on myfile (without extension) is fine, and in which case the file extensions from this field will be used in order
when the -w, --overwrite switch is active, a back-up file is created with this extension
when the -w, --overwrite switch is active, the default is to create a back-up file for each call to latexindent.pl. Changing onlyOneBackUp to 1 means that only one back-up file is created
when the -w, --overwrite switch is active, the default is to create a back-up file for each call to latexindent.pl. This field sets the maximum number of back-up files
when the -w, --overwrite switch is active, back-up files can be overwritten in order; see also maxNumberOfBackUps
latexindent.pl will write logging information to indent.log; the appearance of some of the information can be customised
7 nested properties
0/1, binary switch to show every YAML file's settings in indent.log
0/1, binary switch to show the overall/amalgamated settings in indent.log
0/1, binary switch to show decorations at start of code block in indent.log when -t, -tt switches active
0/1, binary switch to show decorations at finish of code block in indent.log when -t, -tt switches active
string decoration to finish indent.log
0/1, binary switch to show GitHub information in footer of indent.log
options to be passed to the Dumper module; most helpful when -t, -tt active.
7 nested properties
specify the names of verbatim environments in this field
specify the names of verbatim commands in this field
specify the names of noIndentBlock in this field
specify the names of filecontents in this field
0/1, binary switch to instruct latexindent.pl to operate on preamble or not
list of extensions detailing which files latexindent.pl should look for preamble
0/1, binary switch to instruct latexindent.pl to search for commands before environments in preamble
default indentation, needs to be specified as horizontal space
remove horizontal space at the end of lines
2 nested properties
0/1, binary switch to remove horizontal space before indenting
0/1, binary switch to remove horizontal space after indenting
list of names of code blocks detailing that latexindent.pl should align at delimiters
specify the names of environments that contain items
names of items
special code blocks have begin, end, and optionally 'middle' specified as regular expressions
1 nested properties
0/1, binary switch to look for commands before special code blocks
indentation after headings
maximum value of indentation; specify as horizontal space
names of code blocks to not have additional indentation
per-code block indentation rule
types of code blocks to not have additional indentation
12 nested properties
0/1, binary switch to mean type of code block does not have/has additional indentation
0/1, binary switch to mean type of code block does not have/has additional indentation
0/1, binary switch to mean type of code block does not have/has additional indentation
0/1, binary switch to mean type of code block does not have/has additional indentation
0/1, binary switch to mean type of code block does not have/has additional indentation
0/1, binary switch to mean type of code block does not have/has additional indentation
0/1, binary switch to mean type of code block does not have/has additional indentation
0/1, binary switch to mean type of code block does not have/has additional indentation
0/1, binary switch to mean type of code block does not have/has additional indentation
0/1, binary switch to mean type of code block does not have/has additional indentation
0/1, binary switch to mean type of code block does not have/has additional indentation
0/1, binary switch to mean type of code block does not have/has additional indentation
types of code blocks indentation rules
12 nested properties
indentation rules per type of code block
indentation rules per type of code block
indentation rules per type of code block
indentation rules per type of code block
indentation rules per type of code block
indentation rules per type of code block
indentation rules per type of code block
indentation rules per type of code block
indentation rules per type of code block
indentation rules per type of code block
indentation rules per type of code block
indentation rules per type of code block
command code blocks need some particular attention
3 nested properties
0/1, binary switch to not allow/allow round parenthesis () between arguments
strings allowed between arguments
there are some particular commands that need individual attention
0/1, binary switch to convert dos line breaks to unix line breaks
when -m switch active, latexindent.pl has ability to modify line breaks
14 nested properties
0/1, binary switch to preserve blank lines or not
condense multiple blank lines into this many blank lines
9 nested properties
0/1, binary switch to perform one sentence per line routine or not
0/1, binary switch to remove line breaks from within sentences or not
0/1, binary switch to convert multiple spaces into single spaces or not
0/1, binary switch to text wrap sentences or not
horizontal space representing indentation within sentences
things that sentences can follow
8 nested properties
0/1, binary switch to determine if sentences can follow \par or not
0/1, binary switch to determine if sentences can follow blank lines or not
0/1, binary switch to determine if sentences can follow blank lines or not
0/1, binary switch to determine if sentences can follow ! or not
0/1, binary switch to determine if sentences can follow ? or not
0/1, binary switch to determine if sentences can follow } or not
0/1, binary switch to determine if sentences can follow % on previous line or not
regular expression detailing what else sentences can follow
things that sentences can begin with
3 nested properties
0/1, binary switch to determine if sentences can begin upper case letters or not
0/1, binary switch to determine if sentences can begin lower case letters or not
regular expression detailing what else sentences can begin with
things that sentences can end with
5 nested properties
0/1, binary switch to determine if sentences can end with basic full stop (period) or not
0/1, binary switch to determine if sentences can end with better full stop (period) or not (RECOMMENDED)
0/1, binary switch to determine if sentences can end with ! or not
0/1, binary switch to determine if sentences can end with ? or not
regular expression detailing what else sentences can end with
things that sentences cannot contain
1 nested properties
regular expression detailing what sentences cannot contain. Can be turned off by setting 0
options for the text wrap routine
14 nested properties
integer > 0 sets the number of columns for the text wrap routine, or if -1 then text wrap blocks simply have line breaks removed
0/1, binary switch to determine whether text wrap should convert multiple spaces to single space
0/1, binary switch to determine whether text wrap should convert multiple spaces to single space
optional: string specifying whether text wrapping should be made before/after code blocks have been found. Default is 'before' if not specified
instructions for wrapping comments
2 nested properties
0/1, binary switch to determine whether comments should be combined and wrapped
0/1, binary switch to determine whether comments should inherit leading spaces
field containing switches that text wrap blocks follow
7 nested properties
0/1, binary switch to instruct latexindent to find text wrap blocks after the fields listed in indentAfterHeading (regardless of the value of indentAfterThisHeading or level) or not. The heading command can, optionally, be followed by a label command
0/1, binary switch to instruct latexindent to find text wrap blocks after a comment on its own line or not
0/1, binary switch to instruct latexindent to find text wrap blocks after \par or not
0/1, binary switch to instruct latexindent to find text wrap blocks after a blank line or not
0/1, binary switch to instruct latexindent to find text wrap blocks after a verbatim block or not
0/1, binary switch to instruct latexindent to find text wrap blocks after a filecontents environment or not
regular expression detailing what text wrap blocks should follow. Can be turned off by setting 0. The default value corresponds to the end of display math or an item command
field containing switches that text wrap blocks begin with
4 nested properties
0/1, binary switch to determine whether text wrap block can begin with an uppercase letter or not
0/1, binary switch to determine whether text wrap block can begin with a lowercase letter or not
0/1, binary switch to determine whether text wrap block can begin with a digit or not
regular expression detailing what text wrap blocks can begin with. Can be turned off by setting 0. Default is 0 if not specified
field containing switches that text wrap blocks end before
4 nested properties
0/1, binary switch to determine whether text wrap block should end before a comment on its own line or not
0/1, binary switch to determine whether text wrap block should end before a verbatim environment or not
0/1, binary switch to determine whether text wrap block should end before a filecontents environment or not
regular expression detailing what text wrap blocks should end before. Can be turned off by setting 0. The default value corresponds to begin statements, display math, and end statements
WARNING: I don't recommend changing this from overflow; passed to Perl's Text::Wrap module
passed to Perl's Text::Wrap module
passed to Perl's Text::Wrap module
passed to Perl's Text::Wrap module
passed to Perl's Text::Wrap module
passed to Perl's Text::Wrap module
poly-switches for environments (GLOBAL)
4 nested properties
poly-switch for line break before beginning of environments (GLOBAL)
poly-switch for line break before body of environments (GLOBAL)
poly-switch for line break before end of environments (GLOBAL)
poly-switch for line break after end of environments (GLOBAL)
poly-switches for specialBeginEnd (GLOBAL)
4 nested properties
poly-switch for line break before beginning of specialBeginEnd (GLOBAL)
poly-switch for line break before body of specialBeginEnd (GLOBAL)
poly-switch for line break before end of specialBeginEnd (GLOBAL)
poly-switch for line break after end of specialBeginEnd (GLOBAL)
poly-switches for key equals value (GLOBAL)
3 nested properties
poly-switch for line break before beginning of key equals value (GLOBAL)
poly-switch for line break before = of key equals value (GLOBAL)
poly-switch for line break after = of key equals value (GLOBAL)
poly-switches for ifElseFi (GLOBAL)
8 nested properties
poly-switch for line break before beginning of ifElseFi (GLOBAL)
poly-switch for line break before body of ifElseFi (GLOBAL)
poly-switch for line break before or statement of ifElseFi (GLOBAL)
poly-switch for line break after or statement of ifElseFi (GLOBAL)
poly-switch for line break before else statement of ifElseFi (GLOBAL)
poly-switch for line break after else statement of ifElseFi (GLOBAL)
poly-switch for line break before end of ifElseFi (GLOBAL)
poly-switch for line break after end of ifElseFi (GLOBAL)
poly-switches for commands (GLOBAL)
2 nested properties
poly-switch for line break before beginning of commands (GLOBAL)
poly-switch for line break after end of commands (GLOBAL)
poly-switches for verbatim (GLOBAL)
2 nested properties
poly-switch for line break before beginning of verbatim (GLOBAL)
poly-switch for line break after end of verbatim (GLOBAL)
poly-switches for namedGroupingBracesBrackets (GLOBAL)
2 nested properties
poly-switch for line break before beginning of namedGroupingBracesBrackets (GLOBAL)
poly-switch for line break after end of namedGroupingBracesBrackets (GLOBAL)
poly-switches for items (GLOBAL)
2 nested properties
poly-switch for line break before beginning of items (GLOBAL)
poly-switch for line break after end of items (GLOBAL)
poly-switches for optional arguments (GLOBAL)
4 nested properties
poly-switch for line break before beginning of optional arguments (GLOBAL)
poly-switch for line break before body of optional arguments (GLOBAL)
poly-switch for line break before end of optional arguments (GLOBAL)
poly-switch for line break after end of optional arguments (GLOBAL)
poly-switches for mandatory arguments (GLOBAL)
4 nested properties
poly-switch for line break before beginning of mandatory arguments (GLOBAL)
poly-switch for line break before body of mandatory arguments (GLOBAL)
poly-switch for line break before end of mandatory arguments (GLOBAL)
poly-switch for line break after end of mandatory arguments (GLOBAL)
replacements to be made; requires -r, -rr or -rv switch
fine tuning, proceed with caution!
10 nested properties
fine tuning, for environments
1 nested properties
regular expression for environment name
fine tuning, for ifElseFi
1 nested properties
regular expression for ifElseFi name
fine tuning, for commands
1 nested properties
regular expression for commands name
fine tuning, for items
1 nested properties
regular expression for what can follow items
fine tuning, for keyEqualsValuesBracesBrackets
2 nested properties
regular expression for key = value name
regular expression for what key = values follow
fine tuning, for namedGroupingBracesBrackets
2 nested properties
regular expression for named grouping braces name
regular expression for what named grouping braces follow
fine tuning, for UnNamedGroupingBracesBrackets
1 nested properties
regular expression for what UN named grouping braces follow
fine tuning, for arguments
2 nested properties
regular expression for what can come BEFORE arguments
regular expression for what can come BETWEEN arguments
fine tuning, for trailing comments
3 nested properties
regular expression for what can NOT come before %, for example %
please use notPrecededBy instead
regular expression for what can come after %
fine tuning for some of the -m switch based features
3 nested properties
regular expression for the 'better full stop' in the one-sentence-per-line routine
regular expression for the double back slash used in the DBS poly-switches
regular expression for the comma used in the comma-based poly-switches