From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: Re: ox-beamer.el tableofcontents, a suggestion Date: Wed, 2 Mar 2016 17:34:01 +0100 Message-ID: References: <87k2lluhbr.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bfd012a36779b052d1374eb Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab9jC-0005OI-T3 for emacs-orgmode@gnu.org; Wed, 02 Mar 2016 11:34:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ab9jB-0001oP-RP for emacs-orgmode@gnu.org; Wed, 02 Mar 2016 11:34:22 -0500 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:38685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab9jB-0001nx-Jl for emacs-orgmode@gnu.org; Wed, 02 Mar 2016 11:34:21 -0500 Received: by mail-wm0-x22f.google.com with SMTP id l68so85691910wml.1 for ; Wed, 02 Mar 2016 08:34:21 -0800 (PST) In-Reply-To: <87k2lluhbr.fsf@pinto.chemeng.ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Joseph Vidal-Rosset , "Liste-emacs-orgmode@gnu.org" , Eric Fraga --047d7bfd012a36779b052d1374eb Content-Type: text/plain; charset=UTF-8 Dear Eric, Many thanks for this more elegant solution that I had just tested, and it works! I add that #+OPTIONS: toc:nil is necessary to avoid a repetition of table of contents. Thanks again ! Jo. 2016-03-02 14:42 GMT+01:00 Eric S Fraga : > On Wednesday, 2 Mar 2016 at 14:29, Joseph Vidal-Rosset wrote: > > Of course it would be better to add this function as new option and to > > avoid this change of code. I do not know how to do. > > I find it reasonably straightforward to simply add the following line to > my beamer org files: > > #+latex_header: > \AtBeginSection[]{\begin{frame}\frametitle{Topic}\tableofcontents[currentsection,hideothersubsections]\end{frame}} > > so no need to play with the elisp code... > > -- > : Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.3-456-g164555 > --047d7bfd012a36779b052d1374eb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Dear Eric,

Many tha= nks for this more elegant solution that I had just tested, and it works!=C2= =A0

I add that

#+OPTIONS:=C2=A0 toc:nil

is necessary to avoid a repetition of table of contents.

Tha= nks again !

Jo.




201= 6-03-02 14:42 GMT+01:00 Eric S Fraga <e.fraga@ucl.ac.uk>:
On Wednesday,=C2=A0 2 Mar 2016 at 14:= 29, Joseph Vidal-Rosset wrote:
> Of course it would be better to add this function as new option and to=
> avoid this change of code. I do not know how to do.

I find it reasonably straightforward to simply add the following lin= e to
my beamer org files:

#+latex_header: \AtBeginSection[]{\begin{frame}<beamer>\frametitle{To= pic}\tableofcontents[currentsection,hideothersubsections]\end{frame}}

so no need to play with the elisp code...

--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.3-456-g164555=

--047d7bfd012a36779b052d1374eb--