2

I'm preparing a series of beamer documents with different \titles, and the first slide of each document has the same title as the document \title. I want to be able to just change the content of \title for each document, and then the title of the first slide will be updated automatically.

\documentclass{beamer}

\title{Some Title}
  \makeatletter
  \hypersetup{pdftitle=\@title}
  \makeatother

\begin{document}

\begin{frame}{Some Title}
frame content
\end{frame}

\end{document}

Since the frame title is the same as \title and pdftitle, is there a way to set the frame title to be the same as pdftitle or \title without typing it again? I tried

\begin{frame}{\@title}

Obviously this didn't work.

5

One solution would be to have \def\mytitle{Title}, and then \hypersetup{pdftitle={\mytitle}} and \begin{frame}{\mytitle} as well as \title{\mytitle}.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.