图片未出现在背页中

Son*_*nya 1 latex image

有人知道如何设置在 Overleaf 中显示图片的命令吗?我到处寻找,但一无所获。这是我目前正在使用的:

\graphicspath{ {images/} }
\usepackage{graphicx}

\FloatBarrier
\begin{figure}[H]
  \centering
  \includegraphics[width=\textwidth]{imgname}
  \caption{Caption text}
\end{figure}
\label{fig:}
\FloatBarrier
Run Code Online (Sandbox Code Playgroud)

它显示一个白色矩形,其中包含图像名称:

白色矩形

谁能帮我?

小智 8

如果您使用的是 overleaf ,请转到编译按钮并从下拉菜单中选择“正常”而不是“快速(草稿)”。然后图像就会正常显示。这是解决方案的链接:https ://www.overleaf.com/learn/how-to/Images_not_showing_up