3 # Written by Enrico Forestieri on Sun Oct 24 16:10:39 CEST 2004
4 # Added full path to epstool and eliminated the call to tgif-fixepsi
5 # as the new epstool produces correct output - Sun Dec 4 14:58:39 2005
7 # This script converts the postscript file generated by lyx into eps format
8 # (by ps2eps) and adds a preview bitmap to it (by epstool).
9 # As epstool generates an epsi file with leading and trailing binary codes
10 # which confuse tgif, we also have to remove them. Moreover, tgif displays
11 # the interchange preview bitmap with swapped colors, so we also have to
12 # preventively swap black and white in the preview generated by epstool.
18 CYGWIN_ROOT="c:/cygwin"
21 c:/Programmi/Ghostgum/gsview/epstool -i -b --dpi $2 "$CYGWIN_ROOT$3" "$CYGWIN_ROOT$4"
22 ed "$4" 1>/dev/null 2>&1 <<END
25 %!PS-Adobe-2.0 EPSF-2.0
32 #exec tgif-fixepsi "$CYGWIN_ROOT$4"