how to make a presentation with l a t ex
play

How to make a presentation with L A T EX? Introduction to L A T - PowerPoint PPT Presentation

Introduction to Beamer Hafida Benhidour How to make a presentation with L A T EX? Introduction to L A T EX Introduction to Beamer Introduction to Beamer Hafida Benhidour Department of computer science King Saud University November


  1. Introduction to Beamer Hafida Benhidour How to make a presentation with L A T EX? Introduction to L A T EX Introduction to Beamer Introduction to Beamer Hafida Benhidour Department of computer science King Saud University November 23, 2015 1 / 49

  2. Contents Introduction to Beamer Hafida Benhidour Introduction to L A T EX 1 Introduction to L A T EX Introduction to Beamer 2 Introduction to Beamer 2 / 49

  3. A T Introduction to L EX Introduction to Beamer Hafida Benhidour L A T EX( pronounced / ✧ l ❆✿ t ❊ x/, / ✧ l ❆✿ t ❊ k/, / ✧ le ■ t ❊ x/, or / ✧ le ■ t ❊ k/) (Wikipedia) is a computer program for Introduction to L A T EX typesetting text and mathematical formulas. Introduction Uses commands to create mathematical symbols. to Beamer Not a WYSIWYG program. It is a WYWIWYG (what you want is what you get) program! The document is written as a source file using a markup language. The final document is obtained by compiling the source file. 3 / 49

  4. A T Advantages of Using L EX Introduction to Beamer Hafida Benhidour Professional typesetting: Best output. Introduction to L A T EX It is the standard for scientific documents. Introduction to Beamer Processing mathematical (& other) symbols. Meaning based structuring (rather than appearance). Knowledgeable and helpful user group. Its FREE! Platform independent. 4 / 49

  5. A T Installing L EX Introduction to Beamer Hafida Linux: Benhidour 1 Install TeXLive from your package manager. Introduction 2 Install a L A T EXeditor of your choice: TeXstudio, TexMaker, to L A T EX etc. Introduction to Beamer Windows: 1 Install MikTeX from http://miktex.org (this is the L A T EXcompiler). 2 Install a L A T EXeditor of your choice: TeXstudio, TeXnicCenter, etc. Mac OS: 1 Install MacTeX (this is the L A T EXcompiler for Mac). 2 Install a L A T EXeditor of your choice. 5 / 49

  6. A T Structure of a L EXDocument Introduction to Beamer Hafida Benhidour Introduction All latex documents have the following structure: to L A T EX Introduction \ documentclass [ . . . ] { . . . } to Beamer \ usepackage { . . . } \ begin { document } . . . \ end { document } 6 / 49

  7. A T L EXCommands Introduction to Beamer Hafida Benhidour Always begin with a backslash \ : \ documentclass, Introduction \ usepackage. to L A T EX Case sensitive. Introduction to Beamer Consist of letters only. Some have parameters. Square brackets [ ] after the command name are for optional parameters. Curly braces { } after the command name are for required parameters 7 / 49

  8. The Command: \ documentclass Introduction a r t i c l e to Beamer r e p o r t Hafida \ documentclass [ o p t i o n s ] { beamer } Benhidour book Introduction l e t t e r to L A T EX . . . Introduction to Beamer First line of all L A T EXdocuments. Specifies the type of the document: article: Research paper. report: Multi-chapter document. book: For books. letter: For letters. [options] can be used to set font size (10, 11, or 12 pt), set paper size, use one or two columns, etc. Most science publishers (Springer, Elsevier, IEEE, ACM etc.) have their own document classes. These are predefined classes. 8 / 49

  9. Packages Introduction to Beamer Hafida Benhidour \ usepackage { package } Introduction to L A T EX Introduction Packages add new features and commands to LaTeX. to Beamer Common packages: amsmath, amssymb: for math symbols. graphicx: for including graphics and images. Can also define new commands in the preamble, specify page numbering, etc. 9 / 49

  10. Input the Text Introduction to Beamer Hafida Benhidour The body of the text is written after the \ begin { document } command: Introduction to L A T EX \ begin { document } Introduction to Beamer Enter the document content here \ end { document } Remark \ begin { ... } commands always need to be followed (eventually) by \ end { ... } commands. 10 / 49

  11. A T A Simple L EXDocument Introduction to Beamer Hafida Benhidour The following is a very basic Introduction L A T EXdocument: to L A T EX This is some sample text. Introduction \ documentclass { a r t i c l e } to Beamer \ usepackage { graphicx } \ begin { document } This i s some sample t e x t . \ end { document } This gives the following output: 1 11 / 49

  12. Sections of a Paper First thing: you have to indicate the title and the author(s) of Introduction to Beamer the paper: Hafida Benhidour \ t i t l e { t i t l e } \ author { authors } Introduction to L A T EX \ date { date } \ m a k e t i t l e Introduction to Beamer Remark Without \ maketitle, the title and authors do not appear in the output. Example \ t i t l e { The Theory of R e l a t i v i t y } \ author { A l b e r t E i n s t e i n } \ date { 01/01/1926 } \ m a k e t i t l e 12 / 49

  13. Sections of a Paper Introduction \ thanks { . . . } to Beamer \ begin { a b s t r a c t } . . . . \ end { a b s t r a c t } Hafida \ begin { keywords } . . . \ end { keywords } Benhidour Introduction \ thanks creates a footnote with whatever is in the braces. to L A T EX Usually used after authors’ names for academic information Introduction to Beamer Example \ thanks { I want to thank the U n i v e r s i t y of Princeton f o r s u p p o r t i n g t h i s work . } \ begin { a b s t r a c t } In t h i s paper , I i n t r o d u c e a new theory to e x p l a i n how time and space are r e l a t e d . \ end { a b s t r a c t } \ begin { keywords } R e l a t i v i t y ; space ; time \ end { keywords } 13 / 49

  14. A T A Simple L EXDocument The following is a sampleL A T EXdocument: Introduction to Beamer \ documentclass { a r t i c l e } Hafida Benhidour \ usepackage { graphics , amsmath , amssymb } \ begin { document } Introduction \ t i t l e { The Theory of R e l a t i v i t y } to L A T EX \ author { A l b e r t E i n s t i e n } Introduction to Beamer \ date { 01/01/1926 } \ m a k e t i t l e \ begin { a b s t r a c t } In t h i s paper , I i n t r o d u c e a new theory to e x p l a i n . . . \ end { a b s t r a c t } \ s e c t i o n { I n t r o d u c t i o n } What i s time and space ? . . . \ s e c t i o n { The Theory } Time and space are l i n k e d . . . \ s u b s e c t i o n { Proof } This the proof to my theory \ end { document } 14 / 49

  15. Sections Introduction to Beamer The document should be divided into sections, subsections, etc. Hafida Important commands: Benhidour Introduction \ s e c t i o n { T i t l e of f i r s t s e c t i o n } to L A T EX . . . Introduction \ s u b s e c t i o n { . . . } to Beamer . . . \ s e c t i o n { T i t l e of second s e c t i o n } . . . \ s u b s e c t i o n { . . . } . . . \ s u b s u b s e c t i o n { . . . } . . . L A T EXformates the section titles and numbers them according to the document class being used. 15 / 49

  16. A T A Simple L EXDocument This gives the following output: Introduction to Beamer Hafida Benhidour Introduction to L A T EX The Theory of Relativity Introduction Albert Einstien to Beamer 01/01/1926 Abstract In this paper, I introduce a new theory to explain how time and space are related. 1 Introduction What is time and space?... 2 The Theory Time and space are linked... 2.1 Proof This the proof to my theory 1 16 / 49

  17. Cross-referencing Cross references can be made using the commands \ label and Introduction to Beamer \ ref. Hafida Benhidour Example Introduction to L A T EX \ s e c t i o n { I n t r o d u c t i o n } Introduction \ l a b e l { sec : i n t r o } to Beamer This i s the i n t r o d u c t i o n . . . \ s e c t i o n { Conclusion } As mentioned i n Section \ r e f { sec : i n t r o } , we have . . . L A T EXupdates the references automatically. It is possible to use any identifier as a label. It is custom to use the prefixes: sec:xxx for section labels, fig:xxx for figure labels, chap:xxx for chapter labels, tab:xxx for table labels, eq:xxx for equation labels. 17 / 49

  18. Inserting Tables To include tables, you must use the following commands. Introduction to Beamer Example Hafida Benhidour Table \ r e f { t a b l e example } Introduction to L A T EX shows a t a b l e . Introduction \ begin { t a b l e } Table 1 shows a table. to Beamer \ caption { An Example of a Table } \ l a b e l { t a b l e example } Table : An Example of a \ c e n t e r i n g Table \ begin { t a b u l a r }{| c | c |} Student Grade \ h l i n e Student & Grade \\ 12 13 \ h l i n e 12 & 13 \\ \ h l i n e \ end { t a b u l a r } \ end { t a b l e } 18 / 49

  19. Inserting Images To include images, you must use a graphics package. The most Introduction to Beamer common is graphicx . Hafida Benhidour Example Introduction Figure 1 shows the to L A T EX painting. Introduction Figure \ r e f { f i g : monalisa } to Beamer shows the p a i n t i n g . \ begin { f i g u r e } \ c e n t e r i n g % To c e n t e r the image \ i n c l u d e g r a p h i c s [ width =2.5cm] { monalisa . jpg } % Path and f i l e name \ caption { The Monalisa } \ l a b e l { f i g : monalisa } \ end { f i g u r e } Figure : The Monalisa 19 / 49

Recommend


More recommend