Tell me more ×
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 want to change the color between the active and not active menu. I can't get it to work! Its too grey. My active font is white, the not active is a little bit grey... I want it whiter...

my LaTeX code:

\definecolor{mycolor}{RGB}{0, 94, 156}

% Set up color for header and footer

\setbeamercolor{palette primary}{fg=mycolor,bg=white}

\setbeamercolor{palette secondary}{fg=white,bg=mycolor}

\setbeamercolor{section in head/foot}{parent=palette secondary}

\setbeamercolor{subsection in head/foot}{parent=palette secondary}

I tried \setbeamertemplate{section in head/foot shaded}[default][10] already but it didnt work. It has no effect?!

Edit:

The whole code:

\mode<presentation>


% COLOR THEME STARTS HERE
% Next lines are outer theme
%
%
%

%Define color of university of trier (blue)

\definecolor{UTblue}{RGB}{0, 94, 156}


% Set up color for header and footer
\setbeamercolor{palette primary}{fg=UTblue,bg=white}
\setbeamercolor{palette secondary}{fg=white,bg=UTblue}
\setbeamercolor{test}{fg=black,bg=UTblue}

%set Beamer background transparent for Title Logo
\setbeamercolor{background canvas}{bg=}

\setbeamercolor{titlelike}{parent=palette five}


%%%%%%%%%%%%%
% We have 3 types of boxes
% 1. Standardblock for Definitions or Theorems
% 2. Alert block
% 3. Example block
% In the next 3 steps we will customize those blocks based on our university color



%Color for standard block

\setbeamercolor{block title}{fg=white,bg=UTblue}
\setbeamercolor{block body}{bg=UTblue!15!bg}

%Color for Alert Block
\setbeamercolor{block body alerted}{bg=UTblue!15!bg}
\setbeamercolor{block title alerted}{bg=UTblue!75!bg}

%Color for Example Block

\setbeamercolor{block title example}{fg=UTblue,bg=UTblue!75!bg}
\setbeamercolor{block body example}{bg=UTblue!15!bg}


%set up color for sidebar background
\setbeamercolor{sidebar}{bg=UTblue!70}

\setbeamercolor{palette sidebar primary}{fg=UTblue}
\setbeamercolor{palette sidebar secondary}{fg=UTblue!75}
\setbeamercolor{palette sidebar tertiary}{fg=UTblue!75}
\setbeamercolor{palette sidebar five}{fg=UTblue}

\setbeamercolor{framesubtitle}{fg=black}
\setbeamercolor*{titlelike}{parent=structure}
\setbeamercolor*{subtitle}{fg=black}

\setbeamercolor*{separation line}{}
\setbeamercolor*{fine separation line}{}




% OUTER THEME STARTS HERE
% Next lines are outer theme
%
%
%


% Checks screen resolution

\ifnum\ratio=169
\usepackage[orientation=landscape,size=custom,width=16,height=9,scale=0.5,debug]{beamerposter}
\else
\fi


% Uses color for header and footer defined in colortheme
\setbeamercolor{section in head/foot}{parent=palette secondary}
\setbeamercolor{subsection in head/foot}{parent=palette secondary}

\setbeamercolor{author in head/foot}{parent=palette secondary}
\setbeamercolor{title in head/foot}{parent=palette primary}

%Define Image for header

\pgfdeclareimage[height=1.15cm]{UT}{images/LSB169.png}



%Use Image as header
\usesectionheadtemplate
  {\hfill\insertsectionhead}
  {\hfill\color{fg!50!bg}\insertsectionhead}

                                % Header Content
\ifbeamer@compress

\defbeamertemplate*{headline}{split theme}
{%
  \leavevmode%
  \begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex]{section in head/foot}%
      \insertsectionnavigationhorizontal{.5\paperwidth}{\hskip0pt plus1filll}{}%
  \end{beamercolorbox}%
}

\else

%Background Image

\addtobeamertemplate{title page}{%
\begin{tikzpicture}[remember picture,overlay] 
  \node [xshift=0cm,yshift=0cm] at (current page.center)
  {\includegraphics[width=0.5\paperwidth]{images/unilogotrans.png}};                    
\end{tikzpicture}%
}{}





\defbeamertemplate*{headline}{split theme}
{%
  \leavevmode%
 \@tempdimb=1.15cm%
  \ifdim\@tempdimb>0pt%
% Checking VerA and VerB!
\ifnum\ratio=169
\begin{beamercolorbox}[wd=.24\paperwidth,ht=\@tempdimb]{section in head/foot}%
      \vbox to\@tempdimb{\vfil\insertsectionnavigation{.22\paperwidth}\vfil}%
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.24\paperwidth,ht=\@tempdimb]{section in head/foot}%
      \vbox to\@tempdimb{\vfil\insertsubsectionnavigation{.18\paperwidth}\vfil}%
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.30\paperwidth,ht=\@tempdimb]{section in head/foot}%
      \vbox to\@tempdimb{\vfil\hspace*{0.6cm}\pgfuseimage{UT}\vfil}%
    \end{beamercolorbox}%
