我有 5 个图形:A、b、c、d、e。我在布置如下所示的多个图形时遇到问题:
---------
A | b c
A | d e { A } is a single long figure using multirow
--------- A
A 是长图形,b、c、d、e 是小方块。我尝试使用多行来创建一个。但是效果不好。我的代码生成的图形是这样的:
--------
| b c
A | d e
A
--------
我的代码在这里:
\begin{table*}[t]
\begin{tabular}{ccc}
\multirow{2}{*}{
\includegraphics[width = 0.2\textwidth]{figs/cluster/gMaps.eps}
} &
\includegraphics[width = 0.2\textwidth]{figs/cluster/2.eps}
&
\includegraphics[width = 0.2\textwidth]{figs/cluster/5.eps}
\\ &
\includegraphics[width = 0.2\textwidth]{figs/cluster/10.eps}
&
\includegraphics[width = 0.2\textwidth]{figs/cluster/20.eps}
\\
\end{tabular}
\end{table*}
我如何创建布局?
答案1
我建议创建一个新的列类型。这适用于\newcolumntype
Maybe 看看这个帖子。在您的情况下,这可能是这样的:
\newcolumntype{VC}[1]{>{\centering}m{#1}}
% write some stuf
\begin{tabular}{VC{0.2\textwidth}VC{0.2\textwidth}VC{0.2\textwidth}}
%now you should be able to do your multirow stuff
希望这有帮助。
答案2
其实,我找到了一个解决方案。我使用 multrow{3}。生成的结果对我来说很好。以下是代码:
\begin{figure*}[!t]
\begin{center}
\begin{tabular}{ccc}
\multirow{3}{*}{\subfigure[Original Check-in Distribution]{\includegraphics[height=25em]{figs/cluster/gMaps.eps}}} & &
\\
& \subfigure[\( k^{+} = 2 \) ]{\includegraphics[width=0.21\textwidth]{figs/cluster/EII_2.eps}} &
\subfigure[\( k^{+} = 5\) ]{\includegraphics[width=0.21\textwidth]{figs/cluster/EII_5.eps}} \\
& \subfigure[\( k^{+} = 10 \) ]{\includegraphics[width=0.21\textwidth]{figs/cluster/EII_10.eps}} &
\subfigure[\( k^{+} = 20 \) ]{\includegraphics[width=0.21\textwidth]{figs/cluster/EII_20.eps}} \\
\end{tabular}
\caption{Clustering Result}
\label{fig:cluster}
\end{center}
\end{figure*}
希望这可以帮助其他乳胶用户。