LATEX图片排版
多图并排,独立编号
\begin{figure*}[h]
\centering
\begin{minipage}[b]{.3\linewidth}
\centering
\includegraphics[scale=0.5]{result/1.eps} \\
\includegraphics[scale=0.5]{result/2.eps}
\caption{Dummy Caption A.}
\end{minipage} %\hfill
\begin{minipage}[b]{.3\linewidth}
\centering
\includegraphics[scale=0.5]{result/3.eps} \\
\includegraphics[scale=0.5]{result/4.eps}
\caption{Dummy Caption B.}
\end{minipage} \\
\begin{minipage}[b]{.3\linewidth}
\centering
\includegraphics[scale=0.5]{result/5.eps} \\
\includegraphics[scale=0.5]{result/6.eps}
\caption{Dummy Caption C.}
\end{minipage} %\hfill
\begin{minipage}[b]{.3\linewidth}
\centering
\includegraphics[scale=0.5]{result/7.eps} \\
\includegraphics[scale=0.5]{result/8.eps}
\caption{Dummy Caption D.}
\end{minipage}
\caption{figure title}
\end{figure*}
多图并排,统一编号
使用subfloat
库,每个子图只能是单张图,或者横向多张图,不可以是纵向的拼接。
\begin{figure*}[h]
\centering
\subfloat[Subcaption A]{ %此处放置多个图 不可以使用\\换行 会报错,所以不可以纵向排版子子图
\includegraphics[width=0.48\linewidth]{2.eps}}
\hfill
\subfloat[Subcaption B]{
\includegraphics[width=0.48\linewidth]{2.eps}}
\subfloat[Subcaption C]{
\includegraphics[width=0.48\linewidth]{2.eps}}
\subfloat[Subcaption D]{
\includegraphics[width=0.48\linewidth]{2.eps}}
\caption{Four figures.}
\end{figure*}
多图并排,统一编号-纵向
\begin{figure*}
\centering
\subfigure[Caption a]{
\begin{minipage}[b]{0.23\textwidth}
\includegraphics[width=1\linewidth]{2.eps}\vspace{4pt}
\includegraphics[width=1\linewidth]{2.eps}
\end{minipage}}
\subfigure[Caption b]{
\begin{minipage}[b]{0.23\textwidth}
\includegraphics[width=1\linewidth]{2.eps}\vspace{4pt}
\includegraphics[width=1\linewidth]{2.eps}
\end{minipage}}
\subfigure[Caption c]{
\begin{minipage}[b]{0.23\textwidth}
\includegraphics[width=1\linewidth]{2.eps}\vspace{4pt}
\includegraphics[width=1\linewidth]{2.eps}
\end{minipage}}
\subfigure[Caption d]{
\begin{minipage}[b]{0.23\textwidth}
\includegraphics[width=1\linewidth]{2.eps}\vspace{4pt}
\includegraphics[width=1\linewidth]{2.eps}
\end{minipage}}
\caption{description of figure}
\end{figure*}
可能会发生宏包冲突,因为在subfigure包
已经被弃用。效果如下: