Beamer v3.0 Guide Beamer v3.0 Guide Ki-Joo Kim (a.k.a. Daisyweb) November 4, 20
Beamer v3.0 Guide Beamer v3.0 Guide Ki-Joo Kim (a.k.a. Daisyweb) November 4, 2004 Beamer v3.0 Guide Why Beamer? Why Beamer? Pros: Both dvips/ps2pdf1 and pdflatex supports2 Rich overlay and transition effects Navigational bars and symbols Outputs: screen, transparency, handouts, and notes Emulation of other PDF presentation tools such as Prosper and FoilT EX Cons: Difficult to design a template 1You need this route if you use PSTricks. 2No dvipdfm support! Beamer v3.0 Guide Beamer Structure Basic Code Basic Code I Beamer class loading with themes \documentclass[slidestop,compress,mathserif]{beamer} %\usepackage[bars]{beamerthemetree} % Beamer theme v 2.2 \usetheme{Antibes} % Beamer theme v 3.0 \usecolortheme{lily} % Beamer color theme Beamer v3.0 Guide Beamer Structure Basic Code Basic Code I Beamer class loading with themes \documentclass[slidestop,compress,mathserif]{beamer} %\usepackage[bars]{beamerthemetree} % Beamer theme v 2.2 \usetheme{Antibes} % Beamer theme v 3.0 \usecolortheme{lily} % Beamer color theme Cover title \title{} \author{} \institute{} \begin{document} \begin{frame} % Cover slide \titlepage \end{frame} % Instead, you can use \frame{\titlepage}} (Beamer v 2.2 macro) Beamer v3.0 Guide Beamer Structure Basic Code Basic Code II Main slide frame \section{Introduction} % Bookmark information \subsection{History} % Bookmark information \begin{frame}[options] \frametitle{History} ... slide contents ... \end{frame} With v 2.2 macro: \frame[options]{\frametitle{History}% ... slide contents ... }% Beamer v3.0 Guide Beamer Structure Five Themes Five Themes The main difference between v 3.0 and v 2.2 is Beamer themes. Five theme categories: Presentation Themes – Slide template Color Themes – Color scheme for slide template Font Themes Inner Themes Outer Themes Example \documentclass[slidestop,compress,mathserif]{beamer} %\usepackage[bars]{beamerthemetree} % Beamer theme v 2.2 \usetheme{Antibes} % Beamer theme v 3.0 \usecolortheme{lily} % Beamer color theme Go to Themes for more information. Beamer v3.0 Guide Beamer Structure Beamer Options for Layout Beamer Options for Layout [slidestop] puts frame titles on the top left corner (default=[slidescentered]). [compress] makes all navigation bars as small as possible (default=[uncompressed]). [red] changes navigation bars and titles to reddish color. blue: Default color scheme red: Used in this presentation brown blackandwhite: Good for transparencies Beamer v3.0 Guide Beamer Structure Beamer Options for Output Beamer Options for Output Default: PDF screen (size 128mm × 96 mm)3. [handout] for PDF handouts. [trans] for PDF transparency. ⇒For handout and trans, you need some extra work to enlarge the size. Click here to see an example! [notes=hide/show/only] for notes. Hide notes (default), add notes to the PDF screen, or notes only PDF. 3Monitor’s 4:3 aspect ratio. Beamer v3.0 Guide Beamer Structure Additional Beamer Options Additional Beamer Options [hyperref={bookmarks=false}] removes bookmarks. [cjk] for CJK typesetting. ⇒For hangul, use hfont package. \usepackage[utf8]{inputenc} for Unicode. Frame Options \frame[plain]{\frametitle{}..} for plane frame style as used in this slide! [containsverbatim] for using verbatim environment and \verb command. [allowframebreaks] for automatic split of frames if the contents do not fit in a single slide. [shrink] for shrinking the contents to fit in a single slide. [squeeze] for squeezing vertical space. Beamer v3.0 Guide Beamer Structure Transparency Effects Transparency Effects All overlayed stuffs are covered (default) \beamertemplatetransparentcoveredhigh makes all covered text highly transparent \beamertemplatetransparentcovereddynamicmedium makes all covered text quite transparent, but is a dynamic way. The range of dynamics is smaller. Beamer v3.0 Guide Fonts Text and Math Fonts Text and Math Fonts I Excellent support for selecting text and math fonts. Default text and math fonts: CMSS and CMR Math You should avoid CMR Math in presentation Example: http://faq.ktug.or.kr/wiki/uploads/MathFonts.pdf Beamer option [sans] for text font (default) mathsans is default. Equivalent to \usefonttheme{default} Beamer option [sefif] for text font mathserif is default. Equivalent to \usefonttheme[options]{serif} Beamer option [mathsans/mathserif] for math font Beamer v3.0 Guide Fonts Text and Math Fonts Text and Math Fonts II Beamer option [professionalfonts] to turn off Beamer’s internal font rewriting (⇒Equivalent to \usefonttheme{professionalfonts}) Additional font theme macros \usefonttheme{structurebold} for bold faced structures (titles, headlines, footlines, sidebars, ...) \usefonttheme{structureitalicserif} \usefonttheme{structuresmallcapsserif} Font settings in this document: \documentclass[mathserif]{beamer} % sans (text) + mathserif \usepackage{lucidaso} % Lucida Bright (SO Version) \usepackage[small]{eulervm} % Euler VM Beamer v3.0 Guide Fonts Font Size Font Size Default font size: 11pt (At the full screen mode this font size corresponds to 22 pt.) Available font size options: 8pt, 9pt, 10pt, 11pt, 12pt, 14pt, 17pt, 20pt Beamer v3.0 Guide Colors Color Definition Color Definition Beamer loads xcolor package by Uwe Kern, which also supports color and pstcol. ‘xcolor’ definition \xdefinecolor{lavendar}{rgb}{0.8,0.6,1} \xdefinecolor{olive}{cmyk}{0.64,0,0.95,0.4} \colorlet{structure}{green!60!black} for color substitution Predefined colors: red, green, blue, cyan, magenta, yellow, black, darkgray, gray, lightgray, orange, violet, purple, and brown If you want to use the options of ‘color’ package, pass [color=option] option to Beamer. If you want to use ‘pstcol’ , pass [xcolor=pst,dvips] option to Beamer. Now you should use ‘dvips/ps2pdf’ Beamer v3.0 Guide Colors More colors in xcolor package More colors in ‘xcolor’ package Color mixing is very easy! color example meaning green!80!gray text 80% green + 20% gray green!60!gray text 60% green + 40% gray green!40!gray text 40% green + 60% gray -green text remove green from above You can use animate (Beamer macro) or multido (PSTricks macro) for fade-in and fade-out! Beamer v3.0 Guide Colors Highlighting Colors Highlighting Colors Beamer also has theme-specific highlighting colors: \alert{text} ⇒text \structure{text} ⇒text To change these colors: \usecolortheme[named=yellow]{structure} to change to yellow. \setbeamercolor{alerted_text}{fg=cyan}4 to change to cyan. 4’_’ means space. Beamer v3.0 Guide Colors Background Colors Background Colors To set solid background color, \beamersetaveragebackground{color} or \beamertemplatesolidbackgroundcolor{color} To set gradient background color, \beamertemplateshadingbackground{color1}{color2}. ⇒The colors in this slide is {blue!5}{yellow!10}. To set grid background, \beamertemplategridbackground[grid_space]. Beamer v3.0 Guide Colors Color Example Color Example Color changes in Navigational bars Background structure{..} color Beamer v3.0 Guide Colors Color Example Color Example Color changes in Navigational bars Background structure{..} color Code: \colorlet{mystruct}{structure} % Save current structure \colorlet{structure}{magenta} % New structure \usestructuretemplate{\color{structure}}{} % \structure{..} \beamertemplateshadingbackground{yellow!50}{magenta!50} % New background \frame{% ... }% % Back to the original "structure" and bg color schemes \colorlet{structure}{mystruct} \beamertemplateshadingbackground{blue!10}{yellow!10} Beamer v3.0 Guide Verbatim Verbatim w/o Overlays Verbatim w/o Overlays ‘\verb’ or ‘verbatim’ cannot be directly used in Beamer! If there is no overlay, use \frame[containsverbatim] \frame[containsverbatim]{\frametitle{..}% \begin{verbatim} .. verbatim contents .. \end{verbatim} }% Now in-line verbatim is possible with ‘\verb’. Color and size can be easily changed. Beamer v3.0 Guide Verbatim Inline Verbatim with Overlyas Inline Verbatim with Overlays My solution: \path{..} instead of \verb. Color: Hello, Hello Size: Hello, Hello, Hello Beamer v3.0 Guide Verbatim Inline Verbatim with Overlyas Inline Verbatim with Overlays My solution: \path{..} instead of \verb. Color: Hello, Hello Size: Hello, Hello, Hello Beamer solution: \defverb\command|contents| outside the frame. Define \defverb\myverb|Hello,World!| Then use \myverb ⇒Hello, World! Beamer v3.0 Guide Verbatim Verbatim with Overlays Verbatim with Overlays Use lstlisting environment instead of verbatim environment. Define \defverbatim[colored]\command{contents} outside frame. ‘contents’ are the listing environment. Beamer v3.0 Guide Verbatim Verbatim with Overlays Verbatim with Overlays Use lstlisting environment instead of verbatim environment. Define \defverbatim[colored]\command{contents} outside frame. ‘contents’ are the listing environment. Example: \defverbatim[colored]\testcode{% \begin{lstlisting}[frame=single,emph={ga},emphstyle=\color{olive}] .... \end{lstlisting}}% \frame{% \testcode }% Beamer v3.0 Guide Figures Figures Intro Figures Intro Standard L AT EX figure environment can be used. Beamer also loads pgf package. So PGF command, \pgfimage[]{file}, is also possible. \includegraphics, \pgfimage, and \pdfuseimage understand overlays. Figure: Tiger Beamer v3.0 Guide Figures PGF Macros PGF Macros PSTricks and PGF can be used for locating figures exactly . Grid size of slide: (LL × UR) = (0cm,-7cm) × (11cm,1cm) PGF macro for locating figures: \pgfputat{\pgfxy(0,-6.5)}{\pgfbox[left,base]{\pgfimage[width=1cm]{tiger}}} If you use the same figure several times, use \pgfdecalreimage and \pgfuseimage. Or just use \includegraphics. Beamer v3.0 Guide Figures Figures inside Columns Figures inside Columns Figures inside ‘columns’ environment need exact position. Beamer v3.0 Guide Figures Figures inside Columns Figures inside Columns Figures inside ‘columns’ environment need exact position. PGF macros (PDF, PNG, and JPEG with pdflatex) \begin{columns} \begin{column}{0.65\textwidth} A\\B \end{column} \begin{column}{0.35\textwidth} \pgfputat{\pgfxy(0,0)}{\pgfbox[left,top]{\includegraphics[width=\textwidth]{tig \end{column} \end{columns} Beamer v3.0 Guide Figures Figures inside Columns Figures inside Columns Figures inside ‘columns’ environment need exact position. PGF macros (PDF, PNG, and JPEG with pdflatex) \begin{columns} \begin{column}{0.65\textwidth} A\\B \end{column} \begin{column}{0.35\textwidth} \pgfputat{\pgfxy(0,0)}{\pgfbox[left,top]{\includegraphics[width=\textwidth]{tig \end{column} \end{columns} PSTricks macros (EPS with dvips) \begin{columns} \begin{column}{0.65\textwidth} A\\B \end{column} \begin{column}{0.35\textwidth} \rput[lt](0,0){\includegraphics[clip=true,width=\textwidth]{tiger}} \end{column} \end{columns} Beamer v3.0 Guide Figures Zooming Figures Zooming Figures Figures can be zoomed5 using \framezoom<button overlay><zoomed overlay>(x,y)(w,h). (x,y): Upper left coordinate point (w,h): Width and height for zooming Example: \frame{\frametitle{Zooming Figures -- Example} \framezoom<1><2>[border](0.5cm,0.5cm)(2cm,1.5cm) \framezoom<1><3>[border](1cm,3cm)(2cm,1.5cm) \framezoom<1><4>[border](3cm,2cm)(2cm,2cm) \pgfimage[height=6cm]{tiger} %\includegraphics[height=6cm]{tiger} is working, too! }% 5New in Version 2.2 Beamer v3.0 Guide Figures Zooming Figures – Example Zooming Figures – Example Click the border to zoom-in. Beamer v3.0 Guide Figures Zooming Figures – Example Zooming Figures – Example Beamer v3.0 Guide Figures Zooming Figures – Example Zooming Figures – Example Beamer v3.0 Guide Figures Zooming Figures – Example Zooming Figures – Example Beamer v3.0 Guide Figures Drawing Figures Drawing Figures The most powerful and easiest-to-use package, PSTricks, does not work with pdflatex due to fundamental differences in PS and PDF. 6Note that Beamer does not support dvipdfm. Beamer v3.0 Guide Figures Drawing Figures Drawing Figures The most powerful and easiest-to-use package, PSTricks, does not work with pdflatex due to fundamental differences in PS and PDF. PGF (portable graphics format) by the Beamer author. Less powerful than PSTricks, but works fine. Supports dvips, dvipdfm6, and pdflatex. 6Note that Beamer does not support dvipdfm. Beamer v3.0 Guide Figures Drawing Figures Drawing uploads/Geographie/ beamer-guide.pdf
Documents similaires










-
32
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Attribution requise- Détails
- Publié le Sep 24, 2022
- Catégorie Geography / Geogra...
- Langue French
- Taille du fichier 1.8648MB