From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89292 Path: news.gmane.org!not-for-mail From: John Kitzmiller Newsgroups: gmane.comp.tex.context Subject: overlay Date: Sat, 22 Nov 2014 15:32:19 -0500 Message-ID: <24F8D443-4B30-4BC3-BDBF-D78E96A4BCC1@inradius.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/mixed; boundary="===============1032180154==" X-Trace: ger.gmane.org 1416688391 31907 80.91.229.3 (22 Nov 2014 20:33:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Nov 2014 20:33:11 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 22 21:33:05 2014 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 1XsHMe-00022m-Sv for gctc-ntg-context-518@m.gmane.org; Sat, 22 Nov 2014 21:33:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 38F8410233 for ; Sat, 22 Nov 2014 21:33:04 +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 v4dG2I7wvPPQ for ; Sat, 22 Nov 2014 21:33:03 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 5759910234 for ; Sat, 22 Nov 2014 21:32:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE3FE101EA for ; Sat, 22 Nov 2014 21:32:35 +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 vyJTAGZjV5Z3 for ; Sat, 22 Nov 2014 21:32:35 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 01435101E8 for ; Sat, 22 Nov 2014 21:32:29 +0100 (CET) Original-Received: from bosmailout04.eigbox.net (bosmailout04.eigbox.net [66.96.187.4]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sAMKWSnl002483 for ; Sat, 22 Nov 2014 21:32:29 +0100 Original-Received: from bosmailscan02.eigbox.net ([10.20.15.2]) by bosmailout04.eigbox.net with esmtp (Exim) id 1XsHM3-0007Ay-TO for ntg-context@ntg.nl; Sat, 22 Nov 2014 15:32:27 -0500 Original-Received: from [10.115.3.32] (helo=bosimpout12) by bosmailscan02.eigbox.net with esmtp (Exim) id 1XsHM3-0000KF-Je for ntg-context@ntg.nl; Sat, 22 Nov 2014 15:32:27 -0500 Original-Received: from bosauthsmtp10.yourhostingaccount.com ([10.20.18.10]) by bosimpout12 with id JkYP1p00t0D2CUy01kYSsD; Sat, 22 Nov 2014 15:32:27 -0500 X-Authority-Analysis: v=2.1 cv=HdqaT008 c=1 sm=1 tr=0 a=Kpo39fPXdbgqDwiI3/AEUA==:117 a=zZnF5NfzC91SodgphIyqyQ==:17 a=pq4jwCggAAAA:8 a=QPcu4mC3AAAA:8 a=esbi5I81GEsA:10 a=y85PGfU6AAAA:8 a=C_IRinGWAAAA:8 a=5y4faFyK3SkA:10 a=-H1DvCC8SohXW1ixhpoA:9 a=CjuIK1q_8ugA:10 a=YJjhhdLojn7Qnl8IdT4A:9 a=FL33MrwImx1vXVqQ:21 a=_W_S_7VecoQA:10 Original-Received: from c-24-128-163-193.hsd1.nh.comcast.net ([24.128.163.193]:64406 helo=[10.0.0.3]) by bosauthsmtp10.eigbox.net with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim) id 1XsHLz-00051d-H1 for ntg-context@ntg.nl; Sat, 22 Nov 2014 15:32:23 -0500 X-Mailer: Apple Mail (2.1993) X-EN-UserInfo: 08df34410b47fe835bedcf202d0c2be6:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: kitz@inradius.net X-EN-OrigIP: 24.128.163.193 X-EN-OrigHost: c-24-128-163-193.hsd1.nh.comcast.net X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=66.96.187.4; country=US; region=Massachusetts; city=Burlington; latitude=42.5048; longitude=-71.1956; http://maps.google.com/maps?q=42.5048,-71.1956&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03NiIws9E - e8cad38c3a88 - 20141122 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:89292 Archived-At: --===============1032180154== Content-Type: multipart/alternative; boundary="Apple-Mail=_65E91E56-BD88-4C3C-9C77-F0A9A3066FC8" --Apple-Mail=_65E91E56-BD88-4C3C-9C77-F0A9A3066FC8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Given rectangles with text: \starttext Before:\\ \startMPcode draw unitsquare xscaled 2cm yscaled 1cm; =20 \stopMPcode \\ After:\\ \startMPcode for i=3D0 upto 1: draw unitsquare scaled 1cm xshifted i*cm; endfor; \stopMPcode \stoptext How can a line be drawn connecting the right edges of the rectangles? I = have played with: \startuniqueMPgraphic{line} path a; a:=3D(0,0)--(0,3cm); draw a withpen pencircle scaled 3pt withcolor green; \stopuniqueMPgraphic \defineoverlay[line][{\uniqueMPgraphic{line}}] and using it in \framed, but placing the line correctly is elusive. --Apple-Mail=_65E91E56-BD88-4C3C-9C77-F0A9A3066FC8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Given rectangles with text:

\starttext
Before:\\
\startMPcode
  = draw unitsquare xscaled 2cm yscaled 1cm;  
\stopMPcode
\\
After:\\
\startMPcode
  = for i=3D0 upto 1:
  =   draw unitsquare scaled 1cm xshifted i*cm;
  endfor;
\stopMPcode
\stoptext

How can a line be drawn = connecting the right edges of the rectangles? I have played = with:

\startuniqueMPgraphic{line}
  path = a;
 = a:=3D(0,0)--(0,3cm);
  draw a withpen pencircle scaled 3pt = withcolor green;
\stopuniqueMPgraphic

\defineoverlay[line][{\uniqueMPgraphic{line}}]

and using it in \framed, but placing the line correctly is = elusive.




= --Apple-Mail=_65E91E56-BD88-4C3C-9C77-F0A9A3066FC8-- --===============1032180154== 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= --===============1032180154==--