ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Chapternumber and chaptertitle in footer
@ 2021-05-16 17:20 Jeroen
  2021-05-16 17:28 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Jeroen @ 2021-05-16 17:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

How can I combine in the footer the chapternumber and the chaptertitle in
the footer. This way I can achieve the chaptertitle

\setupfootertexts
  [chapter]
  [\pagenumber]

\starttext

\input{tufte}

\stoptext

The following I achieve this with the chapternumber

\setupfootertexts
  [chapternumber]
  [\pagenumber]

\starttext

\input{tufte}

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 474 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] 2+ messages in thread

* Re: Chapternumber and chaptertitle in footer
  2021-05-16 17:20 Chapternumber and chaptertitle in footer Jeroen
@ 2021-05-16 17:28 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2021-05-16 17:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Jeroen schrieb am 16.05.2021 um 19:20:
> How can I combine in the footer the chapternumber and the chaptertitle 
> in the footer. This way I can achieve the chaptertitle
> 
> \setupfootertexts
>    [chapter]
>    [\pagenumber]
> 
> \starttext
> 
> \input{tufte}
> 
> \stoptext
> 
> The following I achieve this with the chapternumber
> 
> \setupfootertexts
>    [chapternumber]
>    [\pagenumber]
> 
> \starttext
> 
> \input{tufte}
> 
> \stoptext

Use \getmarking to access the title and number for the chapter.

\setupfootertexts
   [{\getmarking[chapternumber]\ -- \getmarking[chapter]}]
   [pagenumber]

\starttext

\chapter{Tufte}

\input{tufte}

\stoptext

Wolfgang
___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2021-05-16 17:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-16 17:20 Chapternumber and chaptertitle in footer Jeroen
2021-05-16 17:28 ` 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).