Beamer - 删除注释部分的标题但保留背景颜色

Beamer - 删除注释部分的标题但保留背景颜色

我想删除 Beamer 注释部分的标题,但希望保留灰色背景颜色以将其与幻灯片区分开。请问该怎么做?

我发现这个帖子(投影仪幻灯片侧面的注释) 展示了如何删除页眉。但是当我按照他们的建议操作时,背景颜色变成了白色。

我也尝试了这个帖子的建议(如何更改 Beamer 笔记页的背景颜色?),但是一旦我删除标题,它就不起作用了。

梅威瑟:

\documentclass{beamer}
\usepackage{pgfpages}
\setbeameroption{show notes on second screen=bottom}

\setbeamertemplate{note page}{\insertnote}
\setbeamercolor{note page}{bg=white!90!black, fg=black}
\setbeamercolor{note title}{bg=white!80!black, fg=black}
\setbeamercolor{note date}{parent=note title}

\begin{document}
\begin{frame}
This is my slides.
\note{This is my notes. The background color should be gray to distinguish it from slides.}
\end{frame}
\end{document}

输出(第二张幻灯片的背景颜色应为灰色):

在此处输入图片描述

答案1

借助该tcolorbox

\documentclass{beamer}
\usepackage{pgfpages}
\usepackage[skins]{tcolorbox}
\newtcolorbox{note box}{enhanced,
                 height=\paperheight,
                 frame hidden,
                 boxrule=0mm,
                 colback=bg, % note background color defined by beamer 
                 arc=0mm,
                 grow to left by=1cm,
                 grow to right by=1cm,
                  }
                  
\setbeameroption{show notes on second screen=bottom}

%\setbeamercolor{note page}{bg=white!90!black, fg=black}
%\setbeamercolor{note title}{bg=white!80!black, fg=black}
\setbeamertemplate{note page}{% 
               \begin{note box}
                 \insertnote
               \end{note box}
}


\begin{document}
\begin{frame}
This is my slides.
\note{This is my notes. The background color should be gray to distinguish it from slides. }
\end{frame}


\end{document}

答案2

这里 aa MWE 基于 beamer 本身如何为笔记页绘制背景颜色(即不调用任何其他包):

\documentclass{beamer}
\setbeameroption{show notes on second screen}

\setbeamercolor{note page}{bg=gray, fg=white}
\setbeamertemplate{note page}{%
    % adds in bg color
        \insertvrule{\paperheight}{note page.bg}%
        \vskip-\paperheight%
    % changes font color
        \usebeamercolor[fg]{note page}%
    % inserts note
        \insertnote%
}

\begin{document}
\begin{frame}
This will be on my slides.
\note{This will be my notes. The background color will be gray to distinguish it from slides. }
\end{frame}
\end{document}

相关内容