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 know this is similar to other questions. Other answers address either:

  1. Adding a transparent image
  2. Centering an image but I cannot find an answer with both.

With previous answers I can successfully make my image transparent OR centered, but not both. I've tried integrating methods for the two with no luck.

Here's the code I'm using on my introduction slide

\usepackage{tikz}

    \usebackgroundtemplate{ 
         \vbox to \paperheight
              {\tikz \node[opacity=0.2] 
                 {\vfil\hbox to \paperwidth
                     {\hfil\includegraphics[width=1.5in]{name.png}
                  \hfil}\vfil} ;  }
            }
share|improve this question
    
Does this help? tex.stackexchange.com/questions/74038/… –  Matthew Leingang Apr 12 '13 at 15:29
    
That is the post from which I got the \tikz part of my above code. But the code in your link does not center the image. Using the code from that post my image is automatically flush left. –  jabberwocky Apr 12 '13 at 15:32
add comment

1 Answer 1

up vote 5 down vote accepted

Combining the work of Transparent image background in beamer and Image on full slide in beamer package, you can do something like:

\documentclass{beamer}
\usepackage{tikz}

\usebackgroundtemplate{%
\tikz[overlay,remember picture] \node[opacity=0.3, at=(current page.center)] {
   \includegraphics[height=\paperheight,width=\paperwidth]{example-image-a}};
}

\begin{document}

\begin{frame}
Background transparent image, centered on slide
\end{frame}

\end{document}

sample output

You have to compile twice to get the image centered.

share|improve this answer
    
Works great. Thanks! –  jabberwocky Apr 12 '13 at 16:03
    
You also need to think of the aspect ratio. –  Please don't touch Apr 12 '13 at 16:06
    
@Karl'sstudents: good point. Back when I was doing a lot of beamer stuff I thought about a macro that would maximize the image size to fit the aspect ratio. But I never got around to it. –  Matthew Leingang Apr 12 '13 at 16:33
    
Why do you need the remember picture option? –  Kevin C Apr 12 '13 at 16:38
    
@Kevin: the remember picture key is useful when you want to mark a position on the page rather than within the picture. You can see it documented in Section 16.13.2 of the pgf v2.10 manual. –  Matthew Leingang Apr 12 '13 at 16:42
show 3 more comments

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.