From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95856 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Question about \startcombination \stopcombination Date: Thu, 18 Aug 2016 20:15:08 +0200 Message-ID: References: <9eecfcfc-8826-6b57-1105-62d993a1c3f9@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5075252090489926829==" X-Trace: blaine.gmane.org 1471544296 2778 195.159.176.226 (18 Aug 2016 18:18:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Aug 2016 18:18:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 18 20:18:12 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1baRtL-0000Sy-9H for gctc-ntg-context-518@m.gmane.org; Thu, 18 Aug 2016 20:18:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CC0AD1520D; Thu, 18 Aug 2016 20:15:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id scLJbXdAe3pu; Thu, 18 Aug 2016 20:15:22 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 015E815219; Thu, 18 Aug 2016 20:15:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 740D715215 for ; Thu, 18 Aug 2016 20:15:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T_czMTwQEa-Q for ; Thu, 18 Aug 2016 20:15:20 +0200 (CEST) Original-Received: from mail-it0-f53.google.com (mail-it0-f53.google.com [209.85.214.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 459491520D for ; Thu, 18 Aug 2016 20:15:10 +0200 (CEST) Original-Received: by mail-it0-f53.google.com with SMTP id e63so5564698ith.1 for ; Thu, 18 Aug 2016 11:15:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=NKqRYFi2wVOOffFfAQ5jYrU6Qd017sj6eTaEzURqgwA=; b=eQBn9K1CHrl+hou+F9kH3S5WwuJB8NaUnFVE68HoxOvXhy1KoGHXYilHmbsDH+yWLX icUv095PBN2tE7aJhvbg25bylZwHj9NwHUp+TTScESn4fg68macqTxQgBJvQJsTt+pqy v38QTK+4mRL/P+t9zu1THy6fkWULzdBLJoeh0CbaqgzOYTPxWV3sSZh1mS3owIHkAwgy kLjpN9ipqtfQXMbLvMEMcseo9DI7gWdD2LuVq9wZeM53DYnZKju+w/lqasSvFlH1XvSC B3nJyGv3hGffH4+U9kRJlzwlgt3m4mVFvQ8B3AW6hv3zYyueYEphZwmlSVYRCRPg+/ML ausg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=NKqRYFi2wVOOffFfAQ5jYrU6Qd017sj6eTaEzURqgwA=; b=aeLXHiXmpyjH73gFqBrc4gzA2jSHsB/ts8SOXL6hKgMaceiB/ymTpFExahiE6APn7h XwzhstUJdgJrTp/yWPYcNzIGJnzkt769+1sOgJYcCtWM16e0nT/JKrHE0OWV6uxSuxzx Tyd50HeU83peSn1px/o5sVw6p8VcL0Ic3Chxnfld+z54YdUMGyNF4a+5LXzlYh+cTb0P SbyV5IL5WfmuEfHgDnXfkCFjABd7v+gmxWV4Ca/GMYSNSPCU0quv50e/86JqET3PyiHt fpm2KiorvCQID7DcnF8MOTyHx0Ejam/3tf3piiAoBYt0dZm3TK7JPLrilbUdYzX2xS/7 b3uw== X-Gm-Message-State: AEkoouv2gDV5orrRwdkt4HUWDhr2Z4xX0gwuNU8k8HQLdeoQ8lyuBsgeHSyScHCwF1oVWW3Qxol7V7r9Hc8ESQ== X-Received: by 10.36.14.78 with SMTP id 75mr1105409ite.98.1471544108660; Thu, 18 Aug 2016 11:15:08 -0700 (PDT) Original-Received: by 10.64.71.4 with HTTP; Thu, 18 Aug 2016 11:15:08 -0700 (PDT) In-Reply-To: <9eecfcfc-8826-6b57-1105-62d993a1c3f9@wxs.nl> 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:95856 Archived-At: --===============5075252090489926829== Content-Type: multipart/alternative; boundary=001a1143e752de3e6c053a5c8f45 --001a1143e752de3e6c053a5c8f45 Content-Type: text/plain; charset=UTF-8 Hi Hans Thank you, I do not know. Fabrice 2016-08-18 19:46 GMT+02:00 Hans Hagen : > On 8/18/2016 7:12 PM, Fabrice Couvreur wrote: > >> Hello, >> The use of \startcombination ... \stopcombination does not work with my >> environment, I do not get all framed but only two and four >> Thank you >> Fabrice >> >> ######################################################### >> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] >> >> \defineframedtext >> [MyFrame] >> [before={\blank}, >> after={\blank}, >> frame=off, >> background=MyFrame, >> width=6cm, >> height=fit, >> style=small] >> >> \startuseMPgraphic{MyFrame} >> path b; >> picture p; >> p := textext.rt("\tfx\white\framedtextparameter{Title}"); >> p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight); >> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; >> fill OverlayBox withcolor \MPcolor{MyColorA}; >> fill b withcolor darkred ; >> draw p; >> setbounds currentpicture to boundingbox currentpicture enlarged 2mm ; >> \stopuseMPgraphic >> >> \defineoverlay >> [MyFrame] >> [\useMPgraphic{MyFrame}] >> >> \starttext >> >> \startlinecorrection[blank] >> \startmidaligned >> \startcombination[2*2] >> {\startMyFrame[Title=ALGO A] >> One >> \stopMyFrame}{} >> {\startMyFrame[Title=ALGO B] >> Two >> \stopMyFrame}{} >> {\startMyFrame[Title=ALGO C] >> Three >> \stopMyFrame}{} >> {\startMyFrame[Title=ALGO D] >> Four >> \stopMyFrame}{} >> \stopcombination >> \stopmidaligned >> \stoplinecorrection >> >> \stoptext >> ######################################################### >> > > \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784] > > \defineframedtext > [MyFrame] > [frame=off, > background=MyFrame, > width=6cm, > height=fit, > style=small] > > \startuseMPgraphic{MyFrame} > path b; > picture p; > p := textext.rt("\tfx\white\framedtextparameter{Title}"); > p := p shifted (2BodyFontSize,OverlayHeight-ypart center > p+.25ExHeight); > b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; > fill OverlayBox withcolor "MyColorA" ; > fill b withcolor darkred ; > draw p ; > setbounds currentpicture to boundingbox currentpicture enlarged 2mm ; > \stopuseMPgraphic > > \defineoverlay > [MyFrame] > [\useMPgraphic{MyFrame}] > > \starttext > > \startcombination[2*2] > {\MyFrame[Title=ALGO A]{One}} {} > {\MyFrame[Title=ALGO B]{Two}} {} > {\MyFrame[Title=ALGO C]{Three}} {} > {\MyFrame[Title=ALGO D]{Four}} {} > \stopcombination > > \stoptext > > the start/stop variant ignores the width > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > ____________________________________________________________ > _______________________ > 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/list > info/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ --001a1143e752de3e6c053a5c8f45 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Hans
Thank you, I do not know.
=
Fabrice

