[Tex/LaTex] Fit figure and caption on one page

floats

I'm relatively new to LaTeX and trying to come to grips with it. I understand I can resize a figure to fit the column width or text height quite easily:

\includegraphics[width=1\columnwidth]...

or

\includegraphics[height=.1\textheight]...

I was wondering if there is an easy way to get a figure and its caption to fit in a page.

Best Answer

Generally it's better really to design the figure to fit (or scale by a fixed amount) scaling arbitrary sized figures to fit the page means that each scales by a different amount so you get inconsistent font sizes in each figure.

However for when you need it you can go

\begin{figure}[p]
\includegraphics[height=\dimexpr \textheight - 4\baselineskip\relax]{myfig}
\caption{zzzz}
\end{figure}

assuming 4 lines worth of space is enough for your caption and its surrounding space. Using [p] as clearly it can not fit on a text page if it is that big.

Related Question