ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setupuserpagenumber not working as expected
@ 2020-09-03  4:04 jbf
  2020-09-03  4:19 ` Wolfgang Schuster
  2020-09-03  8:29 ` Jan Willem Flamma
  0 siblings, 2 replies; 8+ messages in thread
From: jbf @ 2020-09-03  4:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1490 bytes --]

Am seeking to have frontmatter pages in roman numerals and from Chapter 
1 onwards in arabic numerals. I have achieved something of the kind, but 
page 1 (arabic) is appearing on the last page of the frontmatter and not 
the first page of Chapter 1. I do not know why this is happening. My 
setup for page numbering is as follows (something I found somewhere - 
wiki? elsewhere? Not sure. I didn't make it up!):

\definestructureconversionset[frontpart:pagenumber][][romannumerals]
\definestructureconversionset[bodypart:pagenumber] [][numbers]
\startsectionblockenvironment[frontpart]
\setupuserpagenumber[numberconversion=romannumerals]
\setuplist[chapter][pageconversionset=pagenumber]
\setuppagenumber[number=1]
\stopsectionblockenvironment

\startsectionblockenvironment[bodypart]
\setuppagenumber[number=1]
\stopsectionblockenvironment

The frontmatter is some 16 pages worth (ends on a verso page but that 
verso carries the arabic number 1 instead of page xvi which it should 
be, since the final paragraph on that page ends with \stopfrontmatter. 
That means Chapter 1 (immediately after \startbodymatter) is now page 2 
instead of page 1!

I tried a slightly simpler version of the above which I found on 
Stackexchange:

|\definestructureconversionset[frontpart:pagenumber][][romannumerals]||
|

|\startsectionblockenvironment[bodypart]|

|\setcounter[userpage][1]\stopsectionblockenvironment|

but it gave me the same result. Any idea how I can get the correct result?

Julian


[-- Attachment #1.2: Type: text/html, Size: 15044 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-09-06 12:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-03  4:04 \setupuserpagenumber not working as expected jbf
2020-09-03  4:19 ` Wolfgang Schuster
     [not found]   ` <d2d01391-cb35-1090-a28c-046b8a0ad0e8@gmail.com>
2020-09-03 14:17     ` Wolfgang Schuster
2020-09-03  8:29 ` Jan Willem Flamma
2020-09-03 22:20   ` jbf
2020-09-04  7:21     ` Jan Willem Flamma
2020-09-04  8:47   ` Wolfgang Schuster
2020-09-06 12:43     ` Jan Willem Flamma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).