[NTG-context] subsection number independent of section

Wolfgang Schuster schuster.wolfgang at googlemail.com
Mon Aug 27 09:23:42 CEST 2007


2007/8/27, Michael <wuolong at gmail.com>:
>
> Hi, I am trying to write up a legal document, in which I want the numbers
> for section and subsection look like:
>
> ,----
> | I. A Section Title
> |
> | A. A Subsection Title
> `----
>
>
> So far, I can only get
>
> ,----
> | I. A Section Title
> |
> | I.A. A Subsection Title
> `----
>
> Commend used:
>
> \setupsection[section-3][conversion=Romannumerals]
> \setuplabeltext[section={{},{.}}]
> \setuphead[section]
>           [style=bold,alternative=normal,textcommand=\uppercase]
> \setupsection[section-4][conversion=Character]
>
> How can I get what I need?  Thanks.
>
> Michael

Hi Michael,

you need previousnumber=no in setupsection.

\setupsection
  [section]
  [conversion=Romannumerals]

\setuplabeltext
  [section={{},{.}},
   subsection={{},{.}}]

\setuphead
  [section]
  [style=bold,
   alternative=normal,
   textcommand=\uppercase]

\setupsection
  [subsection]
  [previousnumber=no,
   conversion=Character]

\starttext
\section{A Section Title}
\subsection{A Subsection Title}
\stoptext

Wolfgang


More information about the ntg-context mailing list