summaryrefslogtreecommitdiff
path: root/support/arara/scripts/rules
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-05-03 03:01:15 +0000
committerNorbert Preining <norbert@preining.info>2024-05-03 03:01:15 +0000
commit5fc635e606281a4f66bbc31bfb827fee53a21f96 (patch)
tree9098d3cf064670ee534c4170ecdbdd90355d8932 /support/arara/scripts/rules
parent68c5442089b7c2e61ee14fc3efed490e291a244a (diff)
CTAN sync 202405030301
Diffstat (limited to 'support/arara/scripts/rules')
-rw-r--r--support/arara/scripts/rules/arara-rule-pdftocairo.yaml33
1 files changed, 33 insertions, 0 deletions
diff --git a/support/arara/scripts/rules/arara-rule-pdftocairo.yaml b/support/arara/scripts/rules/arara-rule-pdftocairo.yaml
new file mode 100644
index 0000000000..77ec8f2459
--- /dev/null
+++ b/support/arara/scripts/rules/arara-rule-pdftocairo.yaml
@@ -0,0 +1,33 @@
+!config
+identifier: pdftocairo
+name: pdftocairo
+authors:
+- samcarter
+commands:
+- name: The pdftocairo program
+ command: >
+ @{
+ return getCommand('pdftocairo', '-' + format[0], getBasename(reference.fileName)+'.pdf', options, output);
+ }
+arguments:
+- identifier: format
+ flag: >
+ @{
+ return parameters.format;
+ }
+ default: png
+- identifier: output
+ flag: >
+ @{
+ return parameters.output;
+ }
+- identifier: options
+ flag: >
+ @{
+ if (isList(parameters.options)) {
+ return parameters.options;
+ }
+ else {
+ throwError('I was expecting a list of options.');
+ }
+ } \ No newline at end of file