I would like to add two figures figures to a beamer slide, one on top of the other. Is there a simple command, similar to \linewidth or \textwidth for the height? The figures have dimensions roughly twice as wide as they are tall. I would like them to use the full vertical space without encroaching on the title/controls. If their dimensions were reverse, I would put them side by side using width=0.5\linewidth. I am not sure the height analog.
Here is what I am using now. As an alternative, I use the \paperhieght but then have to visually check that the chosen scale factor left enough room for the title and controls at the bottom.
\begin{frame}{4$\times$167 gH5 in 10 mM K$^{+}$: Comparison}
\begin{center}
\includegraphics[height=0.4\paperheight]{figures/array_models/i1_r_c000_4x167_h5_k010_33_fit}\\
\onslide<2>{
\includegraphics[height=0.4\paperheight]{figures/array_models/i1_r_best1000_c000_4x167_h5_k010_33_fit}
}
\end{center}
\end{frame}
In addition to having to check the scale factor, this also has the disadvantage that it must be changed if I add/remove the frame title or switch to a different theme. If there I instead used the available slide height, it may not need to be updated.


\textheight? – cfr Nov 16 '15 at 03:02\lineheightbut that is what I was looking for. You want to make it an answer (simple as it is)? – Steven C. Howell Nov 16 '15 at 03:07\lineheight. I don't think I've ever used it ;). – cfr Nov 16 '15 at 03:12\textheightis larger than the available space (I forgot to change 0.4 to 0.5 before recompiling). Still not sure if there is a command for the available space in the slide. – Steven C. Howell Nov 16 '15 at 03:14\beamer@frametextheight, maybe. But I think it is calculated on a per frame basis. Because the height of the title box is expected to vary and, indeed, whether there is a title at all. – cfr Nov 16 '15 at 03:30