[NTG-context] How to not reset page numbers with a new part?

Wolfgang Schuster schuster.wolfgang at googlemail.com
Wed Feb 13 11:12:22 CET 2008


On Feb 12, 2008 11:33 PM, Bart Wise <bntgcontext at wiseguysweb.com> wrote:
> Willi,
>
> I tried that and it did do what I wanted.  My book has frontmatter and
> bodymatter.  The page numbering will start at 1 on the title page, displayed
> in roman numerals.  And then when the bodymatter is entered, the numbering
> should get reset to 1.  However, when I did a "way=bytext", I could not reset
> the numbering to 1 when I was in the bodymatter section.
>
> Any more hints?
>
> Just for clarity sake,  here's some sample code of what I'm trying to do:
>
> \enablemode[doublesided]
>
> \setuppagenumbering[
>     location={footer,middle},
>     alternative=doublesided,
>     partnumber=no,
>     style=\em\tfx,
>     way=bytext]
>
> \starttext
>
> \startfrontmatter
> \setuppagenumbering[conversion=romannumerals]
>
> \startstandardmakeup[headerstate=none]
> Half-Title Here
> \stopstandardmakeup
>
> \startstandardmakeup[doublesided=no]
> Title Here
> \stopstandardmakeup
>
> \startstandardmakeup[page=no]
> Copyright here
> \stopstandardmakeup
>
> \chapter{Preface}  \dorecurse{10}{\input tufte  }
> \stopfrontmatter
>
> \startbodymatter
> \setuppagenumbering[conversion=]
> \setuppagenumbering[number=1]

\setuppagenumber[number=1]

> \part{Part One}
> \chapter{first}  \dorecurse{10}{\input tufte  }
> \chapter{second} \dorecurse{10}{\input davis  }
> \part{Part Two}
> \chapter{third}  \dorecurse{10}{\input zapf   }
> \chapter{fourth} \dorecurse{10}{\input bryson }
> \stopbodymatter
>
> \stoptext

Wolfgang


More information about the ntg-context mailing list