\fi
\ifnum\ratio=43
\begin{beamercolorbox}[wd=.22\paperwidth,ht=\@tempdimb]{section in head/foot}%
      \vbox to\@tempdimb{\vfil\insertsectionnavigation{.12\paperwidth}\vfil}%
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.20\paperwidth,ht=\@tempdimb]{section in head/foot}%
      \vbox to\@tempdimb{\vfil\insertsubsectionnavigation{.001\paperwidth}\vfil}%
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.30\paperwidth,ht=\@tempdimb]{section in head/foot}%
      \vbox to\@tempdimb{\vfil\hspace*{.0cm}\pgfuseimage{UT}\vfil}%
    \end{beamercolorbox}%
\fi
  \fi%
}

% Now let's create commands for the title etc., that we can call later

% Title
\newcommand{\MyTitle}{%
    \hspace*{60mm}\vspace{-25mm}
            \centering \inserttitle}

% Subtitle              
\newcommand{\MySubTitle}{%
    \hspace*{60mm}\vspace{-25mm}
        \centering  \footnotesize \textit{\insertsubtitle}}

% Author        
 \newcommand{\MyAuthor}{        
    \hspace*{60mm}\vspace{-25mm}
        \centering \insertauthor}

% Institute     
 \newcommand{\MyInstitute}{         
    \hspace*{60mm}\vspace{-25mm}
        \centering \footnotesize \textit{\insertinstitute}}

% Date          
 \newcommand{\MyDate}{      
    \hspace*{60mm}\vspace{-25mm}
        \centering  \insertdate}

% Footer Content
\fi
% The next line disables the navigation symbols, I dont think they are very useful...
\setbeamertemplate{navigation symbols}{}
\defbeamertemplate*{footline}{split theme}
{%
  \leavevmode%
  \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
    \usebeamerfont{author in head/foot}\@ifundefined{place}{}{\place, } \insertdate\hspace*{2.06mm}\textbar\hspace*{2.06mm}\insertshortauthor\hspace*{1.3mm}\textbar \hspace*{1.3mm} \insertframenumber\ (\inserttotalframenumber)
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fill]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \end{beamercolorbox}}%
  \vskip0pt%
}
\mode
<all>

My test document:

\documentclass{beamer}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{hyperref}
\usepackage[english]{babel}
\usepackage{eso-pic}
\usepackage{tikz}

\newenvironment{wideitemize}{\itemize\addtolength{\itemsep}{10pt}}{\enditemize}

%Edit the next line for screen resolution. Just edit the number in brackets after ratio
% Use 169 for 16:9 screen resolution and 43 for 4:3.

\def\ratio{169} % Use 169 for 16:9 ratio and 43 for 4:3 ratio



\mode<presentation>
    {
    \usetheme{utlsb}
    \setbeamercovered{transparent = 28}
    }





\title{Beamer Template}
\date{2012}
\subtitle{edited by ben}
\author{Aiko Kuehn}
\institute{test}
\def \place{test}

\begin{document}

\begin{frame}[plain]
    \titlepage
\end{frame}


\AtBeginSection[]
{
   \begin{frame}
       \frametitle{Outline}
       \tableofcontents[currentsection]
   \end{frame}
}

\section{AAAAA AAAAA AAAAA}
\subsection[WWWWW WWWWW WWWWW]{An analysis of the
effect of the revised recruitment policies on staff
turnover at divisional headquarters}

\begin{frame}
    \frametitle{What is Beamer?}
        \begin{itemize}
            \item Test
            \item Test
            \item Test
        \end{itemize}
\subsection[test]{test}
$\displaystyle\sum\limits_{i=1}^{13} x_i^2$.
\end{frame}


\begin{frame}
    \frametitle{Beamer 2?}
        \begin{wideitemize}
            \item Test
            \item Test
            \pause
            \item Test
            \pause
            \item Test
            \pause
            \item Test
            \pause
            \item Test
        \end{wideitemize}
\end{frame}



\section{WWWWW WWWWW WWWWW}






\begin{frame}
    \frametitle{Another Section Test}

        \begin{theorem}[It's a theorem]
            Theorem Box
        \end{theorem}

        \begin{exampleblock}{Example}
            Exemple Box.
        \end{exampleblock}

        \begin{alertblock}{Alert}
            Alerted Box
        \end{alertblock}
\end{frame} 

\end{document}
share|improve this question
Thanks for providing a complete document. – Gonzalo Medina Sep 6 '12 at 16:25

1 Answer

up vote 1 down vote accepted

Putting

\setbeamertemplate{section in head/foot shaded}[default][10]

either in the file beamerthemeutlsb.styright before \mode<all> or in your test .tex file like this

\mode<presentation>
    {
    \usetheme{utlsb}
    \setbeamercovered{transparent = 28}
    \setbeamertemplate{section in head/foot shaded}[default][10]
    }

produces the desired effect; here's an image of the headline I obtained from your test file showing the sections with the desired shading (I used the demo option for graphicx since I didn't have your logos):

enter image description here

As you can see, section "AAAA AAAA AAAA AAAA" is fully visible and section "WWWW WWWW WWWW WWWW" is below and almost invisible.

share|improve this answer
Thank you very much! It worked this way... – ben Sep 6 '12 at 16:46

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.