mf schrieb am 12.01.2024 um 10:18:
Hello list,
how do I convert the realpage number to a page number?
Suppose you have a document with a frontmatter of 20 pages in roman numerals, followed by the main text starting from page 1 in arabic numerals.
So the twelfth page is 'XII', while the twenty-second is '2'.
How do I get 'XII' from 12 and '2' from 22?
\defineconversionset [frontpart:pagenumber] [] [romannumerals] \setuppagenumber [way=byblock] % Alternative method for "way=byblock" when you have an appendix where % the pagenumber of the bodypart continues rather than being reset % % \startsectionblockenvironment[bodypart] % \resetuserpagenumber % \stopsectionblockenvironment \starttext \startfrontmatter \dorecurse{20}{\samplefile{lorem}\page} \stopfrontmatter \startbodymatter \dorecurse{20}{\samplefile{lorem}\page} \stopbodymatter \stoptext Wolfgang