Part 1 | Part 2 | Part 3 | Part 4 | Part 5

Author: Josh Cassidy (August 2013)

This five-part series of articles uses a combination of video and textual descriptions to teach the basics of creating a presentation using the LaTeX beamer package. These tutorials were first published on the original ShareLateX blog site during August 2013; consequently, today's editor interface (Overleaf) has changed considerably due to the development of ShareLaTeX and the subsequent merger of ShareLaTeX and Overleaf. However, much of the content is still relevant and teaches you some basic LaTeX—skills and expertise that will apply across all platforms.

For this series we are going to be using (an old version of) ShareLaTeX as our LaTeX editor but you could follow along with whichever LaTeX editor you feel most confident with. If you've never used LaTeX you may want check out our video tutorials for beginners.

To start our presentation we need to set the document class to beamer . Next we'll select a theme using the \usetheme command; for our example we'll use the Boadilla theme.

\documentclass { beamer } \usetheme { Boadilla }

We'll look at a number of different themes that can be used later on in the series. Now to complete the preamble we'll enter our title, subtitle, author, institute and date information:

\title { My Presentation } \subtitle { Using Beamer } \author { Joe Bloggs } \institute { University of ShareLaTeX } \date { \today }

Just like any other LaTeX document we need to enclose our document in the document environment.

\begin { document } <document goes here> \end { document }

Now to add slides in we use the frame environment. We'll make our first frame the title page by entering the \titlepage command:

\begin { frame } \titlepage \end { frame }

Just like with a normal LaTeX document we want to split our presentation up into sections and subsections. Let's add in some sections and then add some frames to each section. Then we can give our frames titles using the \frametitle command and add in some text. For example:

\section { Section 1 } \subsection { sub a } \begin { frame } \frametitle { Title } Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \end { frame }

Finally let's create a frame with a table of contents using the \tableofcontents command.

\begin { frame } \frametitle { Outline } \tableofcontents \end { frame }

Now if we compile the code we'll see that the information we added in the preamble has been neatly put together on the title page:

We'll also see that the table of contents slide has automatically numbered the sections and displayed them along with their corresponding subsections:

At the bottom of every slide a bar has been automatically generated with the author name, institute, presentation title, date and frame number:

To show the presentation, we download the project, open it in a PDF reader and put it in a fullscreen view. You will notice that in the bottom-right-hand corner beamer has given us some navigation buttons:

the first one, and its arrows, allows us to navigate between slides;

the second lets us navigate between frames;

the third lets us navigate between subsections;

the fourth provides navigation between sections.

We'll talk more about the difference between slides and frames later in the series. The next button along that doesn't have arrows either side takes us to the last page of the presentation if we click on the right had side of the icon or to the first slide if we click on the left. Then the circular arrows are like undo and redo buttons and take us back through the history of which slides we have visited. The search icon allows you search through your presentation.

This concludes our discussion on setting up a basic presentation. In the next post we'll look at adding different types of content to our slides.

All articles in this series

Please do keep in touch with us via Facebook, Twitter or via e-mail on our contact us page.