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 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 Lamport's book . These commands are documented in the latex command documentation sections of this web site.

XML Dependent Interpretation
If the -xml command line option is specified, commands must be a sequence of the Latex math mode commands (see Section 3.3 of Lamport's book ). In this case, these 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 MathML section of the installation guide.)

If the -xml option is not specified, the corresponding output files have the .htm extension. In this case, the latex command has the same effect as the pre command except that spell checking is not preformed on commands. You can view the HTML version of this section by selecting latex.htm .

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.
Latex Symbols And Other Atomic Entities
Diacritical Marks Above Other Output
Latex Numbers
Latex Standard Mathematics Functions
Latex Subscripts and Superscripts
Latex Fraction Command
Latex Root Command
The Latex Array Command
Latex Enclose With Left and Right Commands
Latex Underline, Underbrace, Overline, and Overbrace
Stacking One Thing Above Another
Changing Latex Font
Horizontal Spacing Of Output
The Latex Comment Command
The MathML Command

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