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

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 » Mon Mar 18, 2013 6:15 pm

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: 6450
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 » Mon Mar 18, 2013 6:18 pm

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 » Tue Mar 19, 2013 5:30 pm

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 » Tue Mar 19, 2013 5:36 pm

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: 6450
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 » Tue Mar 19, 2013 5:46 pm

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: 6
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 » Wed Jun 26, 2019 5:06 pm

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: 6450
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 » Thu Jun 27, 2019 7:16 am

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: 6
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 » Thu Jun 27, 2019 11:30 am

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: 6450
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 » Thu Jun 27, 2019 12:24 pm

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: 6
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 » Thu Jun 27, 2019 2:16 pm

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 414 times

Radu
Posts: 6450
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 » Mon Jul 01, 2019 8:53 am

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: 6
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 » Tue Jul 23, 2019 11:14 am

Thanks Radu. It worked.

Post Reply