I have a beamer template with following code:

\begin{beamercolorbox}[wd=.24\paperwidth,ht=\@tempdimb]{section in head/foot}%
\end{beamercolorbox}%
\end{beamercolorbox}%
\vbox to\@tempdimb{\vfil\hspace*{0.6cm}\pgfuseimage{UT}\vfil}%
\end{beamercolorbox}%


Thats the header.... My problem is, that the text of the Navigation doenst start left align. I want the text all the way to the left in the box. The text always starts always in the middle of the box and kinda types backwards. Could anyone help me please?

You might want to use \insertsubsection instead of \insertsubsectionnavigation{⟨width⟩} which according to the manual

Inserts a vertical navigation bar containing all subsections of the current section, with the current subsection highlighted.

This bar adds additional space to the left and right of the (sub)section. It works the same way with \insertsection versus \insertsectionnavigation{⟨width⟩}.

\documentclass{beamer}

\makeatletter
\vbox to\@tempdimb{\vfill\insertsection\vfill\hfill}%
\end{beamercolorbox}%
\vbox to\@tempdimb{\vfil\insertsubsection\vfil}%
\end{beamercolorbox}%
\vbox to\@tempdimb{\vfil\hspace*{0.6cm}\rule{2cm}{0.5cm}\vfil}%
\end{beamercolorbox}%
}
\makeatother

\begin{document}
\section{A section}
\subsection{A subsection}
\begin{frame}{A show frame}
just text here
\end{frame}
\end{document}


Comments: Now that the text directly starts at the frame border, you might want to insert a \hspace*{1em}.

I removed \hskip-17ex in order to render the text within the beamercolorbox and used a rule instead of the UT image.

Update:

Alternatively, you can redefine the templates of \insertsectionnavigationand \insertsubsectionnavigation from beamerbasenavigation.sty for a reduction of the added horizontal space and \RaggedRight text (using the ragged2e package).

\usepackage{ragged2e}

\makeatletter
\hbox to #1{%
\vskip0.5ex%
\def\slideentry##1##2##3##4##5##6{}%
\def\sectionentry##1##2##3##4##5{%
\ifnum##5=\c@part%
\setbox\beamer@tempbox=\hbox{\RaggedRight% added for flushed left text
\ifnum\c@section=##1%
\else%
\ht\beamer@tempbox=1.6875ex\dp\beamer@tempbox=0.75ex%
\box\beamer@tempbox\fi}%
\hbox to #1{%
\vbox{{%
\vskip0.5625ex%
\beamer@currentsubsection=0%
\def\sectionentry##1##2##3##4##5{}%
\def\slideentry##1##2##3##4##5##6{\ifnum##6=\c@part\ifnum##1=\c@section%
\ifnum##2>\beamer@currentsubsection%
\beamer@currentsubsection=##2%
\hbox to #1{\hskip0.5ex% adjusted from 0.3 cm
\ifnum\c@subsection=##2%
\else%
\ht\beamer@tempbox=1.6875ex\dp\beamer@tempbox=0.75ex%
\box\beamer@tempbox\fi\fi\fi}%
\end{beamercolorbox}%

• @ben did you use the enclosing \makeatletter/\makeatother commands? Is your LaTeX-system up-to-date? – hakaze Sep 25 '12 at 9:29