Commit 745eebaa authored by Bernhard Heinloth's avatar Bernhard Heinloth
Browse files

support beamer notes

parent 6c7659c5
......@@ -41,6 +41,7 @@
\RequirePackage{keyval}
\RequirePackage{calc}
\RequirePackage{pgfopts}
\RequirePackage{pgfpages}
\RequirePackage{tikz}
% \end{macrocode}
%
......@@ -578,6 +579,13 @@
fg=palette primary.fg
}
\usebeamercolor[fg]{palette primary}
\makeatletter
\def\beamer@framenotesbegin{% at beginning of slide
\usebeamercolor[fg]{palette primary}
\gdef\beamer@noteitems{}%
\gdef\beamer@notes{}%
}
\makeatother
}
% \end{macrocode}
%
......@@ -603,6 +611,11 @@
%
% \begin{macrocode}
\AtBeginEnvironment{beamer@frameslide}{
\makeatletter
\usebeamercolor[fg]{normal text}
\gdef\beamer@noteitems{}%
\gdef\beamer@notes{}%
\makeatother
\ifbool{neo@standout}{
\centering
\usebeamerfont{standout}
......
......@@ -32,6 +32,7 @@
%
% \begin{macrocode}
\RequirePackage{etoolbox}
\RequirePackage{pgfpages}
\RequirePackage{pgfopts}
% \end{macrocode}
%
......@@ -100,6 +101,22 @@
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{notes}
% Show notes in presentation
% \begin{macrocode}
\pgfkeys{/neo/notes/.cd,
.is choice,
none/.code=\pgfkeysalso{notes=hide},
hide/.code=\setbeameroption{hide notes},
show/.code=\setbeameroption{show notes},
only/.code=\setbeameroption{show only notes},
left/.code=\setbeameroption{show notes on second screen=left},
right/.code=\setbeameroption{show notes on second screen=right},
top/.code=\setbeameroption{show notes on second screen=top},
bottom/.code=\setbeameroption{show notes on second screen=bottom},
}
% \end{macrocode}
%
% Shortcut option names as aliases to the corresponding |key=value| options.
%
% \begin{macrocode}
......
......@@ -83,9 +83,9 @@
% define command \pnote{} that works like note but
% additionally writes notes to file in pdfpc readable format
\newcommand{\pnote}[1]{%
\newcommand{\pnote}[2][item]{%
% keep normal notes working
\note{#1}%
\note[#1]{#2}%
% if frame changed - write a new header
\ifdim\thepage pt>\lastpage pt
......@@ -97,7 +97,7 @@
\fi
% write note to file
\immediate\write\pdfpcnotesfile{\unexpanded{#1}}%
\immediate\write\pdfpcnotesfile{\unexpanded{#2}}%
}
% close file on \begin{document}
\AtEndDocument{%
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment