From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92352 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Text around a figure in a framedtext Date: Thu, 13 Aug 2015 23:56:13 +0200 Message-ID: References: <310F8718-4C0E-4485-A8C1-CA7A33A6AF29@me.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0096761063==" X-Trace: ger.gmane.org 1439503035 18627 80.91.229.3 (13 Aug 2015 21:57:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Aug 2015 21:57:15 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 13 23:57:03 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 1ZQ0Ug-0005jT-1G for gctc-ntg-context-518@m.gmane.org; Thu, 13 Aug 2015 23:57:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2E3951022E for ; Thu, 13 Aug 2015 23:57:01 +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 rqyAztVJMmov for ; Thu, 13 Aug 2015 23:56:59 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4AEE410233 for ; Thu, 13 Aug 2015 23:56:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 589DB101F7 for ; Thu, 13 Aug 2015 23:56:23 +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 ebeIT693WsFm for ; Thu, 13 Aug 2015 23:56:21 +0200 (CEST) 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 C008C101E6 for ; Thu, 13 Aug 2015 23:56:16 +0200 (CEST) Original-Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::22e]) by filter3-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t7DLuE7B001460 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 13 Aug 2015 23:56:15 +0200 Original-Received: by igfj19 with SMTP id j19so533879igf.0 for ; Thu, 13 Aug 2015 14:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=pCGSgUV6sApLYi7zcq+aqq27uv0/erbTlyoaC3TFHF0=; b=s4lfbud60A64cCMEGLKFE2l1wj+a0KoE+964zWO8vcz2VghtMA9AUZc2HMidaOMrxJ BhTlDg9k6gAuHDEAAZH0zY8rPWOXVOpf7aBDcCFzjckmrslOiLkhaT6LP+zM02lRX8HV Ae6hG6myYSgrhCtrGWI8WnyGIRnTD8VKG6ROlFG3Kf/J4oiEjNIVMKNXB4RQdAxNUhJb 0dX/0K7rGOccMw+ZqzRNE0iWpUqYahV34bvidkJo/ZSQFD9RePFugfPnvLtxRer6uckK LCWKe/VKt6KzUenuG9k+8xBYSvgmT6F8EcfNC3EWfcN0PPv50Ia1jdN13d5mxYn4pA+8 OPow== X-Received: by 10.50.97.33 with SMTP id dx1mr29816838igb.1.1439502973826; Thu, 13 Aug 2015 14:56:13 -0700 (PDT) Original-Received: by 10.64.208.36 with HTTP; Thu, 13 Aug 2015 14:56:13 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c05::22e; 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: 03P4lUfp2 - dfbd3706cb81 - 20150813 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of fabrice1.couvreur@gmail.com designates 2607:f8b0:4001:c05::22e as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2607:f8b0:4001:c05::22e; envelope-from=; helo=mail-ig0-x22e.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:92352 Archived-At: --===============0096761063== Content-Type: multipart/alternative; boundary=047d7b10c889687b87051d38679c --047d7b10c889687b87051d38679c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Well, I think I have solved the problem : it is because of the blank line. Why ? Fabrice 2015-08-13 17:19 GMT+02:00 Fabrice Couvreur : > Hi, > Sorry to revive this discussion (which I initiated), but the text in the > following code does not wrapped around the figure. > Why ? > Fabrice > > > \setupcolors > [state=3Dstart] > > \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, > height=3Dfit, > location=3Dleft, > style=3Ditalic] > > \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+.25ExHeight) ; > b :=3D boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; > fill OverlayBox withcolor \MPcolor{MyColorA} ; > fill b withcolor \MPcolor{MyColorB} ; > draw p ; > \stopuseMPgraphic > > \starttext > > \startMyText > > \starthanging[location=3Dright] > {\startMPcode > path p ; > p :=3D fullcircle xscaled 4cm yscaled 2cm ; > fill p withcolor cmyk(0,0.62,1,0) ; > path q ; q :=3D fullcircle scaled 1cm shifted (1cm, ypart cente= r > p) ; > fill q withcolor blue ; > picture r ; > r :=3D textext("\white E")shifted (-0.75cm,ypart center p) ; > picture s ; > s :=3D textext("\white A")shifted (1cm, ypart center p) ; > draw r ; > draw s ; > draw p ; > draw q ; > \stopMPcode} > Soit A une partie d'un ensemble E. > > Si $n_E$ et $n_A$ sont respectivement les nombres d'=C3=A9l=C3=A9ments de= E et de A, > la {\bi proportion} des =C3=A9l=C3=A9ments de A dans E est le quotient > $p=3D\frac{n_A}{n_E}$. > \stophanging > > \stopMyText > > > 2015-08-10 1:11 GMT+02:00 Jeong Dal : > >> Dear Otared and Wolfgang, >> >> It works fine after replacing the text itself. >> Thank you for the info. >> >> Best regards, >> >> Dalyoung >> >> >> ________________________________________________________________________= ___________ >> If your question is of interest to others as well, please add an entry t= o >> 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 >> >> ________________________________________________________________________= ___________ >> > > --047d7b10c889687b87051d38679c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
<= span id=3D"result_box" class=3D"" lang=3D"en">Hi,
Well, I think I have solved the problem : it is because of the blank line.
<= span class=3D"hps">Why ?
Fabrice

