29 Jan
2003
29 Jan
'03
8:08 p.m.
From: Mikael Persson
Hi everyone!
I appologise if this question is answered before.
I was trying to do some math in ConTeXt today, but failed. What I wanted to do was something similar to the \begin{cases}\end{cases} thing in LaTeX (amsmath?). For the non-LaTeX-math-users, its something like this:
f(x)= \begin{cases} 0 & \text{if}\ x<0\\ 1 & \text{if}\ x\geq 0 \end{cases}
\placeformula[-] \startformula f(x) = \cases{0 & $x < 0$\cr 1 & $x \geq 0$\cr} \stopformula
and one gets something like this:
/ 0 if x<0 f(x) = < \ 1 if x>=0
Marko