Page 1 of 1
How can I create a Tables of Figures and a List of Tables
Posted: Mon Mar 18, 2013 6:15 pm
by OxUser
How can I create a Tables of Figures and a List of Tables in my output? This is in addition to a TOC.
Thanks
Re: How can I create a Tables of Figures and a List of Tables
Posted: Mon Mar 18, 2013 6:18 pm
by Radu
Hi,
If you are using a DITA Bookmap, in the backmatter you can specify for example something like:
Code: Select all
<backmatter>
<booklists>
<tablelist/>
<figurelist/>
</booklists>
</backmatter>
Regards,
Radu
Re: How can I create a Tables of Figures and a List of Tables
Posted: Tue Mar 19, 2013 5:30 pm
by plumblei
Or use <frontmatter> instead of <backmatter> if you want LOT and LOF to be in the beginning of the document.
Re: How can I create a Tables of Figures and a List of Tables
Posted: Tue Mar 19, 2013 5:36 pm
by OxUser
Thanks for the suggestions. Where do I place those tags? I tried adding them in my DITA map file, but that doesn't work.
Re: How can I create a Tables of Figures and a List of Tables
Posted: Tue Mar 19, 2013 5:46 pm
by Radu
Hi,
Instead of a regular DITA Map you need to edit a Book Map (which is a specialization of DITA Map).
You can find a sample Bookmap here:
OXYGEN_INSTALL_DIR/samples/dita/it-book/taskbook.ditamap
Regards,
Radu
Re: How can I create a Tables of Figures and a List of Tables
Posted: Wed Jun 26, 2019 5:06 pm
by shilpah123
Hi,
I have added the table and figure tags shared in the taskbook.ditamap, but the output does not show the list of tables or figures. Can you please help?
Re: How can I create a Tables of Figures and a List of Tables
Posted: Thu Jun 27, 2019 7:16 am
by Radu
Hi,
What version of Oxygen are you using? Are you publishing to PDF using our DITA Map PDF - based on HTML5 & CSS transformation or the classic XSL-FO based PDF transformation?
Regards,
Radu
Re: How can I create a Tables of Figures and a List of Tables
Posted: Thu Jun 27, 2019 11:30 am
by shilpah123
Hi,
I am using Oxygen 19.1, build 20 18022209. I am using DITA Map PDF listed under LightweightDITA-Map (19). I am new to DITA, so please excuse me if my question seems basic.
Re: How can I create a Tables of Figures and a List of Tables
Posted: Thu Jun 27, 2019 12:24 pm
by Radu
Hi,
I tested this on my side, my bookmap's backmatter element looks like this:
Code: Select all
<backmatter>
<booklists>
<indexlist/>
<figurelist/>
<tablelist/>
</booklists>
</backmatter>
I published to PDF a bookmap containing figures and tables and the PDF properly generated the tables and figures list.
If this does not work on your side, maybe you could send to "
support@oxygenxml.com" a small DITA project to reproduce the problem and maybe also the PDF that you obtain on your side.
Regards,
Radu
Re: How can I create a Tables of Figures and a List of Tables
Posted: Thu Jun 27, 2019 2:16 pm
by shilpah123
I will send a mail to the support team. Just a quick question - what parameter should I enable when i insert backmatter? I just selected TOC parameter and set it to Yes. I have added the attachment.
- Backmatter.png (39.54 KiB) Viewed 3091 times
Re: How can I create a Tables of Figures and a List of Tables
Posted: Mon Jul 01, 2019 8:53 am
by Radu
Hi,
You do not need to set any specific attribute on the backmatter element. Inside it should have a <booklists> element in which you can add other empty elements signaling that you want various lists to be generated:
Code: Select all
<backmatter>
<booklists>
<!-- Figure list -->
<figurelist/>
<!-- Table list -->
<tablelist/>
<!-- Index page -->
<indexlist/>
</booklists>
</backmatter>
Regards,
Radu
Re: How can I create a Tables of Figures and a List of Tables
Posted: Tue Jul 23, 2019 11:14 am
by shilpah123
Thanks Radu. It worked.