On Wed, 26 Aug 1998, Nuno Guerra wrote:
> Ok, perhaps there many other ways and probably most of them better than
> psfrag... But (sorry if I'm being a bit insistent in this point) I feel a
> bit frustrated not to be able to make a simple ^ in Tex style! Shouldn't
> Tex style allow any latex command, anything we could put in the .tex file?
> I do have a doubt about this, however: I don't know if we could need
> \^{ } in tex style...
>
Why typing the math stuff in the psfrag commands in tex mode at all?
Just type the second argument as a math inset. That worked with all
0.12.1px including 8.
So you can have the preview of your eps-figure and of the related math
stuff within lyx. That's as good as in Xdvi. I'd even put this
as one of the recommended methods of graphics inclusion to the User's
Guide:
- Create your picture with Xfig, gnuplot or whatever program can produce
eps. Give text objects as placeholders for
latex formulas or symbols. Save the picture and export as eps (In
Xfig just a
right mouse click on the export button if this is the default format).
- In your Lyx-Document: Create a figure float and include your picture as
EPS.
- Now that you got the preview of the graphic you can modify the texts
using the command \psfrag{text}{replacement} (must be in tex-mode, i.e.
red). "text" is the text string in your picture to be replaced by
"replacement". Replacement is not necessarily to be given in tex-mode,
it can be a math inset.
- \psfrag has extra options for adjusting the alignments between text and
replacement. This can only be checked in the ps preview. If text and
replacement are approximately of the same size, you hardly have to rely
on that.
- Put \usepackage{psfrag} to your Latex preamble.
------------------------------------------------------------
Martin Kraska
Institut fuer Mechanik Tel.: 0049 30 31421485
TU Berlin Fax : 0049 30 31421482
Strasse des 17. Juni
D-10623 Berlin [EMAIL PROTECTED]
------------------------------------------------------------
--
+++ the lyx project user mailing list +++
To unsubscribe from this list send mail to
[EMAIL PROTECTED]
with the **Subject** unsubscribe.