TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 was trying to write a custom LaTeX class where I need to access the value of \@title. I wrote

\newcommand{\makeack}{Hello World  \@title World}

But the value of \@title is not printed when I use \makeack in the .tex file. But I could successfully use \@title in the modified \@maketitle I defined like


I am a beginner in writing classes.

share|improve this question
up vote 6 down vote accepted

The default document classes make the title-related macros (\@title, \@date and \@author) empty once you call \maketitle. If you wish to keep copies of them around, you need to store these elsewhere. One way would be to update the \title (and friends) macro to not only store its contents in \@title (yes, that's what \title does), but also in something for your use, like \stored@title, say:


The titling package does a similar thing, if you're interested.

share|improve this answer

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.