diff options
Diffstat (limited to 'support/arara/scripts/rules/pdflatex.yaml')
-rw-r--r-- | support/arara/scripts/rules/pdflatex.yaml | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/support/arara/scripts/rules/pdflatex.yaml b/support/arara/scripts/rules/pdflatex.yaml index 61b9b8d356..3df1135dfa 100644 --- a/support/arara/scripts/rules/pdflatex.yaml +++ b/support/arara/scripts/rules/pdflatex.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: pdflatex name: PDFLaTeX authors: -- Marco Daniel -- Paulo Cereda +- Island of TeX commands: - name: PDFLaTeX engine command: > @{ - return getCommand('pdflatex', interaction, draft, shell, - synctex, options, file); + return getCommand(branch, interaction, draft, shell, + synctex, options, reference); } arguments: +- identifier: branch + flag: > + @{ + engines = [ 'stable' : 'pdflatex', 'developer' : 'pdflatex-dev' ]; + if (engines.keySet().contains(parameters.branch)) { + return engines.get(parameters.branch); + } else { + throwError('The valid branch values are: ' + engines.keySet()); + } + } + default: 'pdflatex' - identifier: interaction flag: > @{ |