File: latex2gif

package info (click to toggle)
tth 2.92-1
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 1,268 kB
  • ctags: 656
  • sloc: sh: 57; makefile: 42
file content (19 lines) | stat: -rwxr-xr-x 389 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#latex2gif script by Ian Hutchinson 1998; use at your own risk.
#You need latex, dvips and ps2gif.
if [ $# != 1 ] ; then
       echo " Usage: latex2gif <file> (no extension)" 1>&2
       exit 1
else 
	echo "Calling latex, dvips, and ps2gif, please wait ..." >&2
	latex $1 >&2
	dvips -o $1.ps $1 >&2
	ps2gif $1.ps $1.gif
	rm $1.tex
	rm $1.aux
	rm $1.dvi
	rm $1.log
	rm $1.ps
fi