0Start numbering page issue

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

0Start numbering page issue

yo
Hi everyone,

I need to make a pdf from an asciidoctor file having a :front-cover-image: (cover page) followed by a :toc: followed by the rest of the memory (Introduction, etc.), this for an university memory. I need to not have a page number displayed for the cover page and have a page number displayed for the toc being 2 (must count the cover page).

I tried everything. In the asciidoc file:

:page_numbering_start_at: 2
:numbering-start-at: 2

In the pdf-themes.yml
running-content:
  start-at: 2
page:
  numbering-start-at: 2

All of these parameters seems to have no effect. Am I missing something?

Thanks for your time.
Reply | Threaded
Open this post in threaded view
|

Re: 0Start numbering page issue

mojavelinux
Administrator
Please share a sample of your AsciiDoc file so that it's possible for someone to reproduce your results.

Thanks,

-Dan

On Sat, May 2, 2020 at 9:53 AM yo [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi everyone,

I need to make a pdf from an asciidoctor file having a :front-cover-image: (cover page) followed by a :toc: followed by the rest of the memory (Introduction, etc.), this for an university memory. I need to not have a page number displayed for the cover page and have a page number displayed for the toc being 2 (must count the cover page).

I tried everything. In the asciidoc file:

:page_numbering_start_at: 2
:numbering-start-at: 2

In the pdf-themes.yml
running-content:
  start-at: 2
page:
  numbering-start-at: 2

All of these parameters seems to have no effect. Am I missing something?

Thanks for your time.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/0Start-numbering-page-issue-tp7966.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
yo
Reply | Threaded
Open this post in threaded view
|

Re: 0Start numbering page issue

yo
Hi Dan,
Thanks for all this amazing work !! I am migrating everything in my fs to asciidoctor. Great work to all the team.

article.ad
test-theme.yml
Reply | Threaded
Open this post in threaded view
|

Re: 0Start numbering page issue

mojavelinux
Administrator
The problem you're facing is this one: https://github.com/asciidoctor/asciidoctor-pdf/issues/1644 This has been fixed and will be available in a future release (either 1.5.4 or 2.0.0).

You can workaround the problem for now by adding a title page (either set the title-page attribute or set the doctype attribute to book). Your document would look something like this:

= Document Title
:title-page:
:toc:
:toclevels: 2
:sectnums:
:sectnumlevels: 2
:front-cover-image: image:cover-page.pdf[]

== Introduction

intro content

== Method

method content

== Conclusion

conclusion content

<<<

== References

references content

Given that you are referencing chapter-title in the running footer, you probably want to set the doctype to book (since chapters are not defined in the default doctype of article).

Cheers,

-Dan



On Sat, May 2, 2020 at 12:57 PM yo [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi Dan,
Thanks for all this amazing work !! I am migrating everything in my fs to asciidoctor. Great work to all the team.

Does upload work?
article.ad
article.ad
a test-theme.yml
test-theme.yml



If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/0Start-numbering-page-issue-tp7966p7968.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
yo
Reply | Threaded
Open this post in threaded view
|

Re: 0Start numbering page issue

yo
IT WORKS !

I was indeed missing the set of the :title-page: attribute. Then I can play with numbering-start-at and start-at in the theme file and get what I want.

I am finally not going to use, for this time, the chapter-title in the running footer, but good to know.

Thanks a lot for the accurate help.
Reply | Threaded
Open this post in threaded view
|

Re: 0Start numbering page issue

mojavelinux
Administrator
Glad to hear it!

I forgot to mention that the "start at" setting cannot be set using a document attribute..but I think you may have figured that out already ;)

-Dan

On Mon, May 4, 2020 at 2:58 AM yo [via Asciidoctor :: Discussion] <[hidden email]> wrote:
IT WORKS !

I was indeed missing the set of the :title-page: attribute. Then I can play with numbering-start-at and start-at in the theme file and get what I want.

I am finally not going to use, for this time, the chapter-title in the running footer, but good to know.

Thanks a lot for the accurate help.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/0Start-numbering-page-issue-tp7966p7972.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