ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
Subject: Re: Setting header texts (second)
Date: Wed, 31 Aug 2005 17:58:45 +0200	[thread overview]
Message-ID: <6faad9f005083108583cd6d78f@mail.gmail.com> (raw)
In-Reply-To: <431572C5.7090903@virgilio.it>

Jilani Khaldi wrote:
> Hi All,
> 
> Having set this header text:
> 
> \setupheadertexts
> [\vbox{\hbox{AAA}}
> \hbox{BBB}}}]
> [{CCC}]
> 
> the result is:
> AAA in the top left corner,
> BBB just under AAA
> CCC in the top right corner
> with the page number in the center
> 
> What I want to have is:
> 1. AAA = the title of the chapter
> 2. BBB = the title of the section
> 3. CCC in the top right corner but containing the page number

You already got the answer to this one I guess, just to sum it up:

\setupheadertexts
[{\framed[align=flushleft,frame=off,offset=0pt]{\getmarking[chapter]\crlf\getmarking[section]}}]
[pagenumber] % or empty

% and one of the two commands:
%-----
% this one overwrites the second argument above
%\setuppagenumbering[location={header,right}]
% this one only removes page number from the center
%\setuppagenumbering[location=]

> 4. Just below all this a long line to separate the page header from its
> content

\setupbackgrounds[header][text][frame=off,bottomframe=on]

(You probably have to adjust some parameters in \setuplayout: header
height and distance between header and text.)

Mojca

  parent reply	other threads:[~2005-08-31 15:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-26 10:01 bug with active :!;? Olivier
2005-08-29 10:50 ` Hans Hagen Outside
2005-08-29 13:20   ` BILLET Olivier
2005-08-29 13:40     ` Hans Hagen
2005-08-31  7:38     ` Hans Hagen
2005-08-31  8:19       ` Taco Hoekwater
2005-08-31  8:55       ` Setting header texts Jilani Khaldi
2005-08-31  9:05         ` Setting header texts (second) Jilani Khaldi
2005-08-31  9:19           ` Hans Hagen
2005-08-31 11:23             ` Jilani Khaldi
2005-08-31 15:58           ` Mojca Miklavec [this message]
2005-08-31 21:25             ` Setting a line on the header Jilani Khaldi
     [not found] <20050831100002.C30DF12837@ronja.ntg.nl>
2005-08-31 12:54 ` Setting header texts (second) Duncan Hothersall

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=6faad9f005083108583cd6d78f@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --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).