📅 2010-Mar-21 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ latex, packages, tables ⬩ 📚 Archive
Tables are commonly created in LaTeX using the tabular environment. For example, a simple 2 column table:
\begin{tabular}{c c}
Tea & Coffee\\
Coke & Pepsi\\
\end{tabular}
These tables are treated as unbreakable by LaTeX. Thus, a long table will not be broken across a page break, but will be moved into the next page. If you want a table to flow across pages, by being broken across page breaks, the longtable package can be used to achieve that.
Load the longtable
package:
\usepackage{longtable}
Replace tabular
with longtable
:
\begin{longtable}{c c}
Tea & Coffee\\
Coke & Pepsi\\
\end{longtable}