Professional Documents
Culture Documents
There are two types of math ‘environments’ (styles) in LATEX. The in-line
and display style.
The other math environment such as equation, align, eqnarray are all
examples of display math style. They all produce numbered equations.
For the unnumbered ones we use equation*, align*, eqnarray*. The
default numbering is 1,2,....
For instance:
will produce:
x =u (1.1)
y =z (1.2)
1
The inequality $$x+y\ge z$$ is an example of display math.
The inequality
x+y ≥z
is an example of display math.
\begin{equation}
Y=\begin{cases}
2x,&\text{when } x\geq 0\\
0,&\text{otherwise}
\end{cases}
\end{equation}
\begin{equation}
Y=\begin{dcases}
2x,&\text{when } x\geq 0\\
0,&\text{otherwise}
\end{dcases}
\end{equation}
(
2x, when x ≥ 0
Y = (1.4)
0, otherwise
2
\begin{equation}
Y=\begin{dcases*}
2x,& when $x\geq 0$\\
0,& {otherwise}
\end{dcases*}
\end{equation}
(
2x, when x ≥ 0
Y = (1.5)
0, otherwise
2 Theorems
\begin{theorem}[Cauchy]\label{thm:1}
If $G$ is a finite group and $p$ is a prime number dividing
the order of $G$ (the number of elements in $G$), then $G$
contains an element of order $p$.
\end{theorem}
\usepackage{amsthm}
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}[section]
3
The option can be a chapter, subsection, etc. depending on user’s
preferences in numbering of the theorem.