summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/arara/rules/nomencl.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/arara/rules/nomencl.yaml')
-rw-r--r--Master/texmf-dist/scripts/arara/rules/nomencl.yaml45
1 files changed, 35 insertions, 10 deletions
diff --git a/Master/texmf-dist/scripts/arara/rules/nomencl.yaml b/Master/texmf-dist/scripts/arara/rules/nomencl.yaml
index ce939975d4d..2a563b62664 100644
--- a/Master/texmf-dist/scripts/arara/rules/nomencl.yaml
+++ b/Master/texmf-dist/scripts/arara/rules/nomencl.yaml
@@ -1,15 +1,40 @@
!config
-# Nomencl rule for arara
-# author: Marco Daniel
-# last edited by: Paulo Cereda
-# requires arara 3.0+
+# Arara, the cool TeX automation tool
+# Copyright (c) 2018, Paulo Roberto Massa Cereda
+# All rights reserved.
+#
+# This rule is part of arara.
identifier: nomencl
name: Nomencl
-command: <arara> makeindex @{options} "@{getBasename(file)}.nlo" -s "@{style}.ist" -o "@{getBasename(file)}.nls"
-arguments:
+authors:
+- Marco Daniel
+- Nicola Talbot
+- Paulo Cereda
+commands:
+- name: The Nomenclature software
+ command: >
+ @{
+ nlo = getBasename(file).concat('.nlo');
+ nls = getBasename(file).concat('.nls');
+ return getCommand('makeindex', options, nlo, style, '-o', nls);
+ }
+arguments:
- identifier: style
- flag: <arara> @{parameters.style}
- default: nomencl
+ flag: >
+ @{
+ [ '-s', parameters.style ]
+ }
+ default: >
+ @{
+ [ '-s', 'nomencl.ist' ]
+ }
- identifier: options
- flag: <arara> @{parameters.options}
-
+ flag: >
+ @{
+ if (isList(parameters.options)) {
+ return parameters.options;
+ }
+ else {
+ throwError('I was expecting a list of options.');
+ }
+ }