Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

i noticed that i am not able to add metadata to my pdf.. any clues? Here is a minimal working example. The produced pdf has no author or title metadata. I am using miktex and texworks.

% !TeX program = xelatex
\documentclass[a4paper,10pt,draft]{report}

\usepackage[xetex]{hyperref}
%Provides some compatiblity with latex and
%Loads the fixltx2e, metalogo, xunicode, fontspec packages
\usepackage{xltxtra} 
\usepackage{xgreek} %Set greek hypenation and support in general


\usepackage{graphicx} %Extends the \includegraphics command
\usepackage{amsmath}  %Improoved math support e.g scalable brackets
\usepackage{array}  %Extends the array command
\usepackage{subfigure}
\usepackage{rotating}
\usepackage{alltt}
\usepackage{float}
\usepackage{multirow}
\usepackage{pdfpages}
\usepackage{listings}
\usepackage{unicode-math}
\usepackage{tikz} %pgf-tikz pakcage

\usetikzlibrary{intersections}
\usetikzlibrary{calc}
\usetikzlibrary{through}



\setmainfont{XITS}
\setmathfont{XITS Math}


\hypersetup{
    colorlinks=true,linkcolor=blue,linktocpage,bookmarksopen=true,
    pdfauthor=Name,
    pdftitle={Title}
}


\begin{document}
    Hello world
\end{document}
share|improve this question

closed as too localized by Mico, tohecz, egreg, Marco Daniel, percusse Jul 18 '12 at 10:23

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
You should still load hyperref later on in the preamble. It is usually one of the last packages you load, if not the last one. –  jon Jul 10 '12 at 0:55
    
@jon care to explain why? Don't get me wrong, i just want to learn. –  msmechanized Jul 10 '12 at 8:44
1  
@msmechanized load hyperref last because hyperref patches all sorts of things; for example, subfigure defines new sorts of caption, but doesn't make them hyperref-aware if that might be needed. (note, this doesn't answer your original question...) –  wasteofspace Jul 10 '12 at 9:18
    
@msmechanized -- Sure; see here –  jon Jul 10 '12 at 9:42
add comment

1 Answer 1

up vote 1 down vote accepted

I forgot the draft directive in the document class. If i remove it, title and author are displayed correctly.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.