From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: Headers / footers. Enhancement requests?
Date: Sun, 20 Jan 2002 22:04:20 +0100 [thread overview]
Message-ID: <5.1.0.14.1.20020120215032.02e88b40@server-1> (raw)
In-Reply-To: <10416743699.20020116170612@bigfoot.com>
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
-------------------------------------------------------------------------
next prev parent reply other threads:[~2002-01-20 21:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-16 16:06 Giuseppe Bilotta
2002-01-17 13:35 ` Taco Hoekwater
2002-01-17 13:55 ` Re[2]: " Giuseppe Bilotta
2002-01-20 20:20 ` Hans Hagen
2002-01-21 15:27 ` Re[3]: " Giuseppe Bilotta
2002-01-22 10:09 ` Hans Hagen
2002-01-22 11:51 ` Re[4]: " Giuseppe Bilotta
2002-01-20 21:04 ` Hans Hagen [this message]
2002-01-21 15:03 ` Re[2]: " Giuseppe Bilotta
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.1.0.14.1.20020120215032.02e88b40@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).