<?xml version='1.0'?>
<?xml-stylesheet type='text/xsl' href='pmathml.xsl'?>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>Using Latex Math Formulas in OMhelp</title>
<meta name="description" id="description" content="Using Latex Math Formulas in OMhelp"/>
<link rel='icon' type='image/png' href='_favicon.png'/>
<meta name="keywords" id="keywords" content=" convert latex Mathml inline display "/>
<style type='text/css'>
body { color : black }
body { background-color : white }
A:link { color : blue }
A:visited { color : purple }
A:active { color : purple }
</style>
<script type='text/javascript' language='JavaScript' src='_latex_xml.js'>
</script>
</head>
<body>
<table><tr>
<td>
<a href="../home.htm" target="_top"><img border="0" src="_image.gif"/></a>
</td>
<td><a href="nospell.xml" target="_top">Prev</a>
</td><td><a href="symbol.xml" target="_top">Next</a>
</td><td>
<select onchange='choose_across0(this)'>
<option>Index-&gt;</option>
<option>contents</option>
<option>reference</option>
<option>index</option>
<option>search</option>
<option>external</option>
</select>
</td>
<td>
<select onchange='choose_up0(this)'>
<option>Up-&gt;</option>
<option>overview</option>
<option>latex</option>
</select>
</td>
<td>
<select onchange='choose_down1(this)'>
<option>overview-&gt;</option>
<option>License</option>
<option>why</option>
<option>Install</option>
<option>get_started</option>
<option>running</option>
<option>files</option>
<option>titles+headings</option>
<option>cross</option>
<option>format</option>
<option>spellchecking</option>
<option>latex</option>
<option>other</option>
<option>browser</option>
<option>glossary</option>
<option>whatsNew</option>
</select>
</td>
<td>
<select onchange='choose_down0(this)'>
<option>latex-&gt;</option>
<option>symbol</option>
<option>diacritical</option>
<option>stdfun</option>
<option>subsup</option>
<option>frac</option>
<option>sqrt</option>
<option>array</option>
<option>left_right</option>
<option>under_over</option>
<option>stackrel</option>
<option>latexfont</option>
<option>latexcomment</option>
<option>LatexMacro</option>
<option>mathml</option>
</select>
</td>
<td>
<select onchange='choose_current0(this)'>
<option>Headings-&gt;</option>
<option>Introduction</option>
<option>XML Dependent Interpretation</option>
<option>Inline Formulas</option>
<option>Displayed Formulas</option>
<option>Command Documentation</option>
<option>Reference</option>
</select>
</td>
</tr></table><br/>






<center><b><big><big>Using Latex Math Formulas in OMhelp</big></big></b></center>
<table><tr><td align='left'  valign='top'>
<b>Syntax</b>
</td><td align='left'  valign='top'>
 <code><font color="blue"><span style='white-space: nowrap'>$latex&#xA0;</span></font></code><i><span style='white-space: nowrap'>commands</span></i><code><font color="blue"><span style='white-space: nowrap'>&#xA0;$$</span></font></code> </td></tr><tr><td align='left'  valign='top'>

</td><td align='left'  valign='top'>
 <code><font color="blue"><span style='white-space: nowrap'>$latex&#xA0;\[&#xA0;</span></font></code><i><span style='white-space: nowrap'>commands</span></i><code><font color="blue"><span style='white-space: nowrap'>&#xA0;\]&#xA0;$$</span></font></code> </td></tr><tr><td align='left'  valign='top'>

<b>See Also</b>
</td><td align='left'  valign='top'>
 <a href="start_latex.xml" target="_top"><span style='white-space: nowrap'>getting&#xA0;started</span></a>

</td></tr>
</table>
<br/>
<b><big><a name="Introduction" id="Introduction">Introduction</a></big></b>

<br/>
<a href="http://www.tug.org/begin.html" target="_top"><span style='white-space: nowrap'>Latex</span></a>

is a widely used language for expressing mathematics in terms of text input.
OMhelp will convert Latex math formulas 
to MathML so that they 
can be displayed in a browser. 
The Latex math formula commands
are defined in Section 3.3 of 
<a href="latex.xml#Reference" target="_top"><span style='white-space: nowrap'>Lamport's&#xA0;book</span></a>
.
These commands are documented in the 
<a href="latex.xml#Command Documentation" target="_top"><span style='white-space: nowrap'>latex&#xA0;command&#xA0;documentation</span></a>
 
sections of this web site.

<br/>
<br/>
<b><big><a name="XML Dependent Interpretation" id="XML Dependent Interpretation">XML Dependent Interpretation</a></big></b>
<br/>
If the <a href="running.xml#xml" target="_top"><span style='white-space: nowrap'>-xml</span></a>
 
command line option is specified,
<i>commands</i> must be a sequence of the Latex 
math mode commands 
(see Section 3.3 of <a href="latex.xml#Reference" target="_top"><span style='white-space: nowrap'>Lamport's&#xA0;book</span></a>
).
In this case,
these commands are converted to MathML,
and the corresponding output files have the <code><font color="blue">.xml</font></code> extension. 
You can view the XML
version of this section by selecting
<a href="latex.xml" target="_top"><span style='white-space: nowrap'>latex.xml</span></a>
. 
(If your browser does not display MathML,
refer to the
<a href="install.xml#MathML" target="_top"><span style='white-space: nowrap'>MathML</span></a>
 section of the installation guide.)
