ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: chapter page question
Date: Sat, 14 Feb 2009 13:23:51 +0100	[thread overview]
Message-ID: <43A79DD5-7F71-41EC-8A79-F4B8D6E240ED@gmail.com> (raw)
In-Reply-To: <326847810902140357h575596f3obc1699d121e00ed6@mail.gmail.com>


Am 14.02.2009 um 12:57 schrieb Alan Stone:

>>> What's the way to test whether a page is a (start of a new)  
>>> chapter page ?
>>> Didn't find it on&offline.
>>
>> Why and for what do you need this information?
>
> To put different text in the margin/edge top/header/... whether a  
> page is a
> chapter page or not.

\setupheadertexts[\doifoddpageelse{right page}{left page}]

\definetext[chapter][header][chapter page]

% The \definetext command works like \setup(header/footer/...)texts and
% has 3–7 arguments, the first argument is a keyword (you can use  
whatever
% you want, the second is the location of the text and all other  
arguments
% are reseved for the content.

\setuphead
   [chapter]
   [header=chapter]

\starttext
\dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\par}}
\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2009-02-14 12:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-14 10:46 Alan Stone
2009-02-14 10:57 ` Wolfgang Schuster
2009-02-14 11:57   ` Alan Stone
2009-02-14 12:23     ` Wolfgang Schuster [this message]
2009-02-14 13:14       ` Alan Stone
2009-02-14 13:40         ` Wolfgang Schuster
2009-02-14 14:33           ` Alan Stone
2009-02-14 14:47             ` Wolfgang Schuster
2009-02-14 15:02               ` Alan Stone
2009-02-14 18:17         ` Alan Stone
2009-02-14 18:28           ` Wolfgang Schuster
2009-02-14 19:17             ` Alan Stone
2009-02-14 19:25               ` Wolfgang Schuster
2009-02-14 19:26       ` Alan Stone
2009-02-15 10:04         ` Wolfgang Schuster
2009-02-15 12:59           ` Alan Stone

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=43A79DD5-7F71-41EC-8A79-F4B8D6E240ED@gmail.com \
    --to=schuster.wolfgang@googlemail.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).