So I've been working on my paper and latex just doesn't want to position this graphic at the place I want it to be. I also used the float package and everything I find on the internet doesn't seem to work.
the code is:
\newpage
Die Grafik sieht dabei folgendermaßen aus:
\begin{figure}[!!h]
\begin{center}
\includegraphics[scale=0.4]{30a.png}
\end{center}
\caption{Approximation der Exponentialfunktion für zwei Summanden in der Partialsumme im Vergleich zu $\exp(x)$}
\end{figure}
Aus der Grafik wird erkenntlich, ...
The problem is that "Aus der Grafik ..." is above the picture although its below it in the code.

figureand followed text solve your problem. – Zarko Mar 31 '22 at 20:27\centeringcommand in thefigureenvironment instead ofcenterenvironment becausecenteradds additional (and maybe unwanted) space around it. – Teddy van Jerry Apr 01 '22 at 03:18!isn't an error but is the same as!. The only reason to usefigureis to allow it to be moved. Just delete\begin{figure}[!!h]and\end{figure}and the image will not move from where you place\includegraphics– David Carlisle Apr 01 '22 at 07:28\captionof{figure}{...}but really the reason figures have captions is because they float... but you may prefer the[H]option as described in the duplicate question linked above. Note if you change the wording anywhere in the document so the natural position of the figure becomes half on this page and half on the next, you will get an ugly big white space and wish you had allowed figures to float as normal:-) – David Carlisle Apr 01 '22 at 10:45