Re: Get page-count into the document

Posted by mojavelinux on
URL: https://discuss.asciidoctor.org/Get-page-count-into-the-document-tp8296p8326.html

> I know it;s not the way it is supposed to be, but if it works, it works

Sometimes, that's what it takes.

In the meantime, I'm exploring a way of allowing the page number to start counting on the page before the first chapter so that chapters can be even pages.

Best Regards,

-Dan

On Fri, Oct 30, 2020 at 8:24 AM TonK [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I worked around it. :-)

I created a small theme (nochap.yml)
----
---
extends: training.yml
heading:
  h2-font-color: #ffffff
  h2-font-size: 0.1pt
----

Now I just specify `== Chaptername` for a new chapter, that automatically starts at the recto page (but you can;t see it) and this chapter is placed in the TOC as well.

Now I can punt on this page whatever I want and end with `<<<` ensuring the explanatory text is on the verso page and the image of the slide is on recto.

I know it;s not the way it is supposed to be, but if it works, it works

Thanks for your help


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Get-page-count-into-the-document-tp8296p8321.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux