From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95592 Path: news.gmane.org!not-for-mail From: Jean-Pierre Delange Newsgroups: gmane.comp.tex.context Subject: Re: Optimize code to create a environnementt with Metafun ? Date: Thu, 28 Jul 2016 18:08:22 +0200 Message-ID: <50732f2e-1bf9-5df6-1e72-dcf84556900b@free.fr> References: <59A277FC-973B-43DD-B7FB-3F48DDDE789B@me.com> <579A0A41.1030101@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5787581690165699959==" X-Trace: ger.gmane.org 1469722151 10834 80.91.229.3 (28 Jul 2016 16:09:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2016 16:09:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 28 18:09:00 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bSnrm-0004sh-Lv for gctc-ntg-context-518@m.gmane.org; Thu, 28 Jul 2016 18:08:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 72B1C1378E; Thu, 28 Jul 2016 18:08:41 +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 MS6OpJd6jAd7; Thu, 28 Jul 2016 18:08:40 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 9D59F13791; Thu, 28 Jul 2016 18:08:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C1E7C1378F for ; Thu, 28 Jul 2016 18:08:38 +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 5gL0LEQXY97I for ; Thu, 28 Jul 2016 18:08:37 +0200 (CEST) Original-Received: from smtp2-g21.free.fr (smtp2-g21.free.fr [212.27.42.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A6F731378E for ; Thu, 28 Jul 2016 18:08:27 +0200 (CEST) Original-Received: from [192.168.0.11] (unknown [78.208.237.21]) by smtp2-g21.free.fr (Postfix) with ESMTP id B92D02003EA for ; Thu, 28 Jul 2016 16:02:48 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 In-Reply-To: <579A0A41.1030101@gmail.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:95592 Archived-At: This is a multi-part message in MIME format. --===============5787581690165699959== Content-Type: multipart/alternative; boundary="------------D86FF18C0472D2D91673929C" This is a multi-part message in MIME format. --------------D86FF18C0472D2D91673929C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable This frame seems very nice in order to use it as a summary, or a=20 chapter's conclusion. Thank you Fabrice, Wolfgang and Dalyoung ! Le 28/07/2016 =C3=A0 15:36, Wolfgang Schuster a =C3=A9crit : >> Jeong Dal >> 28. Juli 2016 um 15:17 >> Dear Fabrice and Wolfgang, >> >> I tried the following code of yours, but I got =E2=80=9C! undefined co= ntrol=20 >> sequence=E2=80=9D error. >> Would you please tell me where I should to correct? >> >> Thank you so much, >> >> Best regards, >> >> Dalyoung >> >> %%%%%%%%%%%%%%% >> \setupbodyfont[pagella,11pt] >> >> \setupcolors[state=3Dstart] >> >> \defineframedtext >> [MyFrame] >> [before=3D{\blank}, >> after=3D{\blank}, >> frame=3Doff, >> background=3DMyFrame, >> %width=3D\textwidth, >> width=3Dmax, >> height=3Dfit, >> style=3Ditalic] >> >> \definelabel >> [D=C3=A9finition] >> [headstyle=3D\bf\smallcaps] >> >> \startuseMPgraphic{MyFrame} >> path b; >> picture p; >> %p :=3D textext.rt("\white\D=C3=A9finition"); >> p :=3D textext.rt("\white\framedtextparamemter{Title}"); > You have a extra "m" in \framedtextparameter (fourth letter from the en= d). > > 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 > _______________________________________________________________________= ____________ --------------D86FF18C0472D2D91673929C Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

This frame seems very nice in order to use it as a summary, or a chapter's conclusion.

Thank you Fabrice, Wolfgang and Dalyoung !


Le 28/07/2016 =C3=A0 15:36, Wolfgang Schuster a =C3=A9crit=C2=A0:
28. Juli 2016 um 15:17
Dear Fabrice and Wolfgang,

I tried the following code of yours, but I got =E2=80=9C! undefined control sequence=E2=80=9D error.
Would you please tell me where I should to correct?

Thank you so much,

Best regards,

Dalyoung

%%%%%%%%%%%%%%%
\setupbodyfont[pagella,11pt]

\setupcolors[state=3Dstart]

\defineframedtext
=C2=A0[MyFrame]
=C2=A0[before=3D{\blank},
=C2=A0 after=3D{\blank},
=C2=A0 frame=3Doff,
=C2=A0 background=3DMyFrame,
=C2=A0 %width=3D\textwidth,
=C2=A0 width=3Dmax,
=C2=A0 height=3Dfit,
=C2=A0 style=3Ditalic]

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

\startuseMPgraphic{MyFrame}
path b;
picture p;
%p :=3D textext.rt("\white\D=C3=A9finition");=
p :=3D textext.rt("\white\framedtextparamemter{Title}");
You have a extra "m" in \framedtextparameter (fourth letter from the end).

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/m=
ailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextre=
v/
wiki     : http://contextgarden.net
_________________________________________________________________________=
__________

--------------D86FF18C0472D2D91673929C-- --===============5787581690165699959== 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= --===============5787581690165699959==--