From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95588 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Optimize code to create a environnementt with Metafun ? Date: Thu, 28 Jul 2016 15:36:01 +0200 Message-ID: <579A0A41.1030101@gmail.com> References: <59A277FC-973B-43DD-B7FB-3F48DDDE789B@me.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7827841851181483815==" X-Trace: ger.gmane.org 1469713040 29576 80.91.229.3 (28 Jul 2016 13:37:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2016 13:37:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 28 15:37:06 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 1bSlUh-000278-7o for gctc-ntg-context-518@m.gmane.org; Thu, 28 Jul 2016 15:36:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8B58B137C7; Thu, 28 Jul 2016 15:36:31 +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 KRVE8duCr59X; Thu, 28 Jul 2016 15:36:29 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id DF95B137C9; Thu, 28 Jul 2016 15:36:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8E42F137C7 for ; Thu, 28 Jul 2016 15:36:28 +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 dgtTSa3SOmjj for ; Thu, 28 Jul 2016 15:36:28 +0200 (CEST) Original-Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.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 01A84137C6 for ; Thu, 28 Jul 2016 15:36:17 +0200 (CEST) Original-Received: by mail-wm0-f53.google.com with SMTP id q128so252319217wma.1 for ; Thu, 28 Jul 2016 06:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=0MQOD64XK6/4G+ZAsp9uJ4IsNec9K7yz/ii/iCzOm6Q=; b=DmAEYqhUJ0Ektvn7p4sud/4LrAdF0slXj9Vw1exgUgHwRY/PQxE9N0roTAp7EGEXej 8iz4ZT00Lz/xsD5aHBUceqCgnHSXq67Y6c6kb8fCpAGb8tVvxEltLq3lM/Pc/g8NPj/e HTneOTMlGh9mshzSssoP3YiDh3H6in8TYnjayMzbpUpq77aKaUuBbQr0VXOz37qX1jXf hnMYAQI3+tyB0HyOD2ERCAtAa4PV6Jn1c789RwScPIIq1LCbMk0UEtVl3OD7rw+ByuVw 4OBhWr1lNdm+XyIl/7roi688cwwdiPug7QF03+In2QKVI6HkJ5kFHbmWtVvNq+jrXVRM ZSaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=0MQOD64XK6/4G+ZAsp9uJ4IsNec9K7yz/ii/iCzOm6Q=; b=lB8f4nU0S5vIN770ch6Pcx3ZNLQIYjoTweSTQx6SpQVAwerkWuqNXHOALPiEDiXUV3 c740vEcKGDA5E6Qgd/QS9q+h3R6TlcfmHjIx0FAy0jffdepFRQFJ5WAa4Ueqs4EyvhpM 3+0jK0Ad+TgeV84c/2bd10s0Rd3LEzW/ms9OQnTuBV64BbM//cHKMdlyqM636K2hHh3N Px7Pb+yqm1K/mtud4PYTtlemkVvzL3aDGlWeTLHVL9UY9GYTT+b0pYvqszjxtCDnOrNa mHuEUhJvaVshCUFha09NTfwAC9+y1qyidhJyX6YC4ypC49Rl/ogdff1IrKl00Z0Kmkqn DHuA== X-Gm-Message-State: AEkoouuWOuv+pREuieWL2DOSK0QHHeLgTT/ooT8qD47ispFfYJ8eYDFwEm5RFfVDRWFLcw== X-Received: by 10.194.102.72 with SMTP id fm8mr33693128wjb.50.1469712977241; Thu, 28 Jul 2016 06:36:17 -0700 (PDT) Original-Received: from keima.localdomain (x2f2c486.dyn.telefonica.de. [2.242.196.134]) by smtp.gmail.com with ESMTPSA id o142sm43587754wme.20.2016.07.28.06.36.16 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jul 2016 06:36:16 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <59A277FC-973B-43DD-B7FB-3F48DDDE789B@me.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:95588 Archived-At: This is a multi-part message in MIME format. --===============7827841851181483815== Content-Type: multipart/alternative; boundary="------------090708000008030702020501" This is a multi-part message in MIME format. --------------090708000008030702020501 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > 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 con= trol=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 end)= . Wolfgang --------------090708000008030702020501 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
28= .=20 Juli 2016 um 15:17
Dear=20 Fabrice and Wolfgang,

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

Thank you so much,

B= est=20 regards,

Dalyou= ng

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

\setupcolors[state=3Dstart]

\defineframedtext
=C2=A0[MyFrame]
=C2=A0[before=3D{\blank},=
=C2=A0 after=3D{\blank},
=C2=A0 frame=3Do= ff,
=C2=A0 background=3DMyFrame,
=C2=A0 %widt= h=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=20 textext.rt("\white\D=C3=A9finition");
p :=3D=20 textext.rt("\white\framedtextparamemter{Title}");
You have a extra "m" in \framedtextparameter (fourth letter from the=20 end).

Wolfgang
--------------090708000008030702020501-- --===============7827841851181483815== 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= --===============7827841851181483815==--