How can I create a Tables of Figures and a List of Tables

Post here questions and problems related to editing and publishing DITA content.
OxUser
Posts: 18
Joined: Tue Mar 12, 2013 1:39 am

How can I create a Tables of Figures and a List of Tables

Post 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
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: How can I create a Tables of Figures and a List of Tables

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
plumblei
Posts: 26
Joined: Mon Feb 18, 2013 5:44 pm

Re: How can I create a Tables of Figures and a List of Tables

Post by plumblei »

Or use <frontmatter> instead of <backmatter> if you want LOT and LOF to be in the beginning of the document.
OxUser
Posts: 18
Joined: Tue Mar 12, 2013 1:39 am

Re: How can I create a Tables of Figures and a List of Tables

Post 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.
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: How can I create a Tables of Figures and a List of Tables

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
shilpah123
Posts: 9
Joined: Wed Mar 13, 2019 6:37 am

Re: How can I create a Tables of Figures and a List of Tables

Post 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?
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: How can I create a Tables of Figures and a List of Tables

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
shilpah123
Posts: 9
Joined: Wed Mar 13, 2019 6:37 am

Re: How can I create a Tables of Figures and a List of Tables

Post 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.
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: How can I create a Tables of Figures and a List of Tables

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
shilpah123
Posts: 9
Joined: Wed Mar 13, 2019 6:37 am

Re: How can I create a Tables of Figures and a List of Tables

Post 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
Backmatter.png (39.54 KiB) Viewed 3060 times
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: How can I create a Tables of Figures and a List of Tables

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
shilpah123
Posts: 9
Joined: Wed Mar 13, 2019 6:37 am

Re: How can I create a Tables of Figures and a List of Tables

Post by shilpah123 »

Thanks Radu. It worked.
Post Reply