home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <!DOCTYPE doc SYSTEM "ddoc.dtd">
- <doc title="Test TeXML">
- <sec title="This is a section">
- <p>
- This is a paragraph in the section.
- </p>
- <sec title="This is a subsection">
- <p>
- This is a paragraph in the subsection.
- </p>
- <sec title="This is a subsubsection">
- <p>
- This is a paragraph in the subsubsection.
- </p>
- </sec>
- </sec>
- </sec>
- <sec title="Test descriptive list">
- <list type="descriptive">
- <item term="mango">a tropical fruit</item>
- <item term="honeydew">a kind of melon</item>
- </list>
- </sec>
- <sec title="Test the escapes">
- <p>
- Now we test all of the specials.
- The percent character, '%' is a comment character in TeX.
- The caret, '^' is a superscript.
- The amphersand, '&' is special for both XML and TeX.
- So are the angle braces, '<' and '>'.
- The underscore, '_' is a subscript.
- Dollar sign '$' puts TeX in math mode.
- Pound '#' signals a macro parameter.
- TeX interprets these as grouping characters, '{', '}'.
- Finally, here's good old active space, '~'
- and the escape character, '\'.
- </p>
- </sec>
- </doc>
-