# Book style page numbering with ConTeXt

1. I would like to set the numbering like

• Cover page = show no page number
• TOC = roman page numbers
• Body= arabic page numbers

Many people have previously asked similar question like Page numbers (Roman number and Arabic numerals) in ConTeXt, however the answers seems to work with when we rely on default page numbering style.

However when I modify the template shown in the above example with \setupfootertext, the numbering stops working. Below is the tex file.

2. Looking to hide the footer till I reach the body

3. Have footer, with alternative pages showing the title and the chapter name. Both pages with arabic numbers.

.

% Template from the line provide above
\definestructureconversionset [frontpart:pagenumber] [] [romannumerals]

\startsectionblockenvironment [bodypart]
\setcounter [userpage] [1]
\stopsectionblockenvironment

\setuppagenumbering[location=,alternative=doublesided]

\setupfootertexts[\setups{text right}][][][\setups{text left}]

\startsetups[text right]
\rlap{}
\hfill
\bf {\sl Title goes here }
\hfill
\llap{\pagenumber}
\stopsetups

\startsetups[text left]
\rlap{\pagenumber}
\hfill
\bf \cap{ Chapter \getmarking[chapternumber] }  \getmarking[chapter]
\hfill
\llap{}
\stopsetups
\starttext
\startstandardmakeup
Cover page
\stopstandardmakeup
\startfrontmatter
\completecontent
\stopfrontmatter

\startbodymatter

\section[production]{Production}
Production is a two part process.
\section[background]{Background}

\stopbodymatter

\stoptext

• Just saw Roman numeral numbering for introductions. Would have a look if book class would help. – resp78 Sep 11 '14 at 13:58
• Change \pagenumber to \userpagenumber. – Aditya Sep 11 '14 at 15:57
• @Aditya Want to make that an answer and get it off the unanswered list? Thanks. – Johannes_B Nov 26 '14 at 15:00
• @Johannes_B: Done. – Aditya Nov 27 '14 at 21:25

ConTeXt has two notions of page numbers: The real page number (accessed using \pagenumber) and the user page number (accessed using \userpagenumber). The userpagenumber is meant for what you are looking for (different page numbering in frontpart and bodypart.
In the code you posted, in the sectionblock environment you are resetting the userpage counter; but in the footer you are using \pagenumber. To view the correct numbers, use \userpagenumber in the footers as well.
A more general answer follows. Under mkii to start somewhere the first page: \setuppagenumber[number=1] and under mkiv: \setcounter[userpage][1].