You're not reading the latest revision of this page, which is here.

Tables

Example 1 - Standard layout

1
2
3
4
5
\begin{table}
A & B & C \\
D & E & F \\
G & H & I
\end{table}

Example 2 - head, body, foot

1
2
3
4
5
6
7
8
9
10
\begin{table}
  \head
     Name & Value & Description
  \body
     A   &  12   & Something \\
     B   &  25   & Something else \\
     C   &   0   & Nothing
  \foot
     Sum &  37   & Total value
\end{table}

Example 3 - cellaligns

1
2
3
4
5
6
7
8
\begin{table}[\cellaligns{rcl}]
  \head
    1 & 2 & 3
  \body
    A & B & C \\
    D & E & F \\
    G & H & I
\end{table}

Example 4 - no border

1
2
3
4
5
\begin{table}[\class{layout}]
    $\underline{\mu_1}= 1$ &  $\qquad \qquad \overline{\mu_1}= 3$  \\
    $\underline{\mu_2}= 2$ &  $\qquad \qquad \overline{\mu_2}= 4$  \\
    $\underline{\mu_3}= 3$ &  $\qquad \qquad \overline{\mu_3}= 5$  \\
\end{table}

Example 5 - Addition

1
2
3
4
5
6
\begin{table}[\class{layout}]
 & & 3,& 8 & 3\\
 +& & 7,& 8 & 1\\
 \colspan{5}\hrule\\
 & 1 & 1, & 6 & 4
\end{table}

Example 6 - background

1
2
3
4
5
6
7
8
9
\begin{table}[\background{green}]
\head[\background{rgb(255,228,196)}]
A & B & C & D
\body
& 3 & 8 & 3\\
& 7 & 8 & 1
\foot[\background{#EEEEEE}]
A & B & C & D        
\end{table}

Example 7 - items

1
2
3
4
5
\begin{table}[\class{items}]
 3 & 8 & 3\\
 4 & 7 & 8\\
 1 & 1 & 6
\end{table}

Example 8 - genuine

1
2
3
4
5
\begin{table}[\class{genuine}]
 3 & 8 & 3\\
 4 & 7 & 8\\
 1 & 1 & 6
\end{table}

Generic Problem Example - butcher - Not yet available everywhere

1
2
3
4
5
\begin{table}[\class{butcher}\cellaligns{cccc}]
\ansref & & \\
\ansref & \ansref & \\
 & \ansref & \ansref\\
\end{table}

Generic Problem Example - simple - Not yet available everywhere

1
2
3
4
5
\begin{table}[\class{simple}\cellaligns{ccccccc}]
$ \phantom{.}_t$ ╲ $\phantom{.}^x$& 0 & 5 & 10 & 15 & 20 & 25\\
0 & \ansref & \ansref & \ansref & \ansref & \ansref & \ansref \\
5 & \ansref & \ansref & \ansref & \ansref & \ansref & \ansref \\
\end{table}