TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use an image as a background for Beamer presentation according to this post. However, I do not want the image spanning the entire background. Thus, I'm doing something like:

\usebackgroundtemplate{% \centering

The \hspace command works, but \vspace does not work. Basically, I'm trying to get the image to be at the center of the page. Any ideas on how this can be done?

share|improve this question
up vote 20 down vote accepted

You can box the image and then use \vfil and \hfil to center it:


  \vbox to \paperheight{\vfil\hbox to \paperwidth{\hfil\includegraphics[width=1.5in]{name}\hfil}\vfil}




The line \PassOptionsToPackage{demo}{graphicx} was used to make my example compilable for everyone (replacing the image for a black rectangle); do not use that line in your actual document.

You can also use a \parbox with width and height equal to \paperwidth and \paperheight, resp., and center vertically with the optional argument, and horizontally using \centering:

share|improve this answer

Your Answer


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.