I want to create a custom beamer template, for the slides to look something like this
.
How can I go about it?
Thanks
beamertemplates
I want to create a custom beamer template, for the slides to look something like this
.
How can I go about it?
Thanks
A quick and dirty solution is to add a \vspace{}
after the frametitle
% Now that we have changed the headline, we will need to orient the frame titles in a way that the come at the right stop just above the horizontal line.
\setbeamertemplate{frametitle}{
\vspace*{4mm}\hspace*{0mm}\insertframetitle \vspace*{1cm}}
Full code:
%% beamerthemeMedian.sty
%% Author: Yiannis Gatsoulis
%% Date: November 2014
%% Preamble
\mode<presentation>
\RequirePackage{pgfcomp-version-0-65, textpos, xcolor, tikz}
%\voffset=2cm
%\topmargin=2cm
%\headsep=2cm
%\headheight=3cm
%% Variables
\newcommand\modulecode[1]{\def\insertmodulecode{#1}}
\modulecode{}
\newcommand\modulelongname[1]{\def\insertmodulelongname{#1}}
\modulelongname{}
\newcommand\moduleshortname[1]{\def\insertmoduleshortname{#1}}
\moduleshortname{}
\newcommand\handoutname[1]{\def\inserthandoutname{#1}}
\handoutname{}
\newcommand\titlesmallboxtext[1]{\def\inserttitlesmallboxtext{#1}}
\titlesmallboxtext{\inserthandoutname}
\newcommand\titlebigboxtext[1]{\def\inserttitlebigboxtext{#1}}
\titlebigboxtext{\inserttitle}
\newcommand\titleverybigboxtext[1]{\def\inserttitleverybigboxtext{#1}}
\titleverybigboxtext{\insertmodulecode: \insertmoduleshortname}
%% Colors
%\definecolor{ColorBgCanvas}{RGB}{230,230,250}
\definecolor{ColorBgCanvas}{RGB}{255,255,255}
\definecolor{ColorMain}{rgb}{0, 0, 0} % (rgb - 0, 0, 0) is nothing but black
\definecolor{ColorBigBox}{RGB}{41,65,113}
\definecolor{ColorBigBoxText}{RGB}{255, 255, 255}
\definecolor{ColorSmallBox}{RGB}{116,140,188}
\definecolor{ColorSmallBoxText}{RGB}{255, 255, 255}
% This sets the colour of the title of the presentation and titles of all the slides in the presentation to black.
\setbeamercolor{frametitle}{fg = ColorMain}
\setbeamercolor{title}{fg = ColorMain}
% In case you choose to display the Table of Contents, or the Outline slide.
\setbeamercolor{section in toc}{fg = ColorMain}
\setbeamercolor{section in toc shaded}{fg = ColorMain}
% The colour of all the items, subitems and and subsubitems are set to black.
% NOTE: Setting the color black for all the items also sets in black for other environemnts like enumerate
\setbeamercolor{item}{fg = ColorMain}
\setbeamercolor{subitem}{fg = ColorMain}
\setbeamercolor{subsubitem}{fg = ColorMain}
% This sets the color for each item heading of the description environment.
%\setbeamercolor{description item}{fg = Descitem}
% colours for captions for figures and tables.
\setbeamercolor{caption}{fg = ColorMain}
\setbeamercolor{caption name}{fg = ColorMain}
% In addition, we can also change the background colour of the slides depending on pur requirement.
%\setbeamercolor{background canvas}{bg=ColorBgCanvas}
% the colour of the text
\setbeamercolor{normal text}{fg=ColorMain}
%% Boxes
% Standard block
\setbeamercolor{block title}{bg=ColorSmallBox, fg=ColorSmallBoxText}
\setbeamercolor{block body}{bg=white}
% Alert block
\setbeamercolor{block title alerted}{bg=ColorSmallBox, fg=ColorSmallBoxText}
\setbeamercolor{block body alerted}{bg=white}
% Example block
\setbeamercolor{block title example}{bg=ColorSmallBox, fg=ColorSmallBoxText}
\setbeamercolor{block body example}{bg=white}
%%%%
%% Font theme
% Here we are using default fonts
\usefonttheme{professionalfonts}
%\setbeamerfont{}{size=\Large}
%\setbeamerfont{normal text}{size=\Large}
% Font of the frame titles
\setbeamerfont{frametitle}{size=\Large}
%%%%
%% Inner theme
\useinnertheme{rectangles}
%% Lists
\setlength{\leftmargini}{4mm}
\setbeamertemplate{itemize item}{\tikz{\draw[color=ColorSmallBox, semithick] rectangle(.18,.18);}}
%\setbeamertemplate{itemize/enumerate body begin}{\normalsize}
\setbeamertemplate{itemize subitem}{\tikz{\draw[color=ColorBigBox, ultra thick] rectangle(.15,.15);}}
\setbeamertemplate{itemize subsubitem}{\tikz{\draw[color=ColorSmallBox, semithick, fill] rectangle(.12,.12);}}
\setbeamertemplate{sections/subsections in toc}[square]
% The default option for enumerate environment removes the circles around the numbers provided by the "rounded" inner theme. Just simple numbers remain.
\setbeamertemplate{enumerate items}[default]
\setbeamerfont{enumerate item}{size=\small}
%%%%
%% Outer theme
\newcommand{\MedianLine}{%
\ifnum \insertpagenumber=1
\else
\raisebox{-15mm}[0pt][0pt]{%
\begin{pgfpicture}{0mm}{0mm}{0mm}{0mm}
\pgfsetlinewidth{3mm}
\color{ColorSmallBox}
\pgfline{\pgfpoint{-1cm}{0mm}}{\pgfpoint{-0.1cm}{0mm}}%
\pgfsetlinewidth{3mm}
\color{ColorBigBox}
\pgfline{\pgfpoint{0mm}{0mm}}{\pgfpoint{12cm}{0mm}}%
\end{pgfpicture}}
\fi}
% Include the line that we just created in the headline
\setbeamertemplate{headline}[text line]{\MedianLine}
% Now that we have changed the headline, we will need to orient the frame titles in a way that the come at the right stop just above the horizontal line.
\setbeamertemplate{frametitle}{
\vspace*{4mm}\hspace*{0mm}\insertframetitle \vspace*{1cm}}
%% Footline
\newcommand{\Ffootline}{%
\ifnum \insertpagenumber=1
\else
\insertmodulecode: \insertmoduleshortname % The left end of the footline
\hfill
\inserthandoutname~\inserttitle % The center
\hfill
\insertsection~~~~\insertframenumber % And the right end
\fi
}
\setbeamertemplate{footline}{%
\usebeamerfont{structure}
\begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex]{title in head/foot}%
\Tiny\hspace*{4mm} \Ffootline \hspace{4mm}
\end{beamercolorbox}}
%% Remove the navigation symbols
\setbeamertemplate{navigation symbols}{}
% We declare the image that will be used as the logo
%\pgfdeclareimage[width = 0.40\paperwidth]{big}{leeds_logo.png}
%% Title page
\setbeamertemplate{title page}{
%\begin{textblock*}{12cm}(6cm,-4.75cm)
%\colorbox{ColorBgCanvas}{%
%\begin{minipage}[t][3cm][b]{10cm}
%\pgfuseimage{big}
%\end{minipage}}
%\end{textblock*}
\begin{textblock*}{12cm}(2.15cm,1cm)
\colorbox{ColorBgCanvas}{%
\begin{minipage}[t][3cm][b]{10cm}
{\color{black}\Large\inserttitleverybigboxtext}
\end{minipage}}
\end{textblock*}
\begin{textblock*}{3cm}(-1cm,5cm)
\colorbox{ColorSmallBox}{%
\begin{minipage}[t][6mm][c]{2.75cm}
{\color{ColorSmallBoxText}\small\inserttitlesmallboxtext}
\end{minipage}}
\end{textblock*}
\begin{textblock*}{10cm}(2.15cm,5cm)
\colorbox{ColorBigBox}{%
\begin{minipage}[t][6mm][c]{10cm}
{\color{ColorBigBoxText}\small\inserttitlebigboxtext}
\end{minipage}}
\end{textblock*}
}
\mode
<all>
Regarding the normal text font, you can change it by installing the normal text
color using something like
\setbeamercolor{normal text}{fg=blue}
see example code below.
Regarding the highlighted text, first recall that beamer
already provides the \alert
command which gives the functionality that you seem to be looking for. In any case, if you want to provide your own settings, below I show two options. You can do something basic such as defining a color and a font:
% color for the new highlighted text
\setbeamercolor{hltext}{fg=olive}
% font for the new highlighted text
\setbeamerfont{Hl text}{size=\huge}
and then defining a command applying that color and font specification:
\newcommand<>\HighlightedText[1]{\only#2{{\usebeamercolor[fg]{hltext}\usebeamerfont{Hl text}#1}}}
Another option is to define something more elaborate similar to the \alert
command. Again, the first step is to set color and font as before, and then
% An improved version
\defbeamertemplate*{Hl text begin}{default}{\setbeamercolor{local structure}{parent=alerted text}}
\newenvironment{hlenv}
{%
\begin{altenv}%
{\usebeamertemplate{Hl text begin}\usebeamercolor[fg]{hltext}%
\usebeamerfont{Hl text}%
}{\usebeamertemplate{Hl text end}}{\color{.}}{}%
}
{\end{altenv}}
\newcommand<>{\Hltext}[1]{\begin{hlenv}#2\relax#1\end{hlenv}}
Here's a complete exmaple:
\documentclass{beamer}
% color for the normal text
\setbeamercolor{normal text}{fg=blue}
% color for the alerted text
\setbeamercolor{alerted text}{fg=magenta}
% color for the new highlighted text
\setbeamercolor{hltext}{fg=olive}
% font for the new highlighted text
\setbeamerfont{Hl text}{size=\huge}
% A rudimentary version
\newcommand<>\HighlightedText[1]{\only#2{{\usebeamercolor[fg]{hltext}\usebeamerfont{Hl text}#1}}}
% An improved version
\defbeamertemplate*{Hl text begin}{default}{\setbeamercolor{local structure}{parent=alerted text}}
\newenvironment{hlenv}
{%
\begin{altenv}%
{\usebeamertemplate{Hl text begin}\usebeamercolor[fg]{hltext}%
\usebeamerfont{Hl text}%
}{\usebeamertemplate{Hl text end}}{\color{.}}{}%
}
{\end{altenv}}
\newcommand<>{\Hltext}[1]{\begin{hlenv}#2\relax#1\end{hlenv}}
\begin{document}
\begin{frame}
\HighlightedText<1->{I am special.}\par
Here is a normal paragraph.\par
\Hltext<2->{I am special.}\par
\alert<3->{I am special.}\par
\begin{hlenv}<4>
I am special.
\end{hlenv}
\end{frame}
\end{document}
And an animation of the result:
Best Answer
I think the first thing you want to do is browse the themes available in the standard distribution. For that, look in the beamer manual, Part III. Then read about how beamer selects templates, fonts, and colors in Part II. Then start looking at the source code for the theme files, which are located in
${TEXMF}/tex/latex/beamer/themes
.This is not an easy thing to do, but if you find something that exists close to what you want you might be able to adapt it.