Skip to content

[R-pkg-devel] How to write a 'cases' environment in .Rd files?

1 message · Marius Hofert

#
Hi,

Thanks everyone for your suggestions. I now went with the easiest solution, namely something of the form

\deqn{F(x) = \left\{\begin{array}{ll}
1,&\text{if}\ x > 0,\\
0,&\text{if} x = 0.
\end{array}\right.}{...}

which worked flawlessly (and avoids having to type the formula twice or define a macro as suggested by Ivan).

Cheers,
Marius