3 # This filter is called by psf to convert "other" formats to PostScript.
4 # psf handles text and PostScript native. "Other" formats, e.g. DVI, C/A/T,
5 # need to be converted before the page reverser and the printer can use
8 # $0 begins with the filter name, e.g. df, tf. Each format is a separate
12 DVIPSPATH=/usr/local/tex/bin
13 DVIPS=/usr/local/tex/bin/dvips
16 TROFF2PS=/usr/local/psroff/troff2/troff2ps
17 TROFF2PSARGS="-Z -O-.10"
19 PATH=/usr/bin:$DVIPSPATH; export PATH
24 # Use "dvips" by Radical Eye Software to convert TeX DVI files to PostScript.
25 # Note that you *must* have METAFONT, etc, in your path.
28 if [ -x "$DVIPS" ]; then
29 TEMPFILE=`mktemp -t psfilter.XXXXXX` || exit 1
31 $DVIPS $DVIPSARGS < $TEMPFILE
34 echo "$0: filter dvips uninstalled" 1>&2
40 # troff2ps is from psroff by Chris Lewis.
43 if [ -x "$TROFF2PS" ]; then
44 exec $TROFF2PS $TROFF2PSARGS
46 echo "$0: filter troff2ps uninstalled" 1>&2
52 echo "$0: filter $1 unavailable" 1>&2