home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1999 October / pcp156b.iso / alphawrk / TEXML / TEXML.ZIP / com / ibm / texml / sample.xml < prev    next >
Encoding:
Extensible Markup Language  |  1998-11-05  |  1.1 KB  |  41 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE doc SYSTEM "ddoc.dtd">
  3. <doc title="Test TeXML">
  4. <sec title="This is a section">
  5.  <p>
  6.  This is a paragraph in the section.
  7.  </p>
  8.  <sec title="This is a subsection">
  9.   <p>
  10.   This is a paragraph in the subsection.
  11.   </p>
  12.   <sec title="This is a subsubsection">
  13.    <p>
  14.    This is a paragraph in the subsubsection.
  15.    </p>
  16.   </sec>
  17.  </sec>
  18. </sec>
  19. <sec title="Test descriptive list">
  20.  <list type="descriptive">
  21.   <item term="mango">a tropical fruit</item>
  22.   <item term="honeydew">a kind of melon</item>
  23.  </list>
  24. </sec>
  25. <sec title="Test the escapes">
  26.  <p>
  27.  Now we test all of the specials.
  28.  The percent character, '%' is a comment character in TeX.
  29.  The caret, '^' is a superscript.
  30.  The amphersand, '&' is special for both XML and TeX.
  31.  So are the angle braces, '<' and '>'.
  32.  The underscore, '_' is a subscript.
  33.  Dollar sign '$' puts TeX in math mode.
  34.  Pound '#' signals a macro parameter.
  35.  TeX interprets these as grouping characters, '{', '}'.
  36.  Finally, here's good old active space, '~'
  37.  and the escape character, '\'.
  38.  </p>
  39. </sec>
  40. </doc>
  41.