<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 28 May 2016 at 23:47, Zdenek Wagner <span dir="ltr"><<a href="mailto:zdenek.wagner@gmail.com" target="_blank">zdenek.wagner@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span></span><br><span></span><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>
</span><br></blockquote><div><br></div></div></div><div>I am skeptical too. If I prepare a document to be printed on my office printer, I use A4. However, I prepare more frequently books and leaflets and in such cases A4 is really rare, the crop size is usuall A5, B5, C6 or even a nonstandard size. And the media size must include the area for a bleed box and for the crop marks. I am afraid LaTeX itself cannot do all this, a package for layout definition will always be needed. This is why I developed zwpagelayout because even geometry does not do all what I need. <br></div><div><br><br></div></div></div></div></blockquote><div><br></div><div>yes but I'd like to make it easier for your package to work, or at least easier to document how it works.<br><br></div><div>You do <br><br>\AtBeginDocument{\ifcaseZWdriver \or<br> \pdfpagewidth\paperwidth \pdfpageheight\paperheight<br>\else<br> \special{papersize=\the\paperwidth,\the\paperheight}\fi}<br><br><br></div><div>but hyperref and geometry use \AtBeginDvi (or \AtBeginShipoutFirst) so the special they insert will come before the one you insert, even if the package is used later.<br><br></div><div>so that means if a document uses hyperref and zwpagelayout then the hyperref special is first so if the dvi file is processed with dvips hyperref determines the page size and if the same dvi file is processed with dvipdfm then zwpagelayout determines the page size.<br><br></div><div>I would like there to be a documented way to avoid that and have the same markup have the same effect on both drivers.<br><br><br></div><div>David<br><br></div></div><br></div></div>