pdflatex produces A4 page despite the fact that letterpaper is specified

Bug #244043 reported by Munchkinguy
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
texlive-base (Ubuntu)
Invalid
Undecided
Unassigned
Nominated for Intrepid by Munchkinguy

Bug Description

In Ubuntu Hardy, pdflatex produces documents of A4 paper even when letterpaper is specified. For example...

\documentclass[letterpaper]{report}
\usepackage{mathptmx}
\usepackage[T1]{fontenc}
\begin{document}
Hello world.
\end{document}

...yields a PDF file that is A4-sided, even though letterpaper is specified in \documentclass

Revision history for this message
Munchkinguy (10068660) wrote :
Revision history for this message
Stefan Kottwitz (stefan.k) wrote :

With the letterpaper option \paperwidth and \paperheight will be set correctly.
For use with pdflatex you could modify the appropriate sizes:

  \setlength{\pdfpagewidth}{\paperwidth}
  \setlength{\pdfpageheight}{\paperheight}

It will fix this minimal example. The problem will vanish if you use additional packages designed for pdflatex. \usepackage{graphicx} will fix it too, also color, xcolor, hyperref.

Revision history for this message
Munchkinguy (10068660) wrote : Re: [Bug 244043] Re: pdflatex produces A4 page despite the fact that letterpaper is specified

But this really ought to work the way its supposed to. When I use MikTeX on
Windows, typing "letterpaper" makes it letter-sized. I shouldn't *have* to
use additional options.

Changed in texlive-base:
status: New → Confirmed
Revision history for this message
Josh Zenker (jzenker) wrote :

I agree that we shouldn't have to use an additional package to get letter-sized output. However, I can confirm that Stefan's solution works with texlive-base version 2007-13.

Revision history for this message
Petru (becheru-petru-ioan) wrote :

confirmed using XeTeX 3.1415926-2.3-0.9997.6 (TeX Live 2012/dev/Debian)
File contents:

\documentclass[b5paper]{article}
\begin{document}
 sdaf
\end{document}

The resulting pdf is not b5paper, it is a4paper

Revision history for this message
Norbert Preining (preining) wrote : Re: [Bug 244043] Re: pdflatex produces A4 page despite the fact that letterpaper is specified

On Mo, 14 Mai 2012, Petru wrote:
> confirmed using XeTeX 3.1415926-2.3-0.9997.6 (TeX Live 2012/dev/Debian)
> File contents:
>
> \documentclass[b5paper]{article}
> \begin{document}
> sdaf
> \end{document}
>
> The resulting pdf is not b5paper, it is a4paper

Please learn to use google. Thanks.

That is one of the most asked questions ... you need to use
geometry or something else that sets the pdf paper size. LaTeX does not
know about pdf paper sizes.

Please someone closes this bug, PBCAS.

Best wishes

Norbert
------------------------------------------------------------------------
Norbert Preining preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan TeX Live & Debian Developer
DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
BURWASH
The pleasurable cool sloosh of puddle water over the toes of your
gumboots.
   --- Douglas Adams, The Meaning of Liff

Antoine Pairet (b-ly)
Changed in texlive-base (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.