Changes

Jump to navigation Jump to search
1,001 bytes added ,  18:44, 29 November 2020
Adding description of the optional parameter of \VL and \HL
\stopmymatrix
\stopformula
</context> The two commands {{cmd|VL}} and here {{cmd|HL}} take an optional parameter which defines the thickness of the rule and its color. So '''\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 '''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 '''\VL''' counts as a hidden cell. To interrupt a vertical line, use an empty cell.
 
<context source=yes>
\definemathmatrix[mymatrix][matrix:parentheses]
 
Weird matrix
 
\starttext
\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>
7

edits

Navigation menu