Documents Automation - Tables

Overview


Sometimes a document needs to display its data in a table format. Latex provides the ability to display and format tables of data. The following is an example of a latex table.


\begin{table}[h!]
  \begin{center}
    \caption{table caption.}
    \label{tab:table1}
    \begin{tabular}{l|c|r} %  Alignments: left center right
      \textbf{Column 1} & \textbf{Column 2} & \textbf{Column 3}\\
      \hline
      1 & 1110.1 & text1\\
      2 & 10.1 & text2\\
      3 & 23.113231 & text3\\
    \end{tabular}
  \end{center}
\end{table}