Generalbeamer | Create Section Page

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
deus
Posts: 5
Joined: Tue Jun 01, 2010 12:28 am

beamer | Create Section Page

Post by deus »

Dear,

I'm creating a beamer presentation and I would like to insert Section pages at the start of each new Section. A section page should be simply a blank page with the name of the Section in the middle of the page.

I tried to use:

Code: Select all

\part{Review of Previous Lecture}
\frame{\partpage}
This basically works great, except that the result is: "Part I: Review of Previous Lecture". I don't want the "Part I" stuff since it is not a Part but a section. According to the beamer manual, it should be possible to use these commands:

Code: Select all

\section{A section}
\frame{\sectionpage}
But unlike the \partpage equivalent, \sectionpage doesn't work and returns an undefined control sequence error. If it helps, I'm using the theme Boadilla.

Any suggestions on how I can create a simple Section page?
Last edited by Stefan Kottwitz on Mon Jun 06, 2011 7:15 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

beamer | Create Section Page

Post by Stefan Kottwitz »

The beamer class doesn't define \sectionpage. You could define it yourself using \centering, \insertsection etc. You could do it like in standard LaTeX.

Here's an example in the beamer way:

Code: Select all

\setbeamerfont{section title}{parent=title}
\setbeamercolor{section title}{parent=titlelike}
\defbeamertemplate*{section page}{default}[1][]
{
  \centering
    \begin{beamercolorbox}[sep=8pt,center,#1]{section title}
      \usebeamerfont{section title}\insertsection\par
    \end{beamercolorbox}
}
\newcommand*{\sectionpage}{\usebeamertemplate*{section page}}
Stefan
LaTeX.org admin
deus
Posts: 5
Joined: Tue Jun 01, 2010 12:28 am

Re: beamer | Create Section Page

Post by deus »

Thnx, that works like a charm!

Unfortunately my current LaTeX knowledge is not sufficient to reproduce this myself. I'll have to search for some good literature on LaTeX templates/macro's.
deus
Posts: 5
Joined: Tue Jun 01, 2010 12:28 am

beamer | Create Section Page

Post by deus »

Dear,

Last year the above solution worked great, but now I cannot compile this any more. I get the following errors:

Code: Select all

Command \beamer@@tmpop@section page@default already defined
Command \sectionpage already defined. ...onpage} {\usebeamertemplate*{section page}}
What changed? I'm compiling with Kile, using pdflatex

Code: Select all

pdflatex -version
pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
pac
Posts: 2
Joined: Fri Feb 17, 2012 5:38 am

beamer | Create Section Page

Post by pac »

Hi,
You might have a newer version of Beamer installed now, which does define \sectionpage.
Post Reply