From: Ulrike F. <li...@ni...> - 2007-07-31 07:13:42
|
am Montag, 30. Juli 2007 um 21:45 schrieb Alan Ristow: >>> At any rate, the few times I've needed to explicitly set the page >>> dimensions, adding the following to my preamble has worked: >>> >>> \AtBeginDvi{\special{papersize=3D\the\paperwidth,\the\paperheight}} >>=20 >> \usepackage{geometry} >> should also do the trick. > In my experience, geometry.sty doesn't explicitly put the page size in > the dvi. It will change the margins appropriately for landscape, but=20 > when Yap opens the dvi it will display it on a portrait page with the=20 > text running off the right side of the page. YAP needs a dvips-\special that sets the papersize. So if you are using geometry you must add the driver (it won't do any harm if you are also making a pdf with pdflatex): \usepackage[dvips]{geometry} or \usepackage[dvipdfm]{geometry} The main drawback in using the dvips option of geometry is that in the landscape case it also adds another postscript special (\AtBeginDvi{\special{! /landplus90 true store}}) and so YAP tries to switch to dvips render method. --=20 Mit freundlichen Gr=FC=DFen Ulrike Fischer mailto:li...@ni... |