TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using \date to specify my document's date for \maketitle. I would like to use the same date in my footer. Currently I have to enter the date twice: once in \date and once in \rfoot. Is there a way I can enter the date a single time and have \maketitle and \rfoot both use the same date?

Here's an excerpt from my original document:

\date{December 12, 2012}

\rfoot{December 12, 2012}



I found a related question: How can I use @author, @date, and @title after maketitle? so I tried this:

\date{December 12, 2012} \let\Date\@date




But that gives me an error:

./MyDoc.tex:45: LaTeX Error: Missing \begin{document}

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.

l.45 \date{December 12, 2012} \let\Date\@d
share|improve this question
up vote 3 down vote accepted

You have to use makeatletter and makeatother as in this code:


\title{This is title}\let\Title\@title
\author{Your name}          \let\Author\@author
\date{December 12, 2012}           \let\Date\@date





share|improve this answer
Just adding \makeatletter was enough to make it work. Now I'll do some research to figure out what it's doing. – SSteve Dec 13 '12 at 23:44
@SSteve It's safer to also add \makeatother; in a .tex file, \makeatletter changes the catcode of @ from 12 to 11 (to make it a "regular" letter) and \makeatother reverts this and assigns to @ catcode 12 again. – Gonzalo Medina Dec 14 '12 at 0:39
@GonzaloMedina I will do that. Thanks for the tip. – SSteve Dec 14 '12 at 0:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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