From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: New beamer support
Date: Wed, 06 Jan 2010 14:03:36 +0100 [thread overview]
Message-ID: <87hbqzo05z.fsf@mundaneum.com> (raw)
In-Reply-To: 87eim3zckf.wl%ucecesf@ucl.ac.uk
Hi Eric, Christian, Carsten and all,
Eric S Fraga wrote:
> At Wed, 06 Jan 2010 10:46:45 +0100, Sébastien Vauban wrote:
>>
>> The few things I'm tackling right now are:
>>
>> - How to get a TOC with a frame title, without having to add it explicitly?
>
> I think you need to add it explicitly with \tableofcontents? In beamer, I
> simply typically have
>
> \begin{frame}<beamer>
> \frametitle{Table of contents}
> \tableofcontents
> \end{frame}
I guess I wasn't clear...
If I use the option `toc' for the export:
--8<---------------cut here---------------start------------->8---
#+OPTIONS: toc:t
--8<---------------cut here---------------end--------------->8---
then I get a slide with the table of contents. Automatically. The only
"criticism" I did is that there was no title to the generated frame.
Hence, the workaround was setting the `toc' option to `nil' and adding such a
code by myself:
--8<---------------cut here---------------start------------->8---
#+BEAMER: \frame{\frametitle{Outline}\tableofcontents}
--8<---------------cut here---------------end--------------->8---
But better (IMHO) would be that such a code gets inserted automatically (with
a frame title set, for example, to `Outline') when the `toc' export option is
set to `t', and when we're in a beamer class.
Is it better expressed?
>> - How to get the TOC repeated when changing of section, with the new item
>> highlighted? See my manual essay ;-)
>
> Again, beamer supports this easily so I would suggest simply adding some
> direct latex code at the start of your org file. The latex code I use is:
>
> \AtBeginSection[]
> {
> \begin{frame}
> \frametitle{Topic}
> \tableofcontents[currentsection]
> \end{frame}
> }
>
> You could simply put this in one line with #+latex_header: as in (untested):
>
> #+latex_header: \AtBeginSection[]{ \begin{frame} \frametitle{Topic} \tableofcontents[currentsection] \end{frame}}
Better is:
--8<---------------cut here---------------start------------->8---
#+BEGIN_BEAMER
\AtBeginSection[] % Do nothing for \section*
{
\begin{frame}<beamer>
\frametitle{Outline}
\tableofcontents[currentsection]
\end{frame}
}
#+END_BEAMER
--8<---------------cut here---------------end--------------->8---
Thanks Eric and Christian for your input on this!
Best regards,
Seb
--
Sébastien Vauban
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-01-06 13:03 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-06 9:46 New beamer support Sébastien Vauban
2010-01-06 10:06 ` Carsten Dominik
2010-01-06 10:59 ` Sébastien Vauban
2010-01-06 12:36 ` Carsten Dominik
2010-01-06 13:35 ` Sébastien Vauban
2010-01-06 14:23 ` Carsten Dominik
2010-01-06 14:31 ` Carsten Dominik
2010-01-06 15:35 ` Sébastien Vauban
2010-01-06 17:32 ` Carsten Dominik
2010-01-06 15:47 ` Sébastien Vauban
2010-01-06 17:34 ` Carsten Dominik
2010-01-07 9:38 ` Sébastien Vauban
2010-01-07 10:35 ` Carsten Dominik
2010-01-07 10:56 ` Sébastien Vauban
2010-01-06 11:13 ` Christian Lasarczyk
2010-01-06 11:57 ` Carsten Dominik
2010-01-06 13:06 ` Sébastien Vauban
2010-01-06 11:40 ` Eric S Fraga
2010-01-06 13:03 ` Sébastien Vauban [this message]
2010-01-06 13:25 ` Carsten Dominik
2010-01-06 16:22 ` Sébastien Vauban
2010-01-06 17:33 ` Carsten Dominik
2010-01-07 8:41 ` Sébastien Vauban
2010-01-07 14:39 ` Darlan Cavalcante Moreira
2010-01-07 15:43 ` Carsten Dominik
2010-01-07 16:16 ` Sébastien Vauban
2010-01-07 18:03 ` Darlan Cavalcante Moreira
2010-01-07 18:18 ` Carsten Dominik
2010-01-07 19:24 ` Sébastien Vauban
2010-01-07 16:48 ` Carsten Dominik
2010-01-07 8:54 ` Sébastien Vauban
2010-01-07 9:26 ` Carsten Dominik
2010-01-07 9:47 ` Sébastien Vauban
2010-01-07 10:00 ` Carsten Dominik
2010-01-07 10:21 ` Sébastien Vauban
2010-01-07 10:33 ` Carsten Dominik
2010-01-07 11:23 ` Sébastien Vauban
2010-01-07 11:30 ` [beamer] Order in preamble Sébastien Vauban
2010-01-07 13:15 ` Carsten Dominik
2010-01-07 15:54 ` Sébastien Vauban
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=87hbqzo05z.fsf@mundaneum.com \
--to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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).