I'm making a poster (a2 size) where I use an image for background. However, I need to add a logo, which has a white background, to the top left corner..
\documentclass{beamer}
\usepackage[size=a2, orientation=landscape]{beamerposter}
\setbeamercolor{separation line}{bg=black}
% ----------- Global Background -------------
\usebackgroundtemplate%
{%
\includegraphics[width=\paperwidth,height=\paperheight]{background_image}%
}
% ----------------- Headline ------------------
\setbeamertemplate{headline}{
\begin{columns}
\begin{column}{0.2\textwidth}
% ############ This is the column I want a white background for #################
\usebackgroundtemplate{bg=white}
\begin{beamercolorbox}{headline}
\centering \includegraphics{logo}
\end{beamercolorbox}
\end{column}
\vline
\begin{column}{0.6\textwidth}
\begin{beamercolorbox}[wd=.6\paperwidth]{headline}
\centering
\vskip2ex
\usebeamercolor{title in headline}{\color{fg}\textbf{\LARGE{\inserttitle}}\\[1ex]}
\usebeamercolor{author in headline}{\color{fg}\large{\insertauthor}\\[1ex]}
\usebeamercolor{institute in headline}{\color{fg}\large{\insertinstitute}\\[1ex]}
\end{beamercolorbox}
\end{column}
% This column is just to make the title column centered... Let me know if you have a better solution
\begin{column}{0.2\textwidth}
\end{column}
\end{columns}
\begin{beamercolorbox}[wd=\paperwidth]{lower separation line head}
\rule{0pt}{2pt}
\end{beamercolorbox}
}
\title{Title}
\author{Author}
\institute{institute}
\begin{document}
This is some text
\end{document}
I would like the upper left corner to have a white background, while the rest has background_image as background. Is there a way to do this?
If there is a better way to get the title etc. centered without the rightmost column in the header I would be thankful for advice on that as well.
Use (for example) http://en.wikipedia.org/wiki/File:Chiswick_Lion.png as "logo" and http://en.wikipedia.org/wiki/File:KA-Tapete-Beerdigung05.JPG as "background_image" to illustrate the problem.
Lame half-way solution:
Declare
\setbeamercolor{headline}{bg=white}
\setbeamercolor*{example header}{fg=black}
Change type of the first two columns to "example header" and move the image to the rightmost column (the previously empty one).
\setbeamertemplate{headline}{
\begin{columns}
\begin{column}{0.2\textwidth}
\begin{beamercolorbox}[wd=0.2\paperwidth]{example header}
\end{beamercolorbox}
\end{column}
\begin{column}{0.6\textwidth}
\begin{beamercolorbox}[wd=.6\paperwidth]{example header}
\centering
\vskip2ex
\usebeamercolor{title in headline}{\color{fg}\textbf{\LARGE{\inserttitle}}\\[1ex]}
\usebeamercolor{author in headline}{\color{fg}\large{\insertauthor}\\[1ex]}
\usebeamercolor{institute in headline}{\color{fg}\large{\insertinstitute}\\[1ex]}
\end{beamercolorbox}
\end{column}
\vline
\begin{column}{0.2\textwidth}
\begin{beamercolorbox}[wd=0.2\paperwidth]{headline}
\vfill
\centering
\includegraphics[scale=1]{logo}
\vfill
\end{beamercolorbox}
\end{column}
\end{columns}
\begin{beamercolorbox}[wd=\paperwidth]{lower separation line head}
\rule{0pt}{2pt}
\end{beamercolorbox}
}
And tadaa... logo now on the right instead, which I don't like, but with white background, which I do like.. There seems to be some space that can't be filled otherwise before a \vline.
Also note that you might have to scale the picture, depending on its size.
If someone smart figures out a nice way to do this, please let me know.
mwepackage, available by default asexample-image-XwhereXisa,b, orc). – Werner Feb 3 at 2:24mwepackage. – erik Apr 9 at 6:25