This frame seems very nice in order to use it as a summary, or a chapter's conclusion.

Thank you Fabrice, Wolfgang and Dalyoung !


Le 28/07/2016 à 15:36, Wolfgang Schuster a écrit :
Jeong Dal
28. Juli 2016 um 15:17
Dear Fabrice and Wolfgang,

I tried the following code of yours, but I got “! undefined control sequence” error.
Would you please tell me where I should to correct?

Thank you so much,

Best regards,

Dalyoung

%%%%%%%%%%%%%%%
\setupbodyfont[pagella,11pt]

\setupcolors[state=start]

\defineframedtext
 [MyFrame]
 [before={\blank},
  after={\blank},
  frame=off,
  background=MyFrame,
  %width=\textwidth,
  width=max,
  height=fit,
  style=italic]

\definelabel
 [Définition]
 [headstyle=\bf\smallcaps]

\startuseMPgraphic{MyFrame}
path b;
picture p;
%p := textext.rt("\white\Définition");
p := textext.rt("\white\framedtextparamemter{Title}");
You have a extra "m" in \framedtextparameter (fourth letter from the end).

Wolfgang


___________________________________________________________________________________
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
___________________________________________________________________________________