Changes

Jump to navigation Jump to search
no edit summary
\NC v \NC = u \NC + at \NR
\NC h \NC = ut \NC + \frac12 gt^2 \NR
\stopalign \stopformula
</context>
 
= Specify the alignment mode 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
 
<context source=yes>
\startformula \startalign[n=3,align={1:right,2:middle,3:left}]
\NC v \NC = u \NC+ at \NR
\NC h \NC= ut \NC+ \frac12 gt^2 \NR
\stopalign \stopformula
</context>
 
This mechanism allows fancier alignments like
 
<context source=yes>
\startformula \startalign[n=4,align={1:right,2:right,3:middle,4:left}]
\NC \text{We have} \quad \NC v \NC = u \NC+ at \NR
\NC \text{and} \quad \NC h \NC= ut \NC+ \frac12 gt^2 \NR
\stopalign \stopformula
</context>
</context>
= Defining Specifying alignment and defining new alignment structures = If you want more control over the formatting, and want the middle column to be center aligned, you can do that by  <context source=yes>\startformula \startalign[n=3,align={1:right,2:middle,3:left}] \NC v \NC = u \NC+ at \NR \NC h \NC= ut \NC+ \frac12 gt^2 \NR\stopalign \stopformula</context> This mechanism allows fancier alignments like <context source=yes>\startformula \startalign[n=4,align={1:right,2:right,3:middle,4:left}] \NC \text{We have} \quad \NC v \NC = u \NC+ at \NR \NC \text{and} \quad \NC h \NC= ut \NC+ \frac12 gt^2 \NR\stopalign \stopformula</context>  These kind of new alignment can be defined using {{cmd|definemathalignment}}. <context source=yes>\definemathalignment [demom] [n=4,align={1:right,2:right,3:middle,4:left}] \startformula \startdemom \NC \text{We have} \quad \NC v \NC = u \NC+ at \NR \NC \text{and} \quad \NC h \NC= ut \NC+ \frac12 gt^2 \NR\stopdemom \stopformula</context>
New alignment can be defined using {{cmd|definemathalignment}}. For A second example, to emulate <code>gather</code> environment of amsmath, we can use
<context source=yes>
1,031

edits

Navigation menu