I want to include the values of author, date, and title in my use of fancyhdr in a document that uses \maketitle. Googling about, I saw that @date, etc. can access the date, etc., values set in the document preamble. It works fine, provided \maketitle is not used. Here's a minimal working example:
\documentclass{article}
\title{Things about Stuff}
\author{Someone}
\date{Somewhen}
\begin{document}
%\maketitle %Toggle comment and:
Now you see them, now you don't.
\makeatletter
\@date
\@author
\@title
\makeatother
\end{document}
So, 1) why does the use of \maketitle cause subsequent invocation of @date, etc. to yield nothing, and 2) how can I access the value of \date, etc after the use of \maketitle?
\maketitlemacro resets all of these macros:\global \let \@author \@empty \global \let \@date \@empty \global \let \@title \@empty– Martin Scharrer Sep 06 '11 at 23:01