[NTG-context] Am not getting Roman numeral page numbers in MKIV

Tom Tom at tuxedo-press.com
Thu Mar 10 22:37:28 CET 2011


The following code is intended to produce lower-case Roman numeral page
numbers for the first 3 pages before switching to Hindu-Arabic numerals
starting with the Introduction. However, I get Hindu-Arabic numerals instead
of the lower-case Roman numerals page numbers.

\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

\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