So I'm trying to add figures and I've tried few codes.
I liked the results that I get with
\begin{center}
\includegraphics{img/imgfile}
\end{center}
But
\begin{figure}
\centering
\includegraphics{img/imgfile}
\caption{somecaption}
\end{figure}
Enables me to add a caption.
However the latter one also seems to place the figure at the start of the page, rather than to the location, where the \includegraphics command is located.
I need to control, where the figure is placed, rather than have it placed automatically.
I also need captions.
Or is it reasonable that figures would always be placed on top of the page. I'm writing an academic text.
\captionof{figure}{Your caption text}from thecaptionorcapt-ofpackages. – Bernard Apr 16 '17 at 11:44captionorcapt-of-packages, a KOMA-script has the\captionofcommand built in. – Skillmon Apr 16 '17 at 14:18