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}
As in the other answer, I recommend trying the option
H
that the packagefloat
allows you to add tofigure
(which is a float ).However, be careful because images have their own height and cannot exceed the size of the text box on the page. Your code doesn't include your header, so it's not possible to render the page exactly. We also don't know the aspect ratio of the two images.
One helpful tip that comes to mind is this: As above, you could also try replacing
with
This might have been desired but, if not, this particular little change might help.
I'm sorry but I only speak Italian and I used Google translate.
:)
I've been doing more research and it turns out it's pretty simple.
You have to include the float package and force the position of the image with the forced position in this case H. This is how the declaration of the figure would look
\begin{figure}[H]
And in this way all the code I suggested
And it would be something like this.
I really don't know if there is a way to do it without including libraries, if you knew one I would appreciate it anyway ;)