asciidoctor-pdf: wrong {page-count} in footer when page_numering_start_at=title

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

asciidoctor-pdf: wrong {page-count} in footer when page_numering_start_at=title

afrey
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.6`.

    == 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
Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: wrong {page-count} in footer when page_numering_start_at=title

mojavelinux
Administrator
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


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/asciidoctor-pdf-wrong-page-count-in-footer-when-page-numering-start-at-title-tp7260.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor-pdf: wrong {page-count} in footer when page_numering_start_at=title

afrey
In reply to this post by afrey
Perfect ! Thanks !