Question
When I want to change the background of a beamer
presentation I used to use something like this:
\setbeamertemplate{background canvas}%
{%
\includegraphics[width=\paperwidth, height=\paperheight]%
{%
Picture.jpg
}%
}
which is also documented in the beamer
documentation. In some answers here I often see
\usebackgroundtemplate{
\includegraphics[width=\paperwidth,height=\paperheight]{Picture.jpg}
}
- Is there a best practice?
- Surprisingly I can't find
\usebackgroundtemplate
when searching in thebeamer
documentation.
Related
- What is difference between template's `background` and `background canvas`? (I added
\setbeamertemplate{background}
so that the question title is more complete)
Best Answer
Concerning your questions what
\usebackgroundtemplate
does:It's defined in
beamerbasecompatibility.sty
asFrom the filename I would conclude, that commands defined for compatibility are not the ones to be used as "best practice" - but the result should be the same.
For the difference of
\setbeamertemplate{background canvas}
and\setbeamertemplate{background}
:Basically these are two different layers, see How does beamer build the frame? for an overview.