7

I currently have:

#+options: H:2

and...

* Introduction
** Some definition
    + list item1
    + list item2

So I get Introduction section in the Outline, and a frame for Some definitionand those two list items in it. In addition, I want a frame containing just Introduction title, is that possible? Thanks in advance.

tinlyx
  • 1,276
  • 1
  • 12
  • 27
Michael
  • 227
  • 1
  • 7
  • 1
    Did you try to add the following code at the beginning of your org file:#+BEAMER_HEADER: \AtBeginSection[]{\begin{frame}\frametitle{Presentat‌​ion agenda}\tableofcontents[currentsection]\end{frame}} – Lgen Nov 12 '17 at 20:09
  • It worked thanks. Add this as an answer to accept it – Michael Nov 12 '17 at 21:25

1 Answers1

6

If you add the following code at the beginning of your org file:

#+BEAMER_HEADER: \AtBeginSection[]{\begin{frame}<beamer>\frametitle{Presentat‌​‌​ion agenda}\tableofcontents[currentsection]\end{frame}}

it will generate a toc frame at the beginning of each section, highlighting the upcoming section. You can change the title of the frame (Presentat‌​‌​ion agenda in the above code) at your convenience.

If you want to have a slide with the section name only (not the whole toc) then you can use:

#+BEAMER_HEADER: \AtBeginSection[]{\begin{frame}<beamer>\frametitle{Presentat‌​‌​ion agenda} \secname \end{frame}}

and customize it as you wish.

Lgen
  • 1,380
  • 10
  • 19
  • This is nice but is not exactily what was asked. Any idea how to insert a "title frame" at each section instead of a toc frame? – JeanPierre Aug 08 '21 at 13:24
  • @JeanPierre May be you could try to tweak the proposed answer by using the \secname variable (name of current section) instead of \tableofcontents[currentsection]. I did not try this so could you leave a comment if it works ? – Lgen Aug 08 '21 at 19:41
  • @JeanPierre I just tried to substitute tableofcontents[currentsection] with \secname and it seems to work as expected. – Lgen Aug 08 '21 at 19:51
  • Indeed, thanks! – JeanPierre Aug 08 '21 at 20:32
  • @JeanPierre Thanks, I added this alternative to the solution – Lgen Aug 09 '21 at 13:13