emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] new exporter: exporting subtree as beamer


From: Nicolas Goaziou
Subject: Re: [O] new exporter: exporting subtree as beamer
Date: Sun, 23 Sep 2012 21:49:18 +0200

Andreas Leha <address@hidden> writes:

> I was expecting a compilable Beamer document.  Especially, I am missing
> a document class in the exported TeX:
>
> ----[ TeX export ]
>  % Created 2012-09-23 So 21:07
>  \usetheme{default}
>  \author{Andreas Leha}
>  \date{\today}
>  \title{Test Beamer}
>  \hypersetup{
>    pdfkeywords={},
>    pdfsubject={},
>    pdfcreator={Generated by Org mode 7.9.1 in Emacs 24.2.50.1.}}
>  \begin{document}
>  
>  \maketitle
>  \begin{frame}{Outline}
>  \tableofcontents
>  \end{frame}
>  
>  
>  \begin{frame}[label=sec-1]{First Slide}
>  \begin{itemize}
>  \item first bullet
>  \end{itemize}
>  \end{frame}
>  % Generated by Org mode 7.9.1 in Emacs 24.2.50.1.
>  \end{document}
> ----

You need a "beamer" entry in `org-e-latex-classes' (note: "beamer" name
isnt't mandatory, but it has to match the LaTeX class requested).

I use the following:

#+begin_src emacs-lisp
(add-to-list 'org-e-latex-classes
             '("beamer"
               "\\documentclass[presentation]{beamer}
\[DEFAULT-PACKAGES]
\[PACKAGES]
\[EXTRA]"
               ("\\section{%s}" . "\\section*{%s}")
               ("\\subsection{%s}" . "\\subsection*{%s}")
               ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
#+end_src


Regards,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]