From: "Mr. Wang Lei" <lwang@Amath8.amt.ac.cn>
Cc: NTG-ConTeXt <ntg-context@ntg.nl>
Subject: Re: question about header
Date: Thu, 25 May 2000 20:33:16 +0800 (CST) [thread overview]
Message-ID: <Pine.GSO.4.21.0005252025230.939-100000@AMath13> (raw)
In-Reply-To: <3.0.6.32.20000525001527.008356d0@pop.wxs.nl>
On Thu, 25 May 2000, Hans Hagen wrote:
> At 09:38 AM 5/22/2000 +0800, Mr. Wang Lei wrote:
> >Hi,
> > I want to make odd page header text is <text odd> and even page
> >header text is <text even>, they are all placed in the middle the header.
> >when I use \setupheadertexts[text odd][text even]
> >or \setupheadertexts[text odd][][text even][], the result
> >always place the header in right and left other than middle and
> >the pagenumber displayed in the middle! how could I do?
>
> How about:
>
> \setupheadertexts[\hfill text odd \hfill][\hfill text even\hfill]
it doesn't work.
>
> > Another question is that I want put a line below the header,
> >so I use the background as follows:
> >
> >\setupbackgrounds[header][text][frame=off,bottomframe=on]
> >
> >the line appears, but even if in the chapter page which
> >I have disable the header and footer it also appears.
> >How can I let the line disappear in the first page of the
> >chapter?
>
> \setuplayout
> [margin=0cm] % otherwise funny side effect, I will correct that
>
> \setupheader
> [text]
> [after={\blackrule[width=\textwidth,height=0pt,depth=1pt]
>
> \setupheadertexts[oeps]
>
> \noheadersandfooters test \page test
>
> You can influence the distance with the height and distance of the header.
>
> For the moment a better alternative is:
>
> \setupheadertexts[{\framed[....]{some text}}]
>
AH, I use the
\setupheadertexts[{\framed[align=middle,frame=off, bottomframe=on]%
{odd header}}][]
[{\framed[align=middle,frame=off, bottomframe=on]%
{even header}}][]
can put the header in the middle of the header line and a bottom
line under the headers. but doing that may let context can not
recognize the key word such like "chapter", "section",etc.
when I using "chapter" instead of the above "even header" in the
\setupheadertexts commands, the result is that context put the
word "chapter" as the header in the even page other than the
real chapter title. How to solve this problem?
Wang
------------------------------------------------------------------------
Mr. Wang Lei Phone: 86-10-62616670
Email: lwang@amath8.amt.ac.cn
Institute of Applied Mathematics leiwang@btamail.net.cn
Chinese Academy of Science Address: P.O.Box 2734, Beijing, 100080
------------------------------------------------------------------------
next prev parent reply other threads:[~2000-05-25 12:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-22 1:38 Mr. Wang Lei
2000-05-24 22:15 ` Hans Hagen
2000-05-25 12:33 ` Mr. Wang Lei [this message]
2000-05-27 20:29 ` Hans Hagen
2000-05-30 12:49 ` Mr. Wang Lei
2000-05-30 15:15 ` Hans Hagen
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=Pine.GSO.4.21.0005252025230.939-100000@AMath13 \
--to=lwang@amath8.amt.ac.cn \
--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).