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

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

Making Table Full Width For Two Column Template

Postby fk4517 » Mon Jul 27, 2020 11:43 pm

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] [Expand/Collapse] [Download] ({untitled.tex})
  1. \begin{tabu} to \textwidth {XXXX}
  2. \toprule
  3. xx & 1 & 2 & 3 \\
  4. \bottomrule
  5. \end{tabu}

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

Postby Bartman » Tue Jul 28, 2020 12:39 am

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

Postby fk4517 » Tue Jul 28, 2020 2:38 am

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] [Expand/Collapse] [Download] ({untitled.tex})
  1. \begin{table*}[H]
  2. table1...
  3. \end{table*}


However that did not work. Am I doing something wrong here?

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

Postby Bartman » Tue Jul 28, 2020 6:28 am

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.


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 4 guests