ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How do I get the first page of the chapter to display the page number in the footer in this setup?
@ 2021-10-24 13:42 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
  0 siblings, 2 replies; 7+ messages in thread
From: Gerben Wierda via ntg-context @ 2021-10-24 13:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Gerben Wierda


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

My double-sided layout starts each chapter on a right page with a quote on the opposing left page. I’d like to move the page number of that right page to the footer, but haven’t been able to find how to do this is the documentation. How can I do this?

Example:

\setuplayout[location=doublesided]
\setuppagenumbering[alternative=doublesided]
\setuphead[chapter]
  [page=,
   sectionsegments=chapter,
   before={\setups[chapter:before]},
   after={\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]
    %\noheaderandfooterlines % I want the enumber in the footer here
    \blank[force,2*big]
\stopsetups

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

\definelist[chaptertext]
\setuplist[chaptertext][margin=1.3em,pagecommand=\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 <https://www.linkedin.com/in/gerbenwierda>)
R&A Enterprise Architecture <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>


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

* Re: How do I get the first page of the chapter to display the page number in the footer in this setup?
  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
  1 sibling, 0 replies; 7+ messages in thread
From: Gerben Wierda via ntg-context @ 2021-10-24 14:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Gerben Wierda


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

I attempted this:

    \page[right]
    \setupheadertexts[]
    \setupfootertexts[pagenumber]
    \setupfooter[text][after={\setupfootertexts[]\setupheadertexts[pagenumber]}]

but that does not work. This definitely moves the page numbers to the footer.

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R&A Enterprise Architecture <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

> On 24 Oct 2021, at 15:42, Gerben Wierda via ntg-context <ntg-context@ntg.nl> wrote:
> 
> My double-sided layout starts each chapter on a right page with a quote on the opposing left page. I’d like to move the page number of that right page to the footer, but haven’t been able to find how to do this is the documentation. How can I do this?
> 
> Example:
> 
> \setuplayout[location=doublesided]
> \setuppagenumbering[alternative=doublesided]
> \setuphead[chapter]
>   [page=,
>    sectionsegments=chapter,
>    before={\setups[chapter:before]},
>    after={\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]
>     %\noheaderandfooterlines % I want the enumber in the footer here
>     \blank[force,2*big]
> \stopsetups
> 
> \startsetups chapter:after
>     \blank[3*big]
> \stopsetups
> 
> \definelist[chaptertext]
> \setuplist[chaptertext][margin=1.3em,pagecommand=\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 <https://www.linkedin.com/in/gerbenwierda>)
> R&A Enterprise Architecture <https://ea.rna.nl/> (main site)
> Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
> Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


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

* Re: How do I get the first page of the chapter to display the page number in the footer in this setup?
  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
  1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-10-24 14:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Gerben Wierda via ntg-context
  Cc: Wolfgang Schuster


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

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’d like to move the page number of 
> that right page to the footer, but haven’t been able to find how to do 
> this is the documentation. How can I do this?

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

\setuphead
   [chapter]
   [header=empty,
    footer=chapterfooter]

\starttext

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

\stoptext

Wolfgang


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

* Re: How do I get the first page of the chapter to display the page number in the footer in this setup?
  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 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
  0 siblings, 2 replies; 7+ messages in thread
From: Gerben Wierda via ntg-context @ 2021-10-24 16:04 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: Gerben Wierda, mailing list for ConTeXt users


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

On 24 Oct 2021, at 16:38, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
> 
> 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’d like to move the page number of that right page to the footer, but haven’t been able to find how to do this is the documentation. How can I do this?
> 
> \definetext
>   [chapterfooter] % name
>   [footer]        % vertical location
>   [pagenumber]    % content
> 
> \setuphead
>   [chapter]
>   [header=empty,
>    footer=chapterfooter]
> 
> \starttext
> 
> \dorecurse{4}
>   {\expanded{\chapter{Chapter \recurselevel}}
>    \dorecurse{10}{\samplefile{lorem}}}
> 
> \stoptext
> 
> Wolfgang

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

Try this:

\setuplayout[location=doublesided]
\setuppagenumbering[alternative=doublesided]

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

\setuphead[chapter]
  [page=,
   header=empty,
   footer=chpaterfooter,
   sectionsegments=chapter,
   before={\setups[chapter:before]},
   after={\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=1.3em,pagecommand=\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 <https://www.linkedin.com/in/gerbenwierda>)
R&A Enterprise Architecture <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>



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

* Move the page number from header to footer on the current page only?
  2021-10-24 16:04   ` Gerben Wierda via ntg-context
@ 2021-10-25  6:41     ` Gerben Wierda via ntg-context
  2021-10-25 19:20       ` Wolfgang Schuster via ntg-context
  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
  1 sibling, 1 reply; 7+ messages in thread
From: Gerben Wierda via ntg-context @ 2021-10-25  6:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Gerben Wierda


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

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:

\setuplayout[location=doublesided]
\setuppagenumbering[alternative=doublesided]

\setuphead[chapter]
  [page=,
   header=empty,
   footer=chpaterfooter,
   sectionsegments=chapter,
   before={\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.

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R&A Enterprise Architecture <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

> 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 <mailto:wolfgang.schuster.lists@gmail.com>> wrote:
>> 
>> 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’d like to move the page number of that right page to the footer, but haven’t been able to find how to do this is the documentation. How can I do this?
>> 
>> \definetext
>>   [chapterfooter] % name
>>   [footer]        % vertical location
>>   [pagenumber]    % content
>> 
>> \setuphead
>>   [chapter]
>>   [header=empty,
>>    footer=chapterfooter]
>> 
>> \starttext
>> 
>> \dorecurse{4}
>>   {\expanded{\chapter{Chapter \recurselevel}}
>>    \dorecurse{10}{\samplefile{lorem}}}
>> 
>> \stoptext
>> 
>> Wolfgang
> 
> Yes, this works in a simple setup. But it doesn’t work in mine with my LHS-quote/RHS-chapterstart setup using before and after on setup head.
> 
> Try this:
> 
> \setuplayout[location=doublesided]
> \setuppagenumbering[alternative=doublesided]
> 
> \definetext
>   [chapterfooter] % name
>   [footer]        % vertical location
>   [pagenumber]    % content
> 
> \setuphead[chapter]
>   [page=,
>    header=empty,
>    footer=chpaterfooter,
>    sectionsegments=chapter,
>    before={\setups[chapter:before]},
>    after={\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=1.3em,pagecommand=\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 <https://www.linkedin.com/in/gerbenwierda>)
> R&A Enterprise Architecture <https://ea.rna.nl/> (main site)
> Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
> Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>
> 
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


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

* Re: Move the page number from header to footer on the current page only?
  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
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-10-25 19:20 UTC (permalink / raw)
  To: Gerben Wierda; +Cc: Wolfgang Schuster, mailing list for ConTeXt users


[-- 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How do I get the first page of the chapter to display the page number in the footer in this setup?
  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 21:29     ` Bruce Horrocks via ntg-context
  1 sibling, 0 replies; 7+ messages in thread
From: Bruce Horrocks via ntg-context @ 2021-10-25 21:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Bruce Horrocks

Hi Gerben,

See below...

> On 24 Oct 2021, at 17: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 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’d like to move the page number of that right page to the footer, but haven’t been able to find how to do this is the documentation. How can I do this?
>> 
>> \definetext
>>   [chapterfooter] % name
>>   [footer]        % vertical location
>>   [pagenumber]    % content
>> 
>> \setuphead
>>   [chapter]
>>   [header=empty,
>>    footer=chapterfooter]
>> 
>> \starttext
>> 
>> \dorecurse{4}
>>   {\expanded{\chapter{Chapter \recurselevel}}
>>    \dorecurse{10}{\samplefile{lorem}}}
>> 
>> \stoptext
>> 
>> Wolfgang
> 
> Yes, this works in a simple setup. But it doesn’t work in mine with my LHS-quote/RHS-chapterstart setup using before and after on setup head.
> 
> Try this:
> 
> \setuplayout[location=doublesided]
> \setuppagenumbering[alternative=doublesided]
> 
> \definetext
>   [chapterfooter] % name
>   [footer]        % vertical location
>   [pagenumber]    % content
> 
> \setuphead[chapter]
>   [page=,
>    header=empty,
>    footer=chpaterfooter,
>    sectionsegments=chapter,
>    before={\setups[chapter:before]},
>    after={\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

Change chapter:before to be as follows (changes marked with %%)

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

Is that what you were after?

> 
> \startsetups chapter:after
>     \blank[3*big]
> \stopsetups
> 
> \definelist[chaptertext]
> \setuplist[chaptertext][margin=1.3em,pagecommand=\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

—
Bruce Horrocks
Hampshire, UK

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

end of thread, other threads:[~2021-10-25 21:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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).