chapter number sought
![](https://secure.gravatar.com/avatar/be49110e195f5eac47c04570251121c1.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/05c453189925473f246530818f2ad8a1.jpg?s=120&d=mm&r=g)
Hi Hans,
Does this help:
https://tex.stackexchange.com/questions/134474/context-part-chapter-section-...
?
\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
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
___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/be49110e195f5eac47c04570251121c1.jpg?s=120&d=mm&r=g)
Thanks. This helps. dr. Hans van der Meer
On 30 May 2021, at 13:40, Adam Reviczky
wrote: Hi Hans,
Does this help: https://tex.stackexchange.com/questions/134474/context-part-chapter-section-... https://tex.stackexchange.com/questions/134474/context-part-chapter-section-... ?
\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
mailto: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 mailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl http://www.pragma-ade.nl/ / http://context.aanhet.net http://context.aanhet.net/ archive : https://bitbucket.org/phg/context-mirror/commits/ https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net 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 ___________________________________________________________________________________
participants (2)
-
Adam Reviczky
-
Hans van der Meer