0

I'm writing with the LNCS template on Overleaf, but one of my figures keeps displaying somewhere way behind where I explain it. Is there a way to specify where I want it to display?

\begin{figure}[hbt!]
    \centering
    \includegraphics[width=12cm]{Replay.eps}
    \caption{Buffer Size for Experience Replay}
    \label{Replay}
\end{figure}

The figure is inserted to where the red arrow points to, but shows up two pages later.

enter image description here

1 Answers1

0

If you do not want your figure to "float" - aka be placed wherever Latex feels like it should go - don't use a floating environment like figure. You can use /captionof to create a figure which will be numbered and appear in the list of figures.

\noindent\begin{minipage}{\textwidth}
    \includegraphics[width=18cm]{3DQN.eps}
    \captionof{figure}[How our figure appears in the List of Figures]{Caption of our Figure}
    \label{3DQN}
\end{minipage}