Changes

Jump to navigation Jump to search
240 bytes added ,  09:29, 2 March 2022
<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
<context source=yes>
\startformula \startalign[n=4,align={1:left,2:right,3:middle,4:left}]
\NC \text{We have} \quad \NC v \NC = u \NC+ at \NR
\NC \text{and} \NC h \NC= ut \NC+ \frac12 gt^2 \NR
\NC h \NC = ut + \frac12 gt^2 \NR[eq:h]
\stopalign \stopformula
Equation ~(\in[eq:v]) tells the final velocity after time ~$t$ and equation ~(\in[eq:h]) tells the distance travelled in time ~$t$.
</context>
The numbering can be changed to a subformula style using {{cmd|placesubformula}} instead of {{cmd|placeformula}} and numbering the subformulas using {{cmd|NR|2=[+][a]}}, {{cmd|NR|2=[+][b]}}, … instead: <context source=yes>\setuplayout[scale=0.8,width=13cm]\placesubformula \startformula \startalign \NC v \NC = u + at \NR[+][eq:v] \NC h \NC = ut + \frac12 gt^2 \NR[+][eq:h]\stopalign \stopformula Equation~(\in[eq:v]) tells the final velocity after time~$t$ and equation (\in[eq:h]) tells the distance travelled in time~$t$.</context>
== Changing the number of columns ==
\definemathalignment
[gather]
[n=1,align={1:middle}]
\startformula \startgather
</context>
== Cases ==
<context source=yes text="gives">
\startformula
\delta_{ij} = f(x) = \startmathcases \NC x, 1 \NC \text{if $0 \le x \le \frac12$ } i = j \NR \NC 1-x ,0 \NC if $\frac12 \le x \le 1$ text{otherwise} \NR \stopmathcases
\stopformula
</context>
The cases environment consists of two columns, separated by {{cmd|NC}}. The second column is by default in text math mode. An alternative way of getting the same result is to define To typeset the second column as a mathcolumn with in text mode, use {{cmd|MCTC}} like so:
<texcode>
\startformula
\delta_{ij} = f(x) = \startmathcases \NC x, 1 \MC TC if \textm{if i = j} 0 \le x \le \frac12 \NR \NC 1-x ,0 \MC \text{if } \frac12 \le x \le 1 TC otherwise \NR \stopmathcases
\stopformula
</texcode>
107

edits

Navigation menu