Strange behavior of a macro with ConTeXt ver : 2014.11.12 9:46 p.m. MKIV beta
![](https://secure.gravatar.com/avatar/d7c3317235884569312c31f786d43bbc.jpg?s=120&d=mm&r=g)
Hi, Macro written by Hans does not work. Best regards, Fabrice % macros=mkvi \starttext \starttexdefinition MyOtherHeader #where #day #month #year #title \defineoverlay[whatever][\useMPgraphic{whatever}] \startuseMPgraphic{whatever} path p; p:=fullsquare xyscaled (\overlaywidth,\overlayheight) squeezed 1pt; fill p withcolor white ; draw p withpen pencircle scaled 2pt withcolor 0.625white ; picture d ; d := textext("\quad#where\space\endash\space\date[d=#day,m=#month,y=#year]\quad") shifted .5[ulcorner p,urcorner p]; fill boundingbox d withcolor white ; draw d ; setbounds currentpicture to p ; \stopuseMPgraphic \framed [ width=\hsize, height=5em, foregroundstyle=\itx, Background=whatever, frame=off, ] {#title } \stoptexdefinition \MyOtherHeader{Premières STMGB-STMGD}{17}{11}{2014}{{\ss \tfb \bf Second degré : résolution d'une équation du second degré}} \stoptext
![](https://secure.gravatar.com/avatar/23fd5fd7c9582675882a5336e1927a44.jpg?s=120&d=mm&r=g)
HiRik, Sorry, I do not know how I could replace "b" with "B"! I did not think to check because this macro worked very well so far Thank you, Fabrice
participants (3)
-
Fabrice
-
Fabrice Couvreur
-
Rik Kabel