[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [new exporter] #+TOC in beamer export
From: |
Andreas Leha |
Subject: |
[O] [new exporter] #+TOC in beamer export |
Date: |
Tue, 05 Mar 2013 14:11:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Hi all,
from a recent thread I learned about #+TOC (there's always something new
to learn about org mode).
I'd like to use it in a beamer document. Here I find it hard to use
because it introduces its own frame.
My question basically is: How is this supposed to be used in a beamer
doc?
(And would it not be easier if it did not introduce its own frame?)
Here is a sample file to test (provided that you have a latex-class
"beamer" defined in org-mode)
#+begin_src org
#+TITLE: Something
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col)
%8BEAMER_opt(Opt)
#+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
#+OPTIONS: toc:nil H:2
* Intro
** Motivation
** Challanges
#+TOC: headlines 2
* Main Part
** One
** Two
#+end_src
This produces for me:
,----
| [...]
|
| \section[Intro]{Intro}
| \label{sec-1}
| \begin{frame}[label=sec-1-1]{Motivation}
| \end{frame}
| \begin{frame}[label=sec-1-2]{Challanges}
| \begin{frame}\setcounter{tocdepth}{2}
| \tableofcontents
| \end{frame}
| \end{frame}
| \section[Main Part]{Main Part}
| \label{sec-2}
| \begin{frame}[label=sec-2-1]{One}
| \end{frame}
| \begin{frame}[label=sec-2-2]{Two}
| \end{frame}
|
| [...]
`----
I'd prefer to create the frame myself, so that I see the structure of
the presentation, but that does not work either for me:
#+begin_src org
#+TITLE: Something
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col)
%8BEAMER_opt(Opt)
#+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
#+OPTIONS: toc:nil H:2
* Intro
** Motivation
** Challanges
* TOC :B_frame:
:PROPERTIES:
:BEAMER_env: frame
:END:
#+TOC: headlines 2
* Main Part
** One
** Two
#end_src
Regards,
Andreas