[tex-live] paper size special

Markus Kohm komascript at gmx.info
Mon May 30 07:42:50 CEST 2016


Am Samstag, 28. Mai 2016, 23:41:44 schrieb David Carlisle:
> yes but (despite raising the issue) I'm not at all sure changing dvips
> after all this time
> would have any good consequences.

dvips set up page size only once: At the start of the document. Therefore 
hdvips.def (hyperref) uses, something like:

\AtBeginShipoutFirst{%
…
  \special{papersize=\the\paperwidth,\the\paperheight}
}

geometry and typearea:

\AtBeginDocument{%
  …
  \AtBeginDvi{\special{papersize=\the\paperwidth,\the\paperheight}}%
  …
}

typearea has also some crude code (with side effects for the logical page 
number) to change paper size inside the document, something dvips itself does 
not support.

With the code above it should not matter whether dvips uses the first or the 
last value of papersize. So changing of dvips should not break a lot of 
documents. If dvips would also allow to change the page size inside the 
document, the crude code in typearea could be removed by more clean code.

Markus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://tug.org/pipermail/tex-live/attachments/20160530/8b78ea40/attachment.bin>


More information about the tex-live mailing list