Am 02.12.2008 um 15:43 schrieb Bart C. Wise:
In the sample code below, I defined the document to be doublesided and that chapters should open on the right. If the chapter ends on an odd page, I want to leave the even page completely blank (no headers, footers, page numbers, etc.). The code below works except for the last chapter in the frontmatter, bodymatter, and backmatter. For the last chapter in those divisions, the page is not blank, but has the header & footers. How do I get definepagebreak to work at the end of a division?
\setupheadertexts[][chapter][Deluxe Header][]
\definepagebreak [ChapterPageBreak] [yes,header,footer,right] % works! except for last page in a division
\setuphead[chapter][ header=empty, footer=empty, number=yes, page=ChapterPageBreak, ]
\setuplayout[location=doublesided] \setuppagenumbering[ location={footer,middle}, alternative=doublesided, option=doublesided, style=\em\tfx, way=bytext, ]
\starttext \startfrontmatter \completecontent \chapter {Introduction} \dorecurse{10}{\input tufte } \chapter {Second Introduction} \dorecurse{10}{\input tufte } \stopfrontmatter \startbodymatter \chapter {First Chapter} \dorecurse{10}{\input tufte } \chapter {Second Chapter} \dorecurse{9}{\input tufte } \chapter {Third Chapter} \dorecurse{8}{\input tufte } \chapter {Fourth Chapter} \dorecurse{10}{\input tufte } \stopbodymatter \startbackmatter \chapter {First Appendix} \dorecurse{10}{\input tufte } \chapter {Second Appendix} \dorecurse{10}{\input tufte } \stopbackmatter \stoptext
You tried to enable doublesided documents with \setuplayout but the option location control the location of your document on the real paper, this option is usefull if you use different sizes your document and paper e.g. \setupapersize[A4][A3]. Doublesided documents are enable with \setuppagenumbering[alternative=doublesided], ConTeXt has also a special settings "alternative={singlesided,doublesided}", this this a normal single sided document with the same margins on every page but you can use the "left" and "right" keys for \page, \setuplayer etc. Wolfgang