Cimbali / pympress

Pympress is a simple yet powerful PDF reader designed for dual-screen presentations
https://cimbali.github.io/pympress/
GNU General Public License v2.0
1.14k stars 88 forks source link

Notes are misaligned #290

Closed AtivJoshi closed 1 year ago

AtivJoshi commented 1 year ago

Describe the bug When the "notes position" is set to "after slide pages", the notes are completely misaligned.

To Reproduce Steps to reproduce the behavior:

  1. Make a beamer where notes are shown after the slide.
  2. Add the option \addtobeamertemplate{note page}{}{\thispdfpagelabel{notes:\insertframenumber}}
  3. Start pympress, enable notes mode, and, select Presentation > Notes position > After slide pages
  4. Some non-note slides are only shown in the notes section. Notes of some other slides are shown for the current slide.

Expected behavior Notes of the current slide need to be displayed.

Screenshots Screencast from 21-05-23 09:10:57 AM IST.webm

Environment (please complete the following information):

Debug information (see below for file locations)

Additional context I am not sure if the issue is with generating the latex file. I have generated a sample beamer for MWE on Overleaf which can be accessed here: https://www.overleaf.com/read/mbbqvqbfpxnx. Although the issue remains even if I compile the beamer locally on my machine. I am pasting the latex code for MWE here as well:

\documentclass[notes]{beamer}
\usepackage{graphicx} % Required for inserting images

\title{pympress}
\author{Anon}
\date{Title page has no notes}
\addtobeamertemplate{note page}{}{\thispdfpagelabel{notes:\insertframenumber}}
\begin{document}
\begin{frame}
    \titlepage
\end{frame}

\begin{frame}{Introd}
This is frame 1. This has no notes
\end{frame}

\begin{frame}{Frame 2}
    This is frame 2.
    \note[item]{This is note for frame 1}

\end{frame}
\begin{frame}{Frame 3}
    This is frame 3.
    \note[item]{This is note for frame 3}

\end{frame}
\begin{frame}{Frame 4}
    This is frame 4.
\end{frame}
\begin{frame}{Frame 5}
    This is frame 5.
\end{frame}
\begin{frame}{Frame 6}
    This is frame 6.
    \note[item]{This is note for frame 6}

\end{frame}
\end{document}
Cimbali commented 1 year ago

If you use \addtobeamertemplate{note page}{}{\thispdfpagelabel{notes:\insertframenumber}, then the corresponding option for notes position is Prefixed labels not After slide pages. I think possibly:

However this feature was introduced in pympress 1.7.2 so you’ll need to update if you want to use it.

AtivJoshi commented 1 year ago

Thank you.