Hello, How to make the numbering is in the frame and red ? \defineenumeration [ac] [text={ \inframed[frame=off, width=fit, align={right}, background=color, backgroundcolor=lightgray]{Activité}}, headstyle={\bf\feature[+][f:smallcaps]}, width=fit, stopper={.}, alternative=left, ] \starttext \startac Tirage dans une urne \stopac \stoptext thank you, Fabrice
Am 27.04.2014 um 13:28 schrieb Fabrice Couvreur
Hello, How to make the numbering is in the frame and red ?
\defineenumeration [ac] [text={ \inframed[frame=off, width=fit, align={right}, background=color, backgroundcolor=lightgray]{Activité}}, headstyle={\bf\feature[+][f:smallcaps]}, width=fit, stopper={.}, alternative=left, ] \starttext \startac Tirage dans une urne \stopac \stoptext
\defineframed [ACFRAME] [frame=off, width=fit, align=flushleft, location=low, background=color, backgroundcolor=lightgray] \defineenumeration [ac] [text={Activité}, headstyle={\bf\feature[+][f:smallcaps]}, headcommand=\ACFRAME, numberconversionset=ACCONVERSION, width=fit, stopper={.}, alternative=left] \defineprocessor[ACPROCESSOR][color=red] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \setupbodyfont[pagella] \starttext \startac Tirage dans une urne \stopac \stoptext When you want the period after the number in red too remove the stopper setting from \defineenumeration and change the processor definition to \defineprocessor[ACPROCESSOR][color=red,command=\groupedcommand{}{.}] Wolfgang
Hi Wolfgang, As usual, the result is what I wanted to do. But before asking this question, I tried to find documentation on the counters with ConTeXt, and I found nothing. Fabrice
participants (3)
-
Fabrice
-
Fabrice Couvreur
-
Wolfgang Schuster