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 501 forks source link

Per-part chapter signifiers #2381

Closed trombonehero closed 1 year ago

trombonehero commented 1 year ago

It would be lovely if I could specify a different chapter-signifier in each part of a book. For example:

= Our organization's constitution

:chapter-signifier: Article

== The first article

== The second article

= Our by-laws

:chapter-signifier: By-Law

== The first by-law
mojavelinux commented 1 year ago

This should already be possible. The chapter signifier is referenced when it is needed, so it will see the latest assignment. The only thing that would prevent this from working is even if the title has been cached by an earlier xref.

= Our organization's constitution
:chapter-signifier: Article
:doctype: book
:sectnums:

== The first article

== The second article

= Our by-laws

:chapter-signifier: By-Law

== The first by-law

If you have other questions about this behavior, please direct those questions to the project chat at https://chat.asciidoctor.org.