自定义投影仪笔记页的标题

自定义投影仪笔记页的标题

我想自定义文档注释页的标题区域。我分别更改了和beamer的背景/前景色,并打算保留它们(在此示例中)。note titlenote page

另外,我想从笔记页面中删除日期,幻灯片标题,以及与标题相关的脚注(如果有的话,在相应的幻灯片上)。我还想删除右侧幻灯片的缩略图。最后,我想移动滑动注释页上的标题(以及章节标题,如果有的话,最多两个,因此可能是“章节”和“小节”),以便标题区域占用较少的垂直空间(可能仍然比相应幻灯片的标题区域略高)。

目前我拥有的是:

\documentclass[11pt]{beamer}

\usepackage{pgfpages}

\makeatletter 
\def\beamer@framenotesbegin{
    \usebeamercolor[fg]{normal text}
    \gdef\beamer@noteitems{}% 
    \gdef\beamer@notes{}% 
}
\makeatother

\setbeamersize{text margin left=7mm,text margin right=7mm}
\usetheme[sectionpage=progressbar,subsectionpage=progressbar,progressbar=frametitle]{metropolis}

\setbeamertemplate{note page}[infolines]
\setbeameroption{show notes on second screen=right}
\setbeamercolor{note title}{bg=yellow}
\setbeamercolor{note page}{fg=blue}
\setbeamercolor{note page}{bg=green}
\setbeamerfont{note page}{size=\scriptsize}
\addtobeamertemplate{note page}{\setbeamerfont{itemize/enumerate subbody}{size=\scriptsize}}{}
\addtobeamertemplate{note page}{\setbeamerfont{itemize/enumerate subsubbody}{size=\tiny}}{}

\renewcommand*\footnoterule{}
\setbeamerfont{footnote}{size=\tiny}

\title{Slides Title}
\author{Autho Name}
\institute{Author Affiliation}
\date{}

\begin{document}
\maketitle

\begin{frame}{Slide Title\footnote{Some footnote}}
    Some text in the main slides
\end{frame}

\note{
    Some notes
}
%------------------------------------------------

\end{document}

并带有注释来显示我想要的内容(显然更改也适用于其他页面,包括第一个标题页):

在此处输入图片描述

答案1

如果在幻灯片标题中添加脚注,还可以使用可选参数来\frametitle定义目录和注释页中使用的标题(不带脚注):

\begin{frame}
   \frametitle[Title used in toc and in notes]%
   {Title used in frame\footnote{with a footnote}}
\end{frame}

自定义笔记页面

在下面的代码中,我通过复制预定义选项(来自)并注释掉无用的代码来定义模板custom的选项。note pagedefaultbeamerouterthemedefault.sty

\documentclass[11pt]{beamer}

\usepackage{pgfpages}

\makeatletter 
\def\beamer@framenotesbegin{
    \usebeamercolor[fg]{normal text}
    \gdef\beamer@noteitems{}% 
    \gdef\beamer@notes{}% 
}

\defbeamertemplate*{note page}{custom}
{%
  {%
    \scriptsize
    \usebeamerfont{note title}\usebeamercolor[fg]{note title}%
    \ifbeamercolorempty[bg]{note title}{}{%
      \insertvrule{.25\paperheight}{note title.bg}%
      \vskip-.25\paperheight%
      \nointerlineskip%
    }%
    \vbox{
      %\hfill\insertslideintonotes{0.25}\hskip-\Gm@rmargin\hskip0pt%
      %\vskip-0.25\paperheight%
      %\nointerlineskip
      % \begin{pgfpicture}{0cm}{0cm}{0cm}{0cm}
      %   \begin{pgflowlevelscope}{\pgftransformrotate{90}}
      %     {\pgftransformshift{\pgfpoint{-2cm}{0.2cm}}%
      %       \pgftext[base,left]{\usebeamerfont{note date}\usebeamercolor[fg]{note date}\the\year-\ifnum\month<10\relax0\fi\the\month-\ifnum\day<10\relax0\fi\the\day}}
      %   \end{pgflowlevelscope}
      % \end{pgfpicture}
    }
    \nointerlineskip
    \vbox to .25\paperheight{\vskip0.5em
      %\hbox{\insertshorttitle[width=0.75\textwidth]}%
      \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]{0.71\textwidth}\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]{0.71\textwidth}\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=0.67\textwidth]}\fi%
      }%
      \vfil}%
  }%
  \ifbeamercolorempty[bg]{note page}{}{%
    \nointerlineskip%
    \insertvrule{.75\paperheight}{note page.bg}%
    \vskip-.75\paperheight%
  }%
  \vskip.25em
  \nointerlineskip
  \insertnote
}
\makeatother

