LaTex 单栏样式模板中插入双栏表格
发布时间
阅读量:
阅读量
在LaTeX写作过程中经常会遇到在双栏模板中插入单列的大表格的情况;同时也会遇到在单栏模板中插入两个独立或非独立的小双列表格以节省空间同时保持整洁美观的效果。今天就着重讨论后者以便以后能够方便地应用到实际写作当中;原始出处见http://tex.stackexchange.com/questions/2832/how-can-i-have-two-tables-side-by-side
If using the subfig package, it is straightforward to ensure each figure has its own caption. However, please make sure to include the subfigure package by using \usepackage{subfig}.
\subfloat[caption]{\begin{tabular}{...}...\end{tabular}}
\subfloat[caption]{\begin{tabular}{...}...\end{tabular}}
If you prefer two independent tables but not wanting to use \subfloat, then \parbox is a viable option.
\begin{table}
\parbox{.45\linewidth}{
\centering
\begin{tabular}{ccc}
\hline
a&b&c\
\hline
\end{tabular}
\caption{Foo}
}
\hfill
\parbox{.45\linewidth}{
\centering
\begin{tabular}{ccc}
\hline
d&e&f\
\hline
\end{tabular}
\caption{Bar}
}
\end{table}
全部评论 (0)
还没有任何评论哟~
