I am trying to forcefully accommodate text and images in the indicated order , however in the sheet changes if the image does not fit but more text does, Latex fills that space with the following text, that makes it not follow the order that I want to achieve. It would be very helpful if you could guide me, thanks!
I went through this documentation , however I couldn't achieve what I wanted
Here's an example of how I'm arranging things
\begin{tabbing}
Obtenemos:
\= $ equation$ \\
\> $ equation$ \\
\end{tabbing}
\begin{figure}[!h]
\centering
\includegraphics[height=0.5\textwidth]{img.png}
\caption{Circuito equivalente de la figura~\ref{fig:circuit2-1}}
\label{fig:circuit2-2}
\end{figure}
\begin{tabbing}
Partiendo de~\ref{fig:circuit2-2} tenemos:
\= $ equation$ \\
\> $ equation$ \\
\end{tabbing}
\begin{figure}[!h]
\centering
\includegraphics[height=0.5\textwidth]{img2.png}
\caption{Circuito equivalente de la figura~\ref{fig:circuit2-2}}
\label{fig:circuit2-3}
\end{figure}