Graphics, Figures & TablesMulti-page Table with page width in two column article

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
kspanakis
Posts: 4
Joined: Sun Jun 08, 2014 9:36 am

Multi-page Table with page width in two column article

Post by kspanakis »

Hello, I want to insert a table in a two column article in Latex. What I need is the table to be as wide as the page and spanning across multiple pages. How can that be done???

Thank you in advance

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Multi-page Table with page width in two column article

Post by rais »

For tables spanning multiple pages, packages longtable and supertabular come to mind.
Switching to single column you can achieve by

Code: Select all

\onecolumn
% put your table here
\twocolumn
KR
Rainer
kspanakis
Posts: 4
Joined: Sun Jun 08, 2014 9:36 am

Multi-page Table with page width in two column article

Post by kspanakis »

Hello. I used these latex commands but it broke the page and it inserted the table in a new page and the text after the table was inserted in another new page. Too much of white blank space. How can I solve this thing. By the way how can I make the table split to several pages?
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Multi-page Table with page width in two column article

Post by rais »

kspanakis wrote:I used these latex commands but it broke the page and it inserted the table in a new page and the text after the table was inserted in another new page. Too much of white blank space.
That's right, \onecolumn and \twocolumn both start a new page. If you wish to switch between modes within the same page, discard "twocolumn" from the option list for your documentclass, add \usepackage{multicol} to your preamble and surround everything that's to be set in two-column-mode by

Code: Select all

\begin{multicols}{2}
%...
\end{multicols}
kspanakis wrote:By the way how can I make the table split to several pages?
Read my previous answer again. It contains links to the documentation of two packages that allow multipage tables. Pick one.

KR
Rainer
kspanakis
Posts: 4
Joined: Sun Jun 08, 2014 9:36 am

Multi-page Table with page width in two column article

Post by kspanakis »

Sorry. I focused too much on the code that I missed the links on longtable and supertabular. The problem is that I want to write an article for IEEE journal, therefore I use the IEEtran document class which is always two column. What I want is to deactivate temporarily the two column to insert a page-wide multi-page table and then reactivate the two column.
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Multi-page Table with page width in two column article

Post by rais »

Well then, perhaps you should have a little talk with whom-ever-you're-about-to-turn-your-article-in-to, if a little white space is even a problem.
If, on the other hand, you wish to pursue this issue further:

Code: Select all

\documentclass[onecolumn]{IEEEtran}
\usepackage{multicol}
%...
\begin{document}
\begin{multicols}{2}
% stuff in two-column mode
\end{multicols}
% put your table here
\begin{multicols}{2}
% stuff in two-column mode again
\end{multicols}
\end{document}
should do what you want regarding the switching to/from single column.

KR
Rainer
Colorado2011
Posts: 1
Joined: Wed May 10, 2023 6:23 pm

Multi-page Table with page width in two column article

Post by Colorado2011 »

rais wrote:Well then, perhaps you should have a little talk with whom-ever-you're-about-to-turn-your-article-in-to, if a little white space is even a problem.
If, on the other hand, you wish to pursue this issue further:

Code: Select all

\documentclass[onecolumn]{IEEEtran}
\usepackage{multicol}
%...
\begin{document}
\begin{multicols}{2}
% stuff in two-column mode
\end{multicols}
% put your table here
\begin{multicols}{2}
% stuff in two-column mode again
\end{multicols}
\end{document}
should do what you want regarding the switching to/from single column.

KR
Rainer
Hello Rainer,
if I apply this code, is this a permanent change? or I have to apply it every time?
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Multi-page Table with page width in two column article

Post by rais »

Colorado2011 wrote: if I apply this code, is this a permanent change? or I have to apply it every time?
I don't really understand what you'd expect to be permanently changed by the code provided, it simply makes use of the fact that multicol's multicols environment allows switching between single / two (or even more) columns without the need of starting a new page.

KR
Rainer
Post Reply