LaTex 单栏样式模板中插入双栏表格

在LaTex写作中经常会遇到双栏模板中想插入单栏的大表格,或者在单栏的模板中想插入双栏的两个独立或者不独立的小表格既省空间看起来又简洁好看。今天重点说一下后者,以备以后不时之需。原始出处见http://tex.stackexchange.com/questions/2832/how-can-i-have-two-tables-side-by-side

If you want to use subfig because you want them to have separate captions, then that is simple as well. but remerber insert the package \usepackage{subfig}

\subfloat[caption]{\begin{tabular}{...}...\end{tabular}}
\subfloat[caption]{\begin{tabular}{...}...\end{tabular}}

If you want two tables that are independent, and thus don't want to use \subfloat, you can use \parbox.

\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}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值