there have been various iterations of this business of latex in mgp. here is what works for me. ++ carlos
Attachment:
mgp00001.jpg
Description: shot
#!/bin/bash # echo "writing $1.eps." tmp=mgptmp$$ \rm -f $tmp.tex $tmp.log $tmp.dvi >& /dev/null cat <<__EOF > $tmp.tex \documentstyle{article} \pagestyle{empty} \thispagestyle{empty} \begin{document} __EOF cat >> $tmp.tex echo "\end{document}" >> $tmp.tex (latex $tmp.tex > /dev/null) (dvips -f -E $tmp.dvi > $tmp.eps 2>/dev/null) rm -rf $tmp.tex $tmp.log $tmp.dvi $tmp.aux mv $tmp.eps /tmp/$tmp.eps chmod 600 /tmp/$tmp.eps echo -n "%newimage " if [ ! -z "$1" ] then echo -n "$@" else echo -n "-zoom 400" fi echo " \"/tmp/$tmp.eps\""
Attachment:
demo-tex2mgp.mgp
Description: demo-tex2mgp.mgp