Use a predefined command in a new environment
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
Am 29.04.2014 um 20:16 schrieb Fabrice
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 ?
Take a look into the metafun manual, it has a few examples for framed texts where the the enumeration title sits in a separate frame. Wolfgang
participants (2)
-
Fabrice
-
Wolfgang Schuster