How to start page numbering from Chapter 1?

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

How to start page numbering from Chapter 1?

siddjain
I am writing a book in asciidoc. The book has a dedication and preface before Chapter 1. Currently, asciidoctorpdf starts page numbering from the dedication page. I would like to start page numbering from Chapter 1. How can I do that?

My asciidoc looks like this:

= My Book
My Name
v1.0, 2020-10
:doctype: book
:toc:

[dedication]
= Dedication

My dedication

include::preface.adoc[]

// this is from where I want to start page numbering.
include::chap01.adoc[]
Reply | Threaded
Open this post in threaded view
|

Re: How to start page numbering from Chapter 1?

Alexander Schwartz
There is an option in the Asciidoctor PDF Theme: https://github.com/asciidoctor/asciidoctor-pdf/blob/master/docs/theming-guide.adoc#page-numbering

You can add 'page-numbering-start-at: 5' to your theme to start with page number 1 on the physical page number 5.

When your preface or dedication grows or shrinks, you need to adjust that number manually.
Alexander Schwartz (alexander.schwartz@gmx.net)
https://www.ahus1.de