| | % Set up Roman numerals for the 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 |
| | |
| | +% Set up the ToC so that the page numbers are the internal link colour. |
| | \setuplist[chapter, section, subsection][ |
| | pagecolor=WPinternal, |
 |
| | list={chapter}, |
| | ] |
| | + |
| | +\startsectionblockenvironment[frontpart] |
| | + % Ensure the ToC starts at iii to match PDF page number. |
| | + \setcounter [userpage] [2] |
| | +\stopsectionblockenvironment |
| | |
| | \startsectionblockenvironment [bodypart] |
| | + % Ensure the first chapter starts at 1 to match PDF page number. |
| | \setcounter [userpage] [1] |
| | \stopsectionblockenvironment |
| | + |
| | |