From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89241 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Strange behavior of a macro with ConTeXt ver : 2014.11.12 9:46 p.m. MKIV beta Date: Sat, 15 Nov 2014 12:18:54 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1832013325==" X-Trace: ger.gmane.org 1416050372 12008 80.91.229.3 (15 Nov 2014 11:19:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Nov 2014 11:19:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 15 12:19:28 2014 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 1XpbO4-00049O-63 for gctc-ntg-context-518@m.gmane.org; Sat, 15 Nov 2014 12:19:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9CB161022E for ; Sat, 15 Nov 2014 12:19:27 +0100 (CET) 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 IMuUTVj7v38z for ; Sat, 15 Nov 2014 12:19:26 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3D4CF10235 for ; Sat, 15 Nov 2014 12:19:02 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 241DA101E7 for ; Sat, 15 Nov 2014 12:18:58 +0100 (CET) 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 jClPf_nU6dCF for ; Sat, 15 Nov 2014 12:18:57 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 5D0C1101E3 for ; Sat, 15 Nov 2014 12:18:57 +0100 (CET) Original-Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sAFBItKg019587 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 15 Nov 2014 12:18:56 +0100 Original-Received: by mail-ie0-f180.google.com with SMTP id rl12so4066733iec.39 for ; Sat, 15 Nov 2014 03:18:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=B57Vs4KizYRGCHg0YriXqrqDXSSuMul1EvC/r77rOjw=; b=vYeKfk3SJRAMRxm5v3R4FP5CXqzkMKR9/lK2fX0sic/TB6wq/CjTsf+WFc+SykpZlD Uv6Uv65QILhPqULv09nsNkoaHwTT0Ya0Ra8HfxZbqUbBSvioRKpAVf/yGH/IjrkU2PQY U/sSb55ImcosqftB+Cq7BCjrE6NJ1Woo4+89CEdCzYiwHUYQpqdoeQS7Wh9Rv7HaRaK8 kp+JIaa+gT0l+lrbr70h6brly0MH8LSKb8d2c++9nhzIzjjtzAPGIu41T8B2itqQkbMp glSGlBeV53BwMdIPl458sw/qTTzQ7uXYxXxk16Ru6cX4pi3jOBxzNR6S4dL/08Gx9C5V 4u8Q== X-Received: by 10.107.34.9 with SMTP id i9mr15953232ioi.33.1416050334903; Sat, 15 Nov 2014 03:18:54 -0800 (PST) Original-Received: by 10.50.3.69 with HTTP; Sat, 15 Nov 2014 03:18:54 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c03::234; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03NfLiU3R - 93eae3500317 - 20141115 (trained as not-spam) 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:89241 Archived-At: --===============1832013325== Content-Type: multipart/alternative; boundary=001a1140ed503234900507e3e9dc --001a1140ed503234900507e3e9dc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Macro written by Hans does not work. Best regards, Fabrice % macros=3Dmkvi \starttext \starttexdefinition MyOtherHeader #where #day #month #year #title \defineoverlay[whatever][\useMPgraphic{whatever}] \startuseMPgraphic{whatever} path p; p:=3Dfullsquare xyscaled (\overlaywidth,\overlayheight) squeezed 1pt; fill p withcolor white ; draw p withpen pencircle scaled 2pt withcolor 0.625white ; picture d ; d :=3D textext("\quad#where\space\endash\space\date[d=3D#day,m=3D#month,y=3D#year]= \quad") shifted .5[ulcorner p,urcorner p]; fill boundingbox d withcolor white ; draw d ; setbounds currentpicture to p ; \stopuseMPgraphic \framed [ width=3D\hsize, height=3D5em, foregroundstyle=3D\itx, Background=3Dwhatever, frame=3Doff, ] {#title } \stoptexdefinition \MyOtherHeader{Premi=C3=A8res STMGB-STMGD}{17}{11}{2014}{{\ss \tfb \bf Seco= nd degr=C3=A9 : r=C3=A9solution d'une =C3=A9quation du second degr=C3=A9}} \stoptext --001a1140ed503234900507e3e9dc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
<= br> Hi,
Macro written by Hans does not work.
Best regards,
Fabrice

% macros=3Dmkvi
\starttext

\start= texdefinition MyOtherHeader #where #day #month #year #title

\define= overlay[whatever][\useMPgraphic{whatever}]

\startuseMPgraphic{whatev= er}
=C2=A0path p;
=C2=A0p:=3Dfullsquare xyscaled (\overlaywidth,\over= layheight) squeezed 1pt;
=C2=A0fill p withcolor white ;
=C2=A0draw p = withpen pencircle scaled 2pt withcolor 0.625white ;
=C2=A0picture d ;=C2=A0d :=3D textext("\quad#where\space\endash\space\date[d=3D#day,m= =3D#month,y=3D#year]\quad")
=C2=A0shifted .5[ulcorner p,urcorner p]= ;
=C2=A0fill boundingbox d withcolor white ; draw d ;
setbounds curre= ntpicture to p ;
\stopuseMPgraphic

\framed [
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 width=3D\hsize,
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 height=3D5em,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= foregroundstyle=3D\itx,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Back= ground=3Dwhatever,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 frame=3Dof= f,
=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 {#title
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 }

\stoptexdefinition

\MyOtherHeader{Pre= mi=C3=A8res STMGB-STMGD}{17}{11}{2014}{{\ss \tfb \bf Second degr=C3=A9 : r= =C3=A9solution d'une =C3=A9quation du second degr=C3=A9}}

\stopt= ext

--001a1140ed503234900507e3e9dc-- --===============1832013325== 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= --===============1832013325==--