On Fri, Sep 13, 2002 at 11:02:09AM +0200, Lars Gullik Bjønnes wrote: > > Should we add some more converters? > For XFig perhaps: > > \converter "fig" "eps" "fig2dev -Leps $$i $$o" "" > \converter "fig" "png" "fig2dev -Lpng $$i $$o" "" > \converter "fig" "xpm" "fig2dev -Lxpm $$i $$o" ""
fig2dev -Leps is usually not the kind of conversion that is wanted as this uses ugly fonts. This should rather be something like #!/bin/sh # usage: fig2eps foo.fig foo.eps TMPDIR=/tmp BASE=fig2epstmp_$$ PSNAME=fig2epstmp_content_$$.ps echo " \\documentclass{article} \\usepackage{epsfig} \\usepackage{color} \\pagestyle{empty} \\begin{filecontents}{$PSNAME} `fig2dev -L pstex $1` \\end{filecontents} \\begin{document} \\begin{center} `fig2dev -L pstex_t -p $PSNAME $1` \\end{center} \\end{document} " > $TMPDIR/$BASE.tex ( cd $TMPDIR ; latex $BASE.tex ; # sometimes empty pages at the beginning are produced. Just use the last # one. dvips -f $BASE.dvi | psselect _1 > $BASE.tmpeps rm -f $BASE.tex $BASE.log $BASE.dvi $BASE.aux $PSNAME ) eps2eps -- $TMPDIR/$BASE.tmpeps $2 rm $TMPDIR/$BASE.tmpeps Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)