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?

9
  • 3
    If you were using Impressive to display your slides, it's as simple as pressing B at the right moment...
    – Seamus
    Apr 2, 2011 at 15:38
  • 2
    @Alan Munn changing the background colour won't change all the frame to black. The structural elements will still be there.
    – Seamus
    Apr 2, 2011 at 15:54
  • 1
    @Alan No. The relevant difference is the plain option that turns off, say, the top bar and lower bar from the infolines outertheme.
    – Seamus
    Apr 2, 2011 at 16:27
  • 1
    Ah, yes, I still had [plain] in my test file.
    – Alan Munn
    Apr 2, 2011 at 16:29
  • 1
    @Alan and in fact, even if the answers had been identical, I think the questions are different enough that I don't think this should be closed...
    – Seamus
    Apr 2, 2011 at 16:42

3 Answers 3

48
\documentclass{beamer}

\begin{document}

\frame{foo}

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

\frame{bar}

\end{document}
2
  • 13
    You need \setbeamertemplate{navigation symbols}{} inside your group to make the slide totally blank.
    – Seamus
    Apr 2, 2011 at 15:56
  • 2
    I know, but it may still be useful to have the symbols
    – user2478
    Apr 2, 2011 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*
1
  • I assume that's in the preamble, how exactly do you switch within your document from one slide to another? Aug 1, 2013 at 14:26
0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .