Tables that span two columns in IEEE and other two-column templates
In a two-column template such as IEEEtran, a normal table float is one column wide. To span both columns, use table* instead of table, give it a [!t] placement, and size the tabular to \textwidth rather than \columnwidth. Starred floats can only sit at the top of a page, so one may land a page later than where you typed it.
Convert a table from a PDF or screenshot →By TableToLatex · · Examples tested with pdfLaTeX, TeX Live 2023, IEEEtran (conference), acmart (sigconf)
How starred floats work
In a two-column class, a table float is one column wide. A table* float spans both. Starred floats follow stricter rules, because LaTeX can place them only at the top of a page or on a page of floats. In a test with IEEEtran, a ten-column table in a normal table was 187.6 pt too wide for its column, and the same table in table* fitted with no warning.
% IEEEtran with the conference option; other two-column classes work the same way
\begin{table*}[!t]
\centering
\caption{Wide results table spanning both columns.}
\label{tab:wide}
\begin{tabular*}{\linewidth}{@{\extracolsep{\fill}}lrrrrrrrrr}
\toprule
Method & Accuracy & Precision & Recall & F1 score & AUC & Latency (ms) & Params (M) & FLOPs (G) & Memory (GB) \\
\midrule
Baseline & 71.2 & 69.8 & 70.1 & 69.9 & 0.812 & 14.2 & 25.6 & 4.1 & 2.3 \\
Ours & 74.8 & 73.5 & 74.0 & 73.7 & 0.847 & 15.9 & 25.9 & 4.4 & 2.5 \\
\bottomrule
\end{tabular*}
\end{table*}Widths are the usual source of confusion. A column is much narrower than the text block, and the numbers depend on your template.
% in a scratch paragraph of your own template:
colwidth=\the\columnwidth, textwidth=\the\textwidth, tabcolsep=\the\tabcolsep
% IEEEtran, conference option:
% colwidth=252.0pt, textwidth=516.0pt, tabcolsep=6.0ptPlacement is the other surprise. In the test, a table* typed in the first section appeared at the top of the second page. Typing [b] did not move it to the bottom of page one, and [h] produced "float specifier changed to ht". Adding the stfloats package allowed bottom placement, but some publishers discourage extra packages, so ask first.
If a table is still too wide for the full text width, scaling and other fixes are in the guide to tables that are too wide. Caption position follows the template, as in caption above or below. A table that runs over several pages needs a longtable, which two-column classes do not allow.
Span two columns in seven steps
- 1
Measure your template
Print \the\columnwidth and \the\textwidth once in a scratch paragraph. In IEEEtran with the conference option they were 252 pt and 516 pt.
- 2
Try one column first
A single-column table is simpler to place. Abbreviate headers, use \footnotesize and a smaller \tabcolsep before you give up a column.
- 3
Rename the float
Change both \begin{table} and \end{table} to table*, and the placement to [!t].
- 4
Size to the full width
Use tabular* with width \linewidth and @{\extracolsep{\fill}} in the column specification, or keep the natural width and \centering. Inside table*, \linewidth is the full text width.
- 5
Type it early
Put the environment before the paragraph that first cites it. A starred float can only land at the top of the current or a later page.
- 6
Cite by number
Write Table~\ref{tab:wide}, never "the table below", because the table may end up a page away from the text.
- 7
Check the PDF
Find where the table landed, and confirm that table numbers still run in order.
Which float for which width
| Environment | Width available | Placement it accepts | Use it for |
|---|---|---|---|
| table | \columnwidth (252 pt in the test) | h, t, b, p | Narrow tables, up to about one column |
| table* | \textwidth (516 pt in the test) | t and p; b only with stfloats | Tables that need both columns |
| table* with scaling | \textwidth | t and p | Tables slightly wider than \textwidth |
| longtable | none: not allowed | not applicable | Not usable in a two-column layout |
What goes wrong
- Half-width table. Inside
table*,\columnwidthis still one column. Use\linewidthor\textwidth. - Overflow in a normal table. Sizing to
\textwidthinside a one-columntablepushes the table into the next column. - The table appears a page late. That is how starred floats behave. Cite by number, not by position.
- Placement warnings. A lone
htriggers "float specifier changed to ht", andbhas no effect on a starred float without stfloats. - Package longtable Error. "longtable not in 1-column mode" in a two-column class. Split the table or place it in the supplement.
- Overriding the caption style. The class sets it, small capitals above the table in IEEEtran, so avoid manual formatting.
How TableToLatex helps
TableToLatex writes each table as a table[htbp] float with a booktabs tabular. For a table that spans both columns in your template, rename the float to table* and change the placement to [!t], as above, because starred floats are placed at the top of a page. Upload the PDF page with PDF to LaTeX tables. The table tool is free and runs in your browser. Paste a tab-separated range from a spreadsheet. See pricing.
Questions about two-column tables
How do I make a table span two columns in IEEEtran?+
Use \begin{table*}[!t] ... \end{table*} instead of table. The starred form spans both columns, and inside it \linewidth equals the full text width.
Why does my table* appear on the next page?+
A two-column float can only sit at the top of a page or on a float page. In a test, a starred table typed in the first section went to the top of page two. Type it earlier, or cite it by number so the text still reads well.
Can a two-column table go at the bottom of the page?+
Not with the standard float rules: in a test, [b] still moved the table to the next page. The stfloats package enables bottom placement for starred floats, and the same test then kept it on page one. Check that your publisher allows the package.
What is the difference between textwidth and columnwidth?+
\columnwidth is the width of one column and \textwidth is the width of the whole text block. In IEEEtran, inside table*, \columnwidth stayed 252 pt while \linewidth was 516 pt, so size starred tables with \linewidth or \textwidth.
Why does LaTeX say h float specifier changed to ht?+
LaTeX adds a t whenever h is the only specifier, because a lone h often cannot be met. For a starred float an h can never be honoured, so the table goes to the top of this or a later page anyway. Use [!t] to say what you mean.
Can I use longtable in a two-column paper?+
No. The package stops with "longtable not in 1-column mode". Use table*, split the table in two, or ask whether supplementary material is allowed.
Does this work in ACM and other two-column templates?+
table* is part of standard LaTeX, so it works in most two-column classes. In a test with acmart sigconf, \columnwidth was 241 pt, \textwidth 506 pt, and \linewidth inside table* 506 pt, so the same rules apply with different numbers. Print the widths in your own template.
Keep reading
- Table too wide
resizebox, adjustbox, landscape and sidewaystable, and when each is right.
- Caption position
Where \caption goes, what templates expect, spacing, and the \label order trap.
- longtable
Repeating headers across pages with longtable and xltabular.
Have a table in a spreadsheet? Paste it into the table tool, or see all LaTeX table guides.