Changes

Jump to navigation Jump to search
1,005 bytes added ,  01:57, 3 February 2006
Added details about columns and alignment
( The examples here will focus on the context style, having two styles can be confusing --[[User:Adityam| Aditya ]] )
 
== Changing the number of columns ==
 
The above equations were aligned at <code>=</code>. Suppose you also want the <code>+</code> to align. Well, this is simple in context, simply specify the number of columns with <code>\startalign</code>
 
 
<texcode>
\startformula \startalign[n=3]
\NC v \NC = u \NC+ at \NR
\NC h \NC= ut \NC+ \frac12 gt^2 \NR
\stopalign \stopformula
</texcode>
 
<context>
\startformula \startalign[n=3]
\NC v \NC = u \NC+ at \NR
\NC h \NC= ut \NC+ \frac12 gt^2 \NR
\stopalign \stopformula
</context>
 
== Alignment of each column ==
If you want more control over the formatting, and want the middle column to be center aligned, you can do that by
<texcode>
\startformula \startalign[n=3,align={right,middle,left}]
\NC v \NC = u \NC+ at \NR
\NC h \NC= ut \NC+ \frac12 gt^2 \NR
\stopalign \stopformula
</texcode>
 
<context>
\startformula \startalign[n=3,align={right,middle,left}]
\NC v \NC = u \NC+ at \NR
\NC h \NC= ut \NC+ \frac12 gt^2 \NR
\stopalign \stopformula
</context>
== Working with equation numbering ==

Navigation menu