On Fri, 23 Oct 2009, Aditya Mahajan wrote:
On Wed, 21 Oct 2009, Bryant Eastham wrote:
And I would still love a short, working example based on previous request.
It seems that my previous reply was eaten by the server downtime. Here it is again, completing the missing step suggested by Alan.
% missing setups to: % 1. frontmatter pagenumbering conversion=romannumerals \setupuserpagenumber[way=byblock] \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \setupuserpagenumber[numberconversionset=pagenumber]
% 2. bodymatter pagenumbering "chapter-page" % 3. reset pagenumber for each chapter \setupuserpagenumber [way=bychapter, prefix=yes, prefixset=chapter, prefixsegments=2:2, % so that numbers come correctly in TOC prefixconnector=-, ]
% 4. add blank pages if necessary to start chapters on odd pages. % 5. Page number in top margin \setuppagenumbering[location={header,margin},alternative=doublesided]
The above solution was for MkIV. For completeness, this is how you will do the same with MkII. I don't know how to get the page numbers correct in the TOC in this case. % 1. frontmatter pagenumbering conversion=romannumerals \startsectionblockenvironment[frontpart] \setuppagenumbering[conversion=romannumerals] \stopsectionblockenvironment % 2. bodymatter pagenumbering "chapter-page" % 3. reset pagenumber for each chapter \startsectionblockenvironment[bodypart] \setuppagenumber[number=1] \setuppagenumbering[way=bychapter, chapternumber=yes] \stopsectionblockenvironment % 4. add blank pages if necessary to start chapters on odd pages. % 5. Page number in top margin \setuppagenumbering[location={header,margin},alternative=doublesided] Aditya