From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104008 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: Thu, 18 Apr 2019 12:22:12 +0200 Message-ID: References: <187436dd-4c76-3ad7-72cf-ff70ff581c45@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5919824361056611940==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="220405"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 18 12:24:34 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 1hH4DZ-000v9I-9s for gctc-ntg-context-518@m.gmane.org; Thu, 18 Apr 2019 12:24:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 48F8512A6A2; Thu, 18 Apr 2019 12:24: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 dgEKCDlhs9Jv; Thu, 18 Apr 2019 12:24:15 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 57E7612A6B0; Thu, 18 Apr 2019 12:24:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8DCE012A6B0 for ; Thu, 18 Apr 2019 12:24: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 bSMQVdOmP48G for ; Thu, 18 Apr 2019 12:24:12 +0200 (CEST) Original-Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 A7C4112A6A2 for ; Thu, 18 Apr 2019 12:24:12 +0200 (CEST) Original-Received: by mail-wm1-f48.google.com with SMTP id a184so2144766wma.2 for ; Thu, 18 Apr 2019 03:24:12 -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=PJSXEPIXOXKJiaQtHz7joxuURHIJXczn2nbHs23dpgc=; b=B8FdzdpPL2YEVT6SNYxeOQdQSpIFz28HxNtGsApAb++IOXc0QVlhsnqkJUp2suFGMI 0DWquTuyM2q/QtZHg8k88pkjSJDM5wFqJ+jDzbtK4eL9Cv2TlS6iAZXjWLaaYgJTILvj 4GYFu+FOyoOC9pmyi63tp2Fc5y4hVDQURr0nwesbhchsTQzAF9L7bgeJqGkQc89S9dH8 PVl96fLXUlYSZiVtr1/XLn/fMGEtwvnVeMy7/VIZUpdYqEhFoYHc8ypdsPU0bImSw0r4 mV2TuFC9hbEnBdAz7yXwEKFCZP8XNaZ9MSf4HB43/VFj0BTWyAyTrfYSq/HLbrDNXCis KI8w== 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=PJSXEPIXOXKJiaQtHz7joxuURHIJXczn2nbHs23dpgc=; b=E+4UKzTjbl9XWrkRg8brDM8hjDspA9q4fPMfIxpCYAzRuBvCFjernR7FkDMCo2hoFu FYC511ZvMOT42RIPzlX39m9NJA4/Cwu8waJ9uF8HG6SdSxpDlXKwYgjpz5Y26/FLL04u WHuEISVzClTPldnBAWuKF65yKbcMz3SVzopGgqfiuRuZcg1qvwBp+V4SjxM8oK35M33K +IUnQFl/S2QDmi47DjGR0KgL2NQm15RCmXfGJuXSyY/2DX6ys0jmeVmP+0Qlv6aeqQC7 e1fLuLBNX+Xibu+2VED99vJ79o5kOEaFHef3A3ACka70BuqEUBlONQVixRmWL8m7rDY3 mGLw== X-Gm-Message-State: APjAAAXCT86/yANrVVfTqRiFVmrJpZEadQlk6eEkBELgEhirWU9Y2GZQ 4h4L9I1sa28oq+UrDPv1P6jeUu6K+/l3l8n/Xx2uPqgK X-Google-Smtp-Source: APXvYqzf7FOUyo9oCI0FwK6RyM0o8DsWh5/A3YiMVA2a9E/Tzj7vZP7i1QoRpO5gCK3VP1dM20GEry6ytbg0tQC2mOE= X-Received: by 2002:a1c:df89:: with SMTP id w131mr2599155wmg.82.1555583051973; Thu, 18 Apr 2019 03:24:11 -0700 (PDT) In-Reply-To: <187436dd-4c76-3ad7-72cf-ff70ff581c45@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:104008 Archived-At: --===============5919824361056611940== Content-Type: multipart/alternative; boundary="0000000000003b51420586cb676b" --0000000000003b51420586cb676b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Henry, This has no effect, the problem is the same. 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,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), > 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=A8= 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 > > _________________________________________________________________________= __________ > --0000000000003b51420586cb676b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Henry,
This has no effect, the problem is the same.
Fabrice

Le=C2=A0jeu. 18 avr. 2019 =C3=A0=C2=A012:17= , Henri Menke <henrimenke@gmail.= com> a =C3=A9crit=C2=A0:
In ConTeXt the ampersand is not an alignment character but = has catcode
12 by default.=C2=A0 Use the "ampersand replacement" option.

\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,
=C2=A0 =C2=A0 left delimiter=3D(,
=C2=A0 =C2=A0 right delimiter=3D),
=C2=A0 =C2=A0 ampersand replacement=3D\&
=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 colonne};
\draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-i=C3=A8m= e
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,fi= t]
> \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 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 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
___________________________________________________________________________= ________
--0000000000003b51420586cb676b-- --===============5919824361056611940== 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== --===============5919824361056611940==--