Hi,
is it a bug or a feature?
-------------------------------------------
\defineoverlay[myhead][\uniqueMPgraphic{mphead}]
\startuniqueMPgraphic{mphead}
w := \overlaywidth;
h := \overlayheight;
path p;
p:= (0,.1w){left} .. {right}(0,0) .. (.5w,.2h) .. (w,0){right}
.. {left}(w,.1w);
%
draw p shifted (0,.1h);
draw p reflectedabout ((-infinity,0),(infinity,0));
draw boundingbox currentpicture;
\stopuniqueMPgraphic
\starttext
\framed[background=myhead]{BlaBlaBlubb}
\stoptext
-----------------------------------------------
If I remove the % sign, texexec gives me an error (runaway
argument).
By redifining
\def\handleuniqueMPgraphic#1#2#3%
[...]
to
\long\def\handleuniqueMP.....
it works ok. But I do not know if that has any side effects.
Viele Gr��e,
Patrick Gundlach
- I TeX, therefore I am -