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

\documentclass{beamer}
\mode<presentation>
{
  \usetheme{Hannover}%{CambridgeUS}%
  \setbeamercovered{transparent}
}

\title[Title]{Centering Title frame}
\author[Gopi]{Gopi}

\begin{document}
\begin{frame}[plain]
    \titlepage
    \begin{figure}
    \begin{center}
        \includegraphics[scale=0.3]{logo}
    \end{center}
    \end{figure}
\end{frame}
\end{document}

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
add comment

1 Answer

up vote 3 down vote accepted

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

\begingroup
\makeatletter
\setlength{\hoffset}{-.5\beamer@sidebarwidth}
\makeatother
\begin{frame}[plain]
    \titlepage
    ...
\end{frame}
\endgroup

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
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.