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 am getting the following annoying warning from hyperref:

hyperref.sty: [hyperref] Height of page (\paperheight) is invalid (0.0pt), usi\
ng 11in. (page 1)

I am using a thesis class (thesis.cls) and some packages like fancyhdr etc. I compile using pdflatex.

I tried to fix the warning with this:

\special{papersize=11in,8.5in}

but it didn't help. Any suggestions? Thanks!

share|improve this question

closed as too localized by Stefan Kottwitz Feb 21 '12 at 10:14

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.

2  
Perhaps post a small compilable code example (reduce a copy), see minimalbeispiel.de/mini-en.html it would make helping easier. –  Stefan Kottwitz Aug 25 '10 at 23:47
1  
Where did you get thesis.cls from? –  Charles Stewart Aug 26 '10 at 10:00
2  
Since the OP hasn't returned since Aug '11 and the thesis class used doesn't seem to be the one on CTAN, I voted to close as too localized. –  doncherry Jan 8 '12 at 18:32

2 Answers 2

up vote 5 down vote accepted

With this minimal example, containing all information of your post, the error cannot be produced:

\documentclass{thesis} 
\usepackage{fancyhdr}
\usepackage{hyperref}
\begin{document}
text
\end{document}

So, there may be information missing. I also assume you mean the thesis class that we can find on CTAN.

Instead of manually adjusting lengths, I strongly recommand to use the geometry package for that purpose:

\usepackage[papersize={8.5in,11in}]{geometry}

You may also specify margins and various other page dimensions using the key=value option interface. geometry calculates missing dimensions. Otherwise the user has to ensure that text width, left margin, right margin, binding offset and perhaps margin note width all sum up to the correct page width.

geometry autodetects the driver like pdftex or dvips.

share|improve this answer

Okay, I found the solution. It it is broken in the thesis.cls that I'm using. But just setting it manually fixed it:

\setlength{\paperheight}{11in}
share|improve this answer
    
Feel free to accept your own answer. –  doncherry Jan 8 '12 at 18:31

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