Example:
xxxxxxxxxx
\documentclass{beamer}
\begin{document}
\lecture{lecture 1}{week 1}
\begin{frame}
\end{frame}
\begin{frame}
see Lecture \ref{week 1}
\end{frame}
\end{document}
This yields
yet it would be nice to have something like “see Lecture ‘lecture 1’”, so printing the title of the lecture with label “week 1”.
Any ideas how to implement this? Ideally, this should be compatible with cross-referencing and \includeonlylecture
as explained at TeXSE
Icing on the cake would be the following: having a macro \lectureref{label}
, where label is a \label{}-label
on a frame within the scope of a \lecture{}-lecture
.
One can add the ability to \nameref
a beamer lecture with this little trick: