1

So! Like many people here, I'm trying to customise a beamer template to look like the .ppt template my university uses. For the regular slides, I'd like them to look like this:

My goal:

I'm getting pretty close! I have found a tutorial on how to make your own templates and have built my own .sty file. This is the way my slides look now:Current situation:

The only thing missing is the bar of colours. I have defined the colourcodes and so on and have created something that looks a lot like that bar, using the following code:

% Defining the different colours:
\definecolor{ULB}{RGB}{0,76,147}
\definecolor{ULBpoly}{RGB}{26,23,27}
\definecolor{ULBdroit}{RGB}{226,0,122}
\definecolor{ULBarch}{RGB}{144,190,69}
\definecolor{ULBsopo}{RGB}{0,143,194}
\definecolor{ULBphilo}{RGB}{133,135,140}
\definecolor{ULBmed}{RGB}{227,33,25}
\definecolor{ULBpsy}{RGB}{0,107,179}
\definecolor{ULBsci}{RGB}{108,80,152}
\definecolor{ULBsolvay}{RGB}{246,169,36}
\definecolor{ULBeurope}{RGB}{0,80,154}
\definecolor{ULBpharm}{RGB}{0,135,81}
% Adding them all together
\colorbox{ULB}{} \\ 
\vspace{-7.5pt}\colorbox{ULBpoly}{} \\
\vspace{-7.5pt}\colorbox{ULBdroit}{} \\
\vspace{-7.5pt}\colorbox{ULBarch}{} \\
\vspace{-7.5pt}\colorbox{ULBsopo}{} \\
\vspace{-7.5pt}\colorbox{ULBphilo}{} \\
\vspace{-7.5pt}\colorbox{ULBmed}{} \\
\vspace{-7.5pt}\colorbox{ULBpsy}{}  \\
\vspace{-7.5pt}\colorbox{ULBsci}{} \\
\vspace{-7.5pt}\colorbox{ULBsolvay}{} \\
\vspace{-7.5pt}\colorbox{ULBeurope}{} \\
\vspace{-7.5pt}\colorbox{ULBpharm}{} \\

If I put this into a different .tex file to test it out, it delivers something looking like this:Bar

My question is twofold: 1) How do I get the coloured bar where I want it to be? I've added the University logo in the sidebar, and defined a background image for the University seal. I am a novice in template design, so I'm probably not using the most elegant methods.

2) How do I make LaTeX forget everything when I customise the titleframe, which looks totally different.

The MWE of the .sty file:

mode<presentation>
\usepackage{pgfcomp-version-0-65}
\usepackage{xcolor}
\definecolor{ULB}{RGB}{0,76,147}
\definecolor{ULBpoly}{RGB}{26,23,27}
\definecolor{ULBdroit}{RGB}{226,0,122}
\definecolor{ULBarch}{RGB}{144,190,69}
\definecolor{ULBsopo}{RGB}{0,143,194}
\definecolor{ULBphilo}{RGB}{133,135,140}
\definecolor{ULBmed}{RGB}{227,33,25}
\definecolor{ULBpsy}{RGB}{0,107,179}
\definecolor{ULBsci}{RGB}{108,80,152}
\definecolor{ULBsolvay}{RGB}{246,169,36}
\definecolor{ULBeurope}{RGB}{0,80,154}
\definecolor{ULBpharm}{RGB}{0,135,81}
\setbeamertemplate{sidebar canvas left}{
    {\includegraphics[width=1cm,height=5cm]{example-image-16x9.jpg}}
    } 
\usebackgroundtemplate{\includegraphics[height=9.5cm,trim=-55cm 0 0 -37cm]{example-image-1x1.jpg}\vspace{2cm}}
\setbeamertemplate{frametitle}{\vspace*{2.5mm}\hspace*{1.5mm}\insertframetitle}
\mode
<all> 

MWE for the presentation:

\documentclass{beamer}
\usetheme{MWE}
\usepackage{mwe}
\begin{document}
\begin{frame}\frametitle{Introduction}
\begin{itemize}
\item this is point 1
\item this is point 2
\end{itemize}
\end{frame}
\end{document}

I realise there are lots of "customise beamer" posts out there, but none seemed to help me with my specific problem.

6
  • Please add a minimal working example (MWE) which people can copy-paste-compile. You can use images from the mwe package or you can specify height/width and pass demo to graphicx so people don't need your logos etc. You are more likely to get help if you do this. Right now, it would be an awful lot of work to try to help (and probably not very effective either).
    – cfr
    Dec 2, 2014 at 0:22
  • You can build a graphic with all your elements and use it as background for your slides. \begin{frame}[plain] will construct a slide without headlines or footlines.
    – Ignasi
    Dec 2, 2014 at 7:55
  • For absolute positioning of a graphic you can use the textpos package.
    – crixstox
    Dec 2, 2014 at 10:41
  • Thanks, the problem however is not (only) the positioning of the colorbars, but rather that they don't show up at all...
    – Emma
    Dec 2, 2014 at 11:00
  • I am from the ULB too. Would it be possible to have the beamer theme you created? Thanks
    – jgarciax
    Jun 6, 2015 at 8:36

1 Answer 1

3

For me it works to use this definition:

\setbeamertemplate{sidebar canvas left}{
{\includegraphics[width=1cm,height=5cm]{example-image-16x9.jpg}
\vfill
\hspace*{0.4cm}\vspace{-0.1px}\colorbox{ULB}{}\\
\hspace*{0.4cm}\vspace{-0.1px}\colorbox{ULBpoly}{}\\
\hspace*{0.4cm}\vspace{-0.1px}\colorbox{ULBdroit}{}\\
\hspace*{0.4cm}\vspace{-0.1px}\colorbox{ULBarch}{}\\
\hspace*{0.4cm}\vspace{-0.1px}\colorbox{ULBsopo}{}\\
\hspace*{0.4cm}\vspace{-0.1px}\colorbox{ULBphilo}{}\\
\hspace*{0.4cm}\vspace{-0.1px}\colorbox{ULBmed}{}\\
\hspace*{0.4cm}\vspace{-0.1px}\colorbox{ULBpsy}{}\\
\hspace*{0.4cm}\vspace{-0.1px}\colorbox{ULBsci}{}\\
\hspace*{0.4cm}\vspace{-0.1px}\colorbox{ULBsolvay}{}\\
\hspace*{0.4cm}\vspace{-0.1px}\colorbox{ULBeurope}{}\\
\hspace*{0.4cm}\vspace{-0.1px}\colorbox{ULBpharm}{}}
}

The \hspace moves the blocks to the right and the \vspace reduces the distance a little bit. Otherwise there seems to be a tiny gap or region with a different color in between the blocks.

EDIT:

My new version using beamercolorblocks that allow defining the size of the squares and the positioning at a single place - might be either to adjust to your needs. First I defined some beamercolors to use in the colorbox and then a command (sidebarblock) that generates a block with a certain shift to the right and this little negative vspace. The height and width of the block is given by wd and ht and the beamercolor is given as an argument.

\setbeamercolor{beamerULB}{bg=ULB, fg=white}
\setbeamercolor{beamerULBpoly}{bg=ULBpoly, fg=white}
\setbeamercolor{beamerULBdroit}{bg=ULBdroit, fg=white}
\setbeamercolor{beamerULBarch}{bg=ULBarch, fg=white}
\setbeamercolor{beamerULBsopo}{bg=ULBsopo, fg=white}
\setbeamercolor{beamerULBphilo}{bg=ULBphilo, fg=white}
\setbeamercolor{beamerULBmed}{bg=ULBmed, fg=white}
\setbeamercolor{beamerULBpsy}{bg=ULBpsy, fg=white}
\setbeamercolor{beamerULBsci}{bg=ULBsci, fg=white}
\setbeamercolor{beamerULBsolvay}{bg=ULBsolvay, fg=white}
\setbeamercolor{beamerULBeurope}{bg=ULBeurope, fg=white}
\setbeamercolor{beamerULBpharm}{bg=ULBpharm, fg=white}

\newcommand{\sidebarblock}[1]{
 \hspace*{.4cm}\vspace{-0.1px}
 \begin{beamercolorbox}[wd=5pt,ht=5pt]{#1}\end{beamercolorbox}
}

\setbeamertemplate{sidebar canvas left}{
\includegraphics[width=1cm,height=5cm]{example-image-16x9.jpg}
\vfill
\sidebarblock{beamerULB}\\
\sidebarblock{beamerULBpoly}\\
\sidebarblock{beamerULBdroit}\\
\sidebarblock{beamerULBarch}\\
\sidebarblock{beamerULBsopo}\\
\sidebarblock{beamerULBphilo}\\
\sidebarblock{beamerULBmed}\\
\sidebarblock{beamerULBpsy}\\
\sidebarblock{beamerULBsci}\\
\sidebarblock{beamerULBsolvay}\\
\sidebarblock{beamerULBeurope}\\
\sidebarblock{beamerULBpharm}\\
}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .