overleaf figure caption code example
Example 1: latex image caption
\begin{figure}
\includegraphics[width=\textwidth]{Picture}
\caption{Picture caption}
\end{figure}
Example 2: add figure numbers in latex
\begin{figure}[h!]
\caption{A picture of the universe!}
\includegraphics[width=0.5\textwidth]{universe}
\end{figure}