GeneralInclude only selected slides using beamer

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
EdGatzke
Posts: 13
Joined: Thu Dec 02, 2010 5:48 pm

Include only selected slides using beamer

Post by EdGatzke »

Any ideas on how to efficiently allow for selecting out marked slides from a beamer presentation?

I know you can manually select out pages a variety of ways. Ideally, I could put something like
\includethispage={true}
on each page I would want automatically pulled out later, then change a flag in the preamble to only export the special pages if I want when compiling the document, otherwise export all pages?

I would rather not have to mess around with the style file, but that may be the only way to do it...

Thanks!
Last edited by EdGatzke on Tue Dec 14, 2010 10:54 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

EdGatzke
Posts: 13
Joined: Thu Dec 02, 2010 5:48 pm

Include only selected slides using beamer

Post by EdGatzke »

So now I realize if I am giving students handouts, maybe they need blank spaces where the notes should be so they can fill it in.

This works with a boolean set in the preamble (shownotes) with the following code:

Code: Select all

\ifthenelse{\boolean{shownotes}}{
Stuff to be shown or hidden here! 
This will be shown in the presentation but not the handouts!
}{\vspace{-.4 in}\center{\tiny{Space for Notes Below}}}
I tried to make this into two new commands, \starthide and \stophide so it would look like:

Code: Select all

\starthide
Stuff to be shown or hidden here! 
This will be shown in the presentation but not the handouts!
\stophide
but \newcommand seems not happy with unmatched { inside the command.

Maybe I am doing it wrong still?
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Include only selected slides using beamer

Post by frabjous »

Beamer has built in mechanisms for this. E.g. a frame beginning with:

Code: Select all

\begin{frame}<handout:0>
will be shown in the presentation but not the handout. There are also mode specifications, e.g.:

Code: Select all

\mode<handout>

Stuff only on the handout goes here.

\mode<presentation>

Stuff only in presentation...

\mode<all>

Back to both...
See chapter 21 of the beamer user's guide.
Post Reply