Hi, I have been searching contextgarden.net and the manuals at the Pragma website for more than an hour now, and I have yet to find a way to have ConTeXt decide in two-sided mode that the last page of a book chapter is a even numbered page without anything on it and therefore will also not have a page number. I probably can manually effect this by carefully inserting \setuppagenumber commands which start and stop the state, but that's not a very general solution. Will someone please point me to appropriate documentation or an example. Thanks, Dave -- home address: 12 Linden Rd., E. Sandwich, MA 02537; ph/fax=508-888-7655/4168 email address: dave@walden-family.com; website(s): http://www.walden-family.com/
\definepagebreak[chapter][yes,footer,right] (or: \definepagebreak[chapter][yes,header,right]) Jörg David C. Walden wrote:
Hi,
I have been searching contextgarden.net and the manuals at the Pragma website for more than an hour now, and I have yet to find a way to have ConTeXt decide in two-sided mode that the last page of a book chapter is a even numbered page without anything on it and therefore will also not have a page number. I probably can manually effect this by carefully inserting \setuppagenumber commands which start and stop the state, but that's not a very general solution. Will someone please point me to appropriate documentation or an example.
Thanks, Dave
-- home address: 12 Linden Rd., E. Sandwich, MA 02537; ph/fax=508-888-7655/4168 email address: dave@walden-family.com; website(s): http://www.walden-family.com/
___________________________________________________________________________________ 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 ___________________________________________________________________________________
On Wed, Apr 9, 2008 at 4:29 PM, David C. Walden
Hi,
I have been searching contextgarden.net and the manuals at the Pragma website for more than an hour now, and I have yet to find a way to have ConTeXt decide in two-sided mode that the last page of a book chapter is a even numbered page without anything on it and therefore will also not have a page number. I probably can manually effect this by carefully inserting \setuppagenumber commands which start and stop the state, but that's not a very general solution. Will someone please point me to appropriate documentation or an example.
You could insert a empty page with \page[empty] or \startstandardmakeup ... \stopsatndardmakeup. Yould integrate this in the normal document structure. \startcomponent test \setuppagenumbering[alternative=doublesided] \startfrontmatter \startstandardmakeup Title Page \stopstandardmakeup \stopfrontmatter \startbodymatter .. document ... \stopbodymatter \startbackmatter \startstandardmakeup \stopstandardmakeup \stopbackmatter \stopcomponent Wolfgang
Hi David, On Wed, 9 Apr 2008, David C. Walden wrote:
Hi,
I have been searching contextgarden.net and the manuals at the Pragma website for more than an hour now, and I have yet to find a way to have ConTeXt decide in two-sided mode that the last page of a book chapter is a even numbered page without anything on it and therefore will also not have a page number.
I am not sure what you want. Do you want the last page of chapters to be numbered or do you want them to be completely empty? Aditya
I am not sure what you want. Do you want the last page of chapters to be numbered or do you want them to be completely empty?
I want even numbered last pages of chapters which have no text or images on them to be completely empty. I tried various versions of the code for "Truly empty page breaks" at http://wiki.contextgarden.net/Titles that Jörg's message about \definepagebreak led me to, and I tried various versions of the additional discussion about "Again: How to make empty pages by default empty?" from November 2003 in the NTG-context archives. I couldn't make any of that work within the last half hour or so. Thus, I have now changed my macro which begins chapters so it turns off page numbering before the \chapter call and turns page numbering back on after some text has been place on the first page of the chapter and that now does what I want. So, that's kind of a brute force approach to getting these completely blank pages "automatically." Thanks everyone for your suggestions. -Dave
On Wed, 9 Apr 2008, David C. Walden wrote:
I am not sure what you want. Do you want the last page of chapters to be numbered or do you want them to be completely empty?
I want even numbered last pages of chapters which have no text or images on them to be completely empty.
I tried various versions of the code for "Truly empty page breaks" at http://wiki.contextgarden.net/Titles that Jörg's message about \definepagebreak led me to, and I tried various versions of the additional discussion
Does this do what you want (at least in this test case) \definepagebreak [mychapterpagebreak] [yes,header,footer,right] \setuphead [chapter] [page=mychapterpagebreak] \setuppagenumbering[alternative=doublesided,location={header,margin}] \setupheadertexts[{My special headertext}] \setupfootertexts[This is a text in the footer] \starttext \chapter {testA} \dorecurse{10}{\input tufte } \chapter {testB} \dorecurse{10}{\input tufte } \chapter {testC} \dorecurse{10}{\input tufte } \stoptext Notice that the pages at the end of the chapters are empty.
about "Again: How to make empty pages by default empty?" from November 2003 in the NTG-context archives. I couldn't make any of that work within the last half hour or so. Thus, I have now changed my macro which begins chapters so it turns off page numbering before the \chapter call and turns page numbering back on after some text has been place on the first page of the chapter and that now does what I want. So, that's kind of a brute force approach to getting these completely blank pages "automatically." Thanks everyone for your suggestions. -Dave
Does this do what you want (at least in this test case)
\definepagebreak [mychapterpagebreak] [yes,header,footer,right]
\setuphead [chapter] [page=mychapterpagebreak]
\setuppagenumbering[alternative=doublesided,location={header,margin}] \setupheadertexts[{My special headertext}] \setupfootertexts[This is a text in the footer]
\starttext \chapter {testA} \dorecurse{10}{\input tufte } \chapter {testB} \dorecurse{10}{\input tufte } \chapter {testC} \dorecurse{10}{\input tufte } \stoptext
I thought I tried that on my book and it didn't work. My actual situation is more complicated with declarations of front matter, depositing of \completecontent, etc. However, I have now done it with the test case expanded to mimic my real situation and it does seem to work. I'll try it in my real file (again?).
participants (4)
-
Aditya Mahajan
-
David C. Walden
-
Jörg Hagmann
-
Wolfgang Schuster