Hi Gerben, See below...
On 24 Oct 2021, at 17:04, Gerben Wierda via ntg-context
wrote: On 24 Oct 2021, at 16:38, Wolfgang Schuster
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