From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71123 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Latest betas break tikz matrix Date: Sun, 11 Sep 2011 23:39:10 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1554828922-1315798061=:6981" X-Trace: dough.gmane.org 1315798732 31435 80.91.229.12 (12 Sep 2011 03:38:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2011 03:38:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 12 05:38:45 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R2xM4-0008HP-NB for gctc-ntg-context-518@m.gmane.org; Mon, 12 Sep 2011 05:38:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0C3DDCAF8F; Mon, 12 Sep 2011 05:38:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id g5I9VZpq7YbT; Mon, 12 Sep 2011 05:38:43 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 24F95CAF7F; Mon, 12 Sep 2011 05:38:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E14FCAF7F for ; Mon, 12 Sep 2011 05:38:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RV+yGu8dV61j for ; Mon, 12 Sep 2011 05:38:18 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 4312DCAF7A for ; Mon, 12 Sep 2011 05:38:18 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p8C3cFH2022936 for ; Mon, 12 Sep 2011 05:38:17 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096682717.dsl.bell.ca [65.94.12.221]) By tombraider.mr.itd.umich.edu ID 4E6D7EA6.2E828.18802 ; Authuser adityam; 11 Sep 2011 23:38:14 EDT In-Reply-To: User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) Content-ID: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08FvDCfG8 - ea807880e10f - 20110912 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:71123 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1554828922-1315798061=:6981 Content-Type: TEXT/PLAIN; CHARSET=UTF-8; FORMAT=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: On Sun, 11 Sep 2011, Aditya Mahajan wrote: > On Sun, 11 Sep 2011, Philipp A. wrote: > >> 2011/2/23 Mathieu Boespflug <0xbadcode@gmail.com> >>=20 >>> Hi all, >>>=20 >>> just as a followup and for the mailing list archives, the solution is >>> to use both Aditya's suggestion to turn on \donknuthmode, as well >>> replacing the & signs with their interpretations, namely >>> \pgfmatrixnextcell. Thank you Aditya for the suggestion. >>>=20 >>> Regards, >>>=20 >>> Mathieu >>=20 >>=20 >> umm, i can=E2=80=99t seem to get it to work. i use the mkiv minimals=E2= =80=A6 >>=20 >> no combination of \donknuthmode, \nonknuthmode, \pgfmatrixnextcell and >> =E2=80=9Creplace ampersand=3Dfoo=E2=80=9D, that i tried, seems to work. >>=20 >> can anyone give me a minimal example of a working tikz matrix in a conte= xt >> document? (preferrably something that prevents me from littering everyth= ing >> with =E2=80=9C\pgfmatrixnextcell=E2=80=9D) > > One way around this is to re-read part of tikz module code under the righ= t=20 > catcode regime (ideally this should be done by t-tikz). I still cannot ge= t &=20 > to work, but using \& is a reasonable shortcut. > > Here is a working example: > > \usemodule[t-tikz] > \usetikzlibrary{matrix} > > \unprotect > \ReadFile{pgfmodulematrix.code.tex} > \protect A slightly more robust solution is to load the attached module instead of= =20 t-tikz. (It also patches \usetikzlibrary). However, I cannot figure out=20 what is the expected catcode of & inside a tikz \matrix. So, you will=20 still need to use amserand replacement=3D\&. Note that this sets the catcode of ! to other (as expected by tikz). In=20 the past, circuittikz has some troubles with the catcode of !. Aditya --8323328-1554828922-1315798061=:6981 Content-Type: APPLICATION/x-tex; name=t-tikzcontext.tex Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=t-tikzcontext.tex XG5ld2NhdGNvZGV0YWJsZSBcdGlremNhdGNvZGVzCgpcc3RhcnRjYXRjb2Rl dGFibGUgXHRpa3pjYXRjb2RlcwogICAgXGNhdGNvZGVcdGFiYXNj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y29kZQogICAgXGNhdGNv ZGVcdGlsZGVhc2NpaWNvZGUgICAgIFxhY3RpdmVjYXRjb2RlClxzdG9wY2F0 Y29kZXRhYmxlCgpcZGVmXHN0YXJ0dGlremNhdGNvZGVzCiAgICB7XHB1c2hj YXRjb2RldGFibGUKICAgICBcc2V0Y2F0Y29kZXRhYmxlXHRpa3pjYXRjb2Rl c30KClxkZWZcc3RvcHRpa3pjYXRjb2RlcwogICAge1xwb3BjYXRjb2RldGFi bGV9Cgpcc3RhcnR0aWt6Y2F0Y29kZXMKClxpbnB1dCB0LXBnZi50ZXgKXGlu cHV0IHQtcGdmZm9yLnRleApcaW5wdXQgdGlrei5jb2RlLnRleAoKXGxldFxz dGFydHRpa3pwaWN0dXJlPVx0aWt6cGljdHVyZQpcbGV0XHN0b3B0aWt6cGlj dHVyZT1cZW5kdGlrenBpY3R1cmUKClxkZWZccGdmdXRpbEBJbnB1dElmRmls ZUV4aXN0cyMxIzIjMyUKICAgIHtccGdmdXRpbEBJZkZpbGVFeGlzdHN7IzF9 JQogICAgICAgIHtcc3RhcnR0aWt6Y2F0Y29kZXMKICAgICAgICAgICAgXGlu cHV0ICMxXHJlbGF4IzIlQU06IERvbid0IHdhbnQgdG8gY2hhbmUgaW5wdXQK ICAgICAgICAgIFxzdG9wdGlremNhdGNvZGVzfSUKICAgICAgICB7IzN9fQoK XHN0b3B0aWt6Y2F0Y29kZXMKClxlbmRpbnB1dAo= --8323328-1554828922-1315798061=:6981 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323328-1554828922-1315798061=:6981--