Graphics, Figures & TablesMaking Table Full Width For Two Column Template

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
fk4517
Posts: 2
Joined: Mon Jul 27, 2020 11:42 pm

Making Table Full Width For Two Column Template

Post by fk4517 »

Hi,

I am using this template:

https://www.latextemplates.com/template/stylish-article

Could someone please kindly explain how I can make tables span two columns? I can't seem to get it to work properly with:

Code: Select all

\begin{tabu} to \textwidth {XXXX}
   \toprule
   xx & 1 & 2 & 3 \\
   \bottomrule
\end{tabu}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Making Table Full Width For Two Column Template

Post by Bartman »

tabu is no longer maintained. If that bothers you, it is better to use a different environment, such as tabularx.

Use the starred variant of the table environment to span the table across both columns.
fk4517
Posts: 2
Joined: Mon Jul 27, 2020 11:42 pm

Making Table Full Width For Two Column Template

Post by fk4517 »

Bartman wrote:tabu is no longer maintained. If that bothers you, it is better to use a different environment, such as tabularx.

Use the starred variant of the table environment to span the table across both columns.
Thanks Bartman,

I tried the following:

Code: Select all

\begin{table*}[H]
    table1...
\end{table*}
However that did not work. Am I doing something wrong here?
Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Making Table Full Width For Two Column Template

Post by Bartman »

I don't get any output of the table when using option H of the float package.

You may be interested in the stfloats and cuted packages. In the latter case table* is omitted and you need the command \captionof of the caption package that is already loaded by the document class used.
Post Reply