# LaTeX/Presentations

* LaTeX
* Getting Started
* Introduction
* Installation
* Installing Extra Packages
* Basics
* How to get help
* Common Elements
* Document Structure
* Text Formatting
* Paragraph Formatting
* Colors
* Fonts
* List Structures
* Special Characters
* Internationalization
* Rotations
* Tables
* Title creation
* Page Layout
* Customizing Page Headers and Footers‎
* Importing Graphics
* Floats, Figures and Captions
* Footnotes and Margin Notes
* Hyperlinks
* Labels and Cross-referencing
* Initials
* Mechanics
* Errors and Warnings
* Lengths
* Counters
* Boxes
* Rules and Struts
* Technical Text
* Mathematics
* Advanced Mathematics
* Theorems
* Chemical Graphics
* Algorithms
* Source Code Listings
* Linguistics
* Special Pages
* Indexing
* Glossary
* Bibliography Management
* More Bibliographies
* Special Documents
* Scientific Reports (Bachelor Report, Master Thesis, Dissertation)
* Letters
* Presentations
* Teacher's Corner
* Curriculum Vitae
* Academic Journals (MLA, APA, etc.)
* Creating Graphics
* Introducing Procedural Graphics
* MetaPost
* Picture
* PGF/TikZ
* PSTricks
* Xy-pic
* Creating 3D graphics
* Programming
* Macros
* Plain TeX
* Creating Packages
* Creating Package Documentation
* Themes
* Miscellaneous
* Modular Documents
* Collaborative Writing of LaTeX Documents
* Export To Other Formats
* Help and Recommendations
* FAQ
* Tips and Tricks
* Appendices
* Authors
* Links
* Package Reference
* Sample LaTeX documents
* Index
* Command Glossary
LaTeX can be used for creating presentations. There are several packages for the task, such as- Powerdot, Prosper , Seminar, etc, however, the Beamer package is the most widely used.
It should be noted that Latex produces the presentation as a PDF which can be viewed in fullscreen mode with some pdf reader (e.g. Okular, Evince or Adobe Reader). If you want to navigate in your presentation, you can use the almost invisible links in the bottom right corner without leaving the fullscreen mode.

# The Beamer package

The beamer package is provided with most LaTeX distributions, but is also available from CTAN. If you use MikTeX, all you have to do is to include the beamer package and let LaTeX download all wanted packages automatically. The documentation explains the features in great detail. You can also have a look at the PracTex article Beamer by Example.
The beamer package also loads many useful packages including xcolors, hyperref, etc. An introductory example and its output are shown below.
| \documentclass[10pt]{beamer} % Add extra packages here \title{Presentation on XXX topic} \author{AAA} \begin{document} \maketitle \begin{frame} \frametitle{This is the first slide} Here you can put any text/equation etc. $a^2 + b^2 = c^2$. \end{frame} \begin{frame} \frametitle{This is the second slide} \framesubtitle{A bit more information about this} Some random text. \end{frame} \end{document} | An example for simple beamer presentation. |
In above code, the Beamer package is loaded by the \documentclass{beamer} command in the header. The usual header information may then be specified. In Beamer presentation a frame is an equivalent term for the slide (used in MS office). A frame is defined using the environment \begin{frame} ...... \end{frame}. The \frametitle command specifies the title for each slide. The frame title and subtitle can also be passed with the environment as following.
The usual environments (itemize, enumerate, equation, etc.) may be used. Inside frames, you can use environments like block, theorem, proof, ... Also, \maketitle is possible to create the Title page, if title and author are set.

### Title page and author information

The title page is the first page where one may insert following information
* Title and subtitle (optional)- Use\title and \subtitle commands, or use \title[short title (optional)]{Long title}{subtitle (optional)}
* Author(s) name- Use the \author command.
* Institute name- Use the \institute command. Note the use of \inst{1} and \inst{2} commands to associate the authors with their respective institutes.
* Date and Place of presentation- It can be inserted using the \date[short date(optional)]{Long date} command.
* Logo of Institute, etc.
It should be noted that the information within square braces, i.e., [ ] is optional.
| \documentclass{beamer} \title[Crisis] {The Economics of Financial Crisis}{Evidence from India} <nowiki>\author[Author, Anders] {F.~Author\inst{1} \and S.~Anders\inst{2}}</nowiki> \institute[Universities Here and There] { \inst{1} Institute of Computer Science\newline University Here \and \inst{2} Institute of Theoretical Philosophy\newline University There} \date[KPT 2004] {Conference on Presentation Techniques, 2004} \subject{Computer Science} \begin{document} \maketitle % place your frames here. \end{document} | The title page for a simple beamer class (without theme type or theme color) |
It is important to include the \maketitle command in the document (as in above code) to create the title frame. The commands \maketitle and \titlepage are equivalent.

