Slides in Latex

Document Sample
Slides in Latex Powered By Docstoc
					      Preliminaries
    The First Steps
     Making Slides
         Structure
              Style
              Math




      Slides in Latex

     Peter Achim Wagner


      November 17, 2008




Peter Achim Wagner    Slides in Latex
                             Preliminaries
                           The First Steps
                            Making Slides
                                Structure
                                     Style
                                     Math


Latex Quick-Setup (Windows)




  For latex you need
    1   A latex distribution (e.g. Miktex)
    2   A latex editor (e.g. Winshell, TexnicCenter, WinEdt , or Lyx
        (WYSIWYG))




                       Peter Achim Wagner    Slides in Latex
                           Preliminaries
                         The First Steps
                                           The First Latex Document
                          Making Slides
                                           The First Slides
                              Structure
                                           Frames
                                   Style
                                   Math


The First Latex Document



  \documentclass{article}
  \begin{document}
  Hello World
  \end{document}

  Using PdfLatex (the latex compiler), this gives you a pdf document
  with only one page and the two words ”Hello World”




                     Peter Achim Wagner    Slides in Latex
                         Preliminaries
                       The First Steps
                                         The First Latex Document
                        Making Slides
                                         The First Slides
                            Structure
                                         Frames
                                 Style
                                 Math


The Beamer Class



  For slides we need the DocumentClass ”Beamer”

  \documentclass{beamer}
  \usetheme{Warsaw}
  \begin{document}
  Hello World
  \end{document}




                   Peter Achim Wagner    Slides in Latex
                    Preliminaries
                  The First Steps
                                    The First Latex Document
                   Making Slides
                                    The First Slides
                       Structure
                                    Frames
                            Style
                            Math

Hello World




              Peter Achim Wagner    Slides in Latex
                  Preliminaries
                The First Steps
                                  The First Latex Document
                 Making Slides
                                  The First Slides
                     Structure
                                  Frames
                          Style
                          Math




This gives you already a slide, but not a very pretty one.
A presentation is made using the ”frame” environment
The frame environment begins with \begin{frame} and ends
with \end{frame}




            Peter Achim Wagner    Slides in Latex
                          Preliminaries
                        The First Steps
                                          The First Latex Document
                         Making Slides
                                          The First Slides
                             Structure
                                          Frames
                                  Style
                                  Math


Frames


  \documentclass{beamer}
  \usetheme{Warsaw}
  \begin{document}
  \begin{frame}
  \frametitle{Frame Title}
  Hello World
  \end{frame}
  \document{document}




                    Peter Achim Wagner    Slides in Latex
                      Preliminaries
                    The First Steps
                                      The First Latex Document
                     Making Slides
                                      The First Slides
                         Structure
                                      Frames
                              Style
                              Math


Frame Title




  Hello World




                Peter Achim Wagner    Slides in Latex
                     Preliminaries
                   The First Steps
                                     Lists
                    Making Slides
                                     \Block
                        Structure
                                     \Pause
                             Style
                             Math



We can now begin to make slides
Often we want to use numbered or unnumbered lists
We can make lists with ”enumerate” and ”itemize”
environments
Numbered lists look like this:
\begin{enumerate}
\item This is item 1
 \end{enumerate}

Unnumbered lists look like this:
\begin{itemize}
\item This is item 1
 \end{itemize}

               Peter Achim Wagner    Slides in Latex
                           Preliminaries
                         The First Steps
                                           Lists
                          Making Slides
                                           \Block
                              Structure
                                           \Pause
                                   Style
                                   Math




1   This is item 1

    This is item 1




                     Peter Achim Wagner    Slides in Latex
                           Preliminaries
                         The First Steps
                                           Lists
                          Making Slides
                                           \Block
                              Structure
                                           \Pause
                                   Style
                                   Math


Blocks


  ”block” environment
  We can use the environment ”block” to make these little blocks

  ”exampleblock”
  ”exampleblock” gives this block

  ”alertblock”
  This is ”alertblock”




                     Peter Achim Wagner    Slides in Latex
                           Preliminaries
                         The First Steps
                                           Lists
                          Making Slides
                                           \Block
                              Structure
                                           \Pause
                                   Style
                                   Math


Pause




        We can use the command \pause to pause the presenation at
        any given point




                     Peter Achim Wagner    Slides in Latex
                           Preliminaries
                         The First Steps
                                           Lists
                          Making Slides
                                           \Block
                              Structure
                                           \Pause
                                   Style
                                   Math


Pause




        We can use the command \pause to pause the presenation at
        any given point
        Here I used the command \pause




                     Peter Achim Wagner    Slides in Latex
                            Preliminaries
                          The First Steps
                                            Lists
                           Making Slides
                                            \Block
                               Structure
                                            \Pause
                                    Style
                                    Math


Pause




        We can use the command \pause to pause the presenation at
        any given point
        Here I used the command \pause
        and here I used it again




                      Peter Achim Wagner    Slides in Latex
                          Preliminaries
                        The First Steps
                         Making Slides    Titlepage
                             Structure    Sections
                                  Style
                                  Math


Structure




  Now lets add some structural elements




                    Peter Achim Wagner    Slides in Latex
                          Preliminaries
                        The First Steps
                         Making Slides    Titlepage
                             Structure    Sections
                                  Style
                                  Math


The Title Page




  Now lets add some structural elements




                    Peter Achim Wagner    Slides in Latex
                            Preliminaries
                          The First Steps
                           Making Slides    Titlepage
                               Structure    Sections
                                    Style
                                    Math


The Title Page

  A Title Page

  \documentclass{beamer}
  \usetheme{Warsaw}

  \title{Slides in Latex}
  \author{Peter Achim Wagner}
  \date{\today}

  \begin{document}
  \maketitle
  \end{document}

  This gives you...
                      Peter Achim Wagner    Slides in Latex
              Preliminaries
            The First Steps
             Making Slides    Titlepage
                 Structure    Sections
                      Style
                      Math


Title




              Slides in Latex

             Peter Achim Wagner


              November 17, 2008




        Peter Achim Wagner    Slides in Latex
                          Preliminaries
                        The First Steps
                         Making Slides    Titlepage
                             Structure    Sections
                                  Style
                                  Math


Sections and Subsections



      You can structure your presentation by using sections and
      subsections.
      You start a new section with the command
      \section{sectionname}
      In slides the only effect of adding sections (or subsections) is
      that they appear on top of the screen (depends on the theme)




                    Peter Achim Wagner    Slides in Latex
                           Preliminaries
                         The First Steps
                          Making Slides
                              Structure
                                   Style
                                   Math


Style




        You can use different themes by replacing ”Warsaw” in the
        preamble of this presentation, by any other theme.
        For a list of themes see Beamer Themes




                     Peter Achim Wagner    Slides in Latex
                            Preliminaries
                          The First Steps
                           Making Slides
                               Structure
                                    Style
                                    Math


Math
       Math in Latex is worth a seperate presentation
       However, the concept is simple
       Any math in Latex is written between two dollar signs:
       $math$ (inline) or between 4 dollar sign
                                       $$math$$


       Each math operator has a certain syntax or a command
       For example subscripts are made with underscores, and \delta
       is δ
       There is plenty of material available that explains this in detail
       For example: LATEX maths and graphics. T. Love,
       Cambridge
                      Peter Achim Wagner    Slides in Latex
                        Preliminaries
                      The First Steps
                       Making Slides
                           Structure
                                Style
                                Math




For more information see Beamer Guide v3.00, Ki-Joo Kim




                  Peter Achim Wagner    Slides in Latex