[NTG-context] LaTeX array equivalence with multiline \lbrace

Hans Hagen pragma at wxs.nl
Wed Jan 25 13:22:18 CET 2006


Aditya Mahajan wrote:

><--- On Jan 24, Renaud AUBIN wrote --->
>
>  
>
>>With LaTeX, I have
>>$$
>>\left\lbrace
>>\begin{array}{l}
>>  \dot{q}_i = 1 \quad\text{ if } i=k \\
>>  \dot{q}_i = 0 \quad\text{ else}
>>\end{array}
>>\right
>>$$
>>    
>>
>
>Well the ConTeXt way (rather the TeX way) of doing this is to use 
>\cases.
>
>$$
>  \cases{
>   \dot q_i = 1, & \text{ if } i = k \cr
>   \dot q_i = 0, & \text{ else } \cr
>  }
>$$
>  
>
maybe we should add a left|right option to the new align mechanism so that one can define such constructs .. does that make sense? 

Hans 


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list