Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Position a background image in beamer on titlepage

5,651 views
Skip to first unread message

HansMaier

unread,
May 28, 2010, 6:06:39 PM5/28/10
to
Hi there,

could anyone help me and tell me whether it is possible to position a
background image to specific coordinates on the titlepage in a
"beamer" presentation and if so how? Furthermore, how do I position
different background images to specific coordinates on different pages
in the presentation? Please also note that I do not want the image to
fill the whole page.

Although I managed to postition an image to specific coodinates on a
slide using:

\begin{frame}
\frametitle{Here is the title for the first page}
\begin{picture}(1.5,1.1)
\put(100,-80){\includegraphics[width=5cm]{test.png}}
\end{picture}
some text here
\end{frame}

I failed to do the same for the background of the title page using:

\begin{frame}
\begin{picture}(1.5,1.1)
\put(100,-80)
\usebackgroundtemplate{\includegraphics[width=5cm]{figures/
dendrite_light_blur_3.png}}
\end{picture}
\titlepage
\end{frame}

Any help on this is greatly appreciated!
Thank you very much.
Hans

Ulrich M. Schwarz

unread,
May 29, 2010, 12:51:26 AM5/29/10
to
On Sat, 29 May 2010 00:06:39 +0200, HansMaier <vivoa...@yahoo.de> wrote:

> Hi there,
>
> could anyone help me and tell me whether it is possible to position a
> background image to specific coordinates on the titlepage in a
> "beamer" presentation and if so how? Furthermore, how do I position
> different background images to specific coordinates on different pages
> in the presentation? Please also note that I do not want the image to
> fill the whole page.

[...]

Without having tried myself, have you considered something along the lines
of
\setbeamertemplate{background canvas}{%
\begin{picture}(0,0)
\put(x,y){\includegraphics{foo}}
\end{picture}
}%?
(Please check the exact syntax in beameruserguide.)
Also note you're allowed to call \setbeamertemplate also after
\begin{document}, if I recall correctly.

HTH
Ulrich

HansMaier

unread,
May 29, 2010, 4:27:04 AM5/29/10
to
On 29 Mai, 06:51, "Ulrich M. Schwarz" <brother...@gmx.net> wrote:

Dear Ulrich,

Thank you very much for your suggestion.
Your code does the job. However, one should not forget to reset the
background to default after the titlepage (otherwise the background
image is present on all slides).

\begin{frame}
\titlepage
\end{frame}
\setbeamertemplate{background canvas}[default] % resets the background
to default


I have played around a bit too and I found that one can also use:

{
\usebackgroundtemplate{\begin{picture}(x,y)\put(100,-200)
{\includegraphics[width=5cm]{foo.png}}\end{picture}}
\begin{frame}
\titlepage
\end{frame}
}

Note that with this alternative there is no need to specifiy

\setbeamertemplate{background canvas}[default]

after it. Moreover, it should also be possible to create different
exact positioned background images on different slides.

Thanks a lot again!

Best wishes,
Hans

0 new messages