![图像的位置不断变化](https://linux22.com/image/446253/%E5%9B%BE%E5%83%8F%E7%9A%84%E4%BD%8D%E7%BD%AE%E4%B8%8D%E6%96%AD%E5%8F%98%E5%8C%96.png)
我在将图像放置在文档中所需的位置时遇到了很多麻烦。前 3 张图片就停止工作了。我是 Latex 的新手,仍在努力学习。我也包含了初始命令。
\documentclass[letterpaper,11pt]{article}
\usepackage{graphicx}
我用来在我想要的位置显示图像的代码
\begin{figure}[h]
\centering
\includegraphics[width=15cm]{all_sky_map.png}
\caption{All sky map}
\label{fig:all sky map}
\end{figure}
This is the image
This bit of code does not work and does not display the image where I want it
\subsection{Producing peaks in a spectrum}
\begin{figure}[h]
\centering
\includegraphics{peaks_spectrum_1.png}
\caption{Peaks in HI 21-cm Spectrum at (26.76, -1.54)}
\label{fig:peaks spectrum}
\end{figure}
有人能帮我吗?