Debian Codegraph @

texmf-dist/doc/generic/pst-kepler/images/tex2gif.sh

raw symbols SCIP
1 #!/bin/bash
2 # tex->pdf
3 echo "converting all tex-files to a gif image:"
4 for file in *.tex ; do
5 STEM=`basename $file .tex`
6 echo "convert $file ..."
7 latex $file
8 dvips $STEM.dvi
9 ps2pdf $STEM.ps
10 magick convert -delay 5 -density 100x100 -alpha remove $STEM.pdf -loop 0 $STEM.gif
11 echo "... done $STEM.gif"
12 done
13 rm *.aux
14 rm *.log
15 rm *.ps
16 rm *.pdf
17 rm *.dvi