Hi there, I want to create plots with some kind of 'complex' axis labelling of the form $\dot{V}$ and integrate those plots into a LaTeX document. What is the best way to go? I've figured out, that the 'plotmath' commands are somewhat limited (at least I wasn't able to get the $\dot{V}$ generated) and that plots with 'plotmath'-axes wouldn't export properly with pictex() or xfig(). Therefore, I've done the following: o use postscript() to create myfig.eps o pstoedit -f fig myfig.eps myfig.fig o xfig 011214C.fig include $\dot{V}$ export: Combined PS/LaTeX (both parts) o within my latex document: \input{myfig.pstex_t} Is this a proper approach? I am looking forward to your response Tobias -- TOBIAS HOEVEKAMP mailto:tobias.hoevekamp at ilw.agrl.ethz.ch http://www.vt.ilw.agrl.ethz.ch/~hoevekam WORK: ETH Zurich, LFO E21, CH-8092 Zurich, +41 1 632 3304 HOME: Anna Heer-Str. 2, CH-8057 Zurich, +41 1 350 5986 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
It looks like you've got a reasonable workaround. From a quick glance it actually looks to me (if the dot-accent is all that stands between you and one-step graphical output) that the "right" thing to do is to add a dot() expression, analogous to tilde() and hat(), to the set of available plotmath commands (plotmath's spacing isn't flexible enough to hack a dot accent -- atop() leaves too much space). If no-one better qualified steps forward, I could try to hack it. Ben On Thu, 28 Feb 2002, Tobias Hoevekamp wrote:> Hi there, > > I want to create plots with some kind of 'complex' axis labelling of the form > $\dot{V}$ and integrate those plots into a LaTeX document. What is the best > way to go? > > I've figured out, that the 'plotmath' commands are somewhat limited (at least > I wasn't able to get the $\dot{V}$ generated) and that plots with > 'plotmath'-axes wouldn't export properly with pictex() or xfig(). Therefore, > I've done the following: > > o use postscript() to create myfig.eps > o pstoedit -f fig myfig.eps myfig.fig > o xfig 011214C.fig > include $\dot{V}$ > export: Combined PS/LaTeX (both parts) > o within my latex document: > \input{myfig.pstex_t} > > Is this a proper approach? > > I am looking forward to your response > > > > Tobias > >-- 318 Carr Hall bolker at zoo.ufl.edu Zoology Department, University of Florida http://www.zoo.ufl.edu/bolker Box 118525 (ph) 352-392-5697 Gainesville, FL 32611-8525 (fax) 352-392-3704 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> > o use postscript() to create myfig.eps > o pstoedit -f fig myfig.eps myfig.fig > o xfig 011214C.fig > include $\dot{V}$ > export: Combined PS/LaTeX (both parts) > o within my latex document: > \input{myfig.pstex_t} > > Is this a proper approach?It would probably be easier to do step 1 as you specified, then include the EPS into latex (using the \includegraphics command in the graphicx package) and "fancy" the labeling using either pure latex, or better yet, pstricks. If only you will be the primary consumer of the resulting latex file, then this will be sufficient. If the file will be submitted to a journal or some other source requiring a more "vanilla" set of latex commands (e.g. no pstricks), you can create a separate latex document whose sole purpose is to add the labeling that you need and create an EPS that can be integrated into other latex documents using more standard commands. J.R. Lockwood 412-683-2300 x4941 lockwood at rand.org http://www.rand.org/methodology/stat/members/lockwood/ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Try this sort of thing: plot(..., xlab='vdot', ...) and then, in the LaTeX document, \usepackage{psfrag} ... \begin{figure} \psfrag{vdot}{$\dot{V}$} \epsfig{...} \end{figure} Ted. Dr E.A. Catchpole ---------------------------------- | Associate Professor | ----------------------------------- | School of Maths & Stats | | Honorary Senior Research Fellow | | University College, UNSW | | Institute of Maths & Stats | | Australian Defence Force Academy | and | University of Kent at Canterbury | | Canberra, ACT 2600, Australia | | Canterbury CT2 7NF, England | | e-catchpole at adfa.edu.au | | E.A.Catchpole at ukc.ac.uk | | www.ma.adfa.edu.au/~eac | ----------------------------------- | fax: +61 2 6268 8886 | ---------------------------------- On Fri, 1 Mar 2002, R-help Digest wrote:> Date: Thu, 28 Feb 2002 16:50:17 +0100 > From: Tobias Hoevekamp <tobias.hoevekamp at ilw.agrl.ethz.ch> > Subject: [R] R-plots with 'complex' axis-labelling > > Hi there, > > I want to create plots with some kind of 'complex' axis labelling of the form > $\dot{V}$ and integrate those plots into a LaTeX document. What is the best > way to go? > > I've figured out, that the 'plotmath' commands are somewhat limited (at least > I wasn't able to get the $\dot{V}$ generated) and that plots with > 'plotmath'-axes wouldn't export properly with pictex() or xfig(). Therefore, > I've done the following: > > o use postscript() to create myfig.eps > o pstoedit -f fig myfig.eps myfig.fig > o xfig 011214C.fig > include $\dot{V}$ > export: Combined PS/LaTeX (both parts) > o within my latex document: > \input{myfig.pstex_t} > > Is this a proper approach? > > I am looking forward to your response > > > > Tobias > > - -- > TOBIAS HOEVEKAMP > mailto:tobias.hoevekamp at ilw.agrl.ethz.ch > http://www.vt.ilw.agrl.ethz.ch/~hoevekam > WORK: ETH Zurich, LFO E21, CH-8092 Zurich, +41 1 632 3304 > HOME: Anna Heer-Str. 2, CH-8057 Zurich, +41 1 350 5986-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._