I'm within a beamer presentation (again) and trying to get a frame title to automatically print the title of the section from within a subsection. The code (with example of what I'd like to do) looks like this:
\documentclass{beamer}
\mode<presentation>
\title[Title]{Title}
\author{My Name}
\institute{Where I am}
\date{September 2013}
\begin{document}
\begin{frame}
\section{SECTION NAME}
\subsection{Subsection Name}
\begin{frame}{"SECTION NAME": Title of Frame}
Content
\end{frame}
To be clear, I'd like the "SECTION NAME" in quote marks to automatically pull the text of \section{SECTION NAME}
Thanks!
UPDATE:
Thanks to moewe, the solution was found. It comes from this article. The updated code looks like this:
\documentclass{beamer}
\usepackage{nameref}
\mode<presentation>
\title[Title]{Title}
\author{My Name}
\institute{Where I am}
\date{September 2013}
\begin{document}
\begin{frame}
\section{SECTION NAME}\label{itsname}
\subsection{Subsection Name}
\begin{frame}{\label{itsname}: Title of Frame}
Content
\end{frame}
\nameref
labels seem to work; however, they do require labels, which is labour intensive. For my purposes, this solution will work, though! Thanks.\label
twice but the second one should be a\ref
;-)