Re: [NTG-context] subsection numbering

2009-05-27 Thread Hans Hagen

Amaël Broustet wrote:

Dear all,

I got a problem with the numbering of subsections :

they are numbered using the \currentheadnumber of the heading containing
the \subsection

attached an example and the output.


whow ...

\char`\\{}currentheadnumber

easier ...

\type{\currentheadnumber}


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] subsection numbering

2009-05-27 Thread Amaël Broustet
Thanks for the tip !

Le mercredi 27 mai 2009 à 16:38 +0200, Hans Hagen a écrit :
 Amaël Broustet wrote:
  Dear all,
  
  I got a problem with the numbering of subsections :
  
  they are numbered using the \currentheadnumber of the heading containing
  the \subsection
  
  attached an example and the output.
 
 whow ...
 
   \char`\\{}currentheadnumber
 
 easier ...
 
   \type{\currentheadnumber}
 
 
 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] subsection numbering

2009-05-23 Thread Amaël Broustet
Dear all,

I got a problem with the numbering of subsections :

they are numbered using the \currentheadnumber of the heading containing
the \subsection

attached an example and the output.

in the log, I get :

structure   : chapter @ level 2 : 0.1 - Chapter
structure   : section @ level 3 : 0.1.1 - Section
structure   : subsection @ level 4 : 0.1.1.1 - Subsection
structure   : subsection @ level 4 : 0.1.1.2 - Subsection
[2.2]
structure   : chapter @ level 2 : 0.2 - Chapter
structure   : subsection @ level 4 : 0.2.0.1 - Subection
structure   : subsection @ level 4 : 0.2.0.2 - Subsection
[3.3]


best,
Amaël



\starttext

\section{Section}
\char`\\{}currentheadnumber : \currentheadnumber

\subsection{Subsection}
\char`\\{}currentheadnumber : \currentheadnumber

\chapter{Chapter}


\char`\\{}currentheadnumber : \currentheadnumber


\section{Section}

\char`\\{}currentheadnumber : \currentheadnumber

\subsection{Subsection}

\char`\\{}currentheadnumber : \currentheadnumber
 

\subsection{Subsection}

\char`\\{}currentheadnumber : \currentheadnumber
\chapter{Chapter}
\char`\\{}currentheadnumber : \currentheadnumber

\subsection{Subection}
\char`\\{}currentheadnumber : \currentheadnumber
\subsection{Subsection}
\char`\\{}currentheadnumber : \currentheadnumber

\stoptext

essai.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___