Hi, 1. In the following code, the color is not included in the \startframedtext \stopframedtext environment
2. How can the height of the red square adapts to the height of the text ? 3. Can we improve the code ? Best regards, Fabrice \setupcolors[state=start] \definecolor[mycolor][c=0.00, m=0.10, y=0.20, k=0.00] \defineenumeration [definition] [text={\blue DÉFINITION : }, headstyle={\bf\feature[+][f:smallcaps]}, headcommand={ \startMPcode u:=0.3cm; filldraw (0,0)--(1u,0)--(1u,1u)--(0,1u)--cycle withcolor red ; \stopMPcode}, width=fit, alternative=top, title=yes, titleright=, titleleft=, before={\startframedtext[width=\textwidth,frame=off,background=color,backgroundcolor=\MPcolor{mycolor}]}, after={\stopframedtext}] \starttext \startdefinition{\red Expérience aléatoire} Une {\bf expérience aléatoire} est une expérience renouvelable dont les résultats possibles sont connus sans qu'on puisse déterminer lequel sera réalisé. \stopdefinition \stoptext
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________