This answers the unwrap part
- Copy the below snippet to
test.tex
.
\documentclass[handout]{beamer}
\begin{document}
\begin{frame}
\frametitle{Foo}
\begin{block}{First Block}<+->
Foo bar.
\end{block}
\begin{block}{Second Block}<+->
Foo bar.
\end{block}
\end{frame}
\makeatletter
\gdef\beamer@currentmode{beamer}
\makeatother
\begin{frame}
\frametitle{Bar}
\begin{block}{First Block}<+->
Foo \uncover<+->{bar.}
\end{block}
\begin{block}{Second Block}<+->
Spam \uncover<+->{eggs.}
\end{block}
\end{frame}
\makeatletter
\gdef\beamer@currentmode{handout}
\makeatother
\end{document}
emacs -Q
M-x package-initialize
C-x b *scratch*
. Copy the below snippet and do M-x eval-buffer RET
.
(defalias 'unwrap
(kmacro "C-u C-x r s a C-<up> C-SPC C-<down> C-w <return> C-x r i a C-x C-s"))
(defalias 'unwrap
(kmacro "C-u C-x r s a C-<up> C-SPC C-<down> C-w C-x r i a"))
C-x C-f test.tex RET
.
M-x display-line-numbers-mode
M-g M-g 1327
C-2 C-c .
M-x unwrap RET
- Profit