我在将图像放置在文档中所需的位置时遇到了很多麻烦。前 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}
有人能帮我吗?