From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95528 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Bug with the matrix library (TIKZ) Date: Thu, 21 Jul 2016 11:50:46 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2844277100702139518==" X-Trace: ger.gmane.org 1469094697 32258 80.91.229.3 (21 Jul 2016 09:51:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2016 09:51:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 21 11:51:26 2016 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bQAdW-0003FN-KW for gctc-ntg-context-518@m.gmane.org; Thu, 21 Jul 2016 11:51:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id ED48712913; Thu, 21 Jul 2016 11:51:01 +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 pJR0lRWwMpun; Thu, 21 Jul 2016 11:51:00 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 5CF0712918; Thu, 21 Jul 2016 11:51:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EE95E12913 for ; Thu, 21 Jul 2016 11:50:59 +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 VDpXmkeZe6NG for ; Thu, 21 Jul 2016 11:50:59 +0200 (CEST) Original-Received: from mail-io0-f176.google.com (mail-io0-f176.google.com [209.85.223.176]) (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 CDACB128BC for ; Thu, 21 Jul 2016 11:50:48 +0200 (CEST) Original-Received: by mail-io0-f176.google.com with SMTP id 38so71404191iol.0 for ; Thu, 21 Jul 2016 02:50:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=VjJk8je+W9R1ZGTxz3XB/RD/JrbnGLtz0j8N+JoBnMw=; b=pykevZwSwu0eoY1WGD7i5bzeKyoWeem3v+fjzPzro0W65QoRGoN9Xv21Q11bMEMpS/ O4r4AbmVe5T/G0iuNIExoP2aWPFjAPaQdTvbWJYusWj8p5JhcBAe4uGVmnft4XEL5IMu T6OsJLwsQvnXgz6GUXhnPbWVw91Cf97knAqNScjyKVauS38aMW3/i/gsVBeRDICIIlm1 i2E6d9oPS29uYD0pkAc5a+855rpszm+fxz0zWt+yw87W6ZgZFk4ZRW5sN3Zq4GGUmO5+ pQCLZsoTgRjpgcJw5zT5MpPZ889ywUoX8/LHgkcbwtR00rcRbhM00PzYcTwEJaXr87Cp 1qhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=VjJk8je+W9R1ZGTxz3XB/RD/JrbnGLtz0j8N+JoBnMw=; b=FUQdxZjeKRhcEPs/XBU7j9XmEqGGxP2YxwFlHP9h9sOMErb2B8iIogyhZi/4MTBJ1V FOZFdd0Vjg4Nk6c8IucCD010PJUJYyhfeq3r2KrdoLOaLCO9np86a+xoGN5CVDUcevfP LbmCVmRpSa2Kb0RCnq2CpBUyo2ORYaj3Zp11xB7O2FtWgWLJTdcA9GGazmeYYYvCUSJf U2wGcYuQkWv4i66wPdBo1z+Ko0BtteBpk83Dkph9f/K7rwf6Gfz9dYT0pfmGgCz0lnOJ 3asmfBnaMoPJ3llAlT3XY1an3EXg7OFQEngBy18OWlGrnEd+h++pbo68KXCF41zuz/fo fExw== X-Gm-Message-State: ALyK8tIhqkPVmJDZj4LhcV+ND3HxaVhx7ukuwRXRAstWwVypD8j7EDf4kGC2X034JlMVG3PllM9RCz+VNER8KQ== X-Received: by 10.107.168.229 with SMTP id e98mr47653224ioj.61.1469094647244; Thu, 21 Jul 2016 02:50:47 -0700 (PDT) Original-Received: by 10.64.10.2 with HTTP; Thu, 21 Jul 2016 02:50:46 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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:95528 Archived-At: --===============2844277100702139518== Content-Type: multipart/alternative; boundary=001a11426a36972c3e0538224080 --001a11426a36972c3e0538224080 Content-Type: text/plain; charset=UTF-8 Hi Hans, If I do this, the problem remains the same. \starttikzpicture \vbox{\matrix [matrix of math nodes,ampersand replacement=\&] { a_8 \& a_1 \& a_6 \\ a_3 \& a_5 \& |[red]| a_7 \\ a_4 \& a_9 \& a_2 \\ };} \stoptikzpicture 2016-07-21 11:38 GMT+02:00 Hans Hagen : > On 7/21/2016 11:25 AM, Fabrice Couvreur wrote: > >> Hello, >> Everything is in the title, as this example shows. >> > > normally it means that you need to wrap in a \vbox{...} > > Thanks, >> Fabrice >> >> >> #################################################################### >> \usemodule[tikz] >> \usetikzlibrary[matrix] >> >> \setupbodyfont[pagella,11pt] >> >> \starttext >> >> \starttikzpicture >> \matrix [matrix of math nodes,ampersand replacement=\&] >> { >> a_8 \& a_1 \& a_6 \\ >> a_3 \& a_5 \& |[red]| a_7 \\ >> a_4 \& a_9 \& a_2 \\ >> }; >> \stoptikzpicture >> >> \stoptext >> >> #################################################################### >> tex error > tex error on line 14 in file /home/fab/ntg49.tex: ! >> Argument of \tikz@lib@matrix@with@options has an extra } >> >> >> \par >> >> } >> l.14 } >> ; >> >> 4 \setupbodyfont[pagella,11pt] >> 5 >> 6 \starttext >> 7 >> 8 \starttikzpicture >> 9 \matrix [matrix of math nodes,ampersand replacement=\&] >> 10 { >> 11 a_8 \& a_1 \& a_6 \\ >> 12 a_3 \& a_5 \& |[red]| a_7 \\ >> 13 a_4 \& a_9 \& a_2 \\ >> 14 >> }; >> 15 \stoptikzpicture >> 16 >> 17 \stoptext >> >> >> >> >> >> ___________________________________________________________________________________ >> 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://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> >> ___________________________________________________________________________________ >> >> > > -- > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > > ___________________________________________________________________________________ > 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://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ --001a11426a36972c3e0538224080 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Hans,If I do this, the = problem = remains the same.

