asciidoctor / asciidoctor-pdf

:page_with_curl: Asciidoctor PDF: A native PDF converter for AsciiDoc based on Asciidoctor and Prawn, written entirely in Ruby.
https://docs.asciidoctor.org/pdf-converter/latest/
MIT License
1.14k stars 500 forks source link

Deactivate header/footer in inserted blank pages in prepress mode #2498

Closed mementum closed 7 months ago

mementum commented 7 months ago

Looking at old books I had at home I saw nd many of them forego the header/footer with page number, chapter title when the page is blank (verso) to have the next page (recto) be a new chapter.

I have looked in the documentation if this would be possible (with a theme, of course) and have found nothing that implements this option.

My best approach for such an option would be:

header:
  verso:
      automatic-blank: [true|false]

and the same for the footer.

mojavelinux commented 7 months ago

The code to implement this is documented on the extended converter use cases page. See https://docs.asciidoctor.org/pdf-converter/latest/extend/use-cases/#no-running-content-on-empty-page

mementum commented 7 months ago

Thanks for the tip. I obviously didn't look deep enough, as I checked the theme keys for the document, for the running content and the specific running content.

After having familiarized myself with the syntax and the theming possibilities I see there is a new world with the converters, yet to be explored.

Thanks.