I want to add an image to my footline and aligned with the text of the same footline.
I have the following in my beamertheme.
\def\logo{%
\resizebox{!}{2.5ex}{\includegraphics{logo-small.png}}
}
\mode<presentation>
\defbeamertemplate*{footline}{example theme}
{%
\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{separation line}
\usebeamerfont{section in head/foot}%
\insertshortauthor\hfill\insertshorttitle\hfill\logo
\end{beamercolorbox}
}
\mode
Best Answer
You can modify the image height using
\raisebox{<amount>}{<content>}
. The\resizebox{!}{2.5ex}{...}
is actually not required, you can use thewidth
key of\includegraphics
macro for the resizing:You could also load the
adjustbox
package with theexport
option, then you can use theraise
key with\includegraphics
: