| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | # tex->pdf |
| 3 | |
| 4 | if [scip-shell system . . `[`. $# -eq 0 ] |
| 5 | then |
| 6 | echoscip-shell system . . echo. "No arguments supplied" |
| 7 | echoscip-shell system . . echo. "converting all tex-files to a gif image:" |
| 8 | for file in *.tex ; do |
| 9 | STEM=`basenamescip-shell system . . basename. $file .tex` |
| 10 | echoscip-shell system . . echo. "convert $file ..." |
| 11 | latex $file |
| 12 | latex $file |
| 13 | dvips $STEM.dvi |
| 14 | ps2pdf $STEM.ps |
| 15 | magick convert -delay 5 -density 100x100 -alpha remove $STEM.pdf -loop 0 $STEM.gif |
| 16 | echoscip-shell system . . echo. "... done $STEM.gif" |
| 17 | done |
| 18 | else |
| 19 | STEM=`basenamescip-shell system . . basename. $1 .tex` |
| 20 | echoscip-shell system . . echo. "convert $1 ..." |
| 21 | latex $1 |
| 22 | latex $1 |
| 23 | dvips $STEM.dvi |
| 24 | ps2pdf $STEM.ps |
| 25 | magick convert -delay 5 -density 100x100 -alpha remove $STEM.pdf -loop 0 $STEM.gif |
| 26 | echoscip-shell system . . echo. "... done $STEM.gif" |
| 27 | fi |
| 28 | rmscip-shell system . . rm. *.aux |
| 29 | rmscip-shell system . . rm. *.log |
| 30 | rmscip-shell system . . rm. *.ps |
| 31 | rmscip-shell system . . rm. *.pdf |
| 32 | rmscip-shell system . . rm. *.dvi |