有没有什么主题可以满足这些要求?

有没有什么主题可以满足这些要求?

我正在尝试做一个演示,其中:

  • 第一页必须包括主题、作者、2 名教练的姓名和顶部的 2 个徽标,以及包含作者、主题、日期和页码的页脚。
  • 对于其余页面,唯一的要求是在页面顶部显示所有章节以及选定的当前章节及其部分。

是否有针对此类需求定义的库?如果没有,请问如何实现?

注意:我目前有一个很长的章节名称,其长度为“xxxxxxxxxxxxxx xx xxxxxxxx x xxxxxxxx xxx xxxxxx xx xxxxxxx”。

答案1

这是我使用外部主题的修改版本的可能性之一split;而不是example-image-a使用example-image-b徽标的文件名:

\documentclass[xcolor={dvipsnames}]{beamer}
\usepackage{tikz}
\usetheme{CambridgeUS}
\useoutertheme{split}
\usecolortheme{spruce}

\makeatletter
\defbeamertemplate*{footline}{mytheme}
{%
  \leavevmode%
  \hbox{\begin{beamercolorbox}[wd=0.35\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=0.35\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=0.3\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
    \usebeamerfont{title in head/foot}\insertshortdate\hfill
    \insertframenumber/\inserttotalframenumber
  \end{beamercolorbox}}%
  \vskip0pt%
}
\makeatother

\setbeamercolor*{structure}{bg=PineGreen!20,fg=PineGreen}

\setbeamercolor*{palette primary}{use=structure,fg=white,bg=structure.fg!50}
\setbeamercolor*{palette secondary}{use=structure,fg=white,bg=structure.fg!75}
\setbeamercolor*{palette tertiary}{use=structure,fg=white,bg=structure.fg!50!black}
\setbeamercolor*{palette quaternary}{fg=white,bg=structure}

\setbeamercolor{section in toc}{fg=black,bg=white}
\setbeamercolor{alerted text}{use=structure,fg=structure.fg!50!black!80!black}

\setbeamercolor{titlelike}{parent=palette primary,fg=structure.fg!50!black}
\setbeamercolor{frametitle}{bg=gray!10!white,fg=PineGreen}

\setbeamercolor*{titlelike}{parent=palette primary}

\author[Author One \and Author Two]{
\texorpdfstring{
  \begin{minipage}{.5\textwidth}
    \centering
    Author One \\
    \href{mailto:[email protected]}{[email protected]}
  \end{minipage}%       
  \begin{minipage}{.5\textwidth}
    \centering
    Author Two \\
    \href{mailto:[email protected]}{[email protected]}
  \end{minipage}\\[2.5ex]      
  \begin{minipage}{.5\textwidth}
    \centering
    Advisor One \\
    \href{mailto:[email protected]}{[email protected]}
  \end{minipage}%       
  \begin{minipage}{.5\textwidth}
    \centering
    Advisor Two \\
    \href{mailto:[email protected]}{[email protected]}
  \end{minipage}%
   }{Author One and Author Two}
}
\title{Work Culture}

\begin{document}

\begingroup
\setbeamertemplate{headline}{}
\begin{frame}
\titlepage
\begin{tikzpicture}[remember picture,overlay]
\fill[PineGreen!75!black]
  (current page.north west)
  rectangle
  ([yshift=-1.7cm]current page.north east);
\node[outer sep=0pt,inner sep=0pt,anchor=north west]
  at (current page.north west)
  {\includegraphics[height=1.7cm]{example-image-a}};
\node[outer sep=0pt,inner sep=0pt,anchor=north east]
  at (current page.north east)
  {\includegraphics[height=1.7cm]{example-image-b}};
\end{tikzpicture}
\end{frame}
\endgroup

\section{Test Section One}
\begin{frame}
test text
\end{frame}

\subsection{Test Subsection One One}
\begin{frame}
test text
\end{frame}

\subsection{Test Subsection One Two}
\begin{frame}
test text
\end{frame}

\section{Test Section Two with a Really Really Really Long Title}
\begin{frame}
test text
\end{frame}

\subsection{Test Subsection Two One}
\begin{frame}
test text
\end{frame}

\subsection{Test Subsection Two Two}
\begin{frame}
test text
\end{frame}

\section{Test Section Three}
\begin{frame}
test text
\end{frame}

\subsection{Test Subsection Three One}
\begin{frame}
test text
\end{frame}

\subsection{Test Subsection Three Two}
\begin{frame}
test text
\end{frame}

\subsection{Test Subsection Three Three}
\begin{frame}
test text
\end{frame}

\end{document}

标题页图片:

在此处输入图片描述

第二部分中的一个框架的图像,显​​示一个长标题。左侧部分包含所有部分的名称;当前部分突出显示。右侧部分包含当前部分的所有子部分的名称;当前子部分突出显示。

在此处输入图片描述

更新

在评论中提到,演示文稿的标题可能太长;在这种情况下,有两种可能性:要么使用可选参数\title,如

\title[short title for footer]{long long long long title for the titlepage}

提供标题的较短版本,该版本将出现在页脚中。如果这不是一个选项,并且长标题必须出现在页脚中,那么我建议修改模板,footline如下所示。还要求将标题页中的徽标向下移动:

\documentclass[xcolor={dvipsnames}]{beamer}
\usepackage{tikz}
\usetheme{CambridgeUS}
\useoutertheme{split}
\usecolortheme{spruce}

\makeatletter
\defbeamertemplate*{footline}{mytheme}
{%
  \leavevmode%
  \vbox{%
  \hbox{\begin{beamercolorbox}[wd=\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \end{beamercolorbox}}%
  \hbox{\begin{beamercolorbox}[wd=0.333333\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=0.33333\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil,center]{author in head/foot}%
    \usebeamerfont{title in head/foot}\insertshortdate\hfill
  \end{beamercolorbox}%
 \begin{beamercolorbox}[wd=0.33333\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil,right]{author in head/foot}%
     \insertframenumber/\inserttotalframenumber\hspace*{1em}
  \end{beamercolorbox}}}%
  \vskip0pt%
}
\makeatother

\setbeamercolor*{structure}{bg=PineGreen!20,fg=PineGreen}

\setbeamercolor*{palette primary}{use=structure,fg=white,bg=structure.fg!50}
\setbeamercolor*{palette secondary}{use=structure,fg=white,bg=structure.fg!75}
\setbeamercolor*{palette tertiary}{use=structure,fg=white,bg=structure.fg!50!black}
\setbeamercolor*{palette quaternary}{fg=white,bg=structure}

\setbeamercolor{section in toc}{fg=black,bg=white}
\setbeamercolor{alerted text}{use=structure,fg=structure.fg!50!black!80!black}

\setbeamercolor{titlelike}{parent=palette primary,fg=structure.fg!50!black}
\setbeamercolor{frametitle}{bg=gray!10!white,fg=PineGreen}

\setbeamercolor*{titlelike}{parent=palette primary}

\author[Author One \and Author Two]{
\texorpdfstring{
  \begin{minipage}{.5\textwidth}
    \centering
    Author One \\
    \href{mailto:[email protected]}{[email protected]}
  \end{minipage}%       
  \begin{minipage}{.5\textwidth}
    \centering
    Author Two \\
    \href{mailto:[email protected]}{[email protected]}
  \end{minipage}\\[2.5ex]      
  \begin{minipage}{.5\textwidth}
    \centering
    Advisor One \\
    \href{mailto:[email protected]}{[email protected]}
  \end{minipage}%       
  \begin{minipage}{.5\textwidth}
    \centering
    Advisor Two \\
    \href{mailto:[email protected]}{[email protected]}
  \end{minipage}%
   }{Author One and Author Two}
}
\title{A Really Really Really Really Really Really Long Title for the Presentation}

\begin{document}

\begingroup
\setbeamertemplate{headline}{}
\begin{frame}
\begin{tikzpicture}[remember picture,overlay]
\fill[PineGreen!75!black]
  (current page.north west)
  rectangle
  ([yshift=-0.75cm]current page.north east);
\node[outer sep=0pt,inner sep=0pt,anchor=north west]
  at ([yshift=-0.75cm]current page.north west)
  {\includegraphics[height=1cm]{example-image-a}};
\node[outer sep=0pt,inner sep=0pt,anchor=north east]
  at ([yshift=-0.75cm]current page.north east)
  {\includegraphics[height=1cm]{example-image-b}};
\end{tikzpicture}
\titlepage
\end{frame}
\endgroup

\section{Test Section One}
\begin{frame}
test text
\end{frame}

\subsection{Test Subsection One One}
\begin{frame}
test text
\end{frame}

\subsection{Test Subsection One Two}
\begin{frame}
test text
\end{frame}

\section{Test Section Two with a Really Really Really Long Title}
\begin{frame}
test text
\end{frame}

\subsection{Test Subsection Two One}
\begin{frame}
test text
\end{frame}

\subsection{Test Subsection Two Two}
\begin{frame}
test text
\end{frame}

\section{Test Section Three}
\begin{frame}
test text
\end{frame}

\subsection{Test Subsection Three One}
\begin{frame}
test text
\end{frame}

\subsection{Test Subsection Three Two}
\begin{frame}
test text
\end{frame}

\subsection{Test Subsection Three Three}
\begin{frame}
test text
\end{frame}

\end{document}

新的扉页:

在此处输入图片描述

放大的图像显示了新的设计footline

在此处输入图片描述

相关内容