I'm trying to include some overlays on a beamer slide with equations, but the result is different from the original without them.
Here's a minimal example:
\documentclass[spanish,10pt]{beamer}
\usepackage{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{times}
\useoutertheme[height=0pt,width=3cm,left]{sidebar}
\usecolortheme{dove,sidebartab}
\usefonttheme[only large]{structurebold}
\begin{document}
\begin{frame}{Áreas de intercambio directo}
\begin{centering}%
\framebox(100,60){}% Imagine there's an image instead
\par\end{centering}%
\begin{equation*}
\overline{s_{i}s_{j}}=\iint_{A_{j}}\iint_{A_{i}}\frac{\cos\theta{}_{i}\cos\theta{}_{j}}{\pi r^{2}}\text{e}^{-Kr}\text{d}A_{i}\text{d}A_{j}
\end{equation*}
\onslide<2->
{
\begin{equation*}
\overline{s_{i}g_{j}}=\iiint_{V_{j}}\iint_{A_{i}}\frac{\cos\theta{}_{i}K}{\pi r^{2}}\text{e}^{-Kr}\text{d}A_{i}\text{d}V_{j}
\end{equation*}
}
\onslide<3->
{
\begin{equation*}
\overline{g_{i}g_{j}}=\iiint_{V_{j}}\iiint_{V_{i}}\frac{K^{2}}{\pi r^{2}}\text{e}^{-Kr}\text{d}V_{i}\text{d}V_{j}
\end{equation*}
}
\end{frame}
\end{document}
I get the following result, with that horrible extra vertical space:
If I remove the overlays it looks fine.
I've also tried with \uncover
. Same result.
Best Answer
Remove the empty line between the 2nd and the 3rd
\onslide<>
content.In addition, I added a
\begin{align*}...\end{align*}
version for better alignment of equations with respect to the=
symbol.