Creating a Presentation with LaTeX Beamer – Using Overlays

[This article was first published on Software for Exploratory Data Analysis and Statistical Modelling, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Overlays can be used in a LaTeX beamer presentation to reveal parts of a slide sequentially, which can be a useful way of imparting information to your audience. There are a number of different ways that overlays can be created depending on the sophistication required in the presentation.

Fast Tube
Fast Tube by Casper

The pause command is the easiest way to create simple overlays that reveal consecutive parts of a slide.

begin{itemize}
item Total Runs Scored.
pause
item Number of Innings Batted.
pause
item Number of Not Out Innings.
pause
item Number of 100s.
pause
item Number of 50s.
end{itemize}

Commands such as <1-> can be added after various beamer environments to allow them to appear on different slides of the overlay set to provide greater control over the display.

begin{tabular}{cccccccc} \ hline
Opposition & Match & Inns & Runs & NO & Inns & Wicket & Catches \ hline
onslide<2-> Australia & 36 & 49 & 1673 & 2 & 66 & 148 & 57 \
onslide<3-> India & 14 & 16 & 1201 & 0 & 23 & 59 & 14 \
onslide<4-> New Zealand & 15 & 22 & 846 & 2 & 28 & 64 & 14 \
onslide<5-> Pakistan & 14 & 20 & 647 & 1 & 18 & 40 & 14 \
onslide<6-> Sri Lanka & 3 & 3 & 41 & 0 & 6 & 11 & 2 \
onslide<7-> West Indies & 20 & 37 & 792 & 1 & 27 & 61 & 19 \ hline
end{tabular}

The onslide command is used to indicate a range of slides in the overlay where the information on that line should be displayed.

There are ways to create more complicated overlays to reveal information on a slide.

Other useful resources are provided on the Supplementary Material page.

To leave a comment for the author, please follow the link and comment on their blog: Software for Exploratory Data Analysis and Statistical Modelling.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)