[NTG-context] Vertical lines in matrices
Weber, Matthias
matweber at indiana.edu
Mon May 4 13:02:03 CEST 2020
Thanks Jeong,
I was aware of this. While there is no solution that adds vertical lines into matrices, one can juxtapose two (or more) of them with
properly chosen delimiters, like so:
\definemathmatrix
[bvmatrix]
[left={\left(\,},right={\ \right\vert}]
\definemathmatrix
[rbmatrix]
[left={\left.\,},right={\,\right)}]
\starttext
\startformula
\startbvmatrix
\NC 0 \NC 0\NC 0 \NR
\NC 1 \NC 0\NC 1 \NR
\stopbvmatrix
\startrbmatrix
\NC 0 \NR
\NC 1 \NR
\stoprbmatrix
\stopformula
\stoptext
> On May 4, 2020, at 04:25, Jeong Dal <haksan at me.com> wrote:
>
> Dear Weber Mattias,
>
> Please see page 10 of “mathalign.pdf” made by Aditya.
> He showed the way of writing aligned math including matrices.
> For example,
>
> \startformula
>
> \startmatrix[left={\left(\,},right={\,\right)}]
>
> \NC 1 \NC 0 \NC 0 \NR
> \NC 0 \NC 1 \NC 0 \NR
> \NC 0 \NC 0 \NC 1 \NR
>
> \stopmatrix
> \stopformula
> There are many other examples that you can use.
>
> Best regards,
> Dalyoung
>
>> Message: 2
>> Date: Sun, 3 May 2020 17:47:24 +0000
>> From: "Weber, Matthias" <matweber at indiana.edu>
>> To: mailing list for ConTeXt users <ntg-context at ntg.nl>
>> Subject: [NTG-context] Vertical lines in matrices
>> Message-ID: <C8902576-CF86-4967-8A1B-DFF66615DA37 at indiana.edu>
>> Content-Type: text/plain; charset="utf-8"
>>
>> Dear List,
>>
>> I am trying to get vertical (separating) lines into matrices, as is possible in tables:
>>
>> \starttext
>> \startformula
>> \left(
>> \starttable[|c|c|c|]
>> \NC 0 \NC 0\VL 0 \FR
>> \NC 1 \NC 0\VL 1 \FR
>> \stoptable
>> \right)
>> \stopformula
>> \stoptext
>>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
More information about the ntg-context
mailing list