From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92263 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Text around a figure in a framedtext Date: Sat, 8 Aug 2015 00:49:20 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1341777141==" X-Trace: ger.gmane.org 1438987813 20777 80.91.229.3 (7 Aug 2015 22:50:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2015 22:50:13 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 08 00:50:02 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 1ZNqSf-0003QL-Hy for gctc-ntg-context-518@m.gmane.org; Sat, 08 Aug 2015 00:50:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 721E9101FE for ; Sat, 8 Aug 2015 00:49:57 +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 xWbb8Q15aqu9 for ; Sat, 8 Aug 2015 00:49:56 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D45DF10233 for ; Sat, 8 Aug 2015 00:49:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CBD3B101F7 for ; Sat, 8 Aug 2015 00:49:24 +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 PCVSCFJM_AzR for ; Sat, 8 Aug 2015 00:49:23 +0200 (CEST) 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 57427101E6 for ; Sat, 8 Aug 2015 00:49:23 +0200 (CEST) Original-Received: from mail-io0-x22b.google.com (mail-io0-x22b.google.com [IPv6:2607:f8b0:4001:c06::22b]) by filter4-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t77MnK7P003899 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sat, 8 Aug 2015 00:49:22 +0200 Original-Received: by iodd187 with SMTP id d187so125034972iod.2 for ; Fri, 07 Aug 2015 15:49:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=kcHnXjVFw4joxZlxBMyU9v1aPcOvtYOcu7+FZ/LnaeY=; b=J9V3frc9TCmcNF41JgmThtuLBajyXZJRfiBGCrenYg1rfcLC7A8GfjYPDugnvPdAX2 dAZRui3yNS0xncRISyVNpd4lnVqy4jT4h8Tki97BMl28gOj5AG18k6gasVb/6C+Ns4qw ggIU0WorfJx+A4cpAUzFruYw8LvfygHWk6ZcyToTUYYZIuEQ2n/q7Yq1Wif4O/GlsfK0 KbfI6UUotZFDR1xVtCvO2on9oJN0AtY41SUoY8EfWMzmaGzKC5H/5bBvNqNdXyI7ZL3y S3TLmJf52vO2N7YSgORdLQcC/W8DoQcOQo55uw7Ie0J0eeVJTbtqZ3+QAKtSuSW2cvJh 4ndA== X-Received: by 10.107.129.230 with SMTP id l99mr11107934ioi.32.1438987760166; Fri, 07 Aug 2015 15:49:20 -0700 (PDT) Original-Received: by 10.64.248.227 with HTTP; Fri, 7 Aug 2015 15:49:20 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c06::22b; country=US; region=Iowa; city=Council Bluffs; latitude=41.2619; longitude=-95.8608; http://maps.google.com/maps?q=41.2619,-95.8608&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01P1WNlNP - feb88cce272b - 20150808 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of fabrice1.couvreur@gmail.com designates 2607:f8b0:4001:c06::22b as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2607:f8b0:4001:c06::22b; envelope-from=; helo=mail-io0-x22b.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) 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:92263 Archived-At: --===============1341777141== Content-Type: multipart/alternative; boundary=001a113ecd6047eee0051cc072b2 --001a113ecd6047eee0051cc072b2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Why the text does not move in the first framedtext like the second framedtext ? Thank you. Fabrice \definecolor[MyColorB][c=3D0.00, m=3D0.62, y=3D1.00, k=3D0.00] \definecolor[MyColorA][.75(MyColorB,white)] \defineframedtext [MyText] [frame=3Doff, background=3DMyFrame, width=3D\textwidth, location=3Dright] \defineoverlay [MyFrame] [\useMPgraphic{MyFrame}] \definelabel [D=C3=A9finition] [headstyle=3D\bf\smallcaps] \startuseMPgraphic{MyFrame} path b ; picture p ; p :=3D textext.rt("\white\D=C3=A9finition") ; p :=3D p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeigh= t) ; b :=3D boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; fill OverlayBox withcolor \MPcolor{MyColorA} ; fill b withcolor \MPcolor{MyColorB} ; draw p ; \stopuseMPgraphic \starttext \startMyText \placefigure[right,none]{}{% \startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input knuth \stopMyText \startframedtext{ \placefigure[right,none]{}{% \startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input knuth} \stoptext --001a113ecd6047eee0051cc072b2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,
Why the text does not move in the first = framedtext like the <= span class=3D"hps">second
framedtext ?
Thank you.
Fabrice
\definecolor[MyColorB][c=3D= 0.00, m=3D0.62, y=3D1.00, k=3D0.00]
\definecolor[MyColorA][.75(MyColorB,= white)]=C2=A0

\defineframedtext
=C2=A0 [MyText]
=C2=A0 [frame= =3Doff,
=C2=A0=C2=A0 background=3DMyFrame,
=C2=A0=C2=A0 width=3D\text= width,
=C2=A0=C2=A0 location=3Dright]

\defineoverlay
=C2=A0 [M= yFrame]
=C2=A0 [\useMPgraphic{MyFrame}]

\definelabel
=C2=A0 [D= =C3=A9finition]
=C2=A0 [headstyle=3D\bf\smallcaps]

\startuseMPgra= phic{MyFrame}
=C2=A0=C2=A0=C2=A0 path b ;
=C2=A0=C2=A0=C2=A0 picture = p ;
=C2=A0=C2=A0=C2=A0 p :=3D textext.rt("\white\D=C3=A9finition&qu= ot;) ;
=C2=A0=C2=A0=C2=A0 p :=3D p shifted (2BodyFontSize,OverlayHeight= -ypart center p+.25ExHeight) ;
=C2=A0=C2=A0=C2=A0 b :=3D boundingbox p l= eftenlarged .5EmWidth rightenlarged .5EmWidth ;
=C2=A0=C2=A0=C2=A0 fill = OverlayBox withcolor \MPcolor{MyColorA} ;
=C2=A0=C2=A0=C2=A0 fill b with= color \MPcolor{MyColorB} ;
=C2=A0=C2=A0=C2=A0 draw p ;
\stopuseMPgrap= hic

\starttext
\startMyText
\placefigure[right,none]{}{%
= =C2=A0\startMPcode
=C2=A0 draw unitsquare scaled 2cm ;
=C2=A0 \stopMP= code}
\input knuth
\stopMyText

\startframedtext{
\placefigu= re[right,none]{}{%
=C2=A0\startMPcode
=C2=A0 draw unitsquare scaled 2= cm ;
=C2=A0 \stopMPcode}
\input knuth}

\stoptext

--001a113ecd6047eee0051cc072b2-- --===============1341777141== 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= --===============1341777141==--