# [texhax] Changing papersize

Reinhard Kotucha reinhard.kotucha at web.de
Wed Mar 24 00:26:56 CET 2010

On 23 March 2010 Michael Barr wrote:

> On Tue, 23 Mar 2010, Reinhard Kotucha wrote:
>
> > On 23 March 2010 Michael Barr wrote:
> >
> > > According to the Latex Companion, the following ought to give me an 8.5 x
> > > 14 inch page.
> > > \documentclass[legalpaper]{article}
> > > \pagestyle{plain}
> > > \textheight 9in
> > > \begin{document}
> > > Test
> > > \end{document}
> > > If it did, there would be a page number visible and there isn't.  How do I
> > > change papersize?
> >
> > You have to either \usepackage{geometry} or \usepackage{hyperref}.
> >
> > Both packages are using the optional argument of \documentclass and
> > put appropriate code into the PDF or DVI file.
> >
> > Regards,
> >  Reinhard
> >
> >
>
> I did get it in the pdf version, but not in the dvi file.  On a longer
> view it seems to me that dvi is going to disappear as the standard output.
> of course, it could have been my viewer (Yap 2.7).

What do you get if you run

dvips --> ps2pdf --> pdfinfo

?  It's not unlikely that Yap is the culprit because papersize
information is passed to the printer driver in PostScript code and
maybe Yap's DVI parser isn't smart enough.

If you are interested in the details, please consult the dvips manual.

Regards,
Reinhard

--
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------