|
Prev | Next |
latex_example.omh
in the
test 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
Note that you can copy and paste the commands above
to your editor window.
You may just copy the file with the same name from the
getting started directory
.
image_example.omh
part of the OMhelp help web site
by selecting
latex_example
.
omhelp ../latex_example.omh -noframe
omhelp ../latex_example.omh -xml -noframe
The first command creates a set of HTML files.
The second command creates a set of
XML
files.
In the HTML case,
the Latex commands appear to the viewer.
In the XML case,
the Latex commands are translated to MathML commands
and the viewer will see the mathematics.
test/htm/latex_example.htm.
Use the
Mozilla
web browser to view the file
test/htm/latex_example.xml.