From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92512 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Space between both environments Date: Tue, 8 Sep 2015 18:29:35 +0200 Message-ID: References: <55EDDF41.4060503@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0072826181==" X-Trace: ger.gmane.org 1441729835 23014 80.91.229.3 (8 Sep 2015 16:30:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2015 16:30:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 08 18:30:20 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 1ZZLmk-0000OY-CW for gctc-ntg-context-518@m.gmane.org; Tue, 08 Sep 2015 18:30:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E1A710224 for ; Tue, 8 Sep 2015 18:30:17 +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 UPME23fO1Iyx for ; Tue, 8 Sep 2015 18:30:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 70E1210235 for ; Tue, 8 Sep 2015 18:29:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6A5B8101FB for ; Tue, 8 Sep 2015 18:29:39 +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 1xlq4GRGrhAL for ; Tue, 8 Sep 2015 18:29:38 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 5F083101E8 for ; Tue, 8 Sep 2015 18:29:38 +0200 (CEST) Original-Received: from mail-io0-x22e.google.com (mail-io0-x22e.google.com [IPv6:2607:f8b0:4001:c06::22e]) by filter3-utr.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t88GTaQ7011021 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 8 Sep 2015 18:29:37 +0200 Original-Received: by iofb144 with SMTP id b144so125058026iof.1 for ; Tue, 08 Sep 2015 09:29:35 -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=berKvmnNZCXAoAvNvUS7sin+PH9CYA/Q6M+//Bdivp8=; b=EWeBhK87Y2qJEinuzaGiTeLcK43XdTE9OPN6x4+XRwkvHgxysornU3/AEYxx3ZH5xp h29zEJ9X9Yq3Vw4b9LWuNr4KlTCAdtjwvoHBUGcZHd/HxFMe4n44GonYYFq3idhWSfOu 7LLQ4ZyWBjG2oH+dSrfTSElocoNEXUXCvKROsSznumgQJNNDnc5niUo2SBlYV+0SZnA4 6ICWoCr6TGAe8IeyKXOnviu8GFgNY2e5fOvfVQrjf1ausTqt1vRyWDdmy1+FHv3w4CUZ 060eFVef00xh4Ws/Y+Cl+BJpuyBUY81a5rFelScKNNFE0U30SOKrz2dKJYgHYtjuRUTJ KN9g== X-Received: by 10.107.6.139 with SMTP id f11mr40524100ioi.61.1441729775679; Tue, 08 Sep 2015 09:29:35 -0700 (PDT) Original-Received: by 10.64.236.2 with HTTP; Tue, 8 Sep 2015 09:29:35 -0700 (PDT) In-Reply-To: <55EDDF41.4060503@gmail.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: 08PeEtBhB - 87243a32c41d - 20150908 (trained as not-spam) Received-SPF: pass (filter3-utr.mf.surf.net: domain of fabrice1.couvreur@gmail.com designates 2607:f8b0:4001:c06::22e as permitted sender) receiver=filter3-utr.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:92512 Archived-At: --===============0072826181== Content-Type: multipart/alternative; boundary=001a113eeaea243c5d051f3edf66 --001a113eeaea243c5d051f3edf66 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, @Otared I accept your answer until I can not fix my code, thank you. @Woffgang I have to change the code (how ?) because I realize that the tex= t of the second environment exceeds the frame (if you draw it). 2015-09-07 21:02 GMT+02:00 Wolfgang Schuster : > Fabrice Couvreur > 7. September 2015 19:35 > Hi, > I can not insert a space between my two environments. > > There is a space but you can=E2=80=99t see it because the colored backgro= und of > your frames is placed too low (you can see it when you use "frame=3Don"). > > Thank you. > Fabrice > > % macros=3Dmkvi > > \setupcolors[state=3Dstart] > > > \definecolor[MyColorA][c=3D0.00, m=3D0.10, y=3D0.20, k=3D0.00] > > \definecolor[MyColorB][c=3D0.00, m=3D0.62, y=3D1.00, k=3D0.00] > > \definecolor[MyColorC][c=3D0.3, m=3D0.00, y=3D0.00, k=3D0.05] > > \definecolor[MyColorD][c=3D0.6, m=3D0.00, y=3D0.00, k=3D0.10] > > > \defineframedtext > [MyDefinition] > [before=3D{\blank}, > after=3D{\blank}, > 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 ; > > setbounds currentpicture to OverlayBox ; > > \stopuseMPgraphic > > Wolfgang > > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --001a113eeaea243c5d051f3edf66 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,
@Otared I a= ccept your answer until I can not fix my code, thank you.

@Woffgang=C2= =A0 I have to change the code (how ?) because I realize that the text of the second environment exceeds the frame (if you draw it).

2015-09-07 21:02 GMT+02:00 = Wolfgang Schuster <schuster.wolfgang@gmail.com>:
7.=20 September 2015 19:35
=
Hi,
I can not insert a space between my two environments.
There is a space but you can=E2=80=99t see it because the colored backgroun= d of=20 your frames is placed too low (you can see it when you use "frame=3Don= ").

Thank you.
Fabrice

% macros=3Dmkvi

\setupcolors[state=3Dstart]


\definecolor[M= yColorA][c=3D0.00, m=3D0.10, y=3D0.20, k=3D0.00]=C2=A0

\definecolor[MyColorB][c=3D0.0= 0, m=3D0.62, y=3D1.00, k=3D0.00]

\definecolor[MyColorC][c=3D0.3, m=3D0.00, y=3D0= .00,=20 k=3D0.05]

\definecolor[MyColorD][c=3D0.6, m=3D0.00, y=3D0.00, k=3D0.= 10]


\defineframedtext
=C2=A0 [MyDefinition]
=C2=A0 [before=3D{\blank},
=C2=A0=C2=A0 after=3D{\bla= nk},
=C2=A0=C2=A0=20 frame=3Doff,
=C2=A0=C2=A0 background=3DMyFrame,
=C2=A0=C2=A0 width=3D= \textwidth,
=C2=A0=C2=A0=20 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= =20 [D=C3=A9finition]
=C2=A0 [headstyle=3D\bf\smallcaps]

\startuseMPg= raphic{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 te= xtext.rt("\white\D=C3=A9finition") ;
=C2=A0=C2=A0=C2=A0 p :=3D p shifted (2BodyFontSize,OverlayHeight-ypa= rt center=20 p+.25ExHeight) ;
=C2=A0=C2=A0=C2=A0 b :=3D boundingbox p leftenlarged .5= EmWidth=20 rightenlarged .5EmWidth ;
=C2=A0=C2=A0=C2=A0 fill OverlayBox withcolor= =20 \MPcolor{MyColorA} ;
=C2=A0=C2=A0=C2=A0 fill b withcolor \MPcolor{MyColo= rB} ;
=C2=A0=C2=A0=C2=A0 draw p ;
=C2=A0=C2=A0=C2=A0 setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
Wolfgang

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

--001a113eeaea243c5d051f3edf66-- --===============0072826181== 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= --===============0072826181==--