From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113241 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Move the page number from header to footer on the current page only? Date: Mon, 25 Oct 2021 21:20:11 +0200 Message-ID: References: <3EB4AA6B-BBDC-460F-A60B-BAE33166586C@rna.nl> <2935c589-af5c-2682-78a4-5d9b83d97e74@gmail.com> <2D907A81-828D-44A7-AC54-1A933315A3E6@rna.nl> <3B766609-7ABE-4F85-9F6A-26FA7182BE57@rna.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6815310354591405604==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35360"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.51 Cc: Wolfgang Schuster , mailing list for ConTeXt users To: Gerben Wierda Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 25 21:21:04 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mf5Wq-0008u5-7R for gctc-ntg-context-518@m.gmane-mx.org; Mon, 25 Oct 2021 21:21:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2E63D267DF9; Mon, 25 Oct 2021 21:20:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZvCF2VwKRDO1; Mon, 25 Oct 2021 21:20:17 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 88D77267D65; Mon, 25 Oct 2021 21:20:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3C9F2267DAB for ; Mon, 25 Oct 2021 21:20:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2-8crOZEPMvd for ; Mon, 25 Oct 2021 21:20:14 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.221.49; helo=mail-wr1-f49.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id CAA8A267C70 for ; Mon, 25 Oct 2021 21:20:14 +0200 (CEST) Original-Received: by mail-wr1-f49.google.com with SMTP id e12so14689079wra.4 for ; Mon, 25 Oct 2021 12:20:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=keafdR3jAbf/I3ubDLNzxShqMT64tXZTuVd06f9XRR4=; b=NFCDC8v+3fa8oScbfwCTvzYAqP8GQh8XsTFjiNncs86gxCQvhtfGathbT8R580n6fg f+ORNEqoc7M2PlTI2+inAAyBsERJRzxOAuhMGiaUqDBwfX928th3zQ2++OJL7fdf4mUD CTgD++GMf54D3p/lonBCKRSp6iPB5OK6alZsHk0vyNeY6wthlA6E8OsAZIOpwW1APmnr W6q+rj6ugxl4/thaCtK+pnuibtXjCkrxHc1Kc2b6mDZhOQo2cg/kKOp7BbWqhn1vdnZD ItIUJoc149+rrJh2lb1J1qmeFOUKlgo30553BcfRKfpFPJQnqCWAu9CoCBDJm0bIjZzu fhHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=keafdR3jAbf/I3ubDLNzxShqMT64tXZTuVd06f9XRR4=; b=AV1SMp3MPALPcYZo2DR6NRIlNjg0sl9kPVNCnaztOMk+WD97wmcv2ZLc3knROOmOxB oA4/f+rPkVitph0IrNFsP8x8FDHZwb0coeR1/a0Ij15lHmB4Dq9IMxRgjrnPOI86Qtjw 7inlEcWq6bJbrCMkJ1yta0b1QuPdjILHzKteP/N+C1Nr2V5b2CqTT8TOrlZMx/JhDLE/ d98MXYvON2RRxLlyjSVCXSOrzHTwuNCAAyrXvnKTLDgEmo95dsFX/OuCVBfsjTUbIKjN 9+0uMJvthhXzuUJt6yM1pbPe6Rk1gY0NBYozl9cX6ibwYvvw2q//kYNNXC0YJQgfu5rC atvg== X-Gm-Message-State: AOAM5336mvWsZYjAVQZr6dVNN375yRHxMC3JYdSaY8GyVh3TbbL18yOB RABRsy1agGXw0KULvJbpJCtH+L3x47M= X-Google-Smtp-Source: ABdhPJy5eLb73BD9g9xtMr0lFkXtaD34bBYkSGW0c18ReIlSNB9EjjYDyTGJOG/tem6kAeu13WVP5Q== X-Received: by 2002:adf:f3cd:: with SMTP id g13mr2325545wrp.25.1635189614422; Mon, 25 Oct 2021 12:20:14 -0700 (PDT) Original-Received: from ?IPv6:2a02:810d:a8bf:f874:8593:65fd:b32c:bb1e? ([2a02:810d:a8bf:f874:8593:65fd:b32c:bb1e]) by smtp.gmail.com with ESMTPSA id f17sm9699799wrv.89.2021.10.25.12.20.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Oct 2021 12:20:13 -0700 (PDT) In-Reply-To: <3B766609-7ABE-4F85-9F6A-26FA7182BE57@rna.nl> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:113241 Archived-At: This is a multi-part message in MIME format. --===============6815310354591405604== Content-Type: multipart/alternative; boundary="------------0EBBD3D7B32C2865BB509526" Content-Language: en-US This is a multi-part message in MIME format. --------------0EBBD3D7B32C2865BB509526 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------0EBBD3D7B32C2865BB509526 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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

--------------0EBBD3D7B32C2865BB509526-- --===============6815310354591405604== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6815310354591405604==--