[R] Rd problems

kjetil@entelnet.bo kjetil at entelnet.bo
Fri Oct 17 20:00:36 CEST 2003


On 13 Oct 2003 at 8:45, Martin Maechler wrote:

> >>>>> "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 "{" )

Thanks!, but I did'nt get this to work with the % trick, I had to put 
everything on one line as Brian Ripley said. By the way , 
\deqn{}
        {}
works fine.

Kjetil Halvorsen


> Martin




More information about the R-help mailing list