[我试图将表格插入到两列文档中。但我无法做到。我尝试了很多方法,但都找不到正确的方法。我希望表格位于页面的中心,即使文档是两列的
\lipsum[1]
\begin{table*}
\centering
\begin{tabular}[b]{l l l l l l l l}
& 2011 & 2012 & 2013 & 2014 & 2015 & 2016 & 2017 \\ \hline
Networking & 0.15 & 0.23 & 0.42 & 0.65 & 0.85 & 1.01 & 1.15 \\
NoSQL & 0.07 & 0.13 & 0.29 & 0.5 & 0.8 & 1 & 1.2 \\
Infrastructure Software & 0.14 & 0.44 & 0.83 & 1.08 & 1.25 & 1.6 & 1.9 \\
SQL & 0.62 & 0.88 & 1.31 & 1.75 & 2.25 & 2.45 & 2.7 \\
Cloud & 0.36 & 0.62 & 1.19 & 1.82 & 2.52 & 3.05 & 3.65 \\
Storage & 1.1 & 1.75 & 3.09 & 4.2 & 5.5 & 6.4 & 6.95 \\
Computation & 1.53 & 2.29 & 3.65 & 4.92 & 6.4 & 7.1 & 7.6 \\
Apps \& Analytics & 0.52 & 0.99 & 1.69 & 3.45 & 5.29 & 6.65 & 7.75 \\
Professional Services & 2.8 & 4.42 & 6.15 & 10.1 & 13.5 & 16 & 17.2 \\
\end{tabular}
\caption{This is the caption for complicated table}
\label{tab:1}
\end{table*}
\lipsum[1]
答案1
您可以使用该cuted
包(来自sttools
捆绑包)及其strip
环境:
\documentclass[twocolumn]{article}%
\usepackage{cuted}
\usepackage{lipsum, array, booktabs, caption}
\begin{document}
\lipsum[1]
\begin{strip}
\centering
\begin{tabular}[b]{l l l l l l l l}
& 2011 & 2012 & 2013 & 2014 & 2015 & 2016 & 2017 \\ %
\midrule
Networking & 0.15 & 0.23 & 0.42 & 0.65 & 0.85 & 1.01 & 1.15 \\
NoSQL & 0.07 & 0.13 & 0.29 & 0.5 & 0.8 & 1 & 1.2 \\
Infrastructure Software & 0.14 & 0.44 & 0.83 & 1.08 & 1.25 & 1.6 & 1.9 \\
SQL & 0.62 & 0.88 & 1.31 & 1.75 & 2.25 & 2.45 & 2.7 \\
Cloud & 0.36 & 0.62 & 1.19 & 1.82 & 2.52 & 3.05 & 3.65 \\
Storage & 1.1 & 1.75 & 3.09 & 4.2 & 5.5 & 6.4 & 6.95 \\
Computation & 1.53 & 2.29 & 3.65 & 4.92 & 6.4 & 7.1 & 7.6 \\
Apps \& Analytics & 0.52 & 0.99 & 1.69 & 3.45 & 5.29 & 6.65 & 7.75 \\
Professional Services & 2.8 & 4.42 & 6.15 & 10.1 & 13.5 & 16 & 17.2 \\
\end{tabular}
\captionof{table}{This is the caption for complicated table}
\label{tab:1}
\end{strip}
\lipsum[1]
\end{document}