summaryrefslogtreecommitdiffstats
path: root/src/kile2.0-1_upd.pl
blob: cf19a13578c951d4a1af2e1b4a10969d8b28d01d (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
#!/usr/bin/perl

# dani 15.09.2006

# first delete some groups and keys, if they exist
print "# DELETEGROUP [Tool/Convert/eps2png]\n";
print "# DELETEGROUP [Tool/Convert/pdf2png]\n";
print "# DELETEGROUP [Tool/DVItoPNG/Default]\n";
print "# DELETEGROUP [Tool/DVItoPS/dvi2eps]\n";
print "# DELETE [Tools]Convert\n";
print "# DELETE [Tools]DVItoPNG\n";
print "# DELETE [ToolsGUI]Convert\n";
print "# DELETE [ToolsGUI]DVItoPNG\n";
print "# DELETE [ToolsGUI]ViewBib\n";

# now filter the configuration file
print <<EOT;
[Tool/Convert/eps2png]
class=Convert
command=convert
options=+adjoin -antialias -trim -transparent white -density %res '%S.eps' '%S.png'
ofrom=eps
to=png
type=Process

[Tool/Convert/pdf2png]
class=Convert
command=convert
options=+adjoin -antialias -trim -transparent white -density %res '%S.pdf' '%S.png'
from=pdf
to=png
type=Process

[Tool/DVItoPNG/Default]
class=Convert
command=dvipng
options=-T tight -D %res -o '%S.png' '%S.dvi'
from=dvi
to=png
type=Process

[Tool/DVItoPS/dvi2eps]
class=Convert
command=dvips
options=-o '%S.eps' '%S.dvi'
from=dvi
to=eps
type=Process

[Tools]
Convert=pdf2png
DVItoPNG=Default

[ToolsGUI]
Convert=Convert,convert
DVItoPNG=Convert,dvipng
ViewBib=View,viewbib
EOT