Image and text in LaTeX

0

When I write in Latex I have the following problem that I will try to explain with an example:

When I start to write I want the text to follow the following structure: Text1 Image1 Text2 Image2 only that space is usually left between Text1 and Image1 that fits Text2 and then automatically the latex changes the structure to: Text1 Text2 Image1 Image2

How can I solve this problem so that my document follows the structure I want even though there is space left?

    
asked by anonymous 06.02.2018 / 20:33

2 answers

1

Use the "float" package and the [H] option for your figures.

\usepackage{float}

 ...

 \begin{figure}[H] 
 \centering 
 \includegraphics{suafigura}
 \caption{Algum título} 
 \label{figxx} 
 \end{figure}
    
17.03.2018 / 16:27
0

Try:

\begin{figure}[!h]
...
\end{figure}

but the result is a bit ugly ...

Alternatively:

\begin{figure}[!htb]
...
\end{figure}
    
23.04.2018 / 16:09