On Thu, 2001-10-11 at 21:52, Hans Hagen wrote:
> At 01:42 PM 10/11/2001 +1300, Adam Warner wrote:
> 
> >\definetext[chapter][footer][pagenumber]
> >\setuphead[chapter][header=high,footer=chapter,page=yes]
> >
> >
> >This removes the header from the first page of a chapter and places a
> >page number in the bottom middle of the page.
> >
> >All other pages have the chapter title in small caps (sc) on the left
> >with the page number on the right of the header.
> >
> >What I can't figure out is how to make the chapter title in the headers
> >"midaligned", like this:
> 
> the answer is here already:
> 
> \setupheadertexts[chapter]
> 
> so, one arg means in the middle, two means left/right, four means swapping

Hans, that unfortunately makes the RHS header page numbers _disappear_
(I had already tried your suggestion. The problem is I would like two
elements in the header not one).

Here are the two commands I'm dealing with:

\setuppagenumbering[location={header,right}]
\setupheadertexts[chapter]

Now if I remove "header" from setuppagenumbering the page numbers do
indeed appear on the right but at the _bottom_ of the page, not inline
with the header.

Here is my (new) code:

\setuppagenumbering[location={header,right}]
\setupheader[style=\sc]
\setupheadertexts[chapter] %[pagenumber] tacked on would make it left/right

\definetext[chapter][footer][pagenumber]
\setuphead[chapter][style=\ss\bfd,header=high,footer=chapter,page=yes]
\setuphead[section][style=\ss\bf]


Thus it appears that "two means left/right" doesn't allow "two means
centre/right".

I'm certainly not expecting you to patch it. I only asked how to do it
using standard ConTeXt commands because I thought I'd missing something.

Regards,
Adam

Reply via email to