diff options
author | Norbert Preining <norbert@preining.info> | 2021-10-18 03:01:28 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-10-18 03:01:28 +0000 |
commit | ad3ad18aa939862832c90a74bcf41e8a5570ff65 (patch) | |
tree | 377bed46b478634d32730a255c1a93050ee17e87 /support/arara | |
parent | 54592d609e44d5cff9e5d940befbcb3330d92b10 (diff) |
CTAN sync 202110180301
Diffstat (limited to 'support/arara')
-rw-r--r-- | support/arara/README.md | 2 | ||||
-rw-r--r-- | support/arara/doc/arara-manual.pdf | bin | 1976977 -> 1971118 bytes | |||
-rw-r--r-- | support/arara/doc/arara-quickstart.pdf | bin | 253135 -> 252983 bytes | |||
-rw-r--r-- | support/arara/doc/arara.1 | 2 | ||||
-rw-r--r-- | support/arara/doc/chapters/rules.tex | 10 | ||||
-rw-r--r-- | support/arara/doc/version.tex | 2 | ||||
-rw-r--r-- | support/arara/scripts/rules/arara-rule-indent.yaml | 21 |
7 files changed, 31 insertions, 6 deletions
diff --git a/support/arara/README.md b/support/arara/README.md index 41675e89a9..3110c15e30 100644 --- a/support/arara/README.md +++ b/support/arara/README.md @@ -1,6 +1,6 @@  -# arara v6.1.1 +# arara v6.1.2   diff --git a/support/arara/doc/arara-manual.pdf b/support/arara/doc/arara-manual.pdf Binary files differindex 650404820f..9f76244314 100644 --- a/support/arara/doc/arara-manual.pdf +++ b/support/arara/doc/arara-manual.pdf diff --git a/support/arara/doc/arara-quickstart.pdf b/support/arara/doc/arara-quickstart.pdf Binary files differindex f6ced644cb..9fcfa85863 100644 --- a/support/arara/doc/arara-quickstart.pdf +++ b/support/arara/doc/arara-quickstart.pdf diff --git a/support/arara/doc/arara.1 b/support/arara/doc/arara.1 index ac6c678ec2..f59a841643 100644 --- a/support/arara/doc/arara.1 +++ b/support/arara/doc/arara.1 @@ -1,4 +1,4 @@ -.TH ARARA 1 "26 June 2021" "v6.1.1" +.TH ARARA 1 "17 October 2021" "v6.1.2" .SH NAME arara \- a TeX automation tool based on rules and directives. .SH SYNOPSIS diff --git a/support/arara/doc/chapters/rules.tex b/support/arara/doc/chapters/rules.tex index ed46c0b2da..244ecac2b1 100644 --- a/support/arara/doc/chapters/rules.tex +++ b/support/arara/doc/chapters/rules.tex @@ -714,6 +714,16 @@ This rule runs \rbox{latexindent}, a Perl script that indents \TeX\ files accord \item[\povalue{noindent}] This value, as the name implies, will not perform indentation, and will perform replacements not respecting verbatim code blocks. \end{description} + +\item[\abox{check}] This option, as the name indicates, checks whether the text after indentation matches that given in the original file. Two possible values are available: + +\begin{description} +\item[\povalue{standard}] This value, as the name indicates, refers to the standard behaviour. Please refer to the documentation for further details. + +\item[\povalue{verbose}] This value, as the name indicates, refers to including more details to the check. The tool will print the result in the standard output, as well as in its own log file. Please refer to the documentation for further details. +\end{description} + +\item[\abox{lines}] This option instructs the tool to operate only on specific line ranges within the file being inspected. Please refer to the documentation for further details. \end{description} \begin{codebox}{Example}{teal}{\icnote}{white} diff --git a/support/arara/doc/version.tex b/support/arara/doc/version.tex index 132c6def58..92f2ea2994 100644 --- a/support/arara/doc/version.tex +++ b/support/arara/doc/version.tex @@ -1 +1 @@ -6.1.1
\ No newline at end of file +6.1.2
\ No newline at end of file diff --git a/support/arara/scripts/rules/arara-rule-indent.yaml b/support/arara/scripts/rules/arara-rule-indent.yaml index 8425d596de..accfa3b2d7 100644 --- a/support/arara/scripts/rules/arara-rule-indent.yaml +++ b/support/arara/scripts/rules/arara-rule-indent.yaml @@ -13,9 +13,9 @@ commands: - name: The latexindent.pl script command: > @{ - return getCommand('latexindent', silent, trace, screenlog, + return getCommand('latexindent', silent, trace, screenlog, lines, settings, cruft, overwrite, output, reference.getName(), - modifylinebreaks, replacement, options, logfile); + modifylinebreaks, check, replacement, options, logfile); } arguments: - identifier: silent @@ -76,6 +76,11 @@ arguments: @{ [ '-o', parameters.output ] } +- identifier: lines + flag: > + @{ + [ '--lines', parameters.lines ] + } - identifier: where flag: > @{ @@ -96,7 +101,17 @@ arguments: throwError('You provided an invalid value for replacement.'); } } - +- identifier: check + flag: > + @{ + opts = [ 'standard' : '--check', 'verbose' : '--checkv' ]; + if (opts.keySet().contains(parameters.check)) { + return opts[parameters.check]; + } + else { + throwError('You provided an invalid value for check.'); + } + } - identifier: options flag: > @{ |