\setbeamersize{text margin left=7mm,text margin right=7mm}
\usetheme[sectionpage=progressbar,subsectionpage=progressbar,progressbar=frametitle]{metropolis}


\setbeamertemplate{note page}[custom]

\setbeameroption{show notes on second screen=right}
\setbeamercolor{note title}{fg=orange!75!black,bg=orange!10}
\setbeamercolor{note page}{fg=green!50!black,bg=green!10}
\setbeamerfont{note page}{size=\scriptsize}
\addtobeamertemplate{note page}{\setbeamerfont{itemize/enumerate subbody}{size=\scriptsize}}{}
\addtobeamertemplate{note page}{\setbeamerfont{itemize/enumerate subsubbody}{size=\tiny}}{}

\renewcommand*\footnoterule{}
\setbeamerfont{footnote}{size=\tiny}

\title{Global Title}
\author{Author Name}
\institute{Author Affiliation}
\date{}

\begin{document}
\maketitle

\section{First section}
\subsection{First subsection}
\begin{frame}
  \frametitle[Slide Title]{Slide Title\footnote{Some footnote}}
    Some text in the main slides
\end{frame}

\note{
    Some notes
}
%------------------------------------------------

\end{document}

在此处输入图片描述

在此处输入图片描述

全宽标题(和可调整比例)

这是带有全宽标题的新版本。此模板custom的新选项使用可选参数来指定用于插入标题的note page比例(默认情况下.25) 。在我的示例中,我使用(因为我的示例使用非常长的标题)。如果您的幻灯片使用短标题,您可以尝试或...\paperheight.3.2.15

\documentclass[11pt]{beamer}

\usepackage{pgfpages}

\makeatletter 
\def\beamer@framenotesbegin{
    \usebeamercolor[fg]{normal text}
    \gdef\beamer@noteitems{}% 
    \gdef\beamer@notes{}% 
}

\defbeamertemplate*{note page}{custom}[1][.25] % #1: proportion of \paperheight for titles (default: 0.25)
{%
  \def\beamercustomnotepageproptitle{#1}%
  \pgfmathsetmacro\beamercustomnotepagepropnotes{1-\beamercustomnotepageproptitle}%
  {%
    \scriptsize
    \usebeamerfont{note title}\usebeamercolor[fg]{note title}%
    \ifbeamercolorempty[bg]{note title}{}{%
      \insertvrule{\beamercustomnotepageproptitle\paperheight}{note title.bg}%
      \vskip-\beamercustomnotepageproptitle\paperheight%
      \nointerlineskip%
    }%
    \nointerlineskip
    \vbox to \beamercustomnotepageproptitle\paperheight{\vskip0.5em
      \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]{\dimexpr\textwidth-4pt-.4pt-9pt-1pt}%
            \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]{\dimexpr\textwidth-17.4pt-.4pt-9pt-1pt}%
            \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=\dimexpr\textwidth-30.8pt-.4pt-9pt-1pt]}\fi%
      }%
      \vfil}%
  }%
  \ifbeamercolorempty[bg]{note page}{}{%
    \nointerlineskip%
    \insertvrule{\beamercustomnotepagepropnotes\paperheight}{note page.bg}%
    \vskip-\beamercustomnotepagepropnotes\paperheight%
  }%
  \vskip.25em
  \nointerlineskip
  \insertnote
}
\makeatother

\setbeamersize{text margin left=7mm,text margin right=7mm}
\usetheme[sectionpage=progressbar,subsectionpage=progressbar,progressbar=frametitle]{metropolis}


\setbeamertemplate{note page}[custom][.3]

\setbeameroption{show notes on second screen=right}
\setbeamercolor{note title}{fg=orange!75!black,bg=orange!10}
\setbeamercolor{note page}{fg=green!50!black,bg=green!10}
\setbeamerfont{note page}{size=\scriptsize}
\addtobeamertemplate{note page}{\setbeamerfont{itemize/enumerate subbody}{size=\scriptsize}}{}
\addtobeamertemplate{note page}{\setbeamerfont{itemize/enumerate subsubbody}{size=\tiny}}{}

\renewcommand*\footnoterule{}
\setbeamerfont{footnote}{size=\tiny}

\title{Global Title}
\author{Author Name}
\institute{Author Affiliation}
\date{}

\begin{document}
\maketitle

\section{First section with very very very very very very vvery very very very very very very very long title}
\subsection{First subsection with very very very very v v v very very very very very very very very long title}
\begin{frame}
  \frametitle[Very Very Very Very Very Very v Very Very Very Very Very Very Very Very Very Long Slide Title As Short Title]
  {Slide Title\footnote{Some footnote}}

  Some text in the main slides
\end{frame}

\note{
    Some notes
}
%------------------------------------------------

\end{document}

在此处输入图片描述

在此处输入图片描述

相关内容