[R] PicTeX output: how to suppress escaping of $ signs and braces?

Dan Hatton vi5u0-r at yahoo.co.uk
Mon Sep 24 23:52:14 CEST 2007


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/>



More information about the R-help mailing list