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
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
|
<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.0.2, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- This manual documents Dvips version 2023.1
(February 2022), a program to translate a DVI file into
PostScript. You may freely use, modify and/or distribute this file. -->
<title>Dvips: A DVI-to-PostScript translator</title>
<meta name="description" content="Dvips: A DVI-to-PostScript translator">
<meta name="keywords" content="Dvips: A DVI-to-PostScript translator">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="#Top" rel="start" title="Top">
<link href="#Index" rel="index" title="Index">
<link href="#SEC_Contents" rel="contents" title="Table of Contents">
<link href="http://tug.org/texinfohtml" rel="up" title="(dir)">
<link href="#Why-Dvips" rel="next" title="Why Dvips">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
a.summary-letter-printindex {text-decoration: none}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
pre.display-preformatted {font-family: inherit}
span.r {font-family: initial; font-weight: normal; font-style: normal}
span:hover a.copiable-link {visibility: visible}
td.printindex-index-entry {vertical-align: top}
td.printindex-index-section {vertical-align: top}
th.entries-header-printindex {text-align:left}
th.sections-header-printindex {text-align:left}
ul.mark-bullet {list-style-type: disc}
ul.mark-minus {list-style-type: "\2212"}
ul.toc-numbered-mark {list-style: none}
-->
</style>
</head>
<body lang="en">
<div class="top-level-extent" id="Top">
<div class="nav-panel">
<p>
Next: <a href="#Why-Dvips" accesskey="n" rel="next">Why use Dvips?</a>, Up: <a href="http://tug.org/texinfohtml" accesskey="u" rel="up">(dir)</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h1 class="top" id="Dvips">Dvips</h1>
<p>This manual documents Dvips version 2023.1
(February 2022), a program to translate a DVI file into
PostScript. You may freely use, modify and/or distribute this file.
</p>
<div class="element-contents" id="SEC_Contents">
<h2 class="contents-heading">Table of Contents</h2>
<div class="contents">
<ul class="toc-numbered-mark">
<li><a id="toc-Why-use-Dvips_003f" href="#Why-Dvips">1 Why use Dvips?</a></li>
<li><a id="toc-Installation-1" href="#Installation">2 Installation</a>
<ul class="toc-numbered-mark">
<li><a id="toc-config_002eps-installation-1" href="#config_002eps-installation">2.1 <samp class="file">config.ps</samp> installation</a></li>
<li><a id="toc-PostScript-font-installation-1" href="#PostScript-font-installation">2.2 PostScript font installation</a></li>
<li><a id="toc-Ghostscript-installation-1" href="#Ghostscript-installation">2.3 Ghostscript installation</a></li>
<li><a id="toc-Diagnosing-problems-1" href="#Diagnosing-problems">2.4 Diagnosing problems</a>
<ul class="toc-numbered-mark">
<li><a id="toc-Debug-options-1" href="#Debug-options">2.4.1 Debug options</a></li>
<li><a id="toc-No-output-at-all" href="#No-output">2.4.2 No output at all</a></li>
<li><a id="toc-Output-too-small-or-inverted" href="#Small-or-inverted">2.4.3 Output too small or inverted</a></li>
<li><a id="toc-Error-messages-from-printer" href="#Printer-errors">2.4.4 Error messages from printer</a></li>
<li><a id="toc-Long-documents-fail-to-print" href="#Long-documents-fail">2.4.5 Long documents fail to print</a></li>
<li><a id="toc-Including-graphics-fails-1" href="#Including-graphics-fails">2.4.6 Including graphics fails</a></li>
</ul></li>
</ul></li>
<li><a id="toc-Invoking-Dvips-1" href="#Invoking-Dvips">3 Invoking Dvips</a>
<ul class="toc-numbered-mark">
<li><a id="toc-Basic-usage-of-Dvips" href="#Basic-usage">3.1 Basic usage of Dvips</a></li>
<li><a id="toc-Command_002dline-options-1" href="#Command_002dline-options">3.2 Command-line options</a>
<ul class="toc-numbered-mark">
<li><a id="toc-Option-summary-1" href="#Option-summary">3.2.1 Option summary</a></li>
<li><a id="toc-Option-details-1" href="#Option-details">3.2.2 Option details</a></li>
</ul></li>
<li><a id="toc-Environment-variables-1" href="#Environment-variables">3.3 Environment variables</a></li>
<li><a id="toc-Dvips-configuration-files" href="#Config-files">3.4 Dvips configuration files</a>
<ul class="toc-numbered-mark">
<li><a id="toc-Configuration-file-searching-1" href="#Configuration-file-searching">3.4.1 Configuration file searching</a></li>
<li><a id="toc-Configuration-file-commands-1" href="#Configuration-file-commands">3.4.2 Configuration file commands</a></li>
</ul></li>
</ul></li>
<li><a id="toc-Paper-size-and-landscape-orientation" href="#Paper-size-and-landscape">4 Paper size and landscape orientation</a>
<ul class="toc-numbered-mark">
<li><a id="toc-papersize-special-1" href="#papersize-special">4.1 ‘<samp class="samp">papersize</samp>’ special</a></li>
<li><a id="toc-Configuration-file-paper-size-command" href="#Config-file-paper-sizes">4.2 Configuration file paper size command</a></li>
<li><a id="toc-Paper-trays-1" href="#Paper-trays">4.3 Paper trays</a></li>
</ul></li>
<li><a id="toc-Interaction-with-PostScript-1" href="#Interaction-with-PostScript">5 Interaction with PostScript</a>
<ul class="toc-numbered-mark">
<li><a id="toc-PostScript-figures-1" href="#PostScript-figures">5.1 PostScript figures</a>
<ul class="toc-numbered-mark">
<li><a id="toc-The-bounding-box-comment" href="#Bounding-box">5.1.1 The bounding box comment</a></li>
<li><a id="toc-The-_005cincludegraphics-macro-for-LaTeX" href="#g_t_005cincludegraphics">5.1.2 The \includegraphics macro for LaTeX</a></li>
<li><a id="toc-Using-the-EPSF-macros" href="#EPSF-macros">5.1.3 Using the EPSF macros</a>
<ul class="toc-numbered-mark">
<li><a id="toc-EPSF-scaling-1" href="#EPSF-scaling">5.1.3.1 EPSF scaling</a></li>
<li><a id="toc-EPSF-clipping-1" href="#EPSF-clipping">5.1.3.2 EPSF clipping</a></li>
</ul></li>
<li><a id="toc-psfile-special-1" href="#psfile-special">5.1.4 ‘<samp class="samp">psfile</samp>’ special</a></li>
<li><a id="toc-Dynamic-creation-of-PostScript-graphics-files" href="#Dynamic-creation-of-graphics">5.1.5 Dynamic creation of PostScript graphics files</a></li>
<li><a id="toc-Fonts-in-figures-1" href="#Fonts-in-figures">5.1.6 Fonts in figures</a></li>
</ul></li>
<li><a id="toc-PostScript-header-files" href="#Header-files">5.2 PostScript header files</a>
<ul class="toc-numbered-mark">
<li><a id="toc-Including-headers-from-TeX-1" href="#Including-headers-from-TeX">5.2.1 Including headers from TeX</a></li>
<li><a id="toc-Including-headers-from-the-command-line-1" href="#Including-headers-from-the-command-line">5.2.2 Including headers from the command line</a></li>
<li><a id="toc-Headers-and-memory-usage-1" href="#Headers-and-memory-usage">5.2.3 Headers and memory usage</a></li>
</ul></li>
<li><a id="toc-Literal-PostScript" href="#Literal-PS">5.3 Literal PostScript</a>
<ul class="toc-numbered-mark">
<li><a id="toc-_0022-special_003a-Literal-PostScript" href="#g_t_0022-special">5.3.1 <code class="code">"</code> special: Literal PostScript</a></li>
<li><a id="toc-ps-special-1" href="#ps-special">5.3.2 ‘<samp class="samp">ps</samp>’ special</a></li>
<li><a id="toc-Literal-headers_003a-_0021-_005cspecial" href="#Literal-headers">5.3.3 Literal headers: ‘<samp class="samp">!</samp>’ <code class="code">\special</code></a></li>
<li><a id="toc-PostScript-hooks-1" href="#PostScript-hooks">5.3.4 PostScript hooks</a></li>
<li><a id="toc-Literal-examples-1" href="#Literal-examples">5.3.5 Literal examples</a></li>
</ul></li>
<li><a id="toc-HyperTeXt" href="#Hypertext">5.4 HyperTeXt</a>
<ul class="toc-numbered-mark">
<li><a id="toc-Hypertext-caveats-1" href="#Hypertext-caveats">5.4.1 Hypertext caveats</a></li>
<li><a id="toc-Hypertext-specials-1" href="#Hypertext-specials">5.4.2 Hypertext specials</a></li>
</ul></li>
</ul></li>
<li><a id="toc-PostScript-fonts-1" href="#PostScript-fonts">6 PostScript fonts</a>
<ul class="toc-numbered-mark">
<li><a id="toc-Font-concepts-1" href="#Font-concepts">6.1 Font concepts</a>
<ul class="toc-numbered-mark">
<li><a id="toc-Metric-files-1" href="#Metric-files">6.1.1 Metric files</a></li>
<li><a id="toc-Glyph-files-1" href="#Glyph-files">6.1.2 Glyph files</a></li>
<li><a id="toc-Virtual-fonts-1" href="#Virtual-fonts">6.1.3 Virtual fonts</a></li>
<li><a id="toc-Encodings-1" href="#Encodings">6.1.4 Encodings</a></li>
<li><a id="toc-Bitmap-font-encodings-1" href="#Bitmap-font-encodings">6.1.5 Bitmap font encodings</a></li>
<li><a id="toc-How-PostScript-typesets-a-character" href="#PostScript-typesetting">6.1.6 How PostScript typesets a character</a></li>
</ul></li>
<li><a id="toc-Making-a-PostScript-font-available" href="#Making-a-font-available">6.2 Making a PostScript font available</a></li>
<li><a id="toc-Invoking-Afm2tfm" href="#Invoking-afm2tfm">6.3 Invoking Afm2tfm</a>
<ul class="toc-numbered-mark">
<li><a id="toc-Changing-font-encodings-1" href="#Changing-font-encodings">6.3.1 Changing font encodings</a>
<ul class="toc-numbered-mark">
<li><a id="toc-_002dt_003a-Changing-TeX-encodings" href="#Changing-TeX-encodings">6.3.1.1 ‘<samp class="samp">-t</samp>’: Changing TeX encodings</a></li>
<li><a id="toc-_002dp_003a-Changing-PostScript-encodings" href="#Changing-PostScript-encodings">6.3.1.2 ‘<samp class="samp">-p</samp>’: Changing PostScript encodings</a></li>
<li><a id="toc-_002dT_003a-Changing-both-TeX-and-PostScript-encodings" href="#Changing-both-encodings">6.3.1.3 ‘<samp class="samp">-T</samp>’: Changing both TeX and PostScript encodings</a></li>
<li><a id="toc-Reencoding-with-Afm2tfm-1" href="#Reencoding-with-Afm2tfm">6.3.1.4 Reencoding with Afm2tfm</a></li>
<li><a id="toc-Encoding-file-format-1" href="#Encoding-file-format">6.3.1.5 Encoding file format</a></li>
</ul></li>
<li><a id="toc-Special-font-effects-1" href="#Special-font-effects">6.3.2 Special font effects</a></li>
<li><a id="toc-Afm2tfm-options-1" href="#Afm2tfm-options">6.3.3 Afm2tfm options</a></li>
</ul></li>
<li><a id="toc-psfonts_002emap_003a-PostScript-font-catalog" href="#psfonts_002emap">6.4 <samp class="file">psfonts.map</samp>: PostScript font catalog</a></li>
</ul></li>
<li><a id="toc-Color-1" href="#Color">7 Color</a>
<ul class="toc-numbered-mark">
<li><a id="toc-Color-macro-files-1" href="#Color-macro-files">7.1 Color macro files</a></li>
<li><a id="toc-User_002ddefinable-colors-1" href="#User_002ddefinable-colors">7.2 User-definable colors</a></li>
<li><a id="toc-Color-subtleties-1" href="#Color-subtleties">7.3 Color subtleties</a></li>
<li><a id="toc-Printing-in-black_002fwhite-after-colorizing" href="#Ted-Turner">7.4 Printing in black/white after colorizing</a></li>
<li><a id="toc-Color-device-configuration-1" href="#Color-device-configuration">7.5 Color device configuration</a></li>
<li><a id="toc-Color-support-details-1" href="#Color-support-details">7.6 Color support details</a>
<ul class="toc-numbered-mark">
<li><a id="toc-Color-specifications-1" href="#Color-specifications">7.6.1 Color specifications</a></li>
<li><a id="toc-Color-specials-1" href="#Color-specials">7.6.2 Color specials</a></li>
</ul></li>
</ul></li>
<li><a id="toc-Index-1" href="#Index" rel="index">Index</a></li>
</ul>
</div>
</div>
<div class="element-shortcontents" id="SEC_Shortcontents">
<h2 class="shortcontents-heading">Short Table of Contents</h2>
<div class="shortcontents">
<ul class="toc-numbered-mark">
<li><a id="stoc-Why-use-Dvips_003f" href="#toc-Why-use-Dvips_003f">1 Why use Dvips?</a></li>
<li><a id="stoc-Installation-1" href="#toc-Installation-1">2 Installation</a></li>
<li><a id="stoc-Invoking-Dvips-1" href="#toc-Invoking-Dvips-1">3 Invoking Dvips</a></li>
<li><a id="stoc-Paper-size-and-landscape-orientation" href="#toc-Paper-size-and-landscape-orientation">4 Paper size and landscape orientation</a></li>
<li><a id="stoc-Interaction-with-PostScript-1" href="#toc-Interaction-with-PostScript-1">5 Interaction with PostScript</a></li>
<li><a id="stoc-PostScript-fonts-1" href="#toc-PostScript-fonts-1">6 PostScript fonts</a></li>
<li><a id="stoc-Color-1" href="#toc-Color-1">7 Color</a></li>
<li><a id="stoc-Index-1" href="#toc-Index-1" rel="index">Index</a></li>
</ul>
</div>
</div>
<hr>
<div class="chapter-level-extent" id="Why-Dvips">
<div class="nav-panel">
<p>
Next: <a href="#Installation" accesskey="n" rel="next">Installation</a>, Previous: <a href="#Top" accesskey="p" rel="prev">Dvips</a>, Up: <a href="#Top" accesskey="u" rel="up">Dvips</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h2 class="chapter" id="Why-use-Dvips_003f">1 Why use Dvips?</h2>
<p>The Dvips program has a number of features that set it apart from
other PostScript drivers for TeX. This rather long section describes
the advantages of using Dvips, and may be skipped if you are just
interested in learning how to use the program. See <a class="xref" href="#Installation">Installation</a>, for
details of compilation and installation.
</p>
<p>The Dvips driver generates excellent, standard PostScript, that
can be included in other documents as figures or printed through a
variety of spoolers. The generated PostScript requires very little
printer memory, so very complex documents with a lot of fonts can easily
be printed even on PostScript printers without much memory, such as the
original Apple LaserWriter. The PostScript output is also compact,
requiring less disk space to store and making it feasible as a transfer
format.
</p>
<p>Even those documents that are too complex to print in their entirety on
a particular printer can be printed, since Dvips will
automatically split such documents into pieces, reclaiming the printer
memory between each piece.
</p>
<p>The Dvips program supports graphics in a natural way, allowing
PostScript graphics to be included and automatically scaled and
positioned in a variety of ways.
</p>
<p>Printers with any resolution are supported, even if they have different
resolutions in the horizontal and vertical directions. High resolution
output is supported for typesetters, including an option that compresses
the bitmap fonts so that typesetter virtual memory is not exhausted.
This option also significantly reduces the size of the PostScript file
and decoding in the printer is very fast.
</p>
<p>Missing fonts can be automatically generated if Metafont exists on
the system, or fonts can be converted from GF to PK format
on demand. If a font cannot be generated, a scaled version of the same
font at a different size can be used instead, although Dvips will
complain loudly about the poor aesthetics of the resulting output.
</p>
<p>One of the most important features is the support of virtual fonts,
which add an entirely new level of flexibility to TeX. Dvips even
comes with its own Afm2tfm program that can create the virtual fonts
and TeX font metric files automatically from Adobe font metric
files.
</p>
<p>Source is provided and freely distributable, so adding a site-specific feature
is possible. Adding such features is made easier by the highly modular
structure of the program.
</p>
<a class="index-entry-id" id="index-Rokicki_002c-Tomas"></a>
<p>Tom Rokicki wrote and maintains the original Dvips program.
</p>
<hr>
</div>
<div class="chapter-level-extent" id="Installation">
<div class="nav-panel">
<p>
Next: <a href="#Invoking-Dvips" accesskey="n" rel="next">Invoking Dvips</a>, Previous: <a href="#Why-Dvips" accesskey="p" rel="prev">Why use Dvips?</a>, Up: <a href="#Top" accesskey="u" rel="up">Dvips</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h2 class="chapter" id="Installation-1">2 Installation</h2>
<a class="index-entry-id" id="index-configuration_002c-of-Dvips"></a>
<a class="index-entry-id" id="index-compilation"></a>
<a class="index-entry-id" id="index-installation_002c-of-Dvips"></a>
<p>Installing Dvips is mostly the same as installing any Kpathsea-using
program. Therefore, for the basic steps involved,
see <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Installation">Installation</a> in <cite class="cite">Kpathsea</cite>.
</p>
<p>For solutions to common installation problems and information on how to
report a bug, see the file <samp class="file">kpathsea/BUGS</samp> (see <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Bugs">Bugs</a> in <cite class="cite">Kpathsea</cite>). For solutions to Dvips-specific problems,
see <a class="pxref" href="#Debug-options">Debug options</a>.
</p>
<p>Dvips does require some additional installation, detailed in the
sections below. Also, to configure color devices, see <a class="pxref" href="#Color-device-configuration">Color device configuration</a>.
</p>
<ul class="mini-toc">
<li><a href="#config_002eps-installation" accesskey="1"><samp class="file">config.ps</samp> installation</a></li>
<li><a href="#PostScript-font-installation" accesskey="2">PostScript font installation</a></li>
<li><a href="#Ghostscript-installation" accesskey="3">Ghostscript installation</a></li>
<li><a href="#Diagnosing-problems" accesskey="4">Diagnosing problems</a></li>
</ul>
<hr>
<div class="section-level-extent" id="config_002eps-installation">
<div class="nav-panel">
<p>
Next: <a href="#PostScript-font-installation" accesskey="n" rel="next">PostScript font installation</a>, Up: <a href="#Installation" accesskey="u" rel="up">Installation</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="config_002eps-installation-1">2.1 <samp class="file">config.ps</samp> installation</h3>
<a class="index-entry-id" id="index-config_002eps-installation"></a>
<a class="index-entry-id" id="index-installation-of-config_002eps"></a>
<a class="index-entry-id" id="index-printer-configuration"></a>
<a class="index-entry-id" id="index-paper-size_002c-default"></a>
<a class="index-entry-id" id="index-configuration-files_002c-creating"></a>
<p>Dvips has its own configuration files: a file <samp class="file">config.ps</samp> for
sitewide defaults, and a file <samp class="file">config.<var class="var">printer</var></samp> for each
printer (output device). Since these are site-specific, <code class="code">make
install</code> does not create them; you must create them yourself.
</p>
<p>(These Dvips configuration files are independent of the Kpathsea
configuration file <samp class="file">texmf.cnf</samp> (see <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Config-files">Config files</a> in <cite class="cite">Kpathsea</cite>).
</p>
<a class="index-entry-id" id="index-config_002eproto"></a>
<a class="index-entry-id" id="index-prototype-printer-configuration-file"></a>
<a class="index-entry-id" id="index-printer-configuration-file_002c-prototype"></a>
<a class="index-entry-id" id="index-configuration-files_002c-prototype"></a>
<p>Dvips configuration files contents and searching are described fully in
<a class="ref" href="#Config-files">Dvips configuration files</a>. The simplest way to create a new configuration file
is to copy and modify the file <samp class="file">dvipsk/contrib/config.proto</samp>,
seasoning with options to your taste from <a class="ref" href="#Config-files">Dvips configuration files</a>. Here is
<samp class="file">config.proto</samp>
for your reading pleasure:
</p><div class="example">
<pre class="example-preformatted">% Prototype Dvips configuration file. (Public domain.)
% How to print, maybe with lp instead lpr, etc.
o |lpr
% Default resolution of this device, in dots per inch.
D 600
% Metafont mode. (This is completely different from the -M command-line
% option, which controls whether MakeTeXPK is invoked.) Get
% <a class="url" href="ftp://ftp.tug.org/tex/modes.mf">ftp://ftp.tug.org/tex/modes.mf</a> for a list of mode names. This mode
% and the D number above must agree, or MakeTeXPK will get confused.
M ljfour
% 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
% Correct printer offset. You can use testpage.tex from the LaTeX
% distribution to find these numbers. Print testpage.dvi more than once.
O 0pt,0pt
% Partially download Type 1 fonts by default. Only reason not to do
% this is if you encounter bugs. (Please report them to
% <a class="email" href="mailto:tex-k@tug.org">tex-k@tug.org</a> if you do.)
j
% Also look for fonts at these resolutions.
R 300 600
% With a high resolution and a RISC cpu, better to compress the bitmaps.
Z
% Uncomment these if you have and want to use PostScript versions of the
% fonts.
%p +cmfonts.map
%p +lafonts.map
%p +cyrfonts.map
%p +eufonts.map
% To include another configuration file here.
%c FILENAME
% You will also want definitions for alternative paper sizes -- A4,
% legal, and such. Examples in <samp class="file">contrib/papersize.level2</samp> and
% <samp class="file">contrib/papersize.simple</samp>.
</pre></div>
<hr>
</div>
<div class="section-level-extent" id="PostScript-font-installation">
<div class="nav-panel">
<p>
Next: <a href="#Ghostscript-installation" accesskey="n" rel="next">Ghostscript installation</a>, Previous: <a href="#config_002eps-installation" accesskey="p" rel="prev"><samp class="file">config.ps</samp> installation</a>, Up: <a href="#Installation" accesskey="u" rel="up">Installation</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="PostScript-font-installation-1">2.2 PostScript font installation</h3>
<a class="index-entry-id" id="index-installation-of-PostScript-fonts"></a>
<a class="index-entry-id" id="index-fonts_002c-installation-of-PostScript"></a>
<a class="index-entry-id" id="index-PostScript-fonts_002c-installing"></a>
<p>To use PostScript fonts with TeX and Dvips, you need both metric
files (<samp class="file">.tfm</samp> and <samp class="file">.vf</samp>) and the outlines (<samp class="file">.pfa</samp> or
<samp class="file">.pfb</samp>). See <a class="xref" href="#Font-concepts">Font concepts</a>. Current TeX systems
come with support for 35 base PostScript fonts and many more.
</p>
<a class="index-entry-id" id="index-fonts_002c-system-PostScript"></a>
<a class="index-entry-id" id="index-PostScript-fonts_002c-on-your-system"></a>
<a class="index-entry-id" id="index-psfonts_002emap"></a>
<p>If you have additional PostScript fonts, you can make them available
to Dvips by (1) giving them appropriate filenames; and
(2) running Afm2tfm (see <a class="pxref" href="#Making-a-font-available">Making a PostScript font available</a>) to make TFM
and VF metrics for TeX and Dvips to use. Also add them to
<samp class="file">psfonts.map</samp> (see <a class="pxref" href="#psfonts_002emap"><samp class="file">psfonts.map</samp>: PostScript font catalog</a>); this file must contain
everything available in the system. The <code class="code">updmap</code> program is
usually used to maintain <samp class="file">psfonts.map</samp>; run ‘<samp class="samp">updmap --help</samp>’
for lots of information about how it works.
</p>
<hr>
</div>
<div class="section-level-extent" id="Ghostscript-installation">
<div class="nav-panel">
<p>
Next: <a href="#Diagnosing-problems" accesskey="n" rel="next">Diagnosing problems</a>, Previous: <a href="#PostScript-font-installation" accesskey="p" rel="prev">PostScript font installation</a>, Up: <a href="#Installation" accesskey="u" rel="up">Installation</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Ghostscript-installation-1">2.3 Ghostscript installation</h3>
<a class="index-entry-id" id="index-Ghostscript-installation"></a>
<a class="index-entry-id" id="index-gs-installation"></a>
<a class="index-entry-id" id="index-Deutsch_002c-Peter"></a>
<a class="index-entry-id" id="index-Epson-printers"></a>
<a class="index-entry-id" id="index-previewing-Dvips-output"></a>
<a class="index-entry-id" id="index-PostScript-previewers"></a>
<a class="index-entry-id" id="index-PDF-files_002c-making"></a>
<a class="index-entry-id" id="index-Aladdin-Ghostscript"></a>
<p>Ghostscript is a PostScript interpreter freely available to end-users,
originally written by Peter Deutsch. It can read the PostScript
produced by Dvips and render it on your monitor, or for another device
(e.g., an Epson printer) that does not support PostScript, or in PDF
format. The latest version is available via
<a class="url" href="https://ghostscript.com">https://ghostscript.com</a>.
</p>
<a class="index-entry-id" id="index-Theisen_002c-Tim"></a>
<a class="index-entry-id" id="index-ghostview"></a>
<a class="index-entry-id" id="index-Ghostview_002c-and-no-N"></a>
<a class="index-entry-id" id="index-EPS_002c-and-Ghostview"></a>
<a class="index-entry-id" id="index-standard-PostScript_002c-required-by-Ghostview"></a>
<a class="index-entry-id" id="index-_0025_0025Page_002c-required-by-Ghostview"></a>
<p>The program Ghostview, originally written by Johannes Plass and Tim
Theisen, provides typical previewing capabilities (next page/previous
page, magnification, etc.). It requires Ghostscript to run, and files
in structured PostScript, specifically with ‘<samp class="samp">%%Page</samp>’ comments (no
‘<samp class="samp">N</samp>’ in <samp class="file">config.ps</samp>). The current version is known as GV,
and is available from <a class="url" href="https://www.gnu.org/software/gv">https://www.gnu.org/software/gv</a>.
</p>
<hr>
</div>
<div class="section-level-extent" id="Diagnosing-problems">
<div class="nav-panel">
<p>
Previous: <a href="#Ghostscript-installation" accesskey="p" rel="prev">Ghostscript installation</a>, Up: <a href="#Installation" accesskey="u" rel="up">Installation</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Diagnosing-problems-1">2.4 Diagnosing problems</h3>
<a class="index-entry-id" id="index-problems"></a>
<a class="index-entry-id" id="index-trouble"></a>
<a class="index-entry-id" id="index-debugging"></a>
<p>You’ve gone through all the trouble of installing Dvips, carefully read
all the instructions in this manual, and still can’t get something to
work. The following sections provide some helpful hints if you find
yourself in such a situation.
</p>
<p>For details on effective bug reporting, common installation problems,
and <code class="code">mktexpk</code> problems, see <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Bugs">Bugs</a> in <cite class="cite">Kpathsea</cite>.
</p>
<p>A good first debugging operation is to set the environment variable
<code class="env">DVIPSDEBUG</code>, which will display any configuration and map files
read by Dvips. This way you can be sure it’s finding the files and
settings you expect.
</p>
<ul class="mini-toc">
<li><a href="#Debug-options" accesskey="1">Debug options</a></li>
<li><a href="#No-output" accesskey="2">No output at all</a></li>
<li><a href="#Small-or-inverted" accesskey="3">Output too small or inverted</a></li>
<li><a href="#Printer-errors" accesskey="4">Error messages from printer</a></li>
<li><a href="#Long-documents-fail" accesskey="5">Long documents fail to print</a></li>
<li><a href="#Including-graphics-fails" accesskey="6">Including graphics fails</a></li>
</ul>
<hr>
<div class="subsection-level-extent" id="Debug-options">
<div class="nav-panel">
<p>
Next: <a href="#No-output" accesskey="n" rel="next">No output at all</a>, Up: <a href="#Diagnosing-problems" accesskey="u" rel="up">Diagnosing problems</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Debug-options-1">2.4.1 Debug options</h4>
<a class="index-entry-id" id="index-debugging-options"></a>
<a class="index-entry-id" id="index-options_002c-debugging"></a>
<p>The ‘<samp class="samp">-d</samp>’ flag to Dvips helps in tracking down certain errors.
The parameter to this flag is an integer that tells what errors are
currently being tracked. To track a certain class of debug messages,
specify the appropriate number given below; if you wish to track
multiple classes, sum the numbers of the classes you wish to track.
To track all classes, you can use <code class="code">-1</code>.
</p>
<p>You can also set the environment variable <code class="env">KPATHSEA_DEBUG</code> instead
of using ‘<samp class="samp">-d</samp>’. Some of these debugging options are actually
provided by Kpathsea (see <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Debugging">Debugging</a> in <cite class="cite">Kpathsea</cite>).
</p>
<p>The classes are:
</p>
<dl class="table">
<dt>1</dt>
<dd><p>specials
</p></dd>
<dt>2</dt>
<dd><p>paths
</p></dd>
<dt>4</dt>
<dd><p>fonts
</p></dd>
<dt>8</dt>
<dd><p>pages
</p></dd>
<dt>16</dt>
<dd><p>headers
</p></dd>
<dt>32</dt>
<dd><p>font compression
</p></dd>
<dt>64</dt>
<dd><p>files
</p></dd>
<dt>128</dt>
<dd><p>(omitted)
</p></dd>
<dt>256</dt>
<dd><p>config files
</p></dd>
<dt>512</dt>
<dd><p>Kpathsea <code class="code">stat</code> calls
</p></dd>
<dt>1024</dt>
<dd><p>Kpathsea hash table lookups
</p></dd>
<dt>2048</dt>
<dd><p>Kpathsea path element expansion
</p></dd>
<dt>4096</dt>
<dd><p>Kpathsea path searches
</p></dd>
</dl>
<hr>
</div>
<div class="subsection-level-extent" id="No-output">
<div class="nav-panel">
<p>
Next: <a href="#Small-or-inverted" accesskey="n" rel="next">Output too small or inverted</a>, Previous: <a href="#Debug-options" accesskey="p" rel="prev">Debug options</a>, Up: <a href="#Diagnosing-problems" accesskey="u" rel="up">Diagnosing problems</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="No-output-at-all">2.4.2 No output at all</h4>
<a class="index-entry-id" id="index-output_002c-none"></a>
<a class="index-entry-id" id="index-no-output-at-all"></a>
<a class="index-entry-id" id="index-failure_002c-to-print-at-all"></a>
<p>If you are not getting any output at all, even from the simplest
one-character file (for instance, ‘<samp class="samp">\ \bye</samp>’), then something is very
wrong. Practically any file sent to a PostScript laser printer should
generate some output, at the very least a page detailing what error
occurred, if any. Talk to your system administrator about downloading a
PostScript error handler. (Adobe distributes a good one called
‘<samp class="samp">ehandler.ps</samp>’.)
<a class="index-entry-id" id="index-ehandler_002eps"></a>
</p>
<a class="index-entry-id" id="index-PowerPage-PostScript-implementation"></a>
<a class="index-entry-id" id="index-Shinko-CHC_002dS446i-printer"></a>
<a class="index-entry-id" id="index-Mitsubishi-Shinko-CHC_002dS446i-printer"></a>
<p>It is possible, especially if you are using non-Adobe PostScript, that
your PostScript interpreter is broken. Even then it should generate an
error message. Dvips tries to work around as many bugs as possible in
common non-Adobe PostScript interpreters, but doubtless it misses a few.
PowerPage Revision 1, Interpreter Version 20001.001, on a Mitsubishi
Shinko CHC-S446i color thermal dye sublimation printer is known to be
unable to print with any but builtin fonts.
</p>
<p>If Dvips gives any strange error messages, or compilation on your
machine generated a lot of warnings, perhaps the Dvips program itself is
broken. Try using the debug options to determine where the error
occurred (see <a class="pxref" href="#Debug-options">Debug options</a>).
</p>
<p>It is possible your spooler is broken and is misinterpreting the
structured comments. Try the ‘<samp class="samp">-N</samp>’ flag to turn off structured
comments and see what happens.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Small-or-inverted">
<div class="nav-panel">
<p>
Next: <a href="#Printer-errors" accesskey="n" rel="next">Error messages from printer</a>, Previous: <a href="#No-output" accesskey="p" rel="prev">No output at all</a>, Up: <a href="#Diagnosing-problems" accesskey="u" rel="up">Diagnosing problems</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Output-too-small-or-inverted">2.4.3 Output too small or inverted</h4>
<a class="index-entry-id" id="index-output_002c-too-small"></a>
<a class="index-entry-id" id="index-output_002c-inverted"></a>
<a class="index-entry-id" id="index-inverted-output"></a>
<a class="index-entry-id" id="index-too_002dsmall-output"></a>
<a class="index-entry-id" id="index-save_002frestore_002c-and-inverted-output"></a>
<p>If some documents come out inverted or too small, probably your spooler
is not supplying an end of job indicator at the end of each file. (This
commonly happens on small machines that don’t have spoolers.) You can
force Dvips to do this with the ‘<samp class="samp">-F</samp>’ flag (or ‘<samp class="samp">F</samp>’ config file
option), but this generates files with a terminating binary character
(control-D). You can also try using the ‘<samp class="samp">-s</samp>’ flag (or ‘<samp class="samp">s</samp>’
config file option) to enclose the entire job in a save/restore pair.
See <a class="xref" href="#Command_002dline-options">Command-line options</a>, and <a class="ref" href="#Config-files">Dvips configuration files</a>.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Printer-errors">
<div class="nav-panel">
<p>
Next: <a href="#Long-documents-fail" accesskey="n" rel="next">Long documents fail to print</a>, Previous: <a href="#Small-or-inverted" accesskey="p" rel="prev">Output too small or inverted</a>, Up: <a href="#Diagnosing-problems" accesskey="u" rel="up">Diagnosing problems</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Error-messages-from-printer">2.4.4 Error messages from printer</h4>
<a class="index-entry-id" id="index-printer-errors"></a>
<a class="index-entry-id" id="index-error-messages-from-printer"></a>
<a class="index-entry-id" id="index-failure_002c-and-printer-errors"></a>
<a class="index-entry-id" id="index-bop-undefined-error"></a>
<p>If your printer returns error messages, the error message gives very
good information on what might be going wrong. One of the most common
error messages is ‘<samp class="samp">bop undefined</samp>’. This is caused by old versions
of Transcript and other spoolers that do not properly parse the setup
section of the PostScript. To fix this, turn off structured comments
with the ‘<samp class="samp">-N</samp>’ option, but it’d be best to get your spooling
software updated.
</p>
<a class="index-entry-id" id="index-VM-exhausted"></a>
<a class="index-entry-id" id="index-printer-memory-exhausted"></a>
<a class="index-entry-id" id="index-memory-of-printer-exhausted"></a>
<p>Another error message is ‘<samp class="samp">VM exhausted</samp>’. Some printers indicate
this error by locking up, others quietly reset. This is caused by Dvips
thinking that the printer has more memory than it actually does, and
then printing a complicated document. To fix this, try lowering the
‘<samp class="samp">m</samp>’ parameter in the configuration file; use the debug option to
make sure you adjust the correct file.
</p>
<p>Other errors may indicate you are trying to include graphics that don’t
nest properly in other PostScript documents, among other things. Try
the PostScript file on a QMS PS-810 or other Adobe PostScript printer if
you have one, or Ghostscript (see <a class="pxref" href="#Ghostscript-installation">Ghostscript installation</a>); it
might be a problem with the printer itself.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Long-documents-fail">
<div class="nav-panel">
<p>
Next: <a href="#Including-graphics-fails" accesskey="n" rel="next">Including graphics fails</a>, Previous: <a href="#Printer-errors" accesskey="p" rel="prev">Error messages from printer</a>, Up: <a href="#Diagnosing-problems" accesskey="u" rel="up">Diagnosing problems</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Long-documents-fail-to-print">2.4.5 Long documents fail to print</h4>
<a class="index-entry-id" id="index-long-documents-not-printing"></a>
<a class="index-entry-id" id="index-failure_002c-of-long-documents"></a>
<p>This is usually caused by incorrectly specifying the amount of memory
the printer has in the configuration file; see the previous section.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Including-graphics-fails">
<div class="nav-panel">
<p>
Previous: <a href="#Long-documents-fail" accesskey="p" rel="prev">Long documents fail to print</a>, Up: <a href="#Diagnosing-problems" accesskey="u" rel="up">Diagnosing problems</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Including-graphics-fails-1">2.4.6 Including graphics fails</h4>
<a class="index-entry-id" id="index-including-graphics-fails"></a>
<a class="index-entry-id" id="index-graphics-inclusion-fails"></a>
<a class="index-entry-id" id="index-failure_002c-to-include-graphics"></a>
<p>The most common problem with including graphics is an incorrect bounding
box (see <a class="pxref" href="#Bounding-box">The bounding box comment</a>). Complain to whoever wrote the software that
generated the file if the bounding box is indeed incorrect.
</p>
<a class="index-entry-id" id="index-Illustrator_002c-workaround-for"></a>
<p>Another possible problem is that the figure you are trying to include
does not nest properly; there are certain rules PostScript applications
must follow when generating files to be included. The Dvips program
includes work-arounds for such errors in Adobe Illustrator and other
programs, but there are certainly applications that haven’t been tested.
</p>
<p>One possible thing to try is the ‘<samp class="samp">-K</samp>’ flag which strips the comments
from an included figure. This might be necessary if the PostScript
spooling software does not read the structured comments correctly. Use
of this flag will break graphics from some applications, though, since
some applications read the PostScript file from the input stream,
looking for a particular comment.
</p>
<a class="index-entry-id" id="index-binary-files_002c-not-supported"></a>
<p>Any application which generates graphics output containing raw binary
(not ASCII hex) will probably fail with Dvips.
</p>
<hr>
</div>
</div>
</div>
<div class="chapter-level-extent" id="Invoking-Dvips">
<div class="nav-panel">
<p>
Next: <a href="#Paper-size-and-landscape" accesskey="n" rel="next">Paper size and landscape orientation</a>, Previous: <a href="#Installation" accesskey="p" rel="prev">Installation</a>, Up: <a href="#Top" accesskey="u" rel="up">Dvips</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h2 class="chapter" id="Invoking-Dvips-1">3 Invoking Dvips</h2>
<a class="index-entry-id" id="index-command_002dline-options"></a>
<a class="index-entry-id" id="index-options_002c-Dvips"></a>
<a class="index-entry-id" id="index-invoking-Dvips"></a>
<p>Dvips reads a DVI file as output by (for example) TeX, and converts
it to PostScript, taking care of builtin or downloaded PostScript fonts,
font reencoding, color, etc. These features are described in other
chapters in this document.
</p>
<p>There many ways to control Dvips’ behavior: configuration files,
environment variables, and command-line options.
</p>
<ul class="mini-toc">
<li><a href="#Basic-usage" accesskey="1">Basic usage of Dvips</a></li>
<li><a href="#Command_002dline-options" accesskey="2">Command-line options</a></li>
<li><a href="#Environment-variables" accesskey="3">Environment variables</a></li>
<li><a href="#Config-files" accesskey="4">Dvips configuration files</a></li>
</ul>
<hr>
<div class="section-level-extent" id="Basic-usage">
<div class="nav-panel">
<p>
Next: <a href="#Command_002dline-options" accesskey="n" rel="next">Command-line options</a>, Up: <a href="#Invoking-Dvips" accesskey="u" rel="up">Invoking Dvips</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Basic-usage-of-Dvips">3.1 Basic usage of Dvips</h3>
<a class="index-entry-id" id="index-usage_002c-basic"></a>
<p>To use Dvips at its simplest, simply type
</p>
<div class="example">
<pre class="example-preformatted">dvips foo
</pre></div>
<p>where <samp class="file">foo.dvi</samp> is the output of TeX that you want to print.
The default output is to a corresponding file <samp class="file">foo.ps</samp>; Dvips may
also have been locally configured to output directly to a printer by
default.
</p>
<p>If you use fonts that have not been used on your system before, they may
be automatically generated; this process can take a few minutes, so
progress reports appear by default. The next time that document is
printed, these fonts will have been saved in the proper directories, so
printing will go much faster. (If Dvips tries to endlessly generate the
same fonts over and over again, it hasn’t been installed properly.
See <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Unable-to-generate-fonts">Unable to generate fonts</a> in <cite class="cite">Kpathsea</cite>.)
</p>
<p>Many options are available (see the next section). For a brief summary
of available options, run
</p>
<div class="example">
<pre class="example-preformatted">dvips --help
</pre></div>
<hr>
</div>
<div class="section-level-extent" id="Command_002dline-options">
<div class="nav-panel">
<p>
Next: <a href="#Environment-variables" accesskey="n" rel="next">Environment variables</a>, Previous: <a href="#Basic-usage" accesskey="p" rel="prev">Basic usage of Dvips</a>, Up: <a href="#Invoking-Dvips" accesskey="u" rel="up">Invoking Dvips</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Command_002dline-options-1">3.2 Command-line options</h3>
<p>Dvips has a plethora of command line options. Reading through this
section will give a good idea of the capabilities of the driver.
</p>
<ul class="mini-toc">
<li><a href="#Option-summary" accesskey="1">Option summary</a></li>
<li><a href="#Option-details" accesskey="2">Option details</a></li>
</ul>
<hr>
<div class="subsection-level-extent" id="Option-summary">
<div class="nav-panel">
<p>
Next: <a href="#Option-details" accesskey="n" rel="next">Option details</a>, Up: <a href="#Command_002dline-options" accesskey="u" rel="up">Command-line options</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Option-summary-1">3.2.1 Option summary</h4>
<a class="index-entry-id" id="index-options_002c-summary"></a>
<p>Here is a handy summary of the options; it is printed out when you run
Dvips with no arguments or with the standard ‘<samp class="samp">--help</samp>’ option.
<a class="index-entry-id" id="index-_002d_002dhelp"></a>
</p>
<pre class="verbatim">Usage: dvips [OPTION]... FILENAME[.dvi]
Convert DVI input files to PostScript.
See http://tug.org/dvips/ for the full manual and other information.
Options:
-a* Conserve memory, not time -A Print only odd (TeX) pages
-b # Page copies, for posters e.g. -B Print only even (TeX) pages
-c # Uncollated copies -C # Collated copies
-d # Debugging -D # Resolution
-e # Maxdrift value -E* Try to create EPSF
-f* Run as filter -F* Send control-D at end
-G* Shift low chars to higher pos.
-h f Add header file
-i* Separate file per section
-j* Download fonts partially
-k* Print crop marks -K* Pull comments from inclusions
-l # Last page -L* Last special papersize wins
-m* Manual feed -M* Don't make fonts
-mode s Metafont device name
-n # Maximum number of pages -N* No structured comments
-noomega Disable Omega extensions
-noptex Disable pTeX extensions
-o f Output file -O c Set/change paper offset
-p # First page -P s Load config.$s
-pp l Print only pages listed
-q* Run quietly
-r* Reverse order of pages -R* Run securely
-s* Enclose output in save/restore -S # Max section size in pages
-t s Paper format -T c Specify desired page size
-title s Title in comment
-u s PS mapfile -U* Disable string param trick
-v Print version number and quit -V* Send downloadable PS fonts as PK
-x # Override dvi magnification -X # Horizontal resolution
-y # Multiply by dvi magnification -Y # Vertical resolution
-z* Hyper PS -Z* Compress bitmap fonts
# = number f = file s = string * = suffix, `0' to turn off
c = comma-separated dimension pair (e.g., 3.2in,-32.1cm)
l = comma-separated list of page ranges (e.g., 1-4,7-9)
Email bug reports to tex-k@mail.tug.org.
</pre>
<hr>
</div>
<div class="subsection-level-extent" id="Option-details">
<div class="nav-panel">
<p>
Previous: <a href="#Option-summary" accesskey="p" rel="prev">Option summary</a>, Up: <a href="#Command_002dline-options" accesskey="u" rel="up">Command-line options</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Option-details-1">3.2.2 Option details</h4>
<a class="index-entry-id" id="index-option_002c-details-of"></a>
<p>Many of the parameterless options listed here can be turned off by
suffixing the option with a zero (‘<samp class="samp">0</samp>’); for instance, to turn off
page reversal, use ‘<samp class="samp">-r0</samp>’. Such options are marked with a trailing
‘<samp class="samp">*</samp>’.
</p>
<dl class="table">
<dt id='index-_002d'><span>‘<samp class="samp">-</samp>’<a class="copiable-link" href='#index-_002d'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-options_002c-reading-from-standard-input"></a>
<a class="index-entry-id" id="index-standard-input_002c-reading-options-from"></a>
<p>Read additional options from standard input after processing the command
line.
</p>
</dd>
<dt id='index-_002d_002dhelp-1'><span>‘<samp class="samp">--help</samp>’<a class="copiable-link" href='#index-_002d_002dhelp-1'> ¶</a></span></dt>
<dd><p>Print a usage message and exit.
</p>
</dd>
<dt id='index-_002d_002dversion'><span>‘<samp class="samp">--version</samp>’<a class="copiable-link" href='#index-_002d_002dversion'> ¶</a></span></dt>
<dd><p>Print the version number and exit.
</p>
</dd>
<dt id='index-_002da'><span>‘<samp class="samp">-a*</samp>’<a class="copiable-link" href='#index-_002da'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-memory_002c-conserving"></a>
<p>Conserve memory by making three passes over the DVI file instead
of two and only loading those characters actually used. Generally only
useful on machines with a very limited amount of memory, like some PCs.
</p>
</dd>
<dt id='index-_002dA'><span>‘<samp class="samp">-A</samp>’<a class="copiable-link" href='#index-_002dA'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-odd-pages-only"></a>
<p>Print only the odd pages. This option uses TeX
page numbers, not physical page numbers.
</p>
</dd>
<dt id='index-_002db-num'><span>‘<samp class="samp">-b <var class="var">num</var></samp>’<a class="copiable-link" href='#index-_002db-num'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-_002f_0023copies"></a>
<a class="index-entry-id" id="index-copies_002c-duplicated-page-bodies"></a>
<a class="index-entry-id" id="index-color-separations"></a>
<p>Generate <var class="var">num</var> copies of each page, but duplicating the page body
rather than using the ‘<samp class="samp">/#copies</samp>’ PostScript variable. This can
be useful in conjunction with a header file setting ‘<samp class="samp">bop-hook</samp>’ to
do color separations or other neat tricks.
</p>
</dd>
<dt id='index-_002dB'><span>‘<samp class="samp">-B</samp>’<a class="copiable-link" href='#index-_002dB'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-even-pages-only"></a>
<a class="index-entry-id" id="index-double_002dsided-printing"></a>
<p>Print only the even pages. This option uses TeX page numbers, not
physical page numbers.
</p>
</dd>
<dt id='index-_002dbitmapfontenc-option'><span>‘<samp class="samp">-bitmapfontenc <var class="var">option</var></samp>’<a class="copiable-link" href='#index-_002dbitmapfontenc-option'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-bitmap-font-encoding"></a>
<p>Turns bitmap font encoding to ‘<samp class="samp">off</samp>’, ‘<samp class="samp">on</samp>’ (no warnings
for missing bitmap font encodings), or ‘<samp class="samp">strict</samp>’ (with warnings
for missing bitmap font encodings).
</p>
</dd>
<dt id='index-_002dc-num'><span>‘<samp class="samp">-c <var class="var">num</var></samp>’<a class="copiable-link" href='#index-_002dc-num'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-_002f_0023copies-1"></a>
<a class="index-entry-id" id="index-copies_002c-uncollated"></a>
<a class="index-entry-id" id="index-uncollated-copies"></a>
<p>Generate <var class="var">num</var> consecutive copies of every page, i.e., the output is
uncollated. This merely sets the builtin PostScript variable
‘<samp class="samp">/#copies</samp>’.
</p>
</dd>
<dt id='index-_002dC-num'><span>‘<samp class="samp">-C <var class="var">num</var></samp>’<a class="copiable-link" href='#index-_002dC-num'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-copies_002c-collated"></a>
<a class="index-entry-id" id="index-collated-copies"></a>
<p>Generate <var class="var">num</var> copies, but collated (by replicating the data in the
PostScript file). Slower than the ‘<samp class="samp">-c</samp>’ option, but easier on the
hands, and faster than resubmitting the same PostScript file multiple
times.
</p>
</dd>
<dt id='index-_002dd-num'><span>‘<samp class="samp">-d <var class="var">num</var></samp>’<a class="copiable-link" href='#index-_002dd-num'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-debugging-1"></a>
<p>Set the debug flags, showing what Dvips (thinks it) is doing. This will
work unless Dvips has been compiled without the ‘<samp class="samp">DEBUG</samp>’ option (not
recommended). See <a class="xref" href="#Debug-options">Debug options</a>, for the possible values of
<var class="var">num</var>. Use ‘<samp class="samp">-d -1</samp>’ as the first option for maximum output.
</p>
</dd>
<dt id='index-_002dD-num'><span>‘<samp class="samp">-D <var class="var">num</var></samp>’<a class="copiable-link" href='#index-_002dD-num'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-resolution_002c-setting"></a>
<p>Set both the horizontal and vertical resolution to <var class="var">num</var>, given in
dpi (dots per inch). This affects the choice of bitmap fonts that are
loaded and also the positioning of letters in resident PostScript
fonts. Must be between 10 and 10000. This affects both the horizontal
and vertical resolution. If a high resolution (something greater than
400 dpi, say) is selected, the ‘<samp class="samp">-Z</samp>’ flag should probably also be
used. If you are using fonts made with Metafont, such as Computer
Modern, <samp class="file">mktexpk</samp> needs to know about the value for <var class="var">num</var>
that you use or Metafont will fail. See the file
<a class="url" href="ftp://ftp.tug.org/tex/modes.mf">ftp://ftp.tug.org/tex/modes.mf</a> for a list of resolutions and mode
names for most devices.
</p>
</dd>
<dt id='index-_002de-num'><span>‘<samp class="samp">-e <var class="var">num</var></samp>’<a class="copiable-link" href='#index-_002de-num'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-maxdrift"></a>
<a class="index-entry-id" id="index-accuracy-in-positioning"></a>
<a class="index-entry-id" id="index-positioning-accuracy"></a>
<p>Maximum drift in pixels of each character from its ‘true’
resolution-independent position on the page. The default value of this
parameter is resolution dependent (it is the number of entries in the
list [100, 200, 300, 400, 500, 600, 800, 1000, 1200, 1600, 2000, 2400,
2800, 3200, …] that are less than or equal to the resolution in
dots per inch). Allowing individual characters to ‘drift’ from their
correctly rounded positions by a few pixels, while regaining the true
position at the beginning of each new word, improves the spacing of
letters in words.
</p>
</dd>
<dt id='index-_002dE'><span>‘<samp class="samp">-E*</samp>’<a class="copiable-link" href='#index-_002dE'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-EPSF_002c-generating"></a>
<a class="index-entry-id" id="index-tight-bounding-box_002c-finding"></a>
<a class="index-entry-id" id="index-bounding-box_002c-finding-tight"></a>
<p>Generate an EPSF file with a tight bounding box. This only looks at
marks made by characters and rules, not by any included graphics. In
addition, it gets the glyph metrics from the TFM file, so characters
that print outside their enclosing TFM box may confuse it. In addition,
the bounding box might be a bit too loose if the character glyph has
significant left or right side bearings. Nonetheless, this option works
well enough for creating small EPSF files for equations or tables or the
like. (Of course, Dvips output, especially when using bitmap fonts, is
resolution-dependent and thus does not make very good EPSF files,
especially if the images are to be scaled; use these EPSF files with
care.) For multiple page input files, also specify ‘<samp class="samp">-i</samp>’ to get
each page as a separate EPSF file; otherwise, all the pages are overlaid
in the single output file.
</p>
</dd>
<dt id='index-_002df'><span>‘<samp class="samp">-f*</samp>’<a class="copiable-link" href='#index-_002df'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-filter_002c-running-as-a"></a>
<a class="index-entry-id" id="index-standard-I_002fO"></a>
<a class="index-entry-id" id="index-pipes_002c-not-readable"></a>
<a class="index-entry-id" id="index-PRINTER_002c-avoided-with-_002df"></a>
<p>Run as a filter. Read the DVI file from standard input and write the
PostScript to standard output. The standard input must be seekable, so
it cannot be a pipe. If your input must be a pipe, write a shell script
that copies the pipe output to a temporary file and then points Dvips at
this file. This option also disables the automatic reading of the
<code class="code">PRINTER</code> environment variable; use ‘<samp class="samp">-P$PRINTER</samp>’ after the
‘<samp class="samp">-f</samp>’ to read it anyway. It also turns off the automatic sending of
control-D if it was turned on with the ‘<samp class="samp">-F</samp>’ option or in the
configuration file; use ‘<samp class="samp">-F</samp>’ after the ‘<samp class="samp">-f</samp>’ to send it anyway.
</p>
</dd>
<dt id='index-_002dF'><span>‘<samp class="samp">-F*</samp>’<a class="copiable-link" href='#index-_002dF'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-EOF"></a>
<a class="index-entry-id" id="index-control_002dD"></a>
<a class="index-entry-id" id="index-printer_002c-driving-directly"></a>
<a class="index-entry-id" id="index-spooler_002c-lacking"></a>
<p>Write control-D (ASCII code 4) as the very last character of the
PostScript file. This is useful when Dvips is driving the printer
directly instead of working through a spooler, as is common on personal
systems. On systems shared by more than one person, this is not
recommended.
</p>
</dd>
<dt id='index-_002dG'><span>‘<samp class="samp">-G*</samp>’<a class="copiable-link" href='#index-_002dG'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-low-characters_002c-shifting"></a>
<a class="index-entry-id" id="index-non_002dprinting-characters_002c-shifting"></a>
<p>Shift non-printing characters (ASCII 0-32, 127) to higher-numbered positions.
This was useful to work around bugs in old versions of Adobe’s PDF
reader. It’s more likely to cause problems nowadays.
</p>
</dd>
<dt id='index-_002dh-name'><span>‘<samp class="samp">-h <var class="var">name</var></samp>’<a class="copiable-link" href='#index-_002dh-name'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-header-file_002c-downloading"></a>
<a class="index-entry-id" id="index-userdict_002c-used-for-header-files"></a>
<p>Prepend <var class="var">name</var> as an additional header file, or, if <var class="var">name</var> is
‘<samp class="samp">-</samp>’, suppress inclusion of default header files. If <code class="code">-h</code> is
given multiple times, the headers are included in the order given.
Any definitions in the header file get added to the PostScript
‘<samp class="samp">userdict</samp>’.
</p>
</dd>
<dt id='index-_002di'><span>‘<samp class="samp">-i*</samp>’<a class="copiable-link" href='#index-_002di'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-sections-output_002c-in-separate-files"></a>
<a class="index-entry-id" id="index-multiple-output-files"></a>
<a class="index-entry-id" id="index-output-files_002c-multiple"></a>
<p>Make each section be a separate file; a <em class="dfn">section</em> is a part of the
document processed independently, most often created to avoid memory
overflow. The filenames are created replacing the suffix of the
supplied output file name by a three-digit sequence number. This option
is most often used in conjunction with the ‘<samp class="samp">-S</samp>’ option which sets
the maximum section length in pages; if ‘<samp class="samp">-i</samp>’ is specified and
‘<samp class="samp">-S</samp>’ is not, each page is output as a separate file. For instance,
some phototypesetters cannot print more than ten or so consecutive pages
before running out of steam; these options can be used to automatically
split a book into ten-page sections, each to its own file.
</p>
<p>On the other hand, if your document uses very large fonts or very
large included figures, Dvips might take it upon itself to split the
output into unwanted sections, to try to avoid overflowing printer
memory. See <a class="xref" href="#Headers-and-memory-usage">Headers and memory usage</a>, for ways to handle this.
</p>
</dd>
<dt id='index-_002dj-for-partial-font-downloading'><span>‘<samp class="samp">-j*</samp>’<a class="copiable-link" href='#index-_002dj-for-partial-font-downloading'> ¶</a></span></dt>
<dd><p>Download only needed characters from Type 1 fonts. This is the
default in the current release. Some debugging flags trace this operation
(see <a class="pxref" href="#Debug-options">Debug options</a>). You can also control partial downloading on a
per-font basis (see <a class="pxref" href="#psfonts_002emap"><samp class="file">psfonts.map</samp>: PostScript font catalog</a>).
</p>
</dd>
<dt id='index-_002dk-for-cropmarks'><span>‘<samp class="samp">-k*</samp>’<a class="copiable-link" href='#index-_002dk-for-cropmarks'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-cropmarks"></a>
<a class="index-entry-id" id="index-crop_002epro"></a>
<p>Print crop marks. This option increases the paper size (which should be
specified, either with a paper size special or with the ‘<samp class="samp">-T</samp>’
option) by a half inch in each dimension. It translates each page by a
quarter inch and draws cross-style crop marks. It is mostly useful with
typesetters that can set the page size automatically. This works by
downloading <samp class="file">crop.pro</samp>.
</p>
</dd>
<dt id='index-_002dK'><span>‘<samp class="samp">-K*</samp>’<a class="copiable-link" href='#index-_002dK'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-comments_002c-removing-included"></a>
<a class="index-entry-id" id="index-_0025_0025Page_002c-removing"></a>
<p>Remove comments in included PostScript graphics, font files, and
headers; only necessary to get around bugs in spoolers or PostScript
post-processing programs. Specifically, the ‘<samp class="samp">%%Page</samp>’
comments, when left in, often cause difficulties. Use of this flag can
cause other graphics to fail, however, since the PostScript header
macros from some software packages read portion the input stream line by
line, searching for a particular comment.
</p>
</dd>
<dt id='index-_002dl-_005b_003d_005dnum_005b_002epageseq_005d'><span>‘<samp class="samp">-l [=]<var class="var">num</var>[.<var class="var">pageseq</var>]</samp>’<a class="copiable-link" href='#index-_002dl-_005b_003d_005dnum_005b_002epageseq_005d'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-last-page-printed"></a>
<a class="index-entry-id" id="index-page_002c-last-printed"></a>
<a class="index-entry-id" id="index-page-numbers_002c-multiple-repetitions-of"></a>
<a class="index-entry-id" id="index-physical-page-number_002c-and-_002dl"></a>
<a class="index-entry-id" id="index-absolute-page-number_002c-and-_002dl"></a>
<p>The last page printed will be the first one numbered <var class="var">num</var>; the
default is the last page in the document.
</p>
<p>By default, <var class="var">num</var> is compared to TeX’s idea of the page number
(more precisely, the <code class="code">\count0</code> value written in the DVI file).
But if <var class="var">num</var> is prefixed by an equals sign, then it (and the
argument to the ‘<samp class="samp">-p</samp>’ option, if specified) is treated as a
physical (absolute) page number, Thus, using ‘<samp class="samp">-l =9</samp>’ will end the
output with the ninth page of the document, no matter what the pages
are actually numbered.
</p>
<p>On the other hand, if <var class="var">pageseq</var> is specified, the <var class="var">pageseq</var>th
occurrence of the given TeX page number is used. For example,
‘<samp class="samp">-l 99.2</samp>’ says to end with the second page numbered 99 in the
document. The ‘<samp class="samp">=</samp>’ and <var class="var">lastseq</var> features aren’t useful
together.
</p>
</dd>
<dt id='index-_002dL'><span>‘<samp class="samp">-L*</samp>’<a class="copiable-link" href='#index-_002dL'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-papersize-special_002c-first-vs_002e-last"></a>
<p>By default or with <code class="code">-L1</code>, the last ‘<samp class="samp">papersize</samp>’ special wins;
with <code class="code">-L0</code>, the first special wins. See <a class="xref" href="#papersize-special">‘<samp class="samp">papersize</samp>’ special</a>.
</p>
</dd>
<dt id='index-_002dlandscaperotate'><span>‘<samp class="samp">-landscaperotate*</samp>’<a class="copiable-link" href='#index-_002dlandscaperotate'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-landscaperotate"></a>
<p>When looking for matching paper sizes, permit rotation of page content
on the page to match the given size; the default, as of Dvips 2022.1,
is not to do this. It should not be needed in modern systems with
normal print spoolers, and can be harmful when converting to PDF
(see <a class="pxref" href="#Config-file-paper-sizes">Configuration file paper size command</a>). This option accepts an optional
suffix of 0 (to explicitly disable) or 1 (to explicitly enable); if
the option is specified without a suffix, it enables the behavior.
</p>
</dd>
<dt id='index-_002dm'><span>‘<samp class="samp">-m*</samp>’<a class="copiable-link" href='#index-_002dm'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-manual-feed"></a>
<p>Specify manual feed, if supported by the output device.
</p>
</dd>
<dt id='index-_002dmode-mode'><span>‘<samp class="samp">-mode <var class="var">mode</var></samp>’<a class="copiable-link" href='#index-_002dmode-mode'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-mode-name_002c-specifying"></a>
<a class="index-entry-id" id="index-Metafont-mode_002c-specifying"></a>
<p>Use <var class="var">mode</var> as the Metafont device name for path searching and font
generation. This overrides any value from configuration files. With
the default paths, explicitly specifying the mode also makes the program
assume the fonts are in a subdirectory named <var class="var">mode</var>.
See <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#TeX-directory-structure">TeX directory structure</a> in <cite class="cite">Kpathsea</cite>. If Metafont does not understand the <var class="var">mode</var> name, see
<a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Unable-to-generate-fonts">Unable to generate fonts</a> in <cite class="cite">Kpathsea</cite>.
</p>
</dd>
<dt id='index-_002dM'><span>‘<samp class="samp">-M*</samp>’<a class="copiable-link" href='#index-_002dM'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-font-generation_002c-avoiding"></a>
<a class="index-entry-id" id="index-mktexpk_002c-avoiding"></a>
<a class="index-entry-id" id="index-missfont_002elog"></a>
<p>Turns off automatic font generation (<samp class="file">mktexpk</samp>). If
<code class="code">mktexpk</code>, the invocation is appended to a file
<samp class="file">missfont.log</samp> (by default) in the current directory. You can then
execute the log file to create the missing files after fixing the
problem.
<a class="index-entry-id" id="index-TEXMFOUTPUT"></a>
<a class="index-entry-id" id="index-MISSFONT_005fLOG"></a>
If the current directory is not writable and the environment variable or
configuration file value ‘<samp class="samp">TEXMFOUTPUT</samp>’ is set, its value is used.
Otherwise, nothing is written. The name ‘<samp class="samp">missfont.log</samp>’ is
overridden by the ‘<samp class="samp">MISSFONT_LOG</samp>’ environment variable or
configuration file value.
</p>
</dd>
<dt id='index-_002dn-num'><span>‘<samp class="samp">-n <var class="var">num</var></samp>’<a class="copiable-link" href='#index-_002dn-num'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-maximum-pages-printed"></a>
<a class="index-entry-id" id="index-pages_002c-maximum-printed"></a>
<p>Print at most <var class="var">num</var> pages. Default is 100000.
</p>
</dd>
<dt id='index-_002dN'><span>‘<samp class="samp">-N*</samp>’<a class="copiable-link" href='#index-_002dN'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-structured-comments"></a>
<a class="index-entry-id" id="index-TranScript"></a>
<a class="index-entry-id" id="index-_0025_0025Page_002c-not-generating"></a>
<p>Turns off generation of structured comments such as ‘<samp class="samp">%%Page</samp>’; this
may be necessary on some systems that try to interpret PostScript
comments in weird ways, or on some PostScript printers. Old versions of
TranScript in particular cannot handle modern Encapsulated PostScript.
Beware: This also disables page movement, etc., in PostScript viewers
such as Ghostview.
</p>
</dd>
<dt id='index-_002dnoomega'><span>‘<samp class="samp">-noomega</samp>’<a class="copiable-link" href='#index-_002dnoomega'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-Omega-extensions"></a>
<a class="index-entry-id" id="index-pTeX-extensions"></a>
<p>Disable the use of Omega extensions when interpreting DVI
files. By default, the additional opcodes ‘<samp class="samp">129</samp>’ and ‘<samp class="samp">134</samp>’
are recognized by Dvips as Omega or pTeX extensions and interpreted as
requests to set 2-byte characters.
</p>
</dd>
<dt id='index-_002dnoptex'><span>‘<samp class="samp">-noptex</samp>’<a class="copiable-link" href='#index-_002dnoptex'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-pTeX-extensions-1"></a>
<p>Disable the use of pTeX extensions when interpreting DVI files. By
default, the additional opcodes ‘<samp class="samp">130</samp>’ and ‘<samp class="samp">135</samp>’ are
recognized by Dvips as Omega extensions and interpreted as requests to
set 3-byte characters, and ‘<samp class="samp">255</samp>’ as request to change the
typesetting direction.
</p>
<p>The only drawback is that the virtual font array will (at least
temporarily) require 65536 or more positions instead of the default
256 positions, i.e., the memory requirements of Dvips will be somewhat
larger. If you find this unacceptable or encounter another problem
with the Omega or pTeX extensions, you can switch off the pTeX
extension by using ‘<samp class="samp">-noptex</samp>’, or both by using ‘<samp class="samp">-noomega</samp>’
(but please do send a bug report if you find such problems,
see <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Bugs">Bugs</a> in <cite class="cite">Kpathsea</cite>).
</p>
</dd>
<dt id='index-_002do-name'><span>‘<samp class="samp">-o <var class="var">name</var></samp>’<a class="copiable-link" href='#index-_002do-name'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-output_002c-redirecting"></a>
<a class="index-entry-id" id="index-standard-output_002c-output-to"></a>
<p>Send output to the file <var class="var">name</var>. If ‘<samp class="samp">-o</samp>’ is specified without
<var class="var">name</var> (i.e., it is the last thing on the command line), the
default is ‘<samp class="samp"><var class="var">file</var>.ps</samp>’ where the input DVI file was
‘<samp class="samp"><var class="var">file</var>.dvi</samp>’. If ‘<samp class="samp">-o</samp>’ isn’t given at all, the
configuration file default is used.
</p>
<a class="index-entry-id" id="index-popen-for-output"></a>
<a class="index-entry-id" id="index-_002d-as-output-filename"></a>
<a class="index-entry-id" id="index-_0021-starting-output-filename"></a>
<a class="index-entry-id" id="index-_007c-starting-output-filename"></a>
<a class="index-entry-id" id="index-lpr-spooler_002c-MS_002dDOS-emulation"></a>
<a class="index-entry-id" id="index-spooling-to-lpr-on-MS_002dDOS"></a>
<p>If <var class="var">name</var> is ‘<samp class="samp">-</samp>’, output goes to standard output. If the first
character of <var class="var">name</var> is ‘<samp class="samp">!</samp>’ or ‘<samp class="samp">|</samp>’, then the remainder will
be used as an argument to <code class="code">popen</code>; thus, specifying ‘<samp class="samp">|lpr</samp>’ as
the output file will automatically queue the file for printing as
usual. (The MS-DOS version will print to the local printer device
<samp class="file">PRN</samp> when <var class="var">name</var> is ‘<samp class="samp">|lpr</samp>’ and a program by that name
cannot be found.)
</p>
<p>‘<samp class="samp">-o</samp>’ disables the automatic reading of the <code class="code">PRINTER</code>
environment variable, and turns off the automatic sending of control-D.
See the ‘<samp class="samp">-f</samp>’ option for how to override this.
</p>
</dd>
<dt id='index-_002dO-x_002doffset_002cy_002doffset'><span>‘<samp class="samp">-O <var class="var">x-offset</var>,<var class="var">y-offset</var></samp>’<a class="copiable-link" href='#index-_002dO-x_002doffset_002cy_002doffset'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-offset-pages"></a>
<a class="index-entry-id" id="index-printer-offset"></a>
<p>Move the origin by <var class="var">x-offset</var>,<var class="var">y-offset</var>, a comma-separated
pair of dimensions such as ‘<samp class="samp">.1in,-.3cm</samp>’ (see <a class="pxref" href="#papersize-special">‘<samp class="samp">papersize</samp>’ special</a>). The origin of the page is shifted from the default position
(of one inch down, one inch to the right from the upper left corner of
the paper) by this amount. This is usually best specified in the
printer-specific configuration file.
</p>
<a class="index-entry-id" id="index-testpage_002etex"></a>
<p>This is useful for a printer that consistently offsets output pages by a
certain amount. You can use the file <samp class="file">testpage.tex</samp> to determine
the correct value for your printer. Be sure to do several runs with the
same <code class="code">O</code> value—some printers vary widely from run to run.
</p>
<a class="index-entry-id" id="index-bop_002dhook_002c-and-offset-pages"></a>
<p>If your printer offsets every other page consistently, instead of every
page, your best recourse is to use ‘<samp class="samp">bop-hook</samp>’ (see <a class="pxref" href="#PostScript-hooks">PostScript hooks</a>).
</p>
</dd>
<dt id='index-_002dp-_005b_003d_005dnum_005b_002epageseq_005d'><span>‘<samp class="samp">-p [=]<var class="var">num</var>[.<var class="var">pageseq</var>]</samp>’<a class="copiable-link" href='#index-_002dp-_005b_003d_005dnum_005b_002epageseq_005d'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-first-page-printed"></a>
<a class="index-entry-id" id="index-page_002c-first-printed"></a>
<a class="index-entry-id" id="index-physical-page-number_002c-and-_002dp"></a>
<a class="index-entry-id" id="index-absolute-page-number_002c-and-_002dp"></a>
<p>Exactly analogous to <code class="code">-l</code> (q.v.), but specifying the first page
number to be printed (processed).
</p>
</dd>
<dt id='index-_002dpp-first_002dlast'><span>‘<samp class="samp">-pp <var class="var">first</var>-<var class="var">last</var></samp>’<a class="copiable-link" href='#index-_002dpp-first_002dlast'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-page-range"></a>
<a class="index-entry-id" id="index-_002dpp-range"></a>
<p>Print pages <var class="var">first</var> through <var class="var">last</var>; equivalent to ‘<samp class="samp">-p
<var class="var">first</var> -l <var class="var">last</var></samp>’, except that multiple ‘<samp class="samp">-pp</samp>’ options
accumulate, unlike ‘<samp class="samp">-p</samp>’ and ‘<samp class="samp">-l</samp>’. The ‘<samp class="samp">-</samp>’ separator can
also be ‘<samp class="samp">:</samp>’.
</p>
</dd>
<dt id='index-_002dP-printer'><span>‘<samp class="samp">-P <var class="var">printer</var></samp>’<a class="copiable-link" href='#index-_002dP-printer'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-config_002eps"></a>
<p>Read the configuration file <samp class="file">config.<var class="var">printer</var></samp>
(<samp class="file"><var class="var">printer</var>.cfg</samp> on MS-DOS), which typically sets the output
name (most likely ‘<samp class="samp">o |lpr -P<var class="var">printer</var></samp>’), resolution, Metafont
mode, and perhaps other printer-specific defaults. It works best to
put sitewide defaults in the one master ‘<samp class="samp">config.ps</samp>’ file and only
things that vary from printer to printer in the
‘<samp class="samp">config.<var class="var">printer</var></samp>’ files; ‘<samp class="samp">config.ps</samp>’ is read before
‘<samp class="samp">config.<var class="var">printer</var></samp>’.
</p>
<p>A configuration file for eventual creation of Adobe PDF files is
provided in ‘<samp class="samp">config.pdf</samp>’ and thus can be loaded with
‘<samp class="samp">-Ppdf</samp>’. It will try to include Type 1 outline fonts into the
PostScript file (see <a class="pxref" href="#Hypertext-caveats">Hypertext caveats</a>).
</p>
<p>If no ‘<samp class="samp">-P</samp>’ or ‘<samp class="samp">-o</samp>’ is given, the environment variable
<code class="code">PRINTER</code> is checked. If that variable exists, and a corresponding
<samp class="file">config.<var class="var">printer</var></samp> (<samp class="file"><var class="var">printer</var>.cfg</samp> on MS-DOS) file
exists, it is read.
See <a class="xref" href="#Configuration-file-searching">Configuration file searching</a>.
</p>
</dd>
<dt id='index-_002dq'><span>‘<samp class="samp">-q*</samp>’<a class="copiable-link" href='#index-_002dq'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-quiet-operation"></a>
<a class="index-entry-id" id="index-silent-operation"></a>
<a class="index-entry-id" id="index-warnings_002c-suppressing"></a>
<p>Run quietly. Don’t chatter about pages converted, etc.,
and report no warnings (only errors) to standard error.
</p>
</dd>
<dt id='index-_002dr'><span>‘<samp class="samp">-r*</samp>’<a class="copiable-link" href='#index-_002dr'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-reverse-pagination"></a>
<p>Output pages in reverse order. By default, page 1 is output first.
</p>
</dd>
<dt id='index-_002dR'><span>‘<samp class="samp">-R</samp>’<a class="copiable-link" href='#index-_002dR'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-security"></a>
<a class="index-entry-id" id="index-shell-command-execution_002c-disabling"></a>
<a class="index-entry-id" id="index-absolute-filenames_002c-disabling"></a>
<a class="index-entry-id" id="index-_002e_002e_002drelative-filenames"></a>
<p>Run securely. ‘<samp class="samp">-R2</samp>’ disables both shell command execution in
<code class="code">\special</code> (via ‘<samp class="samp">`</samp>’, see <a class="pxref" href="#Dynamic-creation-of-graphics">Dynamic creation of PostScript graphics files</a>)
and config files (via the ‘<samp class="samp">E</samp>’ option, see <a class="pxref" href="#Configuration-file-commands">Configuration file commands</a>) and opening of any absolute or <samp class="file">..</samp>-relative
filenames. ‘<samp class="samp">-R1</samp>’, the default, forbids shell escapes but allows
absolute filenames. ‘<samp class="samp">-R0</samp>’ allows both.
</p>
</dd>
<dt id='index-_002ds'><span>‘<samp class="samp">-s*</samp>’<a class="copiable-link" href='#index-_002ds'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-save_002frestore_002c-generating-global"></a>
<p>Enclose the output in a global save/restore pair. This causes the file
to not be truly conformant, and is thus not recommended, but is useful
if you are driving a deficient printer directly and thus don’t care too
much about the portability of the output to other environments.
</p>
</dd>
<dt id='index-_002dS-num'><span>‘<samp class="samp">-S <var class="var">num</var></samp>’<a class="copiable-link" href='#index-_002dS-num'> ¶</a></span></dt>
<dd><p>Set the maximum number of pages in each ‘section’. This option is most
commonly used with the ‘<samp class="samp">-i</samp>’ option; see its description above for
more information.
</p>
</dd>
<dt id='index-_002dt-papertype'><span>‘<samp class="samp">-t <var class="var">papertype</var></samp>’<a class="copiable-link" href='#index-_002dt-papertype'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-paper-type"></a>
<a class="index-entry-id" id="index-media"></a>
<a class="index-entry-id" id="index-letter-papertype"></a>
<a class="index-entry-id" id="index-legal-papertype"></a>
<a class="index-entry-id" id="index-ledger-papertype"></a>
<a class="index-entry-id" id="index-a4-papertype"></a>
<a class="index-entry-id" id="index-a3-papertype"></a>
<a class="index-entry-id" id="index-landscape-papertype"></a>
<a class="index-entry-id" id="index-papersize-special_002c-and-no-_002dt"></a>
<p>Set the paper type to <var class="var">papertype</var>, usually defined in one of the
configuration files, along with the appropriate PostScript code to
select it (see <a class="pxref" href="#Config-file-paper-sizes">Configuration file paper size command</a>).
</p><ul class="itemize mark-minus">
<li>You can also specify a <var class="var">papertype</var> of ‘<samp class="samp">landscape</samp>’,
which rotates a document by 90 degrees.
</li><li>To rotate a document whose paper type is not the default, you
can use the ‘<samp class="samp">-t</samp>’ option twice, once for the paper type, and once
for ‘<samp class="samp">landscape</samp>’.
</li><li>In general, you should not use any ‘<samp class="samp">-t</samp>’ option when
using a ‘<samp class="samp">papersize</samp>’ special, which some LaTeX packages (e.g.,
‘<samp class="samp">hyperref</samp>’) insert.
</li><li>One exception is when using a nonstandard paper size that is not
already defined in <samp class="file">config.ps</samp>; in this case, you need to specify
‘<samp class="samp">-t unknown</samp>’.
</li><li>Another exception is when producing multi-page files for further
processing; use ‘<samp class="samp">-t nopaper</samp>’ to omit any paper size
information in the output. (If you just have a single page document,
you can use ‘<samp class="samp">-E</samp>’ to get pure EPSF output.)
</li></ul>
</dd>
<dt id='index-_002dtitle-str'><span>‘<samp class="samp">-title <var class="var">string</var></samp>’<a class="copiable-link" href='#index-_002dtitle-str'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-title_002c-specifying"></a>
<a class="index-entry-id" id="index-output-title_002c-specifying"></a>
<a class="index-entry-id" id="index-document-title_002c-specifying"></a>
<a class="index-entry-id" id="index-_0025_0025Title"></a>
<p>Use <var class="var">string</var> as the title in the generated PostScript
(<code class="code">%%Title</code>). If not specified, the default is the basename of the
input file; for example, running <code class="code">dvips /foo/bar.dvi</code> will have a
<code class="code">%%Title</code> of ‘<samp class="samp">bar.dvi</samp>’.
</p>
</dd>
<dt id='index-_002dT-hsize_002cvsize'><span>‘<samp class="samp">-T <var class="var">hsize</var>,<var class="var">vsize</var></samp>’<a class="copiable-link" href='#index-_002dT-hsize_002cvsize'> ¶</a></span></dt>
<dd><p>Set the paper size to (<var class="var">hsize</var>,<var class="var">vsize</var>), a comma-separated
pair of dimensions such as ‘<samp class="samp">.1in,-.3cm</samp>’ (see <a class="pxref" href="#papersize-special">‘<samp class="samp">papersize</samp>’ special</a>). It overrides any paper size special in the DVI file. Be
careful, as the paper size will stick to a predefined size if there is
one close enough. To disable this behavior, use ‘<samp class="samp">-tunknown</samp>’.
</p>
</dd>
<dt id='index-_002du-psmapfile'><span>‘<samp class="samp">-u <var class="var">psmapfile</var></samp>’<a class="copiable-link" href='#index-_002du-psmapfile'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-PostScript-font-alias-file"></a>
<a class="index-entry-id" id="index-resident-fonts_002c-different-in-different-printers"></a>
<p>Set <var class="var">psmapfile</var> to be the file that dvips uses for looking up
PostScript font aliases. If <var class="var">psmapfile</var> begins with a ‘<samp class="samp">+</samp>’
character, then the rest of the name is used as the name of the map file,
and the map file is appended to the list of map files (instead of replacing
the list). In either case, if the name has no extension, then ‘<samp class="samp">.map</samp>’
is added at the end.
</p>
</dd>
<dt id='index-_002dU'><span>‘<samp class="samp">-U*</samp>’<a class="copiable-link" href='#index-_002dU'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-Xerox-4045"></a>
<p>Disable a PostScript virtual memory-saving optimization that stores the
character metric information in the same string that is used to store
the bitmap information. This is only necessary when driving the Xerox
4045 PostScript interpreter, which has a bug that puts garbage on the
bottom of each character. Not recommended unless you must drive this
printer.
</p>
</dd>
<dt id='index-_002dv'><span>‘<samp class="samp">-v</samp>’<a class="copiable-link" href='#index-_002dv'> ¶</a></span></dt>
<dd><p>Print the dvips version number and exit.
</p>
</dd>
<dt id='index-_002dV'><span>‘<samp class="samp">-V*</samp>’<a class="copiable-link" href='#index-_002dV'> ¶</a></span></dt>
<dd><p>Download non-resident PostScript fonts as bitmaps. This requires use
<a class="index-entry-id" id="index-mtpk"></a>
<a class="index-entry-id" id="index-gsftopk"></a>
<a class="index-entry-id" id="index-pstopk"></a>
of <code class="code">mtpk</code> or <code class="code">gsftopk</code> or <code class="code">pstopk</code> or some combination
thereof to generate the required bitmap fonts; these programs are
supplied with Dvips. The bitmap must be put into <samp class="file">psfonts.map</samp> as
the downloadable file for that font. This is useful only for those
fonts for which you do not have real outlines, being downloaded to
printers that have no resident fonts, i.e., very rarely.
</p>
</dd>
<dt id='index-_002dx-num'><span>‘<samp class="samp">-x <var class="var">num</var></samp>’<a class="copiable-link" href='#index-_002dx-num'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-magnification_002c-overriding-DVI"></a>
<p>Set the magnification ratio to <em class="math"><var class="var">num</var>/1000</em>. Overrides
the magnification specified in the DVI file. Must be between 10 and
100000. It is recommended that you use standard magstep values (1095,
1200, 1440, 1728, 2074, 2488, 2986, and so on) to help reduce the total
number of PK files generated. <var class="var">num</var> may be a real number, not an
integer, for increased precision.
</p>
</dd>
<dt id='index-_002dX-num'><span>‘<samp class="samp">-X <var class="var">num</var></samp>’<a class="copiable-link" href='#index-_002dX-num'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-resolution"></a>
<p>Set the horizontal resolution in dots per inch to <var class="var">num</var>.
</p>
</dd>
<dt id='index-magnification_002c-vertical'><span>‘<samp class="samp">-y <var class="var">num</var></samp>’<a class="copiable-link" href='#index-magnification_002c-vertical'> ¶</a></span></dt>
<dd><p>Set the magnification ratio to <em class="math"><var class="var">num</var>/1000</em> times the
magnification specified in the DVI file. See
‘<samp class="samp">-x</samp>’ above.
</p>
</dd>
<dt id='index-_002dY-num'><span>‘<samp class="samp">-Y <var class="var">num</var></samp>’<a class="copiable-link" href='#index-_002dY-num'> ¶</a></span></dt>
<dd><p>Set the vertical resolution in dots per inch to <var class="var">num.</var>
<a class="index-entry-id" id="index-resolution-1"></a>
</p>
</dd>
<dt id='index-_002dz-for-recognizing-hyperdvi'><span>‘<samp class="samp">-z*</samp>’<a class="copiable-link" href='#index-_002dz-for-recognizing-hyperdvi'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-hyperdvi-extensions_002c-enabling"></a>
<a class="index-entry-id" id="index-distillation_002c-and-_002dz"></a>
<a class="index-entry-id" id="index-PDF-files_002c-option-for"></a>
<a class="index-entry-id" id="index-html-specials_002c-and-_002dz"></a>
<p>Pass ‘<samp class="samp">html</samp>’ hyperdvi specials through to the output for eventual
distillation into PDF. This is not enabled by default to avoid
including the header files unnecessarily, and use of temporary files in
creating the output. See <a class="xref" href="#Hypertext">HyperTeXt</a>.
</p>
</dd>
<dt id='index-_002dZ-for-compressing-bitmap-fonts'><span>‘<samp class="samp">-Z*</samp>’<a class="copiable-link" href='#index-_002dZ-for-compressing-bitmap-fonts'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-compressing-bitmap-fonts"></a>
<p>Compress bitmap fonts in the output file, thereby reducing the size of
what gets downloaded. Especially useful at high resolutions or when
very large fonts are used. May slow down printing, especially on early
68000-based PostScript printers. Generally recommend today, and can be
enabled in the configuration file (see <a class="pxref" href="#Configuration-file-commands">Configuration file commands</a>).
</p>
</dd>
</dl>
<hr>
</div>
</div>
<div class="section-level-extent" id="Environment-variables">
<div class="nav-panel">
<p>
Next: <a href="#Config-files" accesskey="n" rel="next">Dvips configuration files</a>, Previous: <a href="#Command_002dline-options" accesskey="p" rel="prev">Command-line options</a>, Up: <a href="#Invoking-Dvips" accesskey="u" rel="up">Invoking Dvips</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Environment-variables-1">3.3 Environment variables</h3>
<a class="index-entry-id" id="index-environment-variables"></a>
<p>Dvips looks for many environment variables, to define search paths and
other things. The path variables are read as needed, after all
configuration files are read, so they override values in the
configuration files. (Except for <code class="code">TEXCONFIG</code>, which defines where
the configuration files themselves are found.)
</p>
<p>See <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Path-specifications">Path specifications</a> in <cite class="cite">Kpathsea</cite>, for details of
interpretation of path and other environment variables common to all
Kpathsea-using programs. Only the environment variables specific to
Dvips are mentioned here.
</p>
<dl class="vtable">
<dt id='index-DVIPSDEBUG'><span><code class="code">DVIPSDEBUG</code><a class="copiable-link" href='#index-DVIPSDEBUG'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-KPATHSEA_005fDEBUG"></a>
<p>Write the absolute path names of any configuration or map files to
standard output, for debugging. This isn’t done by default because
these files are read even before the banner is printed. For
voluminous additional debugging, set the environment variable
<code class="env">KPATHSEA_DEBUG</code> to ‘<samp class="samp">-1</samp>’
(see <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Debugging">Debugging</a> in <cite class="cite">Kpathsea</cite>). (If <code class="env">KPATHSEA_DEBUG</code> is
set to any value, it automatically turns on <code class="env">DVIPSDEBUG</code>.)
</p>
</dd>
<dt id='index-DVIPSFONTS'><span><code class="code">DVIPSFONTS</code><a class="copiable-link" href='#index-DVIPSFONTS'> ¶</a></span></dt>
<dd><p>Default path to search for all fonts. Overrides all the font path
config file options and other environment variables (see <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Supported-file-formats">Supported
file formats</a> in <cite class="cite">Kpathsea</cite>).
</p>
</dd>
<dt id='index-DVIPSHEADERS'><span><code class="code">DVIPSHEADERS</code><a class="copiable-link" href='#index-DVIPSHEADERS'> ¶</a></span></dt>
<dd><p>Default path to search for PostScript header files. Overrides the ‘<samp class="samp">H</samp>’
config file option (see <a class="pxref" href="#Configuration-file-commands">Configuration file commands</a>).
</p>
</dd>
<dt id='index-DVIPSMAKEPK'><span><code class="code">DVIPSMAKEPK</code><a class="copiable-link" href='#index-DVIPSMAKEPK'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-mktexpk_002c-changing-name"></a>
<p>Overrides ‘<samp class="samp">mktexpk</samp>’ as the name of the program to invoke to
create missing PK fonts. You can change the arguments passed to the
<code class="code">mktexpk</code> program with the <code class="code">MAKETEXPK</code> environment
variable; see <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#MakeTeX-script-arguments">MakeTeX script arguments</a> in <cite class="cite">Kpathsea</cite>.
</p>
</dd>
<dt id='index-DVIPSRC'><span><code class="code">DVIPSRC</code><a class="copiable-link" href='#index-DVIPSRC'> ¶</a></span></dt>
<dd><p>Specifies the name of the startup file (see <a class="pxref" href="#Configuration-file-searching">Configuration file searching</a>) which is read after <samp class="file">config.ps</samp> but before any
printer-specific configuration files.
</p>
</dd>
<dt id='index-DVIPSSIZES'><span><code class="code">DVIPSSIZES</code><a class="copiable-link" href='#index-DVIPSSIZES'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-last_002dresort-font-scaling_002c-with-DVIPSSIZES"></a>
<p>Last-resort sizes for scaling of unfound fonts. Overrides the ‘<samp class="samp">R</samp>’
definition in config files (see <a class="pxref" href="#Configuration-file-commands">Configuration file commands</a>).
</p>
</dd>
<dt id='index-PRINTER'><span><code class="code">PRINTER</code><a class="copiable-link" href='#index-PRINTER'> ¶</a></span></dt>
<dd><p>Determine the default printer configuration file. (Dvips itself does
not use <code class="code">PRINTER</code> to determine the output destination in any way.)
</p>
</dd>
<dt id='index-TEXCONFIG'><span><code class="code">TEXCONFIG</code><a class="copiable-link" href='#index-TEXCONFIG'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-configuration-file-path"></a>
<p>Path to search for Dvips’ <samp class="file">config.<var class="var">printer</var></samp> configuration
files, including the base <samp class="file">config.ps</samp>. Using this single
environment variable, you can override everything else. (The
printer-specific configuration files are called <samp class="file"><var class="var">printer</var>.cfg</samp>
on MS-DOS, but <samp class="file">config.ps</samp> is called by that name on all
platforms.)
</p>
</dd>
<dt id='index-TEXPICTS'><span><code class="code">TEXPICTS</code><a class="copiable-link" href='#index-TEXPICTS'> ¶</a></span></dt>
<dd><p>Path to search for included graphics files. Overrides the ‘<samp class="samp">S</samp>’
config file option (see <a class="pxref" href="#Configuration-file-commands">Configuration file commands</a>). If not set,
<code class="code">TEXINPUTS</code> is looked for. See <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Supported-file-formats">Supported file formats</a> in <cite class="cite">Kpathsea</cite>.
</p>
</dd>
</dl>
<hr>
</div>
<div class="section-level-extent" id="Config-files">
<div class="nav-panel">
<p>
Previous: <a href="#Environment-variables" accesskey="p" rel="prev">Environment variables</a>, Up: <a href="#Invoking-Dvips" accesskey="u" rel="up">Invoking Dvips</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Dvips-configuration-files">3.4 Dvips configuration files</h3>
<a class="index-entry-id" id="index-configuration-files"></a>
<p>This section describes in detail the Dvips-specific <samp class="file">config.*</samp>
device configuration files (called <samp class="file">*.cfg</samp> on MS-DOS), which
override the <samp class="file">texmf.cnf</samp>
configuration files generic to Kpathsea which Dvips also reads
(see <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Config-files">Config files</a> in <cite class="cite">Kpathsea</cite>).
</p>
<p>For information about installing these files, including a prototype file
you can copy, see <a class="pxref" href="#config_002eps-installation"><samp class="file">config.ps</samp> installation</a>.
</p>
<ul class="mini-toc">
<li><a href="#Configuration-file-searching" accesskey="1">Configuration file searching</a></li>
<li><a href="#Configuration-file-commands" accesskey="2">Configuration file commands</a></li>
</ul>
<hr>
<div class="subsection-level-extent" id="Configuration-file-searching">
<div class="nav-panel">
<p>
Next: <a href="#Configuration-file-commands" accesskey="n" rel="next">Configuration file commands</a>, Up: <a href="#Config-files" accesskey="u" rel="up">Dvips configuration files</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Configuration-file-searching-1">3.4.1 Configuration file searching</h4>
<a class="index-entry-id" id="index-configuration-file-searching"></a>
<a class="index-entry-id" id="index-searching-config-files_002c-order-of"></a>
<p>The Dvips program loads many different configuration files, so that
parameters can be set globally across the system, on a per-device basis,
or individually by each user.
</p>
<ol class="enumerate">
<li> <a class="index-entry-id" id="index-config_002eps_002c-searched-for"></a>
Dvips first reads (if it exists) <samp class="file">config.ps</samp>; it is searched for
along the path for Dvips configuration files, as described in
<a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Supported-file-formats">Supported file formats</a> in <cite class="cite">Kpathsea</cite>.
</li><li> <a class="index-entry-id" id="index-_002edvipsrc_002c-searched-for"></a>
A user-specific startup file is loaded, so individual users can override
any options set in the global file. The environment variable
<code class="code">DVIPSRC</code>, if defined, is used as the specification of the startup
file. If this variable is undefined, Dvips uses a platform-specific
default name. On Unix Dvips looks for the default startup file under
the name <samp class="file">$HOME/.dvipsrc</samp>, which is in the user’s home directory.
On MS-DOS and MS-Windows, where users generally don’t have their private
directories, the startup file is called <samp class="file">dvips.ini</samp> and it is
searched for along the path for Dvips configuration files (as described
in <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Supported-file-formats">Supported file formats</a> in <cite class="cite">Kpathsea</cite>.); users are
expected to set this path as they see fit for their taste.
</li><li> <a class="index-entry-id" id="index-_002dPprinter_002c-and-config-file-searching"></a>
The command line is read and parsed: if the ‘<samp class="samp">-P<var class="var">device</var></samp>’ option
is encountered, at that point <samp class="file">config.<var class="var">device</var></samp> is loaded.
Thus, the printer configuration file can override anything in the
site-wide or user configuration file, and it can also override options
in the command line up to the point that the ‘<samp class="samp">-P</samp>’ option was
encountered. (On MS-DOS, the printer configuration files are called
<samp class="file"><var class="var">device</var>.cfg</samp>, since DOS doesn’t allow more than 3 characters
after the dot in filenames.)
</li><li> <a class="index-entry-id" id="index-PRINTER_002c-and-config-file-searching"></a>
If no ‘<samp class="samp">-P</samp>’ option was specified, and also the ‘<samp class="samp">-o</samp>’ and
‘<samp class="samp">-f</samp>’ command line options were not used, Dvips checks the
environment variable <code class="code">PRINTER</code>. If it exists, then
<samp class="file">config.<var class="var">$PRINTER</var></samp> (<samp class="file"><var class="var">$PRINTER</var>.cfg</samp> on MS-DOS) is
loaded (if it exists).
</li></ol>
<p>Because the <samp class="file">.dvipsrc</samp> file is read before the printer-specific
configuration files, individual users cannot override settings in the
latter. On the other hand, the <code class="code">TEXCONFIG</code> path can be set to
anything, so the users can always define their own printer-specific
configuration files to be found before the system’s.
</p>
<p>A few command-line options are treated specially, in that they are not
overridden by configuration files:
</p>
<dl class="table">
<dt>‘<samp class="samp">-D</samp>’</dt>
<dd><p>As well as setting the resolution, this unsets the mode, if the mode was
previously set from a configuration file. If <samp class="file">config.$PRINTER</samp> is
read, however, any ‘<samp class="samp">D</samp>’ or ‘<samp class="samp">M</samp>’ lines from there will take
effect.
</p>
</dd>
<dt>‘<samp class="samp">-mode</samp>’</dt>
<dd><p>This overrides any mode setting (‘<samp class="samp">M</samp>’ line) in configuration files.
‘<samp class="samp">-mode</samp>’ does not affect the resolution.
</p>
</dd>
<dt>‘<samp class="samp">-o</samp>’</dt>
<dd><p>This overrides any output setting (‘<samp class="samp">o</samp>’ line) in configuration files.
</p>
</dd>
</dl>
<p>The purpose of these special cases is to (1) minimize the chance of
having a mismatched mode and resolution (which ‘<samp class="samp">mktexpk</samp>’ cannot
resolve), and (2) let command-line options override config files where
possible.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Configuration-file-commands">
<div class="nav-panel">
<p>
Previous: <a href="#Configuration-file-searching" accesskey="p" rel="prev">Configuration file searching</a>, Up: <a href="#Config-files" accesskey="u" rel="up">Dvips configuration files</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Configuration-file-commands-1">3.4.2 Configuration file commands</h4>
<a class="index-entry-id" id="index-configuration-file-options"></a>
<a class="index-entry-id" id="index-Dvips-configuration-file-options"></a>
<p>Most of the configuration file commands are similar to corresponding
command line options, but there are a few exceptions. When they are the
same, we omit the description here.
</p>
<p>As with command line options, many may be turned off by suffixing the
letter with a zero (‘<samp class="samp">0</samp>’).
</p>
<a class="index-entry-id" id="index-comments_002c-in-configuration-files"></a>
<a class="index-entry-id" id="index-continuation-lines_002c-not-supported"></a>
<p>Within a configuration file, empty lines, and lines starting with a
space, asterisk, equal sign, percent sign, or pound sign are ignored.
There is no provision for continuation lines.
</p>
<dl class="table">
<dt id='index-_0040-config-command-_0028define-paper-sizes_0029'><span>‘<samp class="samp">@ <var class="var">name hsize vsize</var></samp>’<a class="copiable-link" href='#index-_0040-config-command-_0028define-paper-sizes_0029'> ¶</a></span></dt>
<dd><p>Define paper sizes. See <a class="xref" href="#Config-file-paper-sizes">Configuration file paper size command</a>.
</p>
</dd>
<dt id='index-a-config-command-_0028conserve-memory_0029'><span>‘<samp class="samp">a*</samp>’<a class="copiable-link" href='#index-a-config-command-_0028conserve-memory_0029'> ¶</a></span></dt>
<dd><p>Memory conservation. Same as ‘<samp class="samp">-a</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-b-config-command-_0028_0023copies_0029'><span>‘<samp class="samp">b <var class="var">#copies</var></samp>’<a class="copiable-link" href='#index-b-config-command-_0028_0023copies_0029'> ¶</a></span></dt>
<dd><p>Multiple copies. Same as ‘<samp class="samp">-b</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-bitmapfontenc-config-command-_0028bitmap-font-encoding_0029'><span>‘<samp class="samp">bitmapfontenc <var class="var">option</var></samp>’<a class="copiable-link" href='#index-bitmapfontenc-config-command-_0028bitmap-font-encoding_0029'> ¶</a></span></dt>
<dd><p>Turns bitmap font encoding to ‘<samp class="samp">off</samp>’, ‘<samp class="samp">on</samp>’ (no warnings
for missing bitmap font encodings), or ‘<samp class="samp">strict</samp>’ (with warnings
for missing bitmap font encodings).
</p>
</dd>
<dt id='index-c-config-command-_0028include-another-config-file_0029'><span>‘<samp class="samp">c <var class="var">filename</var></samp>’<a class="copiable-link" href='#index-c-config-command-_0028include-another-config-file_0029'> ¶</a></span></dt>
<dd><p>Include <var class="var">filename</var> as an additional configuration file, read
immediately.
</p>
</dd>
<dt id='index-D-config-command-_0028dpi_0029'><span>‘<samp class="samp">D <var class="var">dpi</var></samp>’<a class="copiable-link" href='#index-D-config-command-_0028dpi_0029'> ¶</a></span></dt>
<dd><p>Output resolution. Same as ‘<samp class="samp">-D</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-e-config-command-_0028maxdrift_0029'><span>‘<samp class="samp">e <var class="var">num</var></samp>’<a class="copiable-link" href='#index-e-config-command-_0028maxdrift_0029'> ¶</a></span></dt>
<dd><p>Max drift. Same as ‘<samp class="samp">-e</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-E-config-command-_0028shell-escape_0029'><span>‘<samp class="samp">E <var class="var">command</var></samp>’<a class="copiable-link" href='#index-E-config-command-_0028shell-escape_0029'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-system-in-config-file"></a>
<a class="index-entry-id" id="index-datestamp_002c-in-output"></a>
<a class="index-entry-id" id="index-shell-escape_002c-in-config-file"></a>
<p>Executes the command listed with <code class="code">system</code>(3); can be used to get
the current date into a header file for inclusion, for instance.
Possibly dangerous; this may be disabled, in which case a warning will
be printed if the option is used (and warnings are not suppressed).
</p>
</dd>
<dt id='index-f-config-command-_0028filter_0029'><span>‘<samp class="samp">f*</samp>’<a class="copiable-link" href='#index-f-config-command-_0028filter_0029'> ¶</a></span></dt>
<dt>‘<samp class="samp">F</samp>’</dt>
<dd><a class="index-entry-id" id="index-F-config-command-_0028filter_0029"></a>
<p>Run as a filter. Same as ‘<samp class="samp">-f</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-G-config-command-_0028character-shifting_0029'><span>‘<samp class="samp">G*</samp>’<a class="copiable-link" href='#index-G-config-command-_0028character-shifting_0029'> ¶</a></span></dt>
<dd><p>Shift low-numbered characters; obsolete. Same as ‘<samp class="samp">-G</samp>’,
see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-h-config-command-_0028download-additional-header_0029'><span>‘<samp class="samp">h <var class="var">header</var></samp>’<a class="copiable-link" href='#index-h-config-command-_0028download-additional-header_0029'> ¶</a></span></dt>
<dd><p>Prepend <var class="var">header</var> to output. Same as ‘<samp class="samp">h-</samp>’; that is, the
config file <code class="code">h</code> directive suppresses any inclusion of standard
headers (see <a class="pxref" href="#Option-details">Option details</a>).
</p>
</dd>
<dt id='index-H-config-command-_0028PostScript-header-path_0029'><span>‘<samp class="samp">H <var class="var">path</var></samp>’<a class="copiable-link" href='#index-H-config-command-_0028PostScript-header-path_0029'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-header-path_002c-defining"></a>
<a class="index-entry-id" id="index-DVIPSHEADERS_002c-overrides-H"></a>
<p>Use <var class="var">path</var> to search for PostScript header files. The environment
variable <code class="code">DVIPSHEADERS</code> overrides this.
</p>
</dd>
<dt id='index-i-config-command-_0028pages_002fsection_0029'><span>‘<samp class="samp">i <var class="var">n</var></samp>’<a class="copiable-link" href='#index-i-config-command-_0028pages_002fsection_0029'> ¶</a></span></dt>
<dd><p>Make multiple output files. Same as ‘<samp class="samp">-i -S <var class="var">n</var></samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-j-config-command-_0028partial-font-downloading_0029'><span>‘<samp class="samp">j*</samp>’<a class="copiable-link" href='#index-j-config-command-_0028partial-font-downloading_0029'> ¶</a></span></dt>
<dd><p>Partially download Type 1 fonts. Same as ‘<samp class="samp">-j</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-K-config-command-_0028comment-removal_0029'><span>‘<samp class="samp">K*</samp>’<a class="copiable-link" href='#index-K-config-command-_0028comment-removal_0029'> ¶</a></span></dt>
<dd><p>Remove comments from included PostScript files. Same as ‘<samp class="samp">-K</samp>’,
see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-L-config-command-_0028last-paper-size-wins_0029'><span>‘<samp class="samp">L*</samp>’<a class="copiable-link" href='#index-L-config-command-_0028last-paper-size-wins_0029'> ¶</a></span></dt>
<dd><p>If zero, the first paper size specified is effective, else the last.
Same as ‘<samp class="samp">-L</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-landscaperotate-config-command'><span>‘<samp class="samp">landscaperotate</samp>’<a class="copiable-link" href='#index-landscaperotate-config-command'> ¶</a></span></dt>
<dd><p>Permit rotation of page content to match page size.
Same as ‘<samp class="samp">-landscaperotate</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-m-config-command-_0028available-memory_0029'><span>‘<samp class="samp">m <var class="var">num</var></samp>’<a class="copiable-link" href='#index-m-config-command-_0028available-memory_0029'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-memory-available"></a>
<a class="index-entry-id" id="index-printer-memory"></a>
<p>Declare <var class="var">num</var> as the memory available for fonts and strings in the
printer. The compile-time default is 180000, but this is typically
overridden by <samp class="file">config.ps</samp> or other configuration files. This
value must be accurate if memory conservation and document splitting
is to work correctly. To determine this value, send the following
file to the printer:
</p>
<div class="example">
<pre class="example-preformatted">%! Hey, we're PostScript
/Times-Roman findfont 30 scalefont setfont 144 432 moveto
vmstatus exch sub 40 string cvs show pop showpage
</pre></div>
<p>The number printed by this file is the total memory free; it is usually
best to tell Dvips that the printer has slightly less memory, because
many programs download permanent macros that can reduce the memory in
the printer. Some systems or printers can dynamically increase the
memory available to a PostScript interpreter, in which case this file
might return a ridiculously low number; for example, the NeXT computer
and Ghostscript. In these cases, a value of, say, 10 million is
likely fine.
</p>
<p>To go all out: If <var class="var">num</var> is zero or negative, Dvips sets the
available memory to a very large number (the maximum integer value in
C), the idea being that output is not to a printer and thus no
splitting of the output is desirable. The Dvips config file
<samp class="file">config.maxmem</samp> is provided to do this conveniently, namely with
‘<samp class="samp">dvips -Pmaxmem</samp>’.
</p>
</dd>
<dt id='index-M-config-command-_0028mf-mode_0029'><span>‘<samp class="samp">M <var class="var">mode</var></samp>’<a class="copiable-link" href='#index-M-config-command-_0028mf-mode_0029'> ¶</a></span></dt>
<dd><p>Metafont mode. Same as ‘<samp class="samp">-mode</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-N-config-command-_0028disable-EPS_0029'><span>‘<samp class="samp">N*</samp>’<a class="copiable-link" href='#index-N-config-command-_0028disable-EPS_0029'> ¶</a></span></dt>
<dd><p>Disable structured comments. Beware: This also turns off displaying
page numbers or changing to specific page numbers in PostScript viewers.
Same as ‘<samp class="samp">-N</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-o-config-command-_0028output-destination_0029'><span>‘<samp class="samp">o <var class="var">name</var></samp>’<a class="copiable-link" href='#index-o-config-command-_0028output-destination_0029'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-output-file_002c-setting"></a>
<p>Send output to <var class="var">name</var>. Same as ‘<samp class="samp">-o</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
In the file <samp class="file">config.foo</samp>, a setting like this is probably
appropriate:
</p><div class="example">
<pre class="example-preformatted">o |lpr -Pfoo
</pre></div>
<p>The MS-DOS version will emulate spooling to <code class="code">lpr</code> by printing to
the local printer device <samp class="file">PRN</samp> if it doesn’t find an executable
program by that name in the current directory or along the <code class="code">PATH</code>.
</p>
</dd>
<dt id='index-O-config-command-_0028page-offsets_0029'><span>‘<samp class="samp">O <var class="var">xoff</var>,<var class="var">yoff</var></samp>’<a class="copiable-link" href='#index-O-config-command-_0028page-offsets_0029'> ¶</a></span></dt>
<dd><p>Origin offset. Same as ‘<samp class="samp">-O</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-p-config-command-_0028font-aliases_0029'><span>‘<samp class="samp">p <span class="r">[+]</span><var class="var">name</var></samp>’<a class="copiable-link" href='#index-p-config-command-_0028font-aliases_0029'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-PostScript-font-alias-file-1"></a>
<a class="index-entry-id" id="index-resident-fonts_002c-different-in-different-printers-1"></a>
<a class="index-entry-id" id="index-_002bpsmapfile"></a>
<p>Examine <var class="var">name</var> for PostScript font aliases. Default is
<samp class="file">psfonts.map</samp>. This option allows you to specify different resident
fonts that different printers may have. If <var class="var">name</var> starts with a
‘<samp class="samp">+</samp>’ character, then the rest of the name (after any leading spaces)
is used as an additional map file; thus, it is possible to have local
map files pointed to by local configuration files that append to the
global map file. This can be used for font families.
</p>
</dd>
<dt id='index-P-config-command-_0028PK-path_0029'><span>‘<samp class="samp">P <var class="var">path</var></samp>’<a class="copiable-link" href='#index-P-config-command-_0028PK-path_0029'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-PKFONTS_002c-overrides-P"></a>
<a class="index-entry-id" id="index-TEXPKS_002c-overrides-P"></a>
<a class="index-entry-id" id="index-GLYPHFONTS_002c-overrides-P"></a>
<a class="index-entry-id" id="index-TEXFONTS_002c-overrides-P"></a>
<p>Use <var class="var">path</var> to search for bitmap PK font files is <var class="var">path</var>. The
<code class="code">PKFONTS</code>, <code class="code">TEXPKS</code>, <code class="code">GLYPHFONTS</code>, and <code class="code">TEXFONTS</code>
environment variables override this. See <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Supported-file-formats">Supported file formats</a> in <cite class="cite">Kpathsea</cite>.
</p>
</dd>
<dt id='index-q-config-command-_0028quiet_0029'><span>‘<samp class="samp">q*</samp>’<a class="copiable-link" href='#index-q-config-command-_0028quiet_0029'> ¶</a></span></dt>
<dt>‘<samp class="samp">Q</samp>’</dt>
<dd><a class="index-entry-id" id="index-Q-config-command-_0028quiet_0029"></a>
<p>Run quietly. Same as ‘<samp class="samp">-q</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-r-config-command-_0028page-reversal_0029'><span>‘<samp class="samp">r*</samp>’<a class="copiable-link" href='#index-r-config-command-_0028page-reversal_0029'> ¶</a></span></dt>
<dd><p>Page reversal. Same as ‘<samp class="samp">-r</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-R-config-command-_0028fallback-resolution_0029'><span>‘<samp class="samp">R <var class="var">num1 num2 …</var></samp>’<a class="copiable-link" href='#index-R-config-command-_0028fallback-resolution_0029'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-fallback-resolutions"></a>
<a class="index-entry-id" id="index-default-resolutions"></a>
<a class="index-entry-id" id="index-last_002dresort-scaling_002c-with-R"></a>
<p>Define the list of default resolutions for PK fonts. If a font size
actually used in a document is not available and cannot be created,
Dvips will scale the font found at the closest of these resolutions to
the requested size, using PostScript scaling. The resulting output may
be ugly, and thus a warning is issued. To turn this last-resort scaling
off, use a line with just the ‘<samp class="samp">R</samp>’ and no numbers.
</p>
<p>The given numbers must be sorted in increasing order; any number smaller
than the preceding one is ignored. This is because it is better to
scale a font up than down; scaling down can obliterate small features in
the character shape.
</p>
<a class="index-entry-id" id="index-DVIPSSIZES_002c-overrides-R"></a>
<a class="index-entry-id" id="index-TEXSIZES_002c-overrides-R"></a>
<p>The environment and config file values ‘<samp class="samp">DVIPSSIZES</samp>’ or
‘<samp class="samp">TEXSIZES</samp>’ override this configuration file setting.
</p>
<a class="index-entry-id" id="index-default_005ftexsizes-Make-variable"></a>
<p>If no ‘<samp class="samp">R</samp>’ settings or environment variables are specified, a list
compiled in during installation is used. This default list is defined by
the Makefile variable ‘<samp class="samp">default_texsizes</samp>’, defined in the file
<samp class="file">make/paths.make</samp>.
</p>
</dd>
<dt id='index-s-config-command-_0028global-save_002frestore_0029'><span>‘<samp class="samp">s*</samp>’<a class="copiable-link" href='#index-s-config-command-_0028global-save_002frestore_0029'> ¶</a></span></dt>
<dd><p>Output global save/restore. Same as ‘<samp class="samp">-s</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-S-config-command-_0028pict-path_0029'><span>‘<samp class="samp">S <var class="var">path</var></samp>’<a class="copiable-link" href='#index-S-config-command-_0028pict-path_0029'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-TEXPICTS_002c-overrides-S"></a>
<a class="index-entry-id" id="index-TEXINPUTS_002c-overrides-S"></a>
<p>Use <var class="var">path</var> to search for special illustrations (Encapsulated
PostScript files or psfiles). The <code class="code">TEXPICTS</code> and then
<code class="code">TEXINPUTS</code> environment variables override this.
</p>
</dd>
<dt id='index-T-config-command-_0028TFM-path_0029'><span>‘<samp class="samp">T <var class="var">path</var></samp>’<a class="copiable-link" href='#index-T-config-command-_0028TFM-path_0029'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-TFMFONTS_002c-overrides-T"></a>
<a class="index-entry-id" id="index-TEXFONTS_002c-overrides-T"></a>
<p>Use <var class="var">path</var> to search for TFM files. The <code class="code">TFMFONTS</code> and then
<code class="code">TEXFONTS</code> environment variables overrides this. This path is used
for resident fonts and fonts that can’t otherwise be found.
</p>
</dd>
<dt id='index-U-config-command-_0028Xerox-4045_0029'><span>‘<samp class="samp">U*</samp>’<a class="copiable-link" href='#index-U-config-command-_0028Xerox-4045_0029'> ¶</a></span></dt>
<dd><p>Work around bug in Xerox 4045 printer. Same as ‘<samp class="samp">-U</samp>’, see <a class="pxref" href="#Option-details">Option details</a>.
</p>
</dd>
<dt id='index-V-config-command-_0028vf-path_0029'><span>‘<samp class="samp">V <var class="var">path</var></samp>’<a class="copiable-link" href='#index-V-config-command-_0028vf-path_0029'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-virtual-font-path"></a>
<a class="index-entry-id" id="index-device-dependency_002c-and-virtual-fonts"></a>
<p>Use <var class="var">path</var> to search for virtual font files. This may be
device-dependent if you use virtual fonts to simulate actual fonts on
different devices.
</p>
</dd>
<dt id='index-W-config-command-_0028emit-warning_0029'><span>‘<samp class="samp">W <span class="r">[<var class="var">string</var>]</span></samp>’<a class="copiable-link" href='#index-W-config-command-_0028emit-warning_0029'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-warning-messages_002c-defining"></a>
<p>If <var class="var">string</var> is supplied, write it to standard error after reading
all the configuration files; with no <var class="var">string</var>, cancel any previous
‘<samp class="samp">W</samp>’ message. This is useful in the default configuration file to
remind users to specify a printer, for instance, or to notify users
about special characteristics of a particular printer.
</p>
</dd>
<dt id='index-X-config-command-_0028horizontal-resolution_0029'><span>‘<samp class="samp">X <var class="var">num</var></samp>’<a class="copiable-link" href='#index-X-config-command-_0028horizontal-resolution_0029'> ¶</a></span></dt>
<dd><p>Horizontal resolution. Same as ‘<samp class="samp">-X</samp>’ (see <a class="pxref" href="#Option-details">Option details</a>).
</p>
</dd>
<dt id='index-Y-config-command-_0028vertical-resolution_0029'><span>‘<samp class="samp">Y <var class="var">num</var></samp>’<a class="copiable-link" href='#index-Y-config-command-_0028vertical-resolution_0029'> ¶</a></span></dt>
<dd><p>Vertical resolution. Same as ‘<samp class="samp">-Y</samp>’ (see <a class="pxref" href="#Option-details">Option details</a>).
</p>
</dd>
<dt id='index-Z-config-command-_0028compress-fonts_0029'><span>‘<samp class="samp">Z*</samp>’<a class="copiable-link" href='#index-Z-config-command-_0028compress-fonts_0029'> ¶</a></span></dt>
<dd><p>Compress bitmap fonts. Same as ‘<samp class="samp">-Z</samp>’ (see <a class="pxref" href="#Option-details">Option details</a>).
</p>
</dd>
<dt id='index-z-config-command-_0028secure-mode_0029'><span>‘<samp class="samp">z*</samp>’<a class="copiable-link" href='#index-z-config-command-_0028secure-mode_0029'> ¶</a></span></dt>
<dd><p>Disables execution of system commands, like ‘<samp class="samp">-R</samp>’
(see <a class="pxref" href="#Option-details">Option details</a>). If ‘<samp class="samp">-R</samp>’ is specified
on the command line, that takes precedence.
</p>
</dd>
</dl>
<hr>
</div>
</div>
</div>
<div class="chapter-level-extent" id="Paper-size-and-landscape">
<div class="nav-panel">
<p>
Next: <a href="#Interaction-with-PostScript" accesskey="n" rel="next">Interaction with PostScript</a>, Previous: <a href="#Invoking-Dvips" accesskey="p" rel="prev">Invoking Dvips</a>, Up: <a href="#Top" accesskey="u" rel="up">Dvips</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h2 class="chapter" id="Paper-size-and-landscape-orientation">4 Paper size and landscape orientation</h2>
<a class="index-entry-id" id="index-paper-size_002c-general"></a>
<p>Most TeX documents at a particular site are designed to use the
local standard paper size (letter size in the United States, A4
elsewhere). The Dvips program can be customized either sitewide or
for a particular printer.
</p>
<a class="index-entry-id" id="index-landscape-orientation_002c-defined"></a>
<a class="index-entry-id" id="index-portrait-orientation_002c-defined"></a>
<p>On the other hand, plenty of documents are designed for other paper
sizes. For instance, you may want to design a document that has the
long edge of the paper horizontal. This can be useful when
typesetting booklets, brochures, complex tables, or many other
documents. This type of paper orientation is called <em class="dfn">landscape</em>
orientation (the default orientation is called <em class="dfn">portrait</em>).
Alternatively, a document might be designed for ledger or A3 paper.
</p>
<p>Since the intended paper size in these cases is a document design
decision, not a printing decision, such information should be given in
the TeX file and not on the Dvips command line. For this reason,
Dvips supports a ‘<samp class="samp">papersize</samp>’ special. It is hoped that this
special will become standard over time for TeX previewers and other
printer drivers.
</p>
<p>Some LaTeX packages, e.g., ‘<samp class="samp">hyperref.sty</samp>’, write a
‘<samp class="samp">papersize</samp>’ special into the DVI file. In this case, you need
not and should not attempt to override it manually.
</p>
<ul class="mini-toc">
<li><a href="#papersize-special" accesskey="1">‘<samp class="samp">papersize</samp>’ special</a></li>
<li><a href="#Config-file-paper-sizes" accesskey="2">Configuration file paper size command</a></li>
<li><a href="#Paper-trays" accesskey="3">Paper trays</a></li>
</ul>
<hr>
<div class="section-level-extent" id="papersize-special">
<div class="nav-panel">
<p>
Next: <a href="#Config-file-paper-sizes" accesskey="n" rel="next">Configuration file paper size command</a>, Up: <a href="#Paper-size-and-landscape" accesskey="u" rel="up">Paper size and landscape orientation</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="papersize-special-1">4.1 ‘<samp class="samp">papersize</samp>’ special</h3>
<a class="index-entry-id" id="index-papersize-special"></a>
<p>The format of the ‘<samp class="samp">papersize</samp>’ special is
</p>
<div class="example">
<pre class="example-preformatted">\special{papersize=<var class="var">width</var>,<var class="var">height</var>}
</pre></div>
<p><var class="var">width</var> is the horizontal size of the page, and <var class="var">height</var> is the
vertical size. The dimensions supported are the same as for TeX;
namely, in (inches), cm (centimeters), mm (millimeters), pt (points), sp
(scaled points), bp (big points, the same as the default PostScript
unit), pc (picas), dd (didot points), and cc (ciceros).
</p>
<a class="index-entry-id" id="index-landscape_002c-as-_005cspecial"></a>
<p>For a US letter size landscape document, the ‘<samp class="samp">papersize</samp>’ would be:
</p><div class="example">
<pre class="example-preformatted">\special{papersize=11in,8.5in}
</pre></div>
<p>An alternate specification of <code class="code">landscape</code>:
</p><div class="example">
<pre class="example-preformatted">\special{landscape}
</pre></div>
<p>This is supported for backward compatibility, but it is hoped that
eventually the ‘<samp class="samp">papersize</samp>’ comment will dominate.
</p>
<p>Of course, such a <code class="code">\special</code> only informs Dvips of the desired
paper size; you must also adjust <code class="code">\hsize</code> and <code class="code">\vsize</code> in your
TeX document typeset to those dimensions.
</p>
<a class="index-entry-id" id="index-unknown_002c-paper-format-for-_002dt"></a>
<p>When using the ‘<samp class="samp">papersize</samp>’ special, you generally should not also
specify <code class="code">-t</code> on the command line (see <a class="pxref" href="#Option-details">Option details</a>). The
exception is when using a nonstandard paper size that isn’t
predefined; in this case, use <code class="code">-t unknown</code>.
</p>
<p>The ‘<samp class="samp">papersize</samp>’ special must occur somewhere on the first page of
the document. Some packages, notably ‘<samp class="samp">hyperref</samp>’, insert this special.
</p>
<p>By default, if a DVI file contains multiple ‘<samp class="samp">papersize</samp>’ specials,
the last one wins; this is also the behavior of the <code class="code">dvipdfmx</code>
driver. If the <code class="code">-L0</code> command line option or <code class="code">L0</code> config
file command is specified, the first special wins—this was the
behavior of Dvips prior to the 2017 release.
</p>
<hr>
</div>
<div class="section-level-extent" id="Config-file-paper-sizes">
<div class="nav-panel">
<p>
Next: <a href="#Paper-trays" accesskey="n" rel="next">Paper trays</a>, Previous: <a href="#papersize-special" accesskey="p" rel="prev">‘<samp class="samp">papersize</samp>’ special</a>, Up: <a href="#Paper-size-and-landscape" accesskey="u" rel="up">Paper size and landscape orientation</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Configuration-file-paper-size-command">4.2 Configuration file paper size command</h3>
<a class="index-entry-id" id="index-paper-size-configuration-file-command"></a>
<a class="index-entry-id" id="index-configuration-file-paper-size-command"></a>
<p>The ‘<samp class="samp">@</samp>’ command in a configuration file sets the paper size
defaults and options. The first ‘<samp class="samp">@</samp>’ command defines the default
paper size. It has three possible parameters:
</p>
<div class="example">
<pre class="example-preformatted">@ <span class="r">[</span><var class="var">name</var> <span class="r">[</span><var class="var">hsize</var> <var class="var">vsize</var><span class="r">]]</span>
</pre></div>
<p>If ‘<samp class="samp">@</samp>’ is specified on a line by itself, with no parameters, it
instructs Dvips to discard all previous paper size information (possibly
from another configuration file).
</p>
<p>If three parameters are given, with the first parameter being a name and
the second and third being a dimension (as in ‘<samp class="samp">8.5in</samp>’ or
‘<samp class="samp">3.2cc</samp>’, just like in the ‘<samp class="samp">papersize</samp>’ special), then the
option is interpreted as starting a new paper size description, where
<var class="var">name</var> is the name and <var class="var">hsize</var> and <var class="var">vsize</var> define the
horizontal and vertical size of the sheet of paper, respectively. For
example:
</p>
<div class="example">
<pre class="example-preformatted">@ letterSize 8.5in 11in
</pre></div>
<p>If both <var class="var">hsize</var> and <var class="var">vsize</var> are zero (you must still specify
units!) then any page size will match. If the ‘<samp class="samp">@</samp>’ character is
immediately followed by a ‘<samp class="samp">+</samp>’ sign, then the remainder of the line
(after skipping any leading blanks) is treated as PostScript code to
send to the printer, presumably to select that particular paper size:
</p>
<div class="example">
<pre class="example-preformatted">@ letter 8.5in 11in
@+ %%BeginPaperSize: Letter
@+ letter
@+ %%EndPaperSize
</pre></div>
<p>After all that, if the first character of the line is an exclamation
point, then the line is put in the initial comments section of the final
output file; else, it is put in the setup section of the output file.
For example:
</p>
<div class="example">
<pre class="example-preformatted">@ legal 8.5in 14in
@+ ! %%DocumentPaperSizes: Legal
@+ %%BeginPaperSize: Legal
@+ legal
@+ %%EndPaperSize
</pre></div>
<p>When Dvips has a paper format name given on the command line, it looks
for a match by the <var class="var">name</var>; when it has a ‘<samp class="samp">papersize</samp>’ special,
it looks for a match by dimensions. The best match found (from the
paper size information in the configuration file) is used. The
dimensions must match within 5bp.
</p>
<p>If nothing matches, a warning is printed and the first paper size with
zero dimensions is used; this should be the <code class="code">unknown</code> paper size
definition mentioned below, resulting in the actual dimensions being
used.
</p>
<a class="index-entry-id" id="index-landscaperotate-configuration-file-command"></a>
<a class="index-entry-id" id="index-landscaperotate-command-line-option"></a>
<p>In versions of Dvips prior to 2022.1, if the paper size specified did
not match one of the defined paper sizes, Dvips considered rotated
page content and rotated paper sizes for a match. This provided some
automatic support for landscape mode on raw printers, but today it can
be harmful when generating PDF. (Specifically, the ‘<samp class="samp">/MediaBox</samp>’
then ends up with rotated values, which is not expected by PDF
viewers, e.g., when a document intentionally has a single page
rotated.)
</p>
<p>Further, on all recent computer systems, this facility is typically
provided instead by a print spooler that considers the bounding box of
the document and inserts appropriate media selection commands as part
of the print job. So, this automatic rotation is no longer done by
default by Dvips. If you want to enable it, the
‘<samp class="samp">-landscaperotate</samp>’ command line option or ‘<samp class="samp">landscaperotate</samp>’
configuration file option can be used. See <a class="xref" href="#Option-details">Option details</a>.
</p>
<a class="index-entry-id" id="index-zero-dimensions-and-setting-paper-size"></a>
<p>If your printer has a command to set a special paper size, then give
dimensions of ‘<samp class="samp">0in 0in</samp>’; the PostScript code that sets the paper
size can refer to the dimensions the user requested as ‘<samp class="samp">hsize</samp>’
and ‘<samp class="samp">vsize</samp>’; these will be macros defined in the PostScript that
return the requested size in default PostScript units. Also, some
printers want ‘<samp class="samp">BeginPaperSize</samp>’ comments and paper size setting
commands; others (such as the NeXT) want ‘<samp class="samp">PaperSize</samp>’ comments and
they will handle setting the paper size. So paper size entries should
typically specify both.
</p>
<a class="index-entry-id" id="index-unknown_002c-paper-format-for-_002dt-1"></a>
<p>When using a paper size that is not already defined in
<samp class="file">config.ps</samp>, you probably want to say ‘<samp class="samp">-t unknown</samp>’ on
the command line; the <code class="code">unknown</code> paper size definition in
<samp class="file">config.ps</samp> has the requisite PostScript incantation to set the
PostScript page size, as just described.
</p>
<a class="index-entry-id" id="index-nopaper_002c-paper-format-for-_002dt"></a>
<p>If you want no paper size information in the output at all, use
‘<samp class="samp">-t nopaper</samp>’. This is useful with multi-page output that
will be processed further. If you just have a single page document,
you can use ‘<samp class="samp">-E</samp>’ to get pure EPSF output.
</p>
<a class="index-entry-id" id="index-mkdvipspapers"></a>
<p>The Perl 5 script <samp class="file">contrib/configs/mkdvipspapers</samp> in the
distribution directory may help in determining appropriate paper size
definitions.
</p>
<a class="index-entry-id" id="index-config_002eps-paper-sizes"></a>
<a class="index-entry-id" id="index-letter-paper-size"></a>
<a class="index-entry-id" id="index-a4-paper-size"></a>
<p>Notwithstanding the above, the default <code class="code">letter</code> and <code class="code">a4</code>
paper size definitions in <samp class="file">config.ps</samp> execute the
<code class="code">setpagedevice</code> operator if it exists (it was defined in
PostScript Level 2), or the ‘<samp class="samp">letter</samp>’ or ‘<samp class="samp">a4</samp>’ operator
if they exist (they are nonstandard and thus perhaps cause failures on
certain (unknown) printers). Not executing any page size definition
at all confuses PostScript conversion programs such as
<code class="command">ps2pdf</code>, so we want to execute one if we can.
</p>
<a class="index-entry-id" id="index-letterSize-paper-size"></a>
<a class="index-entry-id" id="index-A4size-paper-size"></a>
<p>The <code class="code">letterSize</code> and <code class="code">A4Size</code> paper size definitions are now
synonyms for <code class="code">letter</code> and <code class="code">a4</code>.
</p>
<hr>
</div>
<div class="section-level-extent" id="Paper-trays">
<div class="nav-panel">
<p>
Previous: <a href="#Config-file-paper-sizes" accesskey="p" rel="prev">Configuration file paper size command</a>, Up: <a href="#Paper-size-and-landscape" accesskey="u" rel="up">Paper size and landscape orientation</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Paper-trays-1">4.3 Paper trays</h3>
<a class="index-entry-id" id="index-paper-trays"></a>
<a class="index-entry-id" id="index-dual-paper-trays"></a>
<a class="index-entry-id" id="index-multiple-paper-trays"></a>
<a class="index-entry-id" id="index-HP4Si-printer-and-paper-trays"></a>
<a class="index-entry-id" id="index-bop_002dhook"></a>
<p>Some printers, such as the Hewlett-Packard HP4si, have multiple paper
trays. You can set up Dvips to take advantage of this using the
<code class="code">bop-hook</code> PostScript variable (see <a class="pxref" href="#PostScript-hooks">PostScript hooks</a>).
</p>
<a class="index-entry-id" id="index-letterhead-tray"></a>
<p>For example, suppose you have an alternate tray stocked with letterhead
paper; the usual tray has the usual paper. You have a document where
you want the first page printed on letterhead, and the remaining pages
on the usual paper. You can create a header file, say
<samp class="file">firstletterhead.PS</samp>, with the following (PostScript) code
(<code class="code">bop-hook</code> is passed the current physical page number, which
starts at zero):
</p>
<div class="example">
<pre class="example-preformatted">/bop-hook { dup 0 eq { <var class="var">alternatetray</var> } { <var class="var">normaltray</var> } ifelse } def
</pre></div>
<p>where <var class="var">alternatetray</var> and <var class="var">normaltray</var> are the appropriate
commands to select the paper trays. On the 4SI, <var class="var">alternatetray</var> is
‘<samp class="samp">statusdict begin 1 setpapertray end</samp>’ and <var class="var">normaltray</var> is
‘<samp class="samp">statusdict begin 0 setpapertray end</samp>’.
</p>
<p>Then, include the file with either
</p><ul class="itemize mark-bullet">
<li>the ‘<samp class="samp">-h</samp>’ command-line option (see <a class="pxref" href="#Option-details">Option details</a>); or
</li><li>the ‘<samp class="samp">h</samp>’ config file option (see <a class="pxref" href="#Configuration-file-commands">Configuration file commands</a>); or
</li><li>‘<samp class="samp">\special{header=<var class="var">file</var>}</samp>’ in your TeX document
(see <a class="pxref" href="#Including-headers-from-TeX">Including headers from TeX</a>).
</li></ul>
<hr>
</div>
</div>
<div class="chapter-level-extent" id="Interaction-with-PostScript">
<div class="nav-panel">
<p>
Next: <a href="#PostScript-fonts" accesskey="n" rel="next">PostScript fonts</a>, Previous: <a href="#Paper-size-and-landscape" accesskey="p" rel="prev">Paper size and landscape orientation</a>, Up: <a href="#Top" accesskey="u" rel="up">Dvips</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h2 class="chapter" id="Interaction-with-PostScript-1">5 Interaction with PostScript</h2>
<a class="index-entry-id" id="index-interaction-with-PostScript"></a>
<a class="index-entry-id" id="index-PostScript-interaction"></a>
<p>Dvips supports inclusion of PostScript figure files (e.g., Encapsulated
PostScript), downloading other header files (e.g., fonts), including
literal PostScript code, and hypertext.
</p>
<ul class="mini-toc">
<li><a href="#PostScript-figures" accesskey="1">PostScript figures</a></li>
<li><a href="#Header-files" accesskey="2">PostScript header files</a></li>
<li><a href="#Literal-PS" accesskey="3">Literal PostScript</a></li>
<li><a href="#Hypertext" accesskey="4">HyperTeXt</a></li>
</ul>
<hr>
<div class="section-level-extent" id="PostScript-figures">
<div class="nav-panel">
<p>
Next: <a href="#Header-files" accesskey="n" rel="next">PostScript header files</a>, Up: <a href="#Interaction-with-PostScript" accesskey="u" rel="up">Interaction with PostScript</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="PostScript-figures-1">5.1 PostScript figures</h3>
<p>Scaling and including PostScript graphics is a breeze—if the PostScript
file is correctly formed. Even if it is not, however, the file can usually
be accommodated with just a little more work.
</p>
<ul class="mini-toc">
<li><a href="#Bounding-box" accesskey="1">The bounding box comment</a></li>
<li><a href="#g_t_005cincludegraphics" accesskey="2">The \includegraphics macro for LaTeX</a></li>
<li><a href="#EPSF-macros" accesskey="3">Using the EPSF macros</a></li>
<li><a href="#psfile-special" accesskey="4">‘<samp class="samp">psfile</samp>’ special</a></li>
<li><a href="#Dynamic-creation-of-graphics" accesskey="5">Dynamic creation of PostScript graphics files</a></li>
<li><a href="#Fonts-in-figures" accesskey="6">Fonts in figures</a></li>
</ul>
<hr>
<div class="subsection-level-extent" id="Bounding-box">
<div class="nav-panel">
<p>
Next: <a href="#g_t_005cincludegraphics" accesskey="n" rel="next">The \includegraphics macro for LaTeX</a>, Up: <a href="#PostScript-figures" accesskey="u" rel="up">PostScript figures</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="The-bounding-box-comment">5.1.1 The bounding box comment</h4>
<a class="index-entry-id" id="index-bounding-box_002c-comment-for"></a>
<p>The most important feature of a good PostScript file from the standpoint
of including it in another document is an accurate bounding box comment.
Every well-formed PostScript file has a comment describing where on the
page the graphic is located, and how big that graphic is.
</p>
<a class="index-entry-id" id="index-big-points"></a>
<a class="index-entry-id" id="index-PostScript-units"></a>
<a class="index-entry-id" id="index-bounding-box_002c-defined"></a>
<p>This information is given as the lower left and upper right corners of
the box just enclosing the graphic, and is thus referred to as the
<em class="dfn">bounding box</em>. These coordinates are given in the default
PostScript units (there are precisely 72 PostScript units to the inch,
like TeX big points) with respect to the lower left corner of the
sheet of paper.
</p>
<a class="index-entry-id" id="index-_0025_0025BoundingBox"></a>
<p>To see if a PostScript file has a bounding box comment, just look at the
first few lines of the file. PostScript files are standard ASCII, so
you can use any text editor to do this. If within the first few dozen
lines there is a line like
</p>
<div class="example">
<pre class="example-preformatted">%%BoundingBox: 25 50 400 300
</pre></div>
<p>(with any reasonable numbers), chances are very good that the file is
Encapsulated PostScript and will work easily with Dvips. If the file
contains instead a line like
</p>
<a class="index-entry-id" id="index-atend_002c-bounding-box-specification"></a>
<a class="index-entry-id" id="index-_0028atend_0029_002c-bounding-box-specification"></a>
<div class="example">
<pre class="example-preformatted">%%BoundingBox: (atend)
</pre></div>
<p>the file is still probably Encapsulated PostScript, but the bounding box
is given at the end of the file. Dvips needs it at the beginning. You
can move it with that same text editor, or a simple script. (The
bounding box is given in this way when the program that generated the
PostScript couldn’t know the size in advance, or was too lazy to compute
it.)
</p>
<a class="index-entry-id" id="index-bbfig"></a>
<a class="index-entry-id" id="index-bounding-box_002c-determining"></a>
<p>If the document lacks a ‘<samp class="samp">%%BoundingBox:</samp>’ altogether, you can
determine one in a couple of ways. One is to use the ‘<samp class="samp">bbfig</samp>’
program distributed with Dvips in the <samp class="file">contrib</samp> directory. This can
usually find the correct bounding box automatically; it works best with
Ghostscript.
</p>
<a class="index-entry-id" id="index-612-792-bounding-box-size"></a>
<p>If the comment looks like this:
</p><div class="example">
<pre class="example-preformatted">%%BoundingBox: 0 0 612 792
</pre></div>
<p>the graphic claims to take up an entire sheet of paper. This is
usually a symptom of a bug in the program that generated it.
</p>
<p>The other is to do it yourself: print the file. Now, take a ruler, and
make the following measurements (in PostScript units, so measure in
inches and multiply by 72): From the left edge of the paper to the
leftmost mark on the paper is <var class="var">llx</var>, the first number. From the
bottom edge of the paper to the bottommost mark on the paper is
<var class="var">lly</var>, the second number. From the left edge of the paper to the
rightmost mark on the paper is <var class="var">urx</var>, the third number. The fourth
and final number, <var class="var">ury</var>, is the distance from the bottom of the page
to the uppermost mark on the paper.
</p>
<p>Once you have the numbers, add a comment of the following form as the
second line of the document. (The first line should already be a line
starting with the two characters ‘<samp class="samp">%!</samp>’; if it is not, the file
probably isn’t PostScript.)
</p>
<div class="example">
<pre class="example-preformatted">%%BoundingBox: <var class="var">llx</var> <var class="var">lly</var> <var class="var">urx</var> <var class="var">ury</var>
</pre></div>
<p>Or, if you don’t want to modify the file, you can simply write these
numbers down in a convenient place and give them in your TeX document
when you import the graphic, as described in the next section.
</p>
<p>If the document does not have such a bounding box, or if the bounding
box is given at the end of the document, or the bounding box is wrong,
please complain to the authors of the software package that generated
the file.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="g_t_005cincludegraphics">
<div class="nav-panel">
<p>
Next: <a href="#EPSF-macros" accesskey="n" rel="next">Using the EPSF macros</a>, Previous: <a href="#Bounding-box" accesskey="p" rel="prev">The bounding box comment</a>, Up: <a href="#PostScript-figures" accesskey="u" rel="up">PostScript figures</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="The-_005cincludegraphics-macro-for-LaTeX">5.1.2 The \includegraphics macro for LaTeX</h4>
<a class="index-entry-id" id="index-_005cincludegraphics-LaTeX-macro"></a>
<a class="index-entry-id" id="index-macros-for-epsf-inclusion"></a>
<p>Once the figure file has a bounding box comment (see the previous
section) you are ready to import the graphic into a LaTeX
document. For LaTeX2e, you can use the epsf, graphics or graphicx
packages, but the last is recommended—it has the most flexible
syntax, and is briefly described here. Further information can be
found in <samp class="file">grfguide</samp> or <samp class="file">epslatex</samp>, which should be included
in your LaTeX distribution in DVI, PDF, or other formats. (If you
are still using LaTeX 2.09, use epsf.sty).
</p>
<p>Just put the following command into your preamble:
</p>
<div class="example">
<pre class="example-preformatted">\usepackage[dvips]{graphicx}
</pre></div>
<p>Depending on your system, a suitable driver setup may already be
present, so that LaTeX automatically produces DVI files suitable for
Dvips. In this case you can leave out the ‘<samp class="samp">[dvips]</samp>’ parameter.
</p>
<p>Now, at the point you want to include a file <samp class="file">foo.eps</samp>, enter a
line such as:
</p>
<div class="example">
<pre class="example-preformatted">\includegraphics{foo.eps}
</pre></div>
<p>However, it is usually best to omit the file extension and only use
</p>
<div class="example">
<pre class="example-preformatted">\includegraphics{foo}
</pre></div>
<p>because then you can process the same LaTeX file with
different TeX engines or DVI converters if you also provide
suitable graphics files for them, e.g., <samp class="file">foo.pdf</samp> or
<samp class="file">foo.png</samp>.
</p>
<a class="index-entry-id" id="index-bounding-box_002c-supplying-to-TeX"></a>
<p>The \includegraphics command has many options, specified in
‘<samp class="samp">key=value</samp>’ syntax, to allow you to resize, rotate or trim the
included graphic—see <samp class="file">grfguide</samp> or <samp class="file">epslatex</samp>. If your
file does not have a bounding box comment, you can supply the numbers
as determined in the previous section, in the same order they would
have been in a normal bounding box comment:
</p>
<div class="example">
<pre class="example-preformatted">\includegraphics[bb=100 100 500 500]{foo.ps}
</pre></div>
<p>Now, save your changes and run LaTeX and Dvips; the output should
have your graphic positioned at precisely the point you indicated,
occupying the proper amount of space.
</p>
<p>PostScript graphics have their origin in the lower left
corner. Therefore, in TeX, a graphic will occupy a box that extends
far above the line where it is put in, but has depth zero below it.
Combining ‘<samp class="samp">\includegraphics</samp>’ with ‘<samp class="samp">\parbox</samp>’ commands or
minipages can sometimes be confusing when this is not taken into
account.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="EPSF-macros">
<div class="nav-panel">
<p>
Next: <a href="#psfile-special" accesskey="n" rel="next">‘<samp class="samp">psfile</samp>’ special</a>, Previous: <a href="#g_t_005cincludegraphics" accesskey="p" rel="prev">The \includegraphics macro for LaTeX</a>, Up: <a href="#PostScript-figures" accesskey="u" rel="up">PostScript figures</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Using-the-EPSF-macros">5.1.3 Using the EPSF macros</h4>
<a class="index-entry-id" id="index-EPSF-macros"></a>
<a class="index-entry-id" id="index-macros-for-epsf-inclusion-1"></a>
<p>If you are using LaTeX2e, use the ‘<samp class="samp">graphics</samp>’ or ‘<samp class="samp">graphicx</samp>’
package. See <a class="xref" href="#g_t_005cincludegraphics">The \includegraphics macro for LaTeX</a>.
</p>
<p>If you are using plain TeX or LaTeX 2.09, you need <samp class="file">epsf.tex</samp>
(for plain TeX) and <samp class="file">epsf.sty</samp> (for LaTeX). For plain
TeX, add a line like this near the top of your input file:
</p>
<a class="index-entry-id" id="index-epsf_002etex"></a>
<div class="example">
<pre class="example-preformatted">\input epsf
</pre></div>
<a class="index-entry-id" id="index-epsf_002esty"></a>
<p>If you are using LaTeX 2.09, add the ‘<samp class="samp">epsf</samp>’ style option, as in:
</p>
<div class="example">
<pre class="example-preformatted">\documentstyle[12pt,epsf]{article}
</pre></div>
<p>In any case, the above only needs to be done once, no matter how many
figures you plan to include.
</p>
<p>Now, at the point you want to include a file, enter a line such as:
</p>
<div class="example">
<pre class="example-preformatted">\epsffile{foo.eps}
</pre></div>
<a class="index-entry-id" id="index-_005cleavevmode"></a>
<a class="index-entry-id" id="index-bounding-box_002c-supplying-to-TeX-1"></a>
<p>If you are using LaTeX, you may need to add <code class="code">\leavevmode</code>
immediately before the <code class="code">\epsffile</code> command to get certain
environments to work correctly. If your file does not have a bounding
box comment, you can supply the numbers as determined in the previous
section, in the same order they would have been in a normal bounding box
comment:
</p>
<div class="example">
<pre class="example-preformatted">\epsffile[100 100 500 500]{foo.ps}
</pre></div>
<p>Now, save your changes and run TeX and Dvips; the output should have
your graphic positioned at precisely the point you indicated, occupying
the proper amount of space.
</p>
<a class="index-entry-id" id="index-_005cepsffile-macro"></a>
<a class="index-entry-id" id="index-figures_002c-natural-size"></a>
<p>The <code class="code">\epsffile</code> macro typesets the figure as a TeX <code class="code">\vbox</code>
at the point of the page that the command is executed. By default, the
graphic will have its ‘natural’ width (namely, the width of its bounding
box). The TeX box will have depth zero and its natural height. By
default, the graphic will be scaled by any DVI magnification in effect,
just as is everything else in your document. See the next section for
more information on scaling.
</p>
<a class="index-entry-id" id="index-_005cepsfverbosetrue"></a>
<a class="index-entry-id" id="index-verbose-EPSF-processing"></a>
<p>If you want TeX to report the size of the figure as a message on your
terminal when it processes each figure, give the command:
</p>
<div class="example">
<pre class="example-preformatted">\epsfverbosetrue
</pre></div>
<ul class="mini-toc">
<li><a href="#EPSF-scaling" accesskey="1">EPSF scaling</a></li>
<li><a href="#EPSF-clipping" accesskey="2">EPSF clipping</a></li>
</ul>
<hr>
<div class="subsubsection-level-extent" id="EPSF-scaling">
<div class="nav-panel">
<p>
Next: <a href="#EPSF-clipping" accesskey="n" rel="next">EPSF clipping</a>, Up: <a href="#EPSF-macros" accesskey="u" rel="up">Using the EPSF macros</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsubsection" id="EPSF-scaling-1">5.1.3.1 EPSF scaling</h4>
<a class="index-entry-id" id="index-scaling-of-figures"></a>
<a class="index-entry-id" id="index-figures_002c-scaling"></a>
<p>Usually, you will want to scale an EPSF figure to some size appropriate
for your document, since its natural size is determined by the creator
of the EPS file.
</p>
<p>The best way to do this is to assign the desired size to the TeX
<code class="code">\epsfxsize</code> or <code class="code">\epsfysize</code> variables, whichever is more
convenient for you. That is, put
</p>
<a class="index-entry-id" id="index-_005cepsfxsize"></a>
<div class="example">
<pre class="example-preformatted">\epsfxsize=<var class="var">dimen</var>
</pre></div>
<p>right before the call to <code class="code">\epsffile</code>. Then the width of the TeX
box will be <var class="var">dimen</var> and its height will be scaled proportionately.
Similarly, you can set the vertical size with
</p>
<a class="index-entry-id" id="index-_005cepsfysize"></a>
<div class="example">
<pre class="example-preformatted">\epsfysize=<var class="var">dimen</var>
</pre></div>
<p>in which case the height will be set and the width scaled
proportionally.
</p>
<p>If you set both, both will be honored, but the aspect ratio of the
included graphic may necessarily be distorted, i.e., its contents
stretched in one direction or the other.
</p>
<a class="index-entry-id" id="index-_005cepsfsize"></a>
<p>You can resize graphics in a more general way by redefining the
<code class="code">\epsfsize</code> macro. <code class="code">\epsffile</code> calls this with two
parameters: the natural horizontal and vertical sizes of the PostScript
graphic. <code class="code">\epsfsize</code> must expand to the desired horizontal size,
that is, the width of the <code class="code">\vbox</code>. Schematically:
</p>
<div class="example">
<pre class="example-preformatted">\def\epsfsize#1#2{<var class="var">body</var>}
</pre></div>
<p>Some useful definitions of <var class="var">body</var>:
</p>
<dl class="table">
<dt>‘<samp class="samp">\epsfxsize</samp>’</dt>
<dd><p>This definition (the default) enables the default features listed above,
by setting <code class="code">\epsfxsize</code> to the same value it had before the macro
was called.
</p>
</dd>
<dt>‘<samp class="samp">#1</samp>’</dt>
<dd><p>Force the natural size by returning the first parameter (the original
width).
</p>
</dd>
<dt>‘<samp class="samp">0pt</samp>’</dt>
<dd><p>A special case, equivalent to ‘<samp class="samp">#1</samp>’.
</p>
</dd>
<dt>‘<samp class="samp">0.5#1</samp>’</dt>
<dd><p>Scale to half the natural size.
</p>
</dd>
<dt>‘<samp class="samp">\hsize</samp>’</dt>
<dd><p>Scale to the current <code class="code">\hsize</code>. (In LaTeX, use <code class="code">\textwidth</code>
instead of <code class="code">\hsize</code>.)
</p>
</dd>
<dt>‘<samp class="samp">\ifnum#1>\hsize\hsize\else#1\fi</samp>’</dt>
<dd><p>If the natural width is greater than the current <code class="code">\hsize</code>, scale to
<code class="code">\hsize</code>, otherwise use the natural width.
</p>
</dd>
</dl>
<a class="index-entry-id" id="index-DVI-magnification"></a>
<a class="index-entry-id" id="index-magnification_002c-DVI"></a>
<a class="index-entry-id" id="index-_005cmagnification"></a>
<p>For compatibility with other PostScript drivers, it is possible to turn
off the default scaling of included figures by the DVI magnification
with the following TeX command:
</p>
<a class="index-entry-id" id="index-_002fmagscale"></a>
<div class="example">
<pre class="example-preformatted">\special{! /magscale false def}
</pre></div>
<p>Use of this command is not recommended because it will make the
<code class="code">\epsffile</code> graphics the “wrong” size if global magnification is
being used, and it will cause any PostScript graphics to appear
improperly scaled and out of position if a DVI to DVI program is used to
scale or otherwise modify the document.
</p>
<a class="index-entry-id" id="index-bop_002dhook-1"></a>
<p>DVI magnification is not applied to any output from code you write in
‘<samp class="samp">bop-hook</samp>’ or its ilk (see <a class="pxref" href="#PostScript-hooks">PostScript hooks</a>),
</p>
<hr>
</div>
<div class="subsubsection-level-extent" id="EPSF-clipping">
<div class="nav-panel">
<p>
Previous: <a href="#EPSF-scaling" accesskey="p" rel="prev">EPSF scaling</a>, Up: <a href="#EPSF-macros" accesskey="u" rel="up">Using the EPSF macros</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsubsection" id="EPSF-clipping-1">5.1.3.2 EPSF clipping</h4>
<a class="index-entry-id" id="index-clipping-of-EPSF"></a>
<a class="index-entry-id" id="index-bounding-box_002c-inaccurate"></a>
<a class="index-entry-id" id="index-text-in-figures_002c-chopped-off"></a>
<a class="index-entry-id" id="index-lines-in-figures_002c-wrong-width"></a>
<p>By default, clipping is disabled for included EPSF images. This is
because clipping to the bounding box dimensions often cuts off a
small portion of the figure, due to slightly inaccurate bounding
box arguments. The problem might be subtle; lines around the boundary
of the image might be half their intended width, or the tops or
bottoms of some text annotations might be sliced off. If you want to
turn clipping on, just use the command
</p>
<div class="example">
<pre class="example-preformatted">\epsfclipon
</pre></div>
<p>and to turn clipping back off, use
</p>
<div class="example">
<pre class="example-preformatted">\epsfclipoff
</pre></div>
<hr>
</div>
</div>
<div class="subsection-level-extent" id="psfile-special">
<div class="nav-panel">
<p>
Next: <a href="#Dynamic-creation-of-graphics" accesskey="n" rel="next">Dynamic creation of PostScript graphics files</a>, Previous: <a href="#EPSF-macros" accesskey="p" rel="prev">Using the EPSF macros</a>, Up: <a href="#PostScript-figures" accesskey="u" rel="up">PostScript figures</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="psfile-special-1">5.1.4 ‘<samp class="samp">psfile</samp>’ special</h4>
<a class="index-entry-id" id="index-psfile-special"></a>
<p>The basic special for file inclusion is as follows:
</p>
<div class="example">
<pre class="example-preformatted">\special{psfile=<var class="var">filename</var>.ps <span class="r">[</span><var class="var">key</var>=<var class="var">value</var><span class="r">]</span> … }
</pre></div>
<p>This downloads the PostScript file <samp class="file"><var class="var">filename</var>.ps</samp> such that
the current point will be the origin of the PostScript coordinate
system. The optional <var class="var">key</var><code class="t">=</code><var class="var">value</var> assignments allow you to
specify transformations on the PostScript.
</p>
<p>The possible <var class="var">key</var>s are:
</p>
<dl class="table">
<dt id='index-hoffset-_0028psfile-special-option_0029'><span>‘<samp class="samp">hoffset</samp>’<a class="copiable-link" href='#index-hoffset-_0028psfile-special-option_0029'> ¶</a></span></dt>
<dd><p>The horizontal offset (default 0).
</p>
</dd>
<dt id='index-voffset-_0028psfile-special-option_0029'><span>‘<samp class="samp">voffset</samp>’<a class="copiable-link" href='#index-voffset-_0028psfile-special-option_0029'> ¶</a></span></dt>
<dd><p>The vertical offset (default 0).
</p>
</dd>
<dt id='index-hsize-_0028psfile-special-option_0029'><span>‘<samp class="samp">hsize</samp>’<a class="copiable-link" href='#index-hsize-_0028psfile-special-option_0029'> ¶</a></span></dt>
<dd><p>The horizontal clipping size (default 612).
</p>
</dd>
<dt id='index-vsize-_0028psfile-special-option_0029'><span>‘<samp class="samp">vsize</samp>’<a class="copiable-link" href='#index-vsize-_0028psfile-special-option_0029'> ¶</a></span></dt>
<dd><p>The vertical clipping size (default 792).
</p>
</dd>
<dt id='index-hscale-_0028psfile-special-option_0029'><span>‘<samp class="samp">hscale</samp>’<a class="copiable-link" href='#index-hscale-_0028psfile-special-option_0029'> ¶</a></span></dt>
<dd><p>The horizontal scaling factor, as a percentage (default 100).
</p>
</dd>
<dt id='index-vscale-_0028psfile-special-option_0029'><span>‘<samp class="samp">vscale</samp>’<a class="copiable-link" href='#index-vscale-_0028psfile-special-option_0029'> ¶</a></span></dt>
<dd><p>The vertical scaling factor, as a percentage (default 100).
</p>
</dd>
<dt id='index-angle-_0028psfile-special-option_0029'><span>‘<samp class="samp">angle</samp>’<a class="copiable-link" href='#index-angle-_0028psfile-special-option_0029'> ¶</a></span></dt>
<dd><p>The rotation, in degrees (default 0).
</p>
</dd>
<dt id='index-clip-_0028psfile-special-option_0029'><span>‘<samp class="samp">clip</samp>’<a class="copiable-link" href='#index-clip-_0028psfile-special-option_0029'> ¶</a></span></dt>
<dd><p>Enable clipping to the bounding box (default disabled).
</p>
</dd>
<dt id='index-llx-_0028psfile-special-option_0029'><span>‘<samp class="samp">llx, lly, urx, ury</samp>’<a class="copiable-link" href='#index-llx-_0028psfile-special-option_0029'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-lly-_0028psfile-special-option_0029"></a>
<a class="index-entry-id" id="index-urx-_0028psfile-special-option_0029"></a>
<a class="index-entry-id" id="index-ury-_0028psfile-special-option_0029"></a>
<p>Bounding box of the included image, just as in a <code class="code">%%BoundingBox</code>
comment. Values are in big points, and may be fractional.
</p>
</dd>
<dt id='index-rhi-_0028psfile-special-option_0029'><span>‘<samp class="samp">rhi, rwi</samp>’<a class="copiable-link" href='#index-rhi-_0028psfile-special-option_0029'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-rwi-_0028psfile-special-option_0029"></a>
<p>Desired width and height of the resulting figure in the output, in
tenths of big points (720 to the inch); may be fractional.
</p>
<p>If both <code class="code">rwi</code> and <code class="code">rhi</code> are nonzero, the picture is scaled,
possibly losing aspect ratio. If only one of <code class="code">rwi</code> and
<code class="code">rhi</code> is nonzero, the picture is scaled, preserving aspect ratio.
</p>
</dd>
</dl>
<p>The offsets and sizes are given in PostScript units (big points).
Thus, for example:
</p>
<div class="example">
<pre class="example-preformatted">\special{psfile=foo.ps hoffset=72 hscale=90 vscale=90}
</pre></div>
<p>will shift the graphics produced by file <samp class="file">foo.ps</samp> right by one inch
and will draw it at 0.9 times normal size. Offsets are given relative
to the point of the special command, and are unaffected by scaling or
rotation. Rotation is counterclockwise about the origin. The order of
operations is to rotate the figure, scale it, then offset it.
</p>
<p>For compatibility with older PostScript drivers, it is possible to change
the units that ‘<samp class="samp">hscale</samp>’ and ‘<samp class="samp">vscale</samp>’ are given in. This can be
done by redefining ‘<samp class="samp">@scaleunit</samp>’
<a class="index-entry-id" id="index-scaleunit"></a>
in ‘<samp class="samp">SDict</samp>’
<a class="index-entry-id" id="index-SDict"></a>
by a TeX command such as
</p>
<div class="example">
<pre class="example-preformatted">\special{! /@scaleunit 1 def}
</pre></div>
<p>The ‘<samp class="samp">@scaleunit</samp>’ variable, which is by default 100, is what
‘<samp class="samp">hscale</samp>’ and ‘<samp class="samp">vscale</samp>’ are divided by to yield an absolute
scale factor.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Dynamic-creation-of-graphics">
<div class="nav-panel">
<p>
Next: <a href="#Fonts-in-figures" accesskey="n" rel="next">Fonts in figures</a>, Previous: <a href="#psfile-special" accesskey="p" rel="prev">‘<samp class="samp">psfile</samp>’ special</a>, Up: <a href="#PostScript-figures" accesskey="u" rel="up">PostScript figures</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Dynamic-creation-of-PostScript-graphics-files">5.1.5 Dynamic creation of PostScript graphics files</h4>
<a class="index-entry-id" id="index-dynamic-creation-of-graphics"></a>
<a class="index-entry-id" id="index-compressed-PostScript"></a>
<a class="index-entry-id" id="index-uncompressing-PostScript"></a>
<p>PostScript is an excellent page description language—but it does tend
to be rather verbose. Compressing PostScript graphics files can reduce
them by factor of five or more. For this reason, if the name of an
included PostScript file ends with <samp class="file">.Z</samp> or <samp class="file">.gz</samp>, Dvips
automatically runs ‘<samp class="samp">gzip -d</samp>’. For example:
</p>
<div class="example">
<pre class="example-preformatted">\epsffile[72 72 540 720]{foo.ps.gz}
</pre></div>
<p>Since the results of such a command are not accessible to TeX, if you
use this facility with the <samp class="file">epsf</samp> macros, you need to supply the
bounding box parameter yourself, as shown.
</p>
<p>More generally, if the filename parameter to one of the graphics
inclusion techniques starts with a left quote (‘<samp class="samp">`</samp>’), the parameter
is instead interpreted as a command to execute that will send the actual
file to standard output. For example:
</p>
<div class="example">
<pre class="example-preformatted">\special{psfile="`gnuplot foo"}
</pre></div>
<a class="index-entry-id" id="index-gnuplot"></a>
<p>to include the file <samp class="file">foo</samp>. Of course, the command to be executed
can be anything, including using a file conversion utility such as
<samp class="file">tek2ps</samp> or whatever is appropriate. This feature can be disabled
with the ‘<samp class="samp">-R</samp>’ command-line option or ‘<samp class="samp">R</samp>’ configuration option.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Fonts-in-figures">
<div class="nav-panel">
<p>
Previous: <a href="#Dynamic-creation-of-graphics" accesskey="p" rel="prev">Dynamic creation of PostScript graphics files</a>, Up: <a href="#PostScript-figures" accesskey="u" rel="up">PostScript figures</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Fonts-in-figures-1">5.1.6 Fonts in figures</h4>
<a class="index-entry-id" id="index-figures-and-fonts"></a>
<a class="index-entry-id" id="index-fonts_002c-in-PostScript-figures"></a>
<a class="index-entry-id" id="index-_0025_002aFont"></a>
<p>You can use any font available to TeX and Dvips within a graphics
file by putting a <code class="code">%*Font:</code> line in the leading commentary of the
file. Schematically, this looks like:
</p>
<div class="example">
<pre class="example-preformatted">%*Font: <var class="var">tfmname</var> <var class="var">scaledbp</var> <var class="var">designbp</var> <var class="var">hex-start</var>:<var class="var">hex-bitstring</var>
</pre></div>
<p>Here is the meaning of each of these elements:
</p>
<dl class="table">
<dt><var class="var">tfmname</var></dt>
<dd><p>The TeX TFM filename, e.g., <samp class="file">cmr10</samp>. You can give the same
<var class="var">tfmname</var> on more than one ‘<samp class="samp">%*Font</samp>’ line; this is useful when
the number of characters from the font used needs a longer
<var class="var">hex-bitstring</var> (see item below) than conveniently fits on one line.
</p>
</dd>
<dt><var class="var">scaledbp</var></dt>
<dd><p>The size at which you are using the font, in PostScript points (TeX
big points). 72<span class="dmn">bp</span> = 72.27<span class="dmn">pt</span> = 1<span class="dmn">in</span>.
</p>
</dd>
<dt><var class="var">designbp</var></dt>
<dd><p>The designsize of the font, again in PostScript points. This should
match the value in the TFM file <var class="var">tfmname</var>. Thus, for <samp class="file">cmr10</samp>,
it should be ‘<samp class="samp">9.96265</samp>’.
</p>
</dd>
<dt><var class="var">hex-start</var></dt>
<dd><p>The character code of the first character used from the font, specified
as two ASCII hexadecimal characters, e.g., ‘<samp class="samp">4b</samp>’ or ‘<samp class="samp">4B</samp>’ for
‘<samp class="samp">K</samp>’.
</p>
</dd>
<dt><var class="var">hex-bitstring</var></dt>
<dd><p>An arbitrary number of ASCII hexadecimal digits specifying which
characters following (and including) <var class="var">hex-start</var> are used. This is
treated as a bitmap. For example, if your figure used the single letter
‘<samp class="samp">K</samp>’, you would use ‘<samp class="samp">4b:8</samp>’ for <var class="var">hex-start</var> and
<var class="var">hex-bitstring</var>. If it used ‘<samp class="samp">KLMNP</samp>’, you would use
‘<samp class="samp">4b:f4</samp>’.
</p>
</dd>
</dl>
<p>MetaPost’s output figures contain lines like this for bitmap fonts used
in a MetaPost label (see <a data-manual="web2c" href="https://tug.org/texinfohtml/web2c.html#MetaPost">MetaPost</a> in <cite class="cite">Web2c</cite>).
</p>
<hr>
</div>
</div>
<div class="section-level-extent" id="Header-files">
<div class="nav-panel">
<p>
Next: <a href="#Literal-PS" accesskey="n" rel="next">Literal PostScript</a>, Previous: <a href="#PostScript-figures" accesskey="p" rel="prev">PostScript figures</a>, Up: <a href="#Interaction-with-PostScript" accesskey="u" rel="up">Interaction with PostScript</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="PostScript-header-files">5.2 PostScript header files</h3>
<a class="index-entry-id" id="index-header-files_002c-defined"></a>
<a class="index-entry-id" id="index-PostScript-header-files"></a>
<p><em class="dfn">Header files</em> are bits of PostScript included in the output file;
generally they provide support for special features, rather than
producing any printed output themselves. You can explicitly request
downloading header files if necessary for some figure, or to achieve
some special effect.
</p>
<a class="index-entry-id" id="index-psheaderdir"></a>
<a class="index-entry-id" id="index-_002epro-prologue-files"></a>
<a class="index-entry-id" id="index-_002elpro-long-prologue-files"></a>
<p>Dvips includes some headers on its own initiative, to implement features
such as PostScript font reencoding, bitmap font downloading, handling of
<code class="code">\special</code>’s, and so on. These standard headers are the
<samp class="file">.pro</samp> files (for “prologue”) in the installation directory
‘<samp class="samp">$(psheaderdir)</samp>’; they are created from the <samp class="file">.lpro</samp> (“long
prologue”) files in the distribution by stripping
comments, squeezing blank lines, etc., for maximum efficiency. If you
want to peruse one of the standard header files, read the <samp class="file">.lpro</samp>
version.
</p>
<a class="index-entry-id" id="index-userdict_002c-and-dictionary-files"></a>
<a class="index-entry-id" id="index-dictionary_002c-userdict"></a>
<p>The PostScript dictionary stack will be at the ‘<samp class="samp">userdict</samp>’ level
when header files are included.
</p>
<ul class="mini-toc">
<li><a href="#Including-headers-from-TeX" accesskey="1">Including headers from TeX</a></li>
<li><a href="#Including-headers-from-the-command-line" accesskey="2">Including headers from the command line</a></li>
<li><a href="#Headers-and-memory-usage" accesskey="3">Headers and memory usage</a></li>
</ul>
<hr>
<div class="subsection-level-extent" id="Including-headers-from-TeX">
<div class="nav-panel">
<p>
Next: <a href="#Including-headers-from-the-command-line" accesskey="n" rel="next">Including headers from the command line</a>, Up: <a href="#Header-files" accesskey="u" rel="up">PostScript header files</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Including-headers-from-TeX-1">5.2.1 Including headers from TeX</h4>
<a class="index-entry-id" id="index-including-headers-in-TeX"></a>
<a class="index-entry-id" id="index-header_003dfile-_005cspecial"></a>
<a class="index-entry-id" id="index-TeX_002c-including-headers-in"></a>
<a class="index-entry-id" id="index-headers_002c-including-in-TeX"></a>
<p>In order to get a particular graphic file to work, a certain font or
header file might need to be sent first. The Dvips program provides
support for this with the ‘<samp class="samp">header</samp>’ <code class="code">\special</code>. For instance,
to ensure that <samp class="file">foo.ps</samp> gets downloaded:
</p>
<div class="example">
<pre class="example-preformatted">\special{header=foo.ps}
</pre></div>
<a class="index-entry-id" id="index-fonts_002c-as-header-files"></a>
<p>As another example, if you have some PostScript code that uses a
PostScript font not built into your printer, you must download it to the
printer. If the font isn’t used elsewhere in the document, Dvips can’t
know you’ve used it, so you must include it in the same way, as in:
</p>
<div class="example">
<pre class="example-preformatted">\special{header=putr.pfa}
</pre></div>
<p>to include the font definition file for Adobe Utopia Roman.
</p>
<p>The <code class="code">header</code> also special allows for specifying some additional
code that should be inserted into the PostScript document before and after
the file itself, as follows:
</p>
<div class="example">
<pre class="example-preformatted">\special{header={foo.ps} pre={pre code} post={post code}}
</pre></div>
<a class="index-entry-id" id="index-before-header_002c-inserting-code"></a>
<a class="index-entry-id" id="index-after-header_002c-inserting-code"></a>
<a class="index-entry-id" id="index-pre-code-before-headers"></a>
<a class="index-entry-id" id="index-post-code-after-headers"></a>
<p>This will insert <code class="code">pre code</code> just before <samp class="file">foo.ps</samp> and
<code class="code">post code</code> just after. It is required to use the (balanced)
braces in <em class="emph">all</em> of the arguments, including the <code class="code">header</code>,
when using this extended syntax.
</p>
<p>This allows, for instance, dynamic headers, where some of the content
depends on settings from the user in (La)TeX. Another application
is the inclusion of graphics inside the PostScript header, so that
they can be reused throughout the document, as with logs. That avoids
including the same graphic several times. This is implemented in the
<samp class="file">graphics/graphicx-psmin</samp> package.
</p>
<p>This extended syntax has one additional feature. When Dvips finds the
extended syntax, it will also look in the installed <samp class="file">tex/</samp>
tree(s) for the header file (<samp class="file">foo.ps</samp> in our example), and not
only in the current directory and dvips tree as the original syntax
does. This is because common graphics may well come with packages
which are installed in the <samp class="file">tex/</samp> tree.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Including-headers-from-the-command-line">
<div class="nav-panel">
<p>
Next: <a href="#Headers-and-memory-usage" accesskey="n" rel="next">Headers and memory usage</a>, Previous: <a href="#Including-headers-from-TeX" accesskey="p" rel="prev">Including headers from TeX</a>, Up: <a href="#Header-files" accesskey="u" rel="up">PostScript header files</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Including-headers-from-the-command-line-1">5.2.2 Including headers from the command line</h4>
<a class="index-entry-id" id="index-including-headers-from-the-command-line"></a>
<a class="index-entry-id" id="index-command-line_002c-including-headers-from"></a>
<a class="index-entry-id" id="index-headers_002c-including-from-the-command-line"></a>
<p>You can include headers when you run Dvips, as well as from your
document (see the previous section). To do this, run Dvips with the
option ‘<samp class="samp">-P <var class="var">header</var></samp>’; this will read the file
<samp class="file">config.<var class="var">header</var></samp>, which in turn can specify a header file to
be downloaded with the ‘<samp class="samp">h</samp>’ option. See <a class="xref" href="#Configuration-file-commands">Configuration file commands</a>. These files are called <samp class="file"><var class="var">header</var>.cfg</samp> on MS-DOS.
</p>
<a class="index-entry-id" id="index-duplex-printers"></a>
<a class="index-entry-id" id="index-simplex-mode-on-duplex-printers"></a>
<a class="index-entry-id" id="index-screen-frequencies_002c-setting"></a>
<p>You can arrange for the same file to serve as a ‘<samp class="samp">-P</samp>’ config file
and the downloadable header file, by starting the lines of PostScript
code with a space, leaving only the ‘<samp class="samp">h</samp>’ line and any comments
starting in the first column. As an example, see
<samp class="file">contrib/volker/config.*</samp> (<samp class="file">contrib/volker/*.cfg</samp> on MS-DOS).
(These files also perform useful functions: controlling duplex/simplex
mode on duplex printers, and setting various screen frequencies;
<samp class="file">contrib/volker/README</samp> explains further.)
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Headers-and-memory-usage">
<div class="nav-panel">
<p>
Previous: <a href="#Including-headers-from-the-command-line" accesskey="p" rel="prev">Including headers from the command line</a>, Up: <a href="#Header-files" accesskey="u" rel="up">PostScript header files</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Headers-and-memory-usage-1">5.2.3 Headers and memory usage</h4>
<a class="index-entry-id" id="index-headers-and-memory-usage"></a>
<a class="index-entry-id" id="index-memory-usage_002c-and-headers"></a>
<a class="index-entry-id" id="index-sections-of-output-file_002c-and-memory"></a>
<a class="index-entry-id" id="index-output-file_002c-sectioning-of"></a>
<p>Dvips tries to avoid overflowing the printer’s memory by splitting the
output files into “sections” (see the ‘<samp class="samp">-i</samp>’ option in <a class="ref" href="#Option-details">Option details</a>). Therefore, for all header files, Dvips debits the printer VM
budget by some value. If the header file has, in its leading
commentary a line of the form
</p>
<a class="index-entry-id" id="index-VMusage"></a>
<a class="index-entry-id" id="index-_0025_0025VMusage"></a>
<div class="example">
<pre class="example-preformatted">%%VMusage: <var class="var">min</var> <var class="var">max</var>
</pre></div>
<p>then <var class="var">max</var> is used. If there is no <code class="code">%%VMusage</code> line, then
the size (in bytes) of the header file is used as an approximation.
If you want a file to be ignored in the sectioning calculations, use
‘<samp class="samp">%%VMusage: 0 0</samp>’.
</p>
<p>Illustrations (figure files) are also checked for <code class="code">%%VMusage</code> line.
</p>
<p>Therefore, if your document uses very large fonts or very large
included figures, Dvips might take it upon itself to split the output
into unwanted sections. If this causes problems, the simplest
solution is to use ‘<samp class="samp">dvips -Pmaxmem</samp>’, which reads the Dvips file
<samp class="file">config.maxmem</samp>, which sets Dvips’s idea of the memory available
to a very large number. (See the ‘<samp class="samp">m</samp>’ item in <a class="ref" href="#Configuration-file-commands">Configuration file commands</a>.)
</p>
<hr>
</div>
</div>
<div class="section-level-extent" id="Literal-PS">
<div class="nav-panel">
<p>
Next: <a href="#Hypertext" accesskey="n" rel="next">HyperTeXt</a>, Previous: <a href="#Header-files" accesskey="p" rel="prev">PostScript header files</a>, Up: <a href="#Interaction-with-PostScript" accesskey="u" rel="up">Interaction with PostScript</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Literal-PostScript">5.3 Literal PostScript</h3>
<a class="index-entry-id" id="index-literal-PostScript_002c-using"></a>
<a class="index-entry-id" id="index-PostScript-code_002c-literal"></a>
<p>You can include literal PostScript code in your document in several ways.
</p>
<ul class="mini-toc">
<li><a href="#g_t_0022-special" accesskey="1"><code class="code">"</code> special: Literal PostScript</a></li>
<li><a href="#ps-special" accesskey="2">‘<samp class="samp">ps</samp>’ special</a></li>
<li><a href="#Literal-headers" accesskey="3">Literal headers: ‘<samp class="samp">!</samp>’ <code class="code">\special</code></a></li>
<li><a href="#PostScript-hooks" accesskey="4">PostScript hooks</a></li>
<li><a href="#Literal-examples" accesskey="5">Literal examples</a></li>
</ul>
<hr>
<div class="subsection-level-extent" id="g_t_0022-special">
<div class="nav-panel">
<p>
Next: <a href="#ps-special" accesskey="n" rel="next">‘<samp class="samp">ps</samp>’ special</a>, Up: <a href="#Literal-PS" accesskey="u" rel="up">Literal PostScript</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="g_t_0022-special_003a-Literal-PostScript">5.3.1 <code class="code">"</code> special: Literal PostScript</h4>
<a class="index-entry-id" id="index-_0022-special-_0028literal-PostScript_0029"></a>
<p>For simple graphics, or just for experimentation, literal PostScript
code can be included. Simply use a <code class="code">\special</code> beginning with a
double quote character ‘<samp class="samp">"</samp>’; there is no matching closing ‘<samp class="samp">"</samp>’.
</p>
<p>For instance, the following (simple) graphic:
</p>
<p>was created by typing:
</p>
<div class="example">
<pre class="example-preformatted">\vbox to 100bp{\vss % a bp is the same as a PostScript unit
\special{" newpath 0 0 moveto 100 100 lineto 394 0 lineto
closepath gsave 0.8 setgray fill grestore stroke}}
</pre></div>
<p>You are responsible for leaving space for such literal graphics, as with
the <code class="code">\vbox</code> above.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="ps-special">
<div class="nav-panel">
<p>
Next: <a href="#Literal-headers" accesskey="n" rel="next">Literal headers: ‘<samp class="samp">!</samp>’ <code class="code">\special</code></a>, Previous: <a href="#g_t_0022-special" accesskey="p" rel="prev"><code class="code">"</code> special: Literal PostScript</a>, Up: <a href="#Literal-PS" accesskey="u" rel="up">Literal PostScript</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="ps-special-1">5.3.2 ‘<samp class="samp">ps</samp>’ special</h4>
<a class="index-entry-id" id="index-ps-special"></a>
<a class="index-entry-id" id="index-save_002frestore_002c-and-specials"></a>
<p>Generally, Dvips encloses specials in a PostScript save/restore pair,
guaranteeing that the special will have no effect on the rest of the
document. The ‘<samp class="samp">ps</samp>’ special, however, allows you to insert literal
PostScript instructions without this protective shield; you should
understand what you’re doing (and you shouldn’t change the PostScript
graphics state unless you are willing to take the consequences). This
command can take many forms because it has had a torturous history; any
of the following will work:
</p>
<div class="example">
<pre class="example-preformatted">\special{ps:<var class="var">text</var>}
\special{ps::<var class="var">text</var>}
\special{ps::[begin]<var class="var">text</var>}
\special{ps::[end]<var class="var">text</var>}
\special{ps::[nobreak]<var class="var">text</var>}
</pre></div>
<p>(with longer forms taking precedence over shorter forms, when they are
present). ‘<samp class="samp">ps::</samp>’ and ‘<samp class="samp">ps::[end]</samp>’ do no positioning, so they
can be used to continue PostScript literals started with ‘<samp class="samp">ps:</samp>’ or
‘<samp class="samp">ps::[begin]</samp>’.
</p>
<p>Literal PostScript instructions after ‘<samp class="samp">ps::[nobreak]</samp>’ are
<em class="emph">not</em> broken into lines. This feature may be used to include
PostScript comments, for example.
</p>
<a class="index-entry-id" id="index-plotfile_002c-ps-subspecial"></a>
<p>In addition, the variant
</p>
<div class="example">
<pre class="example-preformatted">\special{ps: plotfile <var class="var">filename</var>}
</pre></div>
<a class="index-entry-id" id="index-rotate_002etex"></a>
<p>inserts the contents of <var class="var">filename</var> verbatim into the output (except
for omitting lines that begin with %). An example of the proper use of
literal specials can be found in the file <samp class="file">rotate.tex</samp>, which makes
it easy to typeset text turned in multiples of 90 degrees.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Literal-headers">
<div class="nav-panel">
<p>
Next: <a href="#PostScript-hooks" accesskey="n" rel="next">PostScript hooks</a>, Previous: <a href="#ps-special" accesskey="p" rel="prev">‘<samp class="samp">ps</samp>’ special</a>, Up: <a href="#Literal-PS" accesskey="u" rel="up">Literal PostScript</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Literal-headers_003a-_0021-_005cspecial">5.3.3 Literal headers: ‘<samp class="samp">!</samp>’ <code class="code">\special</code></h4>
<a class="index-entry-id" id="index-literal-headers"></a>
<a class="index-entry-id" id="index-SDict-dictionary"></a>
<a class="index-entry-id" id="index-_0021-special-_0028literal-PS-header_0029"></a>
<a class="index-entry-id" id="index-dictionary_002c-SDict"></a>
<p>You can download literal PostScript header code in your TeX document,
for use with (for example) literal graphics code that you include later.
The text of a <code class="code">\special</code> beginning with an ‘<samp class="samp">!</samp>’ is copied into
the output file. A dictionary <code class="code">SDict</code> will be current when this
code is executed; Dvips arranges for <code class="code">SDict</code> to be first on the
dictionary stack when any PostScript graphic is included, whether
literally (the ‘<samp class="samp">"</samp>’ special) or through macros (e.g.,
<samp class="file">epsf.tex</samp>).
</p>
<p>For example:
</p>
<div class="example">
<pre class="example-preformatted">\special{! /reset { 0 0 moveto} def}
</pre></div>
<hr>
</div>
<div class="subsection-level-extent" id="PostScript-hooks">
<div class="nav-panel">
<p>
Next: <a href="#Literal-examples" accesskey="n" rel="next">Literal examples</a>, Previous: <a href="#Literal-headers" accesskey="p" rel="prev">Literal headers: ‘<samp class="samp">!</samp>’ <code class="code">\special</code></a>, Up: <a href="#Literal-PS" accesskey="u" rel="up">Literal PostScript</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="PostScript-hooks-1">5.3.4 PostScript hooks</h4>
<a class="index-entry-id" id="index-PostScript-hooks"></a>
<p>Besides including literal PostScript at a particular place in your
document (as described in the previous section), you can also arrange to
execute arbitrary PostScript code at particular times while the
PostScript is printing.
</p>
<a class="index-entry-id" id="index-bop_002dhook-2"></a>
<a class="index-entry-id" id="index-eop_002dhook"></a>
<a class="index-entry-id" id="index-start_002dhook"></a>
<a class="index-entry-id" id="index-end_002dhook"></a>
<p>If any of the PostScript names <code class="code">bop-hook</code>, <code class="code">eop-hook</code>,
<code class="code">start-hook</code>, or <code class="code">end-hook</code> are defined in <code class="code">userdict</code>,
they will be executed at the beginning of a page, end of a page, start
of the document, and end of a document, respectively.
</p>
<a class="index-entry-id" id="index-draft-copies"></a>
<a class="index-entry-id" id="index-dated-output"></a>
<p>When these macros are executed, the default PostScript coordinate system
and origin is in effect. Such macros can be defined in headers added by
the ‘<samp class="samp">-h</samp>’ option or the ‘<samp class="samp">header=</samp>’ special, and might be useful
for writing, for instance, ‘DRAFT’ across the entire page, or, with the
aid of a shell script, dating the document. These macros are executed
outside of the save/restore context of the individual pages, so it is
possible for them to accumulate information, but if a document must be
divided into sections because of memory constraints, such added
information will be lost across section breaks.
</p>
<a class="index-entry-id" id="index-physical-page-number_002c-and-bop_002dhook"></a>
<p>The single argument to <code class="code">bop-hook</code> is the physical page number; the
first page gets zero, the second one, etc. <code class="code">bop-hook</code> must leave
this number on the stack. None of the other hooks are passed arguments.
</p>
<p>As an example of what can be done, the following special will write
a light grey ‘DRAFT’ across each page in the document:
</p>
<div class="example">
<pre class="example-preformatted">\special{!userdict begin /bop-hook{gsave 200 30 translate
65 rotate /Times-Roman findfont 216 scalefont setfont
0 0 moveto 0.7 setgray (DRAFT) show grestore}def end}
</pre></div>
<a class="index-entry-id" id="index-_0025_0025Page_002c-and-multi_002dpage-information"></a>
<p>Using <code class="code">bop-hook</code> or <code class="code">eop-hook</code> to preserve information across
pages breaks compliance with the Adobe document structuring conventions,
so if you use any such tricks, you may also want to use the ‘<samp class="samp">-N</samp>’
option to turn off structured comments (such as ‘<samp class="samp">%%Page</samp>’).
Otherwise, programs that read your file will assume its pages are
independent.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Literal-examples">
<div class="nav-panel">
<p>
Previous: <a href="#PostScript-hooks" accesskey="p" rel="prev">PostScript hooks</a>, Up: <a href="#Literal-PS" accesskey="u" rel="up">Literal PostScript</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Literal-examples-1">5.3.5 Literal examples</h4>
<a class="index-entry-id" id="index-literal-PostScript_002c-examples"></a>
<a class="index-entry-id" id="index-examples-of-literal-PostScript"></a>
<p>To finish off this section, the following examples of literal PostScript
are presented without explanation:
</p>
<div class="example">
<pre class="example-preformatted">\def\rotninety{\special{ps:currentpoint currentpoint translate 90
rotate neg exch neg exch translate}}\font\huge=cmbx10 at 14.4truept
\setbox0=\hbox to0pt{\huge A\hss}\vskip16truept\centerline{\copy0
\special{ps:gsave}\rotninety\copy0\rotninety\copy0\rotninety
\box0\special{ps:grestore}}\vskip16truept
</pre></div>
<div class="example">
<pre class="example-preformatted">\vbox to 2truein{\special{ps:gsave 0.3 setgray}\hrule height 2in
width\hsize\vskip-2in\special{ps:grestore}\font\big=cminch\big
\vss\special{ps:gsave 1 setgray}\vbox to 0pt{\vskip2pt
\line{\hss\hskip4pt NEAT\hss}\vss}\special{ps:0 setgray}%
\hbox{\raise2pt\line{\hss NEAT\hss}\special{ps:grestore}}\vss}
</pre></div>
<a class="index-entry-id" id="index-_005crotninety"></a>
<a class="index-entry-id" id="index-gsave_002fgrestore_002c-and-literal-PS"></a>
<a class="index-entry-id" id="index-save_002frestore_002c-and-literal-PS"></a>
<p>Some caveats are in order, however. Make sure that each <code class="code">gsave</code> is
matched with a <code class="code">grestore</code> on the same page. Do not use <code class="code">save</code>
and <code class="code">restore</code>; they can interact with the PostScript generated by
Dvips if care is not taken. Try to understand what the above macros are
doing before writing your own. The <code class="code">\rotninety</code> macro especially
has a useful trick that appears again and again.
</p>
<hr>
</div>
</div>
<div class="section-level-extent" id="Hypertext">
<div class="nav-panel">
<p>
Previous: <a href="#Literal-PS" accesskey="p" rel="prev">Literal PostScript</a>, Up: <a href="#Interaction-with-PostScript" accesskey="u" rel="up">Interaction with PostScript</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="HyperTeXt">5.4 HyperTeXt</h3>
<a class="index-entry-id" id="index-hypertext-support"></a>
<a class="index-entry-id" id="index-_002dz"></a>
<a class="index-entry-id" id="index-html-specials"></a>
<a class="index-entry-id" id="index-pdfmark"></a>
<p>Dvips has support for producing hypertext PostScript documents. If you
specify the ‘<samp class="samp">-z</samp>’ option, the <samp class="file">html:</samp> specials described below
will be converted into ‘<samp class="samp">pdfmark</samp>’ PostScript operators to specify
links. Without ‘<samp class="samp">-z</samp>’, <samp class="file">html:</samp> specials are ignored.
</p>
<a class="index-entry-id" id="index-distiller_002c-for-PDF-files"></a>
<a class="index-entry-id" id="index-PDF-files_002c-making-1"></a>
<p>The resulting PostScript can then be processed by a distiller program to
make a PDF file. (It can still be handled by ordinary PostScript
interpreters as well.) Various versions of both PC and Unix distillers
are supported; Ghostscript includes limited distiller support
(see <a class="pxref" href="#Ghostscript-installation">Ghostscript installation</a>).
</p>
<p>By far the most common LaTeX package used to create hyperlinked
output is <code class="code">hyperref</code> (<a class="url" href="https://ctan.org/pkg/hyperref">https://ctan.org/pkg/hyperref</a>). For
plain TeX, the Eplain package has some hyperlink support
(<a class="url" href="https://tug.org/eplain">https://tug.org/eplain</a>).
</p>
<a class="index-entry-id" id="index-Doyle_002c-Mark"></a>
<a class="index-entry-id" id="index-Bhattacharya_002c-Tanmoy"></a>
<a class="index-entry-id" id="index-dvihps_002c-hyperdvi-to-PostScript"></a>
<p>This hypertext support (and original form of the documentation) was
written by Mark Doyle and Tanmoy Bhattacharya as the ‘<samp class="samp">dvihps</samp>’
program.
</p>
<ul class="mini-toc">
<li><a href="#Hypertext-caveats" accesskey="1">Hypertext caveats</a></li>
<li><a href="#Hypertext-specials" accesskey="2">Hypertext specials</a></li>
</ul>
<hr>
<div class="subsection-level-extent" id="Hypertext-caveats">
<div class="nav-panel">
<p>
Next: <a href="#Hypertext-specials" accesskey="n" rel="next">Hypertext specials</a>, Up: <a href="#Hypertext" accesskey="u" rel="up">HyperTeXt</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Hypertext-caveats-1">5.4.1 Hypertext caveats</h4>
<a class="index-entry-id" id="index-hypertext-caveats"></a>
<a class="index-entry-id" id="index-Computer-Modern-in-PostScript"></a>
<a class="index-entry-id" id="index-hypertext-and-bitmap-fonts"></a>
<a class="index-entry-id" id="index-hypertext-caveats-1"></a>
<a class="index-entry-id" id="index-embedding-Type-1-fonts"></a>
<a class="index-entry-id" id="index-PDF-files_002c-font-quality"></a>
<p>If you intend to go all the way to PDF, you may want to use the standard
35 PostScript fonts exclusively, since other fonts are embedded as
bitmaps by default. The Adobe PDF readers are extremely slow when
dealing with bitmap fonts and the results look terrible on the screen.
Printouts will probably look fine, but may not take full advantage of a
high-resolution printer. Alternatively, you can have your fonts
embedded as Type 1 scalable outlines. The resulting PostScript files
may be larger, but can be effectively rasterized at any resolution.
They can also be converted to PDF files that can be used effectively at
any screen or printer resolution.
</p>
<p>To get the TeX fonts embedded in the PostScript file as Type 1 fonts,
add ‘<samp class="samp">-Ppdf</samp>’ to the dvips command line switches. The printout
for a run should look something like this:
</p>
<div class="example smallexample">
<pre class="example-preformatted"> dvips report -Ppdf -o report.ps
This is dvips(k) 5.86 Copyright 1999 Radical Eye Software (www.radicaleye.com)
' TeX output 2001.06.15:0837' -> report.ps
<tex.pro><alt-rule.pro><texc.pro><texps.pro><special.pro>.
<cmbx9.pfb><cmsy6.pfb><cmsy7.pfb><cmr5.pfb><cmex10.pfb><cmr9.pfb>
<cmmi7.pfb><cmsy10.pfb><cmmib10.pfb><cmmi10.pfb><cmti10.pfb>
<cmr7.pfb><cmbx10.pfb><cmr10.pfb><cmti9.pfb><cmr12.pfb><cmbx12.pfb>
[1] [2<mean1.ps>] [3<bounce1-00.ps>] [4]
</pre></div>
<p>An entry like "<cmr10.pfb>" indicates success: dvips found the Computer
Modern Roman 10 point font in a PostScript Font Binary file, translated
it to an ASCII encoding, and embedded it. You can confirm this by
examining the PostScript output file, looking for the section starting
<code class="code">%%BeginFont: CMR10</code> followed by an entry <code class="code">/FontType 1 def</code>.
</p>
<p>The ‘<samp class="samp">-Ppdf</samp>’ option requires that the relevant outline
(<samp class="file">.pfa</samp> or <samp class="file">.pfb</samp>) files be installed (see <a class="pxref" href="#Font-concepts">Font concepts</a>). For example, the <samp class="file">cmr10</samp> file might be in
<samp class="file">/usr/share/texmf/fonts/type1/bluesky/cm/cmr10.pfb</samp>. Your TeX
distribution may make those fonts available in a separate optional
package (e.g., <code class="code">tetex-extra</code> in Debian). Failing that,
commercial versions of the Computer Modern fonts are available from
Blue Sky; public domain versions, in particular, the lm
and cm-super font families, are available from CTAN and in TeX
distributions.
</p>
<p>You can convert a PostScript file to PDF using <code class="code">distill</code>, which
comes with Adobe Acrobat, or <code class="code">ps2pdf</code>, which comes with
Ghostscript. The <code class="code">ps2pdf</code> that comes with <code class="code">Ghostscript</code>
version 6.0 or earlier will not embed Type 1 fonts. Current
recommendations are GNU Ghostscript 6.51 or Aladdin Ghostscript 7.0.
You can check the fonts in a PDF file with Acrobat Reader by selecting
the menu entries ‘<samp class="samp">File|Document Info|Fonts</samp>’.
</p>
<a class="index-entry-id" id="index-psi-character-missing"></a>
<a class="index-entry-id" id="index-trailing-spaces_002c-dropped"></a>
<a class="index-entry-id" id="index-spaces_002c-dropped-trailing"></a>
<p>Also, the Adobe distillers prior to 2.1 drop trailing space characters
(character code 32) from strings. Unfortunately, the PostScript fonts
use this character code for characters other than space (notably the
Greek letter psi in the <code class="code">Symbol</code> font), and so these characters are
dropped. This bug is fixed in version 2.1.
</p>
<p>If you can’t upgrade, one workaround is to change all the trailing
blanks in strings to a character code that isn’t in the font. This works
because the default behavior is to substitute a blank for a missing
character, i.e., the distiller is fooled into substituting the right
character. For instance, with the Blue Sky fonts, you can globally
replace ‘<samp class="samp"> )</samp>’ with ‘<samp class="samp">\200)</samp>’ (with <code class="code">sed</code>, for example) and
get the desired result. With the public domain fonts, you will probably
have to use a character code in the range 128 to 191 since these fonts
duplicate the first 32 characters starting at 192 to avoid MS-DOS
problems.
</p>
<p>For more information on the use of TeX to produce PDF files, see the
article “Creating quality Adobe PDF files from TeX with DVIPS” by
Kendall Whitehouse of Adobe. Adobe seems not to offer the article any
more, but copies are available elsewhere:
</p><div class="display">
<pre class="display-preformatted"><a class="url" href="http://www.math.hawaii.edu/~ralph/MathOnWeb/TeXPDF.html">http://www.math.hawaii.edu/~ralph/MathOnWeb/TeXPDF.html</a>
<a class="url" href="http://www.utdallas.edu/~cantrell/online/543e.html">http://www.utdallas.edu/~cantrell/online/543e.html</a>
</pre></div>
<hr>
</div>
<div class="subsection-level-extent" id="Hypertext-specials">
<div class="nav-panel">
<p>
Previous: <a href="#Hypertext-caveats" accesskey="p" rel="prev">Hypertext caveats</a>, Up: <a href="#Hypertext" accesskey="u" rel="up">HyperTeXt</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Hypertext-specials-1">5.4.2 Hypertext specials</h4>
<a class="index-entry-id" id="index-hypertext-specials"></a>
<a class="index-entry-id" id="index-specials_002c-hypertext"></a>
<a class="index-entry-id" id="index-Smith_002c-Arthur"></a>
<p>Current support for the World Wide Web in the TeX system does not
involve modifying TeX itself. We need only define some specials;
Arthur Smith (<a class="email" href="mailto:apsmith@aps.org">apsmith@aps.org</a>), Tanmoy Bhattacharya, and Paul
Ginsparg originally proposed and implemented the following:
</p><div class="example">
<pre class="example-preformatted">html:<a href="<var class="var">xurl</var>">
html:<a name="<var class="var">name</var>">
html:</a>
html:<img src="<var class="var">xurl</var>">
html:<base href="<var class="var">xurl</var>">
</pre></div>
<p>Like all TeX <code class="code">\special</code>’s, these produce no visible output, and
are uninterpreted by TeX itself. They are instructions to DVI
processors only.
</p>
<a class="index-entry-id" id="index-uniform-resource-locator"></a>
<a class="index-entry-id" id="index-extended-URL"></a>
<a class="index-entry-id" id="index-URL_002c-extended-for-TeX"></a>
<a class="index-entry-id" id="index-Murphy_002c-Tim"></a>
<p>Here, <var class="var">xurl</var> is a standard WWW uniform resource locator (URL),
possibly extended with a ‘<samp class="samp">#<var class="var">type</var>.<var class="var">string</var></samp>’ construct,
where <var class="var">type</var> is ‘<samp class="samp">page</samp>’, ‘<samp class="samp">section</samp>’, ‘<samp class="samp">equation</samp>’,
‘<samp class="samp">reference</samp>’ (for bibliographic references), ‘<samp class="samp">figure</samp>’,
‘<samp class="samp">table</samp>’, etc. For example,
</p><div class="example smallexample">
<pre class="example-preformatted">\special{html:<a href="http://www.maths.tcd.ie/~tim/ch1.dvi#equation.1.1">}
</pre></div>
<p>is a link to equation (1.1) in an example document by Tim Murphy.
</p>
<a class="index-entry-id" id="index-URL_002c-definition"></a>
<p>See the URL <a class="url" href="http://www.w3.org/hypertext/WWW/Addressing/Addressing.html">http://www.w3.org/hypertext/WWW/Addressing/Addressing.html</a>
for a precise description of base URL’s.
</p>
<p>Descriptions of the <code class="code">\special</code>’s:
</p><dl class="ftable">
<dt id='index-href'><span>‘<samp class="samp">href</samp>’<a class="copiable-link" href='#index-href'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-links_002c-hypertext"></a>
<p>Creates links in your TeX document. For example:
</p><div class="example">
<pre class="example-preformatted">\special{html:<a href="http://www.tug.org/">}\TeX\ Users
Group\special{html:</a>}
</pre></div>
<p>The user will be able to click on the text ‘TeX Users
Group’ while running Xdvi and get to the TUG home page. (By the way,
this is for illustration. In practice, you most likely want to use
macros to insert the <code class="code">\special</code> commands; reference above.)
</p>
</dd>
<dt id='index-name'><span>‘<samp class="samp">name</samp>’<a class="copiable-link" href='#index-name'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-Anderson_002c-Laurie"></a>
<p>Defines URL targets in your TeX documents, so links can be
resolved. For example:
</p><div class="example">
<pre class="example-preformatted">\special{html:<a name="paradise">}Paradise\special{html:</a>}
is exactly where you are right now.
</pre></div>
<p>This will resolve an ‘<samp class="samp">href="#paradise"</samp>’. You’ll also have to
change the catcode of ‘<samp class="samp">#</samp>’, etc. It’s usually easiest to use
existing macro packages which take care of all the details, such as
<samp class="file">hyperref</samp> for LaTeX. The <a class="url" href="http://arxiv.org/hypertex/">HyperTeX FAQ</a> has more information.
</p>
</dd>
<dt id='index-img'><span>‘<samp class="samp">img</samp>’<a class="copiable-link" href='#index-img'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-mailcap-and-hypertext"></a>
<p>Links to an arbitrary external file. Interactively, a viewer is spawned
to read the file according to the file extension and your <samp class="file">mailcap</samp>
file (see the Xdvi documentation).
</p>
</dd>
<dt id='index-base'><span>‘<samp class="samp">base</samp>’<a class="copiable-link" href='#index-base'> ¶</a></span></dt>
<dd><p>Defines a base URL that is prepended to all the <code class="code">name</code> targets.
Typically unnecessary, as the name of the DVI file being read is used by
default.
</p></dd>
</dl>
<p>The ‘<samp class="samp">img</samp>’ and ‘<samp class="samp">base</samp>’ tags are not yet implemented in Dvips or
the NeXTSTEP DVI viewer.
</p>
<hr>
</div>
</div>
</div>
<div class="chapter-level-extent" id="PostScript-fonts">
<div class="nav-panel">
<p>
Next: <a href="#Color" accesskey="n" rel="next">Color</a>, Previous: <a href="#Interaction-with-PostScript" accesskey="p" rel="prev">Interaction with PostScript</a>, Up: <a href="#Top" accesskey="u" rel="up">Dvips</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h2 class="chapter" id="PostScript-fonts-1">6 PostScript fonts</h2>
<a class="index-entry-id" id="index-PostScript-fonts"></a>
<p>Dvips supports the use of PostScript fonts in TeX documents. To use
a PostScript font conveniently, you need to prepare a corresponding
virtual font; the program Afm2tfm, supplied with Dvips, helps
with that.
</p>
<p>All the necessary support for the standard 35 PostScript fonts
(‘<samp class="samp">AvantGarde-Book</samp>’ through ‘<samp class="samp">ZapfDingbats</samp>’), plus other freely
or commonly available PostScript fonts is available along with Dvips.
To use these fonts, you need do nothing beyond what is mentioned in the
installation procedure (see <a class="pxref" href="#Installation">Installation</a>). This chapter is
therefore relevant only if you are installing new PostScript fonts not
supplied with Dvips. (Or if you’re curious.)
</p>
<ul class="mini-toc">
<li><a href="#Font-concepts" accesskey="1">Font concepts</a></li>
<li><a href="#Making-a-font-available" accesskey="2">Making a PostScript font available</a></li>
<li><a href="#Invoking-afm2tfm" accesskey="3">Invoking Afm2tfm</a></li>
<li><a href="#psfonts_002emap" accesskey="4"><samp class="file">psfonts.map</samp>: PostScript font catalog</a></li>
</ul>
<hr>
<div class="section-level-extent" id="Font-concepts">
<div class="nav-panel">
<p>
Next: <a href="#Making-a-font-available" accesskey="n" rel="next">Making a PostScript font available</a>, Up: <a href="#PostScript-fonts" accesskey="u" rel="up">PostScript fonts</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Font-concepts-1">6.1 Font concepts</h3>
<a class="index-entry-id" id="index-font-concepts"></a>
<p>The information needed to typeset using a particular font is contained
in two files: a <em class="dfn">metric file</em> that contains shape-independent
information and a <em class="dfn">glyph file</em> that contains the actual shapes of
the font’s characters. A <em class="dfn">virtual font</em> is an optional additional
file that can specify special ways to construct the characters. TeX
itself (or LaTeX) look only at the metric file, but DVI drivers such
as Dvips look at all three of these files.
</p>
<p>An <em class="dfn">encoding file</em> defines the correspondence between the code
numbers of the characters in a font and their descriptive names. Two
encoding files used together can describe a reencoding that rearranges,
i.e., renumbers, the characters of a font.
</p>
<ul class="mini-toc">
<li><a href="#Metric-files" accesskey="1">Metric files</a></li>
<li><a href="#Glyph-files" accesskey="2">Glyph files</a></li>
<li><a href="#Virtual-fonts" accesskey="3">Virtual fonts</a></li>
<li><a href="#Encodings" accesskey="4">Encodings</a></li>
<li><a href="#Bitmap-font-encodings" accesskey="5">Bitmap font encodings</a></li>
<li><a href="#PostScript-typesetting" accesskey="6">How PostScript typesets a character</a></li>
</ul>
<hr>
<div class="subsection-level-extent" id="Metric-files">
<div class="nav-panel">
<p>
Next: <a href="#Glyph-files" accesskey="n" rel="next">Glyph files</a>, Up: <a href="#Font-concepts" accesskey="u" rel="up">Font concepts</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Metric-files-1">6.1.1 Metric files</h4>
<a class="index-entry-id" id="index-metric-files"></a>
<p>A <em class="dfn">metric file</em> describes properties of the font that are
independent of what the characters actually look like. Aside from
general information about the font itself, a metric file has two kinds
of information: information about individual characters, organized by
character code, and information about sequences of characters.
</p>
<p>The per-character information specifies the width, height, depth, and
italic correction of each character in the font. Any might be zero.
</p>
<a class="index-entry-id" id="index-kerning_002c-defined"></a>
<a class="index-entry-id" id="index-ligature_002c-defined"></a>
<p>In addition to information on individual characters, the metric file
specifies <em class="dfn">kerning</em>, i.e., adding or removing space between
particular character pairs. It further specifies <em class="dfn">ligature</em>
information: when a sequence of input characters should be typeset as a
single (presumably different) “ligature” character. For example, it’s
traditional for the input ‘<samp class="samp">fi</samp>’ to be typeset as ‘fi’, not as
‘<span class="r">f</span><span class="r">i</span>’ (with the dot of the ‘i’ colliding with ‘f’). (In English,
the only common ligatures are fi, fl, ff, ffi, and ffl.)
</p>
<p>Different typesetting systems use different metric file formats:
</p>
<ul class="itemize mark-bullet">
<li><a class="index-entry-id" id="index-afm-files"></a>
<a class="index-entry-id" id="index-_002eafm-Adobe-metric-files"></a>
Each PostScript font has an <em class="dfn">Adobe font metrics</em> (‘<samp class="samp">.afm</samp>’)
file. These files are plain text, so you can inspect them easily. You
can get AFM files for Adobe’s fonts from
<a class="url" href="ftp://ftp.adobe.com/pub/adobe/Fonts/AFMs">ftp://ftp.adobe.com/pub/adobe/Fonts/AFMs</a>.
</li><li><a class="index-entry-id" id="index-tfm-files"></a>
<a class="index-entry-id" id="index-_002etfm-TeX-font-metric-files"></a>
TeX uses <em class="dfn">TeX font metrics</em> (‘<samp class="samp">.tfm</samp>’) files. When you say
‘<samp class="samp">\font = <var class="var">font</var></samp>’ in your TeX document, TeX reads a file
named ‘<samp class="samp"><var class="var">font</var>.tfm</samp>’. (Well, except for the <samp class="file">texfonts.map</samp>
feature; see <a data-manual="kpathsea" href="https://tug.org/texinfohtml/kpathsea.html#Fontmap">Fontmap</a> in <cite class="cite">Kpathsea</cite>). TeX can then
calculate the space occupied by characters from the font when
typesetting. In addition, the DVI drivers you use to print or view the
DVI file produced by TeX may need to look at the TFM file.
<a class="index-entry-id" id="index-property-list-files"></a>
<a class="index-entry-id" id="index-tftopl"></a>
<a class="index-entry-id" id="index-pltotf"></a>
<a class="index-entry-id" id="index-_002epl-property-list-files"></a>
<p>TFM files are binary (and hence are typically much smaller than AFM
files). You can use the <code class="code">tftopl</code> program (see <a data-manual="web2c" href="https://tug.org/texinfohtml/web2c.html#tftopl-invocation">tftopl
invocation</a> in <cite class="cite">Web2c</cite>) that comes with TeX to transform a TFM
file into a human-readable “property list” (‘<samp class="samp">.pl</samp>’) file. You can
also edit a PL file and transform it back to a TeX-readable TFM with
the companion program <code class="code">pltotf</code> (see <a data-manual="web2c" href="https://tug.org/texinfohtml/web2c.html#pltotf-invocation">pltotf invocation</a> in <cite class="cite">Web2c</cite>). Editing metrics by hand is not something you’re likely to want
to do often, but the capability is there.
</p>
</li><li><a class="index-entry-id" id="index-pfm-files"></a>
<a class="index-entry-id" id="index-_002epfm-printer-font-metric-files"></a>
ATM and other typesetting systems use <em class="dfn">printer font metric</em>
(‘<samp class="samp">.pfm</samp>’) files. These are binary files. They are irrelevant in the
TeX world, and not freely available, so we will not discuss them
further.
</li></ul>
<p>The Afm2tfm program distributed with Dvips converts an AFM file
to a TFM file and performs other useful transformations as well.
See <a class="xref" href="#Invoking-afm2tfm">Invoking Afm2tfm</a>.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Glyph-files">
<div class="nav-panel">
<p>
Next: <a href="#Virtual-fonts" accesskey="n" rel="next">Virtual fonts</a>, Previous: <a href="#Metric-files" accesskey="p" rel="prev">Metric files</a>, Up: <a href="#Font-concepts" accesskey="u" rel="up">Font concepts</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Glyph-files-1">6.1.2 Glyph files</h4>
<a class="index-entry-id" id="index-glyph-files"></a>
<p>Although a metric file (see the previous section) contains information
about the spatial and other properties of the character at position 75,
say, it contains nothing about what the character at position 75
actually looks like. The glyphs—the actual shapes of the letterforms
in a font—are defined by other files, which we call glyph files.
TeX itself only reads the TFM file for a font; it does not need to
know character shapes.
</p>
<p>A <em class="dfn">glyph file</em> is a file that defines the shapes of the characters
in a font. The shapes can be defined either by outlines or by bitmaps.
</p>
<a class="index-entry-id" id="index-outline-fonts"></a>
<a class="index-entry-id" id="index-arcs"></a>
<a class="index-entry-id" id="index-splines"></a>
<p>PostScript fonts are defined as <em class="dfn">outline fonts</em>: Each character in
the font is defined by giving the mathematical curves (lines, arcs, and
splines) that define its contours. Different sizes of a character are
generated by linearly scaling a single shape. For example, a 10-point
‘A’ is simply half the size of a 20-point ‘A’. Nowadays, outline fonts
usually also contain <em class="dfn">hints</em>—additional information to improve the
appearance of the font at small sizes or low resolutions.
</p>
<a class="index-entry-id" id="index-Type-1-fonts"></a>
<a class="index-entry-id" id="index-pfa-files"></a>
<a class="index-entry-id" id="index-pfb-files"></a>
<a class="index-entry-id" id="index-_002epfa-printer-font-ascii-files"></a>
<a class="index-entry-id" id="index-_002epfb-printer-font-binary-files"></a>
<p>Although various kinds of PostScript outline fonts exist, by far the
most common, and the only one we will consider, is called <em class="dfn">Type 1</em>.
The glyph files for PostScript Type 1 fonts typically have names ending
in ‘<samp class="samp">.pfa</samp>’ (“printer font ASCII”) or ‘<samp class="samp">.pfb</samp>’ (“printer font
binary”).
</p>
<a class="index-entry-id" id="index-bitmap-fonts"></a>
<a class="index-entry-id" id="index-_002emf-Metafont-source-files"></a>
<a class="index-entry-id" id="index-Metafont-source-files"></a>
<p>In contrast, glyph files for Computer Modern and the other standard
TeX fonts are <em class="dfn">bitmap fonts</em>, generated from Metafont
(‘<samp class="samp">.mf</samp>’) descriptions. The Metafont program distributed with TeX
generates bitmaps from these descriptions.
</p>
<a class="index-entry-id" id="index-pk-files"></a>
<a class="index-entry-id" id="index-_002ennnpk-packed-font-bitmaps"></a>
<p>The glyph files for TeX bitmap fonts are usually stored in
<em class="dfn">packed font</em> (PK) files. The names of these files end in
‘<samp class="samp">.<var class="var">nnn</var>pk</samp>’, where <var class="var">nnn</var> is the resolution of the font in
dots per inch. For example, <samp class="file">cmr10.600pk</samp> contains the bitmaps for
the ‘<samp class="samp">cmr10</samp>’ font at a resolution of 600<span class="dmn">dpi</span>. (On DOS
filesystems, it’s more likely <samp class="file">dpi600\cmr10.pk</samp>.)
</p>
<a class="index-entry-id" id="index-gf-files"></a>
<a class="index-entry-id" id="index-gftopk"></a>
<p>Metafont actually outputs <em class="dfn">generic font</em> (GF) files, e.g.,
<samp class="file">cmr10.600gf</samp>, but the GF files are usually converted immediately
to PK format (using the <code class="code">gftopk</code> utility that comes with TeX)
since PK files are smaller and contain the same information. (The GF
format is a historical artifact.)
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Virtual-fonts">
<div class="nav-panel">
<p>
Next: <a href="#Encodings" accesskey="n" rel="next">Encodings</a>, Previous: <a href="#Glyph-files" accesskey="p" rel="prev">Glyph files</a>, Up: <a href="#Font-concepts" accesskey="u" rel="up">Font concepts</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Virtual-fonts-1">6.1.3 Virtual fonts</h4>
<a class="index-entry-id" id="index-virtual-fonts"></a>
<p>A <em class="dfn">virtual font</em> is constructed by extracting characters from one
or more existing fonts and rearranging them, or synthesizing new
characters in various ways. The explanation in this manual is
intended to suffice for understanding enough about virtual fonts to
use them with Dvips. It isn’t a reference manual on virtual fonts.
For more information: The primary document on virtual fonts is
Donald E. Knuth, <cite class="cite">TUGboat</cite> 11(1), Apr. 1990, pp. 13–23,
“Virtual Fonts: More Fun for Grand Wizards”
(<a class="url" href="mirror.ctan.org/info/virtual-fonts.knuth">mirror.ctan.org/info/virtual-fonts.knuth</a>). (Don’t be
intimidated by the subtitle.)
</p>
<a class="index-entry-id" id="index-vf-files"></a>
<a class="index-entry-id" id="index-vpl-files"></a>
<p>A virtual font (‘<samp class="samp">.vf</samp>’) file specifies, for each character in the
virtual font, a recipe for typesetting that character. A VF file, like
a TFM file, is in a compressed binary format. The <code class="code">vftovp</code> and
<code class="code">vptovf</code> programs convert a VF file to a human-readable VPL
(virtual property list) format and back again. See <a data-manual="web2c" href="https://tug.org/texinfohtml/web2c.html#vftovp-invocation">vftovp
invocation</a> in <cite class="cite">Web2c</cite>, and <a data-manual="web2c" href="https://tug.org/texinfohtml/web2c.html#vptovf-invocation">vptovf invocation</a> in <cite class="cite">Web2c</cite>.
</p>
<a class="index-entry-id" id="index-base-fonts"></a>
<p>In the case of a PostScript font <var class="var">f</var> being used in a straightforward
way, the recipe says: character <var class="var">i</var> in the VF font is character
<var class="var">j</var> in font <var class="var">f</var>. The font <var class="var">f</var> is called a <em class="dfn">base font</em>.
For example, the VF file could remap the characters of the PostScript
font to the positions where TeX expects to find them.
See <a class="xref" href="#Encodings">Encodings</a>.
</p>
<p>Since TeX reads only TFM files, not VF’s, each VF must have a
corresponding TFM for use with TeX. This corresponding TFM is
created when you run <code class="code">vptovf</code>.
</p>
<a class="index-entry-id" id="index-expansion_002c-of-virtual-fonts"></a>
<a class="index-entry-id" id="index-virtual-font-expansion"></a>
<p>You can <em class="dfn">expand</em> virtual fonts into their base fonts with DVIcopy
(see <a data-manual="web2c" href="https://tug.org/texinfohtml/web2c.html#dvicopy-invocation">dvicopy invocation</a> in <cite class="cite">Web2c</cite>). This is useful if you are
using a DVI translator that doesn’t itself understand vf’s.
</p>
<a class="index-entry-id" id="index-ptex-JFM"></a>
<a class="index-entry-id" id="index-uptex-JFM"></a>
<a class="index-entry-id" id="index-Japanese-font-metric-file"></a>
<a class="index-entry-id" id="index-JFM-file_002c-and-virtual-font-fallback"></a>
<p>If a virtual font has no entry at a given codepoint and the first
<code class="code">MAPFONT</code> designates an (u)pTeX JFM, we designate the glyph of
the same codepoint in the TFM(JFM) with the smallest font ID. This
feature helps to reduce the size of Japanese virtual fonts. For more
information about the extensive support of Japanese in TeX, see
<a class="url" href="https://github.com/texjporg">https://github.com/texjporg</a>.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Encodings">
<div class="nav-panel">
<p>
Next: <a href="#Bitmap-font-encodings" accesskey="n" rel="next">Bitmap font encodings</a>, Previous: <a href="#Virtual-fonts" accesskey="p" rel="prev">Virtual fonts</a>, Up: <a href="#Font-concepts" accesskey="u" rel="up">Font concepts</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Encodings-1">6.1.4 Encodings</h4>
<a class="index-entry-id" id="index-encodings"></a>
<p>Every font, whatever its type, has an <em class="dfn">encoding</em>, that specifies the
correspondence between “logical” characters and character codes. For
example, the ASCII encoding specifies that the character numbered 65
(decimal) is an uppercase ‘A’. The encoding does not specify what the
character at that position looks like; there are lots of ways to draw an
‘A’, and a glyph file (see <a class="pxref" href="#Glyph-files">Glyph files</a>) tells how. Nor does it
specify how much space that character occupies; that information is in a
metric file (see <a class="pxref" href="#Metric-files">Metric files</a>).
</p>
<a class="index-entry-id" id="index-Computer-Modern_002c-encoding-of"></a>
<p>TeX implicitly assumes a particular encoding for the fonts you use
with it. For example, the plain TeX macro <code class="code">\'</code>, which typesets
an acute accent over the following letter, assumes the acute accent is
at position 19 (decimal). This happens to be true of standard TeX
fonts such as Computer Modern, as you might expect, but it is not true
of normal PostScript fonts.
</p>
<p>It’s possible but painful to change all the macros that assume
particular character positions. A better solution is to create a new
font with the information for the acute accent at position 19, where
TeX expects it to be. See <a class="xref" href="#Making-a-font-available">Making a PostScript font available</a>.
</p>
<a class="index-entry-id" id="index-PostScript-encoding"></a>
<a class="index-entry-id" id="index-encoding-files"></a>
<a class="index-entry-id" id="index-encoding-vectors_002c-defined"></a>
<p>PostScript represents encodings as a sequence of 256 character names
called an <em class="dfn">encoding vector</em>. An <em class="dfn">encoding file</em> (‘<samp class="samp">.enc</samp>’)
gives such a vector, together with ligature and kerning information
(with which we are not concerned at the moment). These encoding files
are used by the Afm2tfm program. Encoding files are also downloaded to
the PostScript interpreter in your printer if you use one of them in
place of the default encoding vector for a particular PostScript font.
</p>
<a class="index-entry-id" id="index-dvips_002eenc"></a>
<a class="index-entry-id" id="index-8r_002eenc"></a>
<a class="index-entry-id" id="index-texmext_002eenc"></a>
<a class="index-entry-id" id="index-texmital_002eenc"></a>
<a class="index-entry-id" id="index-texmsym_002eenc"></a>
<a class="index-entry-id" id="index-reencode_002f_002a_002eenc"></a>
<p>Examples of encodings: the <samp class="file">dvips.enc</samp> encoding file that comes
with the Fontname distribution (<a class="url" href="http://tug.org/fontname">http://tug.org/fontname</a>) is a
good (but not perfect) approximation to the TeX encoding for
TeX’s Computer Modern text fonts. This is the encoding of the
fonts that originated with Dvips, such as <samp class="file">ptmr.tfm</samp>. The
distribution includes many other encoding files; for example,
<samp class="file">8r.enc</samp>, which is the base font for the current PostScript font
distribution, and three corresponding to the TeX mathematics fonts:
<samp class="file">texmext.enc</samp> for math extensions, <samp class="file">texmital.enc</samp> for math
italics, and <samp class="file">texmsym.enc</samp> for math symbols.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Bitmap-font-encodings">
<div class="nav-panel">
<p>
Next: <a href="#PostScript-typesetting" accesskey="n" rel="next">How PostScript typesets a character</a>, Previous: <a href="#Encodings" accesskey="p" rel="prev">Encodings</a>, Up: <a href="#Font-concepts" accesskey="u" rel="up">Font concepts</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Bitmap-font-encodings-1">6.1.5 Bitmap font encodings</h4>
<a class="index-entry-id" id="index-bitmap-font-encodings"></a>
<a class="index-entry-id" id="index-font-encodings_002c-bitmap"></a>
<a class="index-entry-id" id="index-encodings_002c-for-bitmap-fonts"></a>
<p>To dvips, bitmapped fonts do not have any notion of linguistics; they
are simply a vector of glyphs. By comparison, PostScript fonts are
required to contain an encoding vector that at least provides
glyph names; these names can permit PostScript and PDF viewers to
extract legible text from PostScript and PDF output.
</p>
<p>Unlike previous versions, dvips versions 2020 and later add glyph
naming information to Type 3 bitmapped fonts (if they can locate such
information) as an Encoding vector. This provides some support for
search, for copy and paste, and even some limited support for
accessibility. The ‘<samp class="samp">bitmapfontenc</samp>’ command line option
(see <a class="pxref" href="#Option-details">Option details</a> and <code class="code">bitmapfontenc</code> configuration option
(see <a class="pxref" href="#Configuration-file-commands">Configuration file commands</a>) enable and disable this
functionality; by default it is set to enabled, without warnings.
</p>
<a class="index-entry-id" id="index-dvips_002dall_002eenc"></a>
<p>To do this, dvips must find encoding information for the bitmapped
fonts. It does this by first searching for a font-specific encoding
file; for instance, for cmr10, it will search for <samp class="file">dvips-cmr10.enc</samp>
in the standard encoding path. If it does not find such a file, it
will search for a <samp class="file">dvips-all.enc</samp> file which contains a base set of
encodings for many fonts.
</p>
<p>The specific syntax of an encoding file is unspecified, except that it
must be a PostScript fragment that leaves exactly one object on the
operand stack. (This is different from the encoding files used to
define encodings for PostScript fonts, described earlier). Normally
that object is just an array of 256 names; in this case, that array is
used as the encoding vector for the font. Alternatively, the object
can be a procedure that, when executed, leaves a legal encoding vector
on the stack. This second option is made available to support future
enhancements that may add additional constructs to the font dictionary
to enhance the interpretation of font characters.
</p>
<p>The <samp class="file">dvips-all.enc</samp> file contains encodings for many fonts, and
it is loaded by dvips at most once. The format is just a sequence of
font names, one per line, each terminated by a colon, followed by the
encoding to use for those files.
</p>
<a class="index-entry-id" id="index-bounding-box_002c-for-bitmap-fonts"></a>
<a class="index-entry-id" id="index-coordinate-system_002c-for-bitmap-fonts"></a>
<p>As part of its operation, to enable heuristics in PostScript and
PDF viewers to properly identify word breaks and column gutters,
dvips also generates a modified font bounding box and a modified
font coordinate system.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="PostScript-typesetting">
<div class="nav-panel">
<p>
Previous: <a href="#Bitmap-font-encodings" accesskey="p" rel="prev">Bitmap font encodings</a>, Up: <a href="#Font-concepts" accesskey="u" rel="up">Font concepts</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="How-PostScript-typesets-a-character">6.1.6 How PostScript typesets a character</h4>
<a class="index-entry-id" id="index-typesetting-in-PostScript"></a>
<a class="index-entry-id" id="index-character-lookup-procedure-in-PostScript"></a>
<p>The output of Dvips is a program in the PostScript language that
instructs your (presumably PostScript-capable) printer how to typeset
your document by transforming it into toner on paper. Your printer, in
turn, contains a PostScript interpreter that carries out the
instructions in this typesetting program.
</p>
<p>The program must include the definition of any PostScript fonts that you
use in your document. Fonts built into your printer (probably the
standard 35: ‘<samp class="samp">Times-Roman</samp>’, ‘<samp class="samp">ZapfDingbats</samp>’, …) are
defined within the interpreter itself. Other fonts must be downloaded
as pfa or pfb files (see <a class="pxref" href="#Glyph-files">Glyph files</a>) from your host (the computer
on which you’re running Dvips).
</p>
<p>You may be wondering exactly how a PostScript interpreter figures out
what character to typeset, with this mass of metrics, glyphs, encodings,
and other information. (If you’re not wondering, skip this section
…)
</p>
<a class="index-entry-id" id="index-show-PostScript-operator"></a>
<p>The basic PostScript operator for imaging characters is
<code class="code">show</code>. Suppose you’ve asked TeX to typeset an ‘S’. This will
eventually wind up in the Dvips output as the equivalent of this
PostScript operation:
</p>
<div class="example">
<pre class="example-preformatted">(S) show
</pre></div>
<p>Here is how PostScript typesets the ‘S’:
</p>
<ol class="enumerate">
<li> <a class="index-entry-id" id="index-ASCII-character-codes_002c-used-by-PostScript"></a>
PostScript interpreters use ASCII; therefore ‘S’ is represented as the
integer 83. (Any of the 256 possible characters representable in a
standard 8-bit byte can be typeset.)
</li><li> <a class="index-entry-id" id="index-current-font_002c-in-PostScript"></a>
<a class="index-entry-id" id="index-dictionary_002c-PostScript-language"></a>
A PostScript <em class="dfn">dictionary</em> is a mapping of names to arbitrary values.
A font, to the interpreter, is a dictionary which contains entries for
certain names. (If these entries are missing, the interpreter refuses
to do anything with that font.)
<p>PostScript has a notion of “the current font”—whatever font is
currently being typeset in.
</p>
</li><li> <a class="index-entry-id" id="index-encoding-vectors_002c-in-Type-1-fonts"></a>
<a class="index-entry-id" id="index-Encoding-Type-1-dictionary"></a>
One of the mandatory entries in a font dictionary is ‘<samp class="samp">Encoding</samp>’,
which defines the encoding vector (see <a class="pxref" href="#Encodings">Encodings</a>) for that font.
This vector of 256 names maps each possible input character to a name.
</li><li> The interpreter retrieves the entry at position 83 of the encoding
vector. This value is a PostScript name: <code class="code">/S</code>.
</li><li> <a class="index-entry-id" id="index-CharStrings-Type-1-dictionary"></a>
<a class="index-entry-id" id="index-dictionary_002c-CharStrings"></a>
For Type 1 fonts (we’re not going to discuss anything else), the
interpreter now looks up <code class="code">/S</code> as a key in a dictionary named
<code class="code">CharStrings</code>, another mandatory entry in a font dictionary.
</li><li> <a class="index-entry-id" id="index-hints"></a>
<a class="index-entry-id" id="index-character-definitions-in-PostScript"></a>
The value of <code class="code">S</code> in <code class="code">CharStrings</code> is the equivalent of a
series of standard PostScript commands like ‘<samp class="samp">curveto</samp>’,
‘<samp class="samp">lineto</samp>’, ‘<samp class="samp">fill</samp>’, and so on. These commands are executed to
draw the character. There can also be <em class="dfn">hint information</em> that helps
adapt the character to low-resolution rasters. (See <a class="xref" href="#Glyph-files">Glyph files</a>.)
The commands are actually represented in a more compact way than
standard PostScript source; see the Type 1 book for details.
</li></ol>
<p>This method for typesetting characters is used in both Level 1 and Level
2 PostScript. See the PostScript reference manuals for more
information.
</p>
<hr>
</div>
</div>
<div class="section-level-extent" id="Making-a-font-available">
<div class="nav-panel">
<p>
Next: <a href="#Invoking-afm2tfm" accesskey="n" rel="next">Invoking Afm2tfm</a>, Previous: <a href="#Font-concepts" accesskey="p" rel="prev">Font concepts</a>, Up: <a href="#PostScript-fonts" accesskey="u" rel="up">PostScript fonts</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Making-a-PostScript-font-available">6.2 Making a PostScript font available</h3>
<a class="index-entry-id" id="index-installing-fonts"></a>
<a class="index-entry-id" id="index-fonts_002c-installing"></a>
<p>To make a PostScript font available in a TeX document, you need to
install the font on your system and then define it within the document.
Once you have installed the font, of course, it is available for any
document thereafter and you don’t need to reinstall it. You must have
an AFM file for any font you install. Unless the font is built into your
printer, you must also have a PFA or PFB file.
</p>
<p>In the following examples, we use the font ‘<samp class="samp">Times-Roman</samp>’ to
illustrate the process. But you should use the prebuilt fonts for Times
and the other standard fonts, rather than rebuilding them. The prebuilt
fonts are made using a more complicated process than that described
here, to make them work as well as possible with TeX. So following
the steps in this manual will not generate files identical to the
distributed ones. See <a class="xref" href="#PostScript-font-installation">PostScript font installation</a>, for pointers to
the prebuilt fonts.
</p>
<p>Installation of a PostScript font proceeds in three steps. See <a class="xref" href="#Font-concepts">Font concepts</a>, for descriptions of the various files involved.
</p>
<ol class="enumerate">
<li> Run <code class="code">afm2tfm</code> to create a TFM file for the original font,
and the VPL form of the virtual font:
<div class="example">
<pre class="example-preformatted">afm2tfm Times-Roman -v ptmr rptmr
</pre></div>
</li><li> Run <code class="code">vptovf</code> to generate a VF and TFM file for the virtual font
from the VPL file:
<div class="example">
<pre class="example-preformatted">vptovf ptmr.vpl ptmr.vf ptmr.tfm
</pre></div>
</li><li> Insert an entry for the font in <samp class="file">psfonts.map</samp> (see <a class="pxref" href="#psfonts_002emap"><samp class="file">psfonts.map</samp>: PostScript font catalog</a>):
<div class="example">
<pre class="example-preformatted">rptmr Times-Roman <ptmr8a.pfa
</pre></div>
</li><li> Install the files in the standard locations, as in:
<div class="example">
<pre class="example-preformatted">cp ptmr.vf <var class="var">fontdir</var>/vf/…
cp *ptmr.tfm <var class="var">fontdir</var>/tfm/…
cp ptmr.afm <var class="var">fontdir</var>/afm/…
cp ptmr.pf? <var class="var">fontdir</var>/type1/…
</pre></div>
</li></ol>
<p>The simplest invocation of Afm2tfm to make virtual fonts goes something
like this:
</p>
<a class="index-entry-id" id="index-afm2tfm"></a>
<div class="example">
<pre class="example-preformatted">afm2tfm Times-Roman -v ptmr rptmr
</pre></div>
<p>This reads the file <samp class="file">Times-Roman.afm</samp>, and produces two files as
output, namely the virtual property list file <samp class="file">ptmr.vpl</samp>, and the
“raw” font metric file <samp class="file">rptmr.tfm</samp>. To use the font in TeX,
you first run
</p>
<a class="index-entry-id" id="index-vptovf"></a>
<div class="example">
<pre class="example-preformatted">vptovf ptmr.vpl ptmr.vf ptmr.tfm
</pre></div>
<p>You should then install the virtual font file <samp class="file">ptmr.vf</samp> where Dvips
will see it and install <samp class="file">ptmr.tfm</samp> and <samp class="file">rptmr.tfm</samp> where
TeX and Dvips will see them.
</p>
<p>Using these raw fonts is not recommended; there are no raw fonts in the
prebuilt PostScript fonts distributed along with Dvips. But
nevertheless, that’s how Afm2tfm presently operates, so that’s what we
document here. The ‘<samp class="samp">r</samp>’ prefix convention is likewise historical
accident.
</p>
<p>You can also make more complex virtual fonts by editing <samp class="file">ptmr.vpl</samp>
before running ‘<samp class="samp">vptovf</samp>’; such editing might add the uppercase Greek
characters in the standard TeX positions, for instance. (This has
already been done for the prebuilt fonts.)
</p>
<p>Once the files have been installed, you’re all set. You can now do
things like this in TeX:
</p><div class="example">
<pre class="example-preformatted">\font\myfont = ptmr at 12pt
\myfont Hello, I am being typeset in 12-point Times-Roman.
</pre></div>
<p>Thus, we have two fonts, one actual (‘<samp class="samp">rptmr</samp>’, which is analogous to
the font in the printer) and one virtual (‘<samp class="samp">ptmr</samp>’, which has been
remapped to the standard TeX encoding (almost)), and has typesetting
know-how added. You could also say
</p>
<div class="example">
<pre class="example-preformatted">\font\raw = rptmr at 10pt
</pre></div>
<p>and typeset directly with that, but then you would have no ligatures or
kerning, and you would have to use Adobe character positions for special
letters like
The virtual font ‘<samp class="samp">ptmr</samp>’ not only has ligatures and kerning, and
most of the standard accent conventions of TeX, it also has a few
additional features not present in the Computer Modern fonts. For
example, it includes all the Adobe characters (such as the Polish ogonek
and the French guillemots). The only things you lose from ordinary
TeX text fonts are the dotless ‘j’ (which can be hacked into the VPL
file with literal PostScript specials if you have the patience) and
uppercase Greek letters (which just don’t exist unless you buy them
separately). See <a class="xref" href="#Reencoding-with-Afm2tfm">Reencoding with Afm2tfm</a>.
</p>
<p>As a final step you need to record information about both the virtual
font and the original font (if you ever might want to use it) in the
<samp class="file">psfonts.map</samp> file (see <a class="pxref" href="#psfonts_002emap"><samp class="file">psfonts.map</samp>: PostScript font catalog</a>). For our example, you’d
insert the following into <samp class="file">psfonts.map</samp>:
</p><div class="example">
<pre class="example-preformatted">rptmr Times-Roman <ptmr8a.pfa
</pre></div>
<p>Of course, <code class="code">Times-Roman</code> is already built in to most every
printer, so there’s no need to download any Type 1 file for it. But if
you are actually following these instructions for new fonts, most likely
they are not built in to the printer.
</p>
<a class="index-entry-id" id="index-memory_002c-used-by-PostScript-fonts"></a>
<a class="index-entry-id" id="index-efficiency_002c-and-fonts"></a>
<p>These PostScript fonts can be scaled to any size. Go wild! Using
PostScript fonts, however, does use up a great deal of the printer’s
memory and it does take time. You may find downloading bitmap fonts
(possibly compressed, with the ‘<samp class="samp">Z</samp>’ option) to be faster than using
the built-in PostScript fonts.
</p>
<hr>
</div>
<div class="section-level-extent" id="Invoking-afm2tfm">
<div class="nav-panel">
<p>
Next: <a href="#psfonts_002emap" accesskey="n" rel="next"><samp class="file">psfonts.map</samp>: PostScript font catalog</a>, Previous: <a href="#Making-a-font-available" accesskey="p" rel="prev">Making a PostScript font available</a>, Up: <a href="#PostScript-fonts" accesskey="u" rel="up">PostScript fonts</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Invoking-Afm2tfm">6.3 Invoking Afm2tfm</h3>
<a class="index-entry-id" id="index-afm2tfm-1"></a>
<p>The Afm2tfm program converts an AFM file for a PostScript font to a TFM
file and a VPL file for a corresponding virtual font (or, in its
simplest form, to a TFM file for the PostScript font itself). The
results of the conversion are affected by the command-line options and
especially by the reencodings you can specify with those options. You
can also obtain special effects such as an oblique font.
</p>
<a class="index-entry-id" id="index-fontinst"></a>
<a class="index-entry-id" id="index-virtual-fonts_002c-creating"></a>
<a class="index-entry-id" id="index-Jeffrey_002c-Alan"></a>
<p>Alternatives to Afm2tfm for creating virtual fonts include
<code class="code">fontinst</code> <a class="url" href="https://ctan.org/pkg/fontinst">https://ctan.org/pkg/fontinst</a>,
<code class="code">lcdf-typetools</code>, particularly <code class="code">otftotfm</code>
(<a class="url" href="https://ctan.org/pkg/lcdf-typetools">https://ctan.org/pkg/lcdf-typetools</a>), and <code class="code">afm2pl</code>
(<a class="url" href="http://tex.aanhet.net/afm2pl/">http://tex.aanhet.net/afm2pl/</a>), among others.
</p>
<ul class="mini-toc">
<li><a href="#Changing-font-encodings" accesskey="1">Changing font encodings</a></li>
<li><a href="#Special-font-effects" accesskey="2">Special font effects</a></li>
<li><a href="#Afm2tfm-options" accesskey="3">Afm2tfm options</a></li>
</ul>
<hr>
<div class="subsection-level-extent" id="Changing-font-encodings">
<div class="nav-panel">
<p>
Next: <a href="#Special-font-effects" accesskey="n" rel="next">Special font effects</a>, Up: <a href="#Invoking-afm2tfm" accesskey="u" rel="up">Invoking Afm2tfm</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Changing-font-encodings-1">6.3.1 Changing font encodings</h4>
<a class="index-entry-id" id="index-encoding-changes"></a>
<a class="index-entry-id" id="index-fonts_002c-changing-encoding-of"></a>
<p>Afm2tfm allows you to specify a different encoding for a PostScript font
(for a general introduction to encodings, see <a class="pxref" href="#Encodings">Encodings</a>). The
‘<samp class="samp">-t</samp>’ option changes the TeX encoding, ‘<samp class="samp">-p</samp>’ changes the
PostScript encoding, and ‘<samp class="samp">-T</samp>’ changes both simultaneously, as
detailed in the sections below.
</p>
<ul class="mini-toc">
<li><a href="#Changing-TeX-encodings" accesskey="1">‘<samp class="samp">-t</samp>’: Changing TeX encodings</a></li>
<li><a href="#Changing-PostScript-encodings" accesskey="2">‘<samp class="samp">-p</samp>’: Changing PostScript encodings</a></li>
<li><a href="#Changing-both-encodings" accesskey="3">‘<samp class="samp">-T</samp>’: Changing both TeX and PostScript encodings</a></li>
<li><a href="#Reencoding-with-Afm2tfm" accesskey="4">Reencoding with Afm2tfm</a></li>
<li><a href="#Encoding-file-format" accesskey="5">Encoding file format</a></li>
</ul>
<hr>
<div class="subsubsection-level-extent" id="Changing-TeX-encodings">
<div class="nav-panel">
<p>
Next: <a href="#Changing-PostScript-encodings" accesskey="n" rel="next">‘<samp class="samp">-p</samp>’: Changing PostScript encodings</a>, Up: <a href="#Changing-font-encodings" accesskey="u" rel="up">Changing font encodings</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsubsection" id="g_t_002dt_003a-Changing-TeX-encodings">6.3.1.1 ‘<samp class="samp">-t</samp>’: Changing TeX encodings</h4>
<a class="index-entry-id" id="index-changing-TeX-encodings"></a>
<a class="index-entry-id" id="index-TeX-encoding_002c-changing"></a>
<a class="index-entry-id" id="index-_002dt-tex_002denc"></a>
<p>To build a virtual font with Afm2tfm, you specify the ‘<samp class="samp">-v</samp>’ or
‘<samp class="samp">-V</samp>’ option. You can then specify an encoding for that virtual font
with ‘<samp class="samp">-t <var class="var">tex-enc</var></samp>’. (‘<samp class="samp">-t</samp>’ is ignored if neither
‘<samp class="samp">-v</samp>’ nor ‘<samp class="samp">-V</samp>’ is present.) Any ligature and kerning
information you specify in <var class="var">tex-enc</var> will be used in the VPL, in
addition to the ligature and kerning information from the AFM file.
</p>
<p>If the AFM file has no entry for a character specified in <var class="var">tex-enc</var>,
that character will be omitted from the output VPL.
</p>
<a class="index-entry-id" id="index-texmsym_002eenc-1"></a>
<p>The ‘<samp class="samp">-t</samp>’ option is likely to be needed when you have a PostScript
font corresponding to a TeX font other than a normal text font such
as Computer Modern. For instance, if you have a PostScript font that
contains math symbols, you’d probably want to use the encoding in the
<samp class="file">texmsym.enc</samp> file supplied with Dvips. (For a start; to actually
get usable math fonts, you have to define much more than just an
encoding.)
</p>
<hr>
</div>
<div class="subsubsection-level-extent" id="Changing-PostScript-encodings">
<div class="nav-panel">
<p>
Next: <a href="#Changing-both-encodings" accesskey="n" rel="next">‘<samp class="samp">-T</samp>’: Changing both TeX and PostScript encodings</a>, Previous: <a href="#Changing-TeX-encodings" accesskey="p" rel="prev">‘<samp class="samp">-t</samp>’: Changing TeX encodings</a>, Up: <a href="#Changing-font-encodings" accesskey="u" rel="up">Changing font encodings</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsubsection" id="g_t_002dp_003a-Changing-PostScript-encodings">6.3.1.2 ‘<samp class="samp">-p</samp>’: Changing PostScript encodings</h4>
<a class="index-entry-id" id="index-changing-PostScript-encodings"></a>
<a class="index-entry-id" id="index-PostScript-encoding_002c-changing"></a>
<a class="index-entry-id" id="index-_002dp-ps_002denc"></a>
<p>By default, Afm2tfm uses the encoding it finds in the AFM file. You can
specify a different PostScript encoding with ‘<samp class="samp">-p <var class="var">ps-enc</var></samp>’.
This makes the raw TFM file (the one output by Afm2tfm) have the
encoding specified in the encoding file <var class="var">ps-enc</var>. Any ligature or
kern information specified in <var class="var">ps-enc</var> is ignored by Afm2tfm, since
ligkern info is always omitted from the raw TFM.
</p>
<p>If you use this option, you must also arrange to download <var class="var">ps-enc</var>
as part of any document that uses this font. You do this by adding a
line like the following one to <samp class="file">psfonts.map</samp> (see <a class="pxref" href="#psfonts_002emap"><samp class="file">psfonts.map</samp>: PostScript font catalog</a>):
</p><div class="example">
<pre class="example-preformatted">zpopr Optima "MyEncoding ReEncodeFont" <myenc.enc
</pre></div>
<a class="index-entry-id" id="index-trademark-character_002c-accessing"></a>
<a class="index-entry-id" id="index-registered-character_002c-accessing"></a>
<a class="index-entry-id" id="index-extra-characters_002c-accessing"></a>
<p>Using ‘<samp class="samp">-p</samp>’ is the only way to access characters in a PostScript
font that are neither encoded in the AFM file nor constructed from other
characters. For instance, Adobe’s ‘<samp class="samp">Times-Roman</samp>’ font contains the
extra characters ‘<samp class="samp">trademark</samp>’ and ‘<samp class="samp">registered</samp>’ (among others);
these can only be accessed through such a PostScript reencoding.
</p>
<a class="index-entry-id" id="index-8r-encoding_002c-and-extra-characters"></a>
<p>The ‘8r’ base encoding used for the current PostScript font
distribution does do this reencoding, for precisely this reason.
</p>
<hr>
</div>
<div class="subsubsection-level-extent" id="Changing-both-encodings">
<div class="nav-panel">
<p>
Next: <a href="#Reencoding-with-Afm2tfm" accesskey="n" rel="next">Reencoding with Afm2tfm</a>, Previous: <a href="#Changing-PostScript-encodings" accesskey="p" rel="prev">‘<samp class="samp">-p</samp>’: Changing PostScript encodings</a>, Up: <a href="#Changing-font-encodings" accesskey="u" rel="up">Changing font encodings</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsubsection" id="g_t_002dT_003a-Changing-both-TeX-and-PostScript-encodings">6.3.1.3 ‘<samp class="samp">-T</samp>’: Changing both TeX and PostScript encodings</h4>
<a class="index-entry-id" id="index-_002dT-enc_002dfile"></a>
<p>The option ‘<samp class="samp">-T <var class="var">enc-file</var></samp>’ is equivalent to ‘<samp class="samp">-p
<var class="var">enc-file</var> -t <var class="var">enc-file</var></samp>’. If you make regular use of a private
non-standard reencoding ‘<samp class="samp">-T</samp>’ is usually a better idea than the
individual options, to avoid unexpected inconsistencies in mapping
otherwise. An example of when you might use this option is a dingbats
font: when you have a TeX encoding that is designed to be used with a
particular PostScript font.
</p>
<hr>
</div>
<div class="subsubsection-level-extent" id="Reencoding-with-Afm2tfm">
<div class="nav-panel">
<p>
Next: <a href="#Encoding-file-format" accesskey="n" rel="next">Encoding file format</a>, Previous: <a href="#Changing-both-encodings" accesskey="p" rel="prev">‘<samp class="samp">-T</samp>’: Changing both TeX and PostScript encodings</a>, Up: <a href="#Changing-font-encodings" accesskey="u" rel="up">Changing font encodings</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsubsection" id="Reencoding-with-Afm2tfm-1">6.3.1.4 Reencoding with Afm2tfm</h4>
<a class="index-entry-id" id="index-reencoding"></a>
<a class="index-entry-id" id="index-remapping"></a>
<p>The Afm2tfm program creates the TFM and VF files for the virtual font
corresponding to a PostScript font by <em class="dfn">reencoding</em> the PostScript
font. Afm2tfm generates these files from two encodings: one for TeX
and one for PostScript. The TeX encoding is used to map character
numbers to character names while the PostScript encoding is used to map
each character name to a possibly different number. In combination, you
can get access to any character of a PostScript font at any position for
TeX typesetting.
</p>
<p>In the default case, when you specify none of the <code class="code">-t</code>, <code class="code">-p</code>,
or <code class="code">-T</code> options, Afm2tfm uses a default TeX encoding (which
mostly corresponds to the Computer Modern text fonts) and the PostScript
encoding found in the AFM file being read. The reencoding is also
sometimes called a <em class="dfn">remapping</em>.
</p>
<p>For example, the default encodings reencode the acute accent in two
steps: first the default TeX encoding maps the number 19 to the
character name ‘<samp class="samp">acute</samp>’; then the default PostScript encoding, as
found in the AFM file for an ordinary PostScript font, maps the
character name ‘<samp class="samp">acute</samp>’ to the number 194. (The PostScript encoding
works in reverse, by looking in the encoding vector for the name and
then yielding the corresponding number.) The combined mapping of 19 to
194 shows up explicitly in the VF file and also implicitly in the fact
that the properties of PostScript character 194 appear in position 19 of
the TFM file for the virtual font.
</p>
<a class="index-entry-id" id="index-accents_002c-in-wrong-position"></a>
<a class="index-entry-id" id="index-Hungarian-umlaut"></a>
<a class="index-entry-id" id="index-dot-accent"></a>
<a class="index-entry-id" id="index-Scandinavian-A-ring"></a>
<a class="index-entry-id" id="index-A-ring_002c-Scandinavian-letter"></a>
<p>The default encoding of the distributed fonts (e.g., <samp class="file">ptmr.tfm</samp>)
mostly follows plain TeX conventions for accents. The exceptions:
the Hungarian umlaut (which is at position <code class="code">0x7D</code> in ‘<samp class="samp">cmr10</samp>’,
but position <code class="code">0xCD</code> in ‘<samp class="samp">ptmr</samp>’); the dot accent (at positions
<code class="code">0x5F</code> and <code class="code">0xC7</code>, respectively); and the Scandinavian A ring
<code class="code">\AA</code>, whose definition needs different tweaking. In order to use
these accents with PostScript fonts or in math mode when
<code class="code">\textfont0</code> is a PostScript font, you will need to use the
following definitions. These definitions will not work with the
Computer Modern fonts for the relevant accents. They are already part
of the distributed <samp class="file">psfonts.sty</samp> for use with LaTeX.
</p>
<a class="index-entry-id" id="index-_005cH"></a>
<a class="index-entry-id" id="index-_005c_002e"></a>
<a class="index-entry-id" id="index-_005cdot"></a>
<a class="index-entry-id" id="index-_005cAA"></a>
<div class="example">
<pre class="example-preformatted">\def\H#1{{\accent"CD #1}}
\def\.#1{{\accent"C7 #1}}
\def\dot{\mathaccent"70C7 }
\newdimen\aadimen
\def\AA{\leavevmode\setbox0\hbox{h}\aadimen\ht0
\advance\aadimen-1ex\setbox0\hbox{A}\rlap{\raise.67\aadimen
\hbox to \wd0{\hss\char'27\hss}}A}
</pre></div>
<a class="index-entry-id" id="index-CODINGSCHEME"></a>
<p>As a kind of summary, here are the ‘<samp class="samp">CODINGSCHEME</samp>’s that result from
the various possible choices for reencoding.
</p>
<dl class="table">
<dt>default encoding</dt>
<dd><div class="example">
<pre class="example-preformatted">(CODINGSCHEME TeX text + AdobeStandardEncoding)
</pre></div>
</dd>
<dt>‘<samp class="samp">-p dc.enc</samp>’</dt>
<dd><div class="example">
<pre class="example-preformatted">(CODINGSCHEME TeX text + DCEncoding)
</pre></div>
</dd>
<dt>‘<samp class="samp">-t dc.enc</samp>’</dt>
<dd><div class="example">
<pre class="example-preformatted">(CODINGSCHEME DCEncoding + AdobeStandardEncoding)
</pre></div>
</dd>
<dt>‘<samp class="samp">-T dc.enc</samp>’</dt>
<dd><div class="example">
<pre class="example-preformatted">(CODINGSCHEME DCEncoding + DCEncoding)
</pre></div>
</dd>
</dl>
<p>The ‘<samp class="samp">CODINGSCHEME</samp>’ line appears in the VPL file but is
ignored by Dvips.
</p>
<hr>
</div>
<div class="subsubsection-level-extent" id="Encoding-file-format">
<div class="nav-panel">
<p>
Previous: <a href="#Reencoding-with-Afm2tfm" accesskey="p" rel="prev">Reencoding with Afm2tfm</a>, Up: <a href="#Changing-font-encodings" accesskey="u" rel="up">Changing font encodings</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsubsection" id="Encoding-file-format-1">6.3.1.5 Encoding file format</h4>
<a class="index-entry-id" id="index-encoding-file-format"></a>
<p>Afm2tfm’s encoding files have the same format as an encoding vector in a
PostScript font. Here is a skeletal example:
</p>
<div class="example">
<pre class="example-preformatted">% <span class="r">Comments are ignored, unless the first word after the percent sign</span>
% <span class="r">is ‘<samp class="samp">LIGKERN</samp>’; see below.</span>
/MyEncoding [ % <span class="r">exactly 256 entries follow, each with a leading ‘<samp class="samp">/</samp>’</span>
/Alpha /Beta /Gamma /Delta …
/A /B … /Z
… /.notdef /xfooaccent /yfooaccent /zfooaccent
] def
</pre></div>
<p>These encoding files are downloaded as part of changing the encoding at
the PostScript level (see the previous section).
</p>
<a class="index-entry-id" id="index-comments_002c-in-encoding-files"></a>
<p>Comments, which start with a percent sign and continue until the end
of the line, are ignored unless they start with ‘<samp class="samp">LIGKERN</samp>’ (see below).
</p>
<p>The first non-comment word of the file must start with a forward slash
‘<samp class="samp">/</samp>’ (i.e., a PostScript literal name) and defines the name of the
encoding. The next word must be an left bracket ‘<samp class="samp">[</samp>’. Following
that must be precisely 256 character names; use ‘<samp class="samp">/.notdef</samp>’ for any
that you want to leave undefined. Then there must be a matching right
bracket <code class="code">]</code>. A final ‘<samp class="samp">def</samp>’ token is optional. All names are
case-sensitive.
</p>
<p>Any ligature or kern information is given as a comment. If the first
word after the ‘<samp class="samp">%</samp>’ is ‘<samp class="samp">LIGKERN</samp>’, then the entire rest of the
line is parsed for ligature and kern information. This ligature and
kern information is given in groups of words: each group is terminated
by a space and a semicolon and (unless the semicolon is at the end of a
line) another space.
</p>
<a class="index-entry-id" id="index-LIGKERN-encoding-file-command"></a>
<p>In these <code class="code">LIGKERN</code> statements, three types of information may be
specified. These three types are ligature pairs, kerns to ignore, and
the character value of this font’s boundary character.
</p>
<a class="index-entry-id" id="index-boundary-character"></a>
<p>Throughout a <code class="code">LIGKERN</code> statement, the boundary character is
specified as ‘<samp class="samp">||</samp>’. To set the font’s boundary character value for
TeX:
</p>
<div class="example">
<pre class="example-preformatted">% LIGKERN || = 39 ;
</pre></div>
<p>To indicate a kern to remove, give the names of the two characters
(without the leading slash) separated by ‘<samp class="samp">{}</samp>’, as in ‘<samp class="samp">one
{} one ;</samp>’. This is intended to be reminiscent of the way you might
use ‘<samp class="samp">{}</samp>’ in a TeX file to turn off ligatures or kerns at a
particular location. Either or both of the character names can be given
as ‘<samp class="samp">*</samp>’, which is a wild card matching any character; thus, all
kerns can be removed with ‘<samp class="samp">* {} * ;</samp>’.
</p>
<a class="index-entry-id" id="index-ligature-operations"></a>
<a class="index-entry-id" id="index-Metafont-ligature-operations"></a>
<p>To specify a ligature, specify the names of the pair of characters,
followed by the ligature operation (as in Metafont), followed by the
replacing character name. Either (but not both) of the first two
characters can be ‘<samp class="samp">||</samp>’ to indicate a word boundary.
</p>
<a class="index-entry-id" id="index-_003d_003a-ligature-operation"></a>
<p>The most common operation is ‘<samp class="samp">=:</samp>’ meaning that both characters are
removed and replaced by the third character, but by adding the ‘<samp class="samp">|</samp>’
character on either side of the ‘<samp class="samp">=:</samp>’, you can retain either or both
of the two leading characters. In addition, by suffixing the ligature
operation with one or two ‘<samp class="samp">></samp>’ signs, you can make the ligature
scanning operation skip that many resulting characters before
proceeding. This works just like in Metafont. For example, the ‘fi’
ligature is specified with ‘<samp class="samp">f i =: fi ;</samp>’<!-- /@w -->. A more convoluted
ligature is ‘<samp class="samp">one one |=:|>> exclam ;</samp>’ which separates a pair of
adjacent <code class="code">1</code>’s with an exclamation point, and then skips over two
of the resulting characters before continuing searching for ligatures
and kerns. You cannot give more <code class="t">></code>’s than <code class="t">|</code>’s in an ligature
operation, so there are a total of eight possibilities:
</p>
<div class="example">
<pre class="example-preformatted">=: |=: |=:> =:| =:|> |=:| |=:|> |=:|>>
</pre></div>
<p>The default set of ligatures and kerns built in to Afm2tfm is:
</p>
<div class="example">
<pre class="example-preformatted">% LIGKERN question quoteleft =: questiondown ;
% LIGKERN exclam quoteleft =: exclamdown ;
% LIGKERN hyphen hyphen =: endash ; endash hyphen =: emdash ;
% LIGKERN quoteleft quoteleft =: quotedblleft ;
% LIGKERN quoteright quoteright =: quotedblright ;
% LIGKERN space {} * ; * {} space ; 0 {} * ; * {} 0 ;
% LIGKERN 1 {} * ; * {} 1 ; 2 {} * ; * {} 2 ; 3 {} * ; * {} 3 ;
% LIGKERN 4 {} * ; * {} 4 ; 5 {} * ; * {} 5 ; 6 {} * ; * {} 6 ;
% LIGKERN 7 {} * ; * {} 7 ; 8 {} * ; * {} 8 ; 9 {} * ; * {} 9 ;
</pre></div>
<hr>
</div>
</div>
<div class="subsection-level-extent" id="Special-font-effects">
<div class="nav-panel">
<p>
Next: <a href="#Afm2tfm-options" accesskey="n" rel="next">Afm2tfm options</a>, Previous: <a href="#Changing-font-encodings" accesskey="p" rel="prev">Changing font encodings</a>, Up: <a href="#Invoking-afm2tfm" accesskey="u" rel="up">Invoking Afm2tfm</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Special-font-effects-1">6.3.2 Special font effects</h4>
<a class="index-entry-id" id="index-oblique-fonts"></a>
<a class="index-entry-id" id="index-slanted-fonts"></a>
<a class="index-entry-id" id="index-fonts_002c-slanted"></a>
<p>Besides the reencodings described in the previous section, Afm2tfm can
do other manipulations. (Again, it’s best to use the prebuilt fonts
rather than attempting to remake them.)
</p>
<p>‘<samp class="samp">-s <var class="var">slant</var></samp>’ makes an obliqued variant, as in:
</p>
<div class="example">
<pre class="example-preformatted">afm2tfm Times-Roman -s .167 -v ptmro rptmro
</pre></div>
<p>This creates <samp class="file">ptmro.vpl</samp> and <samp class="file">rptmro.tfm</samp>. To use this font,
put the line
</p>
<a class="index-entry-id" id="index-SlantFont"></a>
<div class="example">
<pre class="example-preformatted">rptmro Times-Roman ".167 SlantFont"
</pre></div>
<a class="index-entry-id" id="index-psfonts_002emap-1"></a>
<p>into <samp class="file">psfonts.map</samp>. Then ‘<samp class="samp">rptmro</samp>’ (our name for the obliqued
Times) will act as if it were a resident font, although it is actually
constructed from Times-Roman via the PostScript routine <code class="code">SlantFont</code>
(which will slant everything 1/6 to the right, in this case).
</p>
<a class="index-entry-id" id="index-expanded-fonts"></a>
<a class="index-entry-id" id="index-fonts_002c-expanded"></a>
<p>Similarly, you can get an expanded font with
</p>
<div class="example">
<pre class="example-preformatted">afm2tfm Times-Roman -e 1.2 -v ptmrre rptmrre
</pre></div>
<p>and by recording the pseudo-resident font
<a class="index-entry-id" id="index-ExtendFont"></a>
</p>
<div class="example">
<pre class="example-preformatted">rptmrre Times-Roman "1.2 ExtendFont"
</pre></div>
<p>in <samp class="file">psfonts.map</samp>.
</p>
<p>You can also create a small caps font with a command such as
<a class="index-entry-id" id="index-small-caps-fonts"></a>
<a class="index-entry-id" id="index-fonts_002c-small-caps"></a>
</p>
<div class="example">
<pre class="example-preformatted">afm2tfm Times-Roman -V ptmrc rptmrc
</pre></div>
<p>This will generate a set of pseudo-small caps mapped into the usual
lowercase positions and scaled down to 0.8 of the normal cap
dimensions. You can also specify the scaling as something other than
the default 0.8:
</p>
<div class="example">
<pre class="example-preformatted">afm2tfm Times-Roman -c 0.7 -V ptmrc rptmrc
</pre></div>
<p>It is unfortunately not possible to increase the width of the small caps
independently of the rest of the font. If you want a really
professional looking set of small caps, you need to acquire a small caps
font.
</p>
<a class="index-entry-id" id="index-PaintType"></a>
<a class="index-entry-id" id="index-outline-fonts-1"></a>
<a class="index-entry-id" id="index-fonts_002c-outlined"></a>
<p>To change the <code class="code">PaintType</code> in a font from filled (0) to outlined
(2), you can add <code class="code">"/PaintType 2 store"</code> to <samp class="file">psfonts.map</samp>, as
in the following:
</p>
<div class="example">
<pre class="example-preformatted">rphvrl Helvetica "/PaintType 2 store"
</pre></div>
<p>Afm2tfm writes to standard output the line you need to add to
<samp class="file">psfonts.map</samp> to use that font, assuming the font is resident in
the printer; if the font is not resident, you must add the
‘<samp class="samp"><<var class="var">filename</var></samp>’ command to download the font. Each identical
line only needs to be specified once in the ‘<samp class="samp">psfonts.map</samp>’ file,
even though many different fonts (small caps variants, or ones with
different output encodings) may be based on it.
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Afm2tfm-options">
<div class="nav-panel">
<p>
Previous: <a href="#Special-font-effects" accesskey="p" rel="prev">Special font effects</a>, Up: <a href="#Invoking-afm2tfm" accesskey="u" rel="up">Invoking Afm2tfm</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Afm2tfm-options-1">6.3.3 Afm2tfm options</h4>
<a class="index-entry-id" id="index-options_002c-to-Afm2tfm"></a>
<a class="index-entry-id" id="index-afm2tfm-options"></a>
<p>Synopsis:
</p><div class="example">
<pre class="example-preformatted">afm2tfm [<var class="var">option</var>]… <var class="var">afmfile</var>[.afm] [<var class="var">tfmfile</var>[.tfm]]
</pre></div>
<p>Afm2tfm reads <var class="var">afmfile</var> and writes a corresponding (but “raw”,
see below) TFM file. If <var class="var">tfmfile</var> is not supplied, the base name
of the AFM file is extended with ‘<samp class="samp">.tfm</samp>’ to get the output
filename.
</p>
<p>The simplest example:
</p>
<div class="example">
<pre class="example-preformatted">afm2tfm Times-Roman rptmr
</pre></div>
<a class="index-entry-id" id="index-accents_002c-wrong"></a>
<a class="index-entry-id" id="index-raw-tfm-files"></a>
<p>The TFM file thus created is <em class="dfn">raw</em> because it omits ligature and
kern information, and does no character remapping; it contains only
the character information in the AFM file in TFM format, which is the form
that TeX understands. The characters have the same code in the TFM
file as in the AFM file. For text fonts, this means printable ASCII
characters will work ok, but little else, because standard PostScript
fonts have a different encoding scheme than the one that plain TeX
expects (see <a class="pxref" href="#Encodings">Encodings</a>). Although the encodings agree for most
printable ASCII characters, other characters such as ligatures and
accents vary. Thus, in practice, it’s almost always desirable to create
a virtual font as well with the ‘<samp class="samp">-v</samp>’ or ‘<samp class="samp">-V</samp>’ option.
See <a class="xref" href="#Making-a-font-available">Making a PostScript font available</a>.
</p>
<p>The command line options to Afm2tfm:
</p>
<dl class="table">
<dt id='index-_002da-1'><span>‘<samp class="samp">-a</samp>’<a class="copiable-link" href='#index-_002da-1'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-accent-height-adjustment_002c-omitting"></a>
<p>By default, Afm2tfm looks for precomposed accented characters, such as
tdieresis, and possibly adjusts the height of the basic letter (t)
upward so that the result of using <code class="code">\accent</code> (as in <code class="code">\"t</code>)
is visually the same as the precomposed characters. The <code class="code">-a</code>
option omits such adjustments, so that all characters’ heights remain
as they are given in the AFM file. (Until Afm2tfm 8.4, released in
2016, heights could also be adjusted downward, but this is no longer
the case.)
</p>
</dd>
<dt id='index-_002dc-ratio'><span>‘<samp class="samp">-c <var class="var">ratio</var></samp>’<a class="copiable-link" href='#index-_002dc-ratio'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-scaling-small-caps"></a>
<p>See ‘<samp class="samp">-V</samp>’; overrides the default ratio of 0.8 for the
scaling of small caps.
</p>
</dd>
<dt id='index-_002de-ratio'><span>‘<samp class="samp">-e <var class="var">ratio</var></samp>’<a class="copiable-link" href='#index-_002de-ratio'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-expanded-fonts-1"></a>
<a class="index-entry-id" id="index-condensed-fonts"></a>
<p>Stretch characters horizontally by <var class="var">ratio</var>; if less than 1.0, you
get a condensed font.
</p>
</dd>
<dt id='index-_002dO'><span>‘<samp class="samp">-O</samp>’<a class="copiable-link" href='#index-_002dO'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-octal-character-codes"></a>
<p>Output all character codes in the ‘<samp class="samp">vpl</samp>’ file as octal numbers, not
names; this is useful for symbol or other special-purpose fonts where
character names such as ‘<samp class="samp">A</samp>’ have no meaning.
</p>
</dd>
<dt id='index-_002dp-ps_002denc-1'><span>‘<samp class="samp">-p <var class="var">ps-enc</var></samp>’<a class="copiable-link" href='#index-_002dp-ps_002denc-1'> ¶</a></span></dt>
<dd><p>Use <var class="var">ps-enc</var> for the destination (PostScript) encoding of the font;
<var class="var">ps-enc</var> must be mentioned as a header file for the font in
‘<samp class="samp">psfonts.map</samp>’.
See <a class="xref" href="#Changing-PostScript-encodings">‘<samp class="samp">-p</samp>’: Changing PostScript encodings</a>.
</p>
</dd>
<dt id='index-_002ds-slant'><span>‘<samp class="samp">-s <var class="var">slant</var></samp>’<a class="copiable-link" href='#index-_002ds-slant'> ¶</a></span></dt>
<dd><a class="index-entry-id" id="index-slanted-fonts_002c-making"></a>
<p>Slant characters to the right by <var class="var">slant</var>. If <var class="var">slant</var> is
negative, the letters slope to the left (or they might be upright if you
start with an italic font).
</p>
</dd>
<dt id='index-_002dt-tex_002denc-1'><span>‘<samp class="samp">-t <var class="var">tex-enc</var></samp>’<a class="copiable-link" href='#index-_002dt-tex_002denc-1'> ¶</a></span></dt>
<dd><p>Use <var class="var">tex-enc</var> for the target (TeX) encoding of the font.
Ligature and kern information may also be specified in <var class="var">file</var>.
<var class="var">file</var> is not mentioned in <samp class="file">psfonts.map</samp>.
</p>
</dd>
<dt id='index-_002dT-ps_002dtex_002denc'><span>‘<samp class="samp">-T <var class="var">ps-tex-enc</var></samp>’<a class="copiable-link" href='#index-_002dT-ps_002dtex_002denc'> ¶</a></span></dt>
<dd><p>Use <var class="var">ps-tex-enc</var> for both the PostScript and target TeX encodings
of the font. Equivalent to ‘<samp class="samp">-p <var class="var">file</var> -t <var class="var">file</var></samp>’.
</p>
</dd>
<dt id='index-_002du'><span>‘<samp class="samp">-u</samp>’<a class="copiable-link" href='#index-_002du'> ¶</a></span></dt>
<dd><p>Use only those characters specified in the TeX encoding, and no
others. By default, Afm2tfm tries to include all characters in the
input font, even those not present in the TeX encoding (it puts them
into otherwise-unused positions, arbitrarily).
</p>
</dd>
<dt id='index-_002dv-vpl_002dfile'><span>‘<samp class="samp">-v <var class="var">vpl-file</var></samp>’<a class="copiable-link" href='#index-_002dv-vpl_002dfile'> ¶</a></span></dt>
<dd><p>Output a VPL (virtual property list) file, as well as a TFM file.
</p>
</dd>
<dt id='index-_002dV-vpl_002dfile'><span>‘<samp class="samp">-V <var class="var">vpl-file</var></samp>’<a class="copiable-link" href='#index-_002dV-vpl_002dfile'> ¶</a></span></dt>
<dd><p>Same as ‘<samp class="samp">-v</samp>’, but the virtual font generated is a pseudo small caps
font obtained by scaling uppercase letters by 0.8 to typeset
lowercase. This font handles accented letters and retains proper
kerning.
</p></dd>
</dl>
<hr>
</div>
</div>
<div class="section-level-extent" id="psfonts_002emap">
<div class="nav-panel">
<p>
Previous: <a href="#Invoking-afm2tfm" accesskey="p" rel="prev">Invoking Afm2tfm</a>, Up: <a href="#PostScript-fonts" accesskey="u" rel="up">PostScript fonts</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="psfonts_002emap_003a-PostScript-font-catalog">6.4 <samp class="file">psfonts.map</samp>: PostScript font catalog</h3>
<a class="index-entry-id" id="index-psfonts_002emap-2"></a>
<a class="index-entry-id" id="index-non_002dresident-fonts"></a>
<a class="index-entry-id" id="index-downloading-PostScript-fonts"></a>
<a class="index-entry-id" id="index-fonts_002c-downloading"></a>
<p>The <samp class="file">psfonts.map</samp> file associates a PostScript font with related
files and constructs. Each line has the format:
</p>
<div class="example">
<pre class="example-preformatted"><var class="var">filename</var> <var class="var">PostScript-name</var> <var class="var">options</var>
</pre></div>
<a class="index-entry-id" id="index-_003c-font-downloading"></a>
<p>For example, the line
</p><div class="example">
<pre class="example-preformatted">rpstrn StoneInformal <StoneInformal.pfb
</pre></div>
<p>causes Dvips to download <samp class="file">StoneInformal.pfb</samp> (just as if it were
a header file, see <a class="pxref" href="#Header-files">PostScript header files</a>) if the DVI file (or a virtual
font, see <a class="pxref" href="#Virtual-fonts">Virtual fonts</a>) references the TFM file ‘<samp class="samp">rpstrn</samp>’.
The PostScript <code class="code">/FontName</code> of the font defined inside the ‘<samp class="samp">pfb</samp>’
file should be <code class="code">StoneInformal</code>.
</p>
<a class="index-entry-id" id="index-transforming-downloaded-fonts"></a>
<a class="index-entry-id" id="index-expanded-fonts-2"></a>
<a class="index-entry-id" id="index-wide-fonts"></a>
<a class="index-entry-id" id="index-narrow-fonts"></a>
<p>You can generate transformed fonts with a line like this:
</p><div class="example">
<pre class="example-preformatted">rpstrc StoneInformal <StoneInformal.pfb ".8 ExtendFont"
</pre></div>
<p>See <a class="xref" href="#Special-font-effects">Special font effects</a>, for a
complete list of font effects.
</p>
<a class="index-entry-id" id="index-reencoding-PostScript-fonts"></a>
<p>You can change the encoding of the Type 1 font at the PostScript
level with a ‘<samp class="samp">ReEncodeFont</samp>’ instruction, plus the name of the
encoding file. This allows you access to characters that may be present
in the Type 1 font file, but not encoded by default—most of the
preaccented characters, for example. An example:
</p><div class="example smallexample">
<pre class="example-preformatted">pstrn8r StoneInformal "TeXBase1Encoding ReEncodeFont" <8r.enc <pstrn8a.pfb
</pre></div>
<a class="index-entry-id" id="index-8r-font-encoding"></a>
<a class="index-entry-id" id="index-base-encoding_002c-recommended"></a>
<p>The ‘<samp class="samp">8r</samp>’ encoding mentioned here has been designed to serve as a
base for all downloadable fonts; it allows access to all the characters
commonly present in a Type 1 font. For more details, see the
<samp class="file">8r.enc</samp> source file that comes with (and is installed with) Dvips.
</p>
<a class="index-entry-id" id="index-_003c_005b-encoding-vector-downloading"></a>
<p>You may notice that the same syntax is used for downloading encoding
vectors and Type 1 font files. To make your intentions clear, you can
also use ‘<samp class="samp"><[</samp>’ to explicitly indicate you are downloading an
encoding vector, as in:
</p><div class="example smallexample">
<pre class="example-preformatted">pstrn8r StoneInformal "TeXBase1Encoding ReEncodeFont" <[8r.enc <pstrn8a.pfb
</pre></div>
<a class="index-entry-id" id="index-_002eenc-extension-for-encoding-vectors"></a>
<p>If the filename of your encoding vector does not end in ‘<samp class="samp">.enc</samp>’, and
you are using partial font downloading, you must use the ‘<samp class="samp"><[</samp>’
syntax, or Dvips will not download the font properly.
</p>
<a class="index-entry-id" id="index-_002epfa-extension-required-for-partial-downloading"></a>
<a class="index-entry-id" id="index-_002epfb-extension-required-for-partial-downloading"></a>
<p>Similarly, the name of the Type 1 font file itself must have extension
<samp class="file">.pfa</samp> or <samp class="file">.pfb</samp> for partial downloading to work properly.
</p>
<a class="index-entry-id" id="index-pfb-files_002c-automatically-unpacked"></a>
<p>When using PFB files, Dvips is smart enough to unpack the binary PFB
format into printable ASCII so there is no need to perform this
conversion yourself. In addition, Dvips scans the font to determine its
memory usage, just as it does for other header files (see <a class="pxref" href="#Header-files">PostScript header files</a>).
</p>
<a class="index-entry-id" id="index-partial-font-downloading"></a>
<a class="index-entry-id" id="index-downloading-fonts-partially"></a>
<p>If the ‘<samp class="samp">j</samp>’ config file or command-line option is enabled (as it
is by default), <samp class="file">StoneInformal.pfb</samp> will be <em class="dfn">partially
downloaded</em>—only those characters your document actually uses will
be extracted and downloaded, and the remainder discarded.
See <a class="xref" href="#Option-details">Option details</a>.
</p>
<a class="index-entry-id" id="index-whole-font-downloading"></a>
<a class="index-entry-id" id="index-multiple-master-fonts"></a>
<a class="index-entry-id" id="index-Minion-typeface-family"></a>
<a class="index-entry-id" id="index-_003c_003c-whole-font-downloading"></a>
<p>Adobe Multiple Master fonts, such as Minion, cannot be partially
downloaded. To partially download in general, but avoid partial
downloading for individual fonts, use ‘<samp class="samp"><<</samp>’ instead ‘<samp class="samp"><</samp>’:
</p><div class="example">
<pre class="example-preformatted">pmnr8r Minion <<Minion.pfb
</pre></div>
<p>Here is a brief summary of how <samp class="file">psfonts.map</samp> is read:
</p>
<ol class="enumerate">
<li> If a line is empty or begins with a space, percent, asterisk,
semicolon, or hash mark, it is ignored.
</li><li> Otherwise, the line is separated into words, where words are
separated by spaces or tabs, except that if a word begins with a double
quote, it extends until the next double quote or the end of the line.
</li><li> If a word starts with ‘<samp class="samp"><<</samp>’, it is taken as a font file to be
wholly downloaded. Use this to avoid partial downloading, as described
above.
</li><li> If a word starts with ‘<samp class="samp"><[</samp>’, it is taken as an encoding file
to be downloaded. Use this if the name of the encoding file does end in
‘<samp class="samp">.enc</samp>’, also as described above.
</li><li> If a word starts with a ‘<samp class="samp"><</samp>’ character, it is
treated as a header file that needs to be downloaded. If the name ends
in ‘<samp class="samp">.pfa</samp>’ or ‘<samp class="samp">.pfb</samp>’, it is taken as Type 1 font file that will
be partially downloaded if the ‘<samp class="samp">j</samp>’ option is in effect. There can
be more than one such header for a given font. If a ‘<samp class="samp"><</samp>’ is a word
by itself, the next word is taken as the name of the header file.
</li><li> If a word starts with a ‘<samp class="samp">"</samp>’ character, it is taken as PostScript
code used in generating that font, and is inserted into the output
verbatim at the appropriate point. (And the double quotes beginning and
ending the word are removed.)
</li><li> Otherwise the word is a name. The first such name is the TFM
file, that either a DVI file or a virtual font file can refer to. If
there is a second name, it is used as the PostScript name and should
match what is defined in the downloaded file; if there is only one
name, it is used for both the TeX name and the PostScript name.
</li></ol>
<hr>
</div>
</div>
<div class="chapter-level-extent" id="Color">
<div class="nav-panel">
<p>
Next: <a href="#Index" accesskey="n" rel="next">Index</a>, Previous: <a href="#PostScript-fonts" accesskey="p" rel="prev">PostScript fonts</a>, Up: <a href="#Top" accesskey="u" rel="up">Dvips</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h2 class="chapter" id="Color-1">7 Color</h2>
<a class="index-entry-id" id="index-color"></a>
<a class="index-entry-id" id="index-Hafner_002c-Jim"></a>
<p>Dvips supports one-pass multi-color printing of TeX documents on any
color PostScript device. Initially added by Jim Hafner, IBM Research,
<a class="email" href="mailto:hafner@almaden.ibm.com">hafner@almaden.ibm.com</a>, the color support has gone through many
changes by Tomas Rokicki. Besides the source code support itself, there
are additional TeX macro files: ‘<samp class="samp">colordvi.tex</samp>’ and
‘<samp class="samp">blackdvi.tex</samp>’, and corresponding ‘<samp class="samp">.sty</samp>’ versions for use with
LaTeX.
</p>
<p>In this section we describe the use of color from the document
preparer’s point of view and then add some instructions on installation
for the TeX administrator.
</p>
<ul class="mini-toc">
<li><a href="#Color-macro-files" accesskey="1">Color macro files</a></li>
<li><a href="#User_002ddefinable-colors" accesskey="2">User-definable colors</a></li>
<li><a href="#Color-subtleties" accesskey="3">Color subtleties</a></li>
<li><a href="#Ted-Turner" accesskey="4">Printing in black/white after colorizing</a></li>
<li><a href="#Color-device-configuration" accesskey="5">Color device configuration</a></li>
<li><a href="#Color-support-details" accesskey="6">Color support details</a></li>
</ul>
<hr>
<div class="section-level-extent" id="Color-macro-files">
<div class="nav-panel">
<p>
Next: <a href="#User_002ddefinable-colors" accesskey="n" rel="next">User-definable colors</a>, Up: <a href="#Color" accesskey="u" rel="up">Color</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Color-macro-files-1">7.1 Color macro files</h3>
<a class="index-entry-id" id="index-macros-for-color"></a>
<a class="index-entry-id" id="index-color-macros"></a>
<p>All the color macro commands are defined in ‘<samp class="samp">colordvi.tex</samp>’ (or
‘<samp class="samp">colordvi.sty</samp>’). To access these macros simply add to the top of
your plain TeX file the command:
</p><div class="example">
<pre class="example-preformatted">\input colordvi
</pre></div>
<p>For (the obsolete) LaTeX 2.09, add the ‘<samp class="samp">colordvi</samp>’ style option as in:
</p><div class="example">
<pre class="example-preformatted">\documentstyle[12pt,colordvi]{article}
</pre></div>
<p>For LaTeX2e, these examples are not applicable. Instead, please see
the documentation for the graphics package
(<a class="url" href="https://ctan.org/pkg/graphics">https://ctan.org/pkg/graphics</a>), and the epslatex document
(<a class="url" href="https://ctan.org/pkg/epslatex">https://ctan.org/pkg/epslatex</a>).
</p>
<a class="index-entry-id" id="index-Crayola-crayon-box"></a>
<a class="index-entry-id" id="index-Pantone-colors"></a>
<a class="index-entry-id" id="index-color-names_002c-mixed-case"></a>
<p>These macros provide two basic kinds of color macros: ones for local
color changes (a few words, a single symbol) and one for global color
changes (the whole document). All the color names use a mixed case
scheme to avoid conflicts with other macros. There are 68 predefined
colors, with names taken primarily from the Crayola crayon box of 64
colors, and one pair of macros for the user to set his own color pattern
(see <a class="pxref" href="#User_002ddefinable-colors">User-definable colors</a>). You can browse the file
‘<samp class="samp">colordvi.tex</samp>’ for a list of the predefined colors. The comments
in this file also show a rough correspondence between the crayon names
and Pantones.
</p>
<p>A local color command has the form
</p>
<div class="example">
<pre class="example-preformatted">\<var class="var">ColorName</var>{this is the color <var class="var">ColorName</var>}
</pre></div>
<a class="index-entry-id" id="index-_005cColorName"></a>
<p>where <var class="var">ColorName</var> is the name of a predefined color, e.g.,
‘<samp class="samp">Blue</samp>’. As shown, these macros take one argument, the text to
print in the specified color. This can be used for nested color changes
since it restores the original color state when it completes. For
example:
</p>
<div class="example">
<pre class="example-preformatted">This text is normal but here we are \Red{switching to red,
\Blue{nesting blue}, recovering the red} and back to original.
</pre></div>
<a class="index-entry-id" id="index-color-nesting-level"></a>
<p>The color nesting level has no hard limit, but it is not advisable to
nest too deeply lest you and the reader lose track of the color history.
</p>
<p>The global color command has the form
</p>
<div class="example">
<pre class="example-preformatted">\text<var class="var">ColorName</var>
</pre></div>
<a class="index-entry-id" id="index-_005ctextColorName"></a>
<p>These macros take no arguments and changes the default color from that
point on to <var class="var">ColorName</var>. This of course can be overridden globally
by another such command or locally by local color commands. For example,
expanding on the example above, we might have
</p>
<div class="example">
<pre class="example-preformatted">\textGreen
This text is green but here we are \Red{switching to red,
\Blue{nesting blue}, recovering the red} and back to
original green.
\textCyan
The text from here on will be cyan until
\Yellow{locally changed to yellow}. Now we are back to cyan.
</pre></div>
<p>The color commands will even work in math mode and across math mode
boundaries. This means that if you have a color before going into math
mode, the mathematics will be set in that color as well. In alignment
environments like <code class="code">\halign</code>, ‘<samp class="samp">tabular</samp>’ or ‘<samp class="samp">eqnarray</samp>’,
local color commands cannot extend beyond the alignment characters.
</p>
<p>Because local color commands respect only some environment and
delimiter changes besides their own, care must be taken in setting
their scope. It is best not to have them stretch too far.
</p>
<p>At the present time there are no macros for color environments in LaTeX
which might have a larger range. This is primarily to keep the TeX
and LaTeX use compatible.
</p>
<hr>
</div>
<div class="section-level-extent" id="User_002ddefinable-colors">
<div class="nav-panel">
<p>
Next: <a href="#Color-subtleties" accesskey="n" rel="next">Color subtleties</a>, Previous: <a href="#Color-macro-files" accesskey="p" rel="prev">Color macro files</a>, Up: <a href="#Color" accesskey="u" rel="up">Color</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="User_002ddefinable-colors-1">7.2 User-definable colors</h3>
<a class="index-entry-id" id="index-user_002ddefinable-colors"></a>
<a class="index-entry-id" id="index-colors_002c-user_002ddefinable"></a>
<p>There are two ways for the user to specify colors not already defined.
For local changes, there is the command <code class="code">\Color</code> which takes two
arguments. The first argument is four numbers between zero and one and
specifies the intensity of cyan, magenta, yellow and black (CMYK) in
that order. The second argument is the text that should appear in the
given color. For example, suppose you want the words “this color is
pretty” to appear in a color which is 50% cyan, 85% magenta, 40% yellow
and 20% black. You would use the command
</p>
<div class="example">
<pre class="example-preformatted">\Color{.5 .85 .4 .2}{this color is pretty}
</pre></div>
<p>For global color changes, there is a command <code class="code">\textColor</code> which
takes one argument, the CMYK quadruple of relative color intensities.
For example, if you want the default color to be as above, then the
command
</p>
<div class="example">
<pre class="example-preformatted">\textColor{.5 .85 .4 .2}
The text from now on will be this pretty color
</pre></div>
<p>will do the trick.
</p>
<p>Making a global color change in the midst of nested local colors is
highly discouraged. Consequently, Dvips will give you warning message
and do its best to recover by discarding the current color history.
</p>
<hr>
</div>
<div class="section-level-extent" id="Color-subtleties">
<div class="nav-panel">
<p>
Next: <a href="#Ted-Turner" accesskey="n" rel="next">Printing in black/white after colorizing</a>, Previous: <a href="#User_002ddefinable-colors" accesskey="p" rel="prev">User-definable colors</a>, Up: <a href="#Color" accesskey="u" rel="up">Color</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Color-subtleties-1">7.3 Color subtleties</h3>
<a class="index-entry-id" id="index-color-subtleties"></a>
<p>Color macros are defined via <code class="code">\special</code> keywords. As such, they
are put in the ‘<samp class="samp">.dvi</samp>’ file only as explicit message strings to the
driver. The (unpleasant) result is that certain unprotected regions of
the text can have unwanted color side effects. For example, if a color
region is split by TeX across a page boundary, then the footers of
the current page (e.g., the page number) and the headers of the next
page can inherit that color. To avoid this effect globally, users
should make sure that these special regions of the text are defined with
their own local color commands. For example, to protect the
header and footer in plain TeX, use
</p>
<div class="example">
<pre class="example-preformatted">\headline{\Black{My Header}}
\footline{\Black{\hss\tenrm\folio\hss}}
</pre></div>
<p>This warning also applies to figures and other insertions, so be careful!
</p>
<p>Of course, in LaTeX, this is much more difficult to do because of the
complexity of the macros that control these regions. This is
unfortunate but inevitable, because TeX and LaTeX were
not written with color in mind.
</p>
<p>Even when writing your own macros, much care must be taken. The macros
that ‘colorize’ a portion of the text work prefix the text work by
outputting one <code class="code">\special</code> command to turn the color on before the
text, and outputting another <code class="code">\special</code> command afterwards to
restore the original color. It is often useful to ensure that TeX is
in horizontal mode before the first special command is issued; this can
be done by prefixing the color command with <code class="code">\leavevmode</code>.
</p>
<hr>
</div>
<div class="section-level-extent" id="Ted-Turner">
<div class="nav-panel">
<p>
Next: <a href="#Color-device-configuration" accesskey="n" rel="next">Color device configuration</a>, Previous: <a href="#Color-subtleties" accesskey="p" rel="prev">Color subtleties</a>, Up: <a href="#Color" accesskey="u" rel="up">Color</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Printing-in-black_002fwhite-after-colorizing">7.4 Printing in black/white after colorizing</h3>
<p>If you have a TeX or LaTeX document written with color macros and
you want to print it in black and white there are two options. On all
(good) PostScript devices, printing a color file will print in
corresponding gray levels. This is useful to get a rough idea of the
colors without using expensive color printing devices. The second
option is to replace the call to input <samp class="file">colordvi.tex</samp> with
‘<samp class="samp">blackdvi.tex</samp>’ (and similarly for the ‘<samp class="samp">.sty</samp>’ files). So in
the above example, replacing the word ‘<samp class="samp">colordvi</samp>’ with
‘<samp class="samp">blackdvi</samp>’ suffices. <samp class="file">blackdvi.tex</samp> defines the color macros
as no-ops, and so will produce normal black/white printing. By this
simple mechanism, the user can switch to all black/white printing
without having to ferret out the color commands. Also, some device
drivers, particularly non-PostScript ones like screen previewers, will
simply ignore the color commands and so print in black/white.
Hopefully, in the future screen previewers for color displays will be
compatible with some form of color support.
</p>
<hr>
</div>
<div class="section-level-extent" id="Color-device-configuration">
<div class="nav-panel">
<p>
Next: <a href="#Color-support-details" accesskey="n" rel="next">Color support details</a>, Previous: <a href="#Ted-Turner" accesskey="p" rel="prev">Printing in black/white after colorizing</a>, Up: <a href="#Color" accesskey="u" rel="up">Color</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Color-device-configuration-1">7.5 Color device configuration</h3>
<a class="index-entry-id" id="index-color-configuration"></a>
<a class="index-entry-id" id="index-configuration_002c-of-color-devices"></a>
<p>To configure Dvips for a particular color device you need to fine tune
the color parameters to match your device’s color rendition. To do this,
you will need a Pantone chart for your device. The header file
‘<samp class="samp">color.lpro</samp>’ shows a (rough) correspondence between the Crayola
crayon names and the Pantone numbers and also defines default CMYK
values for each of the colors. Note that these colors must be defined
in CMYK terms and not RGB, as Dvips outputs PostScript color commands in
CMYK. This header file also defines (if they are not known to the
interpreter) the PostScript commands ‘<samp class="samp">setcmykcolor</samp>’ and
‘<samp class="samp">currentcmykcolor</samp>’ in terms of a RGB equivalent so if your device
only understands RGB, there should be no problem.
</p>
<a class="index-entry-id" id="index-Phaser-printer_002c-used-for-color-calibration"></a>
<a class="index-entry-id" id="index-Tektronix-Phaser-printer_002c-used-for-color-calibration"></a>
<p>The parameters set in this file were determined by comparing the Pantone
chart of a Tektronix Phaser printer with the actual Crayola Crayons.
Because these were defined for a particular device, the actual color
rendition on your device may be very different. There are two ways to
adjust this. One is to use the PAntone chart for your device to rewrite
‘<samp class="samp">color.lpro</samp>’ prior to compilation and installation. A better
alternative, which supports multiple devices, is to add a header file
option in the configuration file (see <a class="pxref" href="#Configuration-file-commands">Configuration file commands</a>)
for each device that defines, in ‘<samp class="samp">userdict</samp>’, the color parameters
for those colors that need redefining.
</p>
<p>For example, if you need to change the parameters defining
‘<samp class="samp">Goldenrod</samp>’ (approximately Pantone 109 on the Phaser) for your
device ‘<samp class="samp">mycolordev</samp>’, do the following. In the Pantone chart for
your device, find the CMYK values for Pantone 109. Let’s say they are
‘<samp class="samp">{\ 0 0.10 0.75 0.03 }</samp>’. Then create a header file named
‘<samp class="samp">mycolordev.pro</samp>’ with the commands
</p>
<div class="example">
<pre class="example-preformatted">userdict begin
/Goldenrod { 0 0.10 0.75 0.03 setcmykcolor} bind def
</pre></div>
<p>Finally, in ‘<samp class="samp">config.mycolordev</samp>’ add the line
</p>
<div class="example">
<pre class="example-preformatted">h mycolordev.pro
</pre></div>
<p>This will then define ‘<samp class="samp">Goldenrod</samp>’ in your device’s CMYK values in
<samp class="file">userdict</samp> which is checked before defining it in <samp class="file">TeXdict</samp> by
<samp class="file">color.pro</samp>. (On MS-DOS, you will have to call this file
<samp class="file">mycolordev.cfg</samp>.)
</p>
<p>This mechanism, together with additions to <samp class="file">colordvi.tex</samp> and
<samp class="file">blackdvi.tex</samp> (and the ‘<samp class="samp">.sty</samp>’ files), can also be used to
predefine other colors for your users.
</p>
<hr>
</div>
<div class="section-level-extent" id="Color-support-details">
<div class="nav-panel">
<p>
Previous: <a href="#Color-device-configuration" accesskey="p" rel="prev">Color device configuration</a>, Up: <a href="#Color" accesskey="u" rel="up">Color</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h3 class="section" id="Color-support-details-1">7.6 Color support details</h3>
<p>To support color, Dvips recognizes a certain set of specials. These
specials start with the keyword ‘<samp class="samp">color</samp>’ or the keyword
‘<samp class="samp">background</samp>’, followed by a color specification.
</p>
<ul class="mini-toc">
<li><a href="#Color-specifications" accesskey="1">Color specifications</a></li>
<li><a href="#Color-specials" accesskey="2">Color specials</a></li>
</ul>
<hr>
<div class="subsection-level-extent" id="Color-specifications">
<div class="nav-panel">
<p>
Next: <a href="#Color-specials" accesskey="n" rel="next">Color specials</a>, Up: <a href="#Color-support-details" accesskey="u" rel="up">Color support details</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Color-specifications-1">7.6.1 Color specifications</h4>
<a class="index-entry-id" id="index-color-specifications"></a>
<p>What is a color specification? One of three things. First, it might be
a PostScript procedure as defined in a PostScript header file. The
<samp class="file">color.pro</samp> file defines 64 of these, including ‘<samp class="samp">Maroon</samp>’.
This PostScript procedure must set the current color to be some value;
in this case, ‘<samp class="samp">Maroon</samp>’ is defined as ‘<samp class="samp">0 0.87 0.68 0.32
setcmykcolor</samp>’.
</p>
<p>The second possibility is the name of a color model (initially, one of
‘<samp class="samp">rgb</samp>’, ‘<samp class="samp">hsb</samp>’, ‘<samp class="samp">cmyk</samp>’, or ‘<samp class="samp">gray</samp>’) followed by the
appropriate number of parameters. When Dvips encounters such a macro,
it sends out the parameters first, followed by the string created by
prefixing ‘<samp class="samp">TeXcolor</samp>’ to the color model. Thus, the color
specification ‘<samp class="samp">rgb 0.3 0.4 0.5</samp>’ would generate the PostScript code
‘<samp class="samp">0.3 0.4 0.5 TeXrgbcolor</samp>’. Note that the case of zero arguments is
disallowed, as that is handled by the single keyword case
(‘<samp class="samp">Maroon</samp>’) above, where no changes to the name are made before it
is sent to the PostScript file.
</p>
<p>The third and final type of color specification is a double quote
followed by any sequence of PostScript. The double quote is stripped
from the output. For instance, the color specification
‘<samp class="samp">"AggiePattern setpattern</samp>’ will set the ‘color’ to the Aggie logo
pattern (assuming such exists.)
</p>
<hr>
</div>
<div class="subsection-level-extent" id="Color-specials">
<div class="nav-panel">
<p>
Previous: <a href="#Color-specifications" accesskey="p" rel="prev">Color specifications</a>, Up: <a href="#Color-support-details" accesskey="u" rel="up">Color support details</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h4 class="subsection" id="Color-specials-1">7.6.2 Color specials</h4>
<p>We will describe ‘<samp class="samp">background</samp>’ first, since it is the simplest. The
‘<samp class="samp">background</samp>’ keyword must be followed by a color specification.
That color specification is used as a fill color for the background.
The last ‘<samp class="samp">background</samp>’ special on a page is the one that gets
issued, and it gets issued at the very beginning of the page, before any
text or specials are sent. (This is possible because the prescan phase
of Dvips notices all of the color specials so that the appropriate
information can be written out during the second phase.)
</p>
<p>The ‘<samp class="samp">color</samp>’ special itself has three forms.
The first is just ‘<samp class="samp">color</samp>’ followed by a color specification. In
this case, the current global color is set to that color; the color stack
must be empty when such a command is executed.
</p>
<p>The second form is ‘<samp class="samp">color push</samp>’ followed by a color specification.
This saves the current color on the color stack and sets the color to be
that given by the color specification. This is the most common way to
set a color.
</p>
<p>The final version of the ‘<samp class="samp">color</samp>’ special is just ‘<samp class="samp">color pop</samp>’,
with no color specification; this says to pop the color last pushed on
the color stack from the color stack and set the current color to be
that color.
</p>
<p>Dvips correctly handles these color specials across pages, even when the
pages are repeated or reversed.
</p>
<p>These color specials can be used for things such as patterns or screens
as well as simple colors. However, note that in the PostScript, only
one color specification can be active at a time. For instance, at the
beginning of a page, only the bottommost entry on the color stack is
sent; also, when a color is popped, all that is done is that the color
specification from the previous stack entry is sent. No ‘<samp class="samp">gsave</samp>’ or
‘<samp class="samp">grestore</samp>’ is used. This means that you cannot easily mix usage of
the ‘<samp class="samp">color</samp>’ specials for screens and colors, just one or the other.
This may be addressed in the future by adding support for different
categories of color-like state.
</p>
<hr>
</div>
</div>
</div>
<div class="unnumbered-level-extent" id="Index">
<div class="nav-panel">
<p>
Previous: <a href="#Color" accesskey="p" rel="prev">Color</a>, Up: <a href="#Top" accesskey="u" rel="up">Dvips</a> [<a href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="#Index" title="Index" rel="index">Index</a>]</p>
</div>
<h2 class="unnumbered" id="Index-1">Index</h2>
<div class="printindex cp-printindex">
<table class="cp-letters-header-printindex"><tr><th>Jump to: </th><td><a class="summary-letter-printindex" href="#Index_cp_symbol-1"><b>!</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-2"><b>"</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-3"><b>%</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-4"><b>(</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-5"><b>+</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-6"><b>-</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-7"><b>.</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-8"><b>/</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-9"><b>6</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-10"><b>8</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-11"><b><</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-12"><b>=</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-13"><b>@</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-14"><b>\</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-15"><b>|</b></a>
<br>
<a class="summary-letter-printindex" href="#Index_cp_letter-A"><b>A</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-B"><b>B</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-C"><b>C</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-D"><b>D</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-E"><b>E</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-F"><b>F</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-G"><b>G</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-H"><b>H</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-I"><b>I</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-J"><b>J</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-K"><b>K</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-L"><b>L</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-M"><b>M</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-N"><b>N</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-O"><b>O</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-P"><b>P</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-Q"><b>Q</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-R"><b>R</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-S"><b>S</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-T"><b>T</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-U"><b>U</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-V"><b>V</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-W"><b>W</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-X"><b>X</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-Y"><b>Y</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-Z"><b>Z</b></a>
</td></tr></table>
<table class="cp-entries-printindex" border="0">
<tr><td></td><th class="entries-header-printindex">Index Entry</th><td> </td><th class="sections-header-printindex"> Section</th></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_symbol-1">!</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_0021-special-_0028literal-PS-header_0029"><code>! <span class="r">special (literal PS header)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Literal-headers">Literal headers</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_0021-starting-output-filename"><code>! <span class="r">starting output filename</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_symbol-2">"</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_0022-special-_0028literal-PostScript_0029"><code>" <span class="r">special (literal PostScript)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#g_t_0022-special">" special</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_symbol-3">%</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_0025_0025BoundingBox"><code>%%BoundingBox</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Bounding-box">Bounding box</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_0025_0025Page_002c-and-multi_002dpage-information"><code>%%Page<span class="r">, and multi-page information</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-hooks">PostScript hooks</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_0025_0025Page_002c-not-generating"><code>%%Page<span class="r">, not generating</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_0025_0025Page_002c-removing"><code>%%Page<span class="r">, removing</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_0025_0025Page_002c-required-by-Ghostview"><code>%%Page<span class="r">, required by Ghostview</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Ghostscript-installation">Ghostscript installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_0025_0025Title"><code>%%Title</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_0025_0025VMusage"><code>%%VMusage</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Headers-and-memory-usage">Headers and memory usage</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_0025_002aFont"><code>%*Font</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Fonts-in-figures">Fonts in figures</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_symbol-4">(</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_0028atend_0029_002c-bounding-box-specification"><code>(atend)<span class="r">, bounding box specification</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Bounding-box">Bounding box</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_symbol-5">+</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002bpsmapfile"><code>+<var class="var">psmapfile</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_symbol-6">-</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002d"><code>-</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002d-as-output-filename"><code>- <span class="r">as output filename</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002d_002dhelp"><code>--help</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-summary">Option summary</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002d_002dhelp-1"><code>--help</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002d_002dversion"><code>--version</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002da"><code>-a</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dA"><code>-A</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002da-1"><code>-a</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dB"><code>-B</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002db-num"><code>-b <var class="var">num</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dbitmapfontenc-option"><code>-bitmapfontenc <var class="var">option</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dc-num"><code>-c <var class="var">num</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dC-num"><code>-C <var class="var">num</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dc-ratio"><code>-c <var class="var">ratio</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dd-num"><code>-d <var class="var">num</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dD-num"><code>-D <var class="var">num</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dE"><code>-E</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002de-num"><code>-e <var class="var">num</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002de-ratio"><code>-e <var class="var">ratio</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002df"><code>-f</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dF"><code>-F</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dG"><code>-G</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dh-name"><code>-h <var class="var">name</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002di"><code>-i</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dj-for-partial-font-downloading"><code>-j <span class="r">for partial font downloading</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dK"><code>-K</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dk-for-cropmarks"><code>-k <span class="r">for cropmarks</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dL"><code>-L</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dl-_005b_003d_005dnum_005b_002epageseq_005d"><code>-l [=]<var class="var">num</var>[.<var class="var">pageseq</var>]</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dlandscaperotate"><code>-landscaperotate</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dm"><code>-m</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dM"><code>-M</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dmode-mode"><code>-mode <var class="var">mode</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dN"><code>-N</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dn-num"><code>-n <var class="var">num</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dnoomega"><code>-noomega</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dnoptex"><code>-noptex</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dO"><code>-O</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002do-name"><code>-o <var class="var">name</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dO-x_002doffset_002cy_002doffset"><code>-O <var class="var">x-offset</var>,<var class="var">y-offset</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dP-printer"><code>-P <var class="var">printer</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dp-ps_002denc"><code>-p <var class="var">ps-enc</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Changing-PostScript-encodings">Changing PostScript encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dp-ps_002denc-1"><code>-p <var class="var">ps-enc</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dp-_005b_003d_005dnum_005b_002epageseq_005d"><code>-p [=]<var class="var">num</var>[.<var class="var">pageseq</var>]</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dpp-first_002dlast"><code>-pp <var class="var">first</var>-<var class="var">last</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dpp-range"><code>-pp <var class="var">range</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dPprinter_002c-and-config-file-searching"><code>-P<var class="var">printer</var><span class="r">, and config file searching</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-searching">Configuration file searching</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dq"><code>-q</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dr"><code>-r</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dR"><code>-R</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002ds"><code>-s</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dS-num"><code>-S <var class="var">num</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002ds-slant"><code>-s <var class="var">slant</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dT-enc_002dfile"><code>-T <var class="var">enc-file</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Changing-both-encodings">Changing both encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dT-hsize_002cvsize"><code>-T <var class="var">hsize</var>,<var class="var">vsize</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dt-papertype"><code>-t <var class="var">papertype</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dT-ps_002dtex_002denc"><code>-T <var class="var">ps-tex-enc</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dt-tex_002denc"><code>-t <var class="var">tex-enc</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Changing-TeX-encodings">Changing TeX encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dt-tex_002denc-1"><code>-t <var class="var">tex-enc</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dtitle-str"><code>-title <var class="var">str</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dU"><code>-U</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002du"><code>-u</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002du-psmapfile"><code>-u <var class="var">psmapfile</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dv"><code>-v</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dV"><code>-V</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dv-vpl_002dfile"><code>-v <var class="var">vpl-file</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dV-vpl_002dfile"><code>-V <var class="var">vpl-file</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dx-num"><code>-x <var class="var">num</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dX-num"><code>-X <var class="var">num</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dY-num"><code>-Y <var class="var">num</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dz"><code>-z</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext">Hypertext</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dZ-for-compressing-bitmap-fonts"><code>-Z <span class="r">for compressing bitmap fonts</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002dz-for-recognizing-hyperdvi"><code>-z <span class="r">for recognizing hyperdvi</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_symbol-7">.</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002e_002e_002drelative-filenames"><samp class="file">..</samp>-relative filenames</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002eafm-Adobe-metric-files"><code>.afm <span class="r">Adobe metric files</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Metric-files">Metric files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002edvipsrc_002c-searched-for"><code>.dvipsrc<span class="r">, searched for</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-searching">Configuration file searching</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002eenc-extension-for-encoding-vectors"><code>.enc <span class="r">extension for encoding vectors</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002elpro-long-prologue-files"><code>.lpro <span class="r">long prologue files</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Header-files">Header files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002emf-Metafont-source-files"><code>.mf <span class="r">Metafont source files</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002ennnpk-packed-font-bitmaps"><code>.<var class="var">nnn</var>pk <span class="r">packed font bitmaps</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002epfa-extension-required-for-partial-downloading"><code>.pfa <span class="r">extension required for partial downloading</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002epfa-printer-font-ascii-files"><code>.pfa <span class="r">printer font ascii files</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002epfb-extension-required-for-partial-downloading"><code>.pfb <span class="r">extension required for partial downloading</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002epfb-printer-font-binary-files"><code>.pfb <span class="r">printer font binary files</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002epfm-printer-font-metric-files"><code>.pfm <span class="r">printer font metric files</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Metric-files">Metric files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002epl-property-list-files"><code>.pl <span class="r">property list files</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Metric-files">Metric files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002epro-prologue-files"><code>.pro <span class="r">prologue files</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Header-files">Header files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002etfm-TeX-font-metric-files"><code>.tfm <span class="r">TeX font metric files</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Metric-files">Metric files</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_symbol-8">/</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002f_0023copies"><code>/#copies</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002f_0023copies-1"><code>/#copies</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_002fmagscale"><code>/magscale</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-scaling">EPSF scaling</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_symbol-9">6</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-612-792-bounding-box-size"><code>612 792 <span class="r">bounding box size</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Bounding-box">Bounding box</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_symbol-10">8</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-8r-encoding_002c-and-extra-characters"><code>8r <span class="r">encoding, and extra characters</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Changing-PostScript-encodings">Changing PostScript encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-8r-font-encoding">8r font encoding</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-8r_002eenc"><code>8r.enc</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Encodings">Encodings</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_symbol-11"><</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_003c-font-downloading"><code>< <span class="r">font downloading</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_003c_003c-whole-font-downloading"><code><< <span class="r">whole font downloading</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_003c_005b-encoding-vector-downloading"><code><[ <span class="r">encoding vector downloading</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_symbol-12">=</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_003d_003a-ligature-operation"><code>=: <span class="r">ligature operation</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Encoding-file-format">Encoding file format</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_symbol-13">@</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_0040-config-command-_0028define-paper-sizes_0029"><code>@ <span class="r">config command (define paper sizes)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_symbol-14">\</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_005c_002e"><code>\.</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Reencoding-with-Afm2tfm">Reencoding with Afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_005cAA"><code>\AA</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Reencoding-with-Afm2tfm">Reencoding with Afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_005cColorName"><code>\<var class="var">ColorName</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Color-macro-files">Color macro files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_005cdot"><code>\dot</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Reencoding-with-Afm2tfm">Reencoding with Afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_005cepsffile-macro"><code>\epsffile <span class="r">macro</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-macros">EPSF macros</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_005cepsfsize"><code>\epsfsize</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-scaling">EPSF scaling</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_005cepsfverbosetrue"><code>\epsfverbosetrue</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-macros">EPSF macros</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_005cepsfxsize"><code>\epsfxsize</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-scaling">EPSF scaling</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_005cepsfysize"><code>\epsfysize</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-scaling">EPSF scaling</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_005cH"><code>\H</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Reencoding-with-Afm2tfm">Reencoding with Afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_005cincludegraphics-LaTeX-macro">\includegraphics LaTeX macro</a>:</td><td> </td><td class="printindex-index-section"><a href="#g_t_005cincludegraphics">\includegraphics</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_005cleavevmode"><code>\leavevmode</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-macros">EPSF macros</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_005cmagnification"><code>\magnification</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-scaling">EPSF scaling</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_005crotninety"><code>\rotninety</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Literal-examples">Literal examples</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_005ctextColorName"><code>\text<var class="var">ColorName</var></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Color-macro-files">Color macro files</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_symbol-15">|</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-_007c-starting-output-filename"><code>| <span class="r">starting output filename</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-A">A</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-a-config-command-_0028conserve-memory_0029"><code>a <span class="r">config command (conserve memory)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-A-ring_002c-Scandinavian-letter">A ring, Scandinavian letter</a>:</td><td> </td><td class="printindex-index-section"><a href="#Reencoding-with-Afm2tfm">Reencoding with Afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-a3-papertype">a3 papertype</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-a4-paper-size"><code>a4 <span class="r">paper size</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Config-file-paper-sizes">Config file paper sizes</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-a4-papertype">a4 papertype</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-A4size-paper-size"><code>A4size <span class="r">paper size</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Config-file-paper-sizes">Config file paper sizes</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-absolute-filenames_002c-disabling">absolute filenames, disabling</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-absolute-page-number_002c-and-_002dl">absolute page number, and ‘<samp class="samp">-l</samp>’</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-absolute-page-number_002c-and-_002dp">absolute page number, and ‘<samp class="samp">-p</samp>’</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-accent-height-adjustment_002c-omitting">accent height adjustment, omitting</a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-accents_002c-in-wrong-position">accents, in wrong position</a>:</td><td> </td><td class="printindex-index-section"><a href="#Reencoding-with-Afm2tfm">Reencoding with Afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-accents_002c-wrong">accents, wrong</a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-accuracy-in-positioning">accuracy in positioning</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-afm-files">afm files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Metric-files">Metric files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-afm2tfm"><code>afm2tfm</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Making-a-font-available">Making a font available</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-afm2tfm-1"><code>afm2tfm</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Invoking-afm2tfm">Invoking afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-afm2tfm-options">afm2tfm options</a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-after-header_002c-inserting-code">after header, inserting code</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-headers-from-TeX">Including headers from TeX</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Aladdin-Ghostscript">Aladdin Ghostscript</a>:</td><td> </td><td class="printindex-index-section"><a href="#Ghostscript-installation">Ghostscript installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Anderson_002c-Laurie">Anderson, Laurie</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-specials">Hypertext specials</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-angle-_0028psfile-special-option_0029"><code>angle <span class="r">(‘<samp class="samp">psfile</samp>’ special option)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-arcs">arcs</a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-ASCII-character-codes_002c-used-by-PostScript">ASCII character codes, used by PostScript</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-typesetting">PostScript typesetting</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-atend_002c-bounding-box-specification"><code>atend<span class="r">, bounding box specification</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Bounding-box">Bounding box</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-B">B</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-b-config-command-_0028_0023copies_0029"><code>b <span class="r">config command (#copies)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-base"><code>base</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-specials">Hypertext specials</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-base-encoding_002c-recommended">base encoding, recommended</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-base-fonts">base fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Virtual-fonts">Virtual fonts</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bbfig"><code>bbfig</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Bounding-box">Bounding box</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-before-header_002c-inserting-code">before header, inserting code</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-headers-from-TeX">Including headers from TeX</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Bhattacharya_002c-Tanmoy">Bhattacharya, Tanmoy</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext">Hypertext</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-big-points">big points</a>:</td><td> </td><td class="printindex-index-section"><a href="#Bounding-box">Bounding box</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-binary-files_002c-not-supported">binary files, not supported</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-graphics-fails">Including graphics fails</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bitmap-font-encoding">bitmap font encoding</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bitmap-font-encodings">bitmap font encodings</a>:</td><td> </td><td class="printindex-index-section"><a href="#Bitmap-font-encodings">Bitmap font encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bitmap-fonts">bitmap fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bitmapfontenc-config-command-_0028bitmap-font-encoding_0029"><code>bitmapfontenc <span class="r">config command (bitmap font encoding)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bop-undefined-error"><code class="t">bop undefined</code> error</a>:</td><td> </td><td class="printindex-index-section"><a href="#Printer-errors">Printer errors</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bop_002dhook"><code>bop-hook</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Paper-trays">Paper trays</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bop_002dhook-1"><code>bop-hook</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-scaling">EPSF scaling</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bop_002dhook-2"><code>bop-hook</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-hooks">PostScript hooks</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bop_002dhook_002c-and-offset-pages"><code>bop-hook<span class="r">, and offset pages</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-boundary-character">boundary character</a>:</td><td> </td><td class="printindex-index-section"><a href="#Encoding-file-format">Encoding file format</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bounding-box_002c-comment-for">bounding box, comment for</a>:</td><td> </td><td class="printindex-index-section"><a href="#Bounding-box">Bounding box</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bounding-box_002c-defined">bounding box, defined</a>:</td><td> </td><td class="printindex-index-section"><a href="#Bounding-box">Bounding box</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bounding-box_002c-determining">bounding box, determining</a>:</td><td> </td><td class="printindex-index-section"><a href="#Bounding-box">Bounding box</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bounding-box_002c-finding-tight">bounding box, finding tight</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bounding-box_002c-for-bitmap-fonts">bounding box, for bitmap fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Bitmap-font-encodings">Bitmap font encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bounding-box_002c-inaccurate">bounding box, inaccurate</a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-clipping">EPSF clipping</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bounding-box_002c-supplying-to-TeX">bounding box, supplying to TeX</a>:</td><td> </td><td class="printindex-index-section"><a href="#g_t_005cincludegraphics">\includegraphics</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-bounding-box_002c-supplying-to-TeX-1">bounding box, supplying to TeX</a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-macros">EPSF macros</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-C">C</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-c-config-command-_0028include-another-config-file_0029"><code>c <span class="r">config command (include another config file)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-changing-PostScript-encodings">changing PostScript encodings</a>:</td><td> </td><td class="printindex-index-section"><a href="#Changing-PostScript-encodings">Changing PostScript encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-changing-TeX-encodings">changing TeX encodings</a>:</td><td> </td><td class="printindex-index-section"><a href="#Changing-TeX-encodings">Changing TeX encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-character-definitions-in-PostScript">character definitions in PostScript</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-typesetting">PostScript typesetting</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-character-lookup-procedure-in-PostScript">character lookup procedure in PostScript</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-typesetting">PostScript typesetting</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-CharStrings-Type-1-dictionary"><code>CharStrings <span class="r">Type 1 dictionary</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-typesetting">PostScript typesetting</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-clip-_0028psfile-special-option_0029"><code>clip <span class="r">(‘<samp class="samp">psfile</samp>’ special option)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-clipping-of-EPSF">clipping of EPSF</a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-clipping">EPSF clipping</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-CODINGSCHEME"><code>CODINGSCHEME</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Reencoding-with-Afm2tfm">Reencoding with Afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-collated-copies">collated copies</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-color">color</a>:</td><td> </td><td class="printindex-index-section"><a href="#Color">Color</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-color-configuration">color configuration</a>:</td><td> </td><td class="printindex-index-section"><a href="#Color-device-configuration">Color device configuration</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-color-macros">color macros</a>:</td><td> </td><td class="printindex-index-section"><a href="#Color-macro-files">Color macro files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-color-names_002c-mixed-case">color names, mixed case</a>:</td><td> </td><td class="printindex-index-section"><a href="#Color-macro-files">Color macro files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-color-nesting-level">color nesting level</a>:</td><td> </td><td class="printindex-index-section"><a href="#Color-macro-files">Color macro files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-color-separations">color separations</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-color-specifications">color specifications</a>:</td><td> </td><td class="printindex-index-section"><a href="#Color-specifications">Color specifications</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-color-subtleties">color subtleties</a>:</td><td> </td><td class="printindex-index-section"><a href="#Color-subtleties">Color subtleties</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-colors_002c-user_002ddefinable">colors, user-definable</a>:</td><td> </td><td class="printindex-index-section"><a href="#User_002ddefinable-colors">User-definable colors</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-command-line_002c-including-headers-from">command line, including headers from</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-headers-from-the-command-line">Including headers from the command line</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-command_002dline-options">command-line options</a>:</td><td> </td><td class="printindex-index-section"><a href="#Invoking-Dvips">Invoking Dvips</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-comments_002c-in-configuration-files">comments, in configuration files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-comments_002c-in-encoding-files">comments, in encoding files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Encoding-file-format">Encoding file format</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-comments_002c-removing-included">comments, removing included</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-compilation">compilation</a>:</td><td> </td><td class="printindex-index-section"><a href="#Installation">Installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-compressed-PostScript">compressed PostScript</a>:</td><td> </td><td class="printindex-index-section"><a href="#Dynamic-creation-of-graphics">Dynamic creation of graphics</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-compressing-bitmap-fonts">compressing bitmap fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Computer-Modern-in-PostScript">Computer Modern in PostScript</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-caveats">Hypertext caveats</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Computer-Modern_002c-encoding-of">Computer Modern, encoding of</a>:</td><td> </td><td class="printindex-index-section"><a href="#Encodings">Encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-condensed-fonts">condensed fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-config_002eproto"><code>config.proto</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#config_002eps-installation">config.ps installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-config_002eps"><code>config.ps</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-config_002eps-installation"><code>config.ps <span class="r">installation</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#config_002eps-installation">config.ps installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-config_002eps-paper-sizes"><code>config.ps <span class="r">paper sizes</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Config-file-paper-sizes">Config file paper sizes</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-config_002eps_002c-searched-for"><code>config.ps<span class="r">, searched for</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-searching">Configuration file searching</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-configuration-file-options">configuration file options</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-configuration-file-paper-size-command">configuration file paper size command</a>:</td><td> </td><td class="printindex-index-section"><a href="#Config-file-paper-sizes">Config file paper sizes</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-configuration-file-path">configuration file path</a>:</td><td> </td><td class="printindex-index-section"><a href="#Environment-variables">Environment variables</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-configuration-file-searching">configuration file searching</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-searching">Configuration file searching</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-configuration-files">configuration files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Config-files">Config files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-configuration-files_002c-creating">configuration files, creating</a>:</td><td> </td><td class="printindex-index-section"><a href="#config_002eps-installation">config.ps installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-configuration-files_002c-prototype">configuration files, prototype</a>:</td><td> </td><td class="printindex-index-section"><a href="#config_002eps-installation">config.ps installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-configuration_002c-of-color-devices">configuration, of color devices</a>:</td><td> </td><td class="printindex-index-section"><a href="#Color-device-configuration">Color device configuration</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-configuration_002c-of-Dvips">configuration, of Dvips</a>:</td><td> </td><td class="printindex-index-section"><a href="#Installation">Installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-continuation-lines_002c-not-supported">continuation lines, not supported</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-control_002dD">control-D</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-coordinate-system_002c-for-bitmap-fonts">coordinate system, for bitmap fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Bitmap-font-encodings">Bitmap font encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-copies_002c-collated">copies, collated</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-copies_002c-duplicated-page-bodies">copies, duplicated page bodies</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-copies_002c-uncollated">copies, uncollated</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Crayola-crayon-box">Crayola crayon box</a>:</td><td> </td><td class="printindex-index-section"><a href="#Color-macro-files">Color macro files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-crop_002epro"><code>crop.pro</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-cropmarks">cropmarks</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-current-font_002c-in-PostScript">current font, in PostScript</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-typesetting">PostScript typesetting</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-D">D</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-D-config-command-_0028dpi_0029"><code>D <span class="r">config command (dpi)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-dated-output">dated output</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-hooks">PostScript hooks</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-datestamp_002c-in-output">datestamp, in output</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-debugging">debugging</a>:</td><td> </td><td class="printindex-index-section"><a href="#Diagnosing-problems">Diagnosing problems</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-debugging-1">debugging</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-debugging-options">debugging options</a>:</td><td> </td><td class="printindex-index-section"><a href="#Debug-options">Debug options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-default-resolutions">default resolutions</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-default_005ftexsizes-Make-variable"><code>default_texsizes <span class="r">Make variable</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Deutsch_002c-Peter">Deutsch, Peter</a>:</td><td> </td><td class="printindex-index-section"><a href="#Ghostscript-installation">Ghostscript installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-device-dependency_002c-and-virtual-fonts">device dependency, and virtual fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-dictionary_002c-CharStrings">dictionary, <code class="code">CharStrings</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-typesetting">PostScript typesetting</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-dictionary_002c-PostScript-language">dictionary, PostScript language</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-typesetting">PostScript typesetting</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-dictionary_002c-SDict">dictionary, <code class="code">SDict</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Literal-headers">Literal headers</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-dictionary_002c-userdict">dictionary, <code class="code">userdict</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Header-files">Header files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-distillation_002c-and-_002dz">distillation, and ‘<samp class="samp">-z</samp>’</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-distiller_002c-for-PDF-files">distiller, for PDF files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext">Hypertext</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-document-title_002c-specifying">document title, specifying</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-dot-accent">dot accent</a>:</td><td> </td><td class="printindex-index-section"><a href="#Reencoding-with-Afm2tfm">Reencoding with Afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-double_002dsided-printing">double-sided printing</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-downloading-fonts-partially">downloading fonts partially</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-downloading-PostScript-fonts">downloading PostScript fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Doyle_002c-Mark">Doyle, Mark</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext">Hypertext</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-draft-copies">draft copies</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-hooks">PostScript hooks</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-dual-paper-trays">dual paper trays</a>:</td><td> </td><td class="printindex-index-section"><a href="#Paper-trays">Paper trays</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-duplex-printers">duplex printers</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-headers-from-the-command-line">Including headers from the command line</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-DVI-magnification">DVI magnification</a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-scaling">EPSF scaling</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-dvihps_002c-hyperdvi-to-PostScript"><code>dvihps<span class="r">, hyperdvi to PostScript</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext">Hypertext</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Dvips-configuration-file-options">Dvips configuration file options</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-dvips_002dall_002eenc"><code>dvips-all.enc</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Bitmap-font-encodings">Bitmap font encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-dvips_002eenc"><code>dvips.enc</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Encodings">Encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-DVIPSDEBUG"><code>DVIPSDEBUG</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Environment-variables">Environment variables</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-DVIPSFONTS"><code>DVIPSFONTS</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Environment-variables">Environment variables</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-DVIPSHEADERS"><code>DVIPSHEADERS</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Environment-variables">Environment variables</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-DVIPSHEADERS_002c-overrides-H"><code>DVIPSHEADERS<span class="r">, overrides</span> H</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-DVIPSMAKEPK"><code>DVIPSMAKEPK</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Environment-variables">Environment variables</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-DVIPSRC"><code>DVIPSRC</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Environment-variables">Environment variables</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-DVIPSSIZES"><code>DVIPSSIZES</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Environment-variables">Environment variables</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-DVIPSSIZES_002c-overrides-R"><code>DVIPSSIZES<span class="r">, overrides</span> R</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-dynamic-creation-of-graphics">dynamic creation of graphics</a>:</td><td> </td><td class="printindex-index-section"><a href="#Dynamic-creation-of-graphics">Dynamic creation of graphics</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-E">E</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-e-config-command-_0028maxdrift_0029"><code>e <span class="r">config command (maxdrift)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-E-config-command-_0028shell-escape_0029"><code>E <span class="r">config command (shell escape)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-efficiency_002c-and-fonts">efficiency, and fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Making-a-font-available">Making a font available</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-ehandler_002eps"><code>ehandler.ps</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#No-output">No output</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-embedding-Type-1-fonts">embedding Type 1 fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-caveats">Hypertext caveats</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-encoding-changes">encoding changes</a>:</td><td> </td><td class="printindex-index-section"><a href="#Changing-font-encodings">Changing font encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-encoding-file-format">encoding file format</a>:</td><td> </td><td class="printindex-index-section"><a href="#Encoding-file-format">Encoding file format</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-encoding-files">encoding files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Encodings">Encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Encoding-Type-1-dictionary"><code>Encoding <span class="r">Type 1 dictionary</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-typesetting">PostScript typesetting</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-encoding-vectors_002c-defined">encoding vectors, defined</a>:</td><td> </td><td class="printindex-index-section"><a href="#Encodings">Encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-encoding-vectors_002c-in-Type-1-fonts">encoding vectors, in Type 1 fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-typesetting">PostScript typesetting</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-encodings">encodings</a>:</td><td> </td><td class="printindex-index-section"><a href="#Encodings">Encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-encodings_002c-for-bitmap-fonts">encodings, for bitmap fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Bitmap-font-encodings">Bitmap font encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-end_002dhook"><code>end-hook</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-hooks">PostScript hooks</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-environment-variables">environment variables</a>:</td><td> </td><td class="printindex-index-section"><a href="#Environment-variables">Environment variables</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-EOF">EOF</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-eop_002dhook"><code>eop-hook</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-hooks">PostScript hooks</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-EPS_002c-and-Ghostview">EPS, and Ghostview</a>:</td><td> </td><td class="printindex-index-section"><a href="#Ghostscript-installation">Ghostscript installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-EPSF-macros">EPSF macros</a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-macros">EPSF macros</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-EPSF_002c-generating">EPSF, generating</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-epsf_002esty"><code>epsf.sty</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-macros">EPSF macros</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-epsf_002etex"><code>epsf.tex</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-macros">EPSF macros</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Epson-printers">Epson printers</a>:</td><td> </td><td class="printindex-index-section"><a href="#Ghostscript-installation">Ghostscript installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-error-messages-from-printer">error messages from printer</a>:</td><td> </td><td class="printindex-index-section"><a href="#Printer-errors">Printer errors</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-even-pages-only">even pages only</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-examples-of-literal-PostScript">examples of literal PostScript</a>:</td><td> </td><td class="printindex-index-section"><a href="#Literal-examples">Literal examples</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-expanded-fonts">expanded fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Special-font-effects">Special font effects</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-expanded-fonts-1">expanded fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-expanded-fonts-2">expanded fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-expansion_002c-of-virtual-fonts">expansion, of virtual fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Virtual-fonts">Virtual fonts</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-extended-URL">extended URL</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-specials">Hypertext specials</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-ExtendFont"><code>ExtendFont</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Special-font-effects">Special font effects</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-extra-characters_002c-accessing">extra characters, accessing</a>:</td><td> </td><td class="printindex-index-section"><a href="#Changing-PostScript-encodings">Changing PostScript encodings</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-F">F</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-f-config-command-_0028filter_0029"><code>f <span class="r">config command (filter)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-F-config-command-_0028filter_0029"><code>F <span class="r">config command (filter)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-failure_002c-and-printer-errors">failure, and printer errors</a>:</td><td> </td><td class="printindex-index-section"><a href="#Printer-errors">Printer errors</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-failure_002c-of-long-documents">failure, of long documents</a>:</td><td> </td><td class="printindex-index-section"><a href="#Long-documents-fail">Long documents fail</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-failure_002c-to-include-graphics">failure, to include graphics</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-graphics-fails">Including graphics fails</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-failure_002c-to-print-at-all">failure, to print at all</a>:</td><td> </td><td class="printindex-index-section"><a href="#No-output">No output</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-fallback-resolutions">fallback resolutions</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-figures-and-fonts">figures and fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Fonts-in-figures">Fonts in figures</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-figures_002c-natural-size">figures, natural size</a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-macros">EPSF macros</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-figures_002c-scaling">figures, scaling</a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-scaling">EPSF scaling</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-filter_002c-running-as-a">filter, running as a</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-first-page-printed">first page printed</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-font-concepts">font concepts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Font-concepts">Font concepts</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-font-encodings_002c-bitmap">font encodings, bitmap</a>:</td><td> </td><td class="printindex-index-section"><a href="#Bitmap-font-encodings">Bitmap font encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-font-generation_002c-avoiding">font generation, avoiding</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-fontinst"><code>fontinst</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Invoking-afm2tfm">Invoking afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-fonts_002c-as-header-files">fonts, as header files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-headers-from-TeX">Including headers from TeX</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-fonts_002c-changing-encoding-of">fonts, changing encoding of</a>:</td><td> </td><td class="printindex-index-section"><a href="#Changing-font-encodings">Changing font encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-fonts_002c-downloading">fonts, downloading</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-fonts_002c-expanded">fonts, expanded</a>:</td><td> </td><td class="printindex-index-section"><a href="#Special-font-effects">Special font effects</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-fonts_002c-in-PostScript-figures">fonts, in PostScript figures</a>:</td><td> </td><td class="printindex-index-section"><a href="#Fonts-in-figures">Fonts in figures</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-fonts_002c-installation-of-PostScript">fonts, installation of PostScript</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-font-installation">PostScript font installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-fonts_002c-installing">fonts, installing</a>:</td><td> </td><td class="printindex-index-section"><a href="#Making-a-font-available">Making a font available</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-fonts_002c-outlined">fonts, outlined</a>:</td><td> </td><td class="printindex-index-section"><a href="#Special-font-effects">Special font effects</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-fonts_002c-slanted">fonts, slanted</a>:</td><td> </td><td class="printindex-index-section"><a href="#Special-font-effects">Special font effects</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-fonts_002c-small-caps">fonts, small caps</a>:</td><td> </td><td class="printindex-index-section"><a href="#Special-font-effects">Special font effects</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-fonts_002c-system-PostScript">fonts, system PostScript</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-font-installation">PostScript font installation</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-G">G</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-G-config-command-_0028character-shifting_0029"><code>G <span class="r">config command (character shifting)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-gf-files">gf files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-gftopk"><code>gftopk</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Ghostscript-installation">Ghostscript installation</a>:</td><td> </td><td class="printindex-index-section"><a href="#Ghostscript-installation">Ghostscript installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-ghostview"><code>ghostview</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Ghostscript-installation">Ghostscript installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Ghostview_002c-and-no-N">Ghostview, and no ‘<samp class="samp">N</samp>’</a>:</td><td> </td><td class="printindex-index-section"><a href="#Ghostscript-installation">Ghostscript installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-glyph-files">glyph files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-GLYPHFONTS_002c-overrides-P"><code>GLYPHFONTS<span class="r">, overrides</span> P</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-gnuplot"><code>gnuplot</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Dynamic-creation-of-graphics">Dynamic creation of graphics</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-graphics-inclusion-fails">graphics inclusion fails</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-graphics-fails">Including graphics fails</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-gs-installation"><code>gs <span class="r">installation</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Ghostscript-installation">Ghostscript installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-gsave_002fgrestore_002c-and-literal-PS"><code>gsave<span class="r">/</span>grestore<span class="r">, and literal PS</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Literal-examples">Literal examples</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-gsftopk"><code>gsftopk</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-H">H</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-h-config-command-_0028download-additional-header_0029"><code>h <span class="r">config command (download additional header)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-H-config-command-_0028PostScript-header-path_0029"><code>H <span class="r">config command (PostScript header path)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Hafner_002c-Jim">Hafner, Jim</a>:</td><td> </td><td class="printindex-index-section"><a href="#Color">Color</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-header-file_002c-downloading">header file, downloading</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-header-files_002c-defined">header files, defined</a>:</td><td> </td><td class="printindex-index-section"><a href="#Header-files">Header files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-header-path_002c-defining">header path, defining</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-header_003dfile-_005cspecial"><code>header=<var class="var">file</var> \special</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-headers-from-TeX">Including headers from TeX</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-headers-and-memory-usage">headers and memory usage</a>:</td><td> </td><td class="printindex-index-section"><a href="#Headers-and-memory-usage">Headers and memory usage</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-headers_002c-including-from-the-command-line">headers, including from the command line</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-headers-from-the-command-line">Including headers from the command line</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-headers_002c-including-in-TeX">headers, including in TeX</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-headers-from-TeX">Including headers from TeX</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-hints">hints</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-typesetting">PostScript typesetting</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-hoffset-_0028psfile-special-option_0029"><code>hoffset <span class="r">(‘<samp class="samp">psfile</samp>’ special option)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-HP4Si-printer-and-paper-trays">HP4Si printer and paper trays</a>:</td><td> </td><td class="printindex-index-section"><a href="#Paper-trays">Paper trays</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-href"><code>href</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-specials">Hypertext specials</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-hscale-_0028psfile-special-option_0029"><code>hscale <span class="r">(‘<samp class="samp">psfile</samp>’ special option)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-hsize-_0028psfile-special-option_0029"><code>hsize <span class="r">(‘<samp class="samp">psfile</samp>’ special option)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-html-specials"><code>html <span class="r">specials</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext">Hypertext</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-html-specials_002c-and-_002dz"><code>html <span class="r">specials, and ‘<samp class="samp">-z</samp>’</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Hungarian-umlaut">Hungarian umlaut</a>:</td><td> </td><td class="printindex-index-section"><a href="#Reencoding-with-Afm2tfm">Reencoding with Afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-hyperdvi-extensions_002c-enabling">hyperdvi extensions, enabling</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-hypertext-and-bitmap-fonts">hypertext and bitmap fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-caveats">Hypertext caveats</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-hypertext-caveats">hypertext caveats</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-caveats">Hypertext caveats</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-hypertext-caveats-1">hypertext caveats</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-caveats">Hypertext caveats</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-hypertext-specials">hypertext specials</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-specials">Hypertext specials</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-hypertext-support">hypertext support</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext">Hypertext</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-I">I</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-i-config-command-_0028pages_002fsection_0029"><code>i <span class="r">config command (pages/section)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Illustrator_002c-workaround-for">Illustrator, workaround for</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-graphics-fails">Including graphics fails</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-img"><code>img</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-specials">Hypertext specials</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-including-graphics-fails">including graphics fails</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-graphics-fails">Including graphics fails</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-including-headers-from-the-command-line">including headers from the command line</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-headers-from-the-command-line">Including headers from the command line</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-including-headers-in-TeX">including headers in TeX</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-headers-from-TeX">Including headers from TeX</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-installation-of-config_002eps">installation of <samp class="file">config.ps</samp></a>:</td><td> </td><td class="printindex-index-section"><a href="#config_002eps-installation">config.ps installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-installation-of-PostScript-fonts">installation of PostScript fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-font-installation">PostScript font installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-installation_002c-of-Dvips">installation, of Dvips</a>:</td><td> </td><td class="printindex-index-section"><a href="#Installation">Installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-installing-fonts">installing fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Making-a-font-available">Making a font available</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-interaction-with-PostScript">interaction with PostScript</a>:</td><td> </td><td class="printindex-index-section"><a href="#Interaction-with-PostScript">Interaction with PostScript</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-inverted-output">inverted output</a>:</td><td> </td><td class="printindex-index-section"><a href="#Small-or-inverted">Small or inverted</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-invoking-Dvips">invoking Dvips</a>:</td><td> </td><td class="printindex-index-section"><a href="#Invoking-Dvips">Invoking Dvips</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-J">J</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-j-config-command-_0028partial-font-downloading_0029"><code>j <span class="r">config command (partial font downloading)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Japanese-font-metric-file">Japanese font metric file</a>:</td><td> </td><td class="printindex-index-section"><a href="#Virtual-fonts">Virtual fonts</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Jeffrey_002c-Alan">Jeffrey, Alan</a>:</td><td> </td><td class="printindex-index-section"><a href="#Invoking-afm2tfm">Invoking afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-JFM-file_002c-and-virtual-font-fallback">JFM file, and virtual font fallback</a>:</td><td> </td><td class="printindex-index-section"><a href="#Virtual-fonts">Virtual fonts</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-K">K</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-K-config-command-_0028comment-removal_0029"><code>K <span class="r">config command (comment removal)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-kerning_002c-defined">kerning, defined</a>:</td><td> </td><td class="printindex-index-section"><a href="#Metric-files">Metric files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-KPATHSEA_005fDEBUG"><code>KPATHSEA_DEBUG</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Environment-variables">Environment variables</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-L">L</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-L-config-command-_0028last-paper-size-wins_0029"><code>L <span class="r">config command (last paper size wins)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-landscape-orientation_002c-defined">landscape orientation, defined</a>:</td><td> </td><td class="printindex-index-section"><a href="#Paper-size-and-landscape">Paper size and landscape</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-landscape-papertype">landscape papertype</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-landscape_002c-as-_005cspecial"><code>landscape<span class="r">, as <code class="code">\special</code></span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#papersize-special">‘<samp class="samp">papersize</samp>’ special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-landscaperotate">landscaperotate</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-landscaperotate-command-line-option">landscaperotate command line option</a>:</td><td> </td><td class="printindex-index-section"><a href="#Config-file-paper-sizes">Config file paper sizes</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-landscaperotate-config-command"><code>landscaperotate <span class="r">config command</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-landscaperotate-configuration-file-command">landscaperotate configuration file command</a>:</td><td> </td><td class="printindex-index-section"><a href="#Config-file-paper-sizes">Config file paper sizes</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-last-page-printed">last page printed</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-last_002dresort-font-scaling_002c-with-DVIPSSIZES">last-resort font scaling, with <code class="code">DVIPSSIZES</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Environment-variables">Environment variables</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-last_002dresort-scaling_002c-with-R">last-resort scaling, with <code class="code">R</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-ledger-papertype">ledger papertype</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-legal-papertype">legal papertype</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-letter-paper-size"><code>letter <span class="r">paper size</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Config-file-paper-sizes">Config file paper sizes</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-letter-papertype">letter papertype</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-letterhead-tray">letterhead tray</a>:</td><td> </td><td class="printindex-index-section"><a href="#Paper-trays">Paper trays</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-letterSize-paper-size"><code>letterSize <span class="r">paper size</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Config-file-paper-sizes">Config file paper sizes</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-ligature-operations">ligature operations</a>:</td><td> </td><td class="printindex-index-section"><a href="#Encoding-file-format">Encoding file format</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-ligature_002c-defined">ligature, defined</a>:</td><td> </td><td class="printindex-index-section"><a href="#Metric-files">Metric files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-LIGKERN-encoding-file-command"><code>LIGKERN <span class="r">encoding file command</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Encoding-file-format">Encoding file format</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-lines-in-figures_002c-wrong-width">lines in figures, wrong width</a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-clipping">EPSF clipping</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-links_002c-hypertext">links, hypertext</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-specials">Hypertext specials</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-literal-headers">literal headers</a>:</td><td> </td><td class="printindex-index-section"><a href="#Literal-headers">Literal headers</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-literal-PostScript_002c-examples">literal PostScript, examples</a>:</td><td> </td><td class="printindex-index-section"><a href="#Literal-examples">Literal examples</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-literal-PostScript_002c-using">literal PostScript, using</a>:</td><td> </td><td class="printindex-index-section"><a href="#Literal-PS">Literal PS</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-llx-_0028psfile-special-option_0029"><code>llx <span class="r">(‘<samp class="samp">psfile</samp>’ special option)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-lly-_0028psfile-special-option_0029"><code>lly <span class="r">(‘<samp class="samp">psfile</samp>’ special option)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-long-documents-not-printing">long documents not printing</a>:</td><td> </td><td class="printindex-index-section"><a href="#Long-documents-fail">Long documents fail</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-low-characters_002c-shifting">low characters, shifting</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-lpr-spooler_002c-MS_002dDOS-emulation">lpr spooler, MS-DOS emulation</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-M">M</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-m-config-command-_0028available-memory_0029"><code>m <span class="r">config command (available memory)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-M-config-command-_0028mf-mode_0029"><code>M <span class="r">config command (mf mode)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-macros-for-color">macros for color</a>:</td><td> </td><td class="printindex-index-section"><a href="#Color-macro-files">Color macro files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-macros-for-epsf-inclusion">macros for epsf inclusion</a>:</td><td> </td><td class="printindex-index-section"><a href="#g_t_005cincludegraphics">\includegraphics</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-macros-for-epsf-inclusion-1">macros for epsf inclusion</a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-macros">EPSF macros</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-magnification_002c-DVI">magnification, DVI</a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-scaling">EPSF scaling</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-magnification_002c-overriding-DVI">magnification, overriding DVI</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-magnification_002c-vertical">magnification, vertical</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-mailcap-and-hypertext"><code>mailcap <span class="r">and hypertext</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-specials">Hypertext specials</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-manual-feed">manual feed</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-maxdrift">maxdrift</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-maximum-pages-printed">maximum pages printed</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-media">media</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-memory-available">memory available</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-memory-of-printer-exhausted">memory of printer exhausted</a>:</td><td> </td><td class="printindex-index-section"><a href="#Printer-errors">Printer errors</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-memory-usage_002c-and-headers">memory usage, and headers</a>:</td><td> </td><td class="printindex-index-section"><a href="#Headers-and-memory-usage">Headers and memory usage</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-memory_002c-conserving">memory, conserving</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-memory_002c-used-by-PostScript-fonts">memory, used by PostScript fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Making-a-font-available">Making a font available</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Metafont-ligature-operations">Metafont ligature operations</a>:</td><td> </td><td class="printindex-index-section"><a href="#Encoding-file-format">Encoding file format</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Metafont-mode_002c-specifying">Metafont mode, specifying</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Metafont-source-files">Metafont source files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-metric-files">metric files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Metric-files">Metric files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Minion-typeface-family">Minion typeface family</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-missfont_002elog"><code>missfont.log</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-MISSFONT_005fLOG"><code>MISSFONT_LOG</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Mitsubishi-Shinko-CHC_002dS446i-printer">Mitsubishi Shinko CHC-S446i printer</a>:</td><td> </td><td class="printindex-index-section"><a href="#No-output">No output</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-mkdvipspapers"><code>mkdvipspapers</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Config-file-paper-sizes">Config file paper sizes</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-mktexpk_002c-avoiding"><code>mktexpk<span class="r">, avoiding</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-mktexpk_002c-changing-name"><code>mktexpk<span class="r">, changing name</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Environment-variables">Environment variables</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-mode-name_002c-specifying">mode name, specifying</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-mtpk"><code>mtpk</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-multiple-master-fonts">multiple master fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-multiple-output-files">multiple output files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-multiple-paper-trays">multiple paper trays</a>:</td><td> </td><td class="printindex-index-section"><a href="#Paper-trays">Paper trays</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Murphy_002c-Tim">Murphy, Tim</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-specials">Hypertext specials</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-N">N</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-N-config-command-_0028disable-EPS_0029"><code>N <span class="r"> config command (disable EPS)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-name"><code>name</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-specials">Hypertext specials</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-narrow-fonts">narrow fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-no-output-at-all">no output at all</a>:</td><td> </td><td class="printindex-index-section"><a href="#No-output">No output</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-non_002dprinting-characters_002c-shifting">non-printing characters, shifting</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-non_002dresident-fonts">non-resident fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-nopaper_002c-paper-format-for-_002dt"><code>nopaper<span class="r">, paper format for ‘<samp class="samp">-t</samp>’</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Config-file-paper-sizes">Config file paper sizes</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-O">O</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-o-config-command-_0028output-destination_0029"><code>o <span class="r">config command (output destination)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-O-config-command-_0028page-offsets_0029"><code>O <span class="r">config command (page offsets)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-oblique-fonts">oblique fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Special-font-effects">Special font effects</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-octal-character-codes">octal character codes</a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-odd-pages-only">odd pages only</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-offset-pages">offset pages</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Omega-extensions">Omega extensions</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-option_002c-details-of">option, details of</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-options_002c-debugging">options, debugging</a>:</td><td> </td><td class="printindex-index-section"><a href="#Debug-options">Debug options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-options_002c-Dvips">options, Dvips</a>:</td><td> </td><td class="printindex-index-section"><a href="#Invoking-Dvips">Invoking Dvips</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-options_002c-reading-from-standard-input">options, reading from standard input</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-options_002c-summary">options, summary</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-summary">Option summary</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-options_002c-to-Afm2tfm">options, to Afm2tfm</a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-outline-fonts">outline fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-outline-fonts-1">outline fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Special-font-effects">Special font effects</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-output-file_002c-sectioning-of">output file, sectioning of</a>:</td><td> </td><td class="printindex-index-section"><a href="#Headers-and-memory-usage">Headers and memory usage</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-output-file_002c-setting">output file, setting</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-output-files_002c-multiple">output files, multiple</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-output-title_002c-specifying">output title, specifying</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-output_002c-inverted">output, inverted</a>:</td><td> </td><td class="printindex-index-section"><a href="#Small-or-inverted">Small or inverted</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-output_002c-none">output, none</a>:</td><td> </td><td class="printindex-index-section"><a href="#No-output">No output</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-output_002c-redirecting">output, redirecting</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-output_002c-too-small">output, too small</a>:</td><td> </td><td class="printindex-index-section"><a href="#Small-or-inverted">Small or inverted</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-P">P</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-p-config-command-_0028font-aliases_0029"><code>p <span class="r">config command (font aliases)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-P-config-command-_0028PK-path_0029"><code>P <span class="r">config command (PK path)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-page-numbers_002c-multiple-repetitions-of">page numbers, multiple repetitions of</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-page-range">page range</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-page_002c-first-printed">page, first printed</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-page_002c-last-printed">page, last printed</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-pages_002c-maximum-printed">pages, maximum printed</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PaintType"><code>PaintType</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Special-font-effects">Special font effects</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Pantone-colors">Pantone colors</a>:</td><td> </td><td class="printindex-index-section"><a href="#Color-macro-files">Color macro files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-paper-size-configuration-file-command">paper size configuration file command</a>:</td><td> </td><td class="printindex-index-section"><a href="#Config-file-paper-sizes">Config file paper sizes</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-paper-size_002c-default">paper size, default</a>:</td><td> </td><td class="printindex-index-section"><a href="#config_002eps-installation">config.ps installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-paper-size_002c-general">paper size, general</a>:</td><td> </td><td class="printindex-index-section"><a href="#Paper-size-and-landscape">Paper size and landscape</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-paper-trays">paper trays</a>:</td><td> </td><td class="printindex-index-section"><a href="#Paper-trays">Paper trays</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-paper-type">paper type</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-papersize-special"><code>papersize <span class="r">special</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#papersize-special">‘<samp class="samp">papersize</samp>’ special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-papersize-special_002c-and-no-_002dt">papersize special, and no ‘<samp class="samp">-t</samp>’</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-papersize-special_002c-first-vs_002e-last">‘<samp class="samp">papersize</samp>’ special, first vs. last</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-partial-font-downloading">partial font downloading</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PDF-files_002c-font-quality">PDF files, font quality</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-caveats">Hypertext caveats</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PDF-files_002c-making">PDF files, making</a>:</td><td> </td><td class="printindex-index-section"><a href="#Ghostscript-installation">Ghostscript installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PDF-files_002c-making-1">PDF files, making</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext">Hypertext</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PDF-files_002c-option-for">PDF files, option for</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-pdfmark"><code>pdfmark</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext">Hypertext</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-pfa-files">pfa files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-pfb-files">pfb files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-pfb-files_002c-automatically-unpacked">pfb files, automatically unpacked</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-pfm-files">pfm files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Metric-files">Metric files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Phaser-printer_002c-used-for-color-calibration">Phaser printer, used for color calibration</a>:</td><td> </td><td class="printindex-index-section"><a href="#Color-device-configuration">Color device configuration</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-physical-page-number_002c-and-_002dl">physical page number, and ‘<samp class="samp">-l</samp>’</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-physical-page-number_002c-and-_002dp">physical page number, and ‘<samp class="samp">-p</samp>’</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-physical-page-number_002c-and-bop_002dhook">physical page number, and <code class="code">bop-hook</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-hooks">PostScript hooks</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-pipes_002c-not-readable">pipes, not readable</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-pk-files">pk files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PKFONTS_002c-overrides-P"><code>PKFONTS<span class="r">, overrides</span> P</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-plotfile_002c-ps-subspecial"><code>plotfile<span class="r">, ‘<samp class="samp">ps</samp>’ subspecial</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#ps-special">ps special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-pltotf"><code>pltotf</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Metric-files">Metric files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-popen-for-output"><code>popen <span class="r">for output</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-portrait-orientation_002c-defined">portrait orientation, defined</a>:</td><td> </td><td class="printindex-index-section"><a href="#Paper-size-and-landscape">Paper size and landscape</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-positioning-accuracy">positioning accuracy</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-post-code-after-headers"><code>post <span class="r">code after headers</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-headers-from-TeX">Including headers from TeX</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PostScript-code_002c-literal">PostScript code, literal</a>:</td><td> </td><td class="printindex-index-section"><a href="#Literal-PS">Literal PS</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PostScript-encoding">PostScript encoding</a>:</td><td> </td><td class="printindex-index-section"><a href="#Encodings">Encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PostScript-encoding_002c-changing">PostScript encoding, changing</a>:</td><td> </td><td class="printindex-index-section"><a href="#Changing-PostScript-encodings">Changing PostScript encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PostScript-font-alias-file">PostScript font alias file</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PostScript-font-alias-file-1">PostScript font alias file</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PostScript-fonts">PostScript fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-fonts">PostScript fonts</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PostScript-fonts_002c-installing">PostScript fonts, installing</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-font-installation">PostScript font installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PostScript-fonts_002c-on-your-system">PostScript fonts, on your system</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-font-installation">PostScript font installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PostScript-header-files">PostScript header files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Header-files">Header files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PostScript-hooks">PostScript hooks</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-hooks">PostScript hooks</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PostScript-interaction">PostScript interaction</a>:</td><td> </td><td class="printindex-index-section"><a href="#Interaction-with-PostScript">Interaction with PostScript</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PostScript-previewers">PostScript previewers</a>:</td><td> </td><td class="printindex-index-section"><a href="#Ghostscript-installation">Ghostscript installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PostScript-units">PostScript units</a>:</td><td> </td><td class="printindex-index-section"><a href="#Bounding-box">Bounding box</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PowerPage-PostScript-implementation">PowerPage PostScript implementation</a>:</td><td> </td><td class="printindex-index-section"><a href="#No-output">No output</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-pre-code-before-headers"><code>pre <span class="r">code before headers</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-headers-from-TeX">Including headers from TeX</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-previewing-Dvips-output">previewing Dvips output</a>:</td><td> </td><td class="printindex-index-section"><a href="#Ghostscript-installation">Ghostscript installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PRINTER"><code>PRINTER</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Environment-variables">Environment variables</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-printer-configuration">printer configuration</a>:</td><td> </td><td class="printindex-index-section"><a href="#config_002eps-installation">config.ps installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-printer-configuration-file_002c-prototype">printer configuration file, prototype</a>:</td><td> </td><td class="printindex-index-section"><a href="#config_002eps-installation">config.ps installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-printer-errors">printer errors</a>:</td><td> </td><td class="printindex-index-section"><a href="#Printer-errors">Printer errors</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-printer-memory">printer memory</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-printer-memory-exhausted">printer memory exhausted</a>:</td><td> </td><td class="printindex-index-section"><a href="#Printer-errors">Printer errors</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-printer-offset">printer offset</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PRINTER_002c-and-config-file-searching"><code>PRINTER<span class="r">, and config file searching</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-searching">Configuration file searching</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-PRINTER_002c-avoided-with-_002df"><code>PRINTER<span class="r">, avoided with ‘<samp class="samp">-f</samp>’</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-printer_002c-driving-directly">printer, driving directly</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-problems">problems</a>:</td><td> </td><td class="printindex-index-section"><a href="#Diagnosing-problems">Diagnosing problems</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-property-list-files">property list files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Metric-files">Metric files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-prototype-printer-configuration-file">prototype printer configuration file</a>:</td><td> </td><td class="printindex-index-section"><a href="#config_002eps-installation">config.ps installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-ps-special"><code>ps <span class="r">special</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#ps-special">ps special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-psfile-special"><code>psfile <span class="r">special</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-psfonts_002emap"><code>psfonts.map</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-font-installation">PostScript font installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-psfonts_002emap-1"><code>psfonts.map</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Special-font-effects">Special font effects</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-psfonts_002emap-2"><code>psfonts.map</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-psheaderdir"><code>psheaderdir</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Header-files">Header files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-psi-character-missing">psi character missing</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-caveats">Hypertext caveats</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-pstopk"><code>pstopk</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-pTeX-extensions">pTeX extensions</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-pTeX-extensions-1">pTeX extensions</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-ptex-JFM"><code>ptex <span class="r">JFM</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Virtual-fonts">Virtual fonts</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-Q">Q</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-q-config-command-_0028quiet_0029"><code>q <span class="r">config command (quiet)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Q-config-command-_0028quiet_0029"><code>Q <span class="r">config command (quiet)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-quiet-operation">quiet operation</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-R">R</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-R-config-command-_0028fallback-resolution_0029"><code>R <span class="r">config command (fallback resolution)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-r-config-command-_0028page-reversal_0029"><code>r <span class="r">config command (page reversal)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-raw-tfm-files">raw tfm files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-reencode_002f_002a_002eenc"><code>reencode/*.enc</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Encodings">Encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-reencoding">reencoding</a>:</td><td> </td><td class="printindex-index-section"><a href="#Reencoding-with-Afm2tfm">Reencoding with Afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-reencoding-PostScript-fonts">reencoding PostScript fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-registered-character_002c-accessing"><code>registered <span class="r">character, accessing</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Changing-PostScript-encodings">Changing PostScript encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-remapping">remapping</a>:</td><td> </td><td class="printindex-index-section"><a href="#Reencoding-with-Afm2tfm">Reencoding with Afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-resident-fonts_002c-different-in-different-printers">resident fonts, different in different printers</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-resident-fonts_002c-different-in-different-printers-1">resident fonts, different in different printers</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-resolution">resolution</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-resolution-1">resolution</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-resolution_002c-setting">resolution, setting</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-reverse-pagination">reverse pagination</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-rhi-_0028psfile-special-option_0029"><code>rhi <span class="r">(‘<samp class="samp">psfile</samp>’ special option)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Rokicki_002c-Tomas">Rokicki, Tomas</a>:</td><td> </td><td class="printindex-index-section"><a href="#Why-Dvips">Why Dvips</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-rotate_002etex"><code>rotate.tex</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#ps-special">ps special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-rwi-_0028psfile-special-option_0029"><code>rwi <span class="r">(‘<samp class="samp">psfile</samp>’ special option)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-S">S</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-s-config-command-_0028global-save_002frestore_0029"><code>s <span class="r">config command (global save/restore)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-S-config-command-_0028pict-path_0029"><code>S <span class="r">config command (pict path)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-save_002frestore_002c-and-inverted-output">save/restore, and inverted output</a>:</td><td> </td><td class="printindex-index-section"><a href="#Small-or-inverted">Small or inverted</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-save_002frestore_002c-and-literal-PS"><code>save<span class="r">/</span>restore<span class="r">, and literal PS</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Literal-examples">Literal examples</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-save_002frestore_002c-and-specials">save/restore, and specials</a>:</td><td> </td><td class="printindex-index-section"><a href="#ps-special">ps special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-save_002frestore_002c-generating-global">save/restore, generating global</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-scaleunit"><code>scaleunit</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-scaling-of-figures">scaling of figures</a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-scaling">EPSF scaling</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-scaling-small-caps">scaling small caps</a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Scandinavian-A-ring">Scandinavian A ring</a>:</td><td> </td><td class="printindex-index-section"><a href="#Reencoding-with-Afm2tfm">Reencoding with Afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-screen-frequencies_002c-setting">screen frequencies, setting</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-headers-from-the-command-line">Including headers from the command line</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-SDict"><code>SDict</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-SDict-dictionary"><code>SDict <span class="r">dictionary</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Literal-headers">Literal headers</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-searching-config-files_002c-order-of">searching config files, order of</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-searching">Configuration file searching</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-sections-of-output-file_002c-and-memory">sections of output file, and memory</a>:</td><td> </td><td class="printindex-index-section"><a href="#Headers-and-memory-usage">Headers and memory usage</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-sections-output_002c-in-separate-files">sections output, in separate files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-security">security</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-shell-command-execution_002c-disabling">shell command execution, disabling</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-shell-escape_002c-in-config-file">shell escape, in config file</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Shinko-CHC_002dS446i-printer">Shinko CHC-S446i printer</a>:</td><td> </td><td class="printindex-index-section"><a href="#No-output">No output</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-show-PostScript-operator"><code>show <span class="r">PostScript operator</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-typesetting">PostScript typesetting</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-silent-operation">silent operation</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-simplex-mode-on-duplex-printers">simplex mode on duplex printers</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-headers-from-the-command-line">Including headers from the command line</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-slanted-fonts">slanted fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Special-font-effects">Special font effects</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-slanted-fonts_002c-making">slanted fonts, making</a>:</td><td> </td><td class="printindex-index-section"><a href="#Afm2tfm-options">Afm2tfm options</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-SlantFont"><code>SlantFont</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Special-font-effects">Special font effects</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-small-caps-fonts">small caps fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Special-font-effects">Special font effects</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Smith_002c-Arthur">Smith, Arthur</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-specials">Hypertext specials</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-spaces_002c-dropped-trailing">spaces, dropped trailing</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-caveats">Hypertext caveats</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-specials_002c-hypertext">specials, hypertext</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-specials">Hypertext specials</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-splines">splines</a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-spooler_002c-lacking">spooler, lacking</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-spooling-to-lpr-on-MS_002dDOS">spooling to lpr on MS-DOS</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-standard-I_002fO">standard I/O</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-standard-input_002c-reading-options-from">standard input, reading options from</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-standard-output_002c-output-to">standard output, output to</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-standard-PostScript_002c-required-by-Ghostview">standard PostScript, required by Ghostview</a>:</td><td> </td><td class="printindex-index-section"><a href="#Ghostscript-installation">Ghostscript installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-start_002dhook"><code>start-hook</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-hooks">PostScript hooks</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-structured-comments">structured comments</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-system-in-config-file"><code>system <span class="r">in config file</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-T">T</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-T-config-command-_0028TFM-path_0029"><code>T <span class="r">config command (TFM path)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Tektronix-Phaser-printer_002c-used-for-color-calibration">Tektronix Phaser printer, used for color calibration</a>:</td><td> </td><td class="printindex-index-section"><a href="#Color-device-configuration">Color device configuration</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-testpage_002etex"><code>testpage.tex</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-TeX-encoding_002c-changing">TeX encoding, changing</a>:</td><td> </td><td class="printindex-index-section"><a href="#Changing-TeX-encodings">Changing TeX encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-TeX_002c-including-headers-in">TeX, including headers in</a>:</td><td> </td><td class="printindex-index-section"><a href="#Including-headers-from-TeX">Including headers from TeX</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-TEXCONFIG"><code>TEXCONFIG</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Environment-variables">Environment variables</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-TEXFONTS_002c-overrides-P"><code>TEXFONTS<span class="r">, overrides</span> P</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-TEXFONTS_002c-overrides-T"><code>TEXFONTS<span class="r">, overrides</span> T</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-TEXINPUTS_002c-overrides-S"><code>TEXINPUTS<span class="r">, overrides</span> S</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-texmext_002eenc"><code>texmext.enc</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Encodings">Encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-TEXMFOUTPUT"><code>TEXMFOUTPUT</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-texmital_002eenc"><code>texmital.enc</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Encodings">Encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-texmsym_002eenc"><code>texmsym.enc</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Encodings">Encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-texmsym_002eenc-1"><code>texmsym.enc</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Changing-TeX-encodings">Changing TeX encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-TEXPICTS"><code>TEXPICTS</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Environment-variables">Environment variables</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-TEXPICTS_002c-overrides-S"><code>TEXPICTS<span class="r">, overrides</span> S</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-TEXPKS_002c-overrides-P"><code>TEXPKS<span class="r">, overrides</span> P</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-TEXSIZES_002c-overrides-R"><code>TEXSIZES<span class="r">, overrides</span> R</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-text-in-figures_002c-chopped-off">text in figures, chopped off</a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-clipping">EPSF clipping</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-tfm-files">tfm files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Metric-files">Metric files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-TFMFONTS_002c-overrides-T"><code>TFMFONTS<span class="r">, overrides</span> T</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-tftopl"><code>tftopl</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Metric-files">Metric files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Theisen_002c-Tim">Theisen, Tim</a>:</td><td> </td><td class="printindex-index-section"><a href="#Ghostscript-installation">Ghostscript installation</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-tight-bounding-box_002c-finding">tight bounding box, finding</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-title_002c-specifying">title, specifying</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-too_002dsmall-output">too-small output</a>:</td><td> </td><td class="printindex-index-section"><a href="#Small-or-inverted">Small or inverted</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-trademark-character_002c-accessing"><code>trademark <span class="r">character, accessing</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Changing-PostScript-encodings">Changing PostScript encodings</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-trailing-spaces_002c-dropped">trailing spaces, dropped</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-caveats">Hypertext caveats</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-TranScript">TranScript</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-transforming-downloaded-fonts">transforming downloaded fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-trouble">trouble</a>:</td><td> </td><td class="printindex-index-section"><a href="#Diagnosing-problems">Diagnosing problems</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Type-1-fonts">Type 1 fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Glyph-files">Glyph files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-typesetting-in-PostScript">typesetting in PostScript</a>:</td><td> </td><td class="printindex-index-section"><a href="#PostScript-typesetting">PostScript typesetting</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-U">U</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-U-config-command-_0028Xerox-4045_0029"><code>U <span class="r">config command (Xerox 4045)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-uncollated-copies">uncollated copies</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-uncompressing-PostScript">uncompressing PostScript</a>:</td><td> </td><td class="printindex-index-section"><a href="#Dynamic-creation-of-graphics">Dynamic creation of graphics</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-uniform-resource-locator">uniform resource locator</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-specials">Hypertext specials</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-unknown_002c-paper-format-for-_002dt"><code>unknown<span class="r">, paper format for ‘<samp class="samp">-t</samp>’</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#papersize-special">‘<samp class="samp">papersize</samp>’ special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-unknown_002c-paper-format-for-_002dt-1"><code>unknown<span class="r">, paper format for ‘<samp class="samp">-t</samp>’</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Config-file-paper-sizes">Config file paper sizes</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-uptex-JFM"><code>uptex <span class="r">JFM</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Virtual-fonts">Virtual fonts</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-URL_002c-definition">URL, definition</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-specials">Hypertext specials</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-URL_002c-extended-for-TeX">URL, extended for TeX</a>:</td><td> </td><td class="printindex-index-section"><a href="#Hypertext-specials">Hypertext specials</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-urx-_0028psfile-special-option_0029"><code>urx <span class="r">(‘<samp class="samp">psfile</samp>’ special option)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-ury-_0028psfile-special-option_0029"><code>ury <span class="r">(‘<samp class="samp">psfile</samp>’ special option)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-usage_002c-basic">usage, basic</a>:</td><td> </td><td class="printindex-index-section"><a href="#Basic-usage">Basic usage</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-user_002ddefinable-colors">user-definable colors</a>:</td><td> </td><td class="printindex-index-section"><a href="#User_002ddefinable-colors">User-definable colors</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-userdict_002c-and-dictionary-files"><code>userdict<span class="r">, and dictionary files</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Header-files">Header files</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-userdict_002c-used-for-header-files">userdict<span class="r">, used for header files</span></a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-V">V</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-V-config-command-_0028vf-path_0029"><code>V <span class="r">config command (vf path)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-verbose-EPSF-processing">verbose EPSF processing</a>:</td><td> </td><td class="printindex-index-section"><a href="#EPSF-macros">EPSF macros</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-vf-files">vf files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Virtual-fonts">Virtual fonts</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-virtual-font-expansion">virtual font expansion</a>:</td><td> </td><td class="printindex-index-section"><a href="#Virtual-fonts">Virtual fonts</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-virtual-font-path">virtual font path</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-virtual-fonts">virtual fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#Virtual-fonts">Virtual fonts</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-virtual-fonts_002c-creating">virtual fonts, creating</a>:</td><td> </td><td class="printindex-index-section"><a href="#Invoking-afm2tfm">Invoking afm2tfm</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-VM-exhausted">VM exhausted</a>:</td><td> </td><td class="printindex-index-section"><a href="#Printer-errors">Printer errors</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-VMusage"><code>VMusage</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Headers-and-memory-usage">Headers and memory usage</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-voffset-_0028psfile-special-option_0029"><code>voffset <span class="r">(‘<samp class="samp">psfile</samp>’ special option)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-vpl-files">vpl files</a>:</td><td> </td><td class="printindex-index-section"><a href="#Virtual-fonts">Virtual fonts</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-vptovf"><code>vptovf</code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Making-a-font-available">Making a font available</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-vscale-_0028psfile-special-option_0029"><code>vscale <span class="r">(‘<samp class="samp">psfile</samp>’ special option)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-vsize-_0028psfile-special-option_0029"><code>vsize <span class="r">(‘<samp class="samp">psfile</samp>’ special option)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#psfile-special">psfile special</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-W">W</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-W-config-command-_0028emit-warning_0029"><code>W <span class="r">config command (emit warning)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-warning-messages_002c-defining">warning messages, defining</a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-warnings_002c-suppressing">warnings, suppressing</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-whole-font-downloading">whole font downloading</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-wide-fonts">wide fonts</a>:</td><td> </td><td class="printindex-index-section"><a href="#psfonts_002emap">psfonts.map</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-X">X</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-X-config-command-_0028horizontal-resolution_0029"><code>X <span class="r">config command (horizontal resolution)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Xerox-4045">Xerox 4045</a>:</td><td> </td><td class="printindex-index-section"><a href="#Option-details">Option details</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-Y">Y</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Y-config-command-_0028vertical-resolution_0029"><code>Y <span class="r">config command (vertical resolution)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
<tr><th id="Index_cp_letter-Z">Z</th><td></td><td></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-Z-config-command-_0028compress-fonts_0029"><code>Z <span class="r">config command (compress fonts)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-z-config-command-_0028secure-mode_0029"><code>z <span class="r">config command (secure mode)</span></code></a>:</td><td> </td><td class="printindex-index-section"><a href="#Configuration-file-commands">Configuration file commands</a></td></tr>
<tr><td></td><td class="printindex-index-entry"><a href="#index-zero-dimensions-and-setting-paper-size">zero dimensions and setting paper size</a>:</td><td> </td><td class="printindex-index-section"><a href="#Config-file-paper-sizes">Config file paper sizes</a></td></tr>
<tr><td colspan="4"> <hr></td></tr>
</table>
<table class="cp-letters-footer-printindex"><tr><th>Jump to: </th><td><a class="summary-letter-printindex" href="#Index_cp_symbol-1"><b>!</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-2"><b>"</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-3"><b>%</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-4"><b>(</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-5"><b>+</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-6"><b>-</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-7"><b>.</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-8"><b>/</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-9"><b>6</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-10"><b>8</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-11"><b><</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-12"><b>=</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-13"><b>@</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-14"><b>\</b></a>
<a class="summary-letter-printindex" href="#Index_cp_symbol-15"><b>|</b></a>
<br>
<a class="summary-letter-printindex" href="#Index_cp_letter-A"><b>A</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-B"><b>B</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-C"><b>C</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-D"><b>D</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-E"><b>E</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-F"><b>F</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-G"><b>G</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-H"><b>H</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-I"><b>I</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-J"><b>J</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-K"><b>K</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-L"><b>L</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-M"><b>M</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-N"><b>N</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-O"><b>O</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-P"><b>P</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-Q"><b>Q</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-R"><b>R</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-S"><b>S</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-T"><b>T</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-U"><b>U</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-V"><b>V</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-W"><b>W</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-X"><b>X</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-Y"><b>Y</b></a>
<a class="summary-letter-printindex" href="#Index_cp_letter-Z"><b>Z</b></a>
</td></tr></table>
</div>
</div>
</div>
</body>
</html>
|