![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Mon, 26 Aug 2024, Henning Hraban Ramm wrote:
Hi, I’d like to check the chapter number like
\ifodd\rawcountervalue[chapter] What an odd chapter! \fi
but apparently the counter isn’t called "chapter", or I’m doing it wrong otherwise. Could you enlighten me?
You need: \somenamedheadnumber{chapter}{current} \starttext \startsection[title=First] This is: \somenamedheadnumber{section}{current} \ifodd\somenamedheadnumber{section}{current}\relax This is odd \else This is even \fi \stopsection \startsection[title=Second] This is: \somenamedheadnumber{section}{current} \ifodd\somenamedheadnumber{section}{current}\relax This is odd \else This is even \fi \stopsection \stoptext Aditya