[Tex/LaTex] How to force oversized figure off of the bottom of the page and up to the top

floatspositioning

I have a figure that is bigger than the margins. In the long run, the size won't matter. But for now, Latex is putting it on its own page (which is fine) and placing it at the very bottom of the sheet. It looks bad because it gets mixed up with the page number. Is there any way to convince Latex to move the figure up to the top of the page? BTW, the [t] argument has no effect. Thanks.

EDIT: Here's a bit of code that produces the problem:

\documentclass{article}

\usepackage{graphicx}
\usepackage{subfig}

\begin{document}

\begin{figure}
\centering
\subfloat[\label{fig:a}]{\includegraphics[width=5in]{example-image-a}}
\par
\subfloat[\label{fig:b}]{\includegraphics[width=5in]{example-image-b}}
\par
\caption{Note that the figure space overlaps the page number.}
\end{figure}

\end{document}

The two PNGs can be any fairly square figures with widths around 5 in.

Best Answer

I've sometimes found that it is enough to put negative vertical space above the tall float, e.g.,

  \begin{figure}
      \vspace*{-2.5\baselineskip}
      \centerline{\hbox{\includegraphics*[keepaspectratio=true,width=0.87\textwidth]{mytallfig.pdf}}}
      \caption{My lengthy multiline caption}
  \end{figure}

or something along those lines. This requires some fiddling around in each case, however, and so I like the more systematic suggestions that others have made above. But this lazy solution works.

Related Question