# OpenMath Content Dictionary: altenc

Canonical URL:
http://www.openmath.org/cd/altenc.ocd
CD File:
altenc.ocd
CD as XML Encoded OpenMath:
altenc.omcd
Defines:
LaTeX_encoding, MathML_encoding
Date:
2001-03-12
Version:
2
Review Date:
2003-04-01
Status:
official
Uses CD:
transc1

A CD of alternative encoding symbols

This CD is motivated in part by a desire to maintain compatibility with the MathML semantics element,

In order for it to be possible for OpenMath to express symbols in an alternative encoding (this facilitates the exact translation and representation of objects) we use the OpenMath attribution nodes (which performs a similar role to the MathML semantics nodes). The formats and descriptions of common syntaxes are held in this CD; at present this only includes LaTeX and MathML.

Alternative encodings in OpenMath are dealt with by using OMATTR
symbols together with the alternative encoding placed in a string.
The string encoding must be valid XML, and so non-XML valid characters
must themselves be encoded as suggested in "Draft of the OpenMath
Standard".

For alternative encodings to be represented in OpenMath, one must
define a symbol to describe the encoding.


## MathML_encoding

A symbol which heads a piece of MathML encoding in an attribution. The MathML encoding is an XML encoding, and the details may be found at: http://www.w3.org/Math/Overview.html

Signatures:
sts

 [Next: LaTeX_encoding] [Last: LaTeX_encoding] [Top]

## LaTeX_encoding

A symbol which heads a piece of LaTeX encoding in an attribution.

Example:
<OMOBJ>
<OMATTR>
<OMATP>

<OMS cd="altenc" name="MathML_encoding"/>
<OMSTR>
&lt;sin&gt; 1.5 &lt;/sin&gt;
</OMSTR>

<OMS cd="altenc" name="LaTeX_encoding"/>
<OMSTR>
\sin(1.5)
</OMSTR>

</OMATP>

<OMA>
<OMS cd="transc1" name="sin"/>
<OMF dec="1.5"/>
</OMA>

</OMATTR>
</OMOBJ>

Attrib([ MathML_encoding " <sin> 1.5 </sin> " LaTeX_encoding " \sin(1.5) " ], sin ( 1.5 ) )

Signatures:
sts

 [First: MathML_encoding] [Previous: MathML_encoding] [Top]