4

So, I've been trying to insert a table so that it spans only one column into my two column document. It partially works, however it creates a large space in the other column for a reason I can't seem to figure out. A screenshot is shown below. I'm currently using the \twocolumn package. However, I'm not sure whether this or \multicols would work better with figures and tables. Any help would be appreciated.

enter image description here

  • 3
    welcome to tex.sx. in order to understand what you're doing, we need to see a compilable example. this looks to me like you're setting the smaller table in-line, not as a float, and there just isn't space for it in the first column. but without code, it's hard to be sure. – barbara beeton Dec 23 '16 at 15:37
  • 1
    welcome again. See at the link tex.stackexchange.com/questions/89462/… or tex.stackexchange.com/questions/53384/…. – Sebastiano Dec 23 '16 at 16:00
  • 2
    Use the table* environment, not table. – Bernard Dec 23 '16 at 17:22
  • Thank you everyone for the replies. You were right, I hadn't set is as a float using the table* environment. After doing so, things seem to be working out much nicer. As you can probably tell, I'm rather new to latex and still trying to learn! – Nathan Dec 23 '16 at 18:09
  • table* only supports t and p. multicols allows one to put a full width tabular in the middle of the page by using \end{multicols}. – John Kormylo Dec 24 '16 at 2:54
5

Use table for single column floats and table* for double column floats.

\documentclass[twocolumn]{article}
\usepackage{booktabs,chemformula}
\begin{document}

\section{Electronic Structure}

\input knuth

\begin{table}[h]
  \centering
  \begin{tabular}{@{}ccc@{}}
    \toprule
    Compound  & Phase    & Exp.\ Band Gap \\
    \midrule
    \ch{VO_2} & Metallic & 0.00 \\
    \ch{VO_2} & Metallic & 0.00 \\
    \ch{VO_2} & Metallic & 0.00 \\
    \ch{VO_2} & Metallic & 0.00 \\
    \ch{VO_2} & Metallic & 0.00 \\
    \ch{VO_2} & Metallic & 0.00 \\
    \ch{VO_2} & Metallic & 0.00 \\
    \ch{VO_2} & Metallic & 0.00 \\
    \ch{VO_2} & Metallic & 0.00 \\
    \ch{VO_2} & Metallic & 0.00 \\
    \ch{VO_2} & Metallic & 0.00 \\
    \ch{VO_2} & Metallic & 0.00 \\
    \ch{VO_2} & Metallic & 0.00 \\
    \ch{VO_2} & Metallic & 0.00 \\
    \ch{VO_2} & Metallic & 0.00 \\
    \bottomrule
  \end{tabular}
  \caption{Sample table}
\end{table}

\input bryson

\section{Charge Transfer}

\input ward

\begin{table*}[h]
  \centering
  \begin{tabular}{@{}ccccc@{}}
    \toprule
    Compound  & Phase    & Lattice Type & Space Group & Exp.\ Band Gap \\
    \midrule
    \ch{VO_2} & Metallic & Tetragonal & P4\textsubscript{2}/mnm & 0.00 \\
    \ch{VO_2} & Metallic & Tetragonal & P4\textsubscript{2}/mnm & 0.00 \\
    \ch{VO_2} & Metallic & Tetragonal & P4\textsubscript{2}/mnm & 0.00 \\
    \ch{VO_2} & Metallic & Tetragonal & P4\textsubscript{2}/mnm & 0.00 \\
    \ch{VO_2} & Metallic & Tetragonal & P4\textsubscript{2}/mnm & 0.00 \\
    \ch{VO_2} & Metallic & Tetragonal & P4\textsubscript{2}/mnm & 0.00 \\
    \ch{VO_2} & Metallic & Tetragonal & P4\textsubscript{2}/mnm & 0.00 \\
    \ch{VO_2} & Metallic & Tetragonal & P4\textsubscript{2}/mnm & 0.00 \\
    \ch{VO_2} & Metallic & Tetragonal & P4\textsubscript{2}/mnm & 0.00 \\
    \ch{VO_2} & Metallic & Tetragonal & P4\textsubscript{2}/mnm & 0.00 \\
    \ch{VO_2} & Metallic & Tetragonal & P4\textsubscript{2}/mnm & 0.00 \\
    \ch{VO_2} & Metallic & Tetragonal & P4\textsubscript{2}/mnm & 0.00 \\
    \ch{VO_2} & Metallic & Tetragonal & P4\textsubscript{2}/mnm & 0.00 \\
    \ch{VO_2} & Metallic & Tetragonal & P4\textsubscript{2}/mnm & 0.00 \\
    \ch{VO_2} & Metallic & Tetragonal & P4\textsubscript{2}/mnm & 0.00 \\
    \bottomrule
  \end{tabular}
  \caption{Sample table}
\end{table*}

\input ward

\input zapf

\input darwin

\input ward

\input darwin

\end{document}

enter image description here

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.