summaryrefslogtreecommitdiff
path: root/support/arara/scripts/rules/arara-rule-dvipdfmx.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'support/arara/scripts/rules/arara-rule-dvipdfmx.yaml')
-rw-r--r--support/arara/scripts/rules/arara-rule-dvipdfmx.yaml35
1 files changed, 35 insertions, 0 deletions
diff --git a/support/arara/scripts/rules/arara-rule-dvipdfmx.yaml b/support/arara/scripts/rules/arara-rule-dvipdfmx.yaml
new file mode 100644
index 0000000000..b4d8e19afa
--- /dev/null
+++ b/support/arara/scripts/rules/arara-rule-dvipdfmx.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: dvipdfmx
+name: DVIPDFMX
+authors:
+- Island of TeX
+commands:
+- name: The DVIPDFMX program
+ command: >
+ @{
+ base = getBasename(reference.getName()).concat('.dvi');
+ out = getBasename(output[0]).concat('.pdf');
+ return getCommand('dvipdfmx', base, '-o', out, options);
+ }
+arguments:
+- identifier: output
+ flag: >
+ @{
+ isEmpty(parameters.output, reference.getName(), parameters.output)
+ }
+ default: ''
+- identifier: options
+ flag: >
+ @{
+ if (isList(parameters.options)) {
+ return parameters.options;
+ }
+ else {
+ throwError('I was expecting a list of options.');
+ }
+ }