Hello,
I would like to have three corners rounded as in the figure.
Thank you
Fabrice
\definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
\definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
\startuseMPgraphic{MyFrame}
path b ;
picture p ;
p := textext.rt("\bf\tfx\white\framedtextparameter{Title}") ;
p := p shifted (.3EmWidth,OverlayHeight-.6EmWidth) ;
b := boundingbox p enlarged .3EmWidth ;
fill OverlayBox withcolor \MPcolor{MyColorA} ;
fill b withcolor \MPcolor{MyColorB} ;
draw p ;
setbounds currentpicture to boundingbox currentpicture enlarged 2mm ;
\stopuseMPgraphic
\defineoverlay
[MyFrame]
[\useMPgraphic{MyFrame}]
\defineframedtext
[MyFrame]
[frame=off,
foregroundstyle={\switchtobodyfont[10pt]},
background=MyFrame,
align={verytolerant},
height=fit]
\definefloat
[recipe]
[figure]
\setupfloat
[recipe]
[default={right,none}]
\showframe
\starttext
\placerecipe{}
{\startMyFrame[Title=Info,width=10cm]
L'équivalent vingt pieds (EVP) est une unité de mesure de conteneurs
(de longueur courante 20 pieds, soit environ \unit{6,1 meter}).
1 EVP représente environ \unit{38,5 cubic meter}.
\stopMyFrame
}
\input knuth
\stoptext