From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46060 Path: news.gmane.org!not-for-mail From: "Bart C. Wise" Newsgroups: gmane.comp.tex.context Subject: definepagebreak: problem at the end of front, body & backmatter Date: Tue, 2 Dec 2008 07:43:26 -0700 Message-ID: <200812020743.26522.bntgcontext@wiseguysweb.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1228229183 28140 80.91.229.12 (2 Dec 2008 14:46:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Dec 2008 14:46:23 +0000 (UTC) To: Context Mailing List Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 02 15:47:25 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1L7WX4-0002jX-I4 for gctc-ntg-context-518@m.gmane.org; Tue, 02 Dec 2008 15:47:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4BB301FBCC; Tue, 2 Dec 2008 15:46:10 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18346-01-9; Tue, 2 Dec 2008 15:44:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6AEC01FB89; Tue, 2 Dec 2008 15:44:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 565251FB89 for ; Tue, 2 Dec 2008 15:44:25 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18346-01-8 for ; Tue, 2 Dec 2008 15:43:31 +0100 (CET) Original-Received: from out02.mta.xmission.com (out02.mta.xmission.com [166.70.13.232]) by ronja.ntg.nl (Postfix) with ESMTP id F07A31FADF for ; Tue, 2 Dec 2008 15:43:30 +0100 (CET) Original-Received: from mx04.mta.xmission.com ([166.70.13.214]) by out02.mta.xmission.com with esmtp (Exim 4.62) (envelope-from ) id 1L7WU8-0005Fz-3k for ntg-context@ntg.nl; Tue, 02 Dec 2008 07:44:20 -0700 Original-Received: from bwise1.provo.novell.com ([137.65.171.141] helo=bwise1.localnet) by mx04.mta.xmission.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1L7WXL-0005uA-H5 for ntg-context@ntg.nl; Tue, 02 Dec 2008 07:47:39 -0700 User-Agent: KMail/1.10.3 (Linux/2.6.27-9-generic; KDE/4.1.3; x86_64; ; ) Content-Disposition: inline X-XM-SPF: eid=; ; ; mid=; ; ; hst=mx04.mta.xmission.com; ; ; ip=137.65.171.141; ; ; frm=bntgcontext@wiseguysweb.com; ; ; spf=none X-SA-Exim-Connect-IP: 137.65.171.141 X-SA-Exim-Rcpt-To: ntg-context@ntg.nl X-SA-Exim-Mail-From: bntgcontext@wiseguysweb.com X-SA-Exim-Version: 4.2.1 (built Thu, 07 Dec 2006 04:40:56 +0000) X-SA-Exim-Scanned: No (on mx04.mta.xmission.com); Unknown failure X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:46060 Archived-At: 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 Thanks, Bart ___________________________________________________________________________________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________