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.

I have a custom beamer template that frames the content of each slide, like the standard themes but with wiggly header/footer lines.

I add the background image of the template with

\setbeamertemplate{background}
 {\includegraphics[width=\paperwidth,height=\paperheight]{master.png}}

I now want the content to be behind the background image and the rest of the template (title, page number...). The template will then have a cut-out with the content visible underneath. The background image can have .png or .pdf transparency.

Kind of like: http://en.wikipedia.org/wiki/Passe-Partout_%28framing%29

Does anyone have an idea how to move the content behind the background image?

Thank you for your help!

share|improve this question
    
How about including the image with textpos in the footline? According to tex.stackexchange.com/questions/26299/… this should be the component drawn as the top layer –  samcarter Apr 3 at 16:53
    
nice idea. I tried but unfortunately this overwrites the title. Including it before the title let's it remain under the content. So I guess my question includes: how do I make the title come into foreground? –  Matthias123 Apr 4 at 17:57
    
mmm, that is too bad. Could you share an example of your code? It would be easier to modify an existing code in order to find an solution instead of having to write own stuff ... –  samcarter Apr 4 at 18:02
    
How about leaving the traditional title layer empty and including the title in the footline layer [after the passpartout]? –  samcarter Apr 4 at 18:06

2 Answers 2

In order to have the title in front of the picture: How about leaving the traditional frametitle layer empty and including the frametitle in the footline layer?

\documentclass[t]{beamer}

\setbeamercolor{background canvas}{bg=blue!20}
\setbeamerfont{frametitle}{size=\fontsize{24}{28},series=\bfseries}
\setbeamercolor{frametitle}{fg=white}

\pgfdeclareimage[width=\paperwidth]{mybackground}{back.pdf}

\providecommand\insertframetitle{} 
\setbeamertemplate{footline}{%
    \begin{picture}(0,0)
        \put(0,0){%
            \pgfuseimage{mybackground}
        }
        \put(25,220){%
            \begin{minipage}[b][0mm][t]{100mm}
                \usebeamerfont{frametitle}{
                    \usebeamercolor[fg]{frametitle}{
                        \insertframetitle
                    }
                }
            \end{minipage}
        }
    \end{picture}
}

\setbeamertemplate{frametitle}{\vspace*{2.5cm}}

\begin{document}

    \begin{frame}
        \frametitle{Test Test Test}
        test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test  test
    \end{frame}

\end{document}

enter image description here

share|improve this answer

You could try overlaying the image using textpos or tikz, instead of setting it as the background.

See: How can I position an image in an arbitrary position in beamer?

share|improve this answer

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.