summaryrefslogtreecommitdiff
path: root/support/arara/scripts/rules/dvipdfm.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'support/arara/scripts/rules/dvipdfm.yaml')
-rw-r--r--support/arara/scripts/rules/dvipdfm.yaml39
1 files changed, 39 insertions, 0 deletions
diff --git a/support/arara/scripts/rules/dvipdfm.yaml b/support/arara/scripts/rules/dvipdfm.yaml
new file mode 100644
index 0000000000..d2dca0db36
--- /dev/null
+++ b/support/arara/scripts/rules/dvipdfm.yaml
@@ -0,0 +1,39 @@
+!config
+# Arara, the cool TeX automation tool
+# Copyright (c) 2018, Paulo Roberto Massa Cereda
+# All rights reserved.
+#
+# This rule is part of arara.
+identifier: dvipdfm
+name: DVIPDFM
+authors:
+- Marco Daniel
+- Paulo Cereda
+commands:
+- name: The DVIPDFM program
+ command: >
+ @{
+ base = getBasename(file).concat('.dvi');
+ out = getBasename(output).concat('.pdf');
+ return getCommand('dvipdfm', base, '-o', out, options);
+ }
+arguments:
+- identifier: output
+ flag: >
+ @{
+ parameters.output
+ }
+ default: >
+ @{
+ file
+ }
+- identifier: options
+ flag: >
+ @{
+ if (isList(parameters.options)) {
+ return parameters.options;
+ }
+ else {
+ throwError('I was expecting a list of options.');
+ }
+ }