From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/33773 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Some questions about context Date: Sat, 10 Mar 2007 08:45:01 +0100 Message-ID: <20070310084501.e74e5855.schuster.wolfgang@googlemail.com> References: <555BA3F5-E9C0-4D60-AC52-987D8328541D@csiro.au> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1173512737 2116 80.91.229.12 (10 Mar 2007 07:45:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 10 Mar 2007 07:45:37 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 10 08:45:31 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1HPwGe-00022C-Bk for gctc-ntg-context-518@m.gmane.org; Sat, 10 Mar 2007 08:45:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 187061FC03; Sat, 10 Mar 2007 08:40:42 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25119-01-3; Sat, 10 Mar 2007 08:40:32 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DD6AB1FC06; Sat, 10 Mar 2007 08:40:31 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 860331FC06 for ; Sat, 10 Mar 2007 08:40:29 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25062-02-2 for ; Sat, 10 Mar 2007 08:40:23 +0100 (CET) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by ronja.ntg.nl (Postfix) with ESMTP id 63C501FC03 for ; Sat, 10 Mar 2007 08:40:23 +0100 (CET) Original-Received: by ug-out-1314.google.com with SMTP id m2so1719413uge for ; Fri, 09 Mar 2007 23:45:05 -0800 (PST) Original-Received: by 10.66.244.10 with SMTP id r10mr11586161ugh.1173512705871; Fri, 09 Mar 2007 23:45:05 -0800 (PST) Original-Received: from eve ( [83.242.62.52]) by mx.google.com with ESMTP id w5sm12336501mue.2007.03.09.23.45.03; Fri, 09 Mar 2007 23:45:04 -0800 (PST) In-Reply-To: <555BA3F5-E9C0-4D60-AC52-987D8328541D@csiro.au> X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.7; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:33773 Archived-At: On Wed, 7 Mar 2007 00:00:38 +1100 Robin Kirkham wrote: > Hi all, > > Moreover, how do you get a rule in the header that extends from the > left of the left margin, right across to the right of the right > margin (including the gaps in between)? > > Cheers, > > Robin > > On 06/03/2007, at 10:00 PM, ntg-context-request@ntg.nl wrote: > > > From: Oliver Buerschaper > > Date: 6 March 2007 9:19:23 PM > > To: mailing list for ConTeXt users > > Subject: Re: [NTG-context] Some questions about context > > > >> And another question (in other topic): how we can do lines at > >> header and > >> footer like fancyheaders in latex? > > > > For your headers try this: > > > > \setupheader > > [text] > > [after=\hrule] Hi Robin, I tried to make something working and came to the following three methods to draw a rule under the header at the whole pagewidth. If you use ConTeXts default layout with different margins you should use bigger values for the rulewidth than only pagewidth. \setuplayout[location=middle,cutspace=\backspace,width=middle] %\setuppapersize[A5][A4] %\showframe \startuseMPgraphic{headerrule} setbounds currentpicture to unitsquare xyscaled (\the\paperwidth,\the \headerheight); draw (0,0)--(\the\paperwidth,0); \stopuseMPgraphic \defineoverlay [headerrule] [\useMPgraphic{headerrule}] \defineoverlay [headerrule] [\vrule height\headerheight width0pt% \vrule width\paperwidth height 0.4pt\relax] \defineoverlay [headerrule] [{\framed[width=\paperwidth,height= \headerheight,frame=off,bottomframe=on]{}}] \setupbackgrounds [header] [text] [background=headerrule] \starttext \input knuth \stoptext Wolfgang