tty.cl
Table of Contents
1 Overview
The LaTeX class beamer allows production of high quality presentations using LaTeX and pdf processing. Org-mode has special support for turning an Org-mode file or tree into a beamer presentation.
2 Example
Here it is an example of how a presentation file should look like
#+TITLE: Org Mode and Beamer
#+AUTHOR: Felipe Reyes
#+EMAIL: freyes@tty.cl
#+DATE: 2011-08-25 Tue
#+DESCRIPTION:
#+KEYWORDS: org-mode, beamer, tutorial
#+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:nil mouse:underline buttons:0 path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:
#+LaTeX_CLASS: beamer
#+BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default}
#+MACRO: BEAMERMODE presentation
#+MACRO: BEAMERINSTITUTE tty.cl
#+BEAMER_FRAME_LEVEL: 2
#+STARTUP: beamer
* Org Mode and Beamer
** Overview
- This is a bullet list
- nested items
- more items
- Resume the top level list
** Numbered List
1) one
2) two
3) three
** Source Code Example
Let's review it by section
- First you just need to set the basic information about your presentation (title, author, email, date, description and keywords)
- Then you indicate if you want some extra options in each slide
- BEAMERHEADEREXTRA: include raw LaTeX statements, this is used to define the beamer's theme, in this case we are using the theme Madrid with the default color theme.
- BEAMERMODE: set the presentation mode in beamer
- BEAMERINSTITUTE: let you define your college, business, etc.
- At the end we just write our slides, each level 2 section is a slide.
You can open the file org-mode.beamer.presentation in emacs and use the shortcut 'C-c C-e p' to generate a pdf of the presentation. The produced pdf can be downloaded here
3 Setup
Execute the following command in Debian or Ubuntu
sudo apt-get install texlive-extra-utils texlive-binaries latex-beamer texlive-latex-extra
Add the following to your .emacs file:
;; beamer ;; #+LaTeX_CLASS: beamer in org files (unless (boundp 'org-export-latex-classes) (setq org-export-latex-classes nil)) (add-to-list 'org-export-latex-classes ;; beamer class, for presentations '("beamer" "\\documentclass[11pt]{beamer}\n \\mode<{{{beamermode}}}>\n \\beamertemplateballitem\n \\setbeameroption{show notes} \\usepackage[utf8]{inputenc}\n \\usepackage[T1]{fontenc}\n \\usepackage{hyperref}\n \\usepackage{color} \\usepackage{listings} \\lstset{numbers=none,language=[ISO]C++,tabsize=4, frame=single, basicstyle=\\small, showspaces=false,showstringspaces=false, showtabs=false, keywordstyle=\\color{blue}\\bfseries, commentstyle=\\color{red}, }\n \\usepackage{verbatim}\n \\institute{{{{beamerinstitute}}}}\n \\subject{{{{beamersubject}}}}\n" ("\\section{%s}" . "\\section*{%s}") ("\\begin{frame}[fragile]\\frametitle{%s}" "\\end{frame}" "\\begin{frame}[fragile]\\frametitle{%s}" "\\end{frame}"))) ;; letter class, for formal letters (add-to-list 'org-export-latex-classes '("letter" "\\documentclass[11pt]{letter}\n \\usepackage[utf8]{inputenc}\n \\usepackage[T1]{fontenc}\n \\usepackage{color}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
4 Links
Generated by Org version 7.5 with Emacs version 23 on 2011-08-26 02:13:21 UTC
Copyright © 2011 tty team
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled “GNU Free Documentation License”.