Mike Cooper schrieb am 11.08.2020 um 19:01:


-----Original Message-----
From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Henning
Hraban Ramm
Sent: Tuesday, August 11, 2020 12:37 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] custom header/footer for 1st/other pages of section

One thing I *CANNOT* figure out:  I've been using \doifoddpageelse to put in a
blank/empty page at the end of a section (if needed) so that new sections always
start on an odd page.  This is still working with the change to chapters from
sections, EXCEPT for the first chapter (after TOC)!  Totally stuck with that 
one...

Ehm... Why don’t you just use \setuphead[section][page=right] ?

Hraban


Haha!  Well...  because I never found that approach in my searching.

But now, I'm not using it because it doesn't work for me.  I was in the middle 
of guessing I needed to set up doublesided or some such in order for it to work 
when Wolfgang's other solution came in.

When you use "page=left" or "page=right" you need a doublesided document but for a singlesided document you can use "page=even" or "page=odd".


There is also another layout method which combines both. The layout is taken from a singlesided document which means the left and right margins are the same on odd and even page but checks for left or right pages work like in a doublesided document.

You can test this with the example below when you uncomment the second and third pagenumbering setup-

\setuppagenumbering
  [alternative={singlesided,doublesided}]

%\setuppagenumbering
%  [alternative=singlesided]

%\setuppagenumbering
%  [alternative=doublesided]

\setuphead
  [chapter]
  [page=right]

\showframe

\starttext

\dorecurse{3}
  {\expanded{\chapter{Chapter \recurselevel}}
   \dorecurse{4}{\samplefile{weisman}}}

\stoptext

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

Reply via email to