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

beamer - background image in center using tikz?

938 views
Skip to first unread message

Sebastian Szwarc

unread,
Jun 28, 2009, 1:01:04 PM6/28/09
to
hi, thanks to Kjell's ancient advice I used:

\setbeamertemplate{background canvas}{%
\tikz {\node[inner sep=0pt,opacity=0.1]
{\includegraphics[height=0.9\paperheight,width=0.9\paperwidth]{Uamlogowhite.png}};
}}

to put my uni's logo on slide's background. If its dimensions are set to
0.9\paperheight and 0.9\paperwidth the image is located perfeclty on
whole slide.
But I want have this image smaller and when I rescale it using
0.6\paperwidth and 0.6\paperheight the image is placed in upper left
corner and I cannot force it to put this in center.

I tried to do this by

\setbeamertemplate{background canvas}{%
\tikz {\node[inner sep=0pt,opacity=0.1] at (current page.center)
{\includegraphics[height=0.9\paperheight,width=0.9\paperwidth]{Uamlogowhite.png}};
}}

but this doesn't work, and I am starting to hate Tikz :)

Any help?

Sebastian

William

unread,
Jun 28, 2009, 11:44:49 PM6/28/09
to

Try adding [remember picture,overlay] to your non-working example,
i.e.,

\setbeamertemplate{background canvas}{%
\tikz[remember picture,overlay] {\node[inner sep=0pt,opacity=0.1] at


(current page.center)
{\includegraphics[height=0.9\paperheight,width=0.9\paperwidth]
{Uamlogowhite .png}};
}}

You will need to process your LaTeX file _twice_ for the image to
appear.

Alternately, you could introduce a path with two nodes: one at (0,0)
(with an empty content) and another at
(0.5\paperwidth,-0.5\paperheight) with the desired graphic.

William


Sebastian Szwarc

unread,
Jun 29, 2009, 12:14:59 PM6/29/09
to
William pisze:

>
> Try adding [remember picture,overlay] to your non-working example,
> i.e.,
>
> \setbeamertemplate{background canvas}{%
> \tikz[remember picture,overlay] {\node[inner sep=0pt,opacity=0.1] at
> (current page.center)
> {\includegraphics[height=0.9\paperheight,width=0.9\paperwidth]
> {Uamlogowhite .png}};
> }}
>

Thanks a lot. It worked, but I dont know how :))
It seems Tikz is very hard to understand :)

Sebastian

0 new messages