I want my frame title to look something like this:
Exercise 1 a)
I know I could achieve this by doing the following:
\begin{frame}{Exercise 1\hfill a)}
\end{frame}
But I do not want to write \hfill
all the time. Also, I can't use the subtitle for the a)
as I want to use the subtitle for other stuff.
I thought something like this must be possible:
\begin{frame}{Exercise 1}
\exnum{a)}
\end{frame}
\newcommand\exnum[1]{\frametitle{\insertframetitle\hfill{#1}}}
But I cannot use \insertframetitle
there, and I don't know why.
Does anybody have an idea how to achieve what I want?
\newcommand\exnum[1]{\frametitle{Exercise\hfill{#1}}}
?\newcommand{\frametype}{Exercise}
and use\newcommand{\exnum}[1]{\frametitle{\frametype\hfill #1}}
... and then change\renewcommand{\frametype}{Example}
, say.