Prev Next

An Example Using Latex Math Formula Commands

latex
latex_example.omh
Example In This Web Site

latex
The latex command is used to display mathematics that is specified using the Latex math formula commands defined in Section 3.3 of Lamport's book . These commands are documented in the latex command documentation sections of this web site.

latex_example.omh
Use the editor of your choice to create the file latex_example.omh in the xam directory with the following contents:
 
     $begin latex_example$$
     $spell
     	Mozilla
     $$
     $section An Example Using Latex To Display Mathematics$$
     
     $head Browser$$
     Any browser can be used to view the HTML file for this example.
     The Mozilla
     browser should be used to view the XML file for this example.
     
     $head In Line$$
     The sum
     $latex
     	\sum_{n=1}^\infty 2^{-n}
     $$
     is equal to one.
     
     $head Display Mode$$
     The sum
     $latex
     \[
     	\sum_{n=1}^\infty \frac{1}{2^n}
     \]
     $$
     is equal to one.
     
     
     $end
You can also just copy latex_example.omh from the omh/getstarted directory . Once you have done this, you can execute omhelp with example_name equal to latex_example.

Example In This Web Site
You can view the result of making latex_example.omh part of the OMhelp help web site by selecting latex_example .
Input File: omh/getstarted/start_latex.omh