# What Beamer theme is used in Boyd's Convex Optimization slides?

I really like the theme that is used here:

http://www.stanford.edu/~boyd/cvxbook/bv_cvxslides.pdf Can someone identify the name of the theme?

-
–  Claudio Fiandrino Apr 8 '13 at 16:53
Is this a theme? That look like the plain beamer presentation with a small modifications to fonts and colors. –  m0nhawk Apr 8 '13 at 16:54
The most common (default) Beamer themes can be found on www.hartwork.org. It seems that those slides are based on the user's own customized template, as @m0nhawk suggests. –  Kevin C Apr 8 '13 at 17:10
It's a powerdot (or something that predates beamer) theme if I remember correctly, because I asked him once. –  percusse Apr 8 '13 at 17:43
Wouldn't the easiest thing be to e-mail Stephen Boyd and just ask him (and then tell us what he said)? –  Sverre Apr 8 '13 at 17:58

I do not know how Boyd produced his slides (he might have used powerdot, according to percusse's comment above), but I largely based my lecture template on his, because I like its sober style and printer-friendliness.

The following code might require some additional tweaks to exactly replicate Boyd's template. Note, in particular, that

1. the original template has a different paper size, which I didn't bother matching (even though the ratio in my template is the same);
2. The title page is slightly different from Boyd's.
3. I changed the item symbol to shaded grey balls, which I find easier on the eye than plain black ones.

However, I think my template should get you halfway there.

\documentclass[
smaller,
%handout,
]{beamer}

% -------- Packages ---------
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{pgfpages}
\usepackage{fancyhdr}

% ----- Beamer tweaks -----
\let\Tiny=\tiny % to prevent warnings from LaTeX (due to Beamer)
\useoutertheme{infolines}
\mode<beamer>{\usetheme{default}}
\usecolortheme{dove}
\setbeamercovered{transparent}
\usefonttheme[onlymath]{serif}

\setbeamersize{text margin left=30pt}
\setbeamersize{text margin right=30pt}

\setbeamertemplate{itemize items}[ball]
\setlength{\leftmargini}{1.2em}
\setlength{\leftmarginii}{1em}

\setcounter{tocdepth}{1}
\setbeamertemplate{section in toc}[ball unnumbered]
\AtBeginSection[]{
\begin{frame}[handout:0]
\frametitle{Contents}
\tableofcontents[currentsection]
\end{frame}
}
\setbeamerfont{itemize/enumerate body}{size=\normalsize}

\setbeamertemplate{frametitle}
{
\begin{centering}
\large
\textbf{\insertframetitle}
\par
\end{centering}
}

% ----- Redefinition of frame (to reset footnote numbering at each frame) -----
\let\oldframe\frame                         % backup old frame
\let\endoldframe\endframe                   % backup old endframe
\renewenvironment{frame}{%
\setcounter{footnote}{0}\oldframe%
}{\endoldframe}                             % Reset the footnote counter at each frame

% ----- Footnote symbols -----
\renewcommand*{\thefootnote}{\fnsymbol{footnote}}

% ----- Handout settings -----
\mode<handout>{\usetheme{default}}
\mode<handout>{\pgfpagesuselayout{4 on 1}[a4paper,border shrink=5mm, landscape]}
\mode<handout>{\pgfpageslogicalpageoptions{1}{border code=\pgfusepath{stroke}}}
\mode<handout>{\pgfpageslogicalpageoptions{2}{border code=\pgfusepath{stroke}}}
\mode<handout>{\pgfpageslogicalpageoptions{3}{border code=\pgfusepath{stroke}}}
\mode<handout>{\pgfpageslogicalpageoptions{4}{border code=\pgfusepath{stroke}}}

% ----- fancyhdr -----
\setbeamertemplate{footline}{ % Footer
\leavevmode
\vskip0pt
\hbox{
% left
\hspace*{25pt}
\end{beamercolorbox}

% right
\hspace*{30pt}
\end{beamercolorbox}
}
\vskip17pt
}

\newcounter{lectnum}        % Lecture counter
\setcounter{lectnum}{99}    % lecture counter
\title{my title}            % topic from syllabus
\subtitle[EE2376234]{Convex Optimization}
\author{Jubobs}
\date{}

\begin{document}
% ----- Title Page -----
{% these braces define the local group associated to the titlepage

\leavevmode
\vskip20pt
\hbox{
% left
\hspace*{25pt}
\end{beamercolorbox}

% center
% nothing
\end{beamercolorbox}

% right
\hfill
\hspace*{30pt}
\end{beamercolorbox}
}
}

\setbeamertemplate{footline}{ % footer
\leavevmode
\vskip0pt%
\hbox{
% left
\hspace*{25pt}
\end{beamercolorbox}

% center
\end{beamercolorbox}

% right
\hspace*{30pt}
\end{beamercolorbox}
}
\vskip17pt
}

\begin{frame}
\frametitle{}
\begin{center}
%\vspace{-3mm}
{\large \textbf{Lecture~\arabic{lectnum}}}\\
{\Large \textbf{\inserttitle}}
\end{center}
\tableofcontents
\end{frame}

}

%
\section{Introduction}

%
\begin{frame}
\frametitle{Objectives}
By the end of this lecture, you should
\begin{itemize}
\item be able to solve a big nonconvex QCQP without a computer
\item be a Matlab and Python guru
\item know CVX like the back of your hand
\end{itemize}
\end{frame}

\section{Linear systems}

\section{Convex optimization}

\end{document}

-
Aaargh control people invading TeX.SE... Ruuuun –  percusse Apr 8 '13 at 17:41
@percusse Actually, in one of his lecture, Boyd pokes fun at people who use the term "control community" :) My bet is that Boyd was referring to Maciejowski, whose book on MPC contains the term "control community". –  Jubobs Apr 8 '13 at 18:25
Don't get me started on control theory :) –  percusse Apr 8 '13 at 18:52