From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Andreas Leha <andreas.leha@med.uni-goettingen.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: new exporter: exporting subtree as beamer
Date: Sun, 23 Sep 2012 21:49:18 +0200 [thread overview]
Message-ID: <873928bjup.fsf@gmail.com> (raw)
In-Reply-To: <878vc0a5h8.fsf@med.uni-goettingen.de> (Andreas Leha's message of "Sun, 23 Sep 2012 21:45:07 +0200")
Andreas Leha <andreas.leha@med.uni-goettingen.de> 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,
next prev parent reply other threads:[~2012-09-23 19:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-23 19:12 new exporter: exporting subtree as beamer Andreas Leha
2012-09-23 19:32 ` Nicolas Goaziou
2012-09-23 19:45 ` Andreas Leha
2012-09-23 19:49 ` Nicolas Goaziou [this message]
2012-09-23 20:00 ` Andreas Leha
2012-09-23 20:33 ` Andreas Leha
2012-09-24 21:25 ` Nicolas Goaziou
2012-09-25 8:21 ` Andreas Leha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873928bjup.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=andreas.leha@med.uni-goettingen.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).