9

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.

2
  • 1
    Did you try to 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}}
    – Lgen
    Commented Nov 12, 2017 at 20:09
  • It worked thanks. Add this as an answer to accept it
    – Michael
    Commented Nov 12, 2017 at 21:25

1 Answer 1

7

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.

5
  • 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
    Commented Aug 8, 2021 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
    Commented Aug 8, 2021 at 19:41
  • @JeanPierre I just tried to substitute tableofcontents[currentsection] with \secname and it seems to work as expected.
    – Lgen
    Commented Aug 8, 2021 at 19:51
  • Indeed, thanks!
    – JeanPierre
    Commented Aug 8, 2021 at 20:32
  • @JeanPierre Thanks, I added this alternative to the solution
    – Lgen
    Commented Aug 9, 2021 at 13:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.