Intermediate Latex
Total Page:16
File Type:pdf, Size:1020Kb
Table des matières Intermediate Latex Introduction to Beamer 1 Beamer Configuration Examples Jean Hare Elements in presentation More control on presentations Sorbonne Université Laboratoire Kastler Brossel [email protected] 2 Overlays Mai 2021 Jean Hare (SU) A-LaTeX Mai 2021 1 / 40 Jean Hare (SU) A-LaTeX Mai 2021 2 / 40 Beamer Beamer Sommaire Introduction to Beamer Beamer is a LaTeX document class dedicated to the creation of presentations or slideshows. It was created in 2003 by Till Tantau, the same author as for PGF/TikZ, and shares many features with 1 Beamer them. Configuration It supersedes the older classes like SliTeX, seminar, prosper , Examples powerdot, etc Elements in presentation It is mostly intended to be used with pdfLateX to produce PDF More control on presentations presentations, but also works with traditional LaTeX route Beside Portability of PDF format, the most prominent and interesting features are: 2 Overlays Handling of layers for progressive display of the same slide Ability to embed many kinds of multimedia content (with companion packages). Automatic creation of an handout (flatten version of the presentation) All (almost) the LaTeX formatting tools (namely math) Drawbacks: requires compilation, type code instead to click. Jean Hare (SU) A-LaTeX Mai 2021 3 / 40 Jean Hare (SU) A-LaTeX Mai 2021 4 / 40 Beamer Beamer Configuration The basic presentation structure Dans la section Outline slide Uses class beamer Slides defined by environment frame Introductory section 1 Beamer Sectioning commands: only section Configuration and subsection Examples Minimal code: Elements in presentation \documentclass{beamer} More control on presentations \usepackage[utf8]{inputenc} My first slide \begin{document} \begin{frame}{Outline slide} \tableofcontents 2 Overlays \end{frame} Some content \section{Introductory section} a2 = b2 + c2 \begin{frame}{My first slide} Some content\[a^2=b^2 +c^2 \] \end{frame} \end{document} Jean Hare (SU) A-LaTeX Mai 2021 5 / 40 Jean Hare (SU) A-LaTeX Mai 2021 6 / 40 Beamer Configuration Beamer Configuration Controlling appearance List of standard (outer) themes (Classified according to table of contents navigation, from beameruserguide.pdf) The page size defaults to 128mm cm×96 mm equiv.option aspectratio=43, can be changed to aspectratio=169 (see manual § 8.3); without Navig. Bars Table of Contents Sidebar The body text font is by default a sans-serif font (keep it); default, boxes Berkeley Bergen PaloAlto The general layout of these slides can be defined with a (Presentation) Boadilla Goettingen “theme”, named after a city around the world. The “theme” settings can be modified by “color theme”, “font theme”, “outer theme” and “inner theme”. Madrid Marburg AnnArbor Hannover The themes are globally classified according to the way to display the table CambridgeUS of contents on each frame: ToC on top bar, ToC on side bar, No ToC. Mini Frame Navigation EastLansing Berlin Beside general theme, “Outer themes” control the layout and formating of Pittsburgh Ilmenau the border of the frames (top, bottom and side bars) Rochester Dresden “Inner themes” sets the formating inside the frame’s content area. Tree-Like Navigation Bar Darmstadt This presentation uses: \usetheme{Berlin}, Antibes Frankfurt \useoutertheme{infolines}, \useinnertheme{rounded} JuanLesPins Singapore For handout it adds \usecolortheme{seahorse}. Montpellier Szeged Jean Hare (SU) A-LaTeX Mai 2021 7 / 40 Jean Hare (SU) A-LaTeX Mai 2021 8 / 40 Beamer Configuration Beamer Examples Gallery of styles Dans la section 1 Beamer Configuration https://deic-web.uab.cat/~iblanes/beamer_gallery Examples http://mcclinews.free.fr/latex/beamergalerie/ Elements in presentation completsgalerie.html More control on presentations https://fr.overleaf.com/gallery/tagged/presentation 2 Overlays Jean Hare (SU) A-LaTeX Mai 2021 9 / 40 Jean Hare (SU) A-LaTeX Mai 2021 10 / 40 Beamer Examples Section Introduction The very nice following section Experiment with two themes and colors set First subsection My first slide \usetheme{Berlin} 1 \usetheme{Marburg} \usefonttheme[onlymath]{serif} 2 \usefonttheme[onlymath]{serif} \usecolortheme{seahorse} 3 \usecolortheme{fly} \begin{document} 4 \begin{document} \section{Section Introduction} 5 \section{Section Introduction} \subsection{First subsection} 6 \subsection{First subsection} \begin{frame}{My first slide} 7 \begin{frame}{My first slide} Some content in theme"Berlin" 8 Some content in theme"Marburg" (color"seahorse")\\ 9 (color"fly")\\ Some content in theme ”Berlin” (color ”seahorse”) \& math reset to serif 10 \& math reset to serif & math reset to serif \end{frame} 11 \end{frame} \begin{frame}{My second slide} 12 \begin{frame}{My second slide} \alert{Some other content:} 13 \alert{Some other content:} \[a^2=b^2 +c^2 \] 14 \[a^2=b^2 +c^2 \] \end{frame} 15 \end{frame} \subsection{Second subsection} 16 \subsection{Second subsection} \begin{frame}{My third slide} 17 \begin{frame}{My third slide} Some alternate content 18 Some alternate content \end{frame} 19 \end{frame} %further content 20 %further content Jean Hare (SU) A-LaTeX Mai 2021 11 / 40 Section Introduction The very nice following section Section Introduction The very nice following section First subsection Second subsection My second slide My third slide Some other content: a2 = b2 + c2 Some alternate content Section Introduction The very nice following section Section Introduction The very nice following section Third subsection Fourth subsection My fourth slide My fifth slide Some final content (highlighted with “alert ) {} For more about themes, see : The manual § 15. (highlighted with “structure ) {} The page http://mcclinews.free.fr/latex/ Some ultimate content beamergalerie/completsgalerie.html. This page is part of a web site with a good tutoral, in French : http://mcclinews.free.fr/latex/introbeamer.php. The page http://deic.uab.es/~iblanes/beamer_gallery/ My first slide My second slide Section Section Introduction Introduction First subsection First subsection Second subsection Second subsection The very nice The very nice following section following section Third subsection Third subsection Fourth subsection Fourth subsection Some other content: Some content in theme ”Marburg” (color ”fly”) & math reset to serif a2 = b2 + c2 My third slide My fourth slide Section Section Introduction Introduction First subsection First subsection Second subsection Second subsection The very nice Some final content (highlighted with “alert ) The very nice following section {} following section Third subsection For more about themes, see : Third subsection Fourth subsection Fourth subsection I The manual § 15. (highlighted with “structure ) {} I The page http://mcclinews.free.fr/latex/ Some alternate content beamergalerie/completsgalerie.html. This page is part of a web site with a good tutoral, in French : http: //mcclinews.free.fr/latex/introbeamer.php. I The page http://deic.uab.es/~iblanes/beamer_gallery/ Beamer Elements in presentation My fifth slide Dans la section Section Introduction First subsection Second subsection The very nice following section Third subsection Fourth subsection 1 Beamer Configuration Some ultimate content Examples Elements in presentation More control on presentations 2 Overlays Jean Hare (SU) A-LaTeX Mai 2021 22 / 40 Beamer Elements in presentation A-LaTeX Metadata, Title page, Table of contents Jean Hare Section Introduction Some important elements can be added in the following way: First subsection Second subsection Metadata: The very nice following Intermediate LaTeX for beginners \title[A-LaTeX]{Intermediate LaTeX for beginners} section \subtitle[A-LaTeX]{Hannover theme} Third subsection Hannover theme \institute[SU]{Sorbonne Universit{\’e}\\ Laboratoire Kastler Brossel} Fourth subsection \date{11f{\’e}vrier 2021} \author[Jean Hare]{\href{mailto:[email protected]}{Jean Hare}} Jean Hare Titlepage (using metadata): Sorbonne Universit´e \begin{frame} Laboratoire Kastler Brossel \titlepage \end{frame} 11 f´evrier2021 Table of contents: \begin{frame}{Outline} \tableofcontents \end{frame} Jean Hare (SU) A-LaTeX Mai 2021 23 / 40 A-LaTeX A-LaTeX Jean Hare Outline Jean Hare My first slide Section Section Introduction Introduction First subsection First subsection Second subsection Second subsection The very nice The very nice following following section section Third subsection 1 Section Introduction Third subsection Fourth subsection First subsection Fourth subsection Second subsection Some content in theme ”Hannover” (defaultcolor) 2 The very nice following section Third subsection Fourth subsection Beamer Elements in presentation Beamer Elements in presentation Configuring Table of contents Structuring elements in frames 3 Block environments: Table of contents can be adapted to context with options : 1 Columns (like on this frame) currentsection, currentsubsection, firstsection=<num>, \begin{columns} This is an alertblock hideallsubsections, hideothersubsections, pausesections, etc. \begin{column}{0.5\linewidth} Really alert ! (see manual § 10.5) some content \end{column} Table of content can be repeated at each section or subsection with \begin{column}{0.5\linewidth} This is an ordinary block the code (in preamble) other content \end{column} Really ordinary ! \AtBeginSection[]{% \end{columns} \begin{frame}{Sommaire} This is an exampleblock \tableofcontents[currentsection] 2 Itemize & enumerate, like here \end{frame} Or here It is always useful... } \AtBeginSubsection[]{% Same syntax as standard produced with: \begin{frame}{Dans la section} LaTeX