Beamer – Beamer Section Page and Show Notes for Every Page

beamernotessectioning

I want to have a notepage for every single page, even if it will be empty. This I accomplished with the help of this answer https://tex.stackexchange.com/a/11724/36296

But now, I have the problem, that I also want to have a special page at the beginning of a new section. But when I try to add a \note{...} after a new section started, there is an additional empty notepage.

Edit:

The goal I am trying to achieve is that after the section page the note page with "notes to section page" follows immediately without an empty notepage first.

\documentclass{beamer}

\setbeameroption{show notes}

% notepage for every slide, even if empty
\makeatletter 
\def\beamer@framenotesbegin{%   
    \gdef\beamer@noteitems{}%   
    \gdef\beamer@notes{{}}%  
}
\makeatother

% section page
\AtBeginSection{%
    \begin{frame}
        \insertsection
    \end{frame}
}

\begin{document}

    \begin{frame}
        slide with note
        \note{testnote}
    \end{frame}

    \begin{frame}
        test with empty note
    \end{frame}

    \section{Section with note}
    \note{notes to section page}

\end{document}

enter image description here

Best Answer

You can use the beamer option show notes on second screen, which creates a double-width PDF document showing the actual frame on the left and the notes on the right. It ensures that each frame is followed by exactly one note page, so it doesn't need the manual solution described in Run macro on each frame in beamer. This approach relies on the package pgfpages, which has to be loaded manually before using the option:

\documentclass{beamer}

\usepackage{pgfpages}
\setbeameroption{show notes on second screen}

% section page
\AtBeginSection{%
    \begin{frame}
        \insertsection
    \end{frame}
}

\begin{document}

    \begin{frame}
        slide with note
        \note{testnote}
    \end{frame}

    \begin{frame}
        test with empty note
    \end{frame}

    \section{Section with note}
    \note{notes to section page}

\end{document}

page of a beamer document, showing a section page and the corresponding note page side-by-side