I want to center my figure (horizontally and vertically). I have a subesction that I want to keep on the same page (at the top), but it is "pushed" on the next page. I am using the following code:

\newcommand\inclfig[1]{% \includegraphics[width=120mm]{#1}}

and in the document:

\subsection{Subsection 1}

\caption{Caption 1}
\floatfoot{Own illustration}
\label{fig:Label 1}

Please help :)

  • [p] means put it on a page with just floats. Sounds like you want [htp] to allow h so it comes under the heading – David Carlisle Mar 27 '15 at 21:45
  • Hi David. Just tried. Same result as with [p]. The title/subsection is pushed to the next page. – Saud Mar 28 '15 at 13:08
  • every question really should have a complete document that demonstrates the effect, the latex float algorithm has several parameters, and depends on the size of the float, other floats on the same page, the height of the page etc, none of which we can see at all. But see tex.stackexchange.com/q/2275 and tex.stackexchange.com/q/39017 – David Carlisle Mar 28 '15 at 13:57
  • These are the packages and floats that I am using: – Saud Mar 29 '15 at 10:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.