Problem with Latex Figures Skipping paragraphs

3

Hello, a little over a month I started to use the Latex to write my tcc, from a few days to now I started to insert figures and everything was going well, until suddenly I inserted more figures, some that were included before became unstructured. They just started to skip paragraphs, I thought maybe it was some \ lost in the middle of the text but I did not find anything like it.

I will try to explain what happens. What happens is as follows:

Source: Gonzales and woods (2007)

[Paragrafo]

[Image]

The image simply skips a next paragraph without reason when it should actually appear on top of the font. Here is the code from the figure below:

    \begin{figure}[!htb]
    \caption{Exemplo de Histograma de uma imagem em escala de cinza.} 
    \centering
    \includegraphics[width=9.5cm]{Figuras/Figura_3_ExemploHistograma.png} \
\end{figure}
Fonte: Gonzalez e Woods (2007). \

Would anyone know of any issues that might be causing this? Thanks in advance.

    
asked by anonymous 25.04.2016 / 05:30

2 answers

4

Try to use the [H] option after \begin{figure} . Try the code below:

\begin{figure}[H]
    \IBGEtab{
        \caption{Exemplo de Histograma de uma imagem em escala de cinza.}
        \label{GrayScale}
    }
    {\includegraphics[width=9.5cm]{Figuras/Figura_3_ExemploHistograma.png}}
    {Fonte: Gonzalez e Woods (2007).}
\end{figure}
    
25.04.2016 / 16:22
1

This response is actually a longer comment ...

As @Avelino very well said, \begin{figure}[H] can be used to force a figure to be inserted at that exact point. This operation force figures or tables to cease to be floating bodies.

However this is usually bad for building quality text: almost always generates additional blanks (it generates text with more pages and looks worse).

It's usually okay (sorry for paternalism):

  • Use small size pictures
  • let the figures fluctuate and refer to them by their label (eg in fig. \ label {grayScale} is displayed ...)
  • force placements in special cases ...
  • 29.05.2016 / 22:59