\starttikzpicture
=C2=A0 \vbox{\matrix [matrix = of math nodes,ampersand replacement=3D\&]
=C2=A0 {
=C2=A0=C2=A0= =C2=A0 a_8 \& a_1 \& a_6=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 \\
=C2=A0=C2=A0=C2=A0 a_3 \& a_5 \& |[red]| a_7 \\
=C2= =A0=C2=A0=C2=A0 a_4 \& a_9 \&=C2=A0=C2=A0=C2=A0=C2=A0 a_2=C2=A0=C2= =A0=C2=A0=C2=A0 \\
=C2=A0 };}
\stoptikzpicture


2016-07-2= 1 11:38 GMT+02:00 Hans Hagen <pragma@wxs.nl>:
On 7/21/2016 11:25 AM, Fabrice Couvreur wr= ote:
Hello,
Everything is in the title, as this example shows.

normally it means that you need to wrap in a \vbox{...}

Thanks,
Fabrice


####################################################################
\usemodule[tikz]
\usetikzlibrary[matrix]

\setupbodyfont[pagella,11pt]

\starttext

\starttikzpicture
=C2=A0 \matrix [matrix of math nodes,ampersand replacement=3D\&]
=C2=A0 {
=C2=A0 =C2=A0 a_8 \& a_1 \& a_6=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\\=
=C2=A0 =C2=A0 a_3 \& a_5 \& |[red]| a_7 \\
=C2=A0 =C2=A0 a_4 \& a_9 \&=C2=A0 =C2=A0 =C2=A0a_2=C2=A0 =C2=A0 =C2= =A0\\
=C2=A0 };
\stoptikzpicture

\stoptext

####################################################################
tex error=C2=A0 =C2=A0 =C2=A0 =C2=A0> tex error on line 14 in file /home= /fab/ntg49.tex: !
Argument of \tikz@lib@matrix@with@options has an extra }

<inserted text>
\par
<to be read again>
}
l.14=C2=A0 =C2=A0}
=C2=A0 =C2=A0 =C2=A0 ;

=C2=A04=C2=A0 =C2=A0 =C2=A0\setupbodyfont[pagella,11pt]
=C2=A05
=C2=A06=C2=A0 =C2=A0 =C2=A0\starttext
=C2=A07
=C2=A08=C2=A0 =C2=A0 =C2=A0\starttikzpicture
=C2=A09=C2=A0 =C2=A0 =C2=A0 =C2=A0\matrix [matrix of math nodes,ampersand r= eplacement=3D\&]
10=C2=A0 =C2=A0 =C2=A0 =C2=A0{
11=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0a_8 \& a_1 \& a_6=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0\\
12=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0a_3 \& a_5 \& |[red]| a_7 \\ 13=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0a_4 \& a_9 \&=C2=A0 =C2=A0 =C2= =A0a_2=C2=A0 =C2=A0 =C2=A0\\
14 >>=C2=A0 =C2=A0 };
15=C2=A0 =C2=A0 =C2=A0\stoptikzpicture
16
17=C2=A0 =C2=A0 =C2=A0\stoptext




___________________________________________________________________________= ________
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://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/con= textrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________



--

-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 H= ans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 8061 GH = Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0tel: 038 477 53 69 | www.pragma-ade.nl | www.p= ragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________= ________
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://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/con= textrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________

--001a11426a36972c3e0538224080-- --===============2844277100702139518== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============2844277100702139518==--