[NTG-context] \setuphead[ownnumber=yes]; disabling parental numbers

Wolfgang Schuster schuster.wolfgang at googlemail.com
Tue Mar 1 18:15:54 CET 2011


Am 01.03.2011 um 18:09 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

> Hello,
> 
> what exactly should the "ownnumber=yes|no" option do in \setuphead?

It disables the automatic numbering to allow you set your own number.

\definehead[topic][section]
\setuphead [topic][ownnumber=yes]

\starttext
\section{Section}
\topic{3}{Topic}
\stoptext

> The following code crashes Ctx:
> 
> ---
> %\setuphead[subsection][number=no] % OK
> \setuphead[subsection][ownnumber=yes] % ERROR
> 
> \starttext
>  \chapter{Ch1}
>    \section{Sec1}
>      \subsection{SSec1}
> \stoptext
> ---
> 
> Is it possible to disable parental numbers? - To get sequence like this:

\setuphead[subsection][sectionsegments=subsection]

Wolfgang



More information about the ntg-context mailing list