I would like to use the same Latex source file for both my document and the accompanying slides.
When creating a document it's easy to hide the slide sections by doing this:
However, how do I do the inverse, i.e. How can I only generate the slides and hide the rest of the document if I want to print only my slides? Basically I want to say, if the content does not fall in a slide area, then don't show it.
Unfortunately I don't have a simple example to show, because I honestly don't know where to start.