Debian Codegraph @

texk/dvipsk/contrib/configs/2a4.ps

raw
1 % @(#)2a4.ps 1.0 95/10/30 pete
2 %
3 % The following code defines PostScript procedures to work dvips.
4 % they must be downloaded or sent as a header file together with
5 % the PostScript version of your (La)TeX file.
6 %
7 % Originated probably by Piet van Oostrum, Department of Computer Science,
8 % Utrecht University, Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht
9 % Phone +31 30 531806
10 % Fax +31 30 513791
11 % <[email protected]> uunet!mcsun!ruuinf!piet
12 %
13 % it is now re-written to work with dvips(k)-5.58f by Peter Dyballa
14 % Johann Wolfgang Goethe-Universit\"at Robert-Mayer-Str. 11-15
15 % Fachbereich 20 - Theoretische Informatik D 60325 Frankfurt am Main
16 % (Department for Computer Science) (Federal Republic of Germany)
17 %
18 %
19 % To use 2a4.ps include this on invocation of dvips:
20 % -h 2a4.ps -t landscape
21 %
22 % do not include this in your (La)TeX source:
23 % \special{landscape}\special{header=2a4.ps}
24 %
25 /isoddpage true def
26 /orig-showpage /showpage load def
27 /factor 0.707106781187 def
28 /showpage {
29 isoddpage not { orig-showpage } if
30 /isoddpage isoddpage not store
31 } def
32
33 /bop-hook {
34 /vsize 1 factor add neg def
35 isoddpage {factor factor scale
36 842 412 translate }
37 { 0 -595 translate } ifelse
38 } def
39
40 /end-hook {
41 isoddpage not { orig-showpage } if
42 } def
43 %
44 % Theses measures are for those paper formats:
45 %
46 % DIN A4 letter legal
47 % 148mm = 412 PS pt 5.5in = 396 PS pt 7in = 504 PS pt
48 % 210mm = 595 PS pt 8.5in = 612 PS pt 8.5in = 612 PS pt
49 % 297mm = 842 PS pt 11in = 792 PS pt 14in = 1008 PS pt