home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 May / Gamestar_73_2005-05_dvd.iso / Programy / amaya / amaya-WinXP-9.1.exe / doc / WX / Numbering.html < prev    next >
Encoding:
Extensible Markup Language  |  2005-02-23  |  2.3 KB  |  57 lines

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3.        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6.   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  7.   <title>Numbering Sections and Table of Contents</title>
  8.   <style type="text/css">
  9.  </style>
  10.   <link href="style.css" rel="stylesheet" type="text/css" />
  11. </head>
  12.  
  13. <body xml:lang="en" lang="en">
  14.  
  15. <div>
  16. <img alt="Amaya" src="../../resources/icons/22x22/logo.png" class="logo" />
  17.  
  18. <p class="nav"><a href="Printing.html" accesskey="p"><img alt="previous"
  19. src="../../resources/icons/misc/left.png" /></a> <a href="Manual.html"
  20. accesskey="t"><img alt="top" src="../../resources/icons/misc/up.png" /></a>
  21. <a href="MakeBook.html" accesskey="n"><img alt="next"
  22. src="../../resources/icons/misc/right.png" /></a></p>
  23. </div>
  24.  
  25. <div id="page_body">
  26. <h1>Numbering Sections</h1>
  27.  
  28. <p>Section headings (<code>H2</code>to<code>H6</code> elements) can be
  29. automatically numbered to reflect the document structure. The <code>H1</code>
  30. element is supposed to be the document title and is not numbered. Other
  31. headings receive a number that is computed according to their type and their
  32. position in the document structure. These numbers are generated in the
  33. document itself and previous generated numbers are removed, each times the
  34. <strong>XHTML>Section numbering</strong> command is called.</p>
  35.  
  36. <h1>Table of Contents</h1>
  37.  
  38. <p>The <strong>XHTML>Generate Table of contents</strong> command collects
  39. all following <code>H2</code>to<code>H6</code> elements in the document to
  40. generate a table of contents at the current position.</p>
  41.  
  42. <p>This command adds:</p>
  43. <ul>
  44.   <li>An <code>id</code> attribute to each <code>H2</code> to <code>H6</code>
  45.     element which doesn't have this attribute.</li>
  46.   <li>A division with a "toc" <code>class</code> attribute value and a
  47.     cascade of unnumbered lists at the current position.</li>
  48.   <li>A list item for each H2 to H6 element including a link which points to
  49.     the corresponding element.
  50.     <p>The link element contents is a copy of the Hi element. If the Hi
  51.     element is numbered, this number is also copied.</p>
  52.   </li>
  53. </ul>
  54. </div>
  55. </body>
  56. </html>
  57.