* definepagebreak: problem at the end of front, body & backmatter @ 2008-12-02 14:43 Bart C. Wise 2008-12-03 7:42 ` Bart C. Wise 2008-12-03 12:11 ` Wolfgang Schuster 0 siblings, 2 replies; 6+ messages in thread From: Bart C. Wise @ 2008-12-02 14:43 UTC (permalink / raw) To: Context Mailing List 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: definepagebreak: problem at the end of front, body & backmatter 2008-12-02 14:43 definepagebreak: problem at the end of front, body & backmatter Bart C. Wise @ 2008-12-03 7:42 ` Bart C. Wise 2008-12-03 12:11 ` Wolfgang Schuster 1 sibling, 0 replies; 6+ messages in thread From: Bart C. Wise @ 2008-12-03 7:42 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 1777 bytes --] On Tuesday 02 December 2008 07:43:26 am Bart C. Wise wrote: > 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 > Notes: ConTeXt ver: 2008.11.10 21:40 LuaTeX: Version snapshot-0.30.2-2008102016 [-- Attachment #1.2: Type: text/html, Size: 10222 bytes --] [-- Attachment #2: Type: text/plain, Size: 487 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: definepagebreak: problem at the end of front, body & backmatter 2008-12-02 14:43 definepagebreak: problem at the end of front, body & backmatter Bart C. Wise 2008-12-03 7:42 ` Bart C. Wise @ 2008-12-03 12:11 ` Wolfgang Schuster 2008-12-03 18:43 ` Bart C. Wise 1 sibling, 1 reply; 6+ messages in thread From: Wolfgang Schuster @ 2008-12-03 12:11 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: definepagebreak: problem at the end of front, body & backmatter 2008-12-03 12:11 ` Wolfgang Schuster @ 2008-12-03 18:43 ` Bart C. Wise 2008-12-03 19:09 ` Wolfgang Schuster 0 siblings, 1 reply; 6+ messages in thread From: Bart C. Wise @ 2008-12-03 18:43 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 3366 bytes --] On Wednesday 03 December 2008 05:11:23 am Wolfgang Schuster wrote: > 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]. > Thanks Wolfgang for your response. I'm having a little trouble understanding your response, so let me tell you what I think you said. \setuplayout should not be used to enable doublesided documents. Because that option (\setuplayout[location=doublesided] is used to control the location of your document on real paper. Is that correct? If so, then I don't need to use the \setuplayout[location=doublesided] option for the example. Correct? > 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. So I did the following with the above code: % \setuplayout[location=doublesided] \setuppagenumbering[ location={footer,middle}, alternative=doublesided, option=doublesided, style=\em\tfx, way=bytext, ] What does the "option=doublesided" do? Do I need it? I'm not sure where I found that one. I still have the same problem with the last chapter in a division, the headers and the footers print out. I also tried with/without the "option=doublesided". Bart [-- Attachment #1.2: Type: text/html, Size: 17080 bytes --] [-- Attachment #2: Type: text/plain, Size: 487 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: definepagebreak: problem at the end of front, body & backmatter 2008-12-03 18:43 ` Bart C. Wise @ 2008-12-03 19:09 ` Wolfgang Schuster 2008-12-03 20:21 ` Bart C. Wise 0 siblings, 1 reply; 6+ messages in thread From: Wolfgang Schuster @ 2008-12-03 19:09 UTC (permalink / raw) To: mailing list for ConTeXt users Am 03.12.2008 um 19:43 schrieb Bart C. Wise: > > 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]. > > > Thanks Wolfgang for your response. I'm having a little trouble > understanding your response, so let me tell you what I think you said. > \setuplayout should not be used to enable doublesided documents. > Because that option (\setuplayout[location=doublesided] is used to > control the location of your document on real paper. Is that correct? Yes. > If so, then I don't need to use the > \setuplayout[location=doublesided] option for the example. Correct? Yes. > > 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. > So I did the following with the above code: > % \setuplayout[location=doublesided] > \setuppagenumbering[ > location={footer,middle}, > alternative=doublesided, > option=doublesided, > style=\em\tfx, > way=bytext, > ] > What does the "option=doublesided" do? Do I need it? I'm not sure > where I found that one. \setuppagenumbering has no "option" parameter. > I still have the same problem with the last chapter in a division, > the headers and the footers print out. I also tried with/without the > "option=doublesided". Add, ConTeXt goes by default to the next right page after a sectionblock and insert the header and your pagebreak for the first chapter can't work because you're past the left page after the frontmatter you wanted to be empty. \setupsectionblock[frontpart][page=yes] \setupsectionblock[bodypart] [page=yes] \setupsectionblock[backpart] [page=yes] 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: definepagebreak: problem at the end of front, body & backmatter 2008-12-03 19:09 ` Wolfgang Schuster @ 2008-12-03 20:21 ` Bart C. Wise 0 siblings, 0 replies; 6+ messages in thread From: Bart C. Wise @ 2008-12-03 20:21 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 2244 bytes --] On Wednesday 03 December 2008 12:09:53 pm Wolfgang Schuster wrote: > Am 03.12.2008 um 19:43 schrieb Bart C. Wise: > > > 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]. > > > > Thanks Wolfgang for your response. I'm having a little trouble > > understanding your response, so let me tell you what I think you said. > > > > \setuplayout should not be used to enable doublesided documents. > > Because that option (\setuplayout[location=doublesided] is used to > > control the location of your document on real paper. Is that correct? > > Yes. > > > If so, then I don't need to use the > > \setuplayout[location=doublesided] option for the example. Correct? > > Yes. > > > > 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. > > > > So I did the following with the above code: > > % \setuplayout[location=doublesided] > > \setuppagenumbering[ > > location={footer,middle}, > > alternative=doublesided, > > option=doublesided, > > style=\em\tfx, > > way=bytext, > > ] > > What does the "option=doublesided" do? Do I need it? I'm not sure > > where I found that one. > > \setuppagenumbering has no "option" parameter. > > > I still have the same problem with the last chapter in a division, > > the headers and the footers print out. I also tried with/without the > > "option=doublesided". > > Add, ConTeXt goes by default to the next right page after > a sectionblock and insert the header and your pagebreak > for the first chapter can't work because you're past the > left page after the frontmatter you wanted to be empty. > > \setupsectionblock[frontpart][page=yes] > \setupsectionblock[bodypart] [page=yes] > \setupsectionblock[backpart] [page=yes] > > Wolfgang > Excellent! Thanks again for your patience and wealth of knowledge! Bart [-- Attachment #1.2: Type: text/html, Size: 11518 bytes --] [-- Attachment #2: Type: text/plain, Size: 487 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-12-03 20:21 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-12-02 14:43 definepagebreak: problem at the end of front, body & backmatter Bart C. Wise 2008-12-03 7:42 ` Bart C. Wise 2008-12-03 12:11 ` Wolfgang Schuster 2008-12-03 18:43 ` Bart C. Wise 2008-12-03 19:09 ` Wolfgang Schuster 2008-12-03 20:21 ` Bart C. Wise
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).