Commit 5462ac67 authored by Bernhard Heinloth's avatar Bernhard Heinloth
Browse files

Do not autogroup in pdfpc - fix issue of pdfpc notes on wrong page

parent 54db61db
......@@ -54,7 +54,7 @@ preview-%: %.tex $(wildcard *.bib) $(PACKAGE_TGT) $(CACHE_DIR)
@cd $(dir $< ) && $(COMPILE_TEX) $(notdir $<) -pvc -interaction=nonstopmode -view=pdf
pdfpc-%: %.pdf
@pdfpc -p -C $<
@pdfpc -g -p -C $<
evince-%: %.pdf
@evince $<
......
......@@ -79,7 +79,7 @@
\endgroup
\def\lastframenumber{0}
\def\lastpage{0}
% define command \pnote{} that works like note but
% additionally writes notes to file in pdfpc readable format
......@@ -88,11 +88,11 @@
\note{#1}%
% if frame changed - write a new header
\ifdim\theframenumber pt>\lastframenumber pt
\let\lastframenumber\theframenumber
\ifdim\thepage pt>\lastpage pt
\let\lastpage\thepage
\begingroup
\let\#\hashchar
\immediate\write\pdfpcnotesfile{\#\#\# \theframenumber}%
\immediate\write\pdfpcnotesfile{\#\#\# \thepage}%
\endgroup
\fi
......
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