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

Tom Tom at tuxedo-press.com
Fri Mar 11 19:04:41 CET 2011


I used to think I was of average intelligence but I can't figure out to do
the most basic thing in ConTeXt. My current problems with this simple code
are:

1. Front matter page numbers are not lower-case Roman numerals although they
are listed as such in the TOC.
2. The Introduction is not listed in the TOC.
3. Page numbering isn't reset to 1 in the bodymatter section.

Obviously, I'm not reading the correct documentation or am too stupid to
understand what I am reading.

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

\definestructureconversionset[frontpart:pagenumber][][romannumerals]
%pagenumbers in TOC not converted if frontmatter

\definestructureconversionset[bodymatter:pagenumber] [][numbers]
\setuplist[chapter][pageconversionset=pagenumber]
\setuplist[intro][pageconversionset=pagenumber]


\startstructureblockenvironment[frontmatter]
%whether frontpart or frontmatter seems to make no difference

\setuppagenumber[number=1]

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

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

\stopstructureblockenvironment

\startstructureblockenvironment[bodymatter]

\setuppagenumber[state=start,number=1]

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

\stopstructureblockenvironment

\startstructureblockenvironment[backmatter]

\stopstructureblockenvironment

\starttext 

\startfrontmatter % errors on startfrontpart

%sample front matter
\input knuth      %page numbers not being converted to Roman numerals

\completecontent[alternative=c,criterium=all]

\chapter{Preface}
\input knuth

\stopfrontmatter

\startbodymatter

\intro{Introduction}  %is not appearing in TOC
\input knuth          %page number not being set 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