Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers

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

share|improve this answer
add comment

You could add the image as part of the frame title argument, e.g. using

\begin{frame}
    \frametitle{\rlap{\raisebox{-\dp\strutbox}{\includegraphics[height=\baselineskip]{image}}}Your frame title}
     ...

\end{frame}

(The \frametitle is optional in this case.)

This inserts and scales a background image under the frame title. You might also want to add the option width=\textwidth (or a similar width).

Alternatively try \adjustbox{bgimage=<image>}{Your frame title} from the adjustbox package instead of the frame title alone.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.