| 1 | <refentry id="toc.element"> |
| 2 | <?dbhtml filename="toc.html"?> |
| 3 | <refentryinfo> |
| 4 | <pubdate>$Date$</pubdate> |
| 5 | <releaseinfo>$Revision$</releaseinfo> |
| 6 | </refentryinfo> |
| 7 | |
| 8 | <refmeta> |
| 9 | <indexterm><primary>elements</primary> |
| 10 | <secondary>toc</secondary></indexterm> |
| 11 | <refentrytitle>toc</refentrytitle> |
| 12 | <refmiscinfo>Element</refmiscinfo> |
| 13 | </refmeta> |
| 14 | <refnamediv> |
| 15 | <refname>toc</refname> |
| 16 | <refpurpose>&toc.purpose;</refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | &toc.synopsis.gen; |
| 20 | <refsect1 condition='ref.description'><title>Description</title> |
| 21 | |
| 22 | <para> |
| 23 | The <sgmltag>ToC</sgmltag> element defines a <emphasis>table of |
| 24 | contents</emphasis> in a document. |
| 25 | </para> |
| 26 | |
| 27 | <para> |
| 28 | The general structure of elements in a <sgmltag>ToC</sgmltag> is analogous to the |
| 29 | structure of the document described. For example, a <sgmltag>ToC</sgmltag> for |
| 30 | a <sgmltag>Book</sgmltag> might contain <sgmltag>TocFront</sgmltag> elements for the |
| 31 | front-matter of the book, <sgmltag>TocChap</sgmltag> elements for the body of the |
| 32 | book, and <sgmltag>TocBack</sgmltag> elements for the back matter. Inside each |
| 33 | of these are additional elements reflecting the structure of each |
| 34 | component. |
| 35 | </para> |
| 36 | |
| 37 | <refsect2><title>Processing expectations</title> |
| 38 | <para> |
| 39 | &format.block; |
| 40 | </para> |
| 41 | <para> |
| 42 | In real life, <sgmltag>ToC</sgmltag>s are usually generated automatically |
| 43 | by the presentation system and never have to be represented explicitly |
| 44 | in the document source. |
| 45 | </para> |
| 46 | </refsect2> |
| 47 | |
| 48 | |
| 49 | |
| 50 | &toc.parents.gen; |
| 51 | &toc.children.gen; |
| 52 | </refsect1> |
| 53 | <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title> |
| 54 | <variablelist> |
| 55 | <varlistentry><term>pagenum</term> |
| 56 | <listitem> |
| 57 | <para> |
| 58 | <sgmltag class="attribute">PageNum</sgmltag> indicates the page on which this |
| 59 | Table of Contents appears in the printed document |
| 60 | </para> |
| 61 | </listitem> |
| 62 | </varlistentry> |
| 63 | </variablelist> |
| 64 | </refsect1> |
| 65 | <refsect1><title>Examples</title> |
| 66 | |
| 67 | <informalexample role="example-source"> |
| 68 | <programlisting>&toc.example.1.txt;</programlisting> |
| 69 | </informalexample> |
| 70 | |
| 71 | &toc.example.seealso.gen; |
| 72 | </refsect1> |
| 73 | </refentry> |
| 74 |