I have the following code which prints some images labelled by _{1,3,5...,37}.png. The following code works just fine.
\usepackage{tikz}
\foreach \x in {1,3,5,7,9,11,13,15,17,19,21,23,25}
{
\begin{figure}[h]
\begin{center}$
\begin{array}{cc}
\includegraphics[width=.99\textwidth,keepaspectratio]{./graficas/histograms/firstNeighboursDistribution_strength_0.0bosons_13window_\x.png}
\end{array}$
\end{center}
\caption{First Neighbours Distribution}
\label{fig:histogram0.0}
\end{figure}
}
However, if I extend the \x range, let's say {1,3,5,7,9,11,13,15,17,19,21,23,25,27}, then I get a bunch of errors:
! LaTeX Error: Too many unprocessed floats.
Where's is the error?
\xinside the loop. Also, can you make it a complete LaTeX document so that it can be compiled? I.e. start with\documentclassand end with\end{document}. Cheers. – John Wickerson May 29 '14 at 13:55\foreach. The problem is that the images (floats) are being "collected" for typesetting until there is too many of them, perhaps because they're comparatively big in terms of the text block. Could you describe a little more about the actual image sizes? Also, inside thefigureenvironment, just use\centering\includegraphics[..]{...}\caption{..}\label{..}, nothing more. – Werner May 29 '14 at 14:07