38

I'm making a presentation with LaTeX Beamer package. And I want to have a slide where the screen is all black so I can use other media. Is there a way to insert a black slide simply?

pirad
  • 1,641

3 Answers3

48
\documentclass{beamer}

\begin{document}

\frame{foo}

\bgroup
\setbeamercolor{background canvas}{bg=black}
\begin{frame}[plain]{}
\end{frame}
\egroup

\frame{bar}

\end{document}
  • 13
    You need \setbeamertemplate{navigation symbols}{} inside your group to make the slide totally blank. – Seamus Apr 02 '11 at 15:56
  • 2
    I know, but it may still be useful to have the symbols –  Apr 02 '11 at 16:18
3

If you have \mode* on then the background color remains set for subsequent slides even if you have the command wrapped in a group. This works:

\mode<presentation>{
  {   
    \setbeamercolor{background canvas}{bg=black}
    \begin{frame}[plain]{}
    \end{frame}
  }
}
\mode<presentation>{\setbeamercolor{background canvas}{bg=white}}
\mode*
fgregg
  • 655
0

It might additionally be necessary to use \setbeamertemplate{background canvas}[default] before \setbeamercolor{background canvas}{bg=black}. Have a look at this post.

sambura
  • 43
  • 5