diff --git a/config/latex/.indentsettings.yaml b/config/latex/.indentsettings.yaml index 6f9109f9..c824370b 100644 --- a/config/latex/.indentsettings.yaml +++ b/config/latex/.indentsettings.yaml @@ -1,28 +1,29 @@ -# defaultSettings.yaml for latexindent.pl, version 3.8.1, 2020-05-05 +# defaultSettings.yaml for latexindent.pl, version 3.19.1, 2022-12-04 # a script that aims to # beautify .tex, .sty, .cls files # # (or latexindent.exe if you're on Windows) # +#--------------------------------------------------------------------------------------- # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # See http://www.gnu.org/licenses/. -# +# # Chris Hughes, 2017 -# +# # For all communication, please visit: https://github.com/cmhughes/latexindent.pl - - -# You should feel encouraged to change anything you like in these settings, but -# it would probably be better to have your own user settings +# +#--------------------------------------------------------------------------------------- +# You should feel encouraged to change anything you like in these settings, but +# it would probably be better to have your own user settings # files somewhere else - remember that this file may be overwritten # when you update your tex distribution. Please see the manual linked from: # @@ -31,8 +32,10 @@ # for details of how to create and configure your own settings files. # # Please read the manual (linked from above) first to understand what each switch does. +# +#--------------------------------------------------------------------------------------- -# latexindent can be called to act on a file without using the file's extension, +# latexindent can be called to act on a file without using the file's extension, # e.g, simply # latexindent myfile # in which case the choice of file extension is chosen @@ -47,13 +50,13 @@ fileExtensionPreference: # default file extension of backup file (if -w switch is active) # for example, if your .tex file is called # myfile.tex -# and you specify the backupExtension as BACKUP.bak then your +# 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, as a safety measure, +# only one backup per file: +# - if onlyOneBackUp is 0 then, as a safety measure, # the number on the extension increments by 1 each time: # # myfile.bak0, myfile.bak1, myfile.bak2 @@ -61,16 +64,16 @@ backupExtension: .bak # be overwritten each time (not recommended until you trust the script) onlyOneBackUp: 0 -# some users may want a finite number of backup files, +# some users may want a finite number of backup files, # say at most 3; in which case, they can change this maxNumberOfBackUps. # -# If maxNumberOfBackUps is set to 0 (or less) then infinitely +# If maxNumberOfBackUps is set to 0 (or less) then infinitely # many backups are possible, unless onlyOneBackUp is switched on maxNumberOfBackUps: 0 -# some users may wish to cycle through back up files. +# some users may wish to cycle through back up files. # -# for example, with maxNumberOfBackUps: 4, they may +# 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 @@ -87,37 +90,37 @@ logFilePreferences: showAmalgamatedSettings: 0 showDecorationStartCodeBlockTrace: 0 showDecorationFinishCodeBlockTrace: 0 - endLogFileWith: '--------------' + endLogFileWith: '--------------' showGitHubInfoFooter: 1 - PatternLayout: - default: "%A%n" - trace: "%A%n" - ttrace: "%A%n" + Dumper: + Terse: 1 + Indent: 1 + Useqq: 1 + Deparse: 1 + Quotekeys: 0 + Sortkeys: 1 + Pair: " => " -# verbatim environments specified +# verbatim environments specified # in this field will not be changed at all! verbatimEnvironments: verbatim: 1 lstlisting: 1 minted: 1 + codeblock: 1 # BSuSP Thesis Listing # verbatim commands such as \verb! body !, \lstinline$something else$ verbatimCommands: verb: 1 lstinline: 1 -# no indent blocks (not necessarily verbatim +# no indent blocks (not necessarily verbatim # environments) which are marked as %\begin{noindent} # or anything else that you detail in the following noIndentBlock: noindent: 1 cmhtest: 1 -# remove trailing whitespace from all lines -removeTrailingWhitespace: - beforeProcessing: 0 - afterProcessing: 1 - # \begin{document} and \end{document} are treated differently # by latexindent within filecontents environments fileContentsEnvironments: @@ -142,12 +145,16 @@ lookForPreamble: preambleCommandsBeforeEnvironments: 0 # default value of indentation -# defaultIndent: "\t" -defaultIndent: " " +defaultIndent: " " # Changed from \t to double space + +# remove trailing whitespace from all lines +removeTrailingWhitespace: + beforeProcessing: 0 + afterProcessing: 1 # name of code blocks that should have their body aligned at ampersand delimiters lookForAlignDelims: - tabular: + tabular: delims: 1 alignDoubleBackSlash: 1 spacesBeforeDoubleBackSlash: 1 @@ -160,27 +167,63 @@ lookForAlignDelims: dontMeasure: 0 delimiterRegEx: '(?]*?>)' keyEqualsValuesBracesBrackets: - name: '[a-zA-Z@\*0-9_\/.\h\{\}:\#-]+?' + name: '[a-zA-Z@\*0-9_\/.:\#-]+[a-zA-Z@\*0-9_\/.\h\{\}:\#-]*?' follow: '(?:(?<]+?' follow: '\h|\R|\{|\[|\$|\)|\(' - UnNamedGroupingBracesBrackets: + UnNamedGroupingBracesBrackets: follow: '\{|\[|,|&|\)|\(|\$' arguments: before: '(?:#\d\h*;?,?\/?)+|\<.*?\>' between: '_|\^|\*' + trailingComments: + notPreceededBy: '(?