[Tex/LaTex] Inserting a table in a two column document

formattingpackagessectioningtablestwo-column

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

Best Answer

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