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.yaml181
1 files changed, 181 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml b/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml
new file mode 100755
index 00000000000..457629ce863
--- /dev/null
+++ b/Master/texmf-dist/scripts/latexindent/defaultSettings.yaml
@@ -0,0 +1,181 @@
+#
+# defaultSettings.yaml
+#
+# You're welcome to change anything you like in here, but
+# it would probably be better to have your own user settings
+# files somewhere else- remember that this file may be overwritten
+# anytime that you update your distribution. Please see the manual
+# for details of how to setup your own settings files.
+#
+# Please read the manual first to understand what each switch does :)
+
+# Default value of indentation
+defaultIndent: "\t"
+
+# default file extension of backup file (if original is overwritten with -w switch)
+# for example, if your .tex file is called
+# myfile.tex
+# and you specify the backupExtension as BACKUP.bak then your
+# backup file will be
+# myfileBACKUP.bak
+backupExtension: .bak
+
+# only one backup per file; if onlyOneBackUp is 0 then the
+# number on the extension increments by 1 each time
+# (this is in place as a safety measure) myfile.bak0, myfile.bak1, myfile.bak2
+#
+# if you set onlyOnebackUp to 1, then the backup file will
+# be overwritten each time (not recommended until you trust the script)
+onlyOneBackUp: 0
+
+# some users may only want a set number of backup files,
+# say at most 3; in which case, they can change this switch.
+# If maxNumberOfBackUps is set to 0 (or less) then infinitely
+# many backups are possible, unless onlyOneBackUp is switched on
+maxNumberOfBackUps: 0
+
+# indent preamble
+indentPreamble: 0
+
+# always look for split { }, which means that the user doesn't
+# have to complete checkunmatched, checkunmatchedELSE
+alwaysLookforSplitBraces: 1
+
+# always look for split [ ], which means that the user doesn't
+# have to complete checkunmatchedbracket
+alwaysLookforSplitBrackets: 1
+
+# remove trailing whitespace from all lines
+removeTrailingWhitespace: 0
+
+# environments that have tab delimiters, add more
+# as needed
+lookForAlignDelims:
+ tabular: 1
+ tabularx: 1
+ array: 1
+ matrix: 1
+ bmatrix: 1
+ pmatrix: 1
+ align: 1
+ align*: 1
+ alignat: 1
+ alignat*: 1
+ aligned: 1
+ cases: 1
+ dcases: 1
+ pmatrix: 1
+ listabla: 1
+
+# if you have indent rules for particular environments
+# or commands, put them in here; for example, you might just want
+# to use a space " " or maybe a double tab "\t\t"
+indentRules:
+ myenvironment: "\t\t"
+ anotherenvironment: "\t\t\t\t"
+ chapter: " "
+ section: " "
+
+# verbatim environments- environments specified
+# in this hash table will not be changed at all!
+verbatimEnvironments:
+ verbatim: 1
+ lstlisting: 1
+
+# no indent blocks (not necessarily verbatim
+# environments) which are marked as %\begin{noindent}
+# or anything else that the user puts in this hash
+# table
+noIndentBlock:
+ noindent: 1
+ cmhtest: 1
+
+# if you don't want to have additional indentation
+# in an environment put it in this hash table; note that
+# environments in this hash table will inherit
+# the *current* level of indentation they just won't
+# get any *additional*.
+noAdditionalIndent:
+ myexample: 1
+ mydefinition: 1
+ problem: 1
+ exercises: 1
+ mysolution: 1
+ foreach: 0
+ widepage: 1
+ comment: 1
+ \[: 0
+ \]: 0
+ document: 1
+ frame: 0
+
+# if you want to add indentation after
+# a heading, such as \part, \chapter, etc
+# then populate it in here - you can add
+# an indent rule to indentRules if you would
+# like something other than defaultIndent
+#
+# you can also change the level if you like,
+# or add your own title command
+indentAfterHeadings:
+ part:
+ indent: 0
+ level: 1
+ chapter:
+ indent: 0
+ level: 2
+ section:
+ indent: 0
+ level: 3
+ subsection:
+ indent: 0
+ level: 4
+ subsection*:
+ indent: 0
+ level: 4
+ subsubsection:
+ indent: 0
+ level: 5
+ paragraph:
+ indent: 0
+ level: 6
+ subparagraph:
+ indent: 0
+ level: 7
+
+# *** NOTE ***
+# If you have specified alwaysLookforSplitBraces: 1
+# and alwaysLookforSplitBrackets: 1 then you don't need
+# to worry about completing
+#
+# checkunmatched
+# checkunmatchedELSE
+# checkunmatchedbracket
+#
+# in other words, you don't really need to edit anything
+# below this line- it used to be necessary for older
+# versions of the script, but not anymore :)
+#*** ***
+
+# commands that might split {} across lines
+# such as \parbox, \marginpar, etc
+checkunmatched:
+ parbox: 1
+ vbox: 1
+
+# very similar to %checkunmatched except these
+# commands might have an else construct
+checkunmatchedELSE:
+ pgfkeysifdefined: 1
+ DTLforeach: 1
+ ifthenelse: 1
+
+# commands that might split [] across lines
+# such as \pgfplotstablecreatecol, etc
+checkunmatchedbracket:
+ pgfplotstablecreatecol: 1
+ pgfplotstablesave: 1
+ pgfplotstabletypeset: 1
+ mycommand: 1
+ psSolid: 1
+