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

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Mon Jan 13 22:01:03 CET 2020


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

Wolfgang



More information about the dev-context mailing list