TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In beamer v3.0 guide (slide 121) , I've found:

In case of subtle differences in the heights of replacements, overlayarea and overprint environments can be used.

But it's not clear to me.

What are differences between \only and \onslide in Beamer ?

How to decide, which to choose in particular case?

share|improve this question

In short, \only<>{} does not render the braced material at all except on the named slides, while \onslide<> renders the material until the next \onslide, sort of like an \item, but, on the off slides, covers it (according to the preference given in \setbeamercovered; i.e. transparent or invisible). There are other alternatives, for example, \uncover<>{}, which functions like \only but acts like \onslide; i.e. takes a specific chunk of text and covers or uncovers it as appropriate.

There are some circumstances where they work differently. For example, using \onslide in one of the amsmath equation environments (I have found) produces horrible bugs:

 a & \onslide<+-> b % Bad
 a & \uncover<+->{b}% Good

Presumably this is because align does what the manual calls "wicked things" in processing its contents.

You also ask about the overlayarea and overprint environments; these are fancy versions of \uncover and \onslide respectively, that reserve the space for an entire sequence of uncoverings. The overprint environment does so automatically but only allows you to uncover in an "itemized" fashion by using \onslide successively, and the overlayarea environment requires you to say exactly the size of the overlay area but allows you to use any Beamer constructs inside; it will then produce the requisite number of slides with various material appearing in that area (including necessary empty space) on each one.

share|improve this answer

Your Answer


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.