Big figure disrupts the positioning of the others

4

In a Latex report I'm writing, I'm trying to insert a large picture at the beginning of the chapter. It's a one-page-size flowchart:

\begin{figure}[!htb]
  \centering
  \includegraphics[width=\textwidth]{visio/fluxograma} % fluxograma é um PDF
  \caption{Fluxograma descrevendo a metodologia.}
  \label{fig:methodology}
\end{figure}

What is happening is that because it is the size of a page, the Latex is postponing the insertion of the figure to the end of the chapter, after the text. As the flowchart is only inserted at the end, it disrupts the insertion of the other figures that are in the middle of the chapter. Hence, the figures are all at the end of the chapter.

Question
How do I insert the flowchart in the correct position?

I tried to put the [!htb] attributes in the flowchart, but it did not work. Modifying the size to 80% I did, but I wanted to keep it with page size.

    
asked by anonymous 28.01.2014 / 08:05

2 answers

3

No link that @Luiz Vieira indicated , there was the p parameter that I had not yet tested. It specifies to the figure that it can be positioned on a page or a column. I just added this parameter that worked without problems:

\begin{figure}[!htbp]
  \centering
  \includegraphics[width=\textwidth]{visio/fluxograma} % fluxograma é um PDF
  \caption{Fluxograma descrevendo a metodologia.}
  \label{fig:methodology}
\end{figure}

A single character resolved:)

    
30.01.2014 / 22:53
3

Figures and tables are floating elements, so Latex takes care of choosing the best place to place them according to available space and element size.

An alternative that may work for you is not to use the \begin{figure} tag and to exchange it with a generic% centralized element \begin{center} . Try this:

\usepackage[font=small,format=plain,labelfont=bf,up,textfont=it,up]{caption}

\begin{center}
    \includegraphics[width=\textwidth]{visio/fluxograma} % fluxograma é um PDF
    \captionof{figure}{Fluxograma descrevendo a metodologia.}
    \label{fig:methodology}
\end{center}

EDIT: Includes the use of the caption package (which is required for the use of \captionof )

    
28.01.2014 / 11:57