两张相邻的图片带有覆盖整个页面的标题

两张相邻的图片带有覆盖整个页面的标题

我想将两张图片并排放置在两列布局中。我这样做:

\begin{figure*}[htp]
  \centering
  \subfigure[SGD classifier with modified huber loss when using the crowdsource-label-set. A=`anger', F=`fear', J=`joy', L=`love', S=`sadness', S2=`surprise', T=`thankfulness']{\includegraphics[scale=0.27]{sgd_crowdsource_dataset.eps} \label{confusion_matrix_crowdsource}}\quad
  \subfigure[SGD classifier with modified huber loss when using the hashtag-label-set. A=`anger', F=`fear', J=`joy', L=`love', S=`sadness', S2=`surprise', T=`thankfulness']{\includegraphics[scale=0.27]{sgd_hashtag_dataset.eps} \label{confusion_matrix_hashtag}}
  \caption{Confusion matrices}
\end{figure*}

看起来像这样:

在此处输入图片描述

这些图像往往粘在中间,而标题只在图像本身下方展开。这导致两幅图像占用了大量空间。有没有办法将这些图像左对齐并更好地展开标题?


编辑:

使用 subcaption 包:

\begin{figure*}
\centering
\subcaptionbox{SGD classifier with modified huber loss when using the crowdsource-label-set. A=`anger', F=`fear', J=`joy', L=`love', S=`sadness', S2=`surprise', T=`thankfulness' \label{confusion_matrix_crowdsource}}
[.49\linewidth]{\includegraphics[width=0.30\textwidth, keepaspectratio]{sgd_crowdsource_dataset2.pdf}}
\subcaptionbox{SGD classifier with modified huber loss when using the hashtag-label-set. A=`anger', F=`fear', J=`joy', L=`love', S=`sadness', S2=`surprise', T=`thankfulness' \label{confusion_matrix_hashtag}}
[.49\linewidth]{\includegraphics[width=0.30\textwidth, keepaspectratio]{sgd_hashtag_dataset2.pdf}}
\caption{Confusion matrices}\label{animals}
\end{figure*}

得出以下结果:

在此处输入图片描述

答案1

正如@Mario SE 所建议的,subcaption 包是解决方案:

\begin{figure*}
\centering
\subcaptionbox{SGD classifier with modified huber loss when using the crowdsource-label-set. A=`anger', F=`fear', J=`joy', L=`love', S=`sadness', S2=`surprise', T=`thankfulness' \label{confusion_matrix_crowdsource}}
[.45\linewidth]{\includegraphics[width=0.30\textwidth, keepaspectratio]{sgd_crowdsource_dataset2.pdf}}
\hspace{20pt}
\subcaptionbox{SGD classifier with modified huber loss when using the hashtag-label-set. A=`anger', F=`fear', J=`joy', L=`love', S=`sadness', S2=`surprise', T=`thankfulness' \label{confusion_matrix_hashtag}}
[.45\linewidth]{\includegraphics[width=0.30\textwidth, keepaspectratio]{sgd_hashtag_dataset2.pdf}}
\caption{Confusion matrices}\label{animals}
\end{figure*}

为了确保图片标题不接触,可以添加 hspace

相关内容