Dear List, Do we have something like "\pagenumbering{roman}" in latex, which sets the pdf labels (page numbers for pdf viewers, not the ones rendered in the footer) to roman numbers? Here's a MWE for latex: \documentclass{report} \usepackage{hyperref} \begin{document} \pagenumbering{roman} \tableofcontents \listoffigures \listoftables \pagenumbering{arabic} \chapter{Abc} \end{document} Thanks! Best, Sylvain
On 9/14/21 1:58 PM, Sylvain Hubert via ntg-context wrote:
Dear List,
Do we have something like "\pagenumbering{roman}" in latex, which sets the pdf labels (page numbers for pdf viewers, not the ones rendered in the footer) to roman numbers?
Hi Sylvain, copied from https://wiki.contextgarden.net/Table_of_Contents#Page_numbering_in_ToC: \definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers] \setuplist[chapter][pageconversionset=pagenumber] \startsectionblockenvironment[frontpart] \setupuserpagenumber[numberconversion=romannumerals] \setuppagenumber[number=1] \stopsectionblockenvironment \startsectionblockenvironment[bodypart] \setuppagenumber[number=1] \stopsectionblockenvironment \starttext \startfrontmatter \dorecurse{25}{\null\page} \stopfrontmatter \startbodymatter \dorecurse{25}{\null\page} \stopbodymatter \stoptext I hope it helps, Pablo -- http://www.ousia.tk
Pablo Rodriguez via ntg-context schrieb am 14.09.2021 um 14:38:
On 9/14/21 1:58 PM, Sylvain Hubert via ntg-context wrote:
Dear List,
Do we have something like "\pagenumbering{roman}" in latex, which sets the pdf labels (page numbers for pdf viewers, not the ones rendered in the footer) to roman numbers? Hi Sylvain,
copied from https://wiki.contextgarden.net/Table_of_Contents#Page_numbering_in_ToC:
\definestructureconversionset[frontpart:pagenumber][][romannumerals] \definestructureconversionset[bodypart:pagenumber] [][numbers]
\setuplist[chapter][pageconversionset=pagenumber]
There is no need to set the number conversion for list.
\startsectionblockenvironment[frontpart] \setupuserpagenumber[numberconversion=romannumerals] \setuppagenumber[number=1] \stopsectionblockenvironment
No need for these settings because you already changed the number conversion for the frontmatter and the counter starts at 1 by default. Wolfgang
participants (3)
-
Pablo Rodriguez
-
Sylvain Hubert
-
Wolfgang Schuster