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.

How can we break down section and subsection as only section on the header on the beamer?

For example,

enter image description here

AA is from section and DATA is from subsection.

\section{AA}
\subsection{DATA}

Is it possible that 'AA DATA' appear on the center only using section?

\section{AA DATA}

Thank you,

share|improve this question
    
I don't understand your question. Could you please elaborate a little more? –  Gonzalo Medina Feb 18 at 3:27
    
I am sorry but this is still not clear: "appear on the center only using section". Do you want all the headline to have just one color? –  Gonzalo Medina Feb 18 at 3:47
    
Hi, Gonzalo: Thank you so much for this answer. It works for me. –  user46377 Feb 18 at 4:28
add comment

1 Answer

up vote 4 down vote accepted

I am not sure if this is what you want:

\documentclass[compress]{beamer}
\usetheme{AnnArbor}

\makeatletter
\setbeamertemplate{headline}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=\paperwidth,ht=2.65ex,dp=1.5ex,center]{section in head/foot}%
    \usebeamerfont{section in head/foot}\insertsectionhead\hspace*{2ex}
  \end{beamercolorbox}}%
  \vskip0pt%
}
\makeatother

\author{The Author}
\title{The Title}
\institute{The Institute}

\begin{document}

\section{AA DATA}
\begin{frame}
test
\end{frame}

\end{document}

enter image description here

I redefined the headline template to use just one beamercolorbox of width given by \paperwidth and containing just the name of the current section, centered.

share|improve this answer
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.