1

I have some tabular data and two column page layout. The number of columns is bigger such that that the table cannot fit into one column. How can I make the table span two columns such that the table is centered. I don't want to stretch it to the whole. Just take up two columns and center it since it is not big enough to take the whole space. Any suggestions?

  • 1
    Have you tried table*? – user11232 Jul 30 '14 at 0:22
1

This should help. It just shows how your code should look like after using Harish's recommendation:

\documentclass[twocolumn]{article}
\usepackage{lipsum}%Just for introducing dummy text.
\usepackage{dblfloatfix}

\begin{document}
\lipsum[1-4]%dummy text
\begin{table*}[h]%Using table* instead of table is what makes the table use the two columns.
    \centering
    \begin{tabular}{|c|c|c|}
    Data & Data & Data \\
    Data & Data & Data \\
    Data & Data & Data \\
    \end{tabular}
    \caption{This is a table with data}
\end{table*}
\lipsum[3-10]%Dummy text
\end{document}

Here's a screenshot of the result. page 1 page 2

  • Please explain why this is a solution. Is the packet what did it for you? What does the packet do? – lindhe Sep 21 '17 at 13:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.