"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "tth_linux/latex2gif" of archive tth_linux.tar.gz:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    1 #!/bin/sh
    2 #latex2gif script by Ian Hutchinson 1998; use at your own risk.
    3 #You need latex, dvips and ps2gif.
    4 if [ $# != 1 ] ; then
    5        echo " Usage: latex2gif <file> (no extension)" 1>&2
    6        exit 1
    7 else 
    8 	echo "Calling latex, dvips, and ps2gif, please wait ..." >&2
    9 	latex $1 >&2
   10 	dvips -o $1.ps $1 >&2
   11 	ps2gif $1.ps $1.gif
   12 	rm $1.tex
   13 	rm $1.aux
   14 	rm $1.dvi
   15 	rm $1.log
   16 	rm $1.ps
   17 fi
   18 
   19