Skip to Main Content
It looks like you're using Internet Explorer 11 or older. This website works best with modern browsers such as the latest versions of Chrome, Firefox, Safari, and Edge. If you continue with this browser, you may see unexpected results.
[NJIT logo]

LaTeX for CoAD: Tables

Tables

Tables are handled like figures in that they are inserted within a specific environment {tabular}

A lot can be done with tables.  For more extensive documentation see: https://www.sharelatex.com/learn/Tables 

The basics:

\begin{table}[htbp]
\begin{tabular}{column specification}
Table Content
\end{tabular}
\end{table}

Column specification is how you want the content to be justified.

c = centered

r = right aligned

l = left aligned

So \begin{tabular}{|c|c|c|c|} would contain four columns of centered content.  

Rows are separated by & and end with \\.  First cell & Second cell & Third cell & Fourth cell \\

\begin{table}[htbp]
\begin{tabular}{|c|c|c|c|}
First cell & Second cell & Third cell & Fourth cell \\
\end{tabular}
\end{table}

Or you can use the LaTeX Table Generator, which will automatically produce that LaTeX code.

 

LaTeX Table Generator

 

 

New Jersey Institute of Technology 
University Heights, Newark, New Jersey 07102-1982
(973) 596-3206
Contact Us |  Ask A Librarian | Map & Directions |  A to Z Site Index

Copyrighted 2020 | Robert W. Van Houten Library