* Construct a matrix with Metafun
@ 2018-10-14 8:46 Fabrice Couvreur
2018-10-14 9:08 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Couvreur @ 2018-10-14 8:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1.1: Type: text/plain, Size: 195 bytes --]
Hi,
I tried to use Metafun and \definemathmatrix [pmatrix] [matrix:
parentheses] [simplecommand = MATRIX] to create two matrices, but that does
not work.
Thank you.
Fabrice
[image: matrice.jpg]
[-- Attachment #1.1.2: Type: text/html, Size: 873 bytes --]
[-- Attachment #1.2: matrice.jpg --]
[-- Type: image/jpeg, Size: 82653 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Construct a matrix with Metafun
2018-10-14 8:46 Construct a matrix with Metafun Fabrice Couvreur
@ 2018-10-14 9:08 ` Wolfgang Schuster
[not found] ` <CACyK-epiLKiKee77rELJM=FpBa=0Wk1CrksMJfYAJyVEDwkvCQ@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2018-10-14 9:08 UTC (permalink / raw)
To: mailing list for ConTeXt users, Fabrice Couvreur
[-- Attachment #1.1: Type: text/plain, Size: 726 bytes --]
Fabrice Couvreur schrieb am 14.10.18 um 10:46:
> Hi,
> I tried to use Metafun and \definemathmatrix [pmatrix] [matrix:
> parentheses] [simplecommand = MATRIX] to create two matrices, but that
> does not work.
1. You have a space in [matrix: parentheses]
2. When you have only simple graphics like in your example you can use
framed.
\starttext
\startformula
A\,
\startmathmatrix[left=\left(,right=\right)]
\NC \framed[width=1em,height=1em,frame=off,bottomframe=on]{} \NC
\framed[width=1em,height=1em,frame=off,bottomframe=on,leftframe=on]{} \NR
\NC \framed[width=1em,height=1em,frame=off,rightframe=on]{} \NC
\framed[width=1em,height=1em]{} \NR
\stopmathmatrix
\stopformula
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1435 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Construct a matrix with Metafun
[not found] ` <CACyK-epiLKiKee77rELJM=FpBa=0Wk1CrksMJfYAJyVEDwkvCQ@mail.gmail.com>
@ 2018-10-14 10:30 ` Wolfgang Schuster
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2018-10-14 10:30 UTC (permalink / raw)
To: mailing users
[-- Attachment #1.1: Type: text/plain, Size: 1496 bytes --]
It works for me when I add a space after each \MPcode{…} block.
\math{\MATRIX{\MPcode{...} ;\MPcode{...} }}
Wolfgang
Fabrice Couvreur schrieb am 14.10.18 um 12:18:
> Hi Wolfgang,
> Thank you for your solution.The space came from copy-paste because if
> I do this, it does not work :
>
> \definemathmatrix [pmatrix][matrix:parentheses][simplecommand=MATRIX]
>
> \starttext
>
> \math{\MATRIX{\MPcode{draw (0,0) -- (1cm,0);} ;\MPcode{draw (0,0) --
> (1cm,0);}}}
>
> \stoptext
>
> Fabrice
>
> Le dim. 14 oct. 2018 à 11:08, Wolfgang Schuster
> <wolfgang.schuster.lists@gmail.com
> <mailto:wolfgang.schuster.lists@gmail.com>> a écrit :
>
>
>
> Fabrice Couvreur schrieb am 14.10.18 um 10:46:
>> Hi,
>> I tried to use Metafun and \definemathmatrix [pmatrix] [matrix:
>> parentheses] [simplecommand = MATRIX] to create two matrices, but
>> that does not work.
>
> 1. You have a space in [matrix: parentheses]
>
> 2. When you have only simple graphics like in your example you can
> use framed.
>
> \starttext
>
> \startformula
> A\,
> \startmathmatrix[left=\left(,right=\right)]
> \NC \framed[width=1em,height=1em,frame=off,bottomframe=on]{} \NC
> \framed[width=1em,height=1em,frame=off,bottomframe=on,leftframe=on]{}
> \NR
> \NC \framed[width=1em,height=1em,frame=off,rightframe=on]{} \NC
> \framed[width=1em,height=1em]{} \NR
> \stopmathmatrix
> \stopformula
>
> \stoptext
>
> Wolfgang
>
[-- Attachment #1.2: Type: text/html, Size: 4250 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-14 10:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-14 8:46 Construct a matrix with Metafun Fabrice Couvreur
2018-10-14 9:08 ` Wolfgang Schuster
[not found] ` <CACyK-epiLKiKee77rELJM=FpBa=0Wk1CrksMJfYAJyVEDwkvCQ@mail.gmail.com>
2018-10-14 10:30 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).