ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Page numbering and first page
@ 2008-08-05  9:20 Eric DÉTREZ
  2008-08-05  9:49 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Eric DÉTREZ @ 2008-08-05  9:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello

Is it any way to get a different page numbering for the first page  
(and different heads and foots).
I used to do in plain tex with a test :
*********************************************
\newif\ifpageun

\ifnum\pageno=1 \pageuntrue \else \pageunfalse \fi

\footline={\ifpageun \hfil \global \pageunfalse
                    \else \numpage=\pageno \advance\numpage by \decale
                              \ifodd\numpage\rm \the\nom \hfill --page  
\the\numpage--
                              \else \rm --page \the\numpage--\hfill\the 
\nom
                             \fi
                    \fi}
*********************************************
(names are french)
but maybe there is a simpler way in Context.
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: Page numbering and first page
  2008-08-05  9:20 Page numbering and first page Eric DÉTREZ
@ 2008-08-05  9:49 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2008-08-05  9:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Aug 5, 2008 at 11:20 AM, Eric DÉTREZ <ericd13@mac.com> wrote:
> Hello
>
> Is it any way to get a different page numbering for the first page
> (and different heads and foots).
> I used to do in plain tex with a test :
> *********************************************
> \newif\ifpageun
>
> \ifnum\pageno=1 \pageuntrue \else \pageunfalse \fi
>
> \footline={\ifpageun \hfil \global \pageunfalse
>                    \else \numpage=\pageno \advance\numpage by \decale
>                              \ifodd\numpage\rm \the\nom \hfill --page
> \the\numpage--
>                              \else \rm --page \the\numpage--\hfill\the
> \nom
>                             \fi
>                    \fi}
> *********************************************
> (names are french)
> but maybe there is a simpler way in Context.

Adapt this:

\startsectionblockenvironment[frontpart]
\setuppagenumbering[location=footer]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
\setuppagenumbering[location=header]
\stopsectionblockenvironment

\starttext

\startfrontmatter
\input tufte
\stopfrontmatter

\startbodymatter
\dorecurse{12}{\input knuth\par}
\stopbodymatter

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


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

end of thread, other threads:[~2008-08-05  9:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-05  9:20 Page numbering and first page Eric DÉTREZ
2008-08-05  9:49 ` Wolfgang Schuster

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