* chapter number sought
@ 2021-05-30 10:10 Hans van der Meer
2021-05-30 11:40 ` Adam Reviczky
0 siblings, 1 reply; 3+ messages in thread
From: Hans van der Meer @ 2021-05-30 10:10 UTC (permalink / raw)
To: NTG ConTeXt
[-- Attachment #1.1: Type: text/plain, Size: 260 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1412 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: chapter number sought
2021-05-30 10:10 chapter number sought Hans van der Meer
@ 2021-05-30 11:40 ` Adam Reviczky
2021-05-30 15:39 ` Hans van der Meer
0 siblings, 1 reply; 3+ messages in thread
From: Adam Reviczky @ 2021-05-30 11:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1356 bytes --]
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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2928 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: chapter number sought
2021-05-30 11:40 ` Adam Reviczky
@ 2021-05-30 15:39 ` Hans van der Meer
0 siblings, 0 replies; 3+ messages in thread
From: Hans van der Meer @ 2021-05-30 15:39 UTC (permalink / raw)
To: NTG ConTeXt
[-- Attachment #1.1: Type: text/plain, Size: 2407 bytes --]
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 <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 <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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 5835 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-30 15:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-30 10:10 chapter number sought Hans van der Meer
2021-05-30 11:40 ` Adam Reviczky
2021-05-30 15:39 ` Hans van der Meer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).