LaTeX/Presentations

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.

In above code, the Beamer package is loaded by the  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. The 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, 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

It should be noted that the information within square braces, i.e., [ ] is optional. It is important to include the   command in the document (as in above code) to create the title frame. The commands   and   are equivalent.
 * Title and subtitle (optional)- Use and   commands, or use
 * Author(s) name- Use the  command.
 * Institute name- Use the  command. Note the use of   and   commands to associate the authors with their respective institutes.
 * Date and Place of presentation- It can be inserted using the  command.
 * Logo of Institute, etc.

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

The full list of color themes is:

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: 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  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  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   commands since it expects to encounter a , 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. 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  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  command specifies the appearance explicitly;   works the same but without reserving space when hidden.

The   command specifies appearance and disappearance of text by using   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.

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 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  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 command. For example one may use which will show the specified text in the respective formatting for specified slides. Similarly one may use

etc. commands.

Same is true for theorem, corollary, and proof environments. An example is given below. For the tables one must add  slide command before placing the new line (i.e., \\).

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  environments visible all at once (for instance, printable version). Nevertheless, this makes an issue when working with the  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  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:

= 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  class is very powerful and provides lots of features. For a very simple presentation, a class based on  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

Links

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

LaTeX/Faire des présentations LaTeX/Презентације