-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
page numbers are not correct if using custom cover page #458
Comments
I want to add that it happens only for the article doctype. If you use the book doctype, then it seems to be correct. However, I noticed when you use the book doctype, the integer page numbers are correct, but the roman numeral pages are not correct. (side rant: page calculations have proven extremely difficult to get right) |
ok, I'll try to fall back to book doctype for now |
actually for book it is same, page numbers are not correct |
This is going to be resolved as part of #383. The problem was that I did not have entries in the page labels table for all front matter pages, which caused some readers to as#correct numbers to the content pages. |
- add support for recto/verso margins when attribute media=prepress - introduce page_margin_inner and page_margin_outer keys to theme - calculate page margin for recto and verso pages automatically - add recto/verso support to running content - start title page, toc, and content on recto page when media=prepress and doctype=book - add set_page_margin helper - add page_margin helper - add page_side helper - add recto_page? and verso_page? helpers - resolve asciidoctor#458 add page labels for all front matter pages to fix page numbering in outline - simplify toc page nums calculation - document "prepress" publishing mode in theming guide
- add support for recto/verso margins when attribute media=prepress - introduce page_margin_inner and page_margin_outer keys to theme - calculate page margin for recto and verso pages automatically - add recto/verso support to running content - start title page, toc, and content on recto page when media=prepress and doctype=book - add set_page_margin helper - add page_margin helper - add page_side helper - add recto_page? and verso_page? helpers - resolve asciidoctor#458 add page labels for all front matter pages to fix page numbering in outline - simplify toc page nums calculation - document "prepress" publishing mode in theming guide
- add support for recto/verso margins when attribute media=prepress - introduce page_margin_inner and page_margin_outer keys to theme - calculate page margin for recto and verso pages automatically - add recto/verso support to running content - start title page, toc, and content on recto page when media=prepress and doctype=book - add set_page_margin helper - add page_margin helper - add page_side helper - add recto_page? and verso_page? helpers - resolve asciidoctor#458 add page labels for all front matter pages to fix page numbering in outline - simplify toc page nums calculation - document "prepress" publishing mode in theming guide
- add support for recto/verso margins when attribute media=prepress - introduce page_margin_inner and page_margin_outer keys to theme - calculate page margin for recto and verso pages automatically - add recto/verso support to running content - start title page, toc, and content on recto page when media=prepress and doctype=book - add set_page_margin helper - add page_margin helper - add page_side helper - add recto_page? and verso_page? helpers - resolve asciidoctor#458 add page labels for all front matter pages to fix page numbering in outline - simplify toc page nums calculation - document "prepress" publishing mode in theming guide
- add support for recto/verso margins when attribute media=prepress - introduce page_margin_inner and page_margin_outer keys to theme - calculate page margin for recto and verso pages automatically - add recto/verso support to running content - start title page, toc, and content on recto page when media=prepress and doctype=book - add set_page_margin helper - add page_margin helper - add page_side helper - add recto_page? and verso_page? helpers - resolve asciidoctor#458 add page labels for all front matter pages to fix page numbering in outline - simplify toc page nums calculation - document "prepress" publishing mode in theming guide
- add support for recto/verso margins when attribute media=prepress - introduce page_margin_inner and page_margin_outer keys to theme - calculate page margin for recto and verso pages automatically - add recto/verso support to running content - start title page, toc, and content on recto page when media=prepress and doctype=book - add set_page_margin helper - add page_margin helper - add page_side helper - add recto_page? and verso_page? helpers - resolve asciidoctor#458 add page labels for all front matter pages to fix page numbering in outline - simplify toc page nums calculation - document "prepress" publishing mode in theming guide
- add support for recto/verso margins when attribute media=prepress - introduce page_margin_inner and page_margin_outer keys to theme - calculate page margin for recto and verso pages automatically - add recto/verso support to running content - start title page, toc, and content on recto page when media=prepress and doctype=book - add set_page_margin helper - add page_margin helper - add page_side helper - add recto_page? and verso_page? helpers - resolve asciidoctor#458 add page labels for all front matter pages to fix page numbering in outline - simplify toc page nums calculation - document "prepress" publishing mode in theming guide
Great! |
This change has been merged if you want to try it before I release alpha 13 over the weekend. |
Thanks! I'll wait for alpha release. |
…idoctor#415) - add support for recto/verso margins when attribute media=prepress - introduce page_margin_inner and page_margin_outer keys to theme - calculate page margin for recto and verso pages automatically - add recto/verso support to running content - start title page, toc, and content on recto page when media=prepress and doctype=book - add set_page_margin helper - add page_margin helper - add page_side helper - add recto_page? and verso_page? helpers - resolve asciidoctor#458 add page labels for all front matter pages to fix page numbering in outline - simplify toc page nums calculation - document "prepress" publishing mode in theming guide - use term "periphery" instead of "position" to refer to running content region - fix some formatting and wording in theming guide
The document uses :front-cover-image: instead of a title page and :notitle:, so the heading looks like:
then the generated PDF has wrong page numbers in PDF index. The table of contents still has correct page number. See attached screenshot.

Introduction should be on page 1 but in PDF index on the left hand side it says page 2. And so on with other pages.
The text was updated successfully, but these errors were encountered: