Beamer Note 标题 - 如何使其看起来像普通框架中使用的信息线?

Beamer Note 标题 - 如何使其看起来像普通框架中使用的信息线?

我特别想:

  • 删除文档标题。
  • 在同一行中显示章节和小节标题,居中对齐。
  • 保留灰色配色方案。

这是 MWE,附有当前输出的屏幕截图。

(注释页代码借自并经过修改:https://tex.stackexchange.com/a/159607

\documentclass[notes]{beamer}
\usecolortheme{whale}
\useinnertheme{rounded}
\useoutertheme{infolines}

\beamertemplatenavigationsymbolsempty
\setbeamertemplate{footline}[frame number]
\setbeamerfont{note title}{size=\tiny}

\makeatletter
\defbeamertemplate*{note page}{mynotes}
{%
  {%
    \scriptsize
    \usebeamerfont{note title}\usebeamercolor[fg]{note title}%
    \ifbeamercolorempty[bg]{note title}{}{%
      \insertvrule{0.15\paperheight}{note title.bg}%
      \vskip-.15\paperheight%
      \nointerlineskip%
    }%
    \nointerlineskip
    \vbox to .15\paperheight{\vskip0.5em
      \hbox{\insertshorttitle[width=8cm]}%
      \setbox\beamer@tempbox=\hbox{\insertsection}%
      \hbox{\ifdim\wd\beamer@tempbox>1pt{\hskip4pt\raise3pt\hbox{\vrule
            width0.4pt height7pt\vrule width 9pt
            height0.4pt}}\hskip1pt\hbox{\begin{minipage}[t]{7.5cm}\def\breakhere{}\insertsection\end{minipage}}\fi%
      }%
      \setbox\beamer@tempbox=\hbox{\insertsubsection}%
      \hbox{\ifdim\wd\beamer@tempbox>1pt{\hskip17.4pt\raise3pt\hbox{\vrule
            width0.4pt height7pt\vrule width 9pt
            height0.4pt}}\hskip1pt\hbox{\begin{minipage}[t]{7.5cm}\def\breakhere{}\insertsubsection\end{minipage}}\fi%
      }%
      \setbox\beamer@tempbox=\hbox{\insertshortframetitle}%
      \hbox{\ifdim\wd\beamer@tempbox>1pt{\hskip30.8pt\raise3pt\hbox{\vrule
            width0.4pt height7pt\vrule width 9pt
            height0.4pt}}\hskip1pt\hbox{\insertshortframetitle[width=7cm]}\fi%
      }%
      \vfil}%
  }%
  \ifbeamercolorempty[bg]{note page}{}{%
    \nointerlineskip%
    \insertvrule{.85\paperheight}{note page.bg}%
    \vskip-.85\paperheight%
  }%
  \vskip.25em
  \nointerlineskip
  \insertnote
}
\makeatother

\setbeamertemplate{note page}[mynotes]

\title{Document Title}
\author{Author Name}

\begin{document}

\section{Section Title}
\subsection{Subsection Title}

\begin{frame}
Content goes here
\end{frame}

\note {
Notes go here
}

\end{document}

输出

答案1

您可以将笔记页面重新定义为如下内容:

\documentclass[notes]{beamer}
\usecolortheme{whale}
\useinnertheme{rounded}
\useoutertheme{infolines}

\beamertemplatenavigationsymbolsempty
\setbeamertemplate{footline}[frame number]
\setbeamerfont{note title}{size=\tiny}

\makeatletter
\defbeamertemplate*{note page}{mynotes}
{%
  {%
    \scriptsize
    \usebeamerfont{note title}\usebeamercolor[fg]{note title}%
    \ifbeamercolorempty[bg]{note title}{}{%
      \insertvrule{0.05\paperheight}{note title.bg}%
      \vskip-.05\paperheight%
      \nointerlineskip%
    }%
    \nointerlineskip
    \vbox to .05\paperheight{\vfil
      \begin{minipage}[t]{.48\linewidth}
        \hfill\insertsection
      \end{minipage}%
      \hfill
      \begin{minipage}[t]{.48\linewidth}
        \insertsubsection\hfill
      \end{minipage}%      
      \vfil}%
  }%
  \ifbeamercolorempty[bg]{note page}{}{%
    \nointerlineskip%
    \insertvrule{.95\paperheight}{note page.bg}%
    \vskip-.95\paperheight%
  }%
  \vskip.25em
  \nointerlineskip
  \insertnote
}
\makeatother

\setbeamertemplate{note page}[mynotes]

\title{Document Title}
\author{Author Name}

\begin{document}

\section{Section Title}
\subsection{Subsection Title}

\begin{frame}
Content goes here
\end{frame}

\note {
Notes go here
}

\end{document}

在此处输入图片描述

相关内容