how to build list of tables and figures and an index
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 13
- Joined: Tue Jul 27, 2004 6:41 am
- Location: Bremen/Germany
- Contact:
how to build list of tables and figures and an index
Hi,
as I now started to write a rather long document using docbook, I wonder how to get all those neat features that I remember from my old LaTEX days.
Especially the generation of lists such as which figures or tables I used where and with which caption, automatic numbering, correct page number reference in the resulting PDF ...
I checked the oxygenxml users guide and saw that there are such lists. How was it done?
What about an index? Can I tag words and let oxygenxml let to build the index automatically?
Where can I read about these things?
Regards and thanks
Daniel
as I now started to write a rather long document using docbook, I wonder how to get all those neat features that I remember from my old LaTEX days.
Especially the generation of lists such as which figures or tables I used where and with which caption, automatic numbering, correct page number reference in the resulting PDF ...
I checked the oxygenxml users guide and saw that there are such lists. How was it done?
What about an index? Can I tag words and let oxygenxml let to build the index automatically?
Where can I read about these things?
Regards and thanks
Daniel
-
- Posts: 13
- Joined: Tue Jul 27, 2004 6:41 am
- Location: Bremen/Germany
- Contact:
I can answer my own question here, in part.
To include an index:
Insert <indexterm><primary>The term</primary></indexterm> at any place which you want to refer to in the index.
Then your index will be generated at the place where you insert the <index/> tag.
This seems straightforward and quite easy.
To have figures numbered automatically:
If you use <figure>...</figure> then all will be good. You can also set a <title>my description</title> to give your figure a name, which will then be shown as well. If you give your figure an id="a-name" you can easily refer to it with <xref linkend="a-name"/>.
But: here I have still a problem! I want to have my figures automatically compiled into a list of figures - including the page numbers of their occurrences.
How? A hint?
D
To include an index:
Insert <indexterm><primary>The term</primary></indexterm> at any place which you want to refer to in the index.
Then your index will be generated at the place where you insert the <index/> tag.
This seems straightforward and quite easy.
To have figures numbered automatically:
If you use <figure>...</figure> then all will be good. You can also set a <title>my description</title> to give your figure a name, which will then be shown as well. If you give your figure an id="a-name" you can easily refer to it with <xref linkend="a-name"/>.
But: here I have still a problem! I want to have my figures automatically compiled into a list of figures - including the page numbers of their occurrences.
How? A hint?
D
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
For the Oxygen User Guide we are not specifying a special parameter for generating the list of figures. It is done automatically by the Docbook.
Ex:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.docbook.org/xml/4.3/docbookx.dtd">
<book>
<title>Title</title>
<chapter>
<title>Section1 Title</title>
<para>Text</para>
<figure>
<title>A figure</title>
<graphic fileref="http://www.docbook.org/graphics/docbook-org-home.gif"/>
</figure>
</chapter>
</book>
Using docbook/xsl/fo/docbook.xsl, it generates the list of figures.
Make sure you are using the latest docbook stylesheets. For a list of docbook XSL parameters, see: http://www.sagehill.net/docbookxsl/
Best regards,
Dan
Ex:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.docbook.org/xml/4.3/docbookx.dtd">
<book>
<title>Title</title>
<chapter>
<title>Section1 Title</title>
<para>Text</para>
<figure>
<title>A figure</title>
<graphic fileref="http://www.docbook.org/graphics/docbook-org-home.gif"/>
</figure>
</chapter>
</book>
Using docbook/xsl/fo/docbook.xsl, it generates the list of figures.
Make sure you are using the latest docbook stylesheets. For a list of docbook XSL parameters, see: http://www.sagehill.net/docbookxsl/
Best regards,
Dan
-
- Posts: 13
- Joined: Tue Jul 27, 2004 6:41 am
- Location: Bremen/Germany
- Contact:
Uff.
Uhm. You are right! I don't know why I did not expect that list at the beginning of the document. And that it gets built automatically... very unintuitive, normally you have to do something to get results
.
So stupid. I was all time trying to add it to the end of my document and did not see the list at the beginning. I still don't believe it. *lol*
Thank you
Daniel
Uhm. You are right! I don't know why I did not expect that list at the beginning of the document. And that it gets built automatically... very unintuitive, normally you have to do something to get results

So stupid. I was all time trying to add it to the end of my document and did not see the list at the beginning. I still don't believe it. *lol*
Thank you

Daniel
-
- Posts: 61
- Joined: Fri Jun 06, 2008 7:09 am
Re: how to build an index
Hi
I am trying to create an index using the following elemnts as mentioned:
<indexterm><primary>The term</primary></indexterm>
But I could not find <primary> in the element list. Please help
Regards
Julie
I am trying to create an index using the following elemnts as mentioned:
<indexterm><primary>The term</primary></indexterm>
But I could not find <primary> in the element list. Please help
Regards
Julie
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: how to build list of tables and figures and an index
Dear Julie,
The discussion above is about editing Docbook documents in Oxygen.
For DITA the "indexterm" can contain other elements.
See here: http://docs.oasis-open.org/dita/v1.0/la ... xterm.html in the Contains section.
Regards,
Radu
The discussion above is about editing Docbook documents in Oxygen.
For DITA the "indexterm" can contain other elements.
See here: http://docs.oasis-open.org/dita/v1.0/la ... xterm.html in the Contains section.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service