From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113236 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerben Wierda via ntg-context Newsgroups: gmane.comp.tex.context Subject: Move the page number from header to footer on the current page only? Date: Mon, 25 Oct 2021 08:41:30 +0200 Message-ID: <3B766609-7ABE-4F85-9F6A-26FA7182BE57@rna.nl> References: <3EB4AA6B-BBDC-460F-A60B-BAE33166586C@rna.nl> <2935c589-af5c-2682-78a4-5d9b83d97e74@gmail.com> <2D907A81-828D-44A7-AC54-1A933315A3E6@rna.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Content-Type: multipart/mixed; boundary="===============6662123856878868621==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22243"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerben Wierda To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 25 08:42:12 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 1metgR-0005ak-UD for gctc-ntg-context-518@m.gmane-mx.org; Mon, 25 Oct 2021 08:42:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AFB5D267CA1; Mon, 25 Oct 2021 08:41:38 +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 4I2zhqgH0wpV; Mon, 25 Oct 2021 08:41:36 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2ED25267DAC; Mon, 25 Oct 2021 08:41:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D07B5267DAC for ; Mon, 25 Oct 2021 08:41:34 +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 dWdeZd1PjUIk for ; Mon, 25 Oct 2021 08:41:33 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=213.125.118.53; helo=mail.rna.nl; envelope-from=gerben.wierda@rna.nl; receiver= Original-Received: from mail.rna.nl (mail.rna.nl [213.125.118.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id DCF85267CA1 for ; Mon, 25 Oct 2021 08:41:32 +0200 (CEST) Original-Received: from hermione.rna.nl (hermione.rna.nl [192.168.2.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.rna.nl (Postfix) with ESMTPSA id 3E2FE95F05F4; Mon, 25 Oct 2021 08:41:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rna.nl; s=dkim_rsa2048; t=1635144091; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=PT89LPGulK8eRV0a7zJRQWJ7gTPhBPVT/US2kjSUiZw=; b=PeONGZ8gUKNKXLF4e95+XCCpc9cUsIbhqWi/xJ6bY/NQYvvQILxVVVIiNNXUd0gd5ccq8N S9C4LHn0U4IE1/K8+7Q9lcSamBvlhx7VV7E5zqdk8I+MvhuBXqUmQS9senrizaEfnAZnUq UzE1mPFS39Cj2uVTDMOQ1wPSHR3eiOgZrIBLvBMaPp+uZKm61zxf1v1lEWps/8ttYeCerd 6MwTX650TR/rpuO7Mo5winx0IWDnKIiDkzi4RItM3RrNlyepBy1cN2NrfjuRC6rV0fnZ5e oGuG4LVP00suvSfw5lVMwUVVX0wopc/3eObJMdJJWEWkiqw2ByHgwxXeuDukCA== In-Reply-To: <2D907A81-828D-44A7-AC54-1A933315A3E6@rna.nl> X-Mailer: Apple Mail (2.3608.120.23.2.7) 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:113236 Archived-At: --===============6662123856878868621== Content-Type: multipart/alternative; boundary="Apple-Mail=_4DDC2FF1-2658-45FF-A6BC-E6899F7933D5" --Apple-Mail=_4DDC2FF1-2658-45FF-A6BC-E6899F7933D5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I have a problem with getting the page number on the =E2=80=98first=E2=80=99= 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: \setuplayout[location=3Ddoublesided] \setuppagenumbering[alternative=3Ddoublesided] \setuphead[chapter] [page=3D, header=3Dempty, footer=3Dchpaterfooter, sectionsegments=3Dchapter, before=3D{\setups[chapter:before]}] \startsetups chapter:before \page[left] \noheaderandfooterlines \startalignment[left,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 \chapter[h:one]{One} \dorecurse{5}{\input tufte \par \input knuth} \chapter[h:two]{Two} \dorecurse{5}{\input tufte \par \input knuth} \stoptext What I think I need is a way to move the page number from header to = footer for just the current page (immediately after \page[right]) in = this setup.=20 Or a way to move the page number from header to footer on any current = page. Gerben Wierda (LinkedIn ) R&A Enterprise Architecture (main site) Book: Chess and the Art of Enterprise=C2=A0Architecture = Book: Mastering ArchiMate > On 24 Oct 2021, at 18:04, Gerben Wierda via ntg-context = wrote: >=20 > On 24 Oct 2021, at 16:38, Wolfgang Schuster = > wrote: >>=20 >> Gerben Wierda via ntg-context schrieb am 24.10.2021 um 15:42: >>> My double-sided layout starts each chapter on a right page with a = quote on the opposing left page. I=E2=80=99d like to move the page = number of that right page to the footer, but haven=E2=80=99t been able = to find how to do this is the documentation. How can I do this? >>=20 >> \definetext >> [chapterfooter] % name >> [footer] % vertical location >> [pagenumber] % content >>=20 >> \setuphead >> [chapter] >> [header=3Dempty, >> footer=3Dchapterfooter] >>=20 >> \starttext >>=20 >> \dorecurse{4} >> {\expanded{\chapter{Chapter \recurselevel}} >> \dorecurse{10}{\samplefile{lorem}}} >>=20 >> \stoptext >>=20 >> Wolfgang >=20 > Yes, this works in a simple setup. But it doesn=E2=80=99t work in mine = with my LHS-quote/RHS-chapterstart setup using before and after on setup = head. >=20 > Try this: >=20 > \setuplayout[location=3Ddoublesided] > \setuppagenumbering[alternative=3Ddoublesided] >=20 > \definetext > [chapterfooter] % name > [footer] % vertical location > [pagenumber] % content >=20 > \setuphead[chapter] > [page=3D, > header=3Dempty, > footer=3Dchpaterfooter, > sectionsegments=3Dchapter, > before=3D{\setups[chapter:before]}, > after=3D{\setups[chapter:after]}] >=20 > \startsetups chapter:before > \page[left] > \noheaderandfooterlines > \startalignment[left,nothyphenated] > \startnarrower[4*left] > \em \getbuffer[chapter:quote] > \stopnarrower > \stopalignment > \resetsetups[quote:text] > \page[right] > \blank[force,2*big] > \stopsetups >=20 > \startsetups chapter:after > \blank[3*big] > \stopsetups >=20 > \definelist[chaptertext] > \setuplist[chaptertext][margin=3D1.3em,pagecommand=3D\gobbleoneargument]= > = \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}}= >=20 > \starttext > \startbuffer [chapter:quote] > If you think good architecture is expensive, try bad architecture\crlf > {\tf Brian Foote and Joseph Yoder} > \stopbuffer >=20 > \chapter[h:one]{One} > \ChapterAbstract{This is chapter abstract 1.} >=20 > \dorecurse{5}{\input tufte \par \input knuth} >=20 > \chapter[h:two]{Two} > \ChapterAbstract{This is chapter abstract 2.} >=20 > \dorecurse{5}{\input tufte \par \input knuth} >=20 > \stoptext >=20 >=20 >=20 > Gerben Wierda (LinkedIn ) > R&A Enterprise Architecture (main site) > Book: Chess and the Art of Enterprise=C2=A0Architecture = > Book: Mastering ArchiMate >=20 >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_4DDC2FF1-2658-45FF-A6BC-E6899F7933D5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 I = have a problem with getting the page number on the =E2=80=98first=E2=80=99= 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:

\setuplayout[location=3Ddoublesided]
\setuppagenumbering[alternative=3Ddoublesided]

\setuphead[chapter]
  = [page=3D,
   header=3Dempty,
   = footer=3Dchpaterfooter,
   = sectionsegments=3Dchapter,
   = before=3D{\setups[chapter:before]}]

\startsetups = chapter:before
    \page[left]
    = \noheaderandfooterlines
    = \startalignment[left,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

\chapter[h:one]{One}
\dorecurse{5}{\input tufte \par \input = knuth}

\chapter[h:two]{Two}
\dorecurse{5}{\input tufte \par \input = knuth}

\stoptext

What I think I need is a way to move the page number from = header to footer for just the current page (immediately after = \page[right]) in this setup. 

Or a way to move the = page number from header to footer on any current page.


On 24 Oct 2021, at 18:04, Gerben Wierda via ntg-context = <ntg-context@ntg.nl> wrote:

On 24 = Oct 2021, at 16:38, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:

Gerben Wierda via = ntg-context schrieb=20 am 24.10.2021 um 15:42:
My double-sided layout starts each chapter on a right=20= page with a quote on the opposing left page. I=E2=80=99d like to move = the page=20 number of that right page to the footer, but haven=E2=80=99t been able = to find=20 how to do this is the documentation. How can I do this?

\definetext
  [chapterfooter] % name
  [footer]        % vertical = location
  [pagenumber]    % content

\setuphead
  [chapter]
  [header=3Dempty,
   footer=3Dchapterfooter]

\starttext

\dorecurse{4}
  {\expanded{\chapter{Chapter \recurselevel}}
   \dorecurse{10}{\samplefile{lorem}}}

\stoptext

Wolfgang

Yes, this works = in a simple setup. But it doesn=E2=80=99t work in mine with my = LHS-quote/RHS-chapterstart setup using before and after on setup = head.

Try = this:

\setuplayout[location=3Ddoublesided]
\setuppagenumbering[alternative=3Ddoublesided]

\definetext
  [chapterfooter] % name
  [footer]       =  % vertical location
  [pagenumber]    % = content

\setuphead[chapter]
  [page=3D,
  =  header=3Dempty,
   footer=3Dchpaterfooter,
  =  sectionsegments=3Dchapter,
  =  before=3D{\setups[chapter:before]},
  =  after=3D{\setups[chapter:after]}]

\startsetups = chapter:before
    \page[left]
    = \noheaderandfooterlines
    = \startalignment[left,nothyphenated]
    = \startnarrower[4*left]
        \em = \getbuffer[chapter:quote]
    \stopnarrower
    = \stopalignment
    \resetsetups[quote:text]
    = \page[right]
    \blank[force,2*big]
\stopsetups

\startsetups chapter:after
    \blank[3*big]
\stopsetups

\definelist[chaptertext]
\setuplist[chaptertext][margin=3D1.3em,pagecommand=3D\gobbleone= argument]
\define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\i= tx#1\stop}}

\starttext
\startbuffer = [chapter:quote]
If you think good architecture is expensive, try bad = architecture\crlf
{\tf Brian Foote and Joseph Yoder}
\stopbuffer

\chapter[h:one]{One}
\ChapterAbstract{This is = chapter abstract 1.}

\dorecurse{5}{\input tufte \par \input = knuth}

\chapter[h:two]{Two}
\ChapterAbstract{This is chapter abstract = 2.}

\dorecurse{5}{\input tufte \par \input = knuth}

\stoptext



_________________________________________________________= __________________________
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
_______________________________________________________________= ____________________

= --Apple-Mail=_4DDC2FF1-2658-45FF-A6BC-E6899F7933D5-- --===============6662123856878868621== 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== --===============6662123856878868621==--