Hi folks, I have a document that is structured like this: \startfrontmatter \placecontent \stopfrontmatter \startbodymatter \startchapter \component whatever.tex \stopchapter \stopbodymatter What I noticed is, that when I build the PDF, open it in Sumatra PDF and check the page counter at the top, then the first page (frontmatter) is numbered 1, then the second page (1st page of the bodymatter) is numbered 1.1, the second page of the bodymatter then is numbered correctly again. How would one change the frontmatter counter to roman numbers (I, II, III etc.)? And the first page of the bodymatter to 1 instead of 1.1? For the record: within the PDF itself the numbers are printed correctly (front: no numbers, body: 1, 2, 3 etc.). This seems to be reader software related. I saw romans for frontmatter and arabics for bodymatter in other documents already, so I am sure there has to be a way of achieving this in CTX. Any ideas? Greetings, Sebastian
On 07/26/2017 09:20 AM, Sebastian L. wrote:
Hi folks, [...] How would one change the frontmatter counter to roman numbers (I, II, III etc.)? And the first page of the bodymatter to 1 instead of 1.1? For the record: within the PDF itself the numbers are printed correctly (front: no numbers, body: 1, 2, 3 etc.). This seems to be reader software related. I saw romans for frontmatter and arabics for bodymatter in other documents already, so I am sure there has to be a way of achieving this in CTX.
Any ideas?
Hi Sebastian, the wiki is your friend: http://wiki.contextgarden.net/Table_of_Contents. The answers to your questions are there. As to your first issue with wrong page numbering, I wasn’t able to reproduce your problem with the minimal sample and I’m not sure where you got the wrong page number. Only in the viewer? Could you provide a minimal sample (for both files) and your output document? Pablo -- http://www.ousia.tk
Hi Pablo, thanks for your response. Yes, I already had in mind, that this might be a viewer related problem, as I only opened the document in SumatraPDF only. With one of the solutions from the wiki I fixed the problem. I added \definestructureconversionset[frontpart:pagenumber][][romannumerals] to my environment file. I didn't take this into accout, as I initially didn't plan on using roman numbers. But right now this seems the only proper solution to the wrong numbering in my case. I attached an explanation document to show you what I mean. If you still wish for the source files please tell me. Cheers, Sebastian On 26/07/2017 17:03, Pablo Rodriguez wrote:
On 07/26/2017 09:20 AM, Sebastian L. wrote:
Hi folks, [...] How would one change the frontmatter counter to roman numbers (I, II, III etc.)? And the first page of the bodymatter to 1 instead of 1.1? For the record: within the PDF itself the numbers are printed correctly (front: no numbers, body: 1, 2, 3 etc.). This seems to be reader software related. I saw romans for frontmatter and arabics for bodymatter in other documents already, so I am sure there has to be a way of achieving this in CTX.
Any ideas? Hi Sebastian,
the wiki is your friend: http://wiki.contextgarden.net/Table_of_Contents. The answers to your questions are there.
As to your first issue with wrong page numbering, I wasn’t able to reproduce your problem with the minimal sample and I’m not sure where you got the wrong page number. Only in the viewer?
Could you provide a minimal sample (for both files) and your output document?
Pablo
On 07/26/2017 09:25 PM, Sebastian L. wrote:
[..]
... I initially didn't plan on using roman numbers. But right now this seems the only proper solution to the wrong numbering in my case. I attached an explanation document to show you what I mean.
If you still wish for the source files please tell me.
Hi Sebastian, using Roman numerals is a way to workaround the issue. Unless you provide a minimal source that replicates the wrong numbering, it would be hard to guess which causes the issue on your document (I’m afraid I’m not that smart :-(). In the PDF document, you mention makeups. See the difference in numbering: \setuppapersize[A9] \starttext \dorecurse{5}{\startmakeup[standard]\recurselevel\stopmakeup} \setupmakeup[standard][pagestate=start] \dorecurse{5}{\startmakeup[standard]\recurselevel\stopmakeup} \stoptext But we’re still guessing. Pablo -- http://www.ousia.tk
Hi Pablo, I attached what I see. ;) On 26/07/2017 22:01, Pablo Rodriguez wrote:
\setuppapersize[A9] \starttext \dorecurse{5}{\startmakeup[standard]\recurselevel\stopmakeup} \setupmakeup[standard][pagestate=start] \dorecurse{5}{\startmakeup[standard]\recurselevel\stopmakeup} \stoptext
On 07/26/2017 10:09 PM, Sebastian L. wrote:
Hi Pablo, I attached what I see. ;)
It is an already known bug in MuPDF: https://github.com/sumatrapdfreader/sumatrapdf/issues/353 (even the latest unstable version hasn’t been fixed yet). Could you test your original issue with Acrobat? Pablo -- http://www.ousia.tk
Hi Pablo, interesting issue, I will keep your github link focused, thanks. I installed Adobe Reader DC and opened the original document with it. Screenshots attached. TBH, this also isn't the correct numbering if you ask me. It goes 1, 1, 2. I thought of 1, 2, 3... But ok, the romans solution is ok for now. Thanks for your help, Sebastian. On 27/07/2017 17:30, Pablo Rodriguez wrote:
On 07/26/2017 10:09 PM, Sebastian L. wrote:
Hi Pablo, I attached what I see. ;) It is an already known bug in MuPDF: https://github.com/sumatrapdfreader/sumatrapdf/issues/353 (even the latest unstable version hasn’t been fixed yet).
Could you test your original issue with Acrobat?
Pablo
On 07/27/2017 10:19 PM, Sebastian L. wrote:
Hi Pablo,
interesting issue, I will keep your github link focused, thanks. I installed Adobe Reader DC and opened the original document with it. Screenshots attached. TBH, this also isn't the correct numbering if you ask me. It goes 1, 1, 2. I thought of 1, 2, 3...
But ok, the romans solution is ok for now.
Hi Sebastian, are you using a makeup on the second page? The way to enable numbering also in makeups is: \setupmakeup[pagestate=start] If you add it to your preamble, my guess is that it will work. I hope it helps, Pablo -- http://www.ousia.tk
Yet the problem is, that the second page is labeled 2 as pagenumber. That's what I tried to omit...
Sorry, I forgot the second attachment. On 26/07/2017 22:01, Pablo Rodriguez wrote:
On 07/26/2017 09:25 PM, Sebastian L. wrote:
[..] ... I initially didn't plan on using roman numbers. But right now this seems the only proper solution to the wrong numbering in my case. I attached an explanation document to show you what I mean.
If you still wish for the source files please tell me. Hi Sebastian,
using Roman numerals is a way to workaround the issue.
Unless you provide a minimal source that replicates the wrong numbering, it would be hard to guess which causes the issue on your document (I’m afraid I’m not that smart :-().
In the PDF document, you mention makeups. See the difference in numbering:
\setuppapersize[A9] \starttext \dorecurse{5}{\startmakeup[standard]\recurselevel\stopmakeup} \setupmakeup[standard][pagestate=start] \dorecurse{5}{\startmakeup[standard]\recurselevel\stopmakeup} \stoptext
But we’re still guessing.
Pablo
participants (2)
-
Pablo Rodriguez
-
Sebastian L.