latex中不使用subfigure并列插入图片
在latex中并列插入多张图片:
利用latex的subfigure排版,并排放置多张图。(使用宏包\usepackage{graphicx}以及\usepackage{subfigure}
)
如
源代码如下:
\begin{figure}[htbp]
\centering
\subfigure[pic1.]{
\begin{minipage}[t]{0.25\linewidth}
\centering
\includegraphics[width=1in]{111.jpg}
%\caption{fig1}
\end{minipage}%
}%
\subfigure[pic2.]{
\begin{minipage}[t]{0.25\linewidth}
\centering
\includegraphics[width=1in]{111.jpg}
%\caption{fig2}
\end{minipage}%
}%
\subfigure[pic3.]{
\begin{minipage}[t]{0.25\linewidth}
\centering
\includegraphics[width=1in]{111.jpg}
%\caption{fig2}
\end{minipage}
}%
\subfigure[pic4.]{
\begin{minipage}[t]{0.25\linewidth}
\centering
\includegraphics[width=1in]{111.jpg}
%\caption{fig2}
\end{minipage}
}%
\centering
\caption{ pics}
\end{figure}
这种简化后的也可行:
\begin{figure}[htbp]
\centering
\subfigure[pic1.]{
\includegraphics[width=5.5cm]{111.jpg}
%\caption{fig1}
}
\quad
\subfigure[pic2.]{
\includegraphics[width=5.5cm]{111.jpg}
}
\quad
\subfigure[pic3.]{
\includegraphics[width=5.5cm]{111.jpg}
}
\quad
\subfigure[pic4.]{
\includegraphics[width=5.5cm]{111.jpg}
}
\caption{ pics}
\end{figure}
但是有些期刊论文模板中不支持使用\subfigure,比如Springer Nature中并没有包含宏包subfigure,这时候可以直接使用:
\begin{figure}[htbp]
\centering
\begin{minipage}[t]{0.22\linewidth}
\centering
\includegraphics[width=1in]{111.jpg}
\caption*{fig1}
\end{minipage}%
\begin{minipage}[t]{0.22\linewidth}
\centering
\includegraphics[width=1in]{111.jpg}
\caption*{fig2}
\end{minipage}%
\begin{minipage}[t]{0.22\linewidth}
\centering
\includegraphics[width=1in]{111.jpg}
\caption*{fig3}
\end{minipage}
\begin{minipage}[t]{0.22\linewidth}
\centering
\includegraphics[width=1in]{111.jpg}
\caption*{fig4}
\end{minipage}
\centering
\caption{ pics}
\end{figure}
可以尝试改一下width参数,使其并列排列