ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Page number on 'chapter' pages
@ 2007-02-02  0:46 Confused Scientist
  2007-02-05 16:57 ` Dave
  0 siblings, 1 reply; 2+ messages in thread
From: Confused Scientist @ 2007-02-02  0:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1337 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1751 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Page number on 'chapter' pages
  2007-02-02  0:46 Page number on 'chapter' pages Confused Scientist
@ 2007-02-05 16:57 ` Dave
  0 siblings, 0 replies; 2+ messages in thread
From: Dave @ 2007-02-05 16:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> \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

The problem is with the two '\noheaderandfooterlines' lines.  Replaced
with '\setupheader[state=empty]'  and everything works fine.

Dave

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-05 16:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-02  0:46 Page number on 'chapter' pages Confused Scientist
2007-02-05 16:57 ` Dave

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).