The standard classes store the title given using \title in a global macro called \@title. However, this information is not retained after \maketitle (for historical reasons). Thus if you want the information to persist, the easiest way is to redefine \title to save the data in a macro of your choosing
\makeatletter
\xdef\my@title{No \string\title\space given!}
\renewcommand{\title}[1]{%
\gdef\@title{#1}%
\gdef\my@title{#1}%
}
\makeatother
while of course retaining the standard set up for \maketitle. You can then use \my@title to recover the information, for example by writing it to the log file.
make: it might be handy to give more detail as there will have to be some programming at the LaTeX end in any case. (LaTeX standard classes store the title in\@titlebut it's not kept after\maketitle.) – Joseph Wright♦ Oct 30 '12 at 11:43\title{...}? Or is the title whatever gets put in the PDF metadata for the title? When polling, do you just want to get the title or is it okay to compile the whole document? If the former, what if there are macros in the title - should they be expanded (if they can)? – Andrew Stacey Oct 30 '12 at 11:51\title. I didn't even know I could configure the PDF metadata distinctly - I'll look into that. Compiling the whole document first would be acceptable but clearly non-optimal. Macros should probably be expanded, yes. I can see now that there are more factors to this than I first realised. – Lightness Races in Orbit Oct 30 '12 at 11:56\titledeclaration whereupon it expands its argument (as much as possible) and merrily quits (actually, to do it properly it should be the\maketitlethat forces the exit). That would save on compiling the rest of the document. – Andrew Stacey Oct 30 '12 at 11:58