Boyd 的凸优化幻灯片中使用了什么 Beamer 主题?

Boyd 的凸优化幻灯片中使用了什么 Beamer 主题?

我真的很喜欢这里使用的主题:

http://www.stanford.edu/~boyd/cvxbook/bv_cvxslides.pdf 有人能辨认出主题的名字吗? 在此处输入图片描述

答案1

我不知道 Boyd 是如何制作他的幻灯片的(powerdot根据 percusse 的上述评论,他可能使用了),但我的讲座模板主要基于他的,因为我喜欢它朴素的风格和打印友好性。

以下代码可能需要进行一些额外的调整才能完全复制 Boyd 的模板。特别要注意的是

  1. 原始模板具有不同的纸张尺寸,我没有费心去匹配(即使我的模板中的比例相同);
  2. 标题页与博伊德的略有不同。
  3. 我将物品符号改为阴影灰色球,我发现它比纯黑色球更容易看。

不过,我认为我的模板应该能帮你实现一半目标。


在此处输入图片描述


在此处输入图片描述


\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}
\setbeamertemplate{navigation symbols}{}
\setbeamercovered{transparent}
\usefonttheme[onlymath]{serif}

\linespread{1.5}
\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} 
  \addtocounter{framenumber}{-1} 
} 
\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{headline}{} % No header
\setbeamertemplate{footline}{ % Footer
    \leavevmode
    \vskip0pt
    \hbox{ 
        % left
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,left]{title in head/foot}
        \hspace*{25pt}
        \usebeamerfont{title in head/foot}\textcolor{gray}{\inserttitle}
    \end{beamercolorbox}

    % right
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{page number in head/foot}
            \usebeamerfont{page number in head/foot}\arabic{lectnum}-\insertpagenumber{}
        \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}
\institute[JA]{Jubobs academy}
\date{}



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

\setbeamertemplate{headline}{ % header
    \leavevmode
    \vskip20pt
    \hbox{
    % left
    \begin{beamercolorbox}[wd=.33\paperwidth,ht=2.25ex,dp=1ex,left]{subtitle in head/foot}
            \hspace*{25pt}
            \usebeamerfont{subtitle in head/foot}\insertshortsubtitle
    \end{beamercolorbox}

    % center
    \begin{beamercolorbox}[wd=.33\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}
        % nothing
    \end{beamercolorbox}

    % right
    \begin{beamercolorbox}[wd=.32\paperwidth,ht=2.25ex,dp=1ex,right]{institute in head/foot}
            \hfill
            \usebeamerfont{institute in head/foot}\insertinstitute
            \hspace*{30pt}
    \end{beamercolorbox}
    }
}

\setbeamertemplate{footline}{ % footer
    \leavevmode
    \vskip0pt%
    \hbox{
    % left
    \begin{beamercolorbox}[wd=.333\paperwidth,ht=2.25ex,dp=1ex,left]{author in head/foot}
        \hspace*{25pt}
        \usebeamerfont{author in head/foot}\insertauthor
    \end{beamercolorbox}

    % center
    \begin{beamercolorbox}[wd=.333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}
        \usebeamerfont{author in head/foot}\texttt{[email protected]}
    \end{beamercolorbox}

    % right
    \begin{beamercolorbox}[wd=.333\paperwidth,ht=2.25ex,dp=1ex,right]{page number in head/foot}
        \usebeamerfont{page number in head/foot}\textcolor{black}{\arabic{lectnum}-\insertpagenumber{}}
        \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}

相关内容