# How to change the vertical position of the text in a frametitle

I'm wondering how to change the vertical position of the text in a frametitle? Take for instance this frametitle:

I'd like to place the text, in this case "Introduction", a bit higher such that it is exactly in the vertical center.

\documentclass{beamer}
\usepackage{textpos}
\usepackage{tikz}

\definecolor{TUeRed}{RGB}{170,0,0}
\definecolor{TUeBlue}{RGB}{0,68,170}

\begin{textblock*}{100mm}(.95\textwidth,-1cm) \tikz {\fill[white] (0,0) -- %
(2cm,0) -- (2cm,1.1cm) -- (0.5cm,1.1cm) -- cycle;\node[TUeBlue] at %
(0.8cm,0.5cm) {\normalsize\insertpagenumber};} \end{textblock*} }

\setbeamercolor{frametitle}{bg=TUeRed}
\setbeamercolor{frametitle}{fg=white}

\begin{document}

\begin{frame}
\frametitle{Introduction}
Some text
\end{frame}

\end{document}


 Changed the LaTeX code, thanks @Percusse!

• As new user without image posting privileges simply include the image as normal and remove the ! in front of it to turn it into a link. A moderator or another user with edit privileges can then reinsert the ! to turn it into an image again.
– Tobi
Mar 20 '12 at 10:51
• Can you put a working example with two slides? I don't know where to obtain the textblock environment. Mar 20 '12 at 12:04
• Which beamer theme are you using? Please add to your question a complete, minimal example (with only those relevant settings) of your document settings. Mar 20 '12 at 12:04
• @percusse, it's from the textpos package. I'll add a working example. Gonzalo, I don't use a theme, I'm trying to create my own. Mar 20 '12 at 13:14
• A look into the beamer sources (beamerouterthemedefault.sty, ll. 140-160) shows that the off-centering of the frame title is caused by inserted \struts (l. 150). If they were removed, the frame title would be exactly vertically centered. I strongly advise you, however, not to do that - different frame titles with different heights would wiggle around vertically, which would look rather horrible in a presentation! Mar 26 '12 at 11:16

A look into the beamer sources (beamerouterthemedefault.sty, ll. 140-160) shows that the off-centering of the frame title is caused by inserted \struts (l. 150). If they were removed, the frame title would be exactly vertically centered. I strongly advise you, however, not to do that - it would either cause the height of the colored frame title box to change for different frame titles, or the title would wiggle around vertically (if you set the box to a fixed height). Both would look rather horrible in a presentation...
\addtobeamertemplate{frametitle}{\vskip-0.5ex}{}