texmf-dist/doc/latex/curves/latex2pdf
raw| 1 | #! /bin/bash |
| 2 | # latex2pdf version 1.01 2009/08/31 |
| 3 | # |
| 4 | # Example bash script making smaller PDF files |
| 5 | # from LaTeX using dvips option of package curves. |
| 6 | # e.g. Download file, make executable and run |
| 7 | # $ ./latex2pdf curves.dtx |
| 8 | |
| 9 | latex $1 |
| 10 | set -e |
| 11 | bn=${1%%.*} |
| 12 | dvips $bn |
| 13 | ps2pdf $bn.ps |
| 14 | rm $bn.dvi $bn.ps |
| 15 |