### Table of Contents

The table of contents, with the current section highlighted, is displayed by:
This can be done automatically at the beginning of each section using the following code in the preamble:
Or for subsections:

#### Sections and subsections

As in all other LaTeX files, it is possible to structure the document using
Those commands have to be put before and between frames. They will modify the table of contents with the argument in brackets. The optional argument will be shown in the headline navigation on the slide, depending on the theme used. You can use \sectionpage macro to generate a separator slide for a declared section, for example

#### References (Beamer)

The following example shows a manually made references slide containing two entries:
As the reference list grows, the reference slide will divide into two slides and so on, through use of the allowframebreaks option. Individual items can be cited after adding an 'optional' label to the relevant bibitem stanza. The citation call is simply \cite. Beamer also supports limited customization of the way references are presented (see the manual).
The different types of referenced work are indicated with a little symbol (e.g. a book, an article, etc.). The symbol is set with the commands beamertemplatebookbibitems and beamertemplatearticlebibitems . It is also possible to use setbeamertemplate directly, like so
Other possible types of bibliography items, besides book and article , include e.g. online , triangle and text . It is also possible to have user defined bibliography items by including a graphic.
If one wants to have full references appear as foot notes, use the \footfullcite from the biblatex package. For example, it is possible to use

### Themes

Beamer offers two ways for define the themes- 1) Use built-in themes, 2) Use user-defined themes.

##### The Built-in solution

Beamer has several built-in themes which can be used by specifying their "Name" and their "color" in the preamble. This Theme Matrix contains the various theme and color combinations included with Beamer. For more customizing options, have a look to the official documentation included in your distribution of beamer, particularly the part Change the way it looks.
The full list of themes is:
| AnnArbor Antibes Bergen Berkeley Berlin | CambridgeUS Copenhagen Darmstadt Dresden Frankfurt | Goettingen Hannover Ilmenau JuanLesPins Luebeck | Madrid Malmoe Marburg Montpellier PaloAlto | Pittsburgh Rochester Singapore Szeged Warsaw | boxes default |
The full list of color themes is:
| default albatross beaver beetle crane | dolphin dove fly lily orchid | rose seagull seahorse whale wolverine |

##### User-defined themes

First you can specify the outertheme, which defines the head and the footline of each slide.
Here is a list of all available outer and inner themes:
| List of Outer themes | List of Outer themes | List of Outer themes | List of Outer themes | List of Inner themes | List of Inner themes |
| infolines | shadow | smoothbars | split | rectangles | inmargin |
| miniframes | sidebar | smoothtree | tree | circles | rounded |
You can define the color of every element:
Colors can be defined as usual:
Block styles can also be defined:
You can also suppress the navigation symbols:

#### Fonts

You may also change the fonts for particular elements. If you wanted the title of the presentation as rendered by \begin{frame}[plain]\titlepage\end{frame} to occur in a serif font instead of the default sanserif, you would use:
You could take this a step further if you are using OpenType fonts with Xe(La)TeX and specify a serif font with increased size and oldstyle proportional alternate number glyphs:

##### Math Fonts

The default settings for beamer use a different set of math fonts than one would expect from creating a simple math article. One quick fix for this is to use

### Frames Options

The options to a frame can be passed as following
Some of the useful options and their description is following.
* plain : This option removes all the formatting from your slide and thus give you extra space to accommodate a large figure or a large table.
* shrink: If you want to include lots of text on a slide use the shrink option.
* allowframebreaks : option will auto-create new frames if there is too much content to be displayed on one.
* fragile: Before using any verbatim environment (like listings), you should pass the option fragile to the frame environment, as verbatim environments need to be typeset differently. Usually, the form fragile=singleslide is usable (for details see the manual). Note that the fragile option may not be used with \frame commands since it expects to encounter a \end{frame}, which should be alone on a single line.

### Hyperlink navigation

Internal and external hyperlinks can be used in beamer to assist navigation. Clean looking buttons can also be added.
By default the beamer class adds navigation buttons in the bottom right corner. To remove them one can place
in the preamble.

### Animations

It is possible to make figure and text to appear and disappear using the commands such as \pause, \uncover, \only and \itemize<a-b>. Text or figures after these commands will display after one of the following events (which may vary between PDF viewers): pressing space, return or page down on the keyboard, or using the mouse to scroll down or click the next slide button. A short explanation of each command is as follows and refer to chapter 9 of the Beamer manual for more details..
The \pause statement can be used as following to provide a break. I.e. the text after the command will be displayed on next event (button click/ key press/etc.)
The \uncover command specifies the appearance explicitly; \only works the same but without reserving space when hidden.
The \item command specifies appearance and disappearance of text by using <a-b> where a and b are the numbers of the events the item is to be displayed for (inclusive). For example:
A simpler approach for revealing one item per click is to use \begin{itemize}[<+->].
In all these cases, pressing page up, scrolling up, or clicking the previous slide button in the navigation bar will backtrack through the sequence.
Above command uncovers the item and they are visible only on/after the specified frame numbers. One may also use the \setbeamercovered{transparent}command to see the uncovered items, which are shown with little opacity. This means if the visible text is in black then the uncovered text will be in gray. One may use \setbeamercovered{invisible} to revert this setting.
Similar option is also available for formatting the text. for example if you want the text to be of specific style then you may use \style<3->{Text}command.

