From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- support/arara/scripts/rules/dvipdfmx.yaml | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 support/arara/scripts/rules/dvipdfmx.yaml (limited to 'support/arara/scripts/rules/dvipdfmx.yaml') diff --git a/support/arara/scripts/rules/dvipdfmx.yaml b/support/arara/scripts/rules/dvipdfmx.yaml new file mode 100644 index 0000000000..2feb9f0fe9 --- /dev/null +++ b/support/arara/scripts/rules/dvipdfmx.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: dvipdfmx +name: DVIPDFMX +authors: +- Marco Daniel +- Paulo Cereda +commands: +- name: The DVIPDFMX program + command: > + @{ + base = getBasename(file).concat('.dvi'); + out = getBasename(output).concat('.pdf'); + return getCommand('dvipdfmx', 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.'); + } + } -- cgit v1.2.3