LateX Quick Reference

by Saji P. K.

Home

Table

Creating tables
-------------------------
It is better to use the menu "Wizard -> Quick Tabular" to insert a table.

Columns are seperated with the  '&' character.

Horizontal lines with \hline

Vertical lines will be decided in the option for the \tabular command.

Labels and Captions
--------------------
To add labels (so that table can be referred in the text automatically)
and captions use (for a two-row, two-column table):

\begin{table}
\caption{Caption above}
\begin{center}
\begin{tabular}{|c|c|}
\hline 
x & y \\ 
\hline 
• & • \\ 
\hline
\end{tabular} 
\end{center}
\label{table1}
\end{table}

List of Tables
---------------------------
To make the list of tables used in the document, use the 
\listoftables command in the beginning of the document that will pick up
the tables, their numbers, captions, page number automatically.