$\let\divisionsymbol\div \let\oldRe\Re \let\oldIm\Im$

Table

table simple

$\begin{array}{ccc} xxx & yyy & zzz \\ 1 & 2 & 3 \end{array}$

\begin{array}{ccc}
  xxx & yyy & zzz \\
  1   & 2   & 3
\end{array}
Copy

Using the "array" environment, you can create tables. The "ccc" aligns each value in the table cells to the center.

table with vertical line

$\begin{array}{|c|c|c|} xxx & yyy & zzz \\ 1 & 2 & 3 \\ \end{array}$

\begin{array}{|c|c|c|}
  xxx & yyy & zzz \\
  1   & 2   & 3 \\
\end{array}
Copy

By using "|" like the "c|c|c" specification, you can include vertical lines to separate the columns in the table.

table with horizontal line

$\begin{array}{ccc} \hline xxx & yyy & zzz \\ \hline 1 & 2 & 3 \\ \hline \end{array}$

\begin{array}{ccc}
  \hline
  xxx & yyy & zzz \\
  \hline
  1   & 2   & 3 \\
  \hline
\end{array}
Copy

The command "\hline" is used to insert a horizontal line in a table. It is derived from hozirontal line.

table sample

$\begin{array}{c|ccccc} x & \cdots & -1 & \cdots & 1 & \cdots \\ \hline f’(x) & + & 0 & – & 0 & + \\ \hline f(x) & \nearrow & e & \searrow & -e & \nearrow \end{array}$

\begin{array}{c|ccccc}
  x     & \cdots & -1 & \cdots & 1 & \cdots \\ 
  \hline
  f’(x) & + & 0 & – & 0 & + \\ 
  \hline
  f(x)  & \nearrow & e & \searrow & -e & \nearrow
\end{array}
Copy