写在最前:路径全部采用绝对路径且无中文
使用前引入:
\usepackage{wrapfig}
图片在左:
\begin{wrapfigure}{l}{0pt}%靠文字内容的左侧,改width和r/l,2cm等
\centering
\includegraphics[width=0.2\textwidth]{C:/Users/ASUS/Pictures/5.png}
\caption{\footnotesize ma}
\end{wrapfigure}
图片在右:
\begin{wrapfigure}{r}{0pt}%靠文字内容的右侧,改width和r/l,2cm等
\centering
\includegraphics[width=0.2\textwidth]{C:/Users/ASUS/Pictures/5.png}
\caption{\footnotesize maka}
\end{wrapfigure}
图片居中:
\begin{figure}[!h]
\centering
\includegraphics[width=0.2\textwidth]{C:/Users/ASUS/Pictures/5.png}
\caption{makaka}
\end{figure}
整体:
%图片并排
\begin{figure}[htbp]
\centering
\begin{minipage}[t]{0.48\textwidth}
\centering
\includegraphics[width=6cm]{C:/Users/ASUS/Pictures/5.png}
\caption{ma}
\end{minipage}
\begin{minipage}[t]{0.48\textwidth}
\centering
\includegraphics[width=6cm]{C:/Users/ASUS/Pictures/5.png}
\caption{kaka}
\end{minipage}
\end{figure}