From: Hans Hagen <pragma@wxs.nl>
Subject: Re: a line under the header
Date: Thu, 21 Aug 2003 23:55:53 +0200 [thread overview]
Message-ID: <5.2.0.9.1.20030821235503.0128e130@server-1> (raw)
In-Reply-To: <180803.3b8449bf4988c379084cac17e5321392@alech.de>
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
-------------------------------------------------------------------------
prev parent reply other threads:[~2003-08-21 21:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-14 12:28 Helmut Schwertner
2003-08-14 20:36 ` Henning Hraban Ramm
2003-08-18 11:31 ` Alexander Klink
2003-08-18 21:00 ` Henning Hraban Ramm
2003-08-21 21:55 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5.2.0.9.1.20030821235503.0128e130@server-1 \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).