* Header-Footer-Layout @ 2012-09-23 14:07 Arne Runge 2012-10-02 9:09 ` Header-Footer-Layout Wolfgang Schuster 2012-10-07 16:37 ` Header-Footer-Layout Arne Runge 0 siblings, 2 replies; 3+ messages in thread From: Arne Runge @ 2012-09-23 14:07 UTC (permalink / raw) To: ntg-context Hi, I would like to have a doublesided layout with: - a titlepage with neither header nor footer, - a frontpart with pagesnumbers(left/right) in roman - a bodypart with pagesnumbers(left/right) in arabic - an appendix with pagesnumbers(left/right) in arabic - first page of a chapter should not have a header + underline - next page header(CHAPTER #: chapter) underlined - next page header(section) underlined - if there is no section then only the line. - if the next page is empty than only the pagenumber should be printed. Seems to be a common layout and I apologize for asking. Thanks in advance for any help. Regards, Arne My code: \mainlanguage[de] \setuppapersize[A4][A4] \setupsectionblock[frontpart][page=] \setupsectionblock[bodypart] [page=] \setupsectionblock[backpart] [page=] \setupsectionblock[appendix] [page=] \setuppagenumbering[alternative=doublesided] \setupheadertexts[] \setupheadertexts[\setups{text a}][][][\setups{text b}] \startsetups[text a] CHAPTER \getmarking[chapternumber]: \expanded{\uppercase{\fetchmark[chapter][first]}} \stopsetups \startsetups[text b] \getmarking[section] \stopsetups \setupheader[text][after=\hrule] \setuphead[chapter][header=empty] \setupfootertexts[][pagenumber] \starttext \startstandardmakeup \title{title} \stopstandardmakeup \startfrontmatter \setuppagenumbering[conversion=romannumerals] \completecontent \stopfrontmatter \startbodymatter \setuppagenumber[number=1] \chapter{body} bla \stopbodymatter \startappendices \chapter{appendix} code \stopappendices \stoptext ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Header-Footer-Layout 2012-09-23 14:07 Header-Footer-Layout Arne Runge @ 2012-10-02 9:09 ` Wolfgang Schuster 2012-10-07 16:37 ` Header-Footer-Layout Arne Runge 1 sibling, 0 replies; 3+ messages in thread From: Wolfgang Schuster @ 2012-10-02 9:09 UTC (permalink / raw) To: mailing list for ConTeXt users Am 23.09.2012 um 16:07 schrieb Arne Runge <arne_runge@gmx.de>: > Hi, > > I would like to have a doublesided layout with: > > - a titlepage with neither header nor footer, > - a frontpart with pagesnumbers(left/right) in roman > - a bodypart with pagesnumbers(left/right) in arabic > - an appendix with pagesnumbers(left/right) in arabic > > - first page of a chapter should not have a header + underline > - next page header(CHAPTER #: chapter) underlined > - next page header(section) underlined > > - if there is no section then only the line. > - if the next page is empty than only the pagenumber should be printed. > > Seems to be a common layout and I apologize for asking. > > Thanks in advance for any help. > > Regards, > > Arne Put the makeup environment in the front matter environment and remove the sectionblock settings. When you don’t want to start chapter at a right page you can add \setupsectionblock[page=yes] to your document. \setuppagenumbering[alternative=doublesided] \setupheadertexts[] \setupheadertexts[\setups{text a}][][][\setups{text b}] \startsetups[text a] CHAPTER \getmarking[chapternumber]: \WORD{\getmarking[chapter]} \stopsetups \startsetups[text b] \getmarking[section] \stopsetups \setupheader[text][after=\hrule] \setuphead[chapter][page={header,right},header=empty] \setupfootertexts[][pagenumber] \defineconversionset[frontpart:pagenumber][romannumerals][] \startsectionblockenvironment[bodypart] \setcounter[userpage][1] \stopsectionblockenvironment \starttext \startfrontmatter \startstandardmakeup[align=middle] {\tfd TITLE} \stopstandardmakeup \completecontent \stopfrontmatter \startbodymatter \chapter{Knuth} \dorecurse{12}{\input knuth\par} \stopbodymatter \startappendices \chapter{Zapf} \dorecurse{12}{\input zapf\par} \stopappendices \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Header-Footer-Layout 2012-09-23 14:07 Header-Footer-Layout Arne Runge 2012-10-02 9:09 ` Header-Footer-Layout Wolfgang Schuster @ 2012-10-07 16:37 ` Arne Runge 1 sibling, 0 replies; 3+ messages in thread From: Arne Runge @ 2012-10-07 16:37 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 3837 bytes --] > Am 23.09.2012 um 16:07 schrieb Arne Runge<arne_runge at gmx.de <http://www.ntg.nl/mailman/listinfo/ntg-context>>: > > >/ Hi, > />/ > />/ I would like to have a doublesided layout with: > />/ > />/ - a titlepage with neither header nor footer, > />/ - a frontpart with pagesnumbers(left/right) in roman > />/ - a bodypart with pagesnumbers(left/right) in arabic > />/ - an appendix with pagesnumbers(left/right) in arabic > />/ > />/ - first page of a chapter should not have a header + underline > />/ - next page header(CHAPTER #: chapter) underlined > />/ - next page header(section) underlined > />/ > />/ - if there is no section then only the line. > />/ - if the next page is empty than only the pagenumber should be printed. > />/ > />/ Seems to be a common layout and I apologize for asking. > />/ > />/ Thanks in advance for any help. > />/ > />/ Regards, > />/ > />/ Arne > / > > Put the makeup environment in the front matter environment and remove the sectionblock settings. > > When you don't want to start chapter at a right page you can add \setupsectionblock[page=yes] to your document. > > \setuppagenumbering[alternative=doublesided] > > \setupheadertexts[] > \setupheadertexts[\setups{text a}][][][\setups{text b}] > > \startsetups[text a] > CHAPTER \getmarking[chapternumber]: \WORD{\getmarking[chapter]} > \stopsetups > > \startsetups[text b] > \getmarking[section] > \stopsetups > > \setupheader[text][after=\hrule] > > \setuphead[chapter][page={header,right},header=empty] > > \setupfootertexts[][pagenumber] > > \defineconversionset[frontpart:pagenumber][romannumerals][] > > \startsectionblockenvironment[bodypart] > \setcounter[userpage][1] > \stopsectionblockenvironment > > \starttext > > \startfrontmatter > > \startstandardmakeup[align=middle] > {\tfd TITLE} > \stopstandardmakeup > > \completecontent > > \stopfrontmatter > > \startbodymatter > > \chapter{Knuth} > > \dorecurse{12}{\input knuth\par} > > \stopbodymatter > > \startappendices > > \chapter{Zapf} > > \dorecurse{12}{\input zapf\par} > > \stopappendices > > \stoptext > > Wolfgang Thank you Wolfgang for the reply. If I compile your code then I get ! Undefined control sequence. l.20 \defineconversionset [frontpart:pagenumber][romannumerals][] and if I comment this line, I get ! Missing number, treated as zero. and if I comment \setcounter[userpage][1] then - page 4 has a header line, which I don't like - page 7 or 11 has not the marking Knuth respectively Zapf - useless page 13 at the end of the document I guess that's because I don't use the latest version. I use context_2012.05.30.2012061, TeXExec | version 6.2.1 - 1997-2009 - PRAGMA ADE/POD I finally came up with the following code, which does it for me. \setuppagenumbering[alternative=doublesided,location=] \setupheadertexts[] \setupheadertexts[\setups{text a}][][][\setups{text b}] \startsetups[text a] CHAPTER \getmarking[chapternumber]: \expanded{\uppercase{\fetchmark[chapter][first]}} \stopsetups \startsetups[text b] \getmarking[section] \stopsetups \setupfootertexts[][pagenumber] \setupheader[text][after=\hrule] \setuphead[chapter][header=empty] \setupsectionblock[frontpart][ before={\setuppagenumbering[conversion=romannumerals]}, after={\page[yes,header,right]}] \setupsectionblock[bodypart][after={\page[yes,header,right]}] \setupsectionblock[appendix][after={\page[yes,header,right]}] \setupsectionblock[backpart][after={\page[yes,header,right]}] \starttext \startfrontmatter \startstandardmakeup \title{title} \stopstandardmakeup \completecontent \stopfrontmatter \startbodymatter \setuppagenumber[number=1] \chapter{body} \dorecurse{10}{\input knuth} \stopbodymatter \startappendices \chapter{appendix} code \input knuth \stopappendices \page[stop] \stoptext Arne [-- Attachment #1.2: Type: text/html, Size: 4917 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-07 16:37 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-09-23 14:07 Header-Footer-Layout Arne Runge 2012-10-02 9:09 ` Header-Footer-Layout Wolfgang Schuster 2012-10-07 16:37 ` Header-Footer-Layout Arne Runge
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).