cebe / pdfpc-latex-notes

Latex Package that allows creating a pdfpc compatible notes file directly from your latex presentation \notes.
http://cebe.github.io/pdfpc-latex-notes
MIT License
147 stars 36 forks source link

PNote Does not Work Together with onlyenv #22

Open DaGeRe opened 6 years ago

DaGeRe commented 6 years ago

When I try to add an onlyenv-Stuff for 3 slides in one frame, the following notes are two slides too early:

\documentclass[hyperref={pdfpagelabels=false}]{beamer}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{pdfpcnotes}

\begin{document}

\begin{frame}{}
 My Title Slide

 \pnote{Say that this is this title slide!}

\end{frame}

\begin{frame}<1-3>
  \begin{onlyenv}<1-3>
    \begin{center}
      This is a slide
    \end{center}
  \end{onlyenv}
  \pnote{Say that this are three times the same slide}
\end{frame}

\begin{frame}[fragile]

Here comes the wrong positioning

\pnote{This note is displayed wrong}

\end{frame}
\end{document}

The note "This note is displayed wrong" is displayed on slide 3, i.e. on the second slide of frame 2, instead of slide 5, i.e. first and only slide of frame 3. Is there a workaround for this?

DaGeRe commented 6 years ago

I debugged this a little bit, and found that the error is in \documentclass[hyperref={pdfpagelabels=false}]{beamer}: If I instead write \documentclass{beamer}, it works. Since I do not remember why I added this parameter, for which use case the interaction with pdfpc does not work, or if there is a use case for this parameter at all.

cebe commented 6 years ago

could be related to #21 using a different page counter may help to fix this.