OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   TeXML, the XML vocabulary for TeX

[ Lists Home | Date Index | Thread Index ]

  Hello colleagues,

  I'd like to introduce you TeXML, the XML vocabulary for TeX:

http://getfo.org/texml/
http://getfo.sourceforge.net/texml/

  A processor translates TeXML source into TeX.

| Example of TeXML to TeX translation
| 
| TeXML:
|
| <cmd name="documentclass">
|  <opt>12pt</opt>
|  <parm>letter</parm>
| </cmd>
|
| TeX:
|
| \documentclass[12pt]{letter}

  One of the main benefits of TeXML usage is automatic translation
of the TeX special symbols.

| Example of translation of special TeX symbols
|
| TeXML:
|
| <TeXML>\section{No&#xa0;break}</TeXML>
|
| TeX:
|
| $\backslash$section\{No~break\}

  The TeXML processor supports different output encodings and
escapes out-of-encoding chars

| Example of translation of non-ASCII characters
|
| TeXML:
|
| <TeXML>&#x422;&#x435;&#x425;</TeXML>
|
| TeX in ASCII encoding:
|
| \cyrchar\CYRT \cyrchar\cyre \cyrchar\CYRH 
|
| TeX in Russian encoding
|
| TeX

  If you automatically generate TeX files, there are some benefits
to generating TeXML instead of TeX:

* you avoid painful handling of TeX special characters,
* you don't have to bother about encodings,
* you can write error-free code more easily.

  To expand on the last point, if for example, you want to generate

| {\bf bold}

  One of the approaches is to generate "{", then "\bf " (with
trailing space) and then "}". It is easy to miss the space or to
forget a brace or write an incorrect symbol. But when you use TeXML,
it takes care of it for you:

| <group><cmd name="bf"/>bold</group>

  I hope you will find TeXML useful. Your comments are welcome.

  Regards, Oleg




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS