Presentations with Latex. Which Package, Which Command, Which
Total Page:16
File Type:pdf, Size:1020Kb
Presentations with LATEX Herbert Voß Berlin DANTE The right of Herbert Voß to be identiVed as the author of this work has been asserted by him in accordance with the Copyright, Designs and Patents Act 1988. The programs and instructions in this book have been included for their instructional value. Neither the publisher nor the author oUers any warranties or representations in respect of their Vtness for a particular purpose, nor do they accept accept any liability for any loss or damage arising from their use. The publication is designed to provide accurate and authoritative information in regard to the subject matter covered. Neither the publisher nor the author makes any representation, express or implied, with regard to the accuracy of information contained in this book, nor do they accept any legal responsibility or liability for any errors or omissions that may be made. This work is supplied with the understanding that Lehmanns Media and its authors are supplying information, but are not attempting to render engineering or other professional services. If such services are required, the assistance of an appropriate professional should be sought. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trade-marks. Lehmanns Media acknowledges trademarks as the property of their respective owners. Adobe, Adobe Acrobat, Adobe Acrobat Reader, Portable Document Format, PostScript are trade- marks of Adobe Systems Inc. Microsoft and Windows are trademarks of Microsoft Corporation. UNIX is a registered trademark of Open Group. TEX is a registered trademark of the American Mathematical Society. © 2012 Herbert Voß, Berlin First Edition ISBN 978-3-86541-496-0 Cover: Herbert Voß Typesetting: LATEX (Libertine, Lucida-Math and Bera Mono) Publisher: Lehmanns Media, Berlin, Germany (www.lehmanns.de) Printing: AZ Druck und Datentechnik, Berlin Contents 1 Introduction 3 1.1 Some history. .........................................3 1.2 Typography and layout...................................9 1.3 Text placement and colours................................ 10 2 powerdot 15 2.1 Document structure..................................... 16 2.2 Parameters........................................... 20 2.3 Slides............................................... 23 2.4 Overlays............................................. 25 2.5 Navigation............................................ 31 2.6 Two-column mode...................................... 32 2.7 Verbatim mode......................................... 34 2.8 Videos and animations................................... 36 2.9 Available space......................................... 37 2.10 Style Vle............................................. 38 2.11 Background picture...................................... 43 2.12 Bibliography.......................................... 44 2.13 Notes............................................... 46 2.14 Default layouts for powerdot ............................... 47 3 Creating custom layouts with powerdot 53 3.1 DeVnition of a custom document class......................... 53 3.2 DeVnition of a custom style Vle.............................. 57 3.3 Custom navigation and square logo........................... 59 3.4 Further examples....................................... 62 4 beamer 65 4.1 Document structure..................................... 66 4.2 The structure of a presentation.............................. 71 4.3 Setting parameters...................................... 73 4.4 The title page.......................................... 76 4.5 Multiple use of slides..................................... 77 Contents 4.6 Overlays............................................. 78 4.7 Environments from standard LATEX............................ 88 4.8 Navigation elements..................................... 90 4.9 Animations, sound and Vlms............................... 91 4.10 Slide transitions........................................ 93 4.11 Text boxes............................................ 95 4.12 Inserting a logo........................................ 98 4.13 Navigation structure..................................... 100 4.14 Multi-column mode..................................... 103 4.15 Hyperlinks............................................ 104 4.16 Lists................................................ 107 4.17 Text styles............................................ 109 4.18 Verbatim mode......................................... 110 4.19 Including Vgures........................................ 112 4.20 Templates – the heart of beamer ............................. 114 4.21 Commands to insert material............................... 124 4.22 Notes............................................... 125 4.23 Bibliography.......................................... 130 4.24 Using two screens....................................... 132 4.25 Output mode.......................................... 134 4.26 Tips and tricks......................................... 136 4.27 Default layouts for beamer ................................. 139 5 Creating custom layouts with beamer 157 5.1 DeVning a custom document class............................ 158 5.2 DeVnition of a custom theme............................... 162 5.3 Additional examples..................................... 165 6 Colours 169 6.1 Colour deVnition....................................... 171 6.2 Colour speciVcation..................................... 174 6.3 Use of predeVned colours – named colours...................... 175 6.4 The background colour and colours in boxes..................... 179 6.5 Determining colour values................................. 180 7 Questions and answers 181 7.1 beamer .............................................. 181 7.2 powerdot............................................. 182 7.3 LATEX – General......................................... 182 7.4 Output format......................................... 184 7.5 PSTricks............................................. 188 Bibliography 191 Index of commands and concepts 193 People 206 vi buch-titelseiten.tex: (#16) herbert Preface “Brilliant presentations with LATEX” was the title of an article by Till Tantau in “Die TEXnische Komödie” [18]. In it, he demonstrated that it is possible to use LATEX to create presentations of equal quality to normal documents. Document classes and special packages to help you create overhead slides for presentations were already available for LATEX2.09. In particular, foils was a popular document class during the era of overhead projectors. The seminar class allowed the use of colour: the eUects were sometimes very “gaudy” though, and fell short of the expectations of contemporary presentation design (http://www.tug.org/applications/Seminar/sem-dem0.pdf). A new development is the beamer class, a very complex document class that leaves virtually nothing to be desired. Each time a new document class appears, the user must once more navigate through the labyrinth of environments, commands, lengths and templates that it now oUers. The powerdot class continues on the rather more practical path of seminar and prosper, and provides eXcient creation of presentations with layout requirements that are not too diXcult . If your requirements are more complex however, for example for a PhD viva, it is worth having a look at the many possibilities oUered by beamer. This publication aims to contribute to a better understanding of the diUerent ap- proaches of powerdot and beamer and enable you to create your own templates. This is becoming increasingly vital as many companies and scientiVc institutions attach importance to their corporate design. This book uses the Free University of Berlin as an example for both classes to develop presentation templates for the corporate design used there. In the description of commands and environments, optional parameters are typeset with a grey background . Unlike the common practice in LATEX, optional parameters don’t necessarily have to be speciVed in square brackets; whether each parameter is mandatory or optional is merely a question of how it was deVned in the deVnition of the command. The presentation classes use this frequently. You can Vnd all examples from this book as runnable TEX documents on the CTAN server at http://mirror.ctan.org/info/examples/Presentations_en/. Thanks go to Uwe Siart for permission to use his introduction to powerdot, to Rolf Niepraschk for his help with TEXnical questions, to Christoph Kaeder for his commitment Contents to creating a publication-quality document and especially to Monika Hattenbach for diligent proofreading. And last but not least again a big thanks to Lars KotthoU for helping to translate the German version and also to Catherine Jagger for proofreading the English version. The remaining errors are my responsibility alone. Berlin, May 2012 Herbert Voß 2 ch0-vorwort-en.tex: (#16) herbert C h a p t e r 1 Introduction 1.1 Some history. .........................................3 1.2 Typography and layout...................................9 1.3 Text placement and colours................................ 10 PowerPoint is frequently used as a synonym for presentations, although you can also use other systems to create Vles for presentations. Examples include Impress, as part of OpenOXce (LibreOXce), or LATEX. If you want the quality of your presentation Vles to be as high as that of normal documents, it’s a good idea to use LATEX. There are several document classes designed especially for creating presentations,