According to [the PDF reference (PDF document, 9.4MB)](http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_reference_1-7.pdf), one can create an outline for the document; a visual table of contents for the viewer application which enables the user to jump to the page for the outline entry. It is my understanding that the LaTeX [hyperref](/questions/tagged/hyperref "show questions tagged 'hyperref'") package creates these outline entries.

I would like to know how it works under the hood, so to speak. I have tried the following code:

```
\def\subject#1\par{% other stuff...
  \special{pdf: out 1 << /Title (#1) /Dest [ @thispage /FitH @ypos ] >>}}

```

But this doesn't seem to create anything in the outline. Can you tell what am I doing wrong?