Re: How to declare custom prefix to the sections in asciidoc?
Posted by
mojavelinux on
URL: https://discuss.asciidoctor.org/How-to-declare-custom-prefix-to-the-sections-in-asciidoc-tp7826p7827.html
You'd need to either use an extension (such as a tree processor) or extend the converter. This is not something the AsciiDoc language supports by default.
Best Regards,
-Dan
On Fri, Apr 3, 2020 at 4:55 PM siddjain [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Hello,
I am writing a book in asciidoc. I want to declare a custom prefix that I would like to be used for the sections in my appendices. E.g., if my prefix is P, I want sections to be numbered as:
Appendix P
P.1 Subsection 1
How can I do this? Also how to so the same thing for a normal chapter in the book?
Sid
--