1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
|
% config.ps - configuration file for dvips.
% Tomas Rokicki, Thomas Esser, Karl Berry, et al., 1986ff, public domain.
% Memory available. Download the three-line PostScript file:
% %! Hey, we're PostScript
% /Times-Roman findfont 30 scalefont setfont 144 432 moveto
% vmstatus exch sub 40 string cvs show pop showpage
% to determine this number. (It will be the only thing printed.)
m 3500000
% Run securely. z2 disables both shell command execution in
% `\special' and config files (via the `E' option) and opening of any
% absolute filenames. z1, the default, forbids shell escapes but
% allows absolute filenames. z0 allows both. The corresponding
% command line options are -R0|-R1|-R2
z1
% How to print, maybe with lp instead lpr, etc. If commented-out, output
% will go into a file by default.
%o |lpr
% Default resolution of this device, in dots per inch.
D 600
X 600
Y 600
% Metafont mode. (This is completely different from the -M
% command-line option, which controls whether mktexpk is invoked.)
% See ../../metafont/misc/modes.mf for a list of mode names. This mode
% and the D number above must agree, or mktexpk will get confused.
M ljfour
% Last resort bitmap sizes.
R 300 600
% Correct printer offset. You can use testpage.tex from the LaTeX
% distribution to find these numbers.
O 0pt,0pt
% Bitmap font compression. Results in more compact output files, but
% sometimes causes trouble. So the default is disabled. Set Z1 to enable
% this feature.
Z0
% Partially download Type 1 fonts by default. Only reason not to do
% this is if you encounter bugs. (Please report them to
% @email{tex-k@tug.org} if you do.)
j
% This shows how to add your own map file.
% Remove the comment and adjust the name:
% p +myfonts.map
% If we have setpagedevice, use that.
% else if we have the a4 resp. letter operator, use that.
% else do nothing to set the page size.
%
% In the past, the a4size and letterSize definitions did not set the
% page size, but we want to set it if we can so that ps2pdf can work
% properly. Here, a4 and a4size, and letter and letterSize, are
% identical, and we prefer the a4/letter names -- texconfig uses them.
% 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 210mm 297mm
@+ ! %%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
@ a4size 210mm 297mm
@+ ! %%DocumentPaperSizes: a4
@+ %%BeginPaperSize: a4
@+ /setpagedevice where
@+ { pop << /PageSize [595 842] >> setpagedevice }
@+ { /a4 where { pop a4 } if }
@+ ifelse
@+ %%EndPaperSize
@ letterSize 8.5in 11in
@+ ! %%DocumentPaperSizes: Letter
@+ %%BeginPaperSize: Letter
@+ /setpagedevice where
@+ { pop << /PageSize [612 792] >> setpagedevice }
@+ { /letter where { pop letter } if }
@+ ifelse
@+ %%EndPaperSize
% The jacow paper size is the smaller of letter and a4 in both
% dimensions, and can therefore hopefully be printed on either paper
% size. As far as we know, Volker Schaa first used it for the JACOW
% conference proceedings that he produced.
@ jacow 210mm 11in
@+ ! %%DocumentPaperSizes: jacow
@+ %%BeginPaperSize: jacow
@+ /setpagedevice where
@+ { pop << /PageSize [595 792] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ halfexecutive 133mm 184mm
@+ ! %%DocumentPaperSizes: halfexecutive
@+ %%BeginPaperSize: halfexecutive
@+ /setpagedevice where
@+ { pop << /PageSize [378 522] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ halfletter 140mm 216mm
@+ ! %%DocumentPaperSizes: halfletter
@+ %%BeginPaperSize: halfletter
@+ /setpagedevice where
@+ { pop << /PageSize [396 612] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ statement 140mm 216mm
@+ ! %%DocumentPaperSizes: statement
@+ %%BeginPaperSize: statement
@+ /setpagedevice where
@+ { pop << /PageSize [396 612] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ executive 184mm 267mm
@+ ! %%DocumentPaperSizes: executive
@+ %%BeginPaperSize: executive
@+ /setpagedevice where
@+ { pop << /PageSize [522 756] >> setpagedevice }
@+ if
@+ %%EndPaperSize
% for powerdot
@ screen 8.25in 11in
@+ ! %%DocumentPaperSizes: Screen
@+ %%BeginPaperSize: Screen
@+ /setpagedevice where
@+ { pop << /PageSize [594 792] >> setpagedevice }
@+ if
@+ %%EndPaperSize
% a common size for printers (in north america).
@ sixbynine 6in 9in
@+ ! %%DocumentPaperSizes: SixByNine
@+ %%BeginPaperSize: SixByNine
@+ /setpagedevice where
@+ { pop << /PageSize [432 648] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ quarto 215mm 275mm
@+ ! %%DocumentPaperSizes: quarto
@+ %%BeginPaperSize: quarto
@+ /setpagedevice where
@+ { pop << /PageSize [610 780] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ note 216mm 279mm
@+ ! %%DocumentPaperSizes: note
@+ %%BeginPaperSize: note
@+ /setpagedevice where
@+ { pop << /PageSize [612 792] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ folio 216mm 330mm
@+ ! %%DocumentPaperSizes: folio
@+ %%BeginPaperSize: folio
@+ /setpagedevice where
@+ { pop << /PageSize [612 936] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ legal 8.5in 14in
@+ ! %%DocumentPaperSizes: Legal
@+ %%BeginPaperSize: Legal
@+ /setpagedevice where
@+ { pop << /PageSize [612 1008] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ 10x14 10in 14in
@+ ! %%DocumentPaperSizes: 10x14
@+ %%BeginPaperSize: 10x14
@+ /setpagedevice where
@+ { pop << /PageSize [720 1008] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ ledger 17in 11in
@+ ! %%DocumentPaperSizes: Ledger
@+ %%BeginPaperSize: Ledger
@+ /setpagedevice where
@+ { pop << /PageSize [1224 792] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ tabloid 11in 17in
@+ ! %%DocumentPaperSizes: Tabloid
@+ %%BeginPaperSize: Tabloid
@+ /setpagedevice where
@+ { pop << /PageSize [792 1224] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ 11x17 11in 17in
@+ ! %%DocumentPaperSizes: 11x17
@+ %%BeginPaperSize: 11x17
@+ /setpagedevice where
@+ { pop << /PageSize [792 1224] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ a0 841mm 1189mm
@+ ! %%DocumentPaperSizes: a0
@+ %%BeginPaperSize: a0
@+ /setpagedevice where
@+ { pop << /PageSize [2384 3370] >> setpagedevice }
@+ { /a0 where { pop a0 } if }
@+ ifelse
@+ %%EndPaperSize
@ a1 594mm 841mm
@+ ! %%DocumentPaperSizes: a1
@+ %%BeginPaperSize: a1
@+ /setpagedevice where
@+ { pop << /PageSize [1684 2384] >> setpagedevice }
@+ { /a1 where { pop a1 } if }
@+ ifelse
@+ %%EndPaperSize
@ a2 420mm 594mm
@+ ! %%DocumentPaperSizes: a2
@+ %%BeginPaperSize: a2
@+ /setpagedevice where
@+ { pop << /PageSize [1191 1684] >> setpagedevice }
@+ { /a2 where { pop a2 } if }
@+ ifelse
@+ %%EndPaperSize
@ a3 297mm 420mm
@+ ! %%DocumentPaperSizes: a3
@+ %%BeginPaperSize: a3
@+ /setpagedevice where
@+ { pop << /PageSize [842 1191] >> setpagedevice }
@+ { /a3 where { pop a3 } if }
@+ ifelse
@+ %%EndPaperSize
@ a5 148mm 210mm
@+ ! %%DocumentPaperSizes: a5
@+ %%BeginPaperSize: a5
@+ /setpagedevice where
@+ { pop << /PageSize [420 595] >> setpagedevice }
@+ { /a5 where { pop a5 } if }
@+ ifelse
@+ %%EndPaperSize
@ a6 105mm 148mm
@+ ! %%DocumentPaperSizes: a6
@+ %%BeginPaperSize: a6
@+ /setpagedevice where
@+ { pop << /PageSize [298 420] >> setpagedevice }
@+ { /a6 where { pop a6 } if }
@+ ifelse
@+ %%EndPaperSize
@ a7 74mm 105mm
@+ ! %%DocumentPaperSizes: a7
@+ %%BeginPaperSize: a7
@+ /setpagedevice where
@+ { pop << /PageSize [210 298] >> setpagedevice }
@+ { /a7 where { pop a7 } if }
@+ ifelse
@+ %%EndPaperSize
@ a8 52mm 74mm
@+ ! %%DocumentPaperSizes: a8
@+ %%BeginPaperSize: a8
@+ /setpagedevice where
@+ { pop << /PageSize [147 210] >> setpagedevice }
@+ { /a8 where { pop a8 } if }
@+ ifelse
@+ %%EndPaperSize
@ a9 37mm 52mm
@+ ! %%DocumentPaperSizes: a9
@+ %%BeginPaperSize: a9
@+ /setpagedevice where
@+ { pop << /PageSize [105 147] >> setpagedevice }
@+ { /a9 where { pop a9 } if }
@+ ifelse
@+ %%EndPaperSize
@ a10 26mm 37mm
@+ ! %%DocumentPaperSizes: a10
@+ %%BeginPaperSize: a10
@+ /setpagedevice where
@+ { pop << /PageSize [74 105] >> setpagedevice }
@+ { /a10 where { pop a10 } if }
@+ ifelse
@+ %%EndPaperSize
@ jisb0 1030mm 1456mm
@+ ! %%DocumentPaperSizes: jisb0
@+ %%BeginPaperSize: jisb0
@+ /setpagedevice where
@+ { pop << /PageSize [2920 4127] >> setpagedevice }
@+ { /jisb0 where { pop jisb0 } if }
@+ ifelse
@+ %%EndPaperSize
@ jisb1 728mm 1030mm
@+ ! %%DocumentPaperSizes: jisb1
@+ %%BeginPaperSize: jisb1
@+ /setpagedevice where
@+ { pop << /PageSize [2064 2920] >> setpagedevice }
@+ { /jisb1 where { pop jisb1 } if }
@+ ifelse
@+ %%EndPaperSize
@ jisb2 515mm 728mm
@+ ! %%DocumentPaperSizes: jisb2
@+ %%BeginPaperSize: jisb2
@+ /setpagedevice where
@+ { pop << /PageSize [1460 2064] >> setpagedevice }
@+ { /jisb2 where { pop jisb2 } if }
@+ ifelse
@+ %%EndPaperSize
@ jisb3 364mm 515mm
@+ ! %%DocumentPaperSizes: jisb3
@+ %%BeginPaperSize: jisb3
@+ /setpagedevice where
@+ { pop << /PageSize [1032 1460] >> setpagedevice }
@+ { /jisb3 where { pop jisb3 } if }
@+ ifelse
@+ %%EndPaperSize
@ jisb4 257mm 364mm
@+ ! %%DocumentPaperSizes: jisb4
@+ %%BeginPaperSize: jisb4
@+ /setpagedevice where
@+ { pop << /PageSize [729 1032] >> setpagedevice }
@+ { /jisb4 where { pop jisb4 } if }
@+ ifelse
@+ %%EndPaperSize
@ jisb5 182mm 257mm
@+ ! %%DocumentPaperSizes: jisb5
@+ %%BeginPaperSize: jisb5
@+ /setpagedevice where
@+ { pop << /PageSize [516 729] >> setpagedevice }
@+ { /jisb5 where { pop jisb5 } if }
@+ ifelse
@+ %%EndPaperSize
@ jisb6 128mm 182mm
@+ ! %%DocumentPaperSizes: jisb6
@+ %%BeginPaperSize: jisb6
@+ /setpagedevice where
@+ { pop << /PageSize [363 516] >> setpagedevice }
@+ { /jisb6 where { pop jisb6 } if }
@+ ifelse
@+ %%EndPaperSize
@ jisb7 91mm 128mm
@+ ! %%DocumentPaperSizes: jisb7
@+ %%BeginPaperSize: jisb7
@+ /setpagedevice where
@+ { pop << /PageSize [258 363] >> setpagedevice }
@+ { /jisb7 where { pop jisb7 } if }
@+ ifelse
@+ %%EndPaperSize
@ jisb8 64mm 91mm
@+ ! %%DocumentPaperSizes: jisb8
@+ %%BeginPaperSize: jisb8
@+ /setpagedevice where
@+ { pop << /PageSize [181 258] >> setpagedevice }
@+ { /jisb8 where { pop jisb8 } if }
@+ ifelse
@+ %%EndPaperSize
@ b0 1000mm 1414mm
@+ ! %%DocumentPaperSizes: b0
@+ %%BeginPaperSize: b0
@+ /setpagedevice where
@+ { pop << /PageSize [2835 4008] >> setpagedevice }
@+ { /b0 where { pop b0 } if }
@+ ifelse
@+ %%EndPaperSize
@ b1 707mm 1000mm
@+ ! %%DocumentPaperSizes: b1
@+ %%BeginPaperSize: b1
@+ /setpagedevice where
@+ { pop << /PageSize [2004 2835] >> setpagedevice }
@+ { /b1 where { pop b1 } if }
@+ ifelse
@+ %%EndPaperSize
@ b2 500mm 707mm
@+ ! %%DocumentPaperSizes: b2
@+ %%BeginPaperSize: b2
@+ /setpagedevice where
@+ { pop << /PageSize [1417 2004] >> setpagedevice }
@+ { /b2 where { pop b2 } if }
@+ ifelse
@+ %%EndPaperSize
@ b3 353mm 500mm
@+ ! %%DocumentPaperSizes: b3
@+ %%BeginPaperSize: b3
@+ /setpagedevice where
@+ { pop << /PageSize [1001 1417] >> setpagedevice }
@+ { /b3 where { pop b3 } if }
@+ ifelse
@+ %%EndPaperSize
@ b4 250mm 353mm
@+ ! %%DocumentPaperSizes: b4
@+ %%BeginPaperSize: b4
@+ /setpagedevice where
@+ { pop << /PageSize [709 1001] >> setpagedevice }
@+ { /b4 where { pop b4 } if }
@+ ifelse
@+ %%EndPaperSize
@ b5 176mm 250mm
@+ ! %%DocumentPaperSizes: b5
@+ %%BeginPaperSize: b5
@+ /setpagedevice where
@+ { pop << /PageSize [499 709] >> setpagedevice }
@+ { /b5 where { pop b5 } if }
@+ ifelse
@+ %%EndPaperSize
@ b6 125mm 176mm
@+ ! %%DocumentPaperSizes: b6
@+ %%BeginPaperSize: b6
@+ /setpagedevice where
@+ { pop << /PageSize [354 499] >> setpagedevice }
@+ { /b6 where { pop b6 } if }
@+ ifelse
@+ %%EndPaperSize
@ c5 162mm 229mm
@+ ! %%DocumentPaperSizes: c5
@+ %%BeginPaperSize: c5
@+ /setpagedevice where
@+ { pop << /PageSize [459 649] >> setpagedevice }
@+ { /c5 where { pop c5 } if }
@+ ifelse
@+ %%EndPaperSize
@ DL 110mm 220mm
@+ ! %%DocumentPaperSizes: DL
@+ %%BeginPaperSize: DL
@+ /setpagedevice where
@+ { pop << /PageSize [312 624] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ Comm10 105mm 241mm
@+ ! %%DocumentPaperSizes: Comm10
@+ %%BeginPaperSize: Comm10
@+ /setpagedevice where
@+ { pop << /PageSize [297 684] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ Monarch 98.4mm 190.5mm
@+ ! %%DocumentPaperSizes: Monarch
@+ %%BeginPaperSize: Monarch
@+ /setpagedevice where
@+ { pop << /PageSize [279 540] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ archE 36in 48in
@+ ! %%DocumentPaperSizes: archE
@+ %%BeginPaperSize: archE
@+ /setpagedevice where
@+ { pop << /PageSize [2592 3456] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ archD 24in 36in
@+ ! %%DocumentPaperSizes: archD
@+ %%BeginPaperSize: archD
@+ /setpagedevice where
@+ { pop << /PageSize [1728 2592] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ archC 18in 24in
@+ ! %%DocumentPaperSizes: archC
@+ %%BeginPaperSize: archC
@+ /setpagedevice where
@+ { pop << /PageSize [1296 1728] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ archB 12in 18in
@+ ! %%DocumentPaperSizes: archB
@+ %%BeginPaperSize: archB
@+ /setpagedevice where
@+ { pop << /PageSize [864 1296] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ archA 9in 12in
@+ ! %%DocumentPaperSizes: archA
@+ %%BeginPaperSize: archA
@+ /setpagedevice where
@+ { pop << /PageSize [648 864] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ flsa 216mm 330.2mm
@+ ! %%DocumentPaperSizes: flsa
@+ %%BeginPaperSize: flsa
@+ /setpagedevice where
@+ { pop << /PageSize [612 936] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ flse 216mm 330.2mm
@+ ! %%DocumentPaperSizes: flse
@+ %%BeginPaperSize: flse
@+ /setpagedevice where
@+ { pop << /PageSize [612 936] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ csheet 431.8mm 558.8mm
@+ ! %%DocumentPaperSizes: csheet
@+ %%BeginPaperSize: csheet
@+ /setpagedevice where
@+ { pop << /PageSize [1224 1584] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ dsheet 558.8mm 863.6mm
@+ ! %%DocumentPaperSizes: dsheet
@+ %%BeginPaperSize: dsheet
@+ /setpagedevice where
@+ { pop << /PageSize [1584 2448] >> setpagedevice }
@+ if
@+ %%EndPaperSize
@ esheet 863.6mm 1117.6mm
@+ ! %%DocumentPaperSizes: esheet
@+ %%BeginPaperSize: esheet
@+ /setpagedevice where
@+ { pop << /PageSize [2448 3168] >> setpagedevice }
@+ if
@+ %%EndPaperSize
% use -t unknown with a \special{papersize=...} for a nonstandard page size.
@ unknown 0in 0in
@+ statusdict /setpageparams known { hsize vsize 0 1 statusdict begin {
@+ setpageparams } stopped end } { true } ifelse { statusdict /setpage known
@+ { hsize vsize 1 statusdict begin { setpage } stopped pop end } if } if
|