emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas Leha <andreas.leha@med.uni-goettingen.de>
To: emacs-orgmode@gnu.org
Subject: [new exporter] #+TOC in beamer export
Date: Tue, 05 Mar 2013 14:11:24 +0100	[thread overview]
Message-ID: <87hakq2dqb.fsf@med.uni-goettingen.de> (raw)

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

             reply	other threads:[~2013-03-05 13:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-05 13:11 Andreas Leha [this message]
2013-03-05 21:48 ` [new exporter] #+TOC in beamer export Nicolas Goaziou
2013-03-05 21:53   ` Andreas Leha
2013-03-05 22:35     ` Suvayu Ali
2013-03-05 23:52       ` Nicolas Goaziou
2013-03-06 12:09         ` Suvayu Ali
2013-03-06 18:21           ` Robert Eckl
2013-03-06 20:20         ` Andreas Leha
2013-03-06 22:40           ` Nicolas Goaziou
2013-03-06 23:30             ` Andreas Leha
2013-03-06 12:42     ` Nicolas Goaziou

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=87hakq2dqb.fsf@med.uni-goettingen.de \
    --to=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).