Releases: cmhughes/latexindent.pl
V3.17.3
V3.17.2
- minor updates to the quick-start section
- add
NiceTabular
todefaultSettings
, pull 358, thanks to @yzhang-gh
V3.17.1
minor updates
oneSentencePerLine
with text wrapping now respectsremoveSentenceLineBreaks
, issue-355textWrapOptions
can be customised further withremoveBlockLineBreaks
indentAfterItems
defaults updated to includeenumerate*
,itemize*
,description*
, issue-356pre-commit
defaults updated, see pull 354, thank you to @Holzhaus
V3.17
new features
- batches of files now supported, issue 332
-wd
switch which means 'overwrite if different'; similar to the-w
switch, but will only activate
the overwrite and back-up file procedure if the indented text is different from the originalmultipleSpacesToSingle
feature foroneSentencePerLine
--GCString
switch available to optionally load theUnicode::GCString
module, issue 303
V3.16
text wrap overhaul
This release implements a complete overhaul of the textWrap
routine. The interface is now
textWrapOptions:
columns: 0
multipleSpacesToSingle: 1
blocksFollow:
headings: 1
commentOnPreviousLine: 1
par: 1
blankLine: 1
verbatim: 1
filecontents: 1
other: '\\\]|\\item(?:\h|\[)' # regex
blocksBeginWith:
A-Z: 1
a-z: 1
0-9: 0
other: 0 # regex
blocksEndBefore:
commentOnOwnLine: 1
verbatim: 1
filecontents: 1
other: '\\begin\{|\\\[|\\end\{' # regex
huge: overflow # forbid mid-word line breaks
separator: ""
Full details are documented at https://latexindentpl.readthedocs.io/en/latest/sec-the-m-switch.html#text-wrapping and some details within #346
minor updates to defaultSettings.yaml
tabulararray
is now supported by default, #343
V3.15
new feature: pre-commit
now supported with latexindent.pl
!
A massive thank you to @tdegeus for contributing this feature.
The feature is documented fully at https://latexindentpl.readthedocs.io/en/latest/sec-appendices.html#pre-commit; for reference see also #322 and #316
In brief, variations of the file .pre-commit-config.yaml
in your .git
repository as follows
- repo: https://github.com/cmhughes/latexindent.pl
rev: V3.15
hooks:
- id: latexindent
args: [-s]
and then running
pre-commit run --all-files
will run latexindent.pl
on all .tex
files in your repository. There's a supported option for conda
users also. Full details at https://latexindentpl.readthedocs.io/en/latest/sec-appendices.html#pre-commit