#!/bin/sh # latex2all usage: latex2all file # where file.tex is a LateX file. Produces dvi,pdf,ps,gif # files. Needs program flattengif which produces from a # animated gif a single gif file. The shellscript flattengif # itself needs gifsicle installed. The image magic routines # are also required. The flattening of the gif by the way # compresses the gif (unlike the Image magic "convert" routines) # quite well. # Oliver Knill, October 3, 2000 latex $1.tex latex $1.tex dvips $1.dvi -o $1.ps ps2pdf $1.ps convert $1.ps $1.gif flattengif $1 chmod 755 $1.ps $1.dvi $1.pdf $1.gif rm -f $1.aux $1.log