From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47434 Path: news.gmane.org!not-for-mail From: Alan Stone Newsgroups: gmane.comp.tex.context Subject: Re: chapter page question Date: Sat, 14 Feb 2009 20:26:42 +0100 Message-ID: <326847810902141126y5c27eeacw21e271c04f899310@mail.gmail.com> References: <326847810902140246p3d87929fx85d9c2b8f32ed2cb@mail.gmail.com> <8C5FB8F5-6F8D-4363-9181-DDFA3813C704@gmail.com> <326847810902140357h575596f3obc1699d121e00ed6@mail.gmail.com> <43A79DD5-7F71-41EC-8A79-F4B8D6E240ED@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0937637690==" X-Trace: ger.gmane.org 1234639788 26653 80.91.229.12 (14 Feb 2009 19:29:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2009 19:29:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 14 20:31:04 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LYQDw-0004Tx-BZ for gctc-ntg-context-518@m.gmane.org; Sat, 14 Feb 2009 20:30:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 901DA1FCF5; Sat, 14 Feb 2009 20:29:26 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23623-02-2; Sat, 14 Feb 2009 20:28:19 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0748F1FD2D; Sat, 14 Feb 2009 20:28:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 408891FCA2 for ; Sat, 14 Feb 2009 20:28:18 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21758-03 for ; Sat, 14 Feb 2009 20:27:33 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by ronja.ntg.nl (Postfix) with ESMTP id A99271FD2D for ; Sat, 14 Feb 2009 20:26:43 +0100 (CET) Original-Received: from mail-ew0-f11.google.com (mail-ew0-f11.google.com [209.85.219.11]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1EJQgsT019605 for ; Sat, 14 Feb 2009 20:26:43 +0100 Original-Received: by ewy4 with SMTP id 4so1500372ewy.2 for ; Sat, 14 Feb 2009 11:26:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=gLr1cbicLARSNj7GKSN/AJYqKMLWA4KyXi+UpPk4Kog=; b=vernSfv0sdZRh5DdMPMwjJ6dX7LZ3v3+bshR6sQ0Y8GGZgmlxqUVPNwsc5QqAMeGca a9HgQhu8JhwhfAjJbXyQ4LpMzdtr7xsF4QQS/gw8czUSPsz1eaTlZB3AEGYggQFufbG8 s1jtoi+0ceqZ7yocrpGUQ7IIPWr8vNWetXqKg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=s8LUfQnkeSJ9k/7x+X10klTPqf/tKzVyRy0dijgjp5j1RqQlRPpN5EFuSVOxD0PKDH N3mzfbhmGB1Zpd2noYZm5Yy/7ilptZ/QePqNQeiHECTWD3TEbMJ0pikyiv/VojExM9W+ HyvVPQsYlT9QlABwTFiXnBKF5dXjN8j9P/kw4= Original-Received: by 10.210.59.3 with SMTP id h3mr2792484eba.122.1234639602552; Sat, 14 Feb 2009 11:26:42 -0800 (PST) In-Reply-To: <43A79DD5-7F71-41EC-8A79-F4B8D6E240ED@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.11; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 180017160 - 81db5770652b X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:47434 Archived-At: --===============0937637690== Content-Type: multipart/alternative; boundary=0015174bf1f4ef8ffa0462e5eefc --0015174bf1f4ef8ffa0462e5eefc Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I also would like to be able to choose a different font and/or fontsize (\switchtobodyfont[...]), style and/or color (\color[...]) for chapter pages' header area (margin/edge/text) and non-chapter pages. Hence, I guess... back to my initial question. Alan On Sat, Feb 14, 2009 at 1:23 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote: > > 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 i= s >> 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=967 arguments, the first argument is a keyword (you can use whate= ver > % you want, the second is the location of the text and all other argument= s > % are reseved for the content. > > \setuphead > [chapter] > [header=3Dchapter] > > \starttext > \dorecurse{2}{\chapter{Chapter #1}\dorecurse{20}{\input knuth\par}} > \stoptext > > > Wolfgang > --0015174bf1f4ef8ffa0462e5eefc Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
I also would like to be able to choose a different font and/or&nb= sp;fontsize (\switchtobodyfont[...]), style and/or color (\color[...]) for = chapter pages' header area (margin/edge/text) and non-chapter page= s.
 
Hence, I guess... back to my initial question.
 
Alan

On Sat, Feb 14, 2009 at 1:23 PM, Wolfgang Schust= er <schuster.wolfgang@googlemail.com> wrote:

Am 14.02.2009 um 12:57 schri= eb Alan Stone:=20


What's the way to test wheth= er 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.

\setupheadertex= ts[\doifoddpageelse{right page}{left page}]

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

% The \definetext com= mand works like \setup(header/footer/...)texts and
% has 3=967 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]
&nbs= p;[header=3Dchapter]

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


Wolfgang
--0015174bf1f4ef8ffa0462e5eefc-- --===============0937637690== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0937637690==--