Dear All,

I'm trying to draw a TeX histogram with the following pair of commands,

pictex(file = "realhisto.tex")
hist(Peaklist$V3,xlab="Height $z/\\ut{mm}$",ylab="Probability density 
$\\phi{}(z-z_0)/(1/\\ut{mm})$")

However, in the resulting file realhisto.tex, I get, for example

\put {Height \$z/\ut\{mm\}\$}  [lB] <0.00pt,0.00pt> at 136.13 9.17

when what I'd like is

\put {Height $z/\ut{mm}$}  [lB] <0.00pt,0.00pt> at 136.13 9.17

i.e. the $ signs and braces not to be escaped with backslashes.

I've tried a couple of things that "help(Quotes)" hints at, like
replacing the double quotes with single quotes or backticks, or
explicitly escaping the $ signs with backslashes, but none of these
things seem to help.

Any ideas, please?

-- 

Thanks very much

Dan Hatton

<http://www.bib.hatton.btinternet.co.uk/dan/>

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to