<code><span style='white-space: nowrap'><br/>
<br/>
</span></code>If the <code><font color="blue">-xml</font></code> option is <b>not</b> specified,
the corresponding output files have the
<code><font color="blue">.htm</font></code> extension.
In this case,
the <code><font color="blue">latex</font></code> command
has the same effect as the <a href="pre.xml" target="_top"><span style='white-space: nowrap'>pre</span></a>
 command except
that <a href="nospell.xml" target="_top"><span style='white-space: nowrap'>spell&#xA0;checking</span></a>
 is not preformed on <i>commands</i>.
You can view the HTML
version of this section by selecting
<a href="latex.htm" target="_top"><span style='white-space: nowrap'>latex.htm</span></a>
. 

<br/>
<br/>
<b><big><a name="Inline Formulas" id="Inline Formulas">Inline Formulas</a></big></b>


<br/>
The input
<code><font color='blue'><pre style='display:inline'> 
	The ratio $latex \frac{1}{2 \pi} $$ is very useful. 
</pre></font></code>

generates the output
<code><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</span></code>The ratio  
<math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><mrow>
<mfrac><mrow><mn>1</mn>
</mrow>
<mrow><mn>2</mn>
<mi mathvariant='normal'>&#x003C0;</mi>
</mrow>
</mfrac>
</mrow></math>

 is very useful. 
<code><span style='white-space: nowrap'><br/>
</span></code>It is ok to have an empty inline formula
and this is useful for defining 
<a href="latexmacro.xml" target="_top"><span style='white-space: nowrap'>Latex&#xA0;macros</span></a>
.

<br/>
<br/>
<b><big><a name="Displayed Formulas" id="Displayed Formulas">Displayed Formulas</a></big></b>


<br/>
The input
<code><font color='blue'><pre style='display:inline'> 
	The ratio $latex \[ \frac{1}{2 \pi} \] $$ is very useful. 
</pre></font></code>

generates the output
<code><span style='white-space: nowrap'><br/>
&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</span></code>The ratio  
	
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mrow>
<mfrac><mrow><mn>1</mn>
</mrow>
<mrow><mn>2</mn>
<mi mathvariant='normal'>&#x003C0;</mi>
</mrow>
</mfrac>
</mrow></math>

<code><span style='white-space: nowrap'>&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;</span></code>is very useful. 



<br/>
<br/>
<b><big><a name="Command Documentation" id="Command Documentation">Command Documentation</a></big></b>
<br/>
Only the Latex
commands documented below are allowed in <i>commands</i>. 




<table><tr><td align='left'  valign='top'>

<a href="symbol.xml" target="_top">Latex Symbols And Other Atomic Entities</a>       </td></tr><tr><td align='left'  valign='top'>

<a href="diacritical.xml" target="_top">Diacritical Marks Above Other Output</a>  </td></tr><tr><td align='left'  valign='top'>

<a href="latexnumber.xml" target="_top">Latex Numbers</a>  </td></tr><tr><td align='left'  valign='top'>

<a href="stdfun.xml" target="_top">Latex Standard Mathematics Functions</a>       </td></tr><tr><td align='left'  valign='top'>

<a href="subsup.xml" target="_top">Latex Subscripts and Superscripts</a>       </td></tr><tr><td align='left'  valign='top'>

<a href="frac.xml" target="_top">Latex Fraction Command</a>         </td></tr><tr><td align='left'  valign='top'>

<a href="sqrt.xml" target="_top">Latex Root Command</a>         </td></tr><tr><td align='left'  valign='top'>

<a href="array.xml" target="_top">The Latex Array Command</a>        </td></tr><tr><td align='left'  valign='top'>

<a href="left_right.xml" target="_top">Latex Enclose With Left and Right Commands</a>   </td></tr><tr><td align='left'  valign='top'>

<a href="under_over.xml" target="_top">Latex Underline, Underbrace, Overline, and Overbrace</a>   </td></tr><tr><td align='left'  valign='top'>

<a href="stackrel.xml" target="_top">Stacking One Thing Above Another</a>     </td></tr><tr><td align='left'  valign='top'>

<a href="latexfont.xml" target="_top">Changing Latex Font</a>    </td></tr><tr><td align='left'  valign='top'>

<a href="space.xml" target="_top">Horizontal Spacing Of Output</a>        </td></tr><tr><td align='left'  valign='top'>

<a href="latexcomment.xml" target="_top">The Latex Comment Command</a> </td></tr><tr><td align='left'  valign='top'>

<a href="mathml.xml" target="_top">The MathML Command</a> 
</td></tr>
</table>
<br/>
<b><big><a name="Reference" id="Reference">Reference</a></big></b>
<br/>
Latex is documented in 
Leslie Lamport's book
<i>
A Document Preparation System LaTex
</i>
published by Addison-Wesley in 1986.


<hr/>Input File: latex.omh

</body>
</html>
