[dev-context] Wrong number for previous/next section value

Hans Hagen j.hagen at xs4all.nl
Tue Jan 14 09:58:15 CET 2020


On 1/13/2020 10:01 PM, Wolfgang Schuster wrote:
> Hi,
> 
> I try to get the counter value of the next section but the result is 
> always the value for the current section (e.g. section 3 shows also 3 as 
> value for the next section).
> 
> \startbuffer[headnumber]
>      \starttabulate
>      \NC first    \EQ \somenamedheadnumber {section} {first}    \NC\NR
>      \NC previous \EQ \somenamedheadnumber {section} {previous} \NC\NR
>      \NC current  \EQ \somenamedheadnumber {section} {current}  \NC\NR
>      \NC next     \EQ \somenamedheadnumber {section} {next}     \NC\NR
>      \NC last     \EQ \somenamedheadnumber {section} {last}     \NC\NR
>      \stoptabulate
> \stopbuffer
> 
> \starttext
> 
> \dorecurse{5}
>    {\section{Section #1}
>     \getbuffer[headnumber]}
> 
> \stoptext
Also in a second run?

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the dev-context mailing list