### Animating with "alert"

One may use the command \alert<number>{Some text} which will show the specified text in the respective formatting for specified slides. Generally it highlights text with red color. A few examples are following.
It can also be used in combination with list as follows.
Above examples are taken from
Similarly one may use
\textbf, \textit, \textsl, \textrm, \textsf, \textcolor, \structure etc. commands.
Same is true for theorem, corollary, and proof environments. An example is given below.
For the tables one must add \onslide slide command before placing the new line (i.e., \\) .
Test 1 & repeat & 14.5 & 656 \onslide<3-> \\

### Handout mode

In beamer class, the default mode is presentation which makes the slides. However, you can work in a different mode that is called handout by setting this option when calling the class:
This mode is useful to see each slide only one time with all its stuff on it, making any \itemize[<+->] environments visible all at once (for instance, printable version). Nevertheless, this makes an issue when working with the only command, because its purpose is to have only some text or figures at a time and not all of them together.
If you want to solve this, you can add a statement to specify precisely the behavior when dealing with only commands in handout mode. Suppose you have a code like this
These pictures being completely different, you want them both in the handout, but they cannot be both on the same slide since they are large. The solution is to add the handout statement to have the following:
This will ensure the handout will make a slide for each picture.
Now imagine you still have your two pictures with the only statements, but the second one show the first one plus some other graphs and you don't need the first one to appear in the handout. You can thus precise the handout mode not to include some only commands by:
The command can also be used to hide frames, e.g.
or even, if you have written a frame that you don't want anymore but maybe you will need it later, you can write
and this will hide your slide in both modes.
A last word about the handout mode is about the notes. Actually, the full syntax for a frame is
and you can write your notes about a frame in the field note (many of them if needed). Using this, you can add an option
or
The first one is useful when you make a presentation to have only the notes you need, while the second one could be given to those who have followed your presentation or those who missed it, for them to have both the slides with what you said.

### Columns

Columns environment divides a slide (vertically) into columns. Example

### Blocks

Enclosing text in the block environment creates a distinct, headed block of text (a blank heading can be used). This allows to visually distinguish parts of a slide easily. There are three basic types of block. Their formatting depends on the theme being used.

### PDF options

You can specify the default options of your PDF.

### Numbering slides

It is possible to number slides using this snippet:
However, this poses two problems for some presentation authors: the title slide is numbered as the first one, and the appendix or so-called "backup" (aka appendix, reserve) slides are included in the total count despite them not being intended to be public until a "hard" question is asked. This is where two features come in:
* Ability to exclude certain frames from being numbered. For instance, this may be used at the title slide to avoid counting it:
* This stuff works around the problem of counting the backup frames:

# Logo

There are various ways one may want to insert the logo of institute. A few conventional cases are following
* Logo on all the slides (on right bottom) \logo{\includegraphics[width=1.5cm]{logo.jpg}}
* Logo at first slide only\begin{frame} \maketitle % \titlepage \begin{tikzpicture}[overlay,remember picture] \node[above=0.3cm] (firstlogo) at (current page.south){\includegraphics[width=2cm]{logo}}; \end{tikzpicture} \end{frame}
* Logo in the background of all slides

# The Powerdot package

The powerdot package is an alternative to beamer. It is available from CTAN. The documentation explains the features in great detail.
The powerdot package is loaded by calling the powerdot class:
The usual header information may then be specified.
Inside the usual document environment, multiple slide environments specify the content to be put on each slide.

# Simple presentations

The beamer class is very powerful and provides lots of features. For a very simple presentation, a class based on article can be used.

## Beamer based themes/examples

Some of the nice examples of the presentation are available below
* The Nord beamer theme
* Metropolis theme
* Kenton Hamaluik
* A list of theme maintained at github

## References

* ↑ Andrew Mertz and William Slough, Beamer by Example
* ↑ Other possible values are defined in the hyperref manual
* ↑ Appendix Slides in Beamer: Controlling frame numbers

## Links

* Wikipedia:Beamer (LaTeX)
* Beamer user guide (pdf) from CTAN
* The powerdot class (pdf) from CTAN
* A tutorial for creating presentations using beamer