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,10 +84,10 @@ ...@@ -84,10 +84,10 @@
% 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 % if frame changed - write a new header
\ifdim\thepage pt>\lastpage pt \ifdim\thepage pt>\lastpage pt
\let\lastpage\thepage \let\lastpage\thepage
...@@ -99,6 +99,7 @@ ...@@ -99,6 +99,7 @@
% write note to file % write note to file
\immediate\write\pdfpcnotesfile{\unexpanded{#2}}% \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