LaTeX插入图片之后出现多个标题的问题解决

LaTeX插入文件需要导入宏包:

\usepackage{graphicx}
\usepackage{subfigure}

最初的代码:

\begin{figure}[htb] 
		\centering
		\includegraphics[width=7cm,height=5cm]  {the stock return rate of seven countries.jpg}
		\caption{\label{1} the stock return rate of seven countries} 
\end{figure}

结果:
在这里插入图片描述

问题出在文件名上,我们将图片文件命名为fig1之后:(刚开始我的文件名是the stock return rate of seven countries)
修改后的代码:

\begin{figure}[htb] 
		\centering
		\includegraphics[width=8cm,height=5cm]  {fig1.jpg}
		\caption{\label{1} the stock return rate of seven countries} 
\end{figure}

结果:
在这里插入图片描述

发布了56 篇原创文章 · 获赞 4 · 访问量 8321

猜你喜欢

转载自blog.csdn.net/qq_45669448/article/details/104608767