Re: asciidoctor-pdf: wrong {page-count} in footer when page_numering_start_at=title
Posted by
mojavelinux on
Oct 20, 2019; 8:16pm
URL: https://discuss.asciidoctor.org/asciidoctor-pdf-wrong-page-count-in-footer-when-page-numering-start-at-title-tp7260p7261.html
No need to file an issue. An issue was already filed and fixed. It will be available in the next version.
Best,
-Dan
On Sun, Oct 20, 2019 at 5:07 AM afrey [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Hi!
Converting to PDF, with a doctype=book, I get a wrong {page-count} in the footer when page_numbering_start_at=title.
Here is a little test:
custom-theme.yml:
page:
numbering_start_at: title
footer:
height: 12.9mm
recto_right_content: 'Page {page-number} of {page-count}'
verso_right_content: $footer_recto_right_content
Test.adoc:
:doctype: book
= Test
This test the `page-count` attribute in footers when the `doctype` is `book` and `numbering_start_at` is set to `title`.
Tested with `asciidoctor-pdf-1.5.0-beta.16`.
== First chapter
== Second chapter
Notice that the footer shows "Page 4 of 3". It should be "Page 4 of 4".
Is there another parameter to set to get the right {page-count} ? If not, I will file an issue for this.
-- Alex
--