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'm compiling my LaTeX using pdflatex and would like to have some pdfinfo integrated into the resulting file. Alas, this doesn't seem to be working, though I am using the same code which has worked in the past.

The header of my source is below:

\documentclass[twocolumn]{article}
\usepackage{tikz}
\usepackage[numbers]{natbib}
\newcommand{\final}{1}
\usepackage[colorlinks,linkcolor=black,anchorcolor=black,citecolor=black]{hyperref}
\usepackage{fancyhdr}
\usepackage{abstract}

\title{Zombie Paranoia in the Bronx: A Study in Psychosocial Perceptions \\ Draft}

\author{{\bfseries John Smith$^a$} \\
{\footnotesize $^a$Ecology, Evolution, \& Behavior, University of Queens, USA \emph{smith@uoq.edu}}\\
}
\date{}

\pdfinfo
{ /Title (Zombie Paranoia in the Bronx: A Study in Psychosocial Perceptions)
  /Author (John Smith)
%  /CreationDate (D:YYYYMMDDhhmmss) % this is the format used by pdf for date/time
%  /Subject (...)
%  /Keywords ()
}

Any thoughts?

share|improve this question
4  
Please, try shortening the example code to the minimum required for showing the problem. –  egreg Mar 14 '12 at 21:22
    
I second egreg, here's some info if you don't know how: meta.tex.stackexchange.com/questions/228/… –  doncherry Mar 14 '12 at 21:27
    
Tried to get rid of some, thanks! –  Richard Mar 15 '12 at 5:50
add comment

3 Answers

up vote 8 down vote accepted

This is caused by the hyperref package. It's not needed in your example, so you could just delete it. However, if your whole document does need hyperref, you can use \hypersetup to include the information.

\documentclass[twocolumn]{article}
\usepackage[colorlinks,linkcolor=black,anchorcolor=black,citecolor=black]{hyperref}
\title{Zombie Paranoia in the Bronx: A Study in Psychosocial Perceptions \\ Draft}
\author{{\bfseries John Smith$^a$} \\
{\footnotesize $^a$Ecology, Evolution, \& Behavior, University of Queens, USA \emph{smith@uoq.edu}}\\
}
\date{}
\hypersetup{pdfinfo={
Title={Zombie Paranoia in the Bronx: A Study in Psychosocial Perceptions},
Author={John Smith}
}}
\begin{document}
abc
\end{document}

Have a look at section 3.7 of the hyperref package manual for more information.

share|improve this answer
    
Your answer's just what I need, Ian, though I wish it had the full range of options shown in amorua's answer. Of course, there are a great many options and your link brings me to them. Thank you :-) –  Richard Mar 15 '12 at 5:51
    
Ran pdflatex with these contents, but OSX Preview 5.0.3 still shows just the document name as the sidebars top level TOC item. Isn't this exactly what pdfinfo Title should change? –  Jukka Dahlbom Apr 3 '13 at 14:04
add comment

Indeed \pdfinfo does not work in combination with hyperref

Try the following

\hypersetup{pdfauthor={Author},%
            pdftitle={Your Title},%
            pdfsubject={Whatever},%
            pdfkeywords={one, two},%
            pdfproducer={LaTeX},%
            pdfcreator={pdfLaTeX}
}
share|improve this answer
    
Your answer's to the point, amorua, but I wish you'd included the link that Ian did. –  Richard Mar 15 '12 at 5:51
add comment

If I try typesetting your input and preview it with Skim, the Author and Title info are as you want, but not with Adobe Reader. If instead I write

\hypersetup{
  pdfinfo={
   Title={Zombie Paranoia in the Bronx: A Study in Psychosocial Perceptions},
   Author={John Smith},
  }
}

then also Adobe Reader shows the desired data.

share|improve this answer
add comment

Your Answer

 
discard

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.