From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2107 Path: main.gmane.org!not-for-mail From: "Mr. Wang Lei" Newsgroups: gmane.comp.tex.context Subject: Re: question about header Date: Thu, 25 May 2000 20:33:16 +0800 (CST) Sender: owner-ntg-context@let.uu.nl Message-ID: References: <3.0.6.32.20000525001527.008356d0@pop.wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1035392895 5977 80.91.224.250 (23 Oct 2002 17:08:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:08:15 +0000 (UTC) Cc: NTG-ConTeXt Original-To: Hans Hagen In-Reply-To: <3.0.6.32.20000525001527.008356d0@pop.wxs.nl> Xref: main.gmane.org gmane.comp.tex.context:2107 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2107 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 and even page > >header text is , 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 ------------------------------------------------------------------------