[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.

In a previous post we looked at using the LaTeX beamer package to create presentations. Given a title page and outline of a presentation the next stage will be to create the content that appears in various slides of the presentation.

Fast Tube by Casper

To create a slide we make use of the frame environment and the first argument is the title for the slide, which usually appears at the top of the slide. For example a basic slide with a title and a sentence of body text would be created with the following commands:

begin{frame}{Introduction}
This presentation covers the theory behind the linear regression model.
end{frame}

The text in a slide may look plain and if we wanted to highlight a particular word(s) then there are various options for doing this. The emph is used to provide emphasis that is usually indicated by an italic font. The alert command highlights a word in a colour, often red, to make it stand out from the rest of the text. There are other options that can be used to change for example the colour of the text or other features of the font.

Other useful resources are provided on the Supplementary Material page.