Changes

Jump to navigation Jump to search
1,082 bytes added ,  10:59, 30 November 2020
m
no edit summary
\stopmymatrix
\stopformula
Here is a block matrix:
\startformula
\startmymatrix
\stopmymatrix
\stopformula
</context> {{todo|regenerate examples after the wiki context has been updated}} The two commands {{cmd|VL}} and here {{cmd|HL}} take an optional parameter which defines the thickness of the rule and its color. So {{cmd|HL|[3,red]}} will produce a red horizontal rule three times thicker than the default matrix rule. The rule thickness for a specific matrix is another onedefined with the {{code|1=[rulethickness=]}} parameter of {{cmd|definemathmatrix}}. <context source=yes>\definemathmatrix[mymatrix][matrix:parentheses][rulethickness=2pt] \starttext
\startformula
\startmymatrix
\NC A \VL[3,green] B \NR %
\HL[10,red]
\NC C \VL D \NR \stopmymatrix\stopformula</context> A {{cmd|VL}} counts as a hidden cell. To interrupt a vertical line, use an empty cell. <context source=yes>\definemathmatrix[mymatrix][matrix:parentheses] \starttextWeird matrix\startformula \startmymatrix \NC A \VL B \NR \HL[red] \NC C \NC \NC D \NR
\stopmymatrix
\stopformula
This allows things like
 
\startformula
\startmymatrix
\NC A \VL B \NR
\HL
\NC \NC C \NC \NR
\stopmymatrix
\qquad
\startmymatrix
\NC A_1 \VL B_1 \NR
\HL
\NC \vdots \NC \vdots \NC \vdots \NR
\HL
\NC A_n \VL B_n \NR
\stopmymatrix
\stopformula
\stoptext
</context>
106

edits

Navigation menu