[tex-k] dvips: BeginPaperSize in postscript DSC

Jean-François Mertens jfm at core.ucl.ac.be
Wed Nov 8 18:34:17 CET 2006


A small comment on Jens Noeckel's msg :

Similarly, the %%Papersize comment is (loc. cit., p 101)
to be replaced (since 1992) by a %%PageMedia comment.

The culprit is the distributed file config.ps (and the corrseponding
doc in dvips.info); of course, it is a configuration file, that users
should adapt to their own needs _ but not all of them are necessarily
assumed to know Adobe's DSC specs...

A particularly annoying consequence of the default config.ps is that,
when user specifies "[a4paper]" in his documentclass, and the '@' lines
in his config.ps start indeed with :

@ A4size 594.99bp 841.99bp
@+ ! %%DocumentPaperSizes: a4
@+ %%PaperSize: A4

his ps-file will indeed contain
%%DocumentPaperSizes: a4
	(in the initial comments) , and
%%PaperSize: A4
	(in the final Setup)

but then ps2pdf will produce a pdf file with at each page
<</Type/Page/MediaBox [0 0 612 792]
	ie, specifies letter paper

Thanks for looking into this,

Jean-Francois Mertens


More information about the tex-k mailing list