Skip to Main Content

LaTeX document preparation system

Creating Beamer Presentation

Beamer is a LaTeX class for creating presentations. It allows you to create professional-looking slides with ease. Here's a quick guide to get you started.

Basic Structure

A Beamer presentation is structured similarly to a LaTeX article, with some key differences. Here’s the basic structure of a Beamer document:

\documentclass{beamer}

\begin{document}

\begin{frame}
  \frametitle{Title of the Slide}
  This is some text in the slide.
\end{frame}

\end{document}

This code will produce the following:

Adding More Content

Creating a Beamer Presentation

Document Class:

  • Use \documentclass{beamer} to specify the Beamer class.
  • Each slide is created within a `frame` environment.

Frames:

  • The \frametitle{} command sets the title of the slide.

Example Presentation

\documentclass{beamer}

\title{My Presentation}
\author{Author Name}
\date{\today}

\begin{document}

\frame{\titlepage}

\begin{frame}
  \frametitle{Introduction}
  Welcome to my presentation!

\begin{figure}
    \centering
    \includegraphics[width = 5 cm, height = 4 cm]{books.jpg}
    \caption{Reading books is fun!}
    \label{fig:books}
\end{figure}


\end{frame}

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

\section{First Section}

\begin{frame}
  \frametitle{First Slide}
  Here is some text for the first slide.
\end{frame}

\section{Second Section}

\begin{frame}
  \frametitle{Second Slide}
  Here is some text for the second slide.
\end{frame}

\end{document}

This code creates the following set of slides:

Adding Content

Creating figures, tables, and lists in Beamer is the same as in an article. The only difference is the environment in which they are placed.