LATEX has a special mode for typesetting mathematics.
Mathematical text within a paragraph is entered between (
and ), between $ and $
or between
\begin{math} and \end{math}.
It is preferable to display larger mathematical equations or formulae,
that is to typeset them on separate lines. Therefore you enclose them
between [ and ] or between
\begin{displaymath} and
\end{displaymath}. This produces formulae which are not
numbered. If you want LATEX to number them, you can use the
equation environment.
With label and ref you can reference an equation within the text.
Note that expressions will be typeset if a different style if displayed:
contrast
There are differences between math mode and text mode. For example, in math mode:
\textrm{...} commands.
Mathematicians can be very fussy about which symbols are used:
it would be conventional here to use `blackboard bold'
which is obtained by mathbb from the
package amsfonts or amssymb.
The last example becomes