* Strange behavior with \usetikzlibrary [matrix]
@ 2019-04-18 9:26 Fabrice Couvreur
2019-04-18 10:17 ` Henri Menke
0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Couvreur @ 2019-04-18 9:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 893 bytes --]
Hi,
If I compile the following code, the result is not the one expected.
\usemodule[tikz]
\usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
\starttext
\starttikzpicture[>=stealth,thick,baseline,
every right delimiter/.append style={name=rd},
]
\matrix [matrix of math nodes,
left delimiter=(,
right delimiter=),
](A){
a_{1,1} & a_{1,2} & \dots & a_{1,j} & \dots & a_{1,n}\\
a_{2,1} & a_{2,2} & \dots & a_{2,j} & \dots & a_{2,n}\\
\vdots & \vdots & & \vdots & & \vdots\\
a_{i,1} & a_{i,2} & \dots & a_{i,j} & \dots & a_{i,n}\\
\vdots & \vdots & & \vdots & & \vdots\\
a_{n,1} & a_{n,2} & \dots & a_{n,j} & \dots & a_{n,n}\\
};
\draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
\draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
colonne};
\stoptikzpicture
\stoptext
Thank you
Fabrice
[-- Attachment #1.2: Type: text/html, Size: 2066 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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] 5+ messages in thread
* Re: Strange behavior with \usetikzlibrary [matrix]
2019-04-18 9:26 Strange behavior with \usetikzlibrary [matrix] Fabrice Couvreur
@ 2019-04-18 10:17 ` Henri Menke
2019-04-18 10:22 ` Fabrice Couvreur
0 siblings, 1 reply; 5+ messages in thread
From: Henri Menke @ 2019-04-18 10:17 UTC (permalink / raw)
To: ntg-context
In ConTeXt the ampersand is not an alignment character but has catcode
12 by default. Use the "ampersand replacement" option.
\usemodule[tikz]
\usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
\starttext
\starttikzpicture[>=stealth,thick,baseline,
every right delimiter/.append style={name=rd},
]
\matrix [matrix of math nodes,
left delimiter=(,
right delimiter=),
ampersand replacement=\&
](A){
a_{1,1} \& a_{1,2} \& \dots \& a_{1,j} \& \dots \& a_{1,n}\\
a_{2,1} \& a_{2,2} \& \dots \& a_{2,j} \& \dots \& a_{2,n}\\
\vdots \& \vdots \& \& \vdots \& \& \vdots\\
a_{i,1} \& a_{i,2} \& \dots \& a_{i,j} \& \dots \& a_{i,n}\\
\vdots \& \vdots \& \& \vdots \& \& \vdots\\
a_{n,1} \& a_{n,2} \& \dots \& a_{n,j} \& \dots \& a_{n,n}\\
};
\draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
\draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
colonne};
\stoptikzpicture
\stoptext
On 4/18/19 9:26 PM, Fabrice Couvreur wrote:
> Hi,
> If I compile the following code, the result is not the one expected.
>
> \usemodule[tikz]
> \usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
> \starttext
>
> \starttikzpicture[>=stealth,thick,baseline,
> every right delimiter/.append style={name=rd},
> ]
> \matrix [matrix of math nodes,
> left delimiter=(,
> right delimiter=),
> ](A){
> a_{1,1} & a_{1,2} & \dots & a_{1,j} & \dots & a_{1,n}\\
> a_{2,1} & a_{2,2} & \dots & a_{2,j} & \dots & a_{2,n}\\
> \vdots & \vdots & & \vdots & & \vdots\\
> a_{i,1} & a_{i,2} & \dots & a_{i,j} & \dots & a_{i,n}\\
> \vdots & \vdots & & \vdots & & \vdots\\
> a_{n,1} & a_{n,2} & \dots & a_{n,j} & \dots & a_{n,n}\\
> };
>
> \draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
> \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
> colonne};
>
> \stoptikzpicture
> \stoptext
>
> Thank you
> Fabrice
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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] 5+ messages in thread
* Re: Strange behavior with \usetikzlibrary [matrix]
2019-04-18 10:17 ` Henri Menke
@ 2019-04-18 10:22 ` Fabrice Couvreur
2019-04-18 10:31 ` Henri Menke
0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Couvreur @ 2019-04-18 10:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3348 bytes --]
Hi Henry,
This has no effect, the problem is the same.
Fabrice
Le jeu. 18 avr. 2019 à 12:17, Henri Menke <henrimenke@gmail.com> a écrit :
> In ConTeXt the ampersand is not an alignment character but has catcode
> 12 by default. Use the "ampersand replacement" option.
>
> \usemodule[tikz]
> \usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
> \starttext
>
> \starttikzpicture[>=stealth,thick,baseline,
> every right delimiter/.append style={name=rd},
> ]
> \matrix [matrix of math nodes,
> left delimiter=(,
> right delimiter=),
> ampersand replacement=\&
> ](A){
> a_{1,1} \& a_{1,2} \& \dots \& a_{1,j} \& \dots \& a_{1,n}\\
> a_{2,1} \& a_{2,2} \& \dots \& a_{2,j} \& \dots \& a_{2,n}\\
> \vdots \& \vdots \& \& \vdots \& \& \vdots\\
> a_{i,1} \& a_{i,2} \& \dots \& a_{i,j} \& \dots \& a_{i,n}\\
> \vdots \& \vdots \& \& \vdots \& \& \vdots\\
> a_{n,1} \& a_{n,2} \& \dots \& a_{n,j} \& \dots \& a_{n,n}\\
> };
>
> \draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
> \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
> colonne};
>
> \stoptikzpicture
> \stoptext
>
>
>
> On 4/18/19 9:26 PM, Fabrice Couvreur wrote:
> > Hi,
> > If I compile the following code, the result is not the one expected.
> >
> > \usemodule[tikz]
> > \usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
> > \starttext
> >
> > \starttikzpicture[>=stealth,thick,baseline,
> > every right delimiter/.append style={name=rd},
> > ]
> > \matrix [matrix of math nodes,
> > left delimiter=(,
> > right delimiter=),
> > ](A){
> > a_{1,1} & a_{1,2} & \dots & a_{1,j} & \dots & a_{1,n}\\
> > a_{2,1} & a_{2,2} & \dots & a_{2,j} & \dots & a_{2,n}\\
> > \vdots & \vdots & & \vdots & & \vdots\\
> > a_{i,1} & a_{i,2} & \dots & a_{i,j} & \dots & a_{i,n}\\
> > \vdots & \vdots & & \vdots & & \vdots\\
> > a_{n,1} & a_{n,2} & \dots & a_{n,j} & \dots & a_{n,n}\\
> > };
> >
> > \draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
> > \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
> > colonne};
> >
> > \stoptikzpicture
> > \stoptext
> >
> > Thank you
> > Fabrice
> >
> >
> >
> ___________________________________________________________________________________
> > 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
> >
> ___________________________________________________________________________________
> >
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 5541 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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] 5+ messages in thread
* Re: Strange behavior with \usetikzlibrary [matrix]
2019-04-18 10:22 ` Fabrice Couvreur
@ 2019-04-18 10:31 ` Henri Menke
2019-04-18 22:12 ` Fabrice Couvreur
0 siblings, 1 reply; 5+ messages in thread
From: Henri Menke @ 2019-04-18 10:31 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 3979 bytes --]
On 4/18/19 10:22 PM, Fabrice Couvreur wrote:
> Hi Henry,
> This has no effect, the problem is the same.
ConTeXt ver: 2019.04.16 08:54 MKIV beta
PDF is attached.
> Fabrice
>
> Le jeu. 18 avr. 2019 à 12:17, Henri Menke <henrimenke@gmail.com> a écrit :
>
>> In ConTeXt the ampersand is not an alignment character but has catcode
>> 12 by default. Use the "ampersand replacement" option.
>>
>> \usemodule[tikz]
>> \usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
>> \starttext
>>
>> \starttikzpicture[>=stealth,thick,baseline,
>> every right delimiter/.append style={name=rd},
>> ]
>> \matrix [matrix of math nodes,
>> left delimiter=(,
>> right delimiter=),
>> ampersand replacement=\&
>> ](A){
>> a_{1,1} \& a_{1,2} \& \dots \& a_{1,j} \& \dots \& a_{1,n}\\
>> a_{2,1} \& a_{2,2} \& \dots \& a_{2,j} \& \dots \& a_{2,n}\\
>> \vdots \& \vdots \& \& \vdots \& \& \vdots\\
>> a_{i,1} \& a_{i,2} \& \dots \& a_{i,j} \& \dots \& a_{i,n}\\
>> \vdots \& \vdots \& \& \vdots \& \& \vdots\\
>> a_{n,1} \& a_{n,2} \& \dots \& a_{n,j} \& \dots \& a_{n,n}\\
>> };
>>
>> \draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
>> \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
>> colonne};
>>
>> \stoptikzpicture
>> \stoptext
>>
>>
>>
>> On 4/18/19 9:26 PM, Fabrice Couvreur wrote:
>> > Hi,
>> > If I compile the following code, the result is not the one expected.
>> >
>> > \usemodule[tikz]
>> > \usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
>> > \starttext
>> >
>> > \starttikzpicture[>=stealth,thick,baseline,
>> > every right delimiter/.append style={name=rd},
>> > ]
>> > \matrix [matrix of math nodes,
>> > left delimiter=(,
>> > right delimiter=),
>> > ](A){
>> > a_{1,1} & a_{1,2} & \dots & a_{1,j} & \dots & a_{1,n}\\
>> > a_{2,1} & a_{2,2} & \dots & a_{2,j} & \dots & a_{2,n}\\
>> > \vdots & \vdots & & \vdots & & \vdots\\
>> > a_{i,1} & a_{i,2} & \dots & a_{i,j} & \dots & a_{i,n}\\
>> > \vdots & \vdots & & \vdots & & \vdots\\
>> > a_{n,1} & a_{n,2} & \dots & a_{n,j} & \dots & a_{n,n}\\
>> > };
>> >
>> > \draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
>> > \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
>> > colonne};
>> >
>> > \stoptikzpicture
>> > \stoptext
>> >
>> > Thank you
>> > Fabrice
>> >
>> >
>> >
>> ___________________________________________________________________________________
>> > 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
>> >
>> ___________________________________________________________________________________
>> >
>>
>>
>> ___________________________________________________________________________________
>> 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
>>
>> ___________________________________________________________________________________
>>
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 11649 bytes --]
[-- Attachment #3: Type: text/plain, Size: 493 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] 5+ messages in thread
* Re: Strange behavior with \usetikzlibrary [matrix]
2019-04-18 10:31 ` Henri Menke
@ 2019-04-18 22:12 ` Fabrice Couvreur
0 siblings, 0 replies; 5+ messages in thread
From: Fabrice Couvreur @ 2019-04-18 22:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 5083 bytes --]
Hi Henry,
I am confused because I forgot to replace & by \& in the definition of the
matrix.
Thank you.
Fabrice
Le jeu. 18 avr. 2019 à 12:31, Henri Menke <henrimenke@gmail.com> a écrit :
> On 4/18/19 10:22 PM, Fabrice Couvreur wrote:
> > Hi Henry,
> > This has no effect, the problem is the same.
>
> ConTeXt ver: 2019.04.16 08:54 MKIV beta
>
> PDF is attached.
>
> > Fabrice
> >
> > Le jeu. 18 avr. 2019 à 12:17, Henri Menke <henrimenke@gmail.com> a
> écrit :
> >
> >> In ConTeXt the ampersand is not an alignment character but has catcode
> >> 12 by default. Use the "ampersand replacement" option.
> >>
> >> \usemodule[tikz]
> >> \usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit]
> >> \starttext
> >>
> >> \starttikzpicture[>=stealth,thick,baseline,
> >> every right delimiter/.append style={name=rd},
> >> ]
> >> \matrix [matrix of math nodes,
> >> left delimiter=(,
> >> right delimiter=),
> >> ampersand replacement=\&
> >> ](A){
> >> a_{1,1} \& a_{1,2} \& \dots \& a_{1,j} \& \dots \& a_{1,n}\\
> >> a_{2,1} \& a_{2,2} \& \dots \& a_{2,j} \& \dots \& a_{2,n}\\
> >> \vdots \& \vdots \& \& \vdots \& \& \vdots\\
> >> a_{i,1} \& a_{i,2} \& \dots \& a_{i,j} \& \dots \& a_{i,n}\\
> >> \vdots \& \vdots \& \& \vdots \& \& \vdots\\
> >> a_{n,1} \& a_{n,2} \& \dots \& a_{n,j} \& \dots \& a_{n,n}\\
> >> };
> >>
> >> \draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
> >> \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
> >> colonne};
> >>
> >> \stoptikzpicture
> >> \stoptext
> >>
> >>
> >>
> >> On 4/18/19 9:26 PM, Fabrice Couvreur wrote:
> >> > Hi,
> >> > If I compile the following code, the result is not the one expected.
> >> >
> >> > \usemodule[tikz]
> >> > \usetikzlibrary[matrix,decorations.pathreplacing, calc,
> positioning,fit]
> >> > \starttext
> >> >
> >> > \starttikzpicture[>=stealth,thick,baseline,
> >> > every right delimiter/.append style={name=rd},
> >> > ]
> >> > \matrix [matrix of math nodes,
> >> > left delimiter=(,
> >> > right delimiter=),
> >> > ](A){
> >> > a_{1,1} & a_{1,2} & \dots & a_{1,j} & \dots & a_{1,n}\\
> >> > a_{2,1} & a_{2,2} & \dots & a_{2,j} & \dots & a_{2,n}\\
> >> > \vdots & \vdots & & \vdots & & \vdots\\
> >> > a_{i,1} & a_{i,2} & \dots & a_{i,j} & \dots & a_{i,n}\\
> >> > \vdots & \vdots & & \vdots & & \vdots\\
> >> > a_{n,1} & a_{n,2} & \dots & a_{n,j} & \dots & a_{n,n}\\
> >> > };
> >> >
> >> > \draw[<-] (rd)--++(0:6mm) node[right]{$i$-ième colonne};
> >> > \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième
> >> > colonne};
> >> >
> >> > \stoptikzpicture
> >> > \stoptext
> >> >
> >> > Thank you
> >> > Fabrice
> >> >
> >> >
> >> >
> >>
> ___________________________________________________________________________________
> >> > 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
> >> >
> >>
> ___________________________________________________________________________________
> >> >
> >>
> >>
> >>
> ___________________________________________________________________________________
> >> 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
> >>
> >>
> ___________________________________________________________________________________
> >>
> >
> >
> >
> ___________________________________________________________________________________
> > 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
> >
> ___________________________________________________________________________________
> >
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 8855 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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] 5+ messages in thread
end of thread, other threads:[~2019-04-18 22:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-18 9:26 Strange behavior with \usetikzlibrary [matrix] Fabrice Couvreur
2019-04-18 10:17 ` Henri Menke
2019-04-18 10:22 ` Fabrice Couvreur
2019-04-18 10:31 ` Henri Menke
2019-04-18 22:12 ` Fabrice Couvreur
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).