Controlling the Publication ContentEdit online
- Remove the TOC or index.
- Add a glossary.
- Change the position of the TOC or the index relative to the sibling topics.
- Add a preface, frontmatter, or backmatter with copyright notices, abstracts, list of tables, list of figures, etc.
A bookmap has a more elaborate structure than a regular map. You should start by defining the title structure, with a main title and alternative title:
<!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA BookMap//EN" "bookmap.dtd"> <bookmap id="taskbook"> <booktitle> <mainbooktitle>Publication Title</mainbooktitle> <booktitlealt>A very short description of the publication</booktitlealt> </booktitle>
Then you may define a front matter. In this, you may link the topics that need to appear before the main content. You may also define the location where the table of contents will be placed. In the example below, it appears between the "abstract" and "foreword" topics:
<frontmatter>
<topicref href="topics/abstract.dita"/>
<booklists>
<toc/>
</booklists>
<topicref href="topics/foreword.dita"/>
</frontmatter>
<toc> element
from the <booklists>.Next, the topics are grouped into chapters:
... <chapter href="topics/installation.dita" /> ...
At the end, you could define the structure of the backmatter. Just like for the frontmatter, you can include some topics and some generated content, such as the index. In the example below, it is defined that the glossary should come after the index, followed by a list of figures and list of tables. At the very end, there is a topic with some thank you notes.
<backmatter>
<topicref href="topics/conclusion.dita"/>
<booklists>
<indexlist/>
<glossarylist>
<topicref href="topics/xp.dita" keys="xp" print="yes" />
<topicref href="topics/anti_lock_braking_system.dita" keys="abs" print="yes" />
</glossarylist>
<figurelist/>
<tablelist/>
</booklists>
<topicref href="topics/thanks.dita"/>
</backmatter>
As you can see, the bookmap offers a much better control over the final content of the publication. It also offers more options in controlling the metadata that will go into the PDF (see the Metadata topic).