One of the slight irritations in my life was getting pdflatex to output on US letter paper. For some reason, whatever I did, setting [letterpaper] options in the documentclass settings, trying to edit the pdf configuration files and so on, I didn't seem to have much luck. Eventually I found a fix: putting the lines
\setlength{\pdfpagewidth}{8.5in}
\setlength{\pdfpageheight}{11in}in the preamble seemed to work, but seemed a bit clunky.
Then today, I found a new fix: putting
\usepackage{graphicx}
in the preamble seems to fix the paper size. I have no idea why. In the event, I seem to have this line in a lot of tex files I write since it's used to include graphics. That explains why it's only in a few cases that I've struggled with this problem. It's funny, in all the searching I've done for this problem, I've never seen anyone suggest this solution, so I'll post this here on the offchance that it helps someone else. Or rather, for next time I have the same problem and can't rememeber what I did last time to fix it...
Edit June 06: It seems to have broken again on my system, and the graphicx trick doesn't seem to work anymore. I tried something called 'texconfig', but this didn't seem to make any difference. So, back to the tried and tested pdfpagelength technique. (This seems to partly be a problem with the ACM's sig-alternate style, I think, since it was working fine till I switched class files.
Edit November 06: Here's a slightly cleaner way that means that people still living in the past and using latex -> dvips -> ps2pdf can still compile the same file: include
\usepackage{ifpdf}
\ifpdf
\setlength{\pdfpagewidth}{8.5in}
\setlength{\pdfpageheight}{11in}
\else
\fiOf course, then you need ifpdf, but it's part of most modern tex distributions (as indeed is pdflatex, which rather renders the whole effort redundant, but means that I can just send people the ifpdf file to get it to compile if they don't have it).
Edit April 2008:Another thing to remember: when compiling with the ACM style files,
remove all use of the 'fullpage' package (and probably other packages that play around with the page size, such as geometry). Otherwise, for some reason, LaTeX creates a never-ending stream of blank pages.