From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/33092 Path: news.gmane.org!not-for-mail From: "Confused Scientist" Newsgroups: gmane.comp.tex.context Subject: Page number on 'chapter' pages Date: Thu, 1 Feb 2007 19:46:04 -0500 Message-ID: <7a884c7c0702011646x7bd2e65bw3076098865cd524@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0072401719==" X-Trace: sea.gmane.org 1170377193 30133 80.91.229.12 (2 Feb 2007 00:46:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Feb 2007 00:46:33 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 02 01:46:26 2007 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 1HCmZN-0003Pk-9C for gctc-ntg-context-518@m.gmane.org; Fri, 02 Feb 2007 01:46:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3EB0821A; Fri, 2 Feb 2007 01:45:58 +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 00613-02; Fri, 2 Feb 2007 01:45:48 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7E43F216; Fri, 2 Feb 2007 01:45:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 328B3216 for ; Fri, 2 Feb 2007 01:45:45 +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 01250-01-2 for ; Fri, 2 Feb 2007 01:45:39 +0100 (CET) Original-Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.226]) by ronja.ntg.nl (Postfix) with ESMTP id 6DAD3204 for ; Fri, 2 Feb 2007 01:45:39 +0100 (CET) Original-Received: by nz-out-0506.google.com with SMTP id z3so629845nzf for ; Thu, 01 Feb 2007 16:46:04 -0800 (PST) Original-Received: by 10.65.93.18 with SMTP id v18mr4990152qbl.1170377164194; Thu, 01 Feb 2007 16:46:04 -0800 (PST) Original-Received: by 10.65.122.12 with HTTP; Thu, 1 Feb 2007 16:46:04 -0800 (PST) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:33092 Archived-At: --===============0072401719== Content-Type: multipart/alternative; boundary="----=_Part_6790_4047965.1170377164157" ------=_Part_6790_4047965.1170377164157 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I'm using ConTeXt to layout my phd thesis and I need to follow some rather strict rules. One of these is that every page must be numbered. I'm having some trouble adding numbers to the page where the chapter starts and the preceding page (where I place a famous quotation). Below are the definitions in my environment. Any ideas on how to add page numbers to these pages? Thanks, Dave %%% cut \setuppagenumbering[ alternative=doublesided, style={\sc}, location={footer, marginedge}, partnumber=no, way=bytext] %%% Formal title, Chapter #: Title \definetext[chapter][footer][pagenumber] \setuphead [chapter] [command=\MyChapterText, style={\switchtobodyfont[UtopiaTitling, 16pt]\sc}, placehead=yes, color=black, number=yes, continue=no, distance=0pt, page=, header=nomarking, footer=chapter, distance=0pt, before=\setups{chapter:before}] \def\MyChapterText#1#2% {\vbox to 35mm \bgroup{\leftaligned{\vbox{\headtext{chapter} #1\blank#2}}}\vss\egroup} \setupheadtext[chapter=Chapter] \startsetups [chapter:before] \page[left] \noheaderandfooterlines \vbox to 35mm{} \vbox{\blank \startalignment[left,nothyphenated] \noindent \setups[chapter:quote] \stopalignment} \resetsetups[quote:text] \page[right] \noheaderandfooterlines \stopsetups %%% cut ------=_Part_6790_4047965.1170377164157 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all,
I'm using ConTeXt to layout my phd thesis and I need to follow some rather strict rules.  One of these is that every page must be numbered.  I'm having some trouble adding numbers to the page where the chapter starts and the preceding page (where I place a famous quotation).  Below are the definitions in my environment.

Any ideas on how to add page numbers to these pages?

Thanks,
Dave

%%% cut

\setuppagenumbering[
  alternative=doublesided,
  style={\sc},
  location={footer, marginedge},
  partnumber=no,
  way=bytext]

%%% Formal title, Chapter #: Title
\definetext[chapter][footer][pagenumber]

\setuphead
  [chapter]
  [command=\MyChapterText,
   style={\switchtobodyfont[UtopiaTitling, 16pt]\sc},
   placehead=yes,
   color=black,
   number=yes,
   continue=no,
   distance=0pt,
   page=,
   header=nomarking,
   footer=chapter,
   distance=0pt,
   before=\setups{chapter:before}]

\def\MyChapterText#1#2%
  {\vbox to 35mm
    \bgroup{\leftaligned{\vbox{\headtext{chapter} #1\blank#2}}}\vss\egroup}
\setupheadtext[chapter=Chapter]

\startsetups [chapter:before]
  \page[left]
  \noheaderandfooterlines
  \vbox to 35mm{}
  \vbox{\blank
  \startalignment[left,nothyphenated]
    \noindent \setups[chapter:quote]
  \stopalignment}
  \resetsetups[quote:text]
  \page[right]
  \noheaderandfooterlines
\stopsetups

%%% cut ------=_Part_6790_4047965.1170377164157-- --===============0072401719== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============0072401719==--