[Tex/LaTex] I can’t make the document have the proper paper size

dvipspaper-sizetexmaker

I'm using the MikTex 2.9 distribution on Windows 7 and the Texmaker editor. I'm using the sequence Latex -> dvips -> ps2pdf to produce my pdf file but it always come out with the A4 paper size and nothing I have tried changes it to a letter size document.

I have unsuccessfully tried:

\documentclass[letterpaper]{article}

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

and

\usepackage{ifpdf}
\ifpdf
  \pdfpaperheight=11in
  \pdfpaperwidth=8.5in
\else
  \special{papersize=11in,8.5in}
\fi

I have also tried the MikTex settings but change the paper size default to letter accomplished nothing.

When I use the PdfLatex everything works fine but because I had some problems between PdfLatex and some packages I have to use I got to get the right paper size with the Latex->dvips->ps2pdf sequence. Any ideas what could be done? Because the PdfLatex works I believe the problem is with the dvips bit but I don't know if this is correct and if it is I don't know how to configure it.

Thank you very much.

Best Answer

Copy this After of

\begin{document}

\setlength{\pdfpagewidth}{8.5in}
\setlength{\pdfpageheight}{11in}

Great Solution

Related Question