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 am using the Hannover theme in beamer and I am using the title frame as plain


\title[Title]{Centering Title frame}


picture of frame title not centered picture of frame title without "plain" not centered

Because it was not obvious on the first picture (white on white, I have added the same picture without the option "plain" on the frame). My point is that I would like that with the option plain the frame forget about the hannover theme and centers the whole frame.

I tried to put a \hspace{-xpt} before the frame but it did not seem to work.

share|improve this question
up vote 5 down vote accepted

You could \hoffset to move the content of the frame to the left, by the half amount of the sidebar width:


I used \begingroupand \endgroup to limit the effect of the change to \hoffset to just this frame. \makeatletter and \makeatletter are necessary for accessing the internal macro \beamer@sidebarwidth.

share|improve this answer
Thanks! Works perfectly – Gopi Aug 1 '11 at 15:53
This solution doesn't work anymore. Any idea what might work now? – luchonacho Dec 18 '15 at 19:45
@luchonacho Perhaps tell us what "doesn't work" means in your case. And you may post a new question if you like. – Stefan Kottwitz Dec 18 '15 at 20:23
Sorry, my bad. I am trying to center the title for another beamer template, and it doesn't work. Is your solution unique to the Hannover theme? I get Undefined control sequence. \setlength{\hoffset}{-.5\beamer@sidebarwidth} – luchonacho Dec 21 '15 at 22:09
@luchonacho Possibly! For example, a beamer theme without a sidebar doesn't need a \beamer@sidebarwidth length. Your case may be different, so it would be a good idea to post a new question with all template information. – Stefan Kottwitz Dec 21 '15 at 22:36

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.