From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: Gerben Wierda <gerben.wierda@rna.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>,
mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Move the page number from header to footer on the current page only?
Date: Mon, 25 Oct 2021 21:20:11 +0200 [thread overview]
Message-ID: <e3ab7f2b-647c-3a67-63b5-4734e143cdd2@gmail.com> (raw)
In-Reply-To: <3B766609-7ABE-4F85-9F6A-26FA7182BE57@rna.nl>
[-- Attachment #1.1: Type: text/plain, Size: 1502 bytes --]
Gerben Wierda schrieb am 25.10.2021 um 08:41:
> I have a problem with getting the page number on the ‘first’ page of a
> chapter (in my setup, it is actually the second page as there is a LHS
> page before it with a quote. The bare minimum example:
When you switch to the chapter-environment get an additional hook at the
start of each chapter. The advantage of this hook is that its values are
inserted before the actual chapter code even starts.
\setuppagenumbering[alternative=doublesided]
\definetext
[chapterfooter] % name
[footer] % vertical location
[pagenumber] % content
\setuphead
[chapter]
[page=yes,
header=empty,
footer=chapterfooter,
sectionsegments=chapter,
before={\blank[force,2*big]},
after={\blank[3*big]},
beforesection=\directsetup{chapter:before}]
\startsetups [chapter:before]
\page[left]
\noheaderandfooterlines
\startalignment[flushright,nothyphenated]
\startnarrower[4*left]
\em \getbuffer[chapter:quote]
\stopnarrower
\stopalignment
\page[right]
\stopsetups
\starttext
\startbuffer [chapter:quote]
If you think good architecture is expensive, try bad architecture\crlf
{\tf Brian Foote and Joseph Yoder}
\stopbuffer
\startchapter[title={One}]
\dorecurse{5}{\input tufte \par \input knuth}
\stopchapter
\startchapter[title={Two}]
\dorecurse{5}{\input tufte \par \input knuth}
\stopchapter
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 2115 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
___________________________________________________________________________________
next prev parent reply other threads:[~2021-10-25 19:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-24 13:42 How do I get the first page of the chapter to display the page number in the footer in this setup? Gerben Wierda via ntg-context
2021-10-24 14:32 ` Gerben Wierda via ntg-context
2021-10-24 14:38 ` Wolfgang Schuster via ntg-context
2021-10-24 16:04 ` Gerben Wierda via ntg-context
2021-10-25 6:41 ` Move the page number from header to footer on the current page only? Gerben Wierda via ntg-context
2021-10-25 19:20 ` Wolfgang Schuster via ntg-context [this message]
2021-10-25 21:29 ` How do I get the first page of the chapter to display the page number in the footer in this setup? Bruce Horrocks via ntg-context
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e3ab7f2b-647c-3a67-63b5-4734e143cdd2@gmail.com \
--to=ntg-context@ntg.nl \
--cc=gerben.wierda@rna.nl \
--cc=wolfgang.schuster.lists@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).