Perl script to add indentation (leading horizontal space) to LaTeX files. It can modify line breaks before, during and after code blocks; it can perform text wrapping and paragraph line break removal. It can also perform string-based and regex-based substitutions/replacements. The script is customisable through its YAML interface.
minor bugfix for -l
switch detailed at issue-421 thanks to @hsloot
Minor bugfix for text wrap, when: after
, detailed at issue-412.
Minor bugfix for indentconfig.yaml
, https://github.com/cmhughes/latexindent.pl/commit/8e3ec0917d7435bf8bcceaf3f14c91b2bcdee3ea
when: before/after
, full details at issue-359
comments: wrap: 0/1
, full details at issue-389
indentconfig.yaml
and friends, full details at issue-396, thanks to @NehctarglookForAlignDelims: 1
, full details at issue-402
poly-switch for verbatim code blocks updated to work for value 4, VerbatimBeginStartsOnOwnLine
, VerbatimEndFinishesWithLineBreak
, detailed at 2f402d6.
Standalone executables/binaries avaialble for Ubuntu Linux and MacOS (to accompany latexindent.exe
), all available from the releases page:
latexindent.exe
latexindent-linux
latexindent-macos
All 3 files contain defaultSettings.yaml
, so should standalone. See https://github.com/cmhughes/latexindent.pl/issues/388 for more details.
NiceTabular
to defaultSettings
, pull 358, thanks to @yzhang-ghoneSentencePerLine
with text wrapping now respects removeSentenceLineBreaks
, issue-355
textWrapOptions
can be customised further with removeBlockLineBreaks
indentAfterItems
defaults updated to include enumerate*
, itemize*
, description*
, issue-356
pre-commit
defaults updated, see pull 354, thank you to @Holzhaus