我正在写我的论文,我正在努力将 2 个图像彼此相邻放置,以便第二个图像将沿着第一个图像垂直居中。我也尝试使用 subfigure
而不是 subfloat
但它们都不起作用。
这就是它的外观 alt text http://img51.imageshack.us/img51/1174/screenshot20100224at712.png
我的代码是:
\begin{figure}[H]
\centering \subfloat[H][sparse($\mathbf{A}$)]{\includegraphics[width=0.28\textwidth]{sparsesmall} \label{sparse}}
\subfloat[H][full($\mathbf{A}$)]{\includegraphics[width=0.55\textwidth]{fullsmall}\label{full}}
\caption{Representation of $\mathbf{A}$ in MATLAB}
\label{schematic}
\end{figure}
有什么建议可以让它看起来比现在更好吗?谢谢
最佳答案
您也可以使用 \raisebox{x}{\includegraphics[...]{...}}
其中 x
为负数将其向下移动并为正数向上移动。
https://stackoverflow.com/questions/2328403/