Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.21.0005311052430.5085-100000@artemis.imbe.med.uni-erlangen.de>
Date: 2000-05-31T09:10:47Z
From: Torsten Hothorn
Subject: LaTeX \varrho
In-Reply-To: <Pine.GSO.4.05.10005291454120.25613-100000@auk.stats>

> 
> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._