Prev Next

Using Latex Math Formulas in OMhelp

Syntax
$latex commands$$
$latex \[ commands \]$$

See Also
getting started

Introduction
Latex is a widely used language for expressing mathematics in terms of text input. OMhelp will display math formulas expressed using the Latex math language. The Latex math language is defined in Section 3.3 of Lamport's book . These commands are documented in the latex command documentation sections of this web site.

MathML (xml)
If the -xml command line option is specified, the Latex commands are converted to MathML and the corresponding output files have the .xml extension. You can view the XML version of this section by selecting latex.xml . (If your browser does not display MathML, refer to the displaying MathML .)

MathJax (htm)
If the -xml option is not specified, the corresponding output files have the .htm extension. In this case, the latex command are displayed using MathJax . You can view the HTML version of this section by selecting latex.htm . This requires an internet connection in order to use the MathJax content delivery network.

Inline Formulas
The input
 
     The ratio $latex \frac{1}{2 \pi} $$ is very useful.
generates the output
     
The ratio @(@ \frac{1}{2 \pi} @)@ is very useful.
It is ok to have an empty inline formula and this is useful for defining Latex macros .

Displayed Formulas
The input
 
     The ratio $latex \[ \frac{1}{2 \pi} \] $$ is very useful.
generates the output
     
The ratio @[@ \frac{1}{2 \pi} @]@   is very useful.

Command Documentation
Only the Latex commands documented below are allowed in commands .

Contents
symbolLatex Symbols And Other Atomic Entities
diacriticalLatex Diacritical Marks Above Other Output
stdfunLatex Standard Mathematics Functions
subsupLatex Subscripts and Superscripts
fracLatex Fraction Command
sqrtLatex Square Root Command
arrayLatex Array Command
left_rightLatex Enclose With Left and Right Commands
under_overLatex Underline, Underbrace, Overline, and Overbrace
stackrelLatex Stacking One Thing Above Another
latexfontChanging Latex Font
latexcommentLatex Comment Command
LatexMacroThe Latex Macro Preprocessor
mathmlLatex MathML Command
diff_xml_htmDifference Between MathML(xml) and MathJax(htm) Display

Reference
Latex is documented in Leslie Lamport's book A Document Preparation System LaTex published by Addison-Wesley in 1986.
Input File: latex.omh