Latex的使用记录---插入图片

1.简单插入一张图片

先加两个包:

\usepackage{graphicx}
\usepackage{subfigure}

插入图片模块

\begin{figure}[H]%H代表在当前位置插入图片
\centering%居中
\includegraphics[width=2 cm]{Definitions/logo-mdpi}
\caption{This is a figure, Schemes follow the same formatting. If there are multiple panels, they should be listed as: (\textbf{a}) Description of what is contained in the first panel. (\textbf{b}) Description of what is contained in the second panel. Figures should be placed in the main text near to the first time they are cited. A caption on a single line should be centered.}
\end{figure}  

2.插入多张并排且有小标题的图片

还是先加包

\usepackage{graphicx}
\usepackage{subfigure}
\begin{figure*}[h]
	\centering
	\subfigure[111]{
		\begin{minipage}{0.22\linewidth}
			\centering
			\includegraphics[width=3.5cm]{picture/fig2a}
		\end{minipage}
	}
	\subfigure[222]{
		\begin{minipage}{0.22\linewidth}
			\centering
			\includegraphics[width=3.5cm]{picture/fig2b}
		\end{minipage}
	}
	\subfigure[333]{
		\begin{minipage}{0.22\linewidth}
			\centering
			\includegraphics[width=3.5cm]{picture/fig2c}
		\end{minipage}
	}
	\subfigure[444]{
		\begin{minipage}{0.22\linewidth}
			\centering
			\includegraphics[width=3.5cm]{picture/fig2d}
		\end{minipage}
	}
	
	\caption{This is a figure,  (\textbf{a}) Description of what is contained in the first panel. (\textbf{b}) }
	\label{fig2}
\end{figure*}  

猜你喜欢

转载自blog.csdn.net/weixin_42299076/article/details/104179728