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

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:


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.

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
Where did you get thesis.cls from? – Charles Stewart Aug 26 '10 at 10:00
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
up vote 6 down vote accepted

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


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:


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:

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.