2015-08-13 17:19 GMT+02:00 Fabrice = Couvreur <fabrice1.couvreur@gmail.com>:
Hi,
Sorry to revive
this discussion (which I initiated
), but the text in the fol= lowing code does not wrapped around the figure.Why ?
Fabrice


\setupcolors
=C2=A0 [state=3Dstart]

\definecolor[MyColorB][c=3D0.00, m=3D0.62, y=3D1.00, k=3D= 0.00]
\definecolor[MyColorA][.75(MyColorB,white)]=C2=A0

\definef= ramedtext
=C2=A0 [MyText]
=C2=A0 [frame=3Doff,
=C2=A0=C2=A0 backgr= ound=3DMyFrame,
=C2=A0=C2=A0 width=3D\textwidth,
=C2=A0=C2=A0 = height=3Dfit,
=C2=A0=C2=A0 location=3Dleft,
=C2=A0=C2=A0 style=3Dital= ic]

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

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

\startuseMPgraphic{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") ;
=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 leftenlarged .5= EmWidth rightenlarged .5EmWidth ;
=C2=A0=C2=A0=C2=A0 fill OverlayBox wit= hcolor \MPcolor{MyColorA} ;
=C2=A0=C2=A0=C2=A0 fill b withcolor \MPcolor= {MyColorB} ;
=C2=A0=C2=A0=C2=A0 draw p ;
\stopuseMPgraphic

\st= arttext

\startMyText

\starthanging[location=3Dright]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {\startMPcode
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 path p ;
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 p :=3D fullcircle xscaled 4cm yscaled = 2cm ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fill p with= color=C2=A0 cmyk(0,0.62,1,0) ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 path q ; q :=3D fullcircle scaled 1cm shifted (1cm, ypart c= enter p) ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 fill q= withcolor blue ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= picture r ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r := =3D textext("\white E")shifted (-0.75cm,ypart center p) ;
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 picture s ;
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 s :=3D textext("\whit= e A")shifted (1cm, ypart center p) ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 draw r ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 draw s ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 draw p ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 draw q ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \sto= pMPcode}
Soit A une partie d'un ensemble E.

Si $n_E$ et $n_A$= sont respectivement les nombres d'=C3=A9l=C3=A9ments de E et de A, la = {\bi proportion} des =C3=A9l=C3=A9ments de A dans E est le quotient $p=3D\f= rac{n_A}{n_E}$.
\stophanging

\stopMyText


2015-08-10 1:11 = GMT+02:00 Jeong Dal <haksan@me.com>:
Dear Otared and Wolfgang,

It works fine after replacing the text itself.
Thank you for the info.

Best regards,

Dalyoung

___________________________________________________________________________= ________
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
___________________________________________________________________________= ________


--047d7b10c889687b87051d38679c-- --===============0096761063== 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= --===============0096761063==--