LaTeX两张图并排显示

一、需要引入的包

\usepackage{caption}   % 图片脚注
\usepackage{graphicx}  
\usepackage{caption}
\usepackage{subfigure} % 子图包

二、具体代码

\begin{figure}[htbp]	
	\subfigure[DogLeg Method] %第一张子图
	{
		\begin{minipage}{6cm}
			\centering          %子图居中
			\includegraphics[scale=0.4]{dogleg.png}   %以pic.jpg的0.4倍大小输出
		\end{minipage}
	}
	\subfigure[Steepest Descent Method] %第二张子图
	{
		\begin{minipage}{7cm}
			\centering      %子图居中
			\includegraphics[scale=0.4]{steepest.png}   %以pic.jpg的0.4倍大小输出
		\end{minipage}
	}
	%\caption{name of the figure} %  %大图名称
	%\label{fig:1}  %图片引用标记
\end{figure}

在这里插入图片描述

切记\subfigure之外如果加了\centering两幅图就不会并列了,需要加在\subfigure之内。

【参考资料】
[1] LaTeX一行排两个图片示例
[2] Latex中插入多张图片,实现并排排列或者多行多列排列
[3] LaTeX如何让两张图并排显示?

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章