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}
结果: