Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ brew install --cask mactex
- # restart terminal, then:
- $ which perl
- /opt/homebrew/bin/perl
- $ latexindent --help
- Can't locate YAML/Tiny.pm in @INC (you may need to install the YAML::Tiny module) (@INC contains: /usr/local/texlive/2021/texmf-dist/scripts/latexindent /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/site_perl/5.34.0/darwin-thread-multi-2level /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/site_perl/5.34.0 /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/5.34.0/darwin-thread-multi-2level /opt/homebrew/Cellar/perl
- [...]
- $ cpan YAML::Tiny
- $ latexindent --help
- Can't locate File/HomeDir.pm in @INC (you may need to install the File::HomeDir module) (@INC contains: /usr/local/texlive/2021/texmf-dist/scripts/latexindent /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/site_perl/5.34.0/darwin-thread-multi-2level /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/site_perl/5.34.0 /opt/homebrew/Cellar/perl/5.34.0/lib/perl5/5.34.0/darwin-thread-multi-2level
- [...]
- $ cpan File::HomeDir
- $ latexindent --help
- Can't locate Unicode/GCString.pm in @INC (you may need to install the Unicode::GCString module) (@INC contains: /usr/local/texlive/2021/texmf-dist/scripts/latexindent /opt/homebrew/Cellar/perl/5.34.0/...
- $ cpan Unicode/GCString.pm
- $ latexindent --help
- latexindent.pl version 3.9.1, 2021-03-21
- usage: latexindent.pl [options] [file]
- -v, --version
- displays the version number and date of release
- -h, --help
- help (see the documentation for detailed instructions and examples)
- -sl, --screenlog
- log file will also be output to the screen
- -o, --outputfile=<name-of-output-file>
- output to another file; sample usage:
- latexindent.pl -o outputfile.tex myfile.tex
- latexindent.pl -o=outputfile.tex myfile.tex
- -w, --overwrite
- overwrite the current file; a backup will be made, but still be careful
- -s, --silent
- silent mode: no output will be given to the terminal
- -t, --trace
- tracing mode: verbose information given to the log file
- -l, --local[=myyaml.yaml]
- use `localSettings.yaml`, `.localSettings.yaml`, `latexindent.yaml`,
- or `.latexindent.yaml` (assuming one of them exists in the directory of your file or in
- the current working directory); alternatively, use `myyaml.yaml`, if it exists;
- sample usage:
- latexindent.pl -l some.yaml myfile.tex
- latexindent.pl -l=another.yaml myfile.tex
- latexindent.pl -l=some.yaml,another.yaml myfile.tex
- -y, --yaml=<yaml settings>
- specify YAML settings; sample usage:
- latexindent.pl -y="defaultIndent:' '" myfile.tex
- latexindent.pl -y="defaultIndent:' ',maximumIndentation:' '" myfile.tex
- -d, --onlydefault
- ONLY use defaultSettings.yaml, ignore ALL (yaml) user files
- -g, --logfile=<name of log file>
- used to specify the name of logfile (default is indent.log)
- -c, --cruft=<cruft directory>
- used to specify the location of backup files and indent.log
- -m, --modifylinebreaks
- modify linebreaks before, during, and at the end of code blocks;
- trailing comments and blank lines can also be added using this feature
- -r, --replacement
- replacement mode, allows you to replace strings and regular expressions
- verbatim blocks not respected
- -rv, --replacementrespectverb
- replacement mode, allows you to replace strings and regular expressions
- while respecting verbatim code blocks
- -rr, --onlyreplacement
- *only* replacement mode, no indentation;
- verbatim blocks not respected
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement