From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6554 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Headers / footers. Enhancement requests? Date: Sun, 20 Jan 2002 22:04:20 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020120215032.02e88b40@server-1> References: <10416743699.20020116170612@bigfoot.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035397078 11626 80.91.224.250 (23 Oct 2002 18:17:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:17:58 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Giuseppe Bilotta In-Reply-To: <10416743699.20020116170612@bigfoot.com> Xref: main.gmane.org gmane.comp.tex.context:6554 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6554 At 02:06 AM 1/17/2002 +0100, Giuseppe Bilotta wrote: >(1) ability to define left, middle and right header/footer-texts: >currently I can define EITHER left & right OR middle, but not all >of them. Maybe a syntax like > >\setupheadertexts[left=pagenumber,right=chapter,middle=date] > >in addition to the preexistent one. see other mail >(2) frame stuff attached to the header and footer both as a whole >and as separate 'blocks' (left, middle, right). > >I need (2) basically to add a rule under the header, which by >now I must add using something like > >\def\HFLine{\hskip\marginwidth\hskip\margindistance% > \vrule height 10pt depth -9.8pt width\textwidth} >\setupheader[after=\HFLine] > >which doesn't sound very ConTeXtish. Boxing/framing would allow >for interesting effects with not too much effort. Of course we can cook up an unreadable syntax for defining such lines, but then your friends start asking for other things, so how aboutthe followingm very contexy way: \setuplayout [margin=1cm,header=14pt,headerdistance=6pt] \setupheadertexts [oeps][oeps] \startuseMPgraphic{page} StartPage ; draw llcorner Field[LeftMargin][Header] -- lrcorner Field[Text] [Header] ; StopPage ; \stopuseMPgraphic \defineoverlay[page][\useMPgraphic{page}] \setupbackgrounds[page][background=page] \starttext \input tufte \stoptext this way you can make any line (straight, bend, with ornaments, etc) you want Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- fall-back web server: www.pragma-pod.nl -------------------------------------------------------------------------