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