From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12951 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: a line under the header Date: Thu, 21 Aug 2003 23:55:53 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <5.2.0.9.1.20030821235503.0128e130@server-1> References: <08A51E5D-CE97-11D7-8269-0030659899AA@fiee.net> <08A51E5D-CE97-11D7-8269-0030659899AA@fiee.net> <180803.3b8449bf4988c379084cac17e5321392@alech.de> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1061505390 26774 80.91.224.253 (21 Aug 2003 22:36:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2003 22:36:30 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Fri Aug 22 00:36:28 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19py2d-0006nr-00 for ; Fri, 22 Aug 2003 00:36:27 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 9154010B76; Fri, 22 Aug 2003 00:36:24 +0200 (MEST) Original-Received: from mail.solcon.net (mail.solcon.net [212.45.33.5]) by ref.ntg.nl (Postfix) with ESMTP id E432910B62 for ; Fri, 22 Aug 2003 00:12:29 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mail.solcon.net (8.11.6/8.9.3) with ESMTP id h7LMCIc24966 for ; Fri, 22 Aug 2003 00:12:18 +0200 Original-Received: from laptop-3.wxs.nl (laptop-3.pragma-net [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 6A223219E2 for ; Fri, 22 Aug 2003 00:12:18 +0200 (CEST) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Original-To: ntg-context@ntg.nl In-Reply-To: <180803.3b8449bf4988c379084cac17e5321392@alech.de> Original-References: <08A51E5D-CE97-11D7-8269-0030659899AA@fiee.net> <08A51E5D-CE97-11D7-8269-0030659899AA@fiee.net> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:12951 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12951 At 13:31 18/08/2003 +0200, Alexander Klink wrote: >On Thu, Aug 14, 2003 at 10:36:51PM +0200, Henning Hraban Ramm wrote: > > In ConTeXt it's useful if you can think around some edges: > > Such a line is a frame with only one frame line. > > This "frame" forms the background of your header. > > Ergo: > > \setupbackgrounds [header][text][frame=off, bottomframe=on] > > \setupbackgrounds [footer][text][frame=off, topframe=on] >I was going to ask exactly the same question. Unluckily, what you >did here does not work very well for me - the line is quite below >the header text, I would really like to have it closer... >\setupheader[after={\hairline}] does not work as the hairline >is not below the text but starts at the left border... >Maybe someone got another idea? \startuniqueMPgraphic{nice} draw bottomboundary OverlayBox leftenlarged 6pt rightenlarged 6pt shifted (0,.75HeaderHeight) ; setbounds currentpicture to OverlayBox ; % forces dimensions \stopuniqueMPgraphic \defineoverlay[nice][\uniqueMPgraphic{nice}] \setupbackgrounds[header][text][background=nice] \starttext \input ward \stoptext I added a couple of shifts and enlargements to play with 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 ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------