Thanks. This helps.
dr. Hans van der Meer


On 30 May 2021, at 13:40, Adam Reviczky <reviczky@gmail.com> wrote:

Hi Hans,

Does this help: https://tex.stackexchange.com/questions/134474/context-part-chapter-section-and-subsection-names ?

\starttext
\startchapter[title={First chapter}]
\structurenumber\ - \structuretitle
\stopchapter
\stoptext

Although getmarking is probably what you're really after: \getmarking[chapternumber] and \getmarking[chapter].

\starttext
\startchapter[title={First chapter}]
\getmarking[chapternumber][current]\ - \getmarking[chapter][current]
\stopchapter
\stoptext

Adam

On Sun, May 30, 2021 at 11:12 AM Hans van der Meer <havdmeer@ziggo.nl> wrote:
With \pagenumber I can call up the current pagenumber and typeset it.
But \chapternumber is not defined.
How can I typeset the current chapternumber or even the current chapternumber.sectionnumber.subsectionnumber, for example?

dr. Hans van der Meer


___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________