\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
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
>
> 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