Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please enable Beamer notes (including the "show only notes" beamer option) in article mode. #902

Open
krivit opened this issue Jun 20, 2024 · 2 comments

Comments

@krivit
Copy link

krivit commented Jun 20, 2024

My use case is slides for mathematical lecture notes, with proofs to be done on the board. I'd like to have a cheat sheet with proof notes embedded in the LaTeX source, but the proof notes often don't fit on a single slide. I'd therefore like to be able to export them (and only them) in the article mode.

@samcarter
Copy link
Collaborator

You could use https://tex.stackexchange.com/a/51018/36296 to display notes in the article:

\documentclass{article}
\usepackage{beamerarticle}

\newif\ifshowonlynotes
\showonlynotestrue

\makeatletter
\newif\ifbeamer@inlecture\beamer@inlecturetrue
\def\beamer@currentmode{beamer}
\input{beamerbasenotes.sty}
\def\beamer@currentmode{article}

\renewcommand\beamer@outsideframenote[2][]{%
  \def\beamer@noteenvstart{}%
  \def\beamer@noteenvend{}%
  \setkeys{beamernotes}{#1}%
  \par
  \beamer@noteenvstart#2\beamer@noteenvend%
  \par
}

\setbeamertemplate{frame begin}{\beamer@framenotesbegin}
\setbeamertemplate{frame end}{\beamer@setupnote\beamer@notesactions}

\ifshowonlynotes
  \let\beamer@dosingleframe=\beamer@donoframe
  \g@addto@macro\beamer@endframe{\usebeamertemplate{frame end}}
\fi
\makeatother

\begin{document}
\begin{frame}
slide
\note{note text}
\end{frame}
\end{document}

@krivit
Copy link
Author

krivit commented Jun 22, 2024

@samcarter, thank you very much, that's exactly what I am looking for! I suppose I didn't find the right search keywords.

I think it might still be good to include this as a switch, perhaps activated by \setbeameroption{show only notes} in beamerarticle mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants