Prev Next math

Math Mode

Syntax
See Also
Deprecated 2015-10-11
Description
Pre-formatted
Font
Escape Sequences
New Lines
Using The Delimiter
Changing Escape

Syntax
$math text$$

See Also
latex , pre , syntax

Deprecated 2015-10-11
This command has been deprecated, use the latex command in its place.

Description
This command is used for displaying mathematical expressions in HTML format using only ascii characters. (The latex command can be used to display an extended set of mathematical symbols in MathML format.) The argument text must be a delimiter sequence .

Pre-formatted
The characters in text are output in a pre-formatted font . This enables you to line up one equation above another.

Font
In math mode, letters are displayed in italic font. For example, the input
 
     $math%x * y%$$
results in the output
     x * y


Escape Sequences
In math mode, the escape character and the letters that follow it, represent an escape sequence. If the sequence is one of those listed below, the output is translated to the corresponding symbol. If the sequence is not one of those listed below, the escape character is removed and the sequences of letters that follow are printed in normal font (as opposed to italic font). The backslash is the default escape character and if the current escape character is different, it should replace the occurrences of the backslash character in the table below.
\ge   \ge
\le   \le
\\   \\
For example,
 
     $math%\int f(x) dx \le 1%$$
results in the following output
     \int f(xdx \le 1


New Lines
In math mode, new lines are transferred to the output so that the resulting equation has the same number of lines as the input. In addition, tabs are translated to spaces. For example, the input
 
     $math%
          x * z = 1
              y = 2
     %$$
would result in:
     x * z = 1
         y = 2


Using The Delimiter
Neither the delimiter nor the escape character are included in the output. The delimiter can be used for spacing the equations so they line up. For example, the input
 
     $math%
          %  \minimize f(x)
          \subject \to g(x) <= 0
     %$$
would result in:
       \minimize f(x)
     \subject \to g(x) <= 0

Changing Escape
If there is a backslash in a formula, it can be useful to changed the escape character. For example, the following input
 
     $escape #$$
     $math%

          / 1 0 0 \
          | 0 1 0 |
          \ 0 0 1 /

     %$$
produces the following output

     / 1 0 0 \
     | 0 1 0 |
     \ 0 0 1 /


Input File: omh/math.omh