Re: Dynamic Figure Indexing
Posted by
mojavelinux on
Oct 28, 2018; 10:35pm
URL: https://discuss.asciidoctor.org/Dynamic-Figure-Indexing-tp6556p6557.html
You can write a tree processor that visits all the figures in a document and sets an explicit caption.
Cheers,
-Dan
On Sun, Oct 28, 2018 at 2:18 PM ellieborden [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Is there a way to assign figure numbers dynamically using Asciidoctor?
I indexed them by section so, for example, the third figure in section 6 is captioned Figure 6.03.
The problem is that I currently have these captions hard-coded and if I want to insert a new section, I have to rename all of the figure captions and references within all of the following sections.
Here is my document for reference.
--