From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92348 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 17:19:56 +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="===============0288447234==" X-Trace: ger.gmane.org 1439479274 19723 80.91.229.3 (13 Aug 2015 15:21:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Aug 2015 15:21:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 13 17:20:55 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 1ZPuJL-0004OQ-Ay for gctc-ntg-context-518@m.gmane.org; Thu, 13 Aug 2015 17:20:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 40F0B10218 for ; Thu, 13 Aug 2015 17:20:54 +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 DiCjKure1SWi for ; Thu, 13 Aug 2015 17:20:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 88C7510234 for ; Thu, 13 Aug 2015 17:20:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5640C101FA for ; Thu, 13 Aug 2015 17:20:03 +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 AIfRsWBDZAUt for ; Thu, 13 Aug 2015 17:20:00 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 6A631101E6 for ; Thu, 13 Aug 2015 17:20:00 +0200 (CEST) Original-Received: from mail-io0-x22e.google.com (mail-io0-x22e.google.com [IPv6:2607:f8b0:4001:c06::22e]) by filter5-til.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t7DFJvsG026670 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 13 Aug 2015 17:19:58 +0200 Original-Received: by iodt126 with SMTP id t126so55570709iod.2 for ; Thu, 13 Aug 2015 08:19:57 -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=LvJCfCv/gZwjcB3Bme1I069fH2p5DiSaMgjf/ZaabKM=; b=ZKLKqUQ9X4MDlxjlfL3rMOcZf0/Dqi4YfK0TXqmuanySQEx9CQuC8dvJzUmbsnmAV3 qSqGPPDB0qKJKpZ/tWoCYK0GRdl8OnsSEjbBtXVR3rxRq9y/YWJcRdbZ9WnVHiIAgftE ro112QyR+zsFOJmo9T1PB1NgsZNrnvVwI6h9SsPodguc35yWXp1sbPFzJ2SbNjJ08J9i dgqJRpPzD6VFZlPJqdCveXfSGowhG7GwBly3A1MEXESbHmOPD6WtsLkW9z2/A2mE997R vshzzGTX2tyQXpvXe9zTzyECJ1wK9sFrUnAmXsawsprHNix/QEskIXXw/7ZN5T5bGIUh qhVg== X-Received: by 10.107.12.84 with SMTP id w81mr12748392ioi.33.1439479196866; Thu, 13 Aug 2015 08:19:56 -0700 (PDT) Original-Received: by 10.64.208.36 with HTTP; Thu, 13 Aug 2015 08:19:56 -0700 (PDT) In-Reply-To: <310F8718-4C0E-4485-A8C1-CA7A33A6AF29@me.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c06::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: 0WP4fjWSv - 2364967fb6fb - 20150813 (trained as not-spam) Received-SPF: pass (filter5-til.mf.surf.net: domain of fabrice1.couvreur@gmail.com designates 2607:f8b0:4001:c06::22e as permitted sender) receiver=filter5-til.mf.surf.net; client-ip=2607:f8b0:4001:c06::22e; envelope-from=; helo=mail-io0-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:92348 Archived-At: --===============0288447234== Content-Type: multipart/alternative; boundary=001a113de96030dfa9051d32de6e --001a113de96030dfa9051d32de6e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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+.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 \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 center = 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 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 > > _________________________________________________________________________= __________ > --001a113de96030dfa9051d32de6e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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
=C2=A0 [state=3Dstart]

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

\defineframedtext
=C2=A0 [M= yText]
=C2=A0 [frame=3Doff,
=C2=A0=C2=A0 background=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=3Ditalic]

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

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

\star= tuseMPgraphic{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=A9fi= nition") ;
=C2=A0=C2=A0=C2=A0 p :=3D p shifted (2BodyFontSize,Over= layHeight-ypart center p+.25ExHeight) ;
=C2=A0=C2=A0=C2=A0 b :=3D boundi= ngbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ;
=C2=A0=C2=A0=C2= =A0 fill OverlayBox withcolor \MPcolor{MyColorA} ;
=C2=A0=C2=A0=C2=A0 fi= ll b withcolor \MPcolor{MyColorB} ;
=C2=A0=C2=A0=C2=A0 draw p ;
\stop= useMPgraphic

\starttext

\startMyText

\starthanging[loc= ation=3Dright]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {\startMPcode<= br>=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 xscal= ed 4cm yscaled 2cm ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 fill p withcolor=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 shifte= d (1cm, ypart center 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 pict= ure s ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 s :=3D te= xtext("\white 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 \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 <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-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-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
___________________________________________________________________________= ________

--001a113de96030dfa9051d32de6e-- --===============0288447234== 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= --===============0288447234==--