From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/719 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Headers and footers Date: Sun, 22 Aug 1999 22:01:32 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <37C0571C.5945215C@wxs.nl> References: <3.0.5.32.19990822004508.00b2adc0@mail.northcoast.com> <37BFF04D.3BEA705D@gmx.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035391563 26438 80.91.224.250 (23 Oct 2002 16:46:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:46:03 +0000 (UTC) Cc: David Arnold , ntg-context@ntg.nl Original-To: Tobias Burnus Xref: main.gmane.org gmane.comp.tex.context:719 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:719 Tobias Burnus wrote: > Hi David, > > > 2. On even pages (left-hand pages), I want the following: > > > > 202 Chapter 3. Gaussian Elimination > > > > 3. On odd pages (right-hand pages), I want the following: > > > > Section 2. A Most Versatile Algorithm 203 > > How about something like the following. (Note this isn't complete). > [Does someone know, which command gives you the chapter name and or number?] > > \setupheadertexts > [pagenumber][chapter] > [pagenumber][section] [chapter] gives you the name, [chapternumber] the number low level: \setupheadertexts [{\getmarking[chapter][first]}] etc and \pagenumber gives you the pagenumber, so guess what happens now: \setupheadertexts [{\getmarking[chapter][first] -- \pagenumber] > \setuphead > [chapter] > [header=empty] Indeed. You can even define specific headers, dutch example (copied): \definieertekst[hoofdstuk][voet][paginanummer] \stelkopin[hoofdstuk][hoofd=hoog,voet=hoofdstuk] \stelhoofdtekstenin[paginanummer] So here the pagenumber goes into middle of the header line but on chapter pages it goes into the footer. > > 1. I want no footers and no more than an inch of whitespace at the bottom > > of each page. > Something like \setuplayout[footer=0pt,bottom=1in,textheight=fit] > (Somehow doesn't textheight=fit not really work.) Because it is 'height'. > > Can I automate this to recognize the name and number of each new chapter > > and section? Or will I have to do this by hand for each chapter? In either > > case, how can I accomplish this in Context? > See above. I failed though to insert the number and a 'Chapter: '. > You could do something like [\pagenumber\hfill Chapter: > \WhichCommandGivesYouTheChapterName/Number?]. See earlier: \getmarking > > If I wanted, how could I underline each header? > \setupheader[after=\hairline] ? Or how about: \definebackground [top][text] [frame=off, bottomframe=on, offset=0pt, rulethickness=1pt] Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------