Changes

Jump to navigation Jump to search
226 bytes added ,  10:54, 23 July 2021
→‎Cases: Updated to use NC and TC instead of NC and MC
\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 ==
<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>
10

edits

Navigation menu