summaryrefslogtreecommitdiff
path: root/support/arara/doc/rules/quickstart.yaml
blob: fd2fd0f848da28804e304d079cf1e6fb58ccb8fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
!config
identifier: quickstart
name: The arara quickstart guide
authors:
- Island of TeX
commands:
- name: The PDFLaTeX engine
  command: >
    @{
        return getCommand('pdflatex', reference);
    }
- name: The PDFLaTeX engine
  command: >
    @{
        return getCommand('pdflatex', reference);
    }
- name: File cleanup
  command: >
    @{
        matches = listFilesByExtensions('.',
                  [ 'aux' ], true);
        prefix = [];
        if (isUnix()) {
            prefix = [ 'rm', '-f' ];
        }
        else {
            prefix = [ 'cmd', '/c', 'del' ];
        }
        removals = [];
        extensions = [ 'listing', 'log', 'toc',
                       'out', 'synctex.gz' ];
        foreach (extension : extensions) {
            removals.add(getCommand(prefix, getBasename(reference)
                     .concat('.').concat(extension)));
        }
        foreach (match : matches) {
            removals.add(getCommand(prefix, match.getCanonicalPath()));
        }
        return removals;
    }
arguments: []