[NTG-context] Get Current Section Number

Pablo Rodriguez oinos at gmx.es
Sun Jan 9 19:15:11 CET 2022

On 1/9/22 5:25 PM, Michael Urban via ntg-context wrote:
> I want to put a book title above the Chapter title for the first
> chapter of a book.  I suppose that this can be accomplished with a
> 'before=' clause that checks to see if it is the first chapter... but
> how do I look at the chapter number in order to set up the
> conditional?

Hi MIchael,

this might do the trick:

   {\chapter{Chapter \structurenumber}
     {\section{Section \structurenumber}
       {This is the first chapter.}
       {This is not the first chapter.}

Just in case it might help,


More information about the ntg-context mailing list