Hi I'm preparing a custom theme for beamerposter to align with the theme of my institution. I have to include a figure banner on the headline plus the possibility to include 2 different logos. So far I've done like this in the .sty file
\setbeamertemplate{headline}{
\leavevmode
\parbox{\textwidth}{\includegraphics[width=\paperwidth]{poster-banner}}
\vskip-35ex
\begin{beamercolorbox}[wd=\paperwidth]{headline}
\begin{columns}[T]
\begin{column}{.2\paperwidth}
\begin{center}
\ifdefined\LeftLogo
\includegraphics[width=.6\linewidth,keepaspectratio,clip]{\LeftLogo}
\else
\fi
\end{center}
\vskip1.5cm
\end{column}
\begin{column}{.65\paperwidth}
\hskip1ex
\vskip4ex
\raggedright
\usebeamercolor{title in headline}{\color{fg}\textbf{\LARGE{\inserttitle}}\\[1ex]}
\usebeamercolor{author in headline}{\color{fg}\Large{\insertauthor}\\[0.5ex]}
\usebeamercolor{institute in headline}{\color{fg}\large{\insertinstitute}\\[1ex]}
\end{column}
\begin{column}{.15\paperwidth}
\begin{center}
\ifdefined\RightLogo
\includegraphics[width=.6\linewidth,keepaspectratio,clip]{\RightLogo}
\else
\fi
\end{center}
\vskip1.5cm
\end{column}
\end{columns}
\end{beamercolorbox}}
Where \RightLogo and \LeftLogo have been defined before the
\def\RightLogo{logoa.pdf}
\def\LeftLogo{logob.pdf}
\documentclass[final]{beamer}
The trick work nicely in portrait mode for beamerposter. But whenever I use landscape option the banner is too big in height. So I think I should pass the dimension of the banner and also the amoung of vskip differently according to the option passed to beamerposter (i.e. orientation=portrait, orientation = landscape). But I can't figure out how to infer this options.
I hope I explain my self. I know that I should give a MWE but I hope it is sufficient as I've done
Best Answer
The command
\ifportrait
detects the value oforientation
. So you can replace your linewith a test and appropriate code for each case
The format is
\ifportrait <portait-case> \else <landscape-case> \fi
. I have made a random choice of a height of 10cm in thelandscape
case, you will need to write something appropriate four your particular case. For example, you might find aminipage
more suitable than a\parbox
and could writein the landscape case.
To use this as a style, put the following in the file
beamerthemeProva.sty
and then you can have a main document (a variation on the standard example in the beamerposter distribution) such as the following
You can now change the orinetation from
landscape
toportrait
and get different effects.