Commit 338cead9 authored by Bernhard Heinloth's avatar Bernhard Heinloth
Browse files

make pdfpcnotes overlay aware

parent 9b82c26f
Pipeline #30572 passed with stage
in 22 seconds
...@@ -84,21 +84,22 @@ ...@@ -84,21 +84,22 @@
% define command \pnote{} that works like note but % define command \pnote{} that works like note but
% additionally writes notes to file in pdfpc readable format % additionally writes notes to file in pdfpc readable format
\newcommand{\pnote}[2][item]{% \newcommand<>{\pnote}[2][item]{%
% keep normal notes working % keep normal notes working
\note[#1]{#2}% \note[#1]#3{#2}%
\only#3{%
% if frame changed - write a new header
\ifdim\thepage pt>\lastpage pt
\let\lastpage\thepage
\begingroup
\let\#\hashchar
\immediate\write\pdfpcnotesfile{\#\#\# \thepage}%
\endgroup
\fi
% if frame changed - write a new header % write note to file
\ifdim\thepage pt>\lastpage pt \immediate\write\pdfpcnotesfile{\unexpanded{#2}}%
\let\lastpage\thepage }%
\begingroup
\let\#\hashchar
\immediate\write\pdfpcnotesfile{\#\#\# \thepage}%
\endgroup
\fi
% write note to file
\immediate\write\pdfpcnotesfile{\unexpanded{#2}}%
} }
% close file on \begin{document} % close file on \begin{document}
\AtEndDocument{% \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