[R] LaTeX \varrho
Torsten Hothorn
Torsten.Hothorn at rzmail.uni-erlangen.de
Wed May 31 11:10:47 CEST 2000
>
> Don't think so. What you get depends on the output device, but I think
> you get PostScript's symbol font's rho. (On my system, on both postscript
> and x11 devices.) That font does not have the equivalent of varrho
> (although it does for varpsi).
>
> The usual answer is to use pstricks with LaTeX to post-process the output.
>
Thanks to Prof. Ripley for the hint, maybe someone other is interested, so
I will shortly outline what "to use pstricks with LaTeX" means:
* get PSfrag (e.g. www.dante.de)
* get graphics (same url)
* create your ps-graphic in R and define "tags" e.g.
postscript("myfile.ps")
plot(..., xlab="rho", ylab="wrho")
dev.off()
system("ps2epsi myfile.ps")
* add
\usepackage{graphics}
\usepackage{psfrag}
to your LaTeX-File
* and now we reach the climax:
\begin{figure}
\begin{center}
\psfrag{rho}{$\varrho$} <-- this replaces rho with \varrho
\psfrag{wrho}{$W(\varrho)$} <-- this replaces wrho with W(\varrho)
\includegraphics{myfile.epsi}
\caption{wonderful R plotting \label{fig}}
\end{center}
\end{figure}
* run latex and dvips and enjoy :-)
Torsten
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list