Collecting all figures and code listings in an appendix
Hello everyone,
Is it possible to collect all figures and code listings (those with title and anchor at least) under a single section/appendix? I'm currently writing lots of code listings for the Griffon Guide and would like to offer such collection of links for people to have a quick glance. I've not found any description of this matter in the Asciidoctor User Guide so far :-/
Re: Collecting all figures and code listings in an appendix
I know you can do a glossary... but gathering up everything... probably not. You'd need to create an extension and walk the AST looking for the things you want.
On Fri, Jan 17, 2014 at 1:14 PM, aalmiray [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello everyone,
Is it possible to collect all figures and code listings (those with title and anchor at least) under a single section/appendix? I'm currently writing lots of code listings for the Griffon Guide and would like to offer such collection of links for people to have a quick glance. I've not found any description of this matter in the Asciidoctor User Guide so far :-/
Cheers,
Andres
If you reply to this email, your message will be added to the discussion below:
Re: Collecting all figures and code listings in an appendix
Right, apparently you must also write down all entries in the glossary itself.
I was afraid you'd suggest writing an extension but pondering a bit more about it is the only way to go.
Re: Collecting all figures and code listings in an appendix
Automatic glossary, figures and code listings computation, are important features that are missing and would really be nice to have in Asciidoctor.
On Tue, Jan 21, 2014 at 8:24 PM, aalmiray [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Right, apparently you must also write down all entries in the glossary itself.
I was afraid you'd suggest writing an extension but pondering a bit more about it is the only way to go.
Thanks!
Andres
If you reply to this email, your message will be added to the discussion below:
Re: Collecting all figures and code listings in an appendix
Administrator
On Tue, Jan 21, 2014 at 12:34 PM, glaforge [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Automatic glossary, figures and code listings computation, are important features that are missing and would really be nice to have in Asciidoctor.
Asciidoctor is gradually building up APIs to represent the internal model of the document. You can grab a list of figures from the references property on the document object (not yet mapped in AsciidoctorJ). The references object currently contains:
* ids
* footnotes
* links
* images (though not the qualified path)
* indexterms
* includes (used to check if cross references need to be expanded)