On Wed, Dec 11, 2002 at 08:57:10PM -0500, Nirmal Govind wrote:
> Hi.. I'm trying to include an xfig figure in a presentation made using
> the pdfscreen package along with LyX. Pdflatex doesn't like xfig
> apparently and I have special text (LaTeX math) in my xfig figure so I
> need LaTeX to process it.. and the slides can be made only using
> pdflatex it seems so how do I get around this?

Something like


\viewer latex "xterm -e less"

#!/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
)
#mv $TMPDIR/$BASE.tmpeps $2
eps2eps -- $TMPDIR/$BASE.tmpeps $2
#rm $TMPDIR/$BASE.tmpeps


and epstopdf afterwards perhaps?


Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to