latex-side by side tables

side by side table

using minipage

% Please add the following required packages to your document preamble:
% \usepackage{multirow}
\begin{table*}
\begin{minipage}[t]{0.5\linewidth}
\caption{example1}
\label{Tab:example1}
\centering
\scalebox{1}{
\begin{tabular}{|c|c|c|c|c|}
\hline
\multirow{2}{*}{}   & 1      & 2      & 3    & 4    \\ \cline{2-5} 
                    & \multicolumn{4}{c|}{(v1, v2)} \\ \hline
\multirow{5}{*}{E1} & (1, 2) & (1, 2) & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\multirow{5}{*}{E2} & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\multirow{5}{*}{E3} & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\multirow{5}{*}{E4} & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\end{tabular}}
\end{minipage}
\hfill
\begin{minipage}[t]{0.5\linewidth}
\caption{example2}
\label{Tab:example2}
\centering
\scalebox{1}{
\begin{tabular}{|c|c|c|c|c|}
\hline
\multirow{2}{*}{}   & 1      & 2      & 3    & 4    \\ \cline{2-5} 
                    & \multicolumn{4}{c|}{(v1, v2)} \\ \hline
\multirow{5}{*}{E1} & (1, 2) & (1, 2) & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\multirow{5}{*}{E2} & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\multirow{5}{*}{E3} & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\multirow{5}{*}{E4} & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\end{tabular}}
\end{minipage}
\end{table*}

 Final result:
在这里插入图片描述

using subtable

% Please add the following required packages to your document preamble:
% \usepackage{multirow}
\begin{table*}
\caption{Title}
\begin{subtable}[t]{.5\textwidth}
\caption{example1}
\raggedright
\label{Tab:example1}
\centering
\scalebox{1}{
\begin{tabular}{|c|c|c|c|c|}
\hline
\multirow{2}{*}{}   & 1      & 2      & 3    & 4    \\ \cline{2-5} 
                    & \multicolumn{4}{c|}{(v1, v2)} \\ \hline
\multirow{5}{*}{E1} & (1, 2) & (1, 2) & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\multirow{5}{*}{E2} & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\multirow{5}{*}{E3} & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\multirow{5}{*}{E4} & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\end{tabular}}
\end{subtable}%
\begin{subtable}[t]{.5\textwidth}
\raggedleft
\caption{example2}
\label{Tab:example2}
\centering
\scalebox{1}{
\begin{tabular}{|c|c|c|c|c|}
\hline
\multirow{2}{*}{}   & 1      & 2      & 3    & 4    \\ \cline{2-5} 
                    & \multicolumn{4}{c|}{(v1, v2)} \\ \hline
\multirow{5}{*}{E1} & (1, 2) & (1, 2) & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2) & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\multirow{5}{*}{E2} & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\multirow{5}{*}{E3} & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\multirow{5}{*}{E4} & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \cline{2-5} 
                    & (1, 2)   & (1, 2)   & (1, 2) & (1, 2) \\ \hline
\end{tabular}}
\end{subtable}
\end{table*}

 Final result:
在这里插入图片描述

side by side pic

minipage

\begin{figure}[!htb]
\begin{tabular}{cc}
\begin{minipage}[t]{0.5\textwidth}
\centering
\includegraphics[width=1\linewidth]{pic/owd-compare.pdf}
\caption{Average one way transmission delay}
\label{Fig:owd-comapre}
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
\centering
\includegraphics[width=1\linewidth]{pic/loss-compare.pdf}
\caption{Packet loss rate}
\label{Fig:loss-comapre}
\end{minipage}
\end{tabular}
\end{figure}

在这里插入图片描述

subfloat

\begin{figure}[!htb]
\begin{tabular}{cc}
\subfloat[]{
\begin{minipage}[t]{0.5\textwidth}
\centering
\includegraphics[width=1\linewidth]{pic/bbr-1-bw.pdf}
\end{minipage}}
\subfloat[]{
\begin{minipage}[t]{0.5\textwidth}
\centering
\includegraphics[width=1\linewidth]{pic/bbr-3-bw.pdf}
\end{minipage}}
\end{tabular}
\caption{Rate dynamics of BBR flows. (a) C1.  (b) C3.}
\label{Fig:bbr-1-3} 
\end{figure}

在这里插入图片描述

[1] create larex table online https://www.tablesgenerator.com/
[2] LaTax minipage http://www.sascha-frank.com/latex-minipage.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值