ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* calling up chapter title
@ 2019-04-26 10:21 Hans van der Meer
  2019-04-26 10:43 ` Hans van der Meer
  2019-04-26 11:03 ` Wolfgang Schuster
  0 siblings, 2 replies; 3+ messages in thread
From: Hans van der Meer @ 2019-04-26 10:21 UTC (permalink / raw)
  To: NTG ConTeXt


[-- Attachment #1.1: Type: text/plain, Size: 394 bytes --]

This does not what I have in mind:
\setupheadertexts[text][chapter][\pagenumber chapter][pagenumber][chapter]

Instead of [\pagenumber chapter] I thought [\pagenumber \chapter] would give me in the header both the pagenumber and the recorded chapter title.
However \chapter turns out to be undefined, neither did \chaptertitle. What is the macro to be called?

dr. Hans van der Meer



[-- Attachment #1.2: Type: text/html, Size: 1616 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

* calling up chapter title
  2019-04-26 10:21 calling up chapter title Hans van der Meer
@ 2019-04-26 10:43 ` Hans van der Meer
  2019-04-26 11:03 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Hans van der Meer @ 2019-04-26 10:43 UTC (permalink / raw)
  To: NTG ConTeXt


[-- Attachment #1.1: Type: text/plain, Size: 532 bytes --]

This does not what I have in mind:
\setupheadertexts[text][chapter][\pagenumber chapter][pagenumber][chapter]

Instead of [\pagenumber chapter] I thought [\pagenumber \chapter] would give me in the header both the pagenumber and the recorded chapter title.
However \chapter turns out to be undefined, neither did \chaptertitle. What is the macro to be called?

In my previous post I forgot to ask the same question about [chapternumber] where also \chapternumber does not exists. (sorry for the noise)

dr. Hans van der Meer

[-- Attachment #1.2: Type: text/html, Size: 1323 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: calling up chapter title
  2019-04-26 10:21 calling up chapter title Hans van der Meer
  2019-04-26 10:43 ` Hans van der Meer
@ 2019-04-26 11:03 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2019-04-26 11:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Hans van der Meer


[-- Attachment #1.1: Type: text/plain, Size: 764 bytes --]



Hans van der Meer schrieb am 26.04.2019 um 12:21:
> This does not what I have in mind:
> \setupheadertexts[text][chapter][\pagenumber chapter][pagenumber][chapter]
>
> Instead of [\pagenumber chapter] I thought [\pagenumber \chapter] 
> would give me in the header both the pagenumber and the recorded 
> chapter title.
> However \chapter turns out to be undefined, neither did \chaptertitle. 
> What is the macro to be called?

I doubt \chapter is undefined otherwise you can add a chapter title to 
your document.

What you're looking for is the \getmarking marking which is used to 
access section
titles and number in the header and footer lines, e.g.

\setupheadertexts
   [chapter] [pagenumber]
   [\prefixedpagenumber] [{\getmarking[chapter]}]

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1359 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:[~2019-04-26 11:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-26 10:21 calling up chapter title Hans van der Meer
2019-04-26 10:43 ` Hans van der Meer
2019-04-26 11:03 ` Wolfgang Schuster

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).