"Fossies" - the Fresh Open Source Software Archive

Member "tth_exe/latex2gif" (15 Feb 1998, 389 Bytes) of package /windows/www/tth_exe.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    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