Sign up ×
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've been looking for an answer everywhere to this, but so far, nothing seems to have worked. What I would like to do is change the background colour and font colour of the \titlepage command, but to do so within the custom .sty file I have generated, i.e. I don't want to have to specify the change in colours within the .tex file.

The (hopefully as basic as possible) .tex file outline is (some lines are commented out to ensure the example can be run without extra files - if you wish to add your own files to see it working, feel free!):


    \usepackage{epsfig} % Modifies table/figure captions

    \author{Author Name}
    \title{Presentation Title}
    \institute{Institute Name}




       \section{Example Section}
          \frametitle{Example Frame}

       \section{Second Example}
          \frametitle{Example Frame With a Block}
          \begin{block}{Test Block}
             Testing the block colour here\ldots{}

The associated beamerthemeOxford.sty file is thus:



    % Define the colours that are to be used in the presentation
    \definecolor{oxfordblue}{RGB}{0,33,71}          % Oxford Blue
    \definecolor{oxfordgold}{cmyk}{0,0.21,0.60,0.30}    % Oxford Gold

    % Set which colours apply to which structures
    \setbeamercolor{section in head/foot}{bg=oxfordblue,fg=white}

    % Define the headline and titlebar
       \begin{beamercolorbox}[wd=1\paperwidth,left]{section in head/foot}

    % \pgfdeclareimage[height=1.1cm]{logo}{logo_file}
       \begin{beamercolorbox}[wd=1\paperwidth,left]{section in head/foot}
             \shade[left color=white,right  color=oxfordblue] (0,0) rectangle +(11,0.02);
          % \pgfuseimage{logo}

    % Adapt other segments of code
    \setbeamertemplate{navigation symbols}{}

    % Ensures navigation circles are displayed

    % Reformat Title Page to our own specifications
    \setbeamertemplate{title page}
    \setbeamercolor*{background canvas}{fg=oxfordblue,bg=oxfordblue}
    %   \setbeamercolor*{title}{fg=oxfordblue,bg=oxfordblue}
    %   \setbeamercolor{titlelike}{parent=structure}
          % \includegraphics[width=0.5\textwidth]{pic1}\\
          % \includegraphics[width=0.5\textwidth]{pic2}\\
          % \includegraphics[width=0.5\textwidth]{pic3}


There were various other hacks that I tried, but they all came to nothing and were inelegant kludges. In either case, the background colour of the title page remains resolutely white, whereas I want to have the background as oxfordblue and the font as white. Does anyone know what I'm doing wrong?

Thanks for your help.

share|improve this question
I can't compile your MWE. After commenting the \includegraphics lines of beamerthemeOxford.sty, compilation fails with ! Missing $ inserted. <inserted text> $ l.22 \end{frame}... – Xavier Jul 28 '13 at 19:19
There's also a logo_file earlier in the code - I've now commented it out in the example so it should work straight from the box. – Phil G Jul 28 '13 at 19:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.