2016-08-18 19:46 GMT+02:00 Hans Hagen <pragma@wxs.nl>:
On= 8/18/2016 7:12 PM, Fabrice Couvreur wrote:
Hello,
The use of \startcombination ... \stopcombination does not work with my
environment, I do not get all framed but only two and four
Thank you
Fabrice

#########################################################
\definecolor[MyColorA][r=3D0.8784, g=3D0.8784, b=3D0.8784]

\defineframedtext
=C2=A0 [MyFrame]
=C2=A0 [before=3D{\blank},
=C2=A0 =C2=A0after=3D{\blank},
=C2=A0 =C2=A0frame=3Doff,
=C2=A0 =C2=A0background=3DMyFrame,
=C2=A0 =C2=A0width=3D6cm,
=C2=A0 =C2=A0height=3Dfit,
=C2=A0 =C2=A0style=3Dsmall]

\startuseMPgraphic{MyFrame}
=C2=A0path b;
=C2=A0picture p;
=C2=A0p :=3D textext.rt("\tfx\white\framedtextparameter{Title}&qu= ot;);
=C2=A0p :=3D p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25= ExHeight);
=C2=A0b :=3D boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ;=
=C2=A0fill OverlayBox withcolor \MPcolor{MyColorA};
=C2=A0fill b withcolor darkred ;
=C2=A0draw p;
=C2=A0setbounds currentpicture to boundingbox currentpicture enlarged 2mm ;=
\stopuseMPgraphic

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

\starttext

\startlinecorrection[blank]
\startmidaligned
\startcombination[2*2]
{\startMyFrame[Title=3DALGO A]
=C2=A0One
=C2=A0\stopMyFrame}{}
{\startMyFrame[Title=3DALGO B]
Two
\stopMyFrame}{}
{\startMyFrame[Title=3DALGO C]
Three
\stopMyFrame}{}
{\startMyFrame[Title=3DALGO D]
Four
\stopMyFrame}{}
\stopcombination
\stopmidaligned
\stoplinecorrection

\stoptext
#########################################################

\definecolor[MyColorA][r=3D0.8784, g=3D0.8784, b=3D0.8784]

\defineframedtext
=C2=A0 [MyFrame]
=C2=A0 [frame=3Doff,
=C2=A0 =C2=A0background=3DMyFrame,
=C2=A0 =C2=A0width=3D6cm,
=C2=A0 =C2=A0height=3Dfit,
=C2=A0 =C2=A0style=3Dsmall]

\startuseMPgraphic{MyFrame}
=C2=A0 =C2=A0 path b;
=C2=A0 =C2=A0 picture p;
=C2=A0 =C2=A0 p :=3D textext.rt("\tfx\white\framedtextparameter{T= itle}");
=C2=A0 =C2=A0 p :=3D p shifted (2BodyFontSize,OverlayHeight-ypart cent= er p+.25ExHeight);
=C2=A0 =C2=A0 b :=3D boundingbox p leftenlarged .5EmWidth rightenlarged .5E= mWidth ;
=C2=A0 =C2=A0 fill OverlayBox withcolor "MyColorA" ;
=C2=A0 =C2=A0 fill b withcolor darkred ;
=C2=A0 =C2=A0 draw p ;
=C2=A0 =C2=A0 setbounds currentpicture to boundingbox currentpicture enlarg= ed 2mm ;
\stopuseMPgraphic

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

\starttext

=C2=A0 =C2=A0 \startcombination[2*2]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 {\MyFrame[Title=3DALGO A]{One}}=C2=A0 =C2=A0{}<= br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 {\MyFrame[Title=3DALGO B]{Two}}=C2=A0 =C2=A0{}<= br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 {\MyFrame[Title=3DALGO C]{Three}} {}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 {\MyFrame[Title=3DALGO D]{Four}}=C2=A0 {}
=C2=A0 =C2=A0 \stopcombination

\stoptext

the start/stop variant ignores the width

-----------------------------------------------------------------=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 H= ans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 8061 GH = Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0tel: 038 477 53 69 | www.pragma-ade.nl | www.p= ragma-pod.nl
-----------------------------------------------------------------=
_________________________________________________________________= __________________
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/listin= fo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/project= s/contextrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--001a1143e752de3e6c053a5c8f45-- --===============5075252090489926829== 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= --===============5075252090489926829==--