[Tex/LaTex] Background image for frame title

backgroundsbeamergraphics

Using beamer, how can I insert a background image under the title of each frame?
I could insert an image but the result was that the title disappeared because the image is over it.
Any ideas?

Best Answer

You can use the \addtobeamertemplate command to add the image to every frame in which the \frametitle command is used. You only add the image to the frametitle template. A simple example using the textpos package to control the placement of the image:

\documentclass{beamer}
\usepackage{textpos}

\addtobeamertemplate{frametitle}{
\begin{textblock*}{\paperwidth}(-10pt,0pt)
\includegraphics[width=.9\paperwidth,height=1cm]{onebit_29}
\end{textblock*}
}

\begin{document}

\begin{frame}
\frametitle{Some long title to overlap the included image}
Test
\end{frame}

\end{document}

enter image description here