From 540bcddb50b746f4f2de910a199e4d13e8ddad11 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sun, 14 Apr 2013 09:16:24 -0600 Subject: [PATCH 1/2] ensure a "beamer" entry exists in org-latex-classes This ensures that whenever ox-beamer is required it is possible to export to beamer. Otherwise it is required to find the org-latex-classes variable and add a beamer entry, something which is not mentioned in the beamer page of the manual and will be confusing to users just getting going with Beamer export. * lisp/ox-beamer.el (assoc): Ensure a "beamer" entry exists in org-latex-classes. --- lisp/ox-beamer.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lisp/ox-beamer.el b/lisp/ox-beamer.el index 63dad5c..87458f0 100644 --- a/lisp/ox-beamer.el +++ b/lisp/ox-beamer.el @@ -126,6 +126,15 @@ :group 'org-export :version "24.2") +(unless (assoc "beamer" org-latex-classes) + (add-to-list 'org-latex-classes + '("article" "\\documentclass[bigger]{beamer}" + ("\\section{%s}" . "\\section*{%s}") + ("\\subsection{%s}" . "\\subsection*{%s}") + ("\\subsubsection{%s}" . "\\subsubsection*{%s}") + ("\\paragraph{%s}" . "\\paragraph*{%s}") + ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))) + (defcustom org-beamer-frame-level 1 "The level at which headlines become frames. -- 1.8.2.1