From 18510c8052e3e5b3d9a373c6418289f70d0fc28d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 24 Apr 2020 03:03:14 +0000 Subject: CTAN sync 202004240303 --- support/arara/scripts/rules/authorindex.yaml | 53 ++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 support/arara/scripts/rules/authorindex.yaml (limited to 'support/arara/scripts/rules') diff --git a/support/arara/scripts/rules/authorindex.yaml b/support/arara/scripts/rules/authorindex.yaml new file mode 100644 index 0000000000..a7e32141a9 --- /dev/null +++ b/support/arara/scripts/rules/authorindex.yaml @@ -0,0 +1,53 @@ +!config +# Arara, the cool TeX automation tool +# Copyright (c) 2020, Island of TeX +# All rights reserved. +# +# This rule is part of arara. +identifier: authorindex +name: AuthorIndex +authors: +- Island of TeX +commands: +- name: The AuthorIndex script + command: > + @{ + return getCommand('authorindex', draft, index, keep, print, + recurse, options, getBasename(reference.getName())); + } +arguments: +- identifier: draft + flag: > + @{ + return isTrue(parameters.draft, '-d'); + } +- identifier: index + flag: > + @{ + return isTrue(parameters.index, '-i'); + } +- identifier: keep + flag: > + @{ + return isTrue(parameters.keep, '-k'); + } +- identifier: print + flag: > + @{ + return isTrue(parameters.print, '-p'); + } +- identifier: recurse + flag: > + @{ + return isFalse(parameters.recurse, '-r'); + } +- identifier: options + flag: > + @{ + if (isList(parameters.options)) { + return parameters.options; + } + else { + throwError('I was expecting a list of options.'); + } + } -- cgit v1.2.3