LaTeX/Presentations : Différence entre versions

De LaTeX
Aller à : navigation, rechercher
m (Pause)
m (Pause)
Ligne 197 : Ligne 197 :
  
 
You can place the \pause command between the part of the slide you want to show up separately.  
 
You can place the \pause command between the part of the slide you want to show up separately.  
 +
\pause create multiple separate slides. The first slide displays the information contained above
 +
the first \pause, the second slide displays the information down to the second \pause, and so on.
  
 
<source lang="latex">
 
<source lang="latex">

Version du 29 mai 2011 à 18:11

Beamer is a LaTeX class for creating slides for presentations. The name is taken from the German word Beamer, a pseudo-anglicism for video projector.

It has special syntax for defining 'slides' known in Beamer as 'frames'. Slides can be built up on-screen in stages as if by revealing text that was previously hidden or covered. This is handled with PDF output by creating successive pages that preserve the layout but add new elements, so that advancing to the next page in the PDF file appears to add something to the displayed page, when in fact it has redrawn the page.

Beamer provides the ability to make 'handouts', that is a version of the output suitable for printing, without the dynamic features, so that the printed version of a slide shows the final version that will appear during the presentation. For actually putting more than one frame on the paper, pgfpages package is to be used.

An "article" version is also available, rendered on standard sized paper (like A4 or letter), with frame titles used as paragraph titles, no special slide layout/colors, keeping the sectioning. This version is suitable for lecture notes or for having a single source file for an article and the slides for the talk about this article.


All you need to know about Beamer

First example

Let's start with a simple 3 slides presentation including one for the title.


\documentclass{beamer}
 
\title{Demography}
\author{I. Ned}\institute{Institut National d'Etudes D\'emographiques}
 
 
\begin{document}
 
\begin{frame}
\titlepage
\end{frame}
 
\begin{frame}
Text located on the first content slide
\end{frame}
 
\begin{frame}
Text located in the second content slide
\end{frame}
 
\end{document}



Step by step

Like any other LaTeX structured documents, the TeX code of a Beamer presentation starts with the Document Class Declaration:
 
\documentclass{beamer}

and it is enclosed between:

\begin{document}
....
\end{document}


The only new thing only new thing with Beamer is that each slide is enclosed between the two commands which identify the beginning and end of the slide:

\begin{frame}
....
\end{frame}


You can add some package just after the Document Class Declaration. Once you know TeX general commands, it is very easy to make a Beamer presentation. So if you read carefully the previous sections, you just need to adapt this Beamer example.


Beamer is very flexible and allow you to do almost everything (except coffee...). In this section, we only present very general commands.

Few more things about Beamer

Titles

General title

We already use this example (See Structure)


\documentclass{beamer}  % For a Beamer presentation
\usepackage[utf8x]{inputenc}
 
\begin{document}
% Article information 
\title[Complete-simple distributive lattices]
{A construction of complete-simple\\ distributive lattices}
 
% Author information 
\author{
  George~A. Menuhin   
   \thanks{  \texttt{gmen@ccw.uwinnebago.edu} 
     Computer Science Department,
     University of Winnebago, Winnebago, MN 53714. 
    The research was supported by the NSF under grant number 23466.}
and 
   Ernest~T. Moynahan 
    \thanks{\texttt{h1175moy\%ella@relay.eu.net}
       Mathematical Research Institute 
       of the Hungarian Academy of Sciences,
       Budapest, P.O.B. 127, H-1364,
       Hungary. The research  was supported by the Hungarian National Foundation 
       for Scientific Research, under Grant No. 9901.}
} 
\date{\today}
\maketitle 
\end{document}



Slide title

The command to give a slide a title is: \frametitle{mytitle}

\begin{frame}
\frametitle{mytitle}
Text located on the first content slide
\end{frame}



Sectioning Commands and Table of Contents

You can use the usual sectioning commands and get the table of contents:


\documentclass{beamer}
 
\title{Demography}
\author{I. Ned}\institute{Institut National d'Etudes D\'emographiques}
 
 
\begin{document}
 
\begin{frame}
\titlepage
\end{frame}
 
\begin{frame}              % slide with the table of contents 
\frametitle{Outline}
\tableofcontents
\end{frame}
 
\section{section1}         % section
\subsection{section1.1}    % subsection
\begin{frame}
\frametitle{SlideTitle}
Text located on the first content slide of the first section
\end{frame}
 
\subsection{section1.2}
\begin{frame}
Text located on the first content slide of the second section
\end{frame}
 
\section{section2}
\begin{frame}
Text located in the second content slide
\end{frame}
 
\begin{frame}
Text located in the second content slide
\end{frame}
 
\end{document}



Overlays

The content of your slides can appairs incrementally.


Pause

You can place the \pause command between the part of the slide you want to show up separately. \pause create multiple separate slides. The first slide displays the information contained above the first \pause, the second slide displays the information down to the second \pause, and so on.

\begin{frame}
\begin{itemize}
\item \textbf{Question:} What do demographers do?\\
\pause  % command pause
\item \textbf{Answer:} Demographers study populations to determine 
their size and composition and to predict how they are likely to 
change in years to come. In all countries, this knowledge is key 
to meeting the population's present and future needs, for example, 
to decide how many new kindergartens, schools or retirement homes 
are needed. Demographers analyse data collected by the national 
statistical offices (INSEE in France) and organize surveys on 
specific themes. 
\end{itemize}
\end{frame}







You may use a pdf: Expres.pdf
texte descriptif

You may use a Powerpoint Fichier:Powerp.ppt

External links

Tutorials





Previous: Structured document and document structure Index Next: Bibliography Management