Hi,
Why the text does not move in the first framedtext like the second framedtext ?
Thank you.
Fabrice
\definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00]
\definecolor[MyColorA][.75(MyColorB,white)]
\defineframedtext
[MyText]
[frame=off,
background=MyFrame,
width=\textwidth,
location=right]
\defineoverlay
[MyFrame]
[\useMPgraphic{MyFrame}]
\definelabel
[Définition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
path b ;
picture p ;
p := textext.rt("\white\Définition") ;
p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight) ;
b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ;
fill OverlayBox withcolor \MPcolor{MyColorA} ;
fill b withcolor \MPcolor{MyColorB} ;
draw p ;
\stopuseMPgraphic
\starttext
\startMyText
\placefigure[right,none]{}{%
\startMPcode
draw unitsquare scaled 2cm ;
\stopMPcode}
\input knuth
\stopMyText
\startframedtext{
\placefigure[right,none]{}{%
\startMPcode
draw unitsquare scaled 2cm ;
\stopMPcode}
\input knuth}
\stoptext