I'm trying to create a background gradient for a set of Beamer slides. This question seems to be doing more or less what I want but the answer does not work for me. If I paste the answer into a file I get this error:

! Undefined control sequence.
<recently read> \backgroundsetup 

l.4 \backgroundsetup
? x
No pages of output.
Transcript written on bg.log.

The linked question also doesn't do quite what I want because I would like the gradient to start in the center. I'm going for an effect like this.

I prefer answers using tikz since I have worked with that.

  • 1
    Have you loaded the background package? Can you provide a minimal working example (MWE)? For the shading like that you can use the radial shading and specify the inner color as well as the outer color. Commented Oct 11, 2013 at 18:16
  • I was trying to build the answer from the linked question. I didn't think it was worth pasting the whole thing into my question as well.
    – asm
    Commented Oct 11, 2013 at 18:17

1 Answer 1


With beamer, you don’t need the background package, the \usebackgroundtemplate macro offers the possibility to set the background.


    \path [outer color = green!20, inner color = blue!10]
      (0,0) rectangle (\paperwidth,\paperheight);
\title{This is the title.}

You must log in to answer this question.

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