summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/arara/rules/arara-rule-nomencl.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/arara/rules/arara-rule-nomencl.yaml')
-rw-r--r--Master/texmf-dist/scripts/arara/rules/arara-rule-nomencl.yaml35
1 files changed, 35 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-nomencl.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-nomencl.yaml
new file mode 100644
index 00000000000..8d66acdb303
--- /dev/null
+++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-nomencl.yaml
@@ -0,0 +1,35 @@
+!config
+# Arara, the cool TeX automation tool
+# Copyright (c) 2020, Island of TeX
+# All rights reserved.
+#
+# This rule is part of arara.
+identifier: nomencl
+name: Nomencl
+authors:
+- Island of TeX
+commands:
+- name: The Nomenclature software
+ command: >
+ @{
+ nlo = getBasename(reference.getName()).concat('.nlo');
+ nls = getBasename(reference.getName()).concat('.nls');
+ return getCommand('makeindex', options, nlo, style, '-o', nls);
+ }
+arguments:
+- identifier: style
+ flag: >
+ @{
+ [ '-s', isEmpty(parameters.style, 'nomencl.ist', parameters.style) ]
+ }
+ default: ''
+- identifier: options
+ flag: >
+ @{
+ if (isList(parameters.options)) {
+ return parameters.options;
+ }
+ else {
+ throwError('I was expecting a list of options.');
+ }
+ }