3

I have a simplified slideshow class that basically creates each slide as a new page within an article class document. I'd like to add the ability to define a slide as a "pocket slide", a slide whose content should go in the middle of the document, but will only be presented if questions are asked. As such, I'd like to define the slide in the middle of the document, but have the slide go at the end. Can anybody give a suggestion for a package/mechanism to "reserve" pages for later?

Example:

\documentclass[english,20pt]{puslides}
\begin{document}
\titleslide{Some Title Here}
\onecolumnslide{Introduction Content}
\onecolumnslide{Parenthetical Content}
\onecolumnslide{Conclusions}
\end{document}

And the output would be a slideshow in this order:

+------------+     +----------+      +-------------+     +---------------+
|            |     |          |      |             |     |               |
|            |     |          |      |             |     |               |
|    Title   +---->+  Intro   +----->+ Conclusions +---->+ Parenthetical |
|            |     |          |      |             |     |               |
|            |     |          |      |             |     |               |
+------------+     +----------+      +-------------+     +---------------+
ahagen
  • 133
  • There is the package beamersubframe which does something similar for beamer, you could have a look at the source code if you could "borrow" some of its code. (see https://tex.stackexchange.com/a/378650/36296 for an example of the package usage) – samcarter_is_at_topanswers.xyz Jul 24 '17 at 11:43

1 Answers1

2

Without your actual slide maker, I just show the basic concept, using \g@addto@macro to append content to an existing \def, which can be recalled at the end.

\documentclass{article}
\makeatletter
\def\pocketslides{}
\newcommand\savepocketslide[1]{\g@addto@macro\pocketslides{#1}}
\makeatother
\newcommand\titleslide[1]{TITLE: #1\clearpage}
\newcommand\onecolumnslide[1]{ONECOLUMNSLIDE: #1\clearpage}
\begin{document}
\titleslide{Some Title Here}
\savepocketslide{\onecolumnslide{Parenthetical Content}}
\onecolumnslide{Introduction Content}
\savepocketslide{\onecolumnslide{More Parenthetical Content}}
\onecolumnslide{Conclusions}
\pocketslides
\end{document}