Re: xfig figure in a slide?
Just thought I'd update the list on what worked.. I exported the figure from xfig as a latex picture with a .latex extension. Then did an Include file in LyX and used the Input option (the filter .latex needs to be included for the file to be visible).. and it worked great, all the LaTeX math etc. came out perfectly well!! nirmal
Re: xfig figure in a slide?
Just thought I'd update the list on what worked.. I exported the figure from xfig as a latex picture with a .latex extension. Then did an Include file in LyX and used the Input option (the filter .latex needs to be included for the file to be visible).. and it worked great, all the LaTeX math etc. came out perfectly well!! nirmal
Re: xfig figure in a slide?
Just thought I'd update the list on what worked.. I exported the figure from xfig as a "latex picture" with a .latex extension. Then did an Include file in LyX and used the "Input" option (the filter .latex needs to be included for the file to be visible).. and it worked great, all the LaTeX math etc. came out perfectly well!! nirmal
Re: xfig figure in a slide?
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)
Re: xfig figure in a slide?
On Wed, 11 Dec 2002, 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? probably you can following 2 step: 1. export you fig into eps -- eps 2. epstopdf -- pdf you can insert the pdf graph into your pdfscreen. Wayan
Re: xfig figure in a slide?
Hello, I have just started using the tex2pdf script (see Lyx's tips tricks under pdf). This works very well for me. After installation, just choose File - Export - PDF (pdflatex) and it does all the needed conversions (including for xfig) and gives a good pdf file. The only minor problem is that you can't use dots in the file name (except one before the file extension). Amir. 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? Thanks, nirmal
Re: xfig figure in a slide?
and epstopdf afterwards Thanks a lot for the code.. I edited it a bit to include the -Ppdf option for dvips.. there is some space in the resulting figure since the documentclass is defined as article in the code.. any tips on how to take care of this? Thanks, nirmal
Re: xfig figure in a slide?
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)
Re: xfig figure in a slide?
On Wed, 11 Dec 2002, 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? probably you can following 2 step: 1. export you fig into eps -- eps 2. epstopdf -- pdf you can insert the pdf graph into your pdfscreen. Wayan
Re: xfig figure in a slide?
Hello, I have just started using the tex2pdf script (see Lyx's tips tricks under pdf). This works very well for me. After installation, just choose File - Export - PDF (pdflatex) and it does all the needed conversions (including for xfig) and gives a good pdf file. The only minor problem is that you can't use dots in the file name (except one before the file extension). Amir. 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? Thanks, nirmal
Re: xfig figure in a slide?
and epstopdf afterwards Thanks a lot for the code.. I edited it a bit to include the -Ppdf option for dvips.. there is some space in the resulting figure since the documentclass is defined as article in the code.. any tips on how to take care of this? Thanks, nirmal
Re: xfig figure in a slide?
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)
Re: xfig figure in a slide?
On Wed, 11 Dec 2002, 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? probably you can following 2 step: 1. export you fig into eps --> eps 2. epstopdf --> pdf you can insert the pdf graph into your pdfscreen. Wayan
Re: xfig figure in a slide?
Hello, I have just started using the tex2pdf script (see Lyx's tips & tricks under pdf). This works very well for me. After installation, just choose File -> Export -> PDF (pdflatex) and it does all the needed conversions (including for xfig) and gives a good pdf file. The only minor problem is that you can't use dots in the file name (except one before the file extension). Amir. 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? Thanks, nirmal
Re: xfig figure in a slide?
> and epstopdf afterwards Thanks a lot for the code.. I edited it a bit to include the -Ppdf option for dvips.. there is some space in the resulting figure since the documentclass is defined as article in the code.. any tips on how to take care of this? Thanks, nirmal
xfig figure in a slide?
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? Thanks, nirmal
xfig figure in a slide?
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? Thanks, nirmal
xfig figure in a slide?
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? Thanks, nirmal