X ϒ M T e X (formerly ChemTeX ) is a package for TeX that allows you to draw chemical formulas using specific text markup.
Content
Title
The word 'chemestry' comes from the Arabic word 'alchemy', which dates back to the Greek . "XyM" in the name of the package is taken precisely from the Greek word.
XyMTeX is pronounced as “khymtekh”, where “kh” is read as Russian “x” or English “k”, and “y” is close to German “ü”.
History
XyMTeX was developed by RT Haas, KC O'Kane, and M. Ramek [1] [2] as an extension to the LaTeX macro package. The first release was implemented in 1993 for LaTeX 2.09. [3] [4] Early versions (prior to version 3.00) were based on the LaTex graphical environment and on the epic package functionality, which allowed the user to draw simple diagrams. This version was compatible with the original LaTeX and generated .dvi files, which could then be converted to .pdf using the dvipdfm (x) converter.
Now this type of compilation is called TEX / LATEX-compatible mode .
The next generation version (up to 4.06) was based on the functionality of the PSTricks package. Now this way of working is called PostScript compatible mode :
On the other hand, it is worth noting that the old method of work has not disappeared anywhere, but continues to be maintained to this day.
The latest versions (before 5.01) are based on the functionality of the pdf package, which corresponds to the dvi-to-pdf conversion. This working method is called PDF-compatible mode and is used in the current version of XyMTeX.
Disadvantages
Initially, a big problem for XyMTeX was the limitation on the number of function arguments: it was impossible in principle to call a function with more than nine arguments, whereas in practice more than twenty arguments were required for more or less complex chemical compounds. Arguments were poorly specified
Example
This code is compiled into the structure in the figure.
\ documentclass { letter }
\ usepackage { epic, carom }
\ pagestyle { empty }
\ begin { document }
\ begin { picture } (1000,500)
\ put (0,0) { \ steroid [d] { 3D == O; {{ 10 }} == \ lmoiety { H $ _ { 3 } $ C } ; {{ 13 }} == \ lmoiety { H $ _ { 3 } $ C } ; {{ 11 }} == HO }}
\ put (684,606) { \ sixunitv {} { 2D == O; 1 == OH } { cdef }}
\ end { picture }
\ end { document }
Notes
- ↑ RT Haas and KC O'Kane, Comput. Chem., 11, 251 (1987)
- ↑ M. Ramek, in "TEX: Applications, Uses, Methods," ed. by M. Clark, Ellis Horwood, London (1990) p 277
- ↑ S. Fujita, Comput. Chem., 18, 109-116 (1994)
- ↑ S. Fujita, TUGboat, 16 (1), 80-88 (1995)
Links
- Project site
- Wikibooks for XyMTeX
- Archive of documentation and software for ΤeΧ ( CTAN )
- Online catalog Τe каталог (inaccessible link)
- XyMTeX Wikiproject
- Google groups
- TeX Users Group (TUG)
- mw: Extension: WikiTeX - XyMTeX support in MediaWiki