I am writing in Latex. I am new with it and need some help. I need to add figures. I can do it with the following code:
\begin{figure}[h]
\includegraphics[width = 15cm]{figures/mlpStrSingle}
\caption{MLP neural network for one single output node}
\label{fig:mlp}
\end{figure}
However, if I use this the figure goes to the next page. I need it right after the text, then the next text should start. How can I do that?
figure, for the caption load packagecaptionand use commandcaptionof{figure}... As usual here please make your code snippet compilable, then we do not have to guess what you are doing ... – Mensch Jun 30 '19 at 17:32figureandtableso it can place them in the best possible way according to its criteria. Forcing the placement may result in large white spaces in your document. – Bernard Jun 30 '19 at 17:36\begin{center}\includegraphics[width = 15cm]{figures/mlpStrSingle} \captionof{figure}{MLP neural network for one single output node} \label{fig:mlp} \end{center}. You will need thecaptionpackage or this to work. – leandriis Jun 30 '19 at 17:41