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

The following MWE shows that, with report (and book) class, PDF information entries such as pdftitle specified thanks to \hypersetup are ignored if they are inserted after \maketitle (and not ignored if inserted before \maketitle).

\title{A Title}
\author{An Author}
  pdftitle=A PDF Ttitle,
  pdfauthor=A PDF Author,
  pdfsubject=A PDF Subject,
  pdfcreator=A PDF Creator,
  pdfproducer=A PDF Producer,
  pdfkeywords=A PDF Keyword%

It wouldn't be that surprising if it would be the case with all standard classes but, with article class, such PDF information entries are not ignored, no matter they are inserted before or after \maketitle.

Is there a way to make such entries not ignored with report and book class, even if inserted after \maketitle?

share|improve this question
@ChristianH.: There is no cause, because there is no bug. – Heiko Oberdiek Mar 21 '14 at 15:48
up vote 6 down vote accepted

The information entries are written when the first page is shipped out. The report class uses the titlepage environment in \maketitle, which puts the title on the page and starts a new page.

The best is to set the entries earlier, e.g. in the preamble.

share|improve this answer
That's strange that information entries need the first page to shipped out to be written. Is there any technical reason for this? Would it be possible to make them written \AtEndDocument instead, in order to avoid the current limitation? Setting these entries in the preamble could be annoying for French users as some characters are made active only at \begin{document}. – Denis Bitouzé Mar 22 '14 at 16:48
@DenisBitouzé: Limitation of TeX: \special does not add anything to the DVI output after the last page. – Heiko Oberdiek Mar 22 '14 at 17:28
Well, what about writing them just before the last page is shipped out? And what about with PDFTeX? – Denis Bitouzé Mar 22 '14 at 17:41
@DenisBitouzé: TeX does not know, when it ships out a page that this page would be the last page. Therefore at least two LaTeX runs are needed. – Heiko Oberdiek Mar 22 '14 at 18:02
@HeikoOberdiek: pdfTeX does support it directly via a primitive \pdfcatalog. It does not depend on \special. – Heiko Oberdiek Mar 22 '14 at 18:03

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.