LaTeX/Presentations
From Wikibooks, the open-content textbooks collection
LaTeX can be used for creating presentations. There are several packages for the task, including the Beamer package.
Contents |
[edit] 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[1]
[edit] Introductory example
The beamer package is loaded by calling the beamer class:
\documentclass{beamer}
The usual header information may then be specified.
Inside the usual document environment, multiple frame environments specify the content to be put on each slide. The frametitle command specifies the title for each slide:
\begin{document} \begin{frame} \frametitle{This is the first slide} %Content goes here \end{frame} \begin{frame} \frametitle{This is the second slide} %More content goes here \end{frame} % etc \end{document}
Usual environments (itemize,enumerate, equation, etc.) may be used as usual.
Inside of frames, you can use environments like block, theorem, proof, ... Also, \maketitle is possible to create the frontpage, if title and author is set.
Trick : Instead of using \begin{frame}…\end{frame}, you can also use \frame{…}.
For the actual talk, if you can compile it with pdfLaTeX then you could use Adobe Reader with its fullscreen mode.
[edit] Title page and informations
You give informations about authors, titles and dates in the preamble
\title[Crisis]%(optional, only for long titles) {The Economics of Financial Crisis} \subtitle{Evidence from India} \author[Autor, Anders] % (optional, for multiple authors) {F.~Autor\inst{1} \and S.~Anders\inst{2}} \institute[Universitäten Hier und Dort] % (optional) { \inst{1}% Institut für Informatik\\ Universität Hier \and \inst{2}% Institut für theoretische Philosophie\\ Universität Dort } \date[KPT 2003] % (optional) {Konferenz über Präsentationstechniken, 2004} \subject{Informatik}
In the document, you add the title page :
frame{\titlepage}
[edit] Text animations
You can simply use the \pause statement :
\begin{frame} \frametitle{Some background} We start our discussion with some concepts. \pause The first concept we introduce originates with Erd\H os. \end{frame} \end{document}
For text animations, for example in the itemize environment, you can write:
\begin{itemize} \item This one is always shown \item<1-> The first time \item<2-> The second time \item<1-> Also the first time \only<1-> This one is shown at the first time, but it will hide soon. \end{itemize}
\begin{frame} \frametitle{`Hidden higher-order concepts?'} \begin{itemize}[<+->] \item The truths of arithmetic which are independent of PA in some sense themselves `{contain} essentially {\color{blue}{hidden higher-order}}, or infinitary, concepts'??? \item `Truths in the language of arithmetic which \ldots \item That suggests stronger version of Isaacson's thesis. \end{itemize} \end{frame}
Note that the 'handout' option in the \documentclass line suppress all the animations.
\documentclass[11pt,handout]{beamer}
[edit] Themes
The first solution is to use a built-in theme such as Warsaw, Berlin, etc. The second solution is to specify colors, inner themes and outer themes.
[edit] The Built-in solution
To the preamble you can add the following line:
\usetheme{Warsaw}
to use the "Warsaw" theme. Beamer has several themes, many of which are named after cities (e.g. Barcelona, Madrid, Berlin, etc.). Color themes, typically with animal names, can be specified with
\usecolortheme{beaver}
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 list of all themes :
- Antibes
- Bergen
- Berkeley
- Berlin
- Boadilla
- Copenhagen
- Darmstadt
- Dresden
- Frankfurt
- Goettingen
- Hannover
- Ilmenau
- JuanLesPins
- Luebeck
- Madrid
- Malmoe
- Marburg
- Montpellier
- PaloAlto
- Pittsburgh
- Rochester
- Singapore
- Szeged
- Warsaw
- boxes
- default
[edit] The do it yourself solution
First you can specify the outertheme. The outertheme defines the head and the footline of each slide.
\useoutertheme{infolines}
Here is a list of all available outer themes
- infolines
- miniframes
- shadow
- sidebar
- smoothbars
- smoothtree
- split
- tree
Then you can add the innertheme :
\useinnertheme{rectangles}
Here is a list of all available inner themes :
- rectangles
- circles
- inmargin
- rounded
You can define the color of every element :
\setbeamercolor{structure}{bg=black, fg=green} \setbeamercolor{normal text}{bg=black,fg=yellow} \setbeamercolor{alerted text}{fg=orange} \setbeamercolor{background canvas}{bg=white}
Remember that you can define your own colors :
\definecolor{chocolate}{RGB}{33,33,33}
You can also define the style of blocks :
\setbeamertemplate{blocks}[shadow=false]
\setbeamertemplate{background canvas}[vertical shading][bottom=white,top=structure.fg!25]
You can also suppress the navigation bar, which is not very useful:
\beamertemplatenavigationsymbolsempty
[edit] 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:
\usefonttheme{serif}
[edit] Frames Options
The plain option. Sometimes you need to include a large figure or a large table and you don't want to have the bottom and the top of the slides. In that case, use the plain option :
\frame[plain]{ … }
If you want to include lots of text on a slide, use the shrink option.
\frame[shrink]{ … }
[edit] PDF options
You can specify the default options of your PDF.
\hypersetup{pdfstartview={FitH}}
[edit] Table of Contents
You can print the table of contents and highlight the current section/subsection by typing :
\begin{frame} \frametitle{Table of Contents} \tableofcontents[currentsection] \end{frame}
You can automatically print the table of contents at the beginning of each section by adding in the preamble the following line.
\AtBeginSection[]{\begin{frame}\frametitle{Table of Contents}\tableofcontents[currentsection]\end{frame}}
You can do the same for subsections :
\AtBeginSubsection[] { \begin{frame}<beamer> \frametitle{Gliederung} \tableofcontents[currentsection,currentsubsection] \end{frame} }
[edit] References (Beamer)
\begin{frame}[allowframebreaks] \frametitle<presentation>{Weiterf¸hrende Literatur} \begin{thebibliography}{10} \beamertemplatebookbibitems \bibitem{Autor1990} A.~Autor. \newblock {\em Einf¸hrung in das Pr‰sentationswesen}. \newblock Klein-Verlag, 1990. \beamertemplatearticlebibitems \bibitem{Jemand2000} S.~Jemand. \newblock On this and that. \newblock {\em Journal of This and That}, 2(1):50--100, 2000. \end{thebibliography} \end{frame}
[edit] The powerdot package
The powerdot package is available from CTAN. The documentation explains the features in great detail.
The powerdot package is loaded by calling the powerdot class:
\documentclass{powerdot}
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.
\begin{document} \begin{slide}{This is the first slide} %Content goes here \end{slide} \begin{slide}{This is the second slide} %More content goes here \end{slide} % etc \end{document}
[edit] References
- ↑ Andrew Mertz and William Slough Beamer by Example
[edit] Links
- Wikipedia:Beamer (LaTeX)
- beamer user guide (pdf) from CTAN
- A tutorial for creating a presentation using beamer package
- The powerdot class (pdf) from CTAN