Changes

Jump to navigation Jump to search
625 bytes added ,  01:23, 8 February 2006
→‎Cases: Added an example
== Cases ==
 
Context provides a <cmd>startmathcases</cmd> <cmd>stopmathcases</cmd> pair to make it easy get cases.
<texcode>
\startformula
f(x) = \startmathcases
\NC x, \NC if $0 \le x \le \frac12$ \NR
\NC 1-x ,\NC if $\frac12 \le x \le 1$ \NR
\stopmathcases
\stopformula
</texcode>
 
gives
 
<context>
\startformula
f(x) = \startmathcases
\NC x, \NC if $0 \le x \le \frac12$ \NR
\NC 1-x ,\NC if $\frac12 \le x \le 1$ \NR
\stopmathcases
\stopformula
</context>
 
The cases environment consists of two columns, separated by <cmd>NC</cmd>. The second column is by default in text mode. Each line must end with a <cmd>NR</cmd>.
== Numbered Cases ==

Navigation menu