Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Consider the following:

\documentclass{beamer}
\begin{document}
\begin{frame}
  \begin{columns}
    \column{.5\textwidth}
    \only<1->{Why does this move? :-(}
    \column{.5\textwidth}
    \only<2->{
      \[\int\]\[\int\]\[\int\]\[\int\]\[\int\]\[\int\]
    }
  \end{columns}
\end{frame}
\end{document}

Why does the line of text move down from the first page to the second?

What is the proper way to avoid this?

share|improve this question
add comment

2 Answers

up vote 8 down vote accepted

\only does not reserve any space when the overlay is not active. Use \onslide instead:

\documentclass{beamer}
\begin{document}
\begin{frame}
  \begin{columns}
    \column{.5\textwidth}
    \onslide<1->{Why does this move? :-(}
    \column{.5\textwidth}
    \onslide<2->{
      \[\int\]\[\int\]\[\int\]\[\int\]\[\int\]\[\int\]
    }
  \end{columns}
\end{frame}
\end{document}
share|improve this answer
    
Great, that works! Is there a difference between \visible and \onslide? –  user108903 Feb 15 '12 at 16:50
    
\onslide can have an optional * or a +, so that it can act like \visible or \uncover. And the argument can also be missing, then all the follwoing text will be in the overlay or not –  Herbert Feb 15 '12 at 16:59
add comment

Use \visible instead:

\documentclass{beamer}
\begin{document}
\begin{frame}
  \begin{columns}
    \column{.5\textwidth}
    \only<1->{Why does this move? :-(}
    \column{.5\textwidth}
    \visible<2->{
      \[\int\]\[\int\]\[\int\]\[\int\]\[\int\]\[\int\]
    }
  \end{columns}
\end{frame}
\end{document}

Explanation

When using \only the content gets only displayed on the specified slide and uses no space for it. Whereas the usage of \visible always uses the space for the corresponding element even if it's not shown. Using the \visible command avoids "jumping" slides.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.