Suppose I'm making a custom theme for Beamer presentations, and on each frame I'd like to display not only the frame's title itself, but also the titles of the previous and next frames (de-emphasized in some manner, of course). Does anyone know whether there's some way to construct a macro that I can use to access the title of a neighboring frame? Or whether this has already been done somewhere?
Here's a solution to insert access other slides' frame titles (in contrast to other section titles as in my first answer). The procedure is very similar, so I'll just explain the parts which have changed:
As in the first solution, the command capable of the title (
This file is input at the beginning of the next LaTeX run, where it is used to store the frame titles in the macros
Put the above code into the preamble of your document. Now, you'll be able to insert the previous and next frame titles with the macros
(Of course, you must supply a frame title in the desired frame, otherwise, the output of the commands will be empty.)
You can define commands to insert the previous and next section title like this:
Put this code into the preamble of your document (between
It works as follows: The first few lines execute code at the beginning of the document which processes the entries of the
After these values have been saved, you can read them with the macros
A small demonstration:
If you want to know more then the previous and next section title, you can use an optional argument: By defining
you can get the title of the section before the previous section with
I can think of two possibilities, but I'm not sure this is what is intended in your case. First, there are specific Beamer theme that allows you to display an outline in a dedicated frame, like Bergen, Goettingen, Marburg, Berkeley, or Hannover. Second, you can show your TOC at the beginning of new section, by adding
to your Beamer template. This has the disadvantage that this not displayed on the current slide. However, maybe you can look around the aforementioned templates and see how sectioning is handled internally.
In both cases, it would mean that every slide should be (sub)sectionned, which I guess might not be very convenient for you although a solution to automate this has been proposed in an earlier thread.