From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90411 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Problem with MkIV and TikZ picture remembering Date: Tue, 3 Mar 2015 12:12:38 -0500 (EST) Message-ID: References: <54F56159.4040305@web.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-792958951-1425402760=:44165" X-Trace: ger.gmane.org 1425402816 24457 80.91.229.3 (3 Mar 2015 17:13:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Mar 2015 17:13:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 03 18:13:23 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YSqNf-0001kC-MM for gctc-ntg-context-518@m.gmane.org; Tue, 03 Mar 2015 18:13:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE4501022E for ; Tue, 3 Mar 2015 18:13:14 +0100 (CET) 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 M-EDNVHf5WYg for ; Tue, 3 Mar 2015 18:13:13 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 99A3C1022F for ; Tue, 3 Mar 2015 18:12:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 54E62101EA for ; Tue, 3 Mar 2015 18:12:46 +0100 (CET) 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 9RV6khlGxglk for ; Tue, 3 Mar 2015 18:12:45 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 4F378101E8 for ; Tue, 3 Mar 2015 18:12:45 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t23HCgZn004307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 3 Mar 2015 18:12:44 +0100 Original-Received: FROM [192.168.2.65] ((null) [135.0.226.162]) By hackers.mr.itd.umich.edu ID 54F5EB88.6CA1E.30466 ; Authuser adityam; 3 Mar 2015 12:12:40 EST In-Reply-To: <54F56159.4040305@web.de> User-Agent: Alpine 2.02 (OSX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=Michigan; city=Ann Arbor; latitude=42.3241; longitude=-83.7113; http://maps.google.com/maps?q=42.3241,-83.7113&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01NX5cHSj - 0d0a220872c7 - 20150303 (trained as not-spam) Received-SPF: none (filter4-ams.mf.surf.net: domain of adityam@umich.edu does not designate permitted sender hosts) receiver=filter4-ams.mf.surf.net; client-ip=141.211.14.81; envelope-from=; helo=hackers.mr.itd.umich.edu; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:90411 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. --0-792958951-1425402760=:44165 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 3 Mar 2015, J=C3=B6rg Weger wrote: > In the minimal working example below inside of a text two words should=20 > be printed inside of rounded TikZ rectangles and should be connected by= =20 > an TikZ arrow pointing from the first word to the other. > > TikZ offers the remember picture/overlay option for that. > > I have seen a solution similar to what I want to achieve in the METAFUN= =20 > manual but I don=E2=80=99t have a clue how to get that METAPOST alternati= ve working. Here is how to get the metafun alternative working. 1. I don't understand why I need to manually input the mp-abck file; that= =20 should be input automatically. 2. The metafun alternative is a bit inconvenient. Suppose you want to draw= =20 a bunch of such graphics (words connected by arrows). Then, you will need= =20 to ensure that node names are unique. (Is there a way to get around that?) 3. I did not bother to set the style of the boxes and arrows. So it looks= =20 a bit dry. \startMPdefinitions % I don't know why this does not get loaded automatically. input mp-abck.mpiv; \stopMPdefinitions \defineoverlay[highlight] [\positionoverlay{highlightoverlay}] \startpositionoverlay{highlightoverlay} \setMPpositiongraphic{n1}{highlightgraphic}{from=3Dn1,to=3Dn2} \stoppositionoverlay \startMPpositiongraphic{highlightgraphic} save n; path n[]; initialize_box(\MPpos{\MPvar{from}}); n[1] :=3D pxy; initialize_box(\MPpos{\MPvar{to}}); n[2] :=3D pxy; draw n[1]; draw n[2]; drawarrow (center n[1]){dir 45} .. {dir -45}(center n[2]) cutbefore n[1] cutafter n[2]; anchor_box(\MPanchor{\MPvar{from}}); \stopMPpositiongraphic \setuppapersize[A6] \setupbackgrounds[page][background=3Dhighlight] \starttext \hpos{n1}{this} belongs to \hpos{n2}{that} \stoptext Aditya --0-792958951-1425402760=:44165 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= --0-792958951-1425402760=:44165--