From c51eadf9bfbc4973431a41ea48a79571a0a4a5e5 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 21 Mar 2021 21:43:20 +0000 Subject: latexindent (21mar21) git-svn-id: svn://tug.org/texlive/trunk@58595 c570f23f-e606-0410-a88d-b1316a301751 --- .../scripts/latexindent/LatexIndent/LogFile.pm | 29 +++++++++++----------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'Master/texmf-dist/scripts/latexindent/LatexIndent/LogFile.pm') diff --git a/Master/texmf-dist/scripts/latexindent/LatexIndent/LogFile.pm b/Master/texmf-dist/scripts/latexindent/LatexIndent/LogFile.pm index 8a35c3c2a27..ca8376daa9a 100644 --- a/Master/texmf-dist/scripts/latexindent/LatexIndent/LogFile.pm +++ b/Master/texmf-dist/scripts/latexindent/LatexIndent/LogFile.pm @@ -34,7 +34,7 @@ sub processSwitches{ if(scalar(@ARGV) < 1 or $switches{showhelp}) { print < output to another file; sample usage: - latexindent.pl -o outputfile.tex myfile.tex - latexindent.pl -o=outputfile.tex myfile.tex + 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 @@ -52,12 +52,13 @@ usage: latexindent.pl [options] [file][.tex|.sty|.cls|.bib|...] -t, --trace tracing mode: verbose information given to the log file -l, --local[=myyaml.yaml] - use localSettings.yaml (assuming it exists in the directory of your file, - or in the current working directory); alternatively, use myyaml.yaml, if it exists; + 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 + 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= specify YAML settings; sample usage: latexindent.pl -y="defaultIndent:' '" myfile.tex @@ -66,19 +67,19 @@ usage: latexindent.pl [options] [file][.tex|.sty|.cls|.bib|...] ONLY use defaultSettings.yaml, ignore ALL (yaml) user files -g, --logfile= used to specify the name of logfile (default is indent.log) - -c, --cruft= + -c, --cruft= used to specify the location of backup files and indent.log -m, --modifylinebreaks - modify linebreaks before, during, and at the end of code blocks; + 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 + -r, --replacement replacement mode, allows you to replace strings and regular expressions verbatim blocks not respected - -rv,--replacementrespectverb + -rv, --replacementrespectverb replacement mode, allows you to replace strings and regular expressions while respecting verbatim code blocks - -rr,--onlyreplacement - *only* replacement mode, no indentation + -rr, --onlyreplacement + *only* replacement mode, no indentation; verbatim blocks not respected ENDQUOTE ; -- cgit v1.2.3