[R] Rd problems
Martin Maechler
maechler at stat.math.ethz.ch
Mon Oct 13 08:45:18 CEST 2003
>>>>> "kjetil" == kjetil halvorsen <kjetil at entelnet.bo>
>>>>> on Sun, 12 Oct 2003 09:55:00 -0400 writes:
kjetil> Hola! I have the following in a .Rd file:
kjetil> \eqn{\mbox{coef} = c(\mbox{coef}[1],\ldots, \mbox{coef}[n]) }
kjetil> {coef = c(coef[1], coef[2], \dots, coef[n])}
kjetil> However, both arguments come out in the latex file!
kjetil> Whats happening?
\eqn comes in a 1-argument and 2-argument version.
If you want the 2-argument version, you cannot put spaces
between the ending "}" of the 1st arg and the starting "{" of
the 2nd one.
Instead of the above,
use
\eqn{\mbox{coef} = c(\mbox{coef}[1],\ldots, \mbox{coef}[n]) }{%
coef = c(coef[1], coef[2], \dots, coef[n])}
(note the comment "%" after the opening "{" )
Martin
More information about the R-help
mailing list