[NTG-context] Some problems with a new style for the sections

Fabrice Couvreur fabrice1.couvreur at gmail.com
Sun May 4 13:21:16 CEST 2014


Hi,
I encounter two problems :
- Section numbers are not red ;
- Calling the second section does not cause the creation of a new paragraph.
Regards,
Fabrice

\setupcolors[state=start]
\def\MySectionCommand#1#2%
  {\framed
     [frame=off,
      width=\textwidth,
      align={right},
      background=color,
      backgroundcolor=lightgray]
     {#1\quad#2}}

\setuphead[section][command=\MySectionCommand,numbercolor=red]

\setupbodyfont[palatino,12pt]

\starttext

\MySectionCommand{A.}{Définitions}
\input knuth
\MySectionCommand{1.}{Propriétés}
\input knuth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20140504/52c5ddbc/attachment.html>


More information about the ntg-context mailing list