如何创建 Beamer 模板?

如何创建 Beamer 模板?

有什么方法可以创建这种投影仪模板吗?

这是标题页 标题框

这是子框架 子框架

这是他们使用的徽标

在此处输入图片描述

答案1

作为成本加运费提到her comment,答案是肯定的。但是,设计一个完整的beamer主题需要(重新)定义许多元素,可能需要大量工作。下面是我开始重新定义title pagefootlineitemize item和模板itemize subitem的地方:itemize subsubitem

\documentclass{beamer}
\usepackage{tikz}

\definecolor{mypres}{RGB}{240,126,1}

% setting some colors for the theme
\setbeamercolor{palette primary}{fg=mypres,bg=white}
\setbeamercolor{palette secondary}{fg=mypres,bg=white}
\setbeamercolor{structure}{fg=mypres,bg=white}
\setbeamercolor{title in head/foot}{fg=black,bg=white}
\setbeamercolor{date in head/foot}{fg=gray,bg=white}

% definition of the footline template
\defbeamertemplate*{footline}{mytheme}{%
  \leavevmode%
  \hbox{\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm]{title in head/foot}%
    \makebox[2em][l]{{\usebeamerfont{title in head/foot}\textcolor{mypres}{\insertframenumber}}}%
    {\usebeamercolor{title in head/foot}\insertshorttitle}
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.2\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm]{date in head/foot}%
    \usebeamerfont{date in head/foot}\insertshortdate%
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.3\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm,right]{title in head/foot}%
    \includegraphics[width=.2\paperwidth,height=2.5ex,keepaspectratio]{gemalto}\hspace*{2em}%
  \end{beamercolorbox}}%
  \vskip0pt%
}

% definition of the title page template
\defbeamertemplate*{title page}{mytheme}[1][]
{%
  \begin{tikzpicture}[remember picture,overlay]
  \filldraw[mypres]
    (current page.north west) --
    ([yshift=-2cm]current page.north west) --
    ([xshift=-2cm,yshift=-2cm]current page.north east) {[rounded corners=15pt]--
    ([xshift=-2cm,yshift=3cm]current page.south east)} --
    ([yshift=3cm]current page.south west) --
    (current page.south west) --
    (current page.south east) --
    (current page.north east) -- cycle
    ;
  \node[text=mypres,anchor=south west,font=\sffamily\LARGE,text width=.55\paperwidth] 
  at ([xshift=10pt,yshift=-1cm]current page.west)
  (title)
  {\raggedright\inserttitle};   
  \node[anchor=west]
  at (title.east)
  {\includegraphics[height=0.75cm]{gemalto}};
  \node[text=white,font=\large\sffamily,anchor=south west]
  at ([xshift=30pt,yshift=0.5cm]current page.south west)
  (date)
  {\insertdate};
  \node[text=white,font=\large\sffamily,anchor=south west]
  at ([yshift=5pt]date.north west)
  (author)
  {\insertauthor};
  \end{tikzpicture}%
}

% remove navigation symbols
\setbeamertemplate{navigation symbols}{}

% definition of the symbols used in itemize
\newcommand\mysymbol{%
  \begin{tikzpicture}[xscale=0.85]
  \fill[mypres]
  (-1ex,1ex) to[out=-60,in=240,looseness=1.2]
  (1ex,1ex) to[out=240,in=120,looseness=1.2]
  (1ex,-1ex) to[out=120,in=60,looseness=1.2]
  (-1ex,-1ex) to[out=60,in=-60,looseness=1.2]
  cycle;  
  \end{tikzpicture}%
  }

% definition of the itemize templates
\defbeamertemplate*{itemize item}{mysymbol}{\small\raise0.5pt\hbox{\mysymbol}}
\defbeamertemplate*{itemize subitem}{mysymbol}{\footnotesize\raise0.5pt\hbox{\mysymbol}}
\defbeamertemplate*{itemize subsubitem}{mysymbol}{\footnotesize\raise0.5pt\hbox{\mysymbol}}

\title[The short title]{The title of the presentation}
\author{The Author}
\date{\today}

\begin{document}

\begin{frame}[plain]
\maketitle
\end{frame}

\begin{frame}
\frametitle{A test frame title}
\framesubtitle{A test frame subtitle}
\begin{itemize}
  \item This is some item.
  \item Another item.
  \begin{itemize}
    \item A subitem.
    \item Another subitem.
  \end{itemize}
  \item Yet another item.
\end{itemize}

\end{frame}

\end{document}

在此处输入图片描述

相关内容