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.yaml62
1 files changed, 61 insertions, 1 deletions
diff --git a/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml b/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml
index 457629ce863..799c081f4dc 100755
--- a/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml
+++ b/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml
@@ -34,6 +34,18 @@ onlyOneBackUp: 0
# many backups are possible, unless onlyOneBackUp is switched on
maxNumberOfBackUps: 0
+# some users may wish to cycle through back up files, for example,
+# with maxNumberOfBackUps: 4, they may wish to delete the oldest
+# back up file, and keep only the most recent.
+#
+# copy myfile.bak1 to myfile.bak0
+# copy myfile.bak2 to myfile.bak1
+# copy myfile.bak3 to myfile.bak2
+# copy myfile.bak4 to myfile.bak3
+#
+# the back up will be written to myfile.bak4
+cycleThroughBackUps: 0
+
# indent preamble
indentPreamble: 0
@@ -53,6 +65,7 @@ removeTrailingWhitespace: 0
lookForAlignDelims:
tabular: 1
tabularx: 1
+ longtable: 1
array: 1
matrix: 1
bmatrix: 1
@@ -64,7 +77,6 @@ lookForAlignDelims:
aligned: 1
cases: 1
dcases: 1
- pmatrix: 1
listabla: 1
# if you have indent rules for particular environments
@@ -75,6 +87,7 @@ indentRules:
anotherenvironment: "\t\t\t\t"
chapter: " "
section: " "
+ item: " "
# verbatim environments- environments specified
# in this hash table will not be changed at all!
@@ -143,6 +156,53 @@ indentAfterHeadings:
indent: 0
level: 7
+# if you want the script to look for \item commands
+# and format it, as follows (for example),
+# \begin{itemize}
+# \item content here
+# next line is indented
+# next line is indented
+# \item another item
+# \end{itemize}
+# then populate indentAfterItems. See also itemNames
+indentAfterItems:
+ itemize: 1
+ enumerate: 1
+ list: 1
+
+# if you want to use other names for your items (such as, for example, part)
+# then populate them here- note that you can trick latexindent.pl
+# into indenting all kinds of commands (within environments specified in
+# indentAfterItems) using this technique.
+itemNames:
+ item: 1
+ myitem: 1
+
+# if you want to indent if, else, fi constructs such as, for example,
+#
+# \ifnum#1=2
+# something
+# \else
+# something else
+# \fi
+#
+# then populate them in constructIfElseFi
+constructIfElseFi:
+ ifnum: 1
+ ifdim: 1
+ ifodd: 1
+ ifvmode: 1
+ ifhmode: 1
+ ifmmode: 1
+ ifinner: 1
+ if: 1
+ ifcat: 1
+ ifx: 1
+ ifvoid: 1
+ ifeof: 1
+ iftrue: 1
+ ifcase: 1
+
# *** NOTE ***
# If you have specified alwaysLookforSplitBraces: 1
# and alwaysLookforSplitBrackets: 1 then you don't need