Positioning tables
Tables can get quite big. If there’s insufficient free space on a page to accommodate the table, that table will be pushed to the next page. This would leave white space at the end of the page. You could manually move some text to compensate. But imagine having a large document with many tables; manually moving images to balance page breaks can become cumbersome. Fortunately, LaTeX offers an automated solution for managing this.
How to do it...
This is the standard way of including tables:
- Use a table environment.
- Center the content, if desired, using the \centering command.
- Write a caption.
- Add a label for cross-referencing.
- Write the table content using a tabular environment.
A typical code sequence looks like this:
\begin{table}[htbp!] \centering \caption{A description} \label{tab:name} \begin{tabular}{...} ... \end{tabular}\end{table}...