summaryrefslogtreecommitdiff
path: root/support/arara
diff options
context:
space:
mode:
Diffstat (limited to 'support/arara')
-rw-r--r--support/arara/README.md2
-rw-r--r--support/arara/doc/arara-manual.pdfbin1976977 -> 1971118 bytes
-rw-r--r--support/arara/doc/arara-quickstart.pdfbin253135 -> 252983 bytes
-rw-r--r--support/arara/doc/arara.12
-rw-r--r--support/arara/doc/chapters/rules.tex10
-rw-r--r--support/arara/doc/version.tex2
-rw-r--r--support/arara/scripts/rules/arara-rule-indent.yaml21
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](https://i.stack.imgur.com/hjUsN.png)
-# arara v6.1.1
+# arara v6.1.2
![Language: Kotlin](https://img.shields.io/badge/Language-Kotlin-blue.svg?style=flat-square)
![Minimum JRE: 8.0](https://img.shields.io/badge/Minimum_JRE-8-blue.svg?style=flat-square)
diff --git a/support/arara/doc/arara-manual.pdf b/support/arara/doc/arara-manual.pdf
index 650404820f..9f76244314 100644
--- a/support/arara/doc/arara-manual.pdf
+++ b/support/arara/doc/arara-manual.pdf
Binary files differ
diff --git a/support/arara/doc/arara-quickstart.pdf b/support/arara/doc/arara-quickstart.pdf
index f6ced644cb..9fcfa85863 100644
--- a/support/arara/doc/arara-quickstart.pdf
+++ b/support/arara/doc/arara-quickstart.pdf
Binary files differ
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: >
@{