diff options
Diffstat (limited to 'Master/texmf-dist/scripts/arara/rules/arara-rule-dvips.yaml')
-rw-r--r-- | Master/texmf-dist/scripts/arara/rules/arara-rule-dvips.yaml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/arara/rules/arara-rule-dvips.yaml b/Master/texmf-dist/scripts/arara/rules/arara-rule-dvips.yaml new file mode 100644 index 00000000000..4cde26fa991 --- /dev/null +++ b/Master/texmf-dist/scripts/arara/rules/arara-rule-dvips.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: dvips +name: DVIPS +authors: +- Island of TeX +commands: +- name: The DVIPS program + command: > + @{ + base = getBasename(reference.getName()).concat('.dvi'); + out = getBasename(output[0]).concat('.ps'); + return getCommand('dvips', 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.'); + } + } |