1
Update config.ps from TeX Live 2007.
2
This fixes some bugs with setting the right page size in created pdf
5
texmf/dvips/config/config.ps | 525 ++++++++++++++++++++++++++++++++++++-------
6
1 file changed, 443 insertions(+), 82 deletions(-)
8
Index: texlive-bin-2007/texmf/dvips/config/config.ps
9
===================================================================
10
--- texlive-bin-2007.orig/texmf/dvips/config/config.ps 2007-07-02 07:42:08.000000000 +0200
11
+++ texlive-bin-2007/texmf/dvips/config/config.ps 2007-07-02 07:42:26.000000000 +0200
13
-% teTeX's config.ps. Thomas Esser, 1998, public domain.
14
+% config.ps - configuration file for dvips.
15
+% Tomas Rokicki, Thomas Esser, Karl Berry, et al., 1986ff, public domain.
17
% Memory available. Download the three-line PostScript file:
18
% %! Hey, we're PostScript
20
% `\special' and config files (via the `E' option) and opening of any
21
% absolute filenames. z1, the default, forbids shell escapes but
22
% allows absolute filenames. z0 allows both. The corresponding
23
-% commandline options are -R0|-R1|-R2
24
+% command line options are -R0|-R1|-R2
27
% How to print, maybe with lp instead lpr, etc. If commented-out, output
30
% Partially download Type 1 fonts by default. Only reason not to do
31
% this is if you encounter bugs. (Please report them to
32
-% @email{tex-k@@mail.tug.org} if you do.)
33
+% @email{tex-k@tug.org} if you do.)
36
% This shows how to add your own map file.
37
% Remove the comment and adjust the name:
40
-% 0 0 595 842 is the right bounding box that most applications expect
41
-% for A4. Since dvips always rounds up, choose something slightly smaller.
42
+% If we have setpagedevice, use that.
43
+% else if we have the a4 resp. letter operator, use that.
44
+% else do nothing to set the page size.
46
+% In the past, the a4size and letterSize definitions did not set the
47
+% page size, but we want to set it if we can so that ps2pdf can work
48
+% properly. Here, a4 and a4size, and letter and letterSize, are
49
+% identical, and we prefer the a4/letter names -- texconfig uses them.
51
+% 0 0 595 842 is the right bounding box that applications expect
52
+% for A4. Since dvips always rounds up, choose something slightly
53
+% smaller for our paper size.
55
-@ A4size 594.99bp 841.99bp
57
@+ ! %%DocumentPaperSizes: a4
59
+@+ %%BeginPaperSize: a4
60
+@+ /setpagedevice where
61
+@+ { pop << /PageSize [595 842] >> setpagedevice }
62
+@+ { /a4 where { pop a4 } if }
66
-@ letterSize 8.5in 11in
68
@+ ! %%DocumentPaperSizes: Letter
69
+@+ %%BeginPaperSize: Letter
70
+@+ /setpagedevice where
71
+@+ { pop << /PageSize [612 792] >> setpagedevice }
72
+@+ { /letter where { pop letter } if }
78
+@+ ! %%DocumentPaperSizes: a4
79
+@+ %%BeginPaperSize: a4
80
+@+ /setpagedevice where
81
+@+ { pop << /PageSize [595 842] >> setpagedevice }
82
+@+ { /a4 where { pop a4 } if }
86
+@ letterSize 8.5in 11in
87
@+ ! %%DocumentPaperSizes: Letter
88
@+ %%BeginPaperSize: Letter
90
+@+ /setpagedevice where
91
+@+ { pop << /PageSize [612 792] >> setpagedevice }
92
+@+ { /letter where { pop letter } if }
96
+@ halfexecutive 133mm 184mm
97
+@+ ! %%DocumentPaperSizes: halfexecutive
98
+@+ %%BeginPaperSize: halfexecutive
99
+@+ /setpagedevice where
100
+@+ { pop << /PageSize [378 522] >> setpagedevice }
104
+@ halfletter 140mm 216mm
105
+@+ ! %%DocumentPaperSizes: halfletter
106
+@+ %%BeginPaperSize: halfletter
107
+@+ /setpagedevice where
108
+@+ { pop << /PageSize [396 612] >> setpagedevice }
112
+@ statement 140mm 216mm
113
+@+ ! %%DocumentPaperSizes: statement
114
+@+ %%BeginPaperSize: statement
115
+@+ /setpagedevice where
116
+@+ { pop << /PageSize [396 612] >> setpagedevice }
120
+@ executive 184mm 267mm
121
+@+ ! %%DocumentPaperSizes: executive
122
+@+ %%BeginPaperSize: executive
123
+@+ /setpagedevice where
124
+@+ { pop << /PageSize [522 756] >> setpagedevice }
129
+@ screen 8.25in 11in
130
+@+ ! %%DocumentPaperSizes: Screen
131
+@+ %%BeginPaperSize: Screen
132
+@+ /setpagedevice where
133
+@+ { pop << /PageSize [594 792] >> setpagedevice }
137
+% a common size for printers (in north america).
139
+@+ ! %%DocumentPaperSizes: SixByNine
140
+@+ %%BeginPaperSize: SixByNine
141
+@+ /setpagedevice where
142
+@+ { pop << /PageSize [432 648] >> setpagedevice }
146
+@ quarto 215mm 275mm
147
+@+ ! %%DocumentPaperSizes: quarto
148
+@+ %%BeginPaperSize: quarto
149
+@+ /setpagedevice where
150
+@+ { pop << /PageSize [610 780] >> setpagedevice }
155
+@+ ! %%DocumentPaperSizes: note
156
+@+ %%BeginPaperSize: note
157
+@+ /setpagedevice where
158
+@+ { pop << /PageSize [612 792] >> setpagedevice }
163
+@+ ! %%DocumentPaperSizes: folio
164
+@+ %%BeginPaperSize: folio
165
+@+ /setpagedevice where
166
+@+ { pop << /PageSize [612 936] >> setpagedevice }
171
@+ ! %%DocumentPaperSizes: Legal
172
@+ %%BeginPaperSize: Legal
174
+@+ /setpagedevice where
175
+@+ { pop << /PageSize [612 1008] >> setpagedevice }
180
+@+ ! %%DocumentPaperSizes: 10x14
181
+@+ %%BeginPaperSize: 10x14
182
+@+ /setpagedevice where
183
+@+ { pop << /PageSize [720 1008] >> setpagedevice }
188
@+ ! %%DocumentPaperSizes: Ledger
189
@+ %%BeginPaperSize: Ledger
191
+@+ /setpagedevice where
192
+@+ { pop << /PageSize [1224 792] >> setpagedevice }
197
@+ ! %%DocumentPaperSizes: Tabloid
198
@+ %%BeginPaperSize: Tabloid
203
-@+ ! %%DocumentPaperSizes: a6
204
-@+ %%BeginPaperSize: a6
209
-@+ ! %%DocumentPaperSizes: a5
210
-@+ %%BeginPaperSize: a5
212
+@+ /setpagedevice where
213
+@+ { pop << /PageSize [792 1224] >> setpagedevice }
217
-@ a4 594.99bp 841.99bp
218
-@+ ! %%DocumentPaperSizes: a4
219
-@+ %%BeginPaperSize: a4
222
+@+ ! %%DocumentPaperSizes: 11x17
223
+@+ %%BeginPaperSize: 11x17
224
+@+ /setpagedevice where
225
+@+ { pop << /PageSize [792 1224] >> setpagedevice }
230
-@+ ! %%DocumentPaperSizes: a3
231
-@+ %%BeginPaperSize: a3
236
-@+ ! %%DocumentPaperSizes: a2
237
-@+ %%BeginPaperSize: a2
240
+@+ ! %%DocumentPaperSizes: a0
241
+@+ %%BeginPaperSize: a0
242
+@+ /setpagedevice where
243
+@+ { pop << /PageSize [2384 3370] >> setpagedevice }
244
+@+ { /a0 where { pop a0 } if }
250
@+ ! %%DocumentPaperSizes: a1
251
@+ %%BeginPaperSize: a1
253
+@+ /setpagedevice where
254
+@+ { pop << /PageSize [1684 2384] >> setpagedevice }
255
+@+ { /a1 where { pop a1 } if }
260
-@+ ! %%DocumentPaperSizes: a0
261
-@+ %%BeginPaperSize: a0
266
-@+ ! %%DocumentPaperSizes: b6
267
-@+ %%BeginPaperSize: b6
270
+@+ ! %%DocumentPaperSizes: a2
271
+@+ %%BeginPaperSize: a2
272
+@+ /setpagedevice where
273
+@+ { pop << /PageSize [1191 1684] >> setpagedevice }
274
+@+ { /a2 where { pop a2 } if }
279
-@+ ! %%DocumentPaperSizes: b5
280
-@+ %%BeginPaperSize: b5
283
+@+ ! %%DocumentPaperSizes: a3
284
+@+ %%BeginPaperSize: a3
285
+@+ /setpagedevice where
286
+@+ { pop << /PageSize [842 1191] >> setpagedevice }
287
+@+ { /a3 where { pop a3 } if }
292
-@+ ! %%DocumentPaperSizes: b4
293
-@+ %%BeginPaperSize: b4
296
+@+ ! %%DocumentPaperSizes: a5
297
+@+ %%BeginPaperSize: a5
298
+@+ /setpagedevice where
299
+@+ { pop << /PageSize [420 595] >> setpagedevice }
300
+@+ { /a5 where { pop a5 } if }
305
-@+ ! %%DocumentPaperSizes: b3
306
-@+ %%BeginPaperSize: b3
309
+@+ ! %%DocumentPaperSizes: a6
310
+@+ %%BeginPaperSize: a6
311
+@+ /setpagedevice where
312
+@+ { pop << /PageSize [298 420] >> setpagedevice }
313
+@+ { /a6 where { pop a6 } if }
318
+@+ ! %%DocumentPaperSizes: a7
319
+@+ %%BeginPaperSize: a7
320
+@+ /setpagedevice where
321
+@+ { pop << /PageSize [210 298] >> setpagedevice }
322
+@+ { /a7 where { pop a7 } if }
327
+@+ ! %%DocumentPaperSizes: a8
328
+@+ %%BeginPaperSize: a8
329
+@+ /setpagedevice where
330
+@+ { pop << /PageSize [147 210] >> setpagedevice }
331
+@+ { /a8 where { pop a8 } if }
336
+@+ ! %%DocumentPaperSizes: a9
337
+@+ %%BeginPaperSize: a9
338
+@+ /setpagedevice where
339
+@+ { pop << /PageSize [105 147] >> setpagedevice }
340
+@+ { /a9 where { pop a9 } if }
345
+@+ ! %%DocumentPaperSizes: a10
346
+@+ %%BeginPaperSize: a10
347
+@+ /setpagedevice where
348
+@+ { pop << /PageSize [74 105] >> setpagedevice }
349
+@+ { /a10 where { pop a10 } if }
353
@ jisb0 1030mm 1456mm
354
@+ ! %%DocumentPaperSizes: jisb0
355
@+ %%BeginPaperSize: jisb0
357
+@+ /setpagedevice where
358
+@+ { pop << /PageSize [2920 4127] >> setpagedevice }
359
+@+ { /jisb0 where { pop jisb0 } if }
364
@+ ! %%DocumentPaperSizes: jisb1
365
@+ %%BeginPaperSize: jisb1
367
+@+ /setpagedevice where
368
+@+ { pop << /PageSize [2064 2920] >> setpagedevice }
369
+@+ { /jisb1 where { pop jisb1 } if }
374
@+ ! %%DocumentPaperSizes: jisb2
375
@+ %%BeginPaperSize: jisb2
377
+@+ /setpagedevice where
378
+@+ { pop << /PageSize [1460 2064] >> setpagedevice }
379
+@+ { /jisb2 where { pop jisb2 } if }
384
@+ ! %%DocumentPaperSizes: jisb3
385
@+ %%BeginPaperSize: jisb3
387
+@+ /setpagedevice where
388
+@+ { pop << /PageSize [1032 1460] >> setpagedevice }
389
+@+ { /jisb3 where { pop jisb3 } if }
394
@+ ! %%DocumentPaperSizes: jisb4
395
@+ %%BeginPaperSize: jisb4
397
+@+ /setpagedevice where
398
+@+ { pop << /PageSize [729 1032] >> setpagedevice }
399
+@+ { /jisb4 where { pop jisb4 } if }
404
@+ ! %%DocumentPaperSizes: jisb5
405
@+ %%BeginPaperSize: jisb5
407
+@+ /setpagedevice where
408
+@+ { pop << /PageSize [516 729] >> setpagedevice }
409
+@+ { /jisb5 where { pop jisb5 } if }
414
@+ ! %%DocumentPaperSizes: jisb6
415
@+ %%BeginPaperSize: jisb6
417
+@+ /setpagedevice where
418
+@+ { pop << /PageSize [363 516] >> setpagedevice }
419
+@+ { /jisb6 where { pop jisb6 } if }
424
+@+ ! %%DocumentPaperSizes: jisb7
425
+@+ %%BeginPaperSize: jisb7
426
+@+ /setpagedevice where
427
+@+ { pop << /PageSize [258 363] >> setpagedevice }
428
+@+ { /jisb7 where { pop jisb7 } if }
433
+@+ ! %%DocumentPaperSizes: jisb8
434
+@+ %%BeginPaperSize: jisb8
435
+@+ /setpagedevice where
436
+@+ { pop << /PageSize [181 258] >> setpagedevice }
437
+@+ { /jisb8 where { pop jisb8 } if }
442
+@+ ! %%DocumentPaperSizes: b0
443
+@+ %%BeginPaperSize: b0
444
+@+ /setpagedevice where
445
+@+ { pop << /PageSize [2835 4008] >> setpagedevice }
446
+@+ { /b0 where { pop b0 } if }
451
+@+ ! %%DocumentPaperSizes: b1
452
+@+ %%BeginPaperSize: b1
453
+@+ /setpagedevice where
454
+@+ { pop << /PageSize [2004 2835] >> setpagedevice }
455
+@+ { /b1 where { pop b1 } if }
460
+@+ ! %%DocumentPaperSizes: b2
461
+@+ %%BeginPaperSize: b2
462
+@+ /setpagedevice where
463
+@+ { pop << /PageSize [1417 2004] >> setpagedevice }
464
+@+ { /b2 where { pop b2 } if }
469
+@+ ! %%DocumentPaperSizes: b3
470
+@+ %%BeginPaperSize: b3
471
+@+ /setpagedevice where
472
+@+ { pop << /PageSize [1001 1417] >> setpagedevice }
473
+@+ { /b3 where { pop b3 } if }
478
+@+ ! %%DocumentPaperSizes: b4
479
+@+ %%BeginPaperSize: b4
480
+@+ /setpagedevice where
481
+@+ { pop << /PageSize [709 1001] >> setpagedevice }
482
+@+ { /b4 where { pop b4 } if }
487
+@+ ! %%DocumentPaperSizes: b5
488
+@+ %%BeginPaperSize: b5
489
+@+ /setpagedevice where
490
+@+ { pop << /PageSize [499 709] >> setpagedevice }
491
+@+ { /b5 where { pop b5 } if }
495
-% not defined in Ghostscript, per Akira.
496
-% @ jisb7 91mm 128mm
497
-% @+ ! %%DocumentPaperSizes: jisb7
498
-% @+ %%BeginPaperSize: jisb7
503
-% @+ ! %%DocumentPaperSizes: jisb8
504
-% @+ %%BeginPaperSize: jisb8
508
+@+ ! %%DocumentPaperSizes: b6
509
+@+ %%BeginPaperSize: b6
510
+@+ /setpagedevice where
511
+@+ { pop << /PageSize [354 499] >> setpagedevice }
512
+@+ { /b6 where { pop b6 } if }
517
+@+ ! %%DocumentPaperSizes: c5
518
+@+ %%BeginPaperSize: c5
519
+@+ /setpagedevice where
520
+@+ { pop << /PageSize [459 649] >> setpagedevice }
521
+@+ { /c5 where { pop c5 } if }
526
+@+ ! %%DocumentPaperSizes: DL
527
+@+ %%BeginPaperSize: DL
528
+@+ /setpagedevice where
529
+@+ { pop << /PageSize [312 624] >> setpagedevice }
533
+@ Comm10 105mm 241mm
534
+@+ ! %%DocumentPaperSizes: Comm10
535
+@+ %%BeginPaperSize: Comm10
536
+@+ /setpagedevice where
537
+@+ { pop << /PageSize [297 684] >> setpagedevice }
541
+@ Monarch 98.4mm 190.5mm
542
+@+ ! %%DocumentPaperSizes: Monarch
543
+@+ %%BeginPaperSize: Monarch
544
+@+ /setpagedevice where
545
+@+ { pop << /PageSize [279 540] >> setpagedevice }
550
+@+ ! %%DocumentPaperSizes: archE
551
+@+ %%BeginPaperSize: archE
552
+@+ /setpagedevice where
553
+@+ { pop << /PageSize [2592 3456] >> setpagedevice }
558
+@+ ! %%DocumentPaperSizes: archD
559
+@+ %%BeginPaperSize: archD
560
+@+ /setpagedevice where
561
+@+ { pop << /PageSize [1728 2592] >> setpagedevice }
566
+@+ ! %%DocumentPaperSizes: archC
567
+@+ %%BeginPaperSize: archC
568
+@+ /setpagedevice where
569
+@+ { pop << /PageSize [1296 1728] >> setpagedevice }
574
+@+ ! %%DocumentPaperSizes: archB
575
+@+ %%BeginPaperSize: archB
576
+@+ /setpagedevice where
577
+@+ { pop << /PageSize [864 1296] >> setpagedevice }
582
+@+ ! %%DocumentPaperSizes: archA
583
+@+ %%BeginPaperSize: archA
584
+@+ /setpagedevice where
585
+@+ { pop << /PageSize [648 864] >> setpagedevice }
589
+@ flsa 216mm 330.2mm
590
+@+ ! %%DocumentPaperSizes: flsa
591
+@+ %%BeginPaperSize: flsa
592
+@+ /setpagedevice where
593
+@+ { pop << /PageSize [612 936] >> setpagedevice }
597
+@ flse 216mm 330.2mm
598
+@+ ! %%DocumentPaperSizes: flse
599
+@+ %%BeginPaperSize: flse
600
+@+ /setpagedevice where
601
+@+ { pop << /PageSize [612 936] >> setpagedevice }
605
+@ csheet 431.8mm 558.8mm
606
+@+ ! %%DocumentPaperSizes: csheet
607
+@+ %%BeginPaperSize: csheet
608
+@+ /setpagedevice where
609
+@+ { pop << /PageSize [1224 1584] >> setpagedevice }
613
+@ dsheet 558.8mm 863.6mm
614
+@+ ! %%DocumentPaperSizes: dsheet
615
+@+ %%BeginPaperSize: dsheet
616
+@+ /setpagedevice where
617
+@+ { pop << /PageSize [1584 2448] >> setpagedevice }
621
+@ esheet 863.6mm 1117.6mm
622
+@+ ! %%DocumentPaperSizes: esheet
623
+@+ %%BeginPaperSize: esheet
624
+@+ /setpagedevice where
625
+@+ { pop << /PageSize [2448 3168] >> setpagedevice }
630
+@+ statusdict /setpageparams known { hsize vsize 0 1 statusdict begin {
631
+@+ setpageparams } stopped end } { true } ifelse { statusdict /setpage known
632
+@+ { hsize vsize 1 statusdict begin { setpage } stopped pop end } if } if
635
@+ statusdict /setpageparams known { hsize vsize 0 1 statusdict begin {