emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [new exporter] #+TOC in beamer export
@ 2013-03-05 13:11 Andreas Leha
  2013-03-05 21:48 ` Nicolas Goaziou
  0 siblings, 1 reply; 11+ messages in thread
From: Andreas Leha @ 2013-03-05 13:11 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [new exporter] #+TOC in beamer export
  2013-03-05 13:11 [new exporter] #+TOC in beamer export Andreas Leha
@ 2013-03-05 21:48 ` Nicolas Goaziou
  2013-03-05 21:53   ` Andreas Leha
  0 siblings, 1 reply; 11+ messages in thread
From: Nicolas Goaziou @ 2013-03-05 21:48 UTC (permalink / raw)
  To: Andreas Leha; +Cc: emacs-orgmode

Hello,

Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:

> 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?)

It seems useful to keep frame around TOC generated from toc:t option.
But we could remove it from TOC generated from #+TOC keywords.

Is that what you have in mind?


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [new exporter] #+TOC in beamer export
  2013-03-05 21:48 ` Nicolas Goaziou
@ 2013-03-05 21:53   ` Andreas Leha
  2013-03-05 22:35     ` Suvayu Ali
  2013-03-06 12:42     ` Nicolas Goaziou
  0 siblings, 2 replies; 11+ messages in thread
From: Andreas Leha @ 2013-03-05 21:53 UTC (permalink / raw)
  To: emacs-orgmode

Hi Nicolas,

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Hello,
>
> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>
>> 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?)
>
> It seems useful to keep frame around TOC generated from toc:t option.
> But we could remove it from TOC generated from #+TOC keywords.
>

Thanks for taking this further.  Indeed, for the toc:t triggered TOC the
frame is absolutely useful.

So, I like your suggestion very much.

Best,
Andreas

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [new exporter] #+TOC in beamer export
  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:42     ` Nicolas Goaziou
  1 sibling, 1 reply; 11+ messages in thread
From: Suvayu Ali @ 2013-03-05 22:35 UTC (permalink / raw)
  To: emacs-orgmode

On Tue, Mar 05, 2013 at 10:53:42PM +0100, Andreas Leha wrote:
> Nicolas Goaziou <n.goaziou@gmail.com> writes:
> > Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
> >
> >> 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?)
> >
> > It seems useful to keep frame around TOC generated from toc:t option.
> > But we could remove it from TOC generated from #+TOC keywords.
> >
> 
> Thanks for taking this further.  Indeed, for the toc:t triggered TOC the
> frame is absolutely useful.

I'm not sure what a \tableofcontents outside a frame would look like.
Can someone show an example?

I also had another thought; sometimes for long presentations, I use
something like this:

  \AtBeginSubsection[]{
    \ifthenelse{
      \(\value{section}=1\)\AND\(\value{subsection}=1\)
    }{}
    {
      \begin{frame}<beamer>
        \frametitle{Outline}
        \tableofcontents[currentsubsection]
      \end{frame}
    }
  }

At the moment I put it in as one long LaTeX_HEADER line.  But would it
be possible to leverage #+TOC: into having a similar effect?  It might
then provide a greater degree of control where you want the toc frame to
appear.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [new exporter] #+TOC in beamer export
  2013-03-05 22:35     ` Suvayu Ali
@ 2013-03-05 23:52       ` Nicolas Goaziou
  2013-03-06 12:09         ` Suvayu Ali
  2013-03-06 20:20         ` Andreas Leha
  0 siblings, 2 replies; 11+ messages in thread
From: Nicolas Goaziou @ 2013-03-05 23:52 UTC (permalink / raw)
  To: Suvayu Ali; +Cc: emacs-orgmode

Hello,

Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:

> On Tue, Mar 05, 2013 at 10:53:42PM +0100, Andreas Leha wrote:
>> Nicolas Goaziou <n.goaziou@gmail.com> writes:
>> > Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>> >
>> >> 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?)
>> >
>> > It seems useful to keep frame around TOC generated from toc:t option.
>> > But we could remove it from TOC generated from #+TOC keywords.
>> >
>> 
>> Thanks for taking this further.  Indeed, for the toc:t triggered TOC the
>> frame is absolutely useful.
>
> I'm not sure what a \tableofcontents outside a frame would look like.
> Can someone show an example?

I think that the idea behind a frameless TOC is that you provide your
own frame for it.

It makes sense since #+TOC: allows to control accurately the location of
your table of contents.

> I also had another thought; sometimes for long presentations, I use
> something like this:
>
>   \AtBeginSubsection[]{
>     \ifthenelse{
>       \(\value{section}=1\)\AND\(\value{subsection}=1\)
>     }{}
>     {
>       \begin{frame}<beamer>
>         \frametitle{Outline}
>         \tableofcontents[currentsubsection]
>       \end{frame}
>     }
>   }
>
> At the moment I put it in as one long LaTeX_HEADER line.  But would it
> be possible to leverage #+TOC: into having a similar effect?  It might
> then provide a greater degree of control where you want the toc frame to
> appear.

I think this kind of control should really belong to specific latex
code.

A TOC limited to current section sure sounds seducing, but I'm not sure
how to achieve this in LaTeX.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [new exporter] #+TOC in beamer export
  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
  1 sibling, 1 reply; 11+ messages in thread
From: Suvayu Ali @ 2013-03-06 12:09 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

On Wed, Mar 06, 2013 at 12:52:24AM +0100, Nicolas Goaziou wrote:
> Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
> 
> > I'm not sure what a \tableofcontents outside a frame would look like.
> > Can someone show an example?
> 
> I think that the idea behind a frameless TOC is that you provide your
> own frame for it.
> 
> It makes sense since #+TOC: allows to control accurately the location of
> your table of contents.

That makes a lot of sense.  :)

> > I also had another thought; sometimes for long presentations, I use
> > something like this:
> >
> >   \AtBeginSubsection[]{

[...]

> >   }
> >
> > At the moment I put it in as one long LaTeX_HEADER line.  But would it
> > be possible to leverage #+TOC: into having a similar effect?  It might
> > then provide a greater degree of control where you want the toc frame to
> > appear.
> 
> I think this kind of control should really belong to specific latex
> code.
> 
> A TOC limited to current section sure sounds seducing, but I'm not sure
> how to achieve this in LaTeX.

I think you are right.  I'll see if can find a nice way to do this in
LaTeX, I'll share if I find something.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [new exporter] #+TOC in beamer export
  2013-03-05 21:53   ` Andreas Leha
  2013-03-05 22:35     ` Suvayu Ali
@ 2013-03-06 12:42     ` Nicolas Goaziou
  1 sibling, 0 replies; 11+ messages in thread
From: Nicolas Goaziou @ 2013-03-06 12:42 UTC (permalink / raw)
  To: Andreas Leha; +Cc: emacs-orgmode

Hello,

Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:

> Nicolas Goaziou <n.goaziou@gmail.com> writes:
>>
>> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>>
>>> 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?)
>>
>> It seems useful to keep frame around TOC generated from toc:t option.
>> But we could remove it from TOC generated from #+TOC keywords.
>>
>
> Thanks for taking this further.  Indeed, for the toc:t triggered TOC the
> frame is absolutely useful.
>
> So, I like your suggestion very much.

Applied. Thanks for the feedback.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [new exporter] #+TOC in beamer export
  2013-03-06 12:09         ` Suvayu Ali
@ 2013-03-06 18:21           ` Robert Eckl
  0 siblings, 0 replies; 11+ messages in thread
From: Robert Eckl @ 2013-03-06 18:21 UTC (permalink / raw)
  To: emacs-orgmode


Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:

> On Wed, Mar 06, 2013 at 12:52:24AM +0100, Nicolas Goaziou wrote:
>> 
>> I think this kind of control should really belong to specific latex
>> code.
>> 
>> A TOC limited to current section sure sounds seducing, but I'm not sure
>> how to achieve this in LaTeX.
>
> I think you are right.  I'll see if can find a nice way to do this in
> LaTeX, I'll share if I find something.
>
Perhaps package minitoc is what you are looking for?
I don't know if it is usable within beamer.

Cu,
Robert

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [new exporter] #+TOC in beamer export
  2013-03-05 23:52       ` Nicolas Goaziou
  2013-03-06 12:09         ` Suvayu Ali
@ 2013-03-06 20:20         ` Andreas Leha
  2013-03-06 22:40           ` Nicolas Goaziou
  1 sibling, 1 reply; 11+ messages in thread
From: Andreas Leha @ 2013-03-06 20:20 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <n.goaziou@gmail.com> writes:

[...]

> A TOC limited to current section sure sounds seducing, but I'm not sure
> how to achieve this in LaTeX.

Something like this?
  \tableofcontents[sectionstyle=show/hide, subsectionstyle=show/show/hide]


Full example:
#+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:3


* Intro
** Motivation
*** Motivation Frame
** Challanges

*** Challange 1
*** Challange 2
* TOC								    :B_frame:
  :PROPERTIES:
  :BEAMER_env: frame
  :END:
#+LaTeX: \tableofcontents[sectionstyle=show/hide, subsectionstyle=show/show/hide]


* Main Part
** One
*** Frame One
*** Frame Two
** Two
*** Frame One
*** Frame Two
#+end_src


Regards,
Andreas

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [new exporter] #+TOC in beamer export
  2013-03-06 20:20         ` Andreas Leha
@ 2013-03-06 22:40           ` Nicolas Goaziou
  2013-03-06 23:30             ` Andreas Leha
  0 siblings, 1 reply; 11+ messages in thread
From: Nicolas Goaziou @ 2013-03-06 22:40 UTC (permalink / raw)
  To: Andreas Leha; +Cc: emacs-orgmode

Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:

> Nicolas Goaziou <n.goaziou@gmail.com> writes:
>
> [...]
>
>> A TOC limited to current section sure sounds seducing, but I'm not sure
>> how to achieve this in LaTeX.
>
> Something like this?
>   \tableofcontents[sectionstyle=show/hide, subsectionstyle=show/show/hide]

Actually, I am looking for a way to do it in regular (i.e. non-Beamer)
LaTeX. I guess your code only applies to Beamer documentclass.

Thanks anyway.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [new exporter] #+TOC in beamer export
  2013-03-06 22:40           ` Nicolas Goaziou
@ 2013-03-06 23:30             ` Andreas Leha
  0 siblings, 0 replies; 11+ messages in thread
From: Andreas Leha @ 2013-03-06 23:30 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:
>
>> Nicolas Goaziou <n.goaziou@gmail.com> writes:
>>
>> [...]
>>
>>> A TOC limited to current section sure sounds seducing, but I'm not sure
>>> how to achieve this in LaTeX.
>>
>> Something like this?
>>   \tableofcontents[sectionstyle=show/hide, subsectionstyle=show/show/hide]
>
> Actually, I am looking for a way to do it in regular (i.e. non-Beamer)
> LaTeX. I guess your code only applies to Beamer documentclass.
>

Sorry.  Did not follow this thread closely.  Yes, this is
beamer-specific.  For non-beamer documents, Robert's suggestion of the
minitoc package is good.

Regards,
Andreas

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-03-06 23:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-05 13:11 [new exporter] #+TOC in beamer export Andreas Leha
2013-03-05 21:48 ` 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

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).