Changes

Jump to navigation Jump to search
634 bytes added ,  15:49, 28 April 2006
m
Added definemathalign
== Changing the number of columns ==
 
== Defining new alignment structures ==
 
New alignment can be defined using <cmd>definemathalignment</cmd>. For example, to emulate <code>gather</code> environment of amsmath, we can use
<texcode>
\definemathalignment
[gather]
[n=1,align={middle}]
 
\startformula \startgather
\NC ax^2 + bx + c = 0 \NR
\NC \text{roots} = \frac{ -b \pm \sqrt{b^2 - 4ac}}{2a} \NR
\stopgather \stopformula
</texcode>
 
<context>
\definemathalignment
[gather]
[n=1,align={middle}]
 
\startformula \startgather
\NC ax^2 + bx + c = 0 \NR
\NC \text{roots} = \frac{ -b \pm \sqrt{b^2 - 4ac}}{2a} \NR
\stopgather \stopformula
 
</context>
== Cases ==

Navigation menu