29 Apr
2014
29 Apr
'14
8:16 p.m.
Hello, Further to the discussion topic "Numbering in a frame with a new environment" I want to use ACFRAME (thanks Wolfgang) command in a new environment. Is this the best way to achieve this ? thank you, Fabrice
\defineframed [ACFRAME] [frame=off, width=fit, align=flushleft, location=low, background=color, backgroundcolor=lightgray]
\setupbodyfont[pagella,11pt]
\definetextbackground [definitionframe] [command=\ACFRAME, backgroundoffset=.25cm, offset=.5cm, frame=off, location=paragraph, frame=off,]
\defineenumeration [defi] [text=Définition, before={\startdefinitionframe}, after={\stopdefinitionframe}, style=italic, stopper=, ] \starttext
\startdefi \input knuth \stopdefi \stoptext