如何自定义外部主题的标题和脚注

如何自定义外部主题的标题和脚注

我正在将split外部主题与metropolis主主题一起使用。

我想split完全删除外部主题的标题(另外,为什么下面示例中的“议程”页面的标题显示“简介”?)?我如何自定义其页脚,如下所示:

  1. 删除左侧部分的文本(当前显示作者姓名)
  2. 在右侧使用一些任意文本(当前显示演示文稿标题)
  3. 自定义左手和右手部分的背景颜色

梅威瑟:

\documentclass{beamer}

\makeatletter
\usetheme[sectionpage=progressbar,subsectionpage=progressbar]{metropolis}
\useoutertheme{split}

\setbeamerfont{caption}{size=\scriptsize}

\setbeamertemplate{institute}{
    \begin{tikzpicture}[overlay,remember picture]
    \node[anchor=south west,align=left] at (-0.1,-2.6){\insertinstitute};
    \end{tikzpicture}
}
\setbeamersize{text margin left=7mm,text margin right=7mm}
\title{Presentation Title}
\author{Author Name}
\institute{Organization Name\\\\\\\\\tiny Blah blah\\\tiny \href{mailto:author@email}{author@email}}
\date{}
\begin{document}
    \maketitle

    \begin{frame}{Agenda}
        \begin{itemize}
            \item Introduction
            \item Main body
            \item Conclusion
        \end{itemize}
    \end{frame}
    %---------------------------------------------------

    \section{Introduction}

    \begin{frame}{Blah Blah}
        Say Something

    \end{frame}

    %------------------------------------------------

    \begin{frame}[standout]
        End Here
    \end{frame}

    %------------------------------------------------

\end{document}

答案1

以下代码显示如何清除标题以及如何更改页脚模板。

在此处输入图片描述

\documentclass{beamer}

\usetheme[sectionpage=progressbar,subsectionpage=progressbar]{metropolis}
\useoutertheme{split}

\setbeamerfont{caption}{size=\scriptsize}

\setbeamertemplate{institute}{
    \begin{tikzpicture}[overlay,remember picture]
    \node[anchor=south west,align=left] at (-0.1,-2.6){\insertinstitute};
    \end{tikzpicture}
}

\setbeamersize{text margin left=7mm,text margin right=7mm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Clear headline template
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{headline}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Change footline settings here
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamercolor{custom1}{fg=magenta,bg=green}
\setbeamercolor{custom2}{fg=cyan,bg=purple}
\setbeamerfont{footline}{series=\bfseries, family=\ttfamily}
\setbeamertemplate{footline}{%
    \leavevmode%
    \begin{beamercolorbox}[wd=0.5\textwidth, sep=0.4em]{custom1}%
        \strut
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=0.5\textwidth, sep=0.4em, right]{custom2}%
        \strut arbitrary text
    \end{beamercolorbox}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\title{Presentation Title}
\author{Author Name}
\institute{Organization Name\\\\\\\\\tiny Blah blah\\\tiny \href{mailto:author@email}{author@email}}
\date{}

\begin{document}

\maketitle

\begin{frame}{Agenda}
    \begin{itemize}
        \item Introduction
        \item Main body
        \item Conclusion
    \end{itemize}
\end{frame}

%---------------------------------------------------

\section{Introduction}

\begin{frame}{Blah Blah}
    Say Something

\end{frame}

%------------------------------------------------

\begin{frame}[standout]
    End Here
\end{frame}

%------------------------------------------------

\end{document}

相关内容