Open main menu

Changes

no edit summary
</context>
= Cases = == with {{cmd|startmathcases}} (two columns)==
Context provides a {{cmd|startmathcases}} {{cmd|stopmathcases}} pair to make it easy to get cases.
</context>
= More complex = with {{cmd|definemathmatrix}} ==
One of the powerful structures in displaying mathematical formulas is the possibility of defining custom maths alignment.
For instance the following definition
<texcodecontext source="yes">\definemathmatrix [alignedcases] [align={right,left,left}, distance=3pt, left={\left\{}, right={\right.}, style=\displaystyle]</texcode>  % creates two 2 new commands,  <texcode>\startalignedcases, \stopalignedcases:</texcode> after which one may use them in a displayed formula as follows: <texcode>The following formula is displayed in two lines with an appropriate alignment of the equations: \startformula\startalignedcases \NC -\Delta u + g(u) \NC{} = f \NC \quad\mbox{in } \Omega\NR \NC {\partial u \over \partial {\bf n} } \NC{} = h(u) \NC \quad\mbox{on } \partial\Omega \NR\stopalignedcases\stopformula</texcode> <context>\definemathmatrix[alignedcases] [align={right,left,left}, distance=3pt, left={\left\{}, right={\right.}, style=\displaystyle]
The following formula is displayed in two lines with an appropriate alignment of the equations:
\stopformula
</context>
 
[[Category:Math]]
= Numbered Cases =
[[Category:Math]]
1,005

edits