Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
9 posts
|
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. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
2681 posts
|
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, ... [show rest of quote] -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
9 posts
|
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 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
2681 posts
|
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, -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
9 posts
|
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. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
2681 posts
|
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 ! -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Free forum by Nabble | Edit this page |