Skip to content

Instantly share code, notes, and snippets.

@nasyxx
Created April 10, 2017 13:57
Show Gist options
  • Save nasyxx/2eb1efe95687b7eb4bd8ab14f747a1af to your computer and use it in GitHub Desktop.
Save nasyxx/2eb1efe95687b7eb4bd8ab14f747a1af to your computer and use it in GitHub Desktop.
latexindent version 3.0, a script to indent .tex files
latexindent lives here: /usr/local/texlive/2016/texmf-dist/scripts/latexindent/
Mon Apr 10 21:53:26 2017
Processing switches
-l|--localSettings: Read localSettings YAML file
-o|--outputfile: output to file
-c|--cruft: cruft directory
Directory for backup files and indent.log: logs/
YAML settings read
Reading defaultSettings.yaml from /usr/local/texlive/2016/texmf-dist/scripts/latexindent/defaultSettings.yaml
Home directory is /Users/Nasy (didn't find either indentconfig.yaml or .indentconfig.yaml)
To specify user settings you would put indentconfig.yaml here: /Users/Nasy/indentconfig.yaml
Alternatively, you can use the hidden file .indentconfig.yaml as: /Users/Nasy/.indentconfig.yaml
WARNING yaml file not found: ./localSettings.yaml not found
Proceeding without it.
List of items: myitem|item (see itemNames)
looking for VERBATIM commands (see verbatimCommands)
looking for FILE CONTENTS environments (see fileContentsEnvironments)
looking for filecontents*:1 environments
looking for filecontents:1 environments
\begin{document} found in body (after searching for filecontents)-- assuming that a preamble exists
Custom replacement text routine for preamble preamble
preamble found: LatexIndent::Preamble=HASH(0x7fc0040ac118)
replaced with ID: LTXIN-TK-preamble1-END
\begin{document}
NOT storing LTXIN-TK-preamble1-END for indentation -- will store as VERBATIM object (see indentPreamble)
Phase 1: searching for objects
looking for ENVIRONMENTS
looking for IFELSEFI
looking for HEADINGS (chapter, section, part, etc)
looking for COMMANDS and key = {value}
looking for SPECIAL begin/end
Objects have been found.
Operating on: masterdocument
Number of children:
5
Phase 2: finding surrounding indentation
Phase 3: indenting objects
Phase 4: final indentation check
Output routine
Outputting to file -s
--------------
Please direct all communication/issues to:
https://github.com/cmhughes/latexindent.pl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment