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

When using the beamer \visible command inside a tabular environment, beamer adds an extra vertical space before the text. For example, in the following code, beamer adds an empty line before the word World in the second row. Can this be avoided?

    1 & Hello World \\
    2 & \visible<2->{Hello World} \\
share|improve this question
Just add \hspace{.1mm} before the \visible..... – percusse Mar 11 '12 at 15:33
Thanks! This does exactly what I wanted. – haggai_e Mar 11 '12 at 15:39
You can actually use \hspace{0pt} as well. – Alan Munn Mar 11 '12 at 17:54
up vote 10 down vote accepted

The solution to this problem is to put


just before the \visible command.

When I discussed this with David Carlisle in chat he said:

because you should never try to do anything fancy as the first thing in a table cell, I don't know exactly what visible does but tex is in a rather unstable state at that position.

So that's about as good an explanation as one can get without looking very deeply into the code.

Percusse (who also had the same idea) credits it to this question: Why does babel not work in Tikz?

share|improve this answer
@haggai_e If, like me, you're lazy and want to save on key strokes, you can use ${}$ in place of \hspace{0pt} in this case. – Daniel Harbour Jun 10 '12 at 7:16

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.