[texhax] title in header

Lars Madsen daleif at imf.au.dk
Mon Oct 22 23:49:02 CEST 2007


Loeghmon T. Nejad :

> Is it possible in
> \documentclass{article}
> get the argument of the
> \title{this writing}
> and put it in
> \fancyhead[LO, RE]{     }
> in a fashion like \fancyhead[LO, RE]{\thepage}
> in oppose to
> \fancyhead[LO, RE]{  this writing   }
>

as you might have noticed article deletes the title data after \maketitle, 
the usual workaround is

\newcommand\mytitle{some text}

\title{\mytitle}

\fancyhead[...]{\mytitle}


/daleif


More information about the texhax mailing list