summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/latexindent/defaultSettings.yaml')
-rwxr-xr-xMaster/texmf-dist/scripts/latexindent/defaultSettings.yaml36
1 files changed, 34 insertions, 2 deletions
diff --git a/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml b/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml
index fabc5f5b6e9..13a78346598 100755
--- a/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml
+++ b/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml
@@ -1,4 +1,4 @@
-# defaultSettings.yaml for latexindent.pl, version 3.16, 2022-03-13
+# defaultSettings.yaml for latexindent.pl, version 3.17.1, 2022-04-04
# a script that aims to
# beautify .tex, .sty, .cls files
#
@@ -232,8 +232,11 @@ lookForAlignDelims:
# then populate indentAfterItems. See also itemNames
indentAfterItems:
itemize: 1
+ itemize*: 1
enumerate: 1
+ enumerate*: 1
description: 1
+ description*: 1
list: 1
# if you want to use other names for your items (for example, \part)
@@ -494,6 +497,7 @@ modifyLineBreaks:
oneSentencePerLine:
manipulateSentences: 0
removeSentenceLineBreaks: 1
+ multipleSpacesToSingle: 1
textWrapSentences: 0 # setting to 1 disables main textWrap routine
sentenceIndent: ""
sentencesFollow:
@@ -518,6 +522,7 @@ modifyLineBreaks:
textWrapOptions:
columns: 0
multipleSpacesToSingle: 1
+ removeBlockLineBreaks: 1
blocksFollow:
headings: 1
commentOnPreviousLine: 1
@@ -634,6 +639,33 @@ fineTuning:
trailingComments:
notPreceededBy: '(?<!\\)'
modifyLineBreaks:
- betterFullStop: '(?:\.\)(?!\h*[a-z]))|(?:(?<!(?:(?:e\.g)|(?:E\.g)|(?:i\.e)|(?:I\.e)|(?:etc))))\.(?!(?:[a-z]|[A-Z]|\-|~|\,|[0-9]))'
doubleBackSlash: '\\\\(?:\h*\[\h*\d+\h*[a-zA-Z]+\h*\])?'
comma: ','
+ betterFullStop: |-
+ (?x) # ignore spaces in the below
+ (?: #
+ \.\) # .)
+ (?!\h*[a-z]) # not *followed by* a-z
+ ) #
+ | # OR
+ (?: #
+ (?<! # not *preceeded by*
+ (?: #
+ (?:[eE]\.[gG]) # e.g OR E.g OR e.G OR E.G
+ | #
+ (?:[iI]\.[eE]) # i.e OR I.e OR i.E OR I.E
+ | #
+ (?:etc) # etc
+ ) #
+ ) #
+ ) #
+ \. # .
+ (?! # not *followed by*
+ (?: #
+ [a-zA-Z0-9-~,] #
+ | #
+ \), # ),
+ | #
+ \)\. # ).
+ ) #
+ ) #