#74 Support labelgroups / tags

open
nobody
tag (1) label (1)
5
2014-03-25
2014-03-25
No

Following the discussion initiated on TeX StackExchange, I would like to somehow automate the generation of the presentation by controlling the frame I wish to include. It seems to be possible statically with the <handout:0|beamer:0> parameters upon frame definition. Also, as suggested by Werner, a label can be added to frame such that later on, this frame is included is the label is listed using \includeonlyframes.

\begin{frame}[label=ConceptX]
 ...
\end{frame}
...
\includeonlyframes{...,ConceptX,...}

The drawback of the last approach is that there is no way to group the labels i.e to mimic the notion of tags: if several frame receive the label ConceptX, only the last one will be included.
It would be good thus to associate to each frame the notion of labelgroup or tags, and to have a macro to list the tag we wish to include for the presentation.
Then, upon existence, each frame would receive as tag at least the label of the closest [sub]section, and additional tag can be added to the frame, for instance with:

\section{Introduction}
\label{sec:intro}

\begin{frame}[tags=tag1,tag2]
 ...
\end{frame}

Then the above defined frame would be considered in the following situations:

\includeonlyframetags{...,sec:intro,...}
% OR
\includeonlyframetags{...,tag1,...}
% OR
\includeonlyframetags{...,tag2,...}
% OR
\includeonlyframetags{...,sec:intro,tag2,...}
% etc.

Would that make sense to you .?

Discussion


Log in to post a comment.