# Creating a Presentation with LaTeX Beamer – Basic Slides

July 5, 2010
By

(This article was first published on Software for Exploratory Data Analysis and Statistical Modelling, and kindly contributed to R-bloggers)

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.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...