[NTG-context] Roman numeral page numbers produced in MKII

Tom Tom at tuxedo-press.com
Fri Mar 11 01:38:37 CET 2011


After posting the message about the following code not generating lower-case
Roman numeral page numbers, I tested the code with MKII and it works fine.
There must be a difference in how page number conversion is done between
MKII and MKIV.

\definehead [intro][chapter]
\setuphead  [intro][number=no]

\setuppagenumbering
     [state=start, 
      conversion=romannumerals, location=bottom]

\startsectionblockenvironment[frontpart]

\definecombinedlist [content][intro,chapter,section]

\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]

\stopsectionblockenvironment

\startsectionblockenvironment[backmatter]

\stopsectionblockenvironment

\starttext 
\setuppagenumber[state=start]

\startfrontmatter

%sample front matter
\input knuth

\completecontent[alternative=c,criterium=all]

\chapter{Preface}
\input knuth

\stopfrontmatter

\startbodymatter

\setuppagenumber[state=start,conversion=number,number=1]

\intro{Introduction}
\input knuth

\setupheadnumber[chapter][0] %resets first chapter number to 1
\setuppagenumbering
     [state=start, 
      conversion=numbers, location=bottom]

\chapter{I Was Born}
\input knuth

\chapter{I Observe}
\input knuth

\stopbodymatter

\startbackmatter

\stopbackmatter

\stoptext


Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com







More information about the ntg-context mailing list