[texhax] title in header

Fehd, Ronald J. (CDC/CCHIS/NCPHI) rjf2 at CDC.GOV
Mon Oct 22 23:37:55 CEST 2007


> From: "Loeghmon T. Nejad" <loeghmon at gmail.com>
> Subject: [texhax] title in header

> 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   }

the variable you want is \@title

Here is some code I use to get my title into my .pdf descriptions:

my papers use the class file: sugconf.cls
which is where the variables SUG* come from

\makeatletter%necessary to copy title and author into pdf description
\usepackage[bookmarks   =false%SUGI style guide
           ,pdfauthor   ={\@author}%
           ,pdfcreator  ={pdfLaTeX sugconf.cls}%
           ,pdfkeywords ={\SUGconfKeywords}%
           ,pdfstartview=FitBH%fit width of page to the window
           ,pdfsubject  ={\SUGconfSubject}%
           ,pdftitle    ={\@title}%
]{hyperref}\makeatother\begin{document}%

so:

\makeatletter
\fancyhead[LO, RE]{\@title}
\makeatother

Ron Fehd  the macro maven  CDC Atlanta GA USA RJF2 at cdc dot gov



More information about the texhax mailing list