Creating a Presentation with LaTeX Beamer – Boxes

July 19, 2010

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

We can add coloured boxes with text or mathematics into a LaTeX beamer presentation which is particularly useful if we have definitions, theorem or computer code to highlight this information that may not be so accessible within a paragraph of text.

Fast Tube
Fast Tube by Casper

The easiest way to create a box is to use the various pre-defined environments such as definition:

The simple linear regression model describes the relationship between
a response variable and a single explanatory variable.

We might want to create a box with our own title in which case the exampleblock environment can be used with the new title as an argument to this environment:

begin{exampleblock}{Linear Regression Model}
$Y_{i} = beta_{0} + beta_{1} X_{i} + epsilon_{i}$

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. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Tags: , , , , ,

Comments are closed.

Search R-bloggers


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)