Re: Annotating eps figures

2003-02-13 Thread Andre Poenitz
On Wed, Feb 12, 2003 at 07:08:17PM +, Angus Leeming wrote:
 I have a bunch of eps graphs that I'd like to annotate with LaTeX 
 (axis labels, stuff like that). Can anyone give me some pointers to 
 the best way to go about this?

1. xfig, write  $a^3$ there, mark the text as 'special', do separate
   tex/eps export  or use 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
)
#mv $TMPDIR/$BASE.tmpeps $2
eps2eps -- $TMPDIR/$BASE.tmpeps $2
#rm $TMPDIR/$BASE.tmpeps


or 

2. use pstricks.

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: Annotating eps figures

2003-02-13 Thread Rod Pinna
 
 2. use pstricks.
 
 Andre'

If you just want to add text and formula, then I've found psfrag to be
pretty simple.

Rod
_
rod   | Beneath the waves, the waves / That's where I will be /
  | I'm going to see the cow beneath the sea.
  | They Might Be Giants, Lincoln





Re: Annotating eps figures

2003-02-13 Thread Max Bian
   # 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

This script works, but it cannot get the bounding box quite right. 
Dropping eps2eps line and putting a -E switch on dvips works well in
most cases.



Re: Annotating eps figures

2003-02-13 Thread Max Bian
Absolutely.  But what can be more annoying to have a graph at a corner
of a big page, and have to adjust the bondingbox manully?

Instead of eps2eps, ps2eps will probably do a better job.

Max
--- Herbert Voss [EMAIL PROTECTED] wrote:

 
 -E option does not work well when there are some
 _real_ graphic objects like circles, ...
 
 Herbert





Re: Annotating eps figures

2003-02-13 Thread Herbert Voss
Max Bian schrieb:

Absolutely.  But what can be more annoying to have a graph at a corner
of a big page, and have to adjust the bondingbox manully?


there is a better solution together with the
preview-latex package, which dows the same inside
LyX with the mathstuff

Herbert

--
http://www.educat.hu-berlin.de/~voss/lyx/




Re: Annotating eps figures

2003-02-13 Thread Angus Leeming
Thanks guys. I ended up importing the figure into xfig, annotating 
and exporting as ps/latex. Worked beautifully. Thanks for all the 
suggestions.

Angus





Re: Annotating eps figures

2003-02-13 Thread Andre Poenitz
On Wed, Feb 12, 2003 at 07:08:17PM +, Angus Leeming wrote:
 I have a bunch of eps graphs that I'd like to annotate with LaTeX 
 (axis labels, stuff like that). Can anyone give me some pointers to 
 the best way to go about this?

1. xfig, write  $a^3$ there, mark the text as 'special', do separate
   tex/eps export  or use 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
)
#mv $TMPDIR/$BASE.tmpeps $2
eps2eps -- $TMPDIR/$BASE.tmpeps $2
#rm $TMPDIR/$BASE.tmpeps


or 

2. use pstricks.

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: Annotating eps figures

2003-02-13 Thread Rod Pinna
 
 2. use pstricks.
 
 Andre'

If you just want to add text and formula, then I've found psfrag to be
pretty simple.

Rod
_
rod   | Beneath the waves, the waves / That's where I will be /
  | I'm going to see the cow beneath the sea.
  | They Might Be Giants, Lincoln





Re: Annotating eps figures

2003-02-13 Thread Max Bian
   # 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

This script works, but it cannot get the bounding box quite right. 
Dropping eps2eps line and putting a -E switch on dvips works well in
most cases.



Re: Annotating eps figures

2003-02-13 Thread Max Bian
Absolutely.  But what can be more annoying to have a graph at a corner
of a big page, and have to adjust the bondingbox manully?

Instead of eps2eps, ps2eps will probably do a better job.

Max
--- Herbert Voss [EMAIL PROTECTED] wrote:

 
 -E option does not work well when there are some
 _real_ graphic objects like circles, ...
 
 Herbert





Re: Annotating eps figures

2003-02-13 Thread Herbert Voss
Max Bian schrieb:

Absolutely.  But what can be more annoying to have a graph at a corner
of a big page, and have to adjust the bondingbox manully?


there is a better solution together with the
preview-latex package, which dows the same inside
LyX with the mathstuff

Herbert

--
http://www.educat.hu-berlin.de/~voss/lyx/




Re: Annotating eps figures

2003-02-13 Thread Angus Leeming
Thanks guys. I ended up importing the figure into xfig, annotating 
and exporting as ps/latex. Worked beautifully. Thanks for all the 
suggestions.

Angus





Re: Annotating eps figures

2003-02-13 Thread Andre Poenitz
On Wed, Feb 12, 2003 at 07:08:17PM +, Angus Leeming wrote:
> I have a bunch of eps graphs that I'd like to annotate with LaTeX 
> (axis labels, stuff like that). Can anyone give me some pointers to 
> the best way to go about this?

1. xfig, write  $a^3$ there, mark the text as 'special', do separate
   tex/eps export  or use 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
)
#mv $TMPDIR/$BASE.tmpeps $2
eps2eps -- $TMPDIR/$BASE.tmpeps $2
#rm $TMPDIR/$BASE.tmpeps


or 

2. use pstricks.

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: Annotating eps figures

2003-02-13 Thread Rod Pinna
> 
> 2. use pstricks.
> 
> Andre'

If you just want to add text and formula, then I've found psfrag to be
pretty simple.

Rod
_
rod   | "Beneath the waves, the waves / That's where I will be /
  | I'm going to see the cow beneath the sea."
  | They Might Be Giants, Lincoln





Re: Annotating eps figures

2003-02-13 Thread Max Bian
>   # 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

This script works, but it cannot get the bounding box quite right. 
Dropping eps2eps line and putting a "-E" switch on dvips works well in
most cases.



Re: Annotating eps figures

2003-02-13 Thread Max Bian
Absolutely.  But what can be more annoying to have a graph at a corner
of a big page, and have to adjust the bondingbox manully?

Instead of eps2eps, ps2eps will probably do a better job.

Max
--- Herbert Voss <[EMAIL PROTECTED]> wrote:

> 
> -E option does not work well when there are some
> _real_ graphic objects like circles, ...
> 
> Herbert





Re: Annotating eps figures

2003-02-13 Thread Herbert Voss
Max Bian schrieb:

Absolutely.  But what can be more annoying to have a graph at a corner
of a big page, and have to adjust the bondingbox manully?


there is a better solution together with the
preview-latex package, which dows the same inside
LyX with the mathstuff

Herbert

--
http://www.educat.hu-berlin.de/~voss/lyx/




Re: Annotating eps figures

2003-02-13 Thread Angus Leeming
Thanks guys. I ended up importing the figure into xfig, annotating 
and exporting as ps/latex. Worked beautifully. Thanks for all the 
suggestions.

Angus





Annotating eps figures

2003-02-12 Thread Angus Leeming
I have a bunch of eps graphs that I'd like to annotate with LaTeX 
(axis labels, stuff like that). Can anyone give me some pointers to 
the best way to go about this?

Regards,
Angus





Antwort: Annotating eps figures

2003-02-12 Thread Robert.R.Koehler
Angus wrote:
I have a bunch of eps graphs that I'd like to annotate with LaTeX 
(axis labels, stuff like that). Can anyone give me some pointers to 
the best way to go about this?

If your graphs are of the mathematical kind, then check out the pstricks
package and pst-plot. A description is given in Herbert's tips and tricks

http://www.educat.hu-berlin.de/~voss/lyx/psTricks/pst-plotDemo.phtml

If you don't want to draw them again or can't then look here for how to overlay
text onto a graphic.

http://www.educat.hu-berlin.de/~voss/lyx/psTricks/pstricks.phtml

Regards
Rob


Annotating eps figures

2003-02-12 Thread Angus Leeming
I have a bunch of eps graphs that I'd like to annotate with LaTeX 
(axis labels, stuff like that). Can anyone give me some pointers to 
the best way to go about this?

Regards,
Angus





Antwort: Annotating eps figures

2003-02-12 Thread Robert.R.Koehler
Angus wrote:
I have a bunch of eps graphs that I'd like to annotate with LaTeX 
(axis labels, stuff like that). Can anyone give me some pointers to 
the best way to go about this?

If your graphs are of the mathematical kind, then check out the pstricks
package and pst-plot. A description is given in Herbert's tips and tricks

http://www.educat.hu-berlin.de/~voss/lyx/psTricks/pst-plotDemo.phtml

If you don't want to draw them again or can't then look here for how to overlay
text onto a graphic.

http://www.educat.hu-berlin.de/~voss/lyx/psTricks/pstricks.phtml

Regards
Rob


Annotating eps figures

2003-02-12 Thread Angus Leeming
I have a bunch of eps graphs that I'd like to annotate with LaTeX 
(axis labels, stuff like that). Can anyone give me some pointers to 
the best way to go about this?

Regards,
Angus





Antwort: Annotating eps figures

2003-02-12 Thread Robert.R.Koehler
Angus wrote:
>I have a bunch of eps graphs that I'd like to annotate with LaTeX 
>(axis labels, stuff like that). Can anyone give me some pointers to 
>the best way to go about this?

If your graphs are of the mathematical kind, then check out the pstricks
package and pst-plot. A description is given in Herbert's tips and tricks

http://www.educat.hu-berlin.de/~voss/lyx/psTricks/pst-plotDemo.phtml

If you don't want to draw them again or can't then look here for how to overlay
text onto a graphic.

http://www.educat.hu-berlin.de/~voss/lyx/psTricks/pstricks.phtml

Regards
Rob