From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104013 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Strange behavior with \usetikzlibrary [matrix] Date: Fri, 19 Apr 2019 00:12:10 +0200 Message-ID: References: <187436dd-4c76-3ad7-72cf-ff70ff581c45@gmail.com> <024b836c-bef6-37af-f54f-05665c29b0bb@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2369873191607694957==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="179244"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 19 00:14:53 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hHFIy-000kVj-Jw for gctc-ntg-context-518@m.gmane.org; Fri, 19 Apr 2019 00:14:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B70D412A75A; Fri, 19 Apr 2019 00:14:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gh0JgLltK156; Fri, 19 Apr 2019 00:14:14 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 62E6512A749; Fri, 19 Apr 2019 00:14:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0397612A749 for ; Fri, 19 Apr 2019 00:14:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HaC4Ak4OPDqy for ; Fri, 19 Apr 2019 00:14:12 +0200 (CEST) Original-Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id F2D3512A730 for ; Fri, 19 Apr 2019 00:14:11 +0200 (CEST) Original-Received: by mail-wm1-f49.google.com with SMTP id r186so7810046wmf.1 for ; Thu, 18 Apr 2019 15:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=dD+F+wiVYtS4f7Awej6jm38J0VMoY/xt4fy1J2HBi18=; b=Y6Gmlwi3tJRxxKAN4W3uQwBJoRdW+L1w05iv68MHmYil7M3PtSSiRqp+M8uDVEmVs0 //EFeL33uDb08JNw82BHxapqIx9o4P3Gr2FWNvzbih5RP996qy5blvVG31aOaYyvzYKx T2NeS40L6Gqpjd/XdR2Vy+r4eluOauCa/y1tA4gsTWhme7+M2rCxEuzKyZWu5Dw680yX 5NVdPlGgUejX0Y8Hk81oIrzt0BgzXtX4CTw1tXGeOdPfk3p/5xGajRH5ffw6512S6aUH ATgaManrY0aLkaODVSMTCvLzO80G2EqKU5L4xLbiObEAKfVY5AaplwX006n4PrgG0nxP iyJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=dD+F+wiVYtS4f7Awej6jm38J0VMoY/xt4fy1J2HBi18=; b=kqkRwCHGrgTf4QrxcHaD4qpSh9ydcyNj5UPaogPsra/HbQxbscESvBAnv4P+Qcf76N plFrHW51nstpw2X5uG8K84u9Mm2Dp62ifVn3UVQCFXtrXFfhqthRkn0hwve2hnWVHiQW I2u5y2gmFlS5auz6xsJX0Dv5ZL4qR2ECGfzv/5J74ZZBFef/OlhAwt8xWCYNsymo2FXY I3ioUhqtZdwKoDsagUW5AJOEVxSHpotiwq6SA+ZpcPO/cr2J0qD+Ku7n0ohtqmpCm6H4 iZmyoZWPpI3Cajn73Os6DZkTcKk6lUph6xyq2aHmg+mZHA5oiKZ3HXrk+XaHVd0AAbyF ONnA== X-Gm-Message-State: APjAAAWpRJ5tLYAiK389ZzuUL5KhlQQ7cwLy3uxfu4EXCcl7AX7NbTw7 ER2LTsg/ntZhVPmuutOSEIhRq1DablBNGiJmXF18xUF4 X-Google-Smtp-Source: APXvYqyLKw5K23dnTUVTnzZyLUJ9jGpmevx8HlLEpX+abk1p3z5cQtTBtPzdkOC1vUK+xtwDPW+iacgPLCyQkMysPWw= X-Received: by 2002:a1c:d7:: with SMTP id 206mr376054wma.69.1555625651297; Thu, 18 Apr 2019 15:14:11 -0700 (PDT) In-Reply-To: <024b836c-bef6-37af-f54f-05665c29b0bb@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:104013 Archived-At: --===============2369873191607694957== Content-Type: multipart/alternative; boundary="00000000000059639a0586d55251" --00000000000059639a0586d55251 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 =C3=A0 12:31, Henri Menke a =C3= =A9crit : > 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 =C3=A0 12:17, Henri Menke a > =C3=A9crit : > > > >> 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,fi= t] > >> \starttext > >> > >> \starttikzpicture[>=3Dstealth,thick,baseline, > >> every right delimiter/.append style=3D{name=3Drd}, > >> ] > >> \matrix [matrix of math nodes, > >> left delimiter=3D(, > >> right delimiter=3D), > >> ampersand replacement=3D\& > >> ](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=C3=A8me colonne}; > >> \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-i=C3= =A8me > >> 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[>=3Dstealth,thick,baseline, > >> > every right delimiter/.append style=3D{name=3Drd}, > >> > ] > >> > \matrix [matrix of math nodes, > >> > left delimiter=3D(, > >> > right delimiter=3D), > >> > ](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=C3=A8me colonne}; > >> > \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-i=C3= =A8me > >> > colonne}; > >> > > >> > \stoptikzpicture > >> > \stoptext > >> > > >> > Thank you > >> > Fabrice > >> > > >> > > >> > > >> > _________________________________________________________________________= __________ > >> > If your question is of interest to others as well, please add an ent= ry > >> 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 > > _________________________________________________________________________= __________ > --00000000000059639a0586d55251 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Henry,
I am confused because I forgot to replace & by \& in the defi= nition of the matrix.
Th= ank you.
Fabrice

Le=C2=A0jeu.= 18 avr. 2019 =C3=A0=C2=A012:31, Henri Menke <henrimenke@gmail.com> a =C3=A9crit=C2=A0:
On 4/18/19 10:22 PM, Fabrice= Couvreur wrote:
> Hi Henry,
> This has no effect, the problem is the same.

ConTeXt=C2=A0 ver: 2019.04.16 08:54 MKIV beta

PDF is attached.

> Fabrice
>
> Le jeu. 18 avr. 2019 =C3=A0 12:17, Henri Menke <henrimenke@gmail.com> a =C3= =A9crit :
>
>> In ConTeXt the ampersand is not an alignment character but has cat= code
>> 12 by default.=C2=A0 Use the "ampersand replacement" opt= ion.
>>
>> \usemodule[tikz]
>> \usetikzlibrary[matrix,decorations.pathreplacing, calc, positionin= g,fit]
>> \starttext
>>
>> \starttikzpicture[>=3Dstealth,thick,baseline,
>> every right delimiter/.append style=3D{name=3Drd},
>> ]
>> \matrix [matrix of math nodes,
>>=C2=A0 =C2=A0 =C2=A0left delimiter=3D(,
>>=C2=A0 =C2=A0 =C2=A0right delimiter=3D),
>>=C2=A0 =C2=A0 =C2=A0ampersand replacement=3D\&
>>=C2=A0 =C2=A0 =C2=A0](A){
>> a_{1,1} \& a_{1,2} \& \dots=C2=A0 \& a_{1,j} \& \d= ots \& a_{1,n}\\
>> a_{2,1} \& a_{2,2} \& \dots=C2=A0 \& a_{2,j} \& \d= ots \& a_{2,n}\\
>> \vdots=C2=A0 \& \vdots=C2=A0 \&=C2=A0 \& \vdots=C2=A0 = \&=C2=A0 \& \vdots\\
>> a_{i,1} \& a_{i,2} \& \dots=C2=A0 \& a_{i,j} \& \d= ots \& a_{i,n}\\
>> \vdots=C2=A0 \& \vdots=C2=A0 \&=C2=A0 \& \vdots=C2=A0 = \&=C2=A0 \& \vdots\\
>> a_{n,1} \& a_{n,2} \& \dots=C2=A0 \& a_{n,j} \& \d= ots \& a_{n,n}\\
>> };
>>
>> \draw[<-] (rd)--++(0:6mm) node[right]{$i$-i=C3=A8me colonne}; >> \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$= -i=C3=A8me
>> 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 ex= pected.
>> >
>> > \usemodule[tikz]
>> > \usetikzlibrary[matrix,decorations.pathreplacing, calc, posit= ioning,fit]
>> > \starttext
>> >
>> > \starttikzpicture[>=3Dstealth,thick,baseline,
>> > every right delimiter/.append style=3D{name=3Drd},
>> > ]
>> > \matrix [matrix of math nodes,
>> >=C2=A0 =C2=A0 =C2=A0left delimiter=3D(,
>> >=C2=A0 =C2=A0 =C2=A0right delimiter=3D),
>> >=C2=A0 =C2=A0 =C2=A0](A){
>> > a_{1,1} & a_{1,2} & \dots=C2=A0 & a_{1,j} & \= dots & a_{1,n}\\
>> > a_{2,1} & a_{2,2} & \dots=C2=A0 & a_{2,j} & \= dots & a_{2,n}\\
>> > \vdots=C2=A0 & \vdots=C2=A0 &=C2=A0 & \vdots=C2= =A0 &=C2=A0 & \vdots\\
>> > a_{i,1} & a_{i,2} & \dots=C2=A0 & a_{i,j} & \= dots & a_{i,n}\\
>> > \vdots=C2=A0 & \vdots=C2=A0 &=C2=A0 & \vdots=C2= =A0 &=C2=A0 & \vdots\\
>> > a_{n,1} & a_{n,2} & \dots=C2=A0 & a_{n,j} & \= dots & a_{n,n}\\
>> > };
>> >
>> > \draw[<-] (rd)--++(0:6mm) node[right]{$i$-i=C3=A8me colonn= e};
>> > \draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below= ]{$j$-i=C3=A8me
>> > 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-contex= t
>> > webpage=C2=A0 : http://www.pragma-ade.nl / http://context.= aanhet.net
>> > archive=C2=A0 : https://bitbucket.org= /phg/context-mirror/commits/
>> > wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
>> >
>> __________________________________________________________________= _________________
>> >
>>
>>
>> __________________________________________________________________= _________________
>> If your question is of interest to others as well, please add an e= ntry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> http://www.ntg.nl/mailman/listinfo/ntg-contex= t
>> webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhe= t.net
>> archive=C2=A0 : https://bitbucket.org/phg/= context-mirror/commits/
>> wiki=C2=A0 =C2=A0 =C2=A0: 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/listin= fo/ntg-context
> webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.ne= t
> archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
> ______________________________________________________________________= _____________
>

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--00000000000059639a0586d55251-- --===============2369873191607694957== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2369873191607694957==--