[pdftex] Using variables in \pdfinfo

Heiko Oberdiek oberdiek at ruf.uni-freiburg.de
Thu Oct 11 10:50:12 CEST 2001

On Wed, 10 Oct 2001, Bernd Becker wrote:

> Is it possible to use variables like \@author, \@title, etc. in a \pdfinfo
> structure ??
> Something like this:
> \pdfinfo{
> 	/Title (\@title)
> 	/Creator (Munin)
> 	/Producer (pdfLaTeX)
> 	/Author (\@author)
> }%
> will result in the variables being written to the .pdf like this:
> /xxxxx (\spacefactor \@m variablename)

* It seems, you can understand German, so look at the FAQ:
  http://www.dante.de/faq/de-tex-faq/ (look for "spacefactor").
  You have forgotten \makeatletter/\makeatother.

* Caution: the standard documentclasses clear the macros \@title,
  \@author in \maketitle, so the macros will be empty after the
  use of \maketitle.

* Look at hyperref:
    pdfauthor={Peter M"uller},

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>

More information about the pdftex mailing list