diff options
Diffstat (limited to 'Master/texmf-dist/scripts/arara/rules/dvips.yaml')
-rw-r--r-- | Master/texmf-dist/scripts/arara/rules/dvips.yaml | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/Master/texmf-dist/scripts/arara/rules/dvips.yaml b/Master/texmf-dist/scripts/arara/rules/dvips.yaml index 48e9172e972..dd7a929bd0c 100644 --- a/Master/texmf-dist/scripts/arara/rules/dvips.yaml +++ b/Master/texmf-dist/scripts/arara/rules/dvips.yaml @@ -1,13 +1,39 @@ !config -# DVIPS rule for arara -# author: Marco Daniel -# requires arara 3.0+ +# Arara, the cool TeX automation tool +# Copyright (c) 2018, Paulo Roberto Massa Cereda +# All rights reserved. +# +# This rule is part of arara. identifier: dvips name: DVIPS -command: <arara> dvips "@{getBasename(file)}.dvi" -o "@{output}.ps" @{options} +authors: +- Marco Daniel +- Paulo Cereda +commands: +- name: The DVIPS program + command: > + @{ + base = getBasename(file).concat('.dvi'); + out = getBasename(output).concat('.ps'); + return getCommand('dvips', base, '-o', out, options); + } arguments: - identifier: output - flag: <arara> @{parameters.output} - default: <arara> @{getBasename(file)} + flag: > + @{ + parameters.output + } + default: > + @{ + file + } - identifier: options - flag: <arara> @{parameters.options} + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } |