# Creating a Presentation with LaTeX Beamer – Boxes

July 19, 2010
By

(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 by Casper

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

begin{definition} The simple linear regression model describes the relationship between a response variable and a single explanatory variable. end{definition}

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}$ end{exampleblock}

Other useful resources are provided on the Supplementary Material page.

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

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

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.