4 # Not sure where this is supposed to be relative to
10 if [ $input == "--help" ]; then
11 echo "Usage: tex2gr <latex_snippet>"
12 echo "Snippet should begin and end with '$' if it contains math"
16 bname
=$TMPDIR/dvi2gr$$
22 istr
=`sed 's/\\\\/\\\\\\\\/g' $input`
25 \documentclass[10pt]{article}
32 cat << EOPOST >> $itex
36 $LATEX --output-directory=$TMPDIR/ $itex > /dev
/null
37 ostr
=`$DVI2GR $FPATH $idvi`
41 rm -f $itex $idvi $iaux $ilog