Dr. Tom V. Mathew 4 October 2006
This will produce a table like this:
Latex: Equations
Tables
Simple able
A simple table is given below.
\begin{tabular}{|c|c|}
%
Column One & Column Two \\\hline
1 & 11 \\
2 & 22 \\
3 & 33 \\\hline
%
\end{tabular}
Column One
Column Two
1
11
2
22
3
33
Table environment
The Table 1 shows a simple table.
This is produced by the follwing command.
\begin{table}
%
\caption{Simple Table Showing the Layout and Syntax}
%
\label{qtTabA}
%
\begin{center}
%
\begin{tabular}{|l|c|p{2in}|r|}\hline
%
Left & Center & Paragraph & Right \\ \hline
1 & 12.3 & This portions is in a paragraph mode.
We can write long sentences here. & 1234 \\
22 & 17.1 & Again the same & 234 \\
333 & 77.7 & Text & 2 \\\hline
\end{tabular}
%
\end{center}
%
\end{table}
Please note how the caption and lable is given.
Also the placement of the table.
Multi column and cline
The Table 2 shows a table with multi column feature.
The code is:
\begin{table}
%
\caption{Table Showing the Multi-Column Layout and cline}
%
\label{qtTabB}
%
\begin{center}
\begin{tabular}{|l|c|p{2in}|r|}\hline
%
\multicolumn{4}{|c|}{Different justification possible}\\ \hline
Left & Center & Paragraph & Right \\ \hline
1 & 12.3 & This portions is in a paragraph mode & 1234 \\
22 & 17.1 & Again the same & 234 \\ \cline{2-3}
333 & \multicolumn{2}{l|}{Total value is} & 2 \\\hline
\end{tabular}
%
\end{center}
%
\end{table}
Prof. Tom V. Mathew
2006-10-04