home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?><TeXML><cmd name="documentclass"><parm>article</parm></cmd><cmd name="title"><parm>Test TeXML</parm></cmd><env name="document"><cmd name="maketitle"/>
- <cmd name="section*"><parm>This is a section</parm></cmd>
-
- This is a paragraph in the section.
- <cmd name="par"/>
- <cmd name="subsection*"><parm>This is a subsection</parm></cmd>
-
- This is a paragraph in the subsection.
- <cmd name="par"/>
- <cmd name="subsubsection*"><parm>This is a subsubsection</parm></cmd>
-
- This is a paragraph in the subsubsection.
- <cmd name="par"/>
-
-
-
- <cmd name="section*"><parm>Test descriptive list</parm></cmd>
- <env name="description">
- <cmd name="item"><opt>mango</opt></cmd>a tropical fruit
- <cmd name="item"><opt>honeydew</opt></cmd>a kind of melon
- </env>
-
- <cmd name="section*"><parm>Test the escapes</parm></cmd>
-
- 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, '\'.
- <cmd name="par"/>
-
- </env></TeXML>