-
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 thetex
file. -
Looking to hide the footer till I reach the body
- 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
%=========================ADDITION====================================
\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
%=========================ADDITION END====================================
\starttext
\startstandardmakeup
Cover page
\stopstandardmakeup
\startfrontmatter
\completecontent
\stopfrontmatter
\startbodymatter
\section[production]{Production}
Production is a two part process.
\section[background]{Background}
\stopbodymatter
\stoptext
Best Answer
ConTeXt has two notions of page numbers: The real page number (accessed using
\pagenumber
) and the user page number (accessed using\userpagenumber
). Theuserpagenumber
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 theuserpage
counter; but in the footer you are using\pagenumber
. To view the correct numbers, use\userpagenumber
in the footers as well.