I am trying to compose a page with a section header and a couple of figures: they should stay on the SAME page, but there is no way to force them to, an extra page is always added between the section and the first figure. Here is the incriminated code:
\subsection{Lipsum} % this works OK
\lipsum[1- 3 ]
\FloatBarrier % attempt implementing suggestions from this forum
\newpage
\subsection{Graphs}
\begin{figure}[H]
\centering
\includegraphics[width=0.5\hsize,height=0.3\vsize,keepaspectratio] {Figures/fig00001.png}
\\{ Figure 001: Pipponzolo }
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=0.5\hsize,height=0.3\vsize,keepaspectratio] {../Figures/WashEagle.png}
\\{ Figure 002: Washington Eagle }
\end{figure}
\FloatBarrier
the suggestions from Latex Section header and figure won't print on same page did not work.
Wrapping the page between \begin{samepage}
and \end{samepage}
did not work either.
I am at the end of my rope: any suggestions?
\documentclass{...}
and ending with\end{document}
.{}
button to format code sections. Please always post a complete document, it is hard to help from a fragment such as the above. since you force a page break before Graphs it seems surprising that you get a page break afterwards (assuming you have loaded the float package to define[H]
)\\{ Figure 001: Pipponzolo }
try to avoid using\\
outside tables) use\caption{Pipponzolo}
vbox
-environment:\begin{vbox} figure1 figure2... \end{vbox}
Its content will stay on the same page.