From: Hans Hagen <pragma@wxs.nl>
Subject: Re: setup of headers
Date: Mon, 04 Oct 2004 18:35:10 +0200 [thread overview]
Message-ID: <41617BBE.1080908@wxs.nl> (raw)
In-Reply-To: <450FE4F3-15FA-11D9-B9F5-000A95B9ADE2@uni-bonn.de>
Thomas A.Schmitz wrote:
> Hi,
>
> found an old thread in the list archives, Adam Warner and Hans, but
> there was no real conclusion. Can this be done in ConTeXt? I want the
> following setup for my headers: mirror doublesided, on the even pages
> pagenumber leftaligned, chaptertitle midaligned; odd pages sectiontitle
> midaligned, pagenumber rightaligned; like so:
>
> 9______chapter______ || ______section______10
>
> If I am not completely mistaken, setupheadertexts takes either one
> argument (identical header fo all pages, midaligned) or two (identical
> header for all pages, rightaligned/leftaligned) or four (mirroring
> even/odd headers, rightaligned/leftaligned). I think what we need here
> would be for \setupheadertexts to accept SIX arguments:
>
> \setupheadertexts[even left][even middle][even right][odd left][odd
> middle][odd right]
this is the readable way:
\showframe
\setuppagenumbering[alternative=doublesiddd]
\setupheadertexts[]
\setupheadertexts[\setups{text a}][][][\setups{text b}]
\startsetups[text a]
\rlap{\pagenumber}
\hfill
\getmarking[chapter]
\hfill
\llap{whatever}
\stopsetups
\startsetups[text b]
\rlap{whatever}
\hfill
\getmarking[section]
\hfill
\llap{\pagenumber}
\stopsetups
\starttext
\chapter{test chapter} \page \section{test section}
\stoptext
(it's up to you to submit it into the wiki)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
next prev parent reply other threads:[~2004-10-04 16:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-04 11:41 Thomas A.Schmitz
2004-10-04 16:35 ` Hans Hagen [this message]
2004-10-04 17:43 ` Thomas A.Schmitz
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=41617BBE.1080908@wxs.nl \
--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).