-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathequation.tex
38 lines (31 loc) · 1.04 KB
/
equation.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
\section{Equation}
\subsection{Aligning equations}
If you are going to list more than one equation in an aligned manner, you can use the \emph{split} or \emph{aligned} in the package \emph{amsmath}. Two samples are shown as below:
\begin{lstlisting}
\begin{equation} \label{eq:align_sample_1}
a = \sum_{i=1}^{n} i \\
b = \frac{(n+1)(n+2)}{n!}
\end{equation}
\end{lstlisting}
\begin{equation} \label{eq:align_sample_1}
\begin{split}
a &= \sum_{i=1}^{n} i \\
b &= \frac{(n+1)(n+2)}{n!}
\end{split}
\end{equation}
\begin{lstlisting}
\begin{equation} \label{eq:align_sample_2}
\begin{aligned}
F ={} & \{F_{x} \in F_{c} : (|S| > |C|) \\
& \cap (\mathrm{minPixels} < |S| < \mathrm{maxPixels}) \\
& \cap (|S_{\mathrm{conected}}| > |S| - \epsilon)\}
\end{aligned}
\end{equation}
\end{lstlisting}
\begin{equation} \label{eq:align_sample_2}
\begin{aligned}
F ={} & \{F_{x} \in F_{c} : (|S| > |C|) \\
& \cap (\mathrm{minPixels} < |S| < \mathrm{maxPixels}) \\
& \cap (|S_{\mathrm{conected}}| > |S| - \epsilon)\}
\end{aligned}
\end{equation}