Hi
Hope someone can help me. I have just started using Latex and so far have been pleased with my progress. However, I have now hit a wall. I am writing my thesis in Latex and have a large number of figures that are to be presented on single pages in landscape. To do this I am using the rotating package. For example:
\usepackage{graphicx}
\usepackage{rotating}
...
\begin{sidewaysfigure}%
\centering
\includegraphics[width=\linewidth, height=12cm, keepaspectratio=true]{./Figures/ChapterThree/Figs/FigureChThreeQCBoxplots.eps}%
\caption{Boxplots of array quality ...}%
\label{fig:fftQCboxplot}%
\end{sidewaysfigure}%
My problem is that the figures are of various aspect ratios and sizes and the captions are of varying lengths. The maximum width for the figure is always the linewidth but the maximum height varies according to the caption length. What I want is for Latex to make the figure as big as possible on the page while leaving enough room for the caption.
I don't want to have to manually adjust the height for each figure independently (and can't imagine that Latex does not have a solution so that I don't have to), firstly beacuse it would take time, and secondly if I change the caption font at a later date I will have to go back through and change them all again.
Cheers.
General ⇒ Scaling landscape figure to page
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Scaling landscape figure to page
Does this work?
The graphicx package also allows the totalheight (height+depth) option for rotated figures.
Code: Select all
\includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{./Figures/ChapterThree/Figs/FigureChThreeQCBoxplots}%