From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113232 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerben Wierda via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: How do I get the first page of the chapter to display the page number in the footer in this setup? Date: Sun, 24 Oct 2021 18:04:40 +0200 Message-ID: <2D907A81-828D-44A7-AC54-1A933315A3E6@rna.nl> References: <3EB4AA6B-BBDC-460F-A60B-BAE33166586C@rna.nl> <2935c589-af5c-2682-78a4-5d9b83d97e74@gmail.com> 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="===============0947126320869810180==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14106"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerben Wierda , mailing list for ConTeXt users To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 24 18:05:29 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 1meg00-0003TS-VU for gctc-ntg-context-518@m.gmane-mx.org; Sun, 24 Oct 2021 18:05:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 04F66267DB0; Sun, 24 Oct 2021 18:04:47 +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 M5iZm7azCrnp; Sun, 24 Oct 2021 18:04:45 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A8560267D95; Sun, 24 Oct 2021 18:04:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A2F8D267D95 for ; Sun, 24 Oct 2021 18:04:43 +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 tz-MzF3KLjM4 for ; Sun, 24 Oct 2021 18:04:42 +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 589E7267D93 for ; Sun, 24 Oct 2021 18:04:42 +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 23BF495E8E9C; Sun, 24 Oct 2021 18:04:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rna.nl; s=dkim_rsa2048; t=1635091481; 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=z2WxLGQysKxkUCO5HH43iXo22yvStaLufK+6sfh+z9U=; b=Kqpi3EG8JdsN4sgm9xe+vcgQhpwH5mY+kl1b+Zr3xD36ptRJUeZZOR37GHBP3ZO6TLOCLs RyQoO3SREFHQ2EWuwRYI0ZSqFydrgaTS4Jqfp4pcrcFiBHX9UkUXAjknfqtm6L0+yewkmY AtKj55XJbtCEq6ulC1v47bNyzEhn4jHjZtuzTrfzNIuo8LugkRPbKlahQeDAlCzu1Q/a66 olgxei2/W5AI6daDVOj5EwytklgS3oR49ybJIH5VzgfLDzzQ2M5o//DPILs2MNapRuHWEK dPHBVJ6IrwCAT0hRe+jCtq6PhuP8Fs2yrEWcNCqbP9S389aCPR61hHNFD6IlGA== In-Reply-To: <2935c589-af5c-2682-78a4-5d9b83d97e74@gmail.com> 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:113232 Archived-At: --===============0947126320869810180== Content-Type: multipart/alternative; boundary="Apple-Mail=_4C760B86-9EA5-4C6D-9EFE-89C162CE4328" --Apple-Mail=_4C760B86-9EA5-4C6D-9EFE-89C162CE4328 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 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 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\gobbleoneargument] = \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#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 Gerben Wierda (LinkedIn ) R&A Enterprise Architecture (main site) Book: Chess and the Art of Enterprise=C2=A0Architecture = Book: Mastering ArchiMate --Apple-Mail=_4C760B86-9EA5-4C6D-9EFE-89C162CE4328 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
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



= --Apple-Mail=_4C760B86-9EA5-4C6D-9EFE-89C162CE4328-- --===============0947126320869810180== 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== --===============0947126320869810180==--