How to Place a Captioned Table Across Two LaTeX Columns
At a glance
- 1. Use a starred float
Wrap the table in the table* environment to make the float span both columns.
- 2. Set its placement
Try [t] or [!t]; standard two-column LaTeX usually places wide floats at the top of a page.
- 3. Add the caption
Put \caption inside table*; it spans the float's full width. Put \label after \caption.
- 4. Size the contents
Use \textwidth for a wide tabular or tabularx, since the float covers the full text block.
In a two-column LaTeX document, the ordinary table environment occupies one column. To make a table float across the full text block—with its caption—use the starred form, table*. The caption belongs inside that environment, just as it would inside table.
A wide float cannot usually be placed at an arbitrary point in the text. In standard two-column LaTeX, table* floats are normally placed at the top of a page. The example below uses that conventional placement.
Minimal working example
This complete document uses the booktabs package for table rules and tabularx to make the table fill the available width. Both packages are available in standard LaTeX distributions.
\documentclass[twocolumn]{article}
\usepackage{booktabs}
\usepackage{tabularx}
\begin{document}
This text is set in two columns. The table below spans both columns.
\begin{table*}[t]
\centering
\caption{Example results across three study groups.}
\label{tab:results}
\begin{tabularx}{\textwidth}{lXrr}
\toprule
Group & Description & Participants & Mean score \\
\midrule
A & Received the standard treatment & 24 & 71.3 \\
B & Received the revised treatment & 26 & 78.5 \\
C & Control group & 25 & 69.8 \\
\bottomrule
\end{tabularx}
\end{table*}
The results are summarized in Table~\ref{tab:results}.
\end{document}
The key change is table* rather than table. The starred float has the width of the full two-column text area, so \textwidth is appropriate for the tabularx table. The X column expands to use available space; the other columns use their natural widths. If the table is already narrow enough, a regular tabular can go inside table* instead.
Caption, label, and placement
Put \caption inside table* to give it the width of the full float. Place \label after \caption so LaTeX associates the reference with the table number generated by the caption. You can put the caption above or below the tabular material, depending on the style guide; the example puts it above.
The [t] option requests the top of a page. You may see [!t] used to ask LaTeX to be less restrictive about its float-placement limits, but ! does not force the table to appear at the exact point in the source. Floats can move, and LaTeX may defer a wide table until it finds a suitable page. Keep the table code near the point where you first discuss it, and allow enough following text for LaTeX to place the float.
Why table* may move
A two-column float must fit across both columns at once. In the standard article class, table* is generally restricted to the top of a page (or a float page), even if you request a different location. In particular, [h] does not make it appear “here,” and [b] is not reliably supported for double-column floats by the standard setup.
If a publisher’s template requires bottom placement, check its documentation before changing float behavior. Packages such as dblfloatfix can enable bottom placement in many standard two-column setups, but the class or journal may have its own rules. Do not load float-placement packages blindly into a publisher’s template.
Common mistakes
- Using
tableinstead oftable*: the caption and table remain confined to one column. - Putting the caption outside the float: it will not be part of the wide table float and may not be numbered or positioned as intended.
- Using
\columnwidthfor a full-width table:\columnwidthis one column wide. Use\textwidthwhen a tabular environment needs the full width insidetable*. - Expecting exact source placement: a double-column table is a float, so LaTeX may move it to a later page. A placement option is a request, not an absolute position.
- Switching to
\onecolumnjust for the table: this changes the page layout and typically forces a page break.table*is the usual solution when the surrounding document should remain two-column.
If you only need the caption to span both columns while the table itself stays in one column, that is a different layout problem. For the usual case where both the table and its caption should be wide, place both inside table*.
References
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.