summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/modules/mkii/rlxtools.rlx
blob: b230c6d5b5443efdea1ebdbdc0cbfb4bca9e3177 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?xml version='1.0 standalone='yes'?>

<rl:manipulators>

    <!-- normally the file tag will also have a suffix! -->

    <!-- pstopdf will be made independent of the example framework -->

    <!-- rl:manipulator name='pdf' suffix='svg'>
        <rl:old><rl:value name='path'/>/<rl:value name='file'/></rl:old>
        <rl:new><rl:value name='path'/>/<rl:value name='prefix'/><rl:value name='file' method='nosuffix'/>.pdf</rl:new>
        <rl:step>
            inkscape
            --without-gui
            --print="&gt;<rl:value name='path'/>/<rl:value name='prefix'/><rl:value name='file' method='nosuffix'/>.ps"
            <rl:value name='path'/>/<rl:value name='file' method='nosuffix'/>.svg
        </rl:step>
        <rl:step>
            texmfstart pstopdf
            <rl:value name='path'/>/<rl:value name='prefix'/><rl:value name='file' method='nosuffix'/>.ps
            <rl:value name='path'/>/<rl:value name='prefix'/><rl:value name='file' method='nosuffix'/>.pdf
        </rl:step>
    </rl:manipulator -->

    <!-- rl:manipulator name='pdf' suffix='svgz'>
        <rl:old><rl:value name='path'/>/<rl:value name='file'/></rl:old>
        <rl:new><rl:value name='path'/>/<rl:value name='prefix'/><rl:value name='file' method='nosuffix'/>.pdf</rl:new>
        <rl:step>
            inkscape
            --without-gui
            --print="&gt;<rl:value name='path'/>/<rl:value name='prefix'/><rl:value name='file' method='nosuffix'/>.ps"
            <rl:value name='path'/>/<rl:value name='file' method='nosuffix'/>.svgz
        </rl:step>
        <rl:step>
            texmfstart pstopdf
            <rl:value name='path'/>/<rl:value name='prefix'/><rl:value name='file' method='nosuffix'/>.ps
            <rl:value name='path'/>/<rl:value name='prefix'/><rl:value name='file' method='nosuffix'/>.pdf
        </rl:step>
    </rl:manipulator -->

    <rl:manipulator name='pdf' suffix='eps'>
        <rl:old><rl:value name='path'/>/<rl:value name='file' method='nosuffix'/>.eps</rl:old>
        <rl:new><rl:value name='path'/>/<rl:value name='prefix'/><rl:value name='file' method='nosuffix'/>.pdf</rl:new>
        <rl:step>
            texmfstart pstopdf --convert
            <rl:value name='old'/>
        </rl:step>
    </rl:manipulator>

    <rl:manipulator name='pdf' suffix='svg'>
        <rl:old><rl:value name='path'/>/<rl:value name='file' method='nosuffix'/>.svg</rl:old>
        <rl:new><rl:value name='path'/>/<rl:value name='prefix'/><rl:value name='file' method='nosuffix'/>.pdf</rl:new>
        <rl:step>
            texmfstart pstopdf --convert
            <rl:value name='old'/>
            <rl:value name='new'/>
        </rl:step>
    </rl:manipulator>

    <rl:manipulator name='pdf' suffix='svgz'>
        <rl:old><rl:value name='path'/>/<rl:value name='file' method='nosuffix'/>.svgz</rl:old>
        <rl:new><rl:value name='path'/>/<rl:value name='prefix'/><rl:value name='file' method='nosuffix'/>.pdf</rl:new>
        <rl:step>
            texmfstart pstopdf --convert
            <rl:value name='old'/>
            <rl:value name='new'/>
        </rl:step>
    </rl:manipulator>

    <rl:manipulator name='lowres' suffix='pdf'>
        <rl:old><rl:value name='path'/>/<rl:value name='file'/></rl:old>
        <rl:new><rl:value name='path'/>/<rl:value name='prefix'/><rl:value name='file'/></rl:new>
        <rl:step>
            texmfstart pstopdf --convert --method=4
            --inputpath=<rl:value name='path'/>
            --outputpath=<rl:value name='path'/>/<rl:value name='prefix'/>
            <rl:value name='file'/>
        </rl:step>
    </rl:manipulator>

    <rl:manipulator name='medres' suffix='pdf'>
        <rl:old><rl:value name='path'/>/<rl:value name='file'/></rl:old>
        <rl:new><rl:value name='path'/>/<rl:value name='prefix'/><rl:value name='file'/></rl:new>
        <rl:step>
            texmfstart pstopdf --convert  --method=4
            --inputpath=<rl:value name='path'/>
            --outputpath=<rl:value name='path'/>/<rl:value name='prefix'/>
            <rl:value name='file'/>
        </rl:step>
   </rl:manipulator>

    <rl:manipulator name='pdf' suffix='gif'>
        <rl:old><rl:value name='path'/>/<rl:value name='file' method='nosuffix'/>.gif</rl:old>
        <rl:new><rl:value name='cache' default='.'/>/<rl:value name='file' method='nosuffix'/>.pdf</rl:new>
        <rl:step>
            texmfstart pstopdf --convert
            --inputpath=<rl:value name='path'/>
            --outputpath=<rl:value name='cache' default='.'/>
            <rl:value name='file' method='nosuffix'/>.gif
        </rl:step>
    </rl:manipulator>

    <rl:manipulator name='pdf' suffix='tif'>
        <rl:old><rl:value name='path'/>/<rl:value name='file' method='nosuffix'/>.tif</rl:old>
        <rl:new><rl:value name='cache' default='.'/>/<rl:value name='file' method='nosuffix'/>.pdf</rl:new>
        <rl:step>
            texmfstart pstopdf --convert
            --inputpath=<rl:value name='path'/>
            --outputpath=<rl:value name='cache' default='.'/>
            <rl:value name='file' method='nosuffix'/>.tif
        </rl:step>
    </rl:manipulator>

    <rl:manipulator name='pdf' suffix='tiff'>
        <rl:old><rl:value name='path'/>/<rl:value name='file' method='nosuffix'/>.tiff</rl:old>
        <rl:new><rl:value name='cache' default='.'/>/<rl:value name='file' method='nosuffix'/>.pdf</rl:new>
        <rl:step>
            texmfstart pstopdf --convert
            --inputpath=<rl:value name='path'/>
            --outputpath=<rl:value name='cache' default='.'/>
            <rl:value name='file' method='nosuffix'/>.tiff
        </rl:step>
    </rl:manipulator>

    <rl:manipulator name='cropped' suffix='pdf'>
        <rl:old><rl:value name='path'/>/<rl:value name='file'/></rl:old>
        <rl:new><rl:value name='path'/>/<rl:value name='prefix'/><rl:value name='file'/></rl:new>
        <rl:step>
            texmfstart pstopdf --convert --method=3
            --inputpath=<rl:value name='path'/>
            --outputpath=<rl:value name='path'/>/<rl:value name='prefix'/>
            <rl:value name='file'/>
        </rl:step>
    </rl:manipulator>

</rl:manipulators>