1

I am having trouble getting the \onslide command to work. I get nothing but blank slides:

\documentclass{beamer}

\mode<presentation>
{
  \usetheme{PaloAlto}
  \setbeamercovered{transparent}
}

\usepackage[english]{babel}

\begin{document}

 \begin{frame}
  \onslide<1->{One potato\\}
  \onslide<2->{Two potato\\}
  \onslide<3->{Three potato\\}
  \onslide<4->{Four\\}
 \end{frame}
\end{document}

What I expect to see is a four slide document where the first slide says "One potato" in black and the other three lines are light grey. The next slide should show the first two lines in black, etc. Instead, I get four empty slides. If I change the numbers in the angle brackets to, say, <11->,<12->,<13->,<14-> I get ten slides with four grey lines each, and then four blank slides.

What am I doing wrong, and how do I fix this problem?

1
  • 1
    Your code works perfectly here. I guess that you have PDF viewer problems.
    – Sigur
    Commented Feb 17, 2016 at 12:54

2 Answers 2

0

Put the \\ outside of \onslide:

\documentclass{beamer}
\usetheme{PaloAlto}
\setbeamercovered{transparent}
\usepackage[english]{babel}

\begin{document}
    \begin{frame}
        \onslide<1->{One potato}\\
        \onslide<2->{Two potato}\\
        \onslide<3->{Three potato}\\
        \onslide<4->{Four}
    \end{frame}
\end{document}

Sllide two:

enter image description here

5
  • I've tried that, and it makes no difference.
    – TheBigH
    Commented Feb 17, 2016 at 12:58
  • see my image ...
    – user2478
    Commented Feb 17, 2016 at 12:59
  • But the double bars should not create a new slide, only a new line.
    – Sigur
    Commented Feb 17, 2016 at 13:00
  • they do not create a new slide! However, you are right, it also works for me with `\` inside. I have up-to-date TeXLive 2015.
    – user2478
    Commented Feb 17, 2016 at 13:01
  • @Herbert, so I don't see difference if it is inside/outside braces. Sorry.
    – Sigur
    Commented Feb 17, 2016 at 13:03
0

I figured out that the problem is with Kile. If I simply compile LaTeX I get the problem. With PdfLaTeX it works properly.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .