<div dir="ltr">2016-05-29 0:58 GMT+02:00 David Carlisle <span dir="ltr"><<a href="mailto:d.p.carlisle@gmail.com" target="_blank">d.p.carlisle@gmail.com</a>></span>:<br><div class="gmail_extra"><div class="gmail_quote"><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"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">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><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></span><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.<span class=""><font color="#888888"><br></font></span></div></div></div></div></blockquote><div><br></div><div>Yes, it will be useful.<br></div><div><br><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Zdeněk Wagner<br><a href="http://ttsm.icpf.cas.cz/team/wagner.shtml" target="_blank">http://ttsm.icpf.cas.cz/team/wagner.shtml</a><br><a href="http://icebearsoft.euweb.cz" target="_blank">http://icebearsoft.euweb.cz</a></div></div>
<br> </div><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"><div class="gmail_extra"><div class="gmail_quote"><div><span class=""><font color="#888888"><br><br></font></span></div><span class=""><font color="#888888"><div>David<br><br></div></font></span></div><br></div></div>
</blockquote></div><br></div></div>