0

I made a custom latex beamer theme with my University's logo and title on header (top right) and sections (top left). I want to change the the header's settings by including the subsections at the top right section and removing the logo and the university's title. Is this possible?

3
1

You could create a new headline definition as following:

\defbeamertemplate*{headline}{magda theme}{%
  \leavevmode%
  \@tempdimb=2.4375ex%
    \multiply\@tempdimb by\beamer@sectionmax%
  \pgfdeclareimage[height=.9\@tempdimb]{logo}{tuc_logo_3}%
  \logo{\pgfuseimage{logo}}%
  \ifdim\@tempdimb>0pt%
    \advance\@tempdimb by 1.125ex%
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{section in head/foot}%
      \vbox to\@tempdimb{\vfil\insertsectionnavigation{.5\paperwidth}\vfil}%
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{subsection in head/foot}%
      \vbox to\@tempdimb{\vfil\insertsubsectionnavigation{.5\paperwidth}\vfil}%
    \end{beamercolorbox}%
%    \begin{beamercolorbox}[wd=.4\paperwidth,ht=\@tempdimb,right]{subsection in head/foot}%
%      \vbox to\@tempdimb{\vfil\vfil\textbf{\footnotesize\insertshortinstitute~~}\vfil}%
%    \end{beamercolorbox}%
%    \begin{beamercolorbox}[wd=.1\paperwidth,ht=\@tempdimb,left]{subsection in head/foot}%
%      \vbox to\@tempdimb{\vfil\insertlogo\vfil\vfil}%
%    \end{beamercolorbox}%
  \fi%
}

and switch between headlines like

\documentclass{beamer}

\usepackage{tuc}
\setbeamertemplate{headline}[tuc theme]

\begin{document}

\begin{frame}
  \titlepage
\end{frame}

\begin{frame}
  \frametitle{Outline}
    \tableofcontents[hideallsubsections]
\end{frame}

\setbeamertemplate{headline}[magda theme]

\section{Introduction}
\subsection{sub1}
\begin{frame}
    test
\end{frame}

\end{document}
3
  • Thank you very much for your answer. This did work but the logo and title are removed from all slides. I would like to keep the initial header format until the Outline slide. I want the subsections to appear only after the Outline slide. Dec 1 '17 at 12:56
  • @MagdaAmiridi please see my edit Dec 1 '17 at 13:11
  • @MagdaAmiridi You're welcome! Dec 1 '17 at 13:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.