diff options
Diffstat (limited to 'support/arara/scripts/rules/xelatex.yaml')
-rw-r--r-- | support/arara/scripts/rules/xelatex.yaml | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/support/arara/scripts/rules/xelatex.yaml b/support/arara/scripts/rules/xelatex.yaml index e248ae2fe8..ef1e1a8f0a 100644 --- a/support/arara/scripts/rules/xelatex.yaml +++ b/support/arara/scripts/rules/xelatex.yaml @@ -1,22 +1,32 @@ !config # Arara, the cool TeX automation tool -# Copyright (c) 2018, Paulo Roberto Massa Cereda +# Copyright (c) 2020, Island of TeX # All rights reserved. # # This rule is part of arara. identifier: xelatex name: XeLaTeX authors: -- Marco Daniel -- Paulo Cereda +- Island of TeX commands: - name: XeLaTeX engine command: > @{ - return getCommand('xelatex', interaction, shell, - synctex, options, file); + return getCommand(branch, interaction, shell, + synctex, options, reference); } arguments: +- identifier: branch + flag: > + @{ + engines = [ 'stable' : 'xelatex', 'developer' : 'xelatex-dev' ]; + if (engines.keySet().contains(parameters.branch)) { + return engines.get(parameters.branch); + } else { + throwError('The valid branch values are: ' + engines.keySet()); + } + } + default: 'xelatex' - identifier: interaction flag: > @{ |