[tex-live] dvips config.ps letter/a4

Zdenek Wagner zdenek.wagner at gmail.com
Sun Jun 3 01:43:51 CEST 2007


2007/6/3, Karl Berry <karl at freefriends.org>:
> After consulting with Tom and Akira and Dick, I've changed the a4 and
> letter paper size definitions in the dvips config.ps to execute the
> setpagedevice operator if it exists, else execute the a4/letter
> operators if they exist, or do nothing if nothing is available.
>
> I also changed the a4size and letterSize paper size definitions in
> config.ps to be identical to a4 and letter.
>
The bounding box for PS is correct but the specification of the
formats requires integer numbers in milimeters. These are the
definitions takem from the textbooks on typography:

a0 841mm 1189mm
a1 594mm 841mm
a2 420mm 594mm
a3 297mm 420mm
a4 210mm 297mm
a5 148mm 210mm
a6 105mm 148mm
a7 74mm 105mm
a8 52mm 74mm
a9 37mm 52mm
a10 26mm 37mm
b0 1000mm 1414mm
b1 707mm 1000mm
b2 500mm 707mm
b3 353mm 500mm
b4 250mm 353mm
b5 176mm 250mm
b6 125mm 176mm
b7 88mm 125mm
b8 62mm 88mm
b9 44mm 62mm
b10 31mm 44mm
c0 917mm 1279mm
c1 648mm 917mm
c2 458mm 648mm
c3 324mm 458mm
c4 229mm 324mm
c5 162mm 229mm
c6 114mm 162mm
c7 81mm 114mm
c8 57mm 81mm
c9 40mm 57mm
c10 28mm 40mm


> The new file is at
> http://tug.org/svn/texlive/trunk/Master/texmf/dvips/config/config.ps?view=log
> If anyone else feels like testing, please do.
>
> (I also changed texconfig to use the names a4/letter instead of a4size
> and letterSize, since they are simpler.)
>
> The reason for all this is so that ps2pdf and maybe other distillers
> have a better chance of working.  In the past, it would not propagate
> the correct paper size through to the pdf without more work.
>
> karl
>
> --
> % 0 0 595 842 is the right bounding box that applications expect
> % for A4.  Since dvips always rounds up, choose something slightly
> % smaller for our paper size.
>
> @ a4 209.9mm 297.04mm
> @+ ! %%DocumentPaperSizes: a4
> @+ %%BeginPaperSize: a4
> @+ /setpagedevice where
> @+  { pop << /PageSize [595 842] >> setpagedevice }
> @+  { /a4 where { pop a4 } if }
> @+ ifelse
> @+ %%EndPaperSize
>
> @ letter 8.5in 11in
> @+ ! %%DocumentPaperSizes: Letter
> @+ %%BeginPaperSize: Letter
> @+ /setpagedevice where
> @+   { pop << /PageSize [612 792] >> setpagedevice }
> @+   { /letter where { pop letter } if }
> @+ ifelse
> @+ %%EndPaperSize
>


-- 
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz


More information about the tex-live mailing list