内容来自于百度经验 https://jingyan.baidu.com/article/fea4511a3eb36cf7bb9125bb.html
1. 首先安装latex,并且插入使用图片的宏包。这样就把准备工作做好了。
\usepackage{graphicx,xcolor,float}
2. 并排图形,一个标题
\begin{figure}
\centering
\begin{minipage}[c]{0.5\textwidth}
\centering
\includegraphics[height=4.5cm,width=7.5cm]{a.eps}
\end{minipage}%
\begin{minipage}[c]{0.5\textwidth}
\centering
\includegraphics[height=4.5cm,width=7.5cm]{b.eps}
\end{minipage}
\caption{并排图形}
\end{figure}
3.并排图片,两个标题
\begin{figure}[htbp]
\begin{minipage}[t]{0.35\linewidth}
\centering
\includegraphics[height=4.5cm,width=7.5cm]{a.eps}
\caption{图一}
\end{minipage}%
\hfill
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[height=4.5cm,width=7.5cm]{b.eps}
\caption{图二}
\end{minipage}
\end{figure}
4.插入的两个图,是相对独立的图像。paisubfigure 宏包的\subfigure 命令将这一组做为一幅图形,其中的每一幅图做为子图形。
\begin{figure}
\centering
\subfigure[图1]{
\label{figa} %% label for first subfigure
\includegraphics[width=1.5in]{a.eps}}
\hspace{1in}
\subfigure[图2]{
\label{fig:subfig:b} %% label for second subfigure
\includegraphics[width=1.5in]{b.eps}}
\caption{说明介绍}
\label{figb} %% label for entire figure
\end{figure}
5.通过minipage生成一个2*2图片排列的效果
\begin{figure}
%\begin{tabular}{cc}
\begin{minipage}{0.48\linewidth}
\centerline{\includegraphics[width=4.0cm]{a.eps}}
\centerline{(a) Result 1}
\end{minipage}
\hfill
\begin{minipage}{.48\linewidth}
\centerline{\includegraphics[width=4.0cm]{a.eps}}
\centerline{(b) Results 2}
\end{minipage}
\vfill
\begin{minipage}{0.48\linewidth}
\centerline{\includegraphics[width=4.0cm]{b.eps}}
\centerline{(c) Result 3}
\end{minipage}
\hfill
\begin{minipage}{0.48\linewidth}
\centerline{\includegraphics[width=4.0cm]{b.eps}}
\centerline{(d) Result 4}
\end{minipage}
%\end{tabular}
\caption{Example of placing a figure with experimental results.}
\label{fig:res}
\end{figure}