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
|
%<*!ist>
%%
%%^^A%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%^^A $Id: dtk.dtx,v 1.8 2002/04/10 21:03:42 gene Exp gene $
%%^^A%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\iffalse
%% Purpose:
%% LaTeX Class and Styles for ``Die TeXnische Komoedie''.
%%
%% Documentation:
%% The documentation can be generated from the original file
%% dtk.dtx with the doc style/package. LaTeX the file dtk.tex to
%% get the full documentation in DVI format.
%%
%%
%% Author: Gerd Neugebauer
%% Mainzer Str. 8
%% 56321 Rhens (Germany)
%% Mail: gene@gerd-neugebauer.de
%%
%% Copyright (C) 1995-1996 Gerd Neugebauer
%% Copyright (C) 1997-2002 DANTE, Deutschsprachige
%% Anwendervereinigung TeX e.V.
%%
%% dtk.dtx is distributed in the hope that it will be useful, but
%% WITHOUT ANY WARRANTY. No author or distributor accepts
%% responsibility to anyone for the consequences of using it or for
%% whether it serves any particular purpose or works at all, unless
%% he says so in writing.
%%
%% Everyone is granted permission to copy, modify and redistribute
%% dtk.dtx, provided this copyright notice is preserved and any
%% modifications are indicated.
%%
%%
%<*class>
%% This class is still under development and may be replaced with a
%% new version which provides enhanced functionality.
%</class>
%<*!class>
%% This package is still under development and may be replaced with
%% a new version which provides enhanced functionality.
%</!class>
%%
%\fi
%^^A%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% \title{A \LaTeX\ Class and Style for\\``Die \TeX{}nische
% Kom{\"o}die''\thanks{This file documents \filename\ version
% \fileversion\ as of \filedate.}}
% \author{Gerd Neugebauer\\
% Mainzer Str.\ 8\\
% 56321 Rhens (Germany)\\
% Net: \texttt{gene@gerd-neugebauer.de}}
%
% \date{{\footnotesize Documentation date: \docdate}}
%
% \maketitle
%
%^^A%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \changes{0.24}{1996/05/10}{First public release.}
% \changes{0.25}{1996/05/27}{Towards the new layout}
% \changes{0.26}{1996/05/27}{Towards the new layout}
% \changes{0.27}{1996/05/27}{Towards the new layout}
% \changes{0.28}{1996/05/27}{Towards the new layout}
% \changes{0.29}{1996/06/21}{Logos improved. ContentsArt slightly modified.}
% \changes{1.0}{1996/07/18}{The new layout is ready. (DTK 1/96 in print)}
% \changes{1.1}{1996/09/13}{Fixing a minor problem with long titles.\\
% double backslash in titles are now ignored in headlines and toc.}
% \changes{1.3}{1997/02/08}{Ancient layout moved to a class option file.}
%^^A%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% \DoNotIndex{\ ,\",\',\.,\[,\\,\],\^,\`,\~,\(,\),\,,\/,\-,\:,\=,\@,\~,\^}
% \DoNotIndex{\@M,\@dottedtocline}
% \DoNotIndex{\@gobble,\@gobbletwo,\@highpenalty,\@ifnextchar,\@ifstar}
% \DoNotIndex{\@ifundefined,\@namedef,\@plus,\@pnumwidth,\@startsection}
% \DoNotIndex{\@starttoc}
% \DoNotIndex{\@tempboxa,\@tempcnta}
% \DoNotIndex{\@tempdima,\@tempdimb,\@thefnmark,\@undefined}
% \DoNotIndex{\@ixpt,\@vpt,\@vipt,\@viipt,\@viiipt}
% \DoNotIndex{\@xpt,\@xipt,\@xiipt,\@xivpt,\@xviipt,\@xxpt,\@xxvpt}
% \DoNotIndex{\AA,\AE,\AtBeginDocument}
% \DoNotIndex{\CurrentOption,\DeclareOption,\H,\Huge,\L,\LARGE,\LaTeX,\Large}
% \DoNotIndex{\LoadClass,\O,\OE,\OptionNotUsed,\PassOptionsToClass}
% \DoNotIndex{\ProcessOptions,\ProvidesClass,\ProvidesPackage}
% \DoNotIndex{\RequirePackage,\TeX}
% \DoNotIndex{\aa,\addcontentsline,\addpenalty,\advance,\addvspace,\ae}
% \DoNotIndex{\ast,\arabic}
% \DoNotIndex{\b,\baselineskip,\begin,\begingroup,\bf,\bgroup,\egroup}
% \DoNotIndex{\bigskip,\box,\bullet}
% \DoNotIndex{\c,\cal,\catcode,\char,\chardef,\circ,\clearpage,\closein}
% \DoNotIndex{\closeout,\clubpenalty,\count,\csname}
% \DoNotIndex{\d,\def,\dimen,\diamond,\divide,\documentclass,\dp}
% \DoNotIndex{\divide}
% \DoNotIndex{\else,\em,\empty,\end,\endcsname,\endgroup,\endinput,\endlist}
% \DoNotIndex{\expandafter,\fbox,\fi,\footskip,\framebox,\frenchspacing}
% \DoNotIndex{\futurelet,\gdef,\global,\gobble}
% \DoNotIndex{\hangafter,\hangindent,\hbox,\headheight,\headsep,\hfil}
% \DoNotIndex{\hfill,\hrule,\hskip,\hspace,\hss,\ht,\huge,\ifcat,\ifcase}
% \DoNotIndex{\ifeof,\ifdim,\ifnum,\ifx}
% \DoNotIndex{\ignorespaces,\immediate,\index,\input,\it}
% \DoNotIndex{\itemindent,\itemsep,\jobname,\kern,\l,\labelsep,\labelwidth}
% \DoNotIndex{\large,\leavevmode,\leftmark,\leftskip,\let,\list}
% \DoNotIndex{\llap,\long,\lower}
% \DoNotIndex{\m@th,\makebox,\magstep,\makeindex,\markboth,\mbox,\medskip}
% \DoNotIndex{\multiply}
% \DoNotIndex{\newblock,\newcommand,\newcount,\newenvironment,\newfont}
% \DoNotIndex{\newif,\newpage,\newread,\newwrite}
% \DoNotIndex{\nobreak,\noindent,\normalsize,\null,\o,\oe}
% \DoNotIndex{\openin,\openout,\or,\pagestyle,\par,\paragraph,\parbox}
% \DoNotIndex{\parfillskip,\parindent,\parsep,\parskip,\partopsep}
% \DoNotIndex{\penalty,\quad}
% \DoNotIndex{\raggedbottom,\raise,\relax,\renewcommand,\renewenvironment}
% \DoNotIndex{\repeat,\rightskip,\rm,\rule}
% \DoNotIndex{\sbox,\sc,\scriptsize,\section,\selectfont,\setcounter}
% \DoNotIndex{\settowidth,\sf,\sfcode,\sl}
% \DoNotIndex{\sloppy,\small,\space,\ss,\string,\symbol}
% \DoNotIndex{\t,\tenex,\textstyle,\the,\thepage,\thispagestyle,\time,\tiny}
% \DoNotIndex{\topmargin,\topsep,\tt,\typeout}
% \DoNotIndex{\u,\unitlength,\usecounter,\v,\varepsilon,\vbox}
% \DoNotIndex{\vfill,\vsize,\vskip,\vspace,\vss}
% \DoNotIndex{\wd,\widowpenalty,\write,\xdef,\z@}
%
%^^A%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \CheckSum{2615}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
%%
%%^^A%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%</!ist>
%
% \begin{abstract}
%
% dtk.dtx provides a class and style file for typesetting ``Die
% \TeX\-nische Ko\-m\"o\-die''---the communications of the German
% \TeX{} Users Group DANTE e.V. This means that this class can be
% used by article writers to typeset a single article as well as to
% produce the complete journal.
%
% The class and style file is written in a way that it can be used
% both with \LaTeX\,2.09 and \LaTeXe. Thus it can be used by all
% persons which are familiar with any flavor of \LaTeX.
%
% The features of \LaTeXe\ are provided in the \LaTeX\,2.09 mode only
% to a certain extend. Thus it might not be possible to typeset an
% article prepared for \LaTeXe\ with \LaTeX\,2.09.
%
% On the other side it is possible to process an article prepared
% for \LaTeX\,2.09 with \LaTeXe{} (in native mode). This is justified
% since \LaTeXe{} is the standard nowadays and \LaTeX\,2.09 should
% cease to exists in the next decade.
% \end{abstract}
%
% \newpage
% \tableofcontents
% \newpage
%
% \section{The History}
%
% This documentclass/style is a complete reimplementation of a
% predecesor style. This predecessor style was a modification of
% the tugboat.sty which has been carried out mainly by Gabriele
% Kruljac. Some improvements have been made in this style by
% Joachim Schrod and Luzia Dietsche.
%
% In 1995 the it appeared necessary to have a document class for the
% production of ``Die \TeX nische Kom\"odie''. Up to this time the
% communications of the German speaking \TeX{} users group had been
% typeset with \LaTeX\,2.09 which was already outdated at this
% time. In addition ideas for an improved layout had been collected
% which should be incorporated into the new class.
%
% Thus Gerd Neugebauer started to derive a new class by modifying
% options and macros of the standard document class \texttt{article}.
%
% At this time it was not unususal for many installations not to
% provide the current \LaTeXe{} but still to have \LaTeX\,2.09
% only. Thus one design decision was to have a document style as
% well as a document class. The requirement was met by providing a
% set of definitions which emulate some of the new features of
% \LaTeX{} under the old releases.
%
% The coding was done by Gerd Neugebauer but many influences of
% others have found their way into the code. Even so nearly no code
% has been taken from the predecessor style the layout has been
% copied in the first release of dtk.dtx (1.0).
%
% Into the next releases (1.1 to 1.3) many changes for the new
% layout have been incorporated. Many suggestions of the editorial
% board of ``Die \TeX nische Kom\"odie'' had been integrated.
% Especially the following persons contributed during this process:
% Luzia Dietsche, Bernd Raichle, Volker RW Schaa, Rainer Sch\"opf,
% and Andreas Dafferner.
%
% Over the years several additions and corrections have made it
% into some additional packages which have been used for the
% production of ``Die \TeX nische Kom\"odie''. Especially in 1999
% the fonts have been changed from Computer Modern to EC. In 2000
% the text area has been changed. Finally all changes have been
% integrated into dtk.dtx. The contributions for this release came
% from Bernd Raichle, Peter Willardt, Rolf Niepraschk, and Werner
% Lemberg.
%
% The 2002 edition of dtk.dtx includes some minor changes to
% support the use besides the production of ``Die \TeX nische
% Kom\"odie''. In addition the major change is that the
% bibliography is typeset in ragged right.
%
%
% \section{The User Interface}
%
% The user interface can be divided into two parts. The first part
% concerns the normal user who is writing a single article. The
% second part concerns the user who composes a complete journal.
%
%
% \subsection{The User Interface for Article Writers}
%
% The user interface for ordinary users is mainly the interface as
% it is provided by the documentclass article. In addition to the
% normal commands the following macros and environments are defined:
%
% \DescribeMacro{\address}
% This macro is used to put the address of an author into the list of
% authors. It should be given before the \verb|\maketitle| command. The
% first argument is the first name of an author. The second argument is the
% last name of the author. The third argument is it's address. Several
% lines in the address are separated by \verb|\\|. Missing arguments should
% be filled with \verb|\null|.
%
% Several invocations of \verb|address| are possible. E.g. if the article
% has been written by several authors. The address and the author can be
% omitted completely --- e.g. for anonoymous letters to the editor. But
% this should not be the normal case.
%
% \DescribeEnv{abstract}
% Each article should have be started with a short paragraph describing
% what this article is about. This paragraph is called abstract. The
% environment \verb|abstract| is meant for marking a paragraph as
% abstract.
%
%
%
% The following restrictions should be taken into account:
%
% The sectioning commands are mapped to their star variants. This
% means that the commands like \verb|\section| are not numbered. It
% should not be tried to to put references to those commands.
%
% The following logos are provided by this class and separately by
% the package \verb|dtklogos| if not defined somewhere else. You
% are strongly encouraged to use those macros to typeset the logos
% instead of making your own.
% \smallskip
%
% \begin{tabular}{ll}
% \texttt{\char'134AmSTeX} &\AmSTeX \\
% \texttt{\char'134AmS} &\AmS \\
% \texttt{\char'134BibTeX} &\BibTeX \\
% \texttt{\char'134dante} &\dante \\
% \texttt{\char'134Dante} &\Dante \\
% \texttt{\char'134DTK} &\DTK \\
% \texttt{\char'134eTeX} &\eTeX \\
% \texttt{\char'134eV} &\eV \\
% \texttt{\char'134emTeX} &\emTeX \\
% \texttt{\char'134LAmSTeX} &\LAmSTeX \\
% \texttt{\char'134LaTeXTeX} &\LaTeXTeX \\
% \texttt{\char'134LaTeXe} &\LaTeXe \\
% \texttt{\char'134LaTeX} &\LaTeX \\
% \texttt{\char'134LyX} &\LyX \\
% \texttt{\char'134METAFONT} &\MF \\
% \texttt{\char'134METAPOST} &\MP \\
% \texttt{\char'134MF} &\MF \\
% \texttt{\char'134MP} &\MP \\
% \texttt{\char'134MakeIndex}&\MakeIndex \\
% \texttt{\char'134NFSS} &\NFSS \\
% \texttt{\char'134NTS} &\NTS \\
% \texttt{\char'134PS} &\PS \\
% \texttt{\char'134PiCTeX} &\PiCTeX \\
% \texttt{\char'134PubliCTeX}&\PubliCTeX \\
% \texttt{\char'134TUG} &\TUG \\
% \texttt{\char'134TeXXeT} &\TeXXeT \\
% \texttt{\char'134TeXeT} &\TeXeT \\
% \texttt{\char'134WinEdt} &\WinEdt \\
% \texttt{\char'134WinEdtKK} &\WinEdtKK
% \end{tabular}
%
% \DescribeMacro{\footnote}
% Footnotes are typeset in a special way. As a consequence of the
% inplementation \TeX{} is not allowed to split footnotes across
% several pages. Thus you have to keep your footnotes short. It is
% bad style to pack the main body of text into footnotes (except
% for critical editions).
%
% \subsection{Logical Markup}
%
% One of the advantages of \LaTeX\ is the possiblity to use logical
% markup. For this purpose several markup macros are provided.
% Unfortunately the macros provided are not sufficient in several
% situations. Thus this class provides some additional markup
% macros to come closer to the ideal situation.
%
% \DescribeMacro{\File}
% This macro is intended to be used for typesetting file names.
%
% \DescribeMacro{\Package}
% This macro is intended to be used for typesetting package names.
%
% \DescribeMacro{\Program}
% This macro is intended to be used for typesetting program names.
%
% \DescribeMacro{\Command}
% This macro is intended to be used for typesetting command names.
% For instance command names are relevant when talking about Unix
% commands.
%
% \DescribeMacro{\Macro}
% This macro is intended to be used for typesetting macro names.
%
% \DescribeMacro{\Environment}
% This macro is intended to be used for typesetting environment names.
%
% \DescribeMacro{\Email}
% This macro is intended to be used for typesetting email addresses.
%
% \DescribeMacro{\Acronym}
% This macro is intended to be used for typesetting acronyms. It is
% highly recommended to use this macro sparsingly
%
%
% \subsection{The Interface for the Production of the Whole Journal}
%
% The first thing one needs to know is that a complete journal
% starts with a title page. This title page contains the volume,
% the number and the date of publication. Since part of this
% information is used later it is stored in macros.
%
% \DescribeMacro{\DieTeXnischeKomoedie}
% The macro \verb|\DieTeXnischeKomoedie| is provided for this purpose. It
% takes three arguments. The first argument is the number. The second
% argument is the annual set and the third argument is the publication
% date.
%
% \DescribeMacro{\CoverArt}
% The macro \verb|\DieTeXnischeKomoedie| calls the macro \verb|\CoverArt|
% to typeset the cover page. \verb|\CoverArt| gets the same three arguments
% as the calling macro \verb|\DieTeXnischeKomoedie|. This macro is
% responsible to fill the first page adequately. This maro might be
% redefined to alter the layout of the journal.
%
% \DescribeMacro{\Label}
% The macro \verb|\label| has been redefined to be local for each
% article. Thus it turned out to be necessary to allow assigning of
% labels which are not restricted by this ``module system''. The
% macro \verb|\Label| sets such a global label.
%
% \DescribeMacro{\Ref}
% The macro \verb|\ref| has been redefined to be local for each
% article. The macro \verb|\Ref| references a global label set with
% \verb|Label|.
%
% \DescribeMacro{\Pageref}
% The macro \verb|\pageref| has been redefined to be local for each
% article. The macro \verb|\Pageref| references a global label set with
% \verb|Label|.
%
% \DescribeMacro{\NeedPackage}
% Usually the article for the complete journal are stored in
% different files. If an article requires a package it has to be
% loaded in the preamble of the document. The macro
% \verb|\NeedPackage| provides a means to specify the required
% packages in the article files. Unfortunately \LaTeX{} does not
% provide a way to load missing packages in the document iyself
% thus the only reasonable action for this macros is to issue a
% warning message if a needed package is not found. Nevertheless
% this helps finding potential problems.
%
%
%
%
% \vfill\noindent\hrulefill%^^A---------------------------------------------
%
% \emph{To be completed}
%
% \noindent\hrulefill\vfill\null%^^A----------------------------------------
%
%
% \subsection{The Interface for the Production of PDF Reprints}
%
% A reprint of an article can be produced in PDF format. To
% accomplish this the package \texttt{dtk-pdf} is provided. This
% package makes provisions to produce an appropriate header and
% typeset the address information at the end.
%
% To use the package you can use a driver file with the following
% structure:
%
% \begin{quote}
% \verb|\documentclass{dtk}|\\
% \texttt{\textit{preamble for article}}\\
% \verb|\usepackage{dtk-pdf}|\\
% \verb|\renewcommand\Volume{|\texttt{\textit{volume}}\verb|}|\\
% \verb|\renewcommand\Pages{|\texttt{\textit{pages}}\verb|}|\\
% \verb|\begin{document}|\\
% \verb|\input{|\texttt{\textit{tex\_file}}\verb|}|\\
% \verb|\Address|\\
% \verb|\end{document}|
% \end{quote}
%
% Here \texttt{\textit{preamble for article}} should be replaced by
% the document preamble required for the production of the article.
% \texttt{\textit{volume}} is the volume of ``Die \TeX nische
% Kom\"odie'' in which the article has been published originally.
% \texttt{\textit{pages}} is the range of pages on which is has
% been published. Finally the article itself is included. This
% assumes that the article---without preamble---is contained in a
% file by its own.
%
%
%
%
%
% \section{Notes on the Production of the Journal}
%
% Several problems have to be solved for the production os the
% whole journal. This section collects some of them and shows which
% roads have been taken.
%
% \subsection{References}
% References are done in \LaTeX\ with \verb|\label| and
% \verb|\ref|. Since several articles are collected in the
% complete journal it may happen that the same label is used in
% different articles. To avoid name clashes the definitions of
% \verb|\label| and \verb|\ref| have been modified to prepend a
% unique prefix.
%
% To enable you to make references across articles the original
% definitions of \verb|\label| and \verb|\ref| have been saved in
% \verb|\Label| and \verb|\Ref| respectively.
%
%
% \subsection{List of Authors}
% The list of authors is collected for the whole journal. This list
% is sorted alphabetically. To automate this process the names are
% written to the index file and makeindex is used to perform the
% sorting. Thus it is necessary for the complete journal to be run
% through \LaTeX, makeindex, and \LaTeX\ again.
%
%
% \subsection{Bibliography}
% The bibliography is prepared with \BibTeX. Since several articles
% are compiled we assume that the single articles are processed
% separately before. During this processing \BibTeX\ can be used to
% generate the appropriate bbl file.
% Things are arranged to include the bbl file for the article in
% question.
%
% One problem is not solved. This is the uniqueness of the \BibTeX\
% labels. Here manual invention is required.
%
%
% \StopEventually{}
% \newpage
% \if@undefined\environment
% \newenvironment{environment}[1]{}{}
% \fi
%
%
% \section{The Version Information}
%
% The following lines define the version information for the class
% and the pdf package file.
%
% \begin{macrocode}
%<*class|pdf|logos>
\def\DTKrcs$#1: #2 #3${#2}
\def\filename{dtk.dtx}
\xdef\fileversion{\DTKrcs$Revision: 1.8 $}
\xdef\filedate{\DTKrcs$Date: 2002/04/10 21:03:42 $}
\let\docversion=\fileversion
\let\docdate=\filedate
%</class|pdf|logos>
% \end{macrocode}
%
%
% \section{The Documentation Driver}
%
% The documentation driver changes dtk.dtx into a self-extracting
% documentation. Thus it is possible to run \LaTeX{} on dtk.dtx to
% produce the documentation.
%
% The documentation can be adapted in a file named dtk.dcf
% (documentation configuration). This file can contain instructions
% for \verb|docstrip|. Especially useful might be the instruction
%
% \verb|\OnlyDescription|
%
% which supresses the generation of the implementation description.
%
% \changes{1.3}{1997/01/27}{The documentation driver has been
% integrated.}
% \begin{macrocode}
%<*driver>
\documentclass{ltxdoc}
\usepackage{dtklogos}
% \end{macrocode}
%
% Modify the behaviour of \verb|ltxdoc|. Those settings can be
% overwritten with local settings afterwards.
%
% \begin{macrocode}
\RecordChanges
\EnableCrossrefs
\CodelineIndex
\setcounter{IndexColumns}2
\setlength{\parskip}{.5ex}
\setlength{\parindent}{0pt}
% \end{macrocode}
%
% Local configurations can be made in \verb|dtk.dcf|.
%
% \begin{macrocode}
\InputIfFileExists{dtk.dcf}{}{}
% \end{macrocode}
%
% Define some logos.
%
% \begin{macrocode}
\begin{document}
% \end{macrocode}
%
% Ready to read the dtx file.
%
% \begin{macrocode}
\DeleteShortVerb{|}
\DocInput{dtk.dtx}
% \end{macrocode}
%
% We want to see the change log.
%
% \begin{macrocode}
\newpage
\PrintChanges
% \end{macrocode}
%
% An index is highly desirable.
%
% \begin{macrocode}
\newpage
\PrintIndex
% \end{macrocode}
%
% That's it.
%
% \begin{macrocode}
\end{document}
%</driver>
% \end{macrocode}
%
%
% \section{The Implementation}
%
%
% The implementation is mainly based on existing styles/classes. This file
% contains only adaptions required to provide the logical markup
% and the definitions to get the special layout of ``Die \TeX
% nische Kom\"odie''.
%
%
% \subsection{Basic Definitions}
%
% \begin{macrocode}
%<*class>
% \end{macrocode}
%
% Now we need a boolean to see if we are in the author version or
% in the full version. The author version has several commands
% disabled. The full version is turned on by giving the option
% \verb|full| to the documentclass/style command.
%
% \begin{macrocode}
\newif\ifDTK@Author@
\DTK@Author@true
% \end{macrocode}
%
% The boolean \verb|DTK@german@| is used to determine if the german
% package should be loaded automatically. Usually it is turned on.
% Under certain circumstances it might be necessary to load other
% packages before the german package. Thus this variable can be set
% via a package option.
%
% \begin{macrocode}
\newif\ifDTK@german@
\DTK@german@true
% \end{macrocode}
%
%
% \subsection{Compatibility Definitions}
%
% Since we want to use this style with \LaTeX\,2.09 and \LaTeXe{} we have
% to define a common interface. For this purpose we use a subset of
% the style writers interface already defined for \LaTeXe{} style
% writers. Since some macros are not defined in \LaTeX\,2.09 we
% implement them --- at least to the degree needed here.
%
% Starting with release 1.4 the backward compatibility may not work
% any longer. It will be eliminated in a future release.
%
% \begin{macrocode}
\ifx\documentclass\@undefined
% \end{macrocode}
%
% \begin{macro}{\RequirePackage}
% The macro \verb|RequirePackage| simply tries to load the appropriate
% style file. The category code of \verb|@| is changed temporarily.
% The old value is is saved in \verb|\DTK@cat| and restored at the end.
%
% Optional arguments are not supported, yet.
%
% \begin{macrocode}
\newcommand\RequirePackage[1]{
\chardef\DTK@cat=\the\catcode`\@
\catcode`\@=11
\input{#1.sty}%
\catcode`\@=\DTK@cat}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\LoadClass}
% The concept of class and package files has not been so different in
% \LaTeX\,2.09. Thus the same that has been said for \verb|\RequirePackage|
% holds also for the macro \verb|\LoadClass|. Thus we just make it a
% synonym.
%
% \begin{macrocode}
\let\LoadClass=\RequirePackage
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\InputIfFileExists}
% Now things get a little bit more complicated. To implement the
% macro \verb|\InputIfFileExists| we try to open the file. If this
% fails we assume that the file does not exist. The appropriate
% action is performed in both cases.
%
% \begin{macrocode}
\newcommand\InputIfFileExists[3]{%
\openin\DTK@file #1
\ifeof\DTK@file\closein\DTK@file #3%
\else\closein\DTK@file #2\input{#1}%
\fi}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\DeclareOption}
% The options in \LaTeX\,2.09 are defined as special named
% macros. This is emulated here. The star variant is simply mapped
% to do nothing.
% \begin{macrocode}
\newcommand\DeclareOption{\@ifstar{\@gobble}{\DTK@DeclareOption}}
\newcommand\DTK@DeclareOption[2]{\@namedef{ds@#1}{#2}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ProcessOptions}
% In \LaTeX\,2.09 the options are processed automatically. Thus
% this macro is simply a noop.
% \begin{macrocode}
\let\ProcessOptions=\relax
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\OptionNotUsed}
% This feature is not present in \LaTeX\,2.09. Thus the argument is
% silently absorbed and the macro is simply a noop.
% \begin{macrocode}
\let\OptionNotUsed=\gobble
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ProvidesClass}
% This declaration is used to type out the version information.
% \begin{macrocode}
\def\ProvidesClass#1[#2]{\typeout{Document Style #1 #2}}
% \end{macrocode}
% \end{macro}
%
% Just for fun we define some font switching commands. In fact the
% behaviour in \LaTeXe{} is more complex. But I think these
% definitions are enough to avoid errors.
% \begin{macrocode}
\newcommand\emph[1]{{\em #1}\/}
\newcommand\textbf[1]{{\bf #1}}
\newcommand\textrm[1]{{\rm #1}}
\newcommand\textsc[1]{{\sc #1}}
\newcommand\textsf[1]{{\sf #1}}
\newcommand\textsl[1]{{\sl #1\/}}
\newcommand\textit[1]{{\it #1\/}}
\newcommand\texttt[1]{{\tt #1}}
\@ifundefined{fontshape}{\let\fontshape=\@gobble}{}
\@ifundefined{selectfont}{\let\selectfont=\relax}{}
\newcommand\providescommand[2]{\ifx#1\@undefined\newcommand#1{#2}\fi}
% \end{macrocode}
%
% \begin{macrocode}
\fi
% \end{macrocode}
%
% We need a new handle to read files. This handle will be used to
% implement \verb|\InputIfFileExists|. Since \verb|\newread| is
% declared \verb|\outer| we have to allocate the new handle here. It is
% just used in the \LaTeX\,2.09 mode.
%
% \begin{macrocode}
\newread\DTK@file
% \end{macrocode}
%
% Now we can continue without considering the \LaTeX{} dialect any
% more. Any changes we make from now on are exclusivly based on the
% interface defined above.
%
% This is all we had to do to implement the compatibility mode. It might
% turn out that more features are desirable. Those extensions are left to
% future versions of this class, eh sorry, style.
%
%
%
% \subsection{Initializations}
%
%
% Now we can start to define the class. The version date is taken
% from the macro \verb|\filedate|. This macro is defined at the
% beginning of this file. The value is changed by the version
% control system RCS.
% \changes{1.4}{2000/08/21}{File version added to class identifier.}
% \begin{macrocode}
\ProvidesClass{dtk}[\filedate\space\fileversion\space gene]
% \end{macrocode}
%
% The options to switch to other point sizes are disabled. Nobody
% is supposed to use this class with another than the single design
% size.
% \begin{macrocode}
\DeclareOption{10pt}{\OptionNotUsed}
\DeclareOption{11pt}{\OptionNotUsed}
\DeclareOption{12pt}{\OptionNotUsed}
% \end{macrocode}
%
% The options to switch the oneside and twoside settings are
% disabled. Nobody is supposed to use this class with another than
% the single design size.
% \begin{macrocode}
\DeclareOption{twoside}{\OptionNotUsed}
\DeclareOption{oneside}{\OptionNotUsed}
% \end{macrocode}
%
% We define an internal style option ``full''. This loads
% the multicolumn package from the Mainz distribution. It is only
% needed to produce the full journal. Additionally several macros
% are only defined in the full version. This makes sure that authors can
% not play with too much internal macros.
% \begin{macrocode}
\DeclareOption{full}{\DTK@Author@false}
% \end{macrocode}
%
% The package option \verb|omitgerman| can be used to omit the
% loading of the package \verb|german.sty|. This migth be necessary
% if packages are required which have to be loaded before
% \verb|german|.
% \begin{macrocode}
\DeclareOption{omitgerman}{\DTK@german@false}
% \end{macrocode}
%
% In 1996 the layout of ``Die TeXnische Kom\"odie'' has been
% changed. The option \verb|ancient| can be used to switch back to
% the old layout.
% \begin{macrocode}
\DeclareOption{ancient}{\def\DTK@layout{95}}
% \end{macrocode}
%
% \begin{macrocode}
\DeclareOption{95}{\def\DTK@layout{95}}
% \end{macrocode}
%
% \begin{macrocode}
\DeclareOption{96}{\def\DTK@layout{96}}
% \end{macrocode}
%
% \begin{macrocode}
\DeclareOption{97}{\def\DTK@layout{97}}
% \end{macrocode}
%
% \begin{macrocode}
\DeclareOption{98}{\def\DTK@layout{98}}
% \end{macrocode}
%
% \begin{macrocode}
\DeclareOption{99}{\def\DTK@layout{99}}
% \end{macrocode}
% \changes{1.4}{2000/08/12}{Option for 2000 added.}
% \begin{macrocode}
\DeclareOption{00}{\def\DTK@layout{00}}
% \end{macrocode}
% \changes{1.5}{2001/04/23}{Option for 2001 added.}
% \begin{macrocode}
\DeclareOption{01}{\def\DTK@layout{01}}
% \end{macrocode}
% \changes{1.7}{2001/10/04}{Option for 2002 added.}
% \begin{macrocode}
\DeclareOption{02}{\def\DTK@layout{02}}
% \end{macrocode}
%
% The remaining options are handed down to the base class \verb|book|.
% This works for \LaTeXe{} and is a noop for \LaTeX\,2.09.
% \begin{macrocode}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
% \end{macrocode}
%
% Now we can process all options. Again this works for \LaTeXe{}
% and is a noop for \LaTeX\,2.09 since the options are
% automatically processed there.
% \begin{macrocode}
\ProcessOptions
% \end{macrocode}
%
% \subsection{Loading the Used Packages/Styles}
%
% This class is a variation of the \verb|book| class. Thus
% we load the base class. This loading is done with the macro from
% the interface definition or the built-in \LaTeXe{} primitive.
% \begin{macrocode}
\LoadClass{book}
% \end{macrocode}
%
% The T1 font encoding is used.
% \changes{1.4}{2000/08/12}{T1 font encoding enabled.}
%
% \begin{macrocode}
\RequirePackage[T1]{fontenc}
%</class>
% \end{macrocode}
%
% For old issues of the journal the OT1 font encoding is used
% instead.
%
% \begin{macrocode}
%<*ninetyfive|ninetysix|ninetyseven|ninetyeight>
\RequirePackage[OT1]{fontenc}
%</ninetyfive|ninetysix|ninetyseven|ninetyeight>
%<*class>
% \end{macrocode}
%
% The package ``\texttt{ngerman}'' is used since this class is
% intended to be used by german users mainly. As one result the
% language is set to german as default. On the other side some
% parameters are modified to get a layout according to german
% habits. E.g. fench spacing is activated.
%
% There are some known problems when (n)german.sty is used. Therefore
% it might turn out necessary to load (n)german.sty after other
% packages have been loaded. For this purpose the option
% |omitgerman| can be used. To ensure proper operation of dtk it is
% necesary to call the macro \verb|\DTKgerman| after the style
% (n)german has been loaded.
%
% \changes{1.7}{2001/11/03}{The package ngerman is used to support
% the current orthography.}
% \begin{macrocode}
\ifDTK@german@
\RequirePackage{ngerman}
\selectlanguage{ngerman}
\else
\typeout{*** Warning: Loading of (n)german has been omitted. You have to
load it manually.}
\typeout{*** Don't forget to use the macro \string\DTKgerman\space
afterwards.}
\fi
%<*ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine>
\ifDTK@german@
\RequirePackage{german}
\selectlanguage{german}
\fi
%</ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine>
% \end{macrocode}
%
% The package ``\texttt{multicol}'' is used in the full version. Thus
% we only load it if the option \verb|full| has been given.
% \changes{1.4}{2000/08/06}{Packages graphicx and color are required.}
% \begin{macrocode}
\ifDTK@Author@\else
\RequirePackage{multicol}
\RequirePackage{graphicx,color}
\fi
\RequirePackage{dtklogos}
% \end{macrocode}
%
%
% \begin{macro}{\NeedPackage}
% \changes{1.3}{1997/01/29}{Macro added.}
% This macro can be used to declare in a single article which
% packages are required. At this places it is too late to load
% them if they are not loaded already. In stead a fat message is
% presented which warns the user of potential problems.
%
% This macro takes a single argument which is the name of
% \emph{one} package. Multiple packages and versions are not
% supported (yet).
%
% This macro is copied and modified from an \LaTeX2\ (june 1996)
% internal. It seems as \LaTeXe\ defines a control sequences for
% each package which is loaded. This mechanism is exploited.
%
% Since older versions of \LaTeX\ do not support this mechanism
% warning are reported even so everything is ok.
% \begin{macrocode}
\newcommand\NeedPackage[1]{%
\expandafter\ifx\csname ver@#1.sty\endcsname\relax
\typeout{***}%
\typeout{***}%
\typeout{*** The required package `#1' seems not to be loaded.}%
\typeout{*** I try to stumble along as good as I can.}%
\typeout{*** Expect some undefined macros or other errors.}%
\typeout{***}%
\typeout{***}
\fi}
% \end{macrocode}
% \end{macro}
%
%
% \subsection{Layout Parameters}
%
% The layout can be influenced by a large number of
% parameters. Thus the design decisions have been made transparent
% (to a certain degree at least). These options are not meant to be
% changed except when a new layout is being designed and implemented.
%
%
% The size of the paper is A5. Thus the paper dimensions are defined
% appropriately.
% \begin{macrocode}
\paperwidth = 148.5mm
\paperheight = 210mm
% \end{macrocode}
% \changes{1.4}{2000/08/06}{New page dimensions for 1/2000.}
% The height is set to 471\,pt; the width is 342pt.
% \begin{macrocode}
\textheight = 471pt
\textwidth = 333pt
%</class>
% \end{macrocode}
% The height is set to 484\,pt = 170.10654\,mm; the
% width is 342\,pt = 120.19925\,mm. This is slightly larger than in the
% predecessor style.
% \begin{macrocode}
%<*ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine>
\textheight = 484pt
\textwidth = 342pt
%</ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine>
%<*class>
% \end{macrocode}
%
% The page is flushed left. A left margin of one inch is the default
% on any properly installed printer. Any adjustment of the
% printable area on the page is left to the output driver.
% \begin{macrocode}
\oddsidemargin = 0pt
\evensidemargin = \oddsidemargin
\topmargin = 0pt
% \end{macrocode}
%
% The head line needs some space. In fact this depends on some
% configurable macros. Nevertheless we take the old values and
% leave it to a user to change those values if required.
% \begin{macrocode}
\headheight = 17pt
\headsep = 17pt
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\headheight = 14pt
\headsep = 12pt
%</ninetyfive>
%<*class>
% \end{macrocode}
%
% The foot line needs some space. The same remarks given above
% apply here too.
% \begin{macrocode}
\footskip = 24pt
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\footskip = 21pt
%</ninetyfive>
%<*class>
% \end{macrocode}
%
% Paragraphs are not indented but separated by additional lead
% only. This lead may expand a little bit but it may not
% shrink. (Since the whole journal is typeset with raggedbottom it
% is not clear to me if this makes sense at all)
% \begin{macrocode}
\parskip = 0.5\baselineskip \advance\parskip by 0pt plus 2pt
\parindent = 0pt
% \end{macrocode}
%
% To reduce the probability that a float requires a complete page
% we increase the allowed fraction which can be occupied by floats
% at the top and the bottom of the page. Additionally we reduce the
% fraction required for text.
% \begin{macrocode}
\renewcommand\topfraction{.9}
\renewcommand\bottomfraction{.9}
\renewcommand\textfraction{.1}
% \end{macrocode}
%
%
% \changes{1.4}{2000/08/21}{columnsep reduced to 5pt}
% \begin{macrocode}
\columnsep = 5pt
%</class>
%<*ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine>
\columnsep = 10pt
%</ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine>
%<*class>
% \end{macrocode}
%
% \changes{1.5}{2001/04/24}{emergencystretch set to 1.5em.}
% \begin{macrocode}
\emergencystretch = 1.5em
%</class>
%<*ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine|twothousand>
\emergencystretch = 0pt
%</ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine|twothousand>
%<*class>
% \end{macrocode}
%
% As promised before we disable vertical adjustment of pages. This
% seems to be a good strategy to avoid ragged apearance by too much
% space between paragraphs.
% \begin{macrocode}
\raggedbottom
% \end{macrocode}
%
% To avoid a bad layout we adjust some parameters. Thus we try to
% avoid widows and clubs.
% \begin{macrocode}
\clubpenalty = 10000
\widowpenalty = 10000
% \end{macrocode}
%
% \begin{macro}{\DTKgerman}
% We will change some of the captions names used within \LaTeX{}. To avoid
% that the package ``\texttt{german}'' undoes our efforts we anchor the
% changes in the \verb|\captionsgerman| macro. To do so we have to save the
% old meaning in an internal name.
% \changes{1.5}{2001/04/24}{Method for ngerman added}
% \begin{macrocode}
\newcommand\DTKgerman{
\let\DTK@captionsgerman=\captionsgerman
\let\captionsgerman=\DTK@captionsgerman
\@ifundefined{l@ngerman}{}{\selectlanguage{ngerman}}%
}
%</class>
% \end{macrocode}
%
% \begin{macrocode}
%<*ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine>
\renewcommand\DTKgerman{
\let\DTK@captionsgerman=\captionsgerman
\let\captionsgerman=\DTK@captionsgerman
\selectlanguage{german}%
}
%</ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\DTK@captionsgerman}
%
% Now we can redefine the captions command. First of all we use the
% old definition. Thus we avoid duplicating the whole definition
% and maybe getting in trouble with some future version.
% \begin{macrocode}
\newcommand\DTK@captionsgerman{
\DTK@captionsgerman
% \end{macrocode}
%
% \begin{macro}{\refname}
% Just in case that an article contains a list of references we
% define the title for this section.
% Well, in fact we assume that the \LaTeX{} used is not too
% ancient. Otherwise this will not work properly.
% \begin{macrocode}
\gdef\refname{Literatur}%
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\bibname}
% Ok. And now the same trick for the title of the bibliography.
% \begin{macrocode}
\gdef\bibname{Literatur}%
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\contentsname}
% The headline for the table of contents is defined appropriately.
% \verb|\volume| contains the number of the current volume. This
% number is set by the macro producing the front page.
% \begin{macrocode}
\gdef\contentsname{Inhalt Heft \volume}%
% \end{macrocode}
% \end{macro}
%
% Now we are done. We just have to make sure that the new values
% are activated by calling the new captions macros.
%
% \begin{macrocode}
}
% \end{macrocode}
% \end{macro}
%
% If the option german has been loaded automatically then we have
% to modify the captions at once. Otherwise the user is responsible
% to call \verb|\DTKgerman| after the package german has been loaded.
% \begin{macrocode}
\ifDTK@german@
\DTKgerman
\fi
%</class>
% \end{macrocode}
%
% \begin{macrocode}
%<*ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine>
\ifDTK@german@
\DTKgerman
\fi
%</ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine>
%<*class>
% \end{macrocode}
%
% \begin{macro}{\addressname}
% The heading for the list of authors is defined in this macro.
% \begin{macrocode}
\newcommand\addressname{Autoren/Organisatoren}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\journalname}
% The name of the journal is stored in this macro. This should make
% it easier to use this class for other purposes than typesetting
% ``Die \TeX nische Kom\"odie''. It is not the primary intention to
% support this but some attempts have been made to use this class
% for other publications.
% \changes{1.4}{2000/08/12}{Macro introduced.}
% \begin{macrocode}
\newcommand\journalname{Die \TeX nische Kom{\"o}die}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\volume}
% The number of the current volume is stored in this macro. The
% value is automatically set with the macro
% \verb|\DieTeXnischeKomoedie|. Since this macro is usually only
% used in the full version we provide a reasonable default.
% \changes{1.4}{2000/08/12}{Current date and time added.}
% \begin{macrocode}
\newcommand\volume{?/?? --- Entwurf \today\
\begingroup
\count1=\time\divide\count1 60
\count2=\count1 \multiply\count2 -60 \advance\count2\time
\the\count1:\ifnum\count2<10 0\fi\the\count2
\endgroup
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\footmark}
% This macro contains the text of the running foot.
% \begin{macrocode}
\newcommand\footmark{\journalname\ \volume}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ChapterFont}
% This macro contains the font changing command issued before
% typesetting a chapter title.
% \begin{macrocode}
\newcommand\ChapterFont{\Large\sf}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\ChapterFont{\Large\bf}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\SectionFont}
% This macro contains the font changing command issued before
% typesetting the section heading.
% \begin{macrocode}
\newcommand\SectionFont{\large\sf}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\SectionFont{\normalsize\bf}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\SubsectionFont}
% This macro contains the font changing command issued before
% typesetting the subsection heading.
% \begin{macrocode}
\newcommand\SubsectionFont{\normalsize\sf}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\SubsectionFont{\normalsize\it}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\SubsubsectionFont}
% This macro contains the font changing command issued before
% typesetting the subsubsection heading and below.
% \begin{macrocode}
\newcommand\SubsubsectionFont{\normalsize\sf}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\SubsubsectionFont{\normalsize\it}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\AuthorFont}
% This macro contains the font changing command issued before
% typeseting the author of an article.
% \begin{macrocode}
\newcommand\AuthorFont{\large\sf}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\AuthorFont{\normalsize\rm}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\TitleFont}
% This macro contains the font changing command issued before
% typeseting the title of an article.
% \begin{macrocode}
\newcommand\TitleFont{\Large\sf}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\TitleFont{\large\bf}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HeadFont}
% This macro contains the font changing command issued before
% typeseting the running head line.
% \begin{macrocode}
\newcommand\HeadFont{\sf\fontshape{sl}\selectfont}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\HeadFont{\sl}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\FootFont}
% This macro contains the font changing command issued before
% typeseting the running foot line.
% \begin{macrocode}
\newcommand\FootFont{\footnotesize\sf\fontshape{sl}\selectfont}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\FootFont{\footnotesize\sl}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\PagenoFont}
% This macro contains the font changing command issued before
% typeseting the page number.
% \begin{macrocode}
\newcommand\PagenoFont{\sf}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\PagenoFont{\rm}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\NewpageThreshold}
% The macro \verb|\NewpageThreshold| is used to determine how much
% space is needed on a page to start a new article. If less space
% is left then the next article is started on the next page.
% \begin{macrocode}
\newcommand\NewpageThreshold{100pt}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HeadRuleDepth}
% This macro contains the depth of the line between the running
% head and the main body of text.
% \begin{macrocode}
\newcommand\HeadRuleDepth{0pt}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\HeadRuleDepth{0.1pt}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\FootRuleDepth}
% This macro contains the depth of the line between the running
% foot and the main body of text.
% \begin{macrocode}
\newcommand\FootRuleDepth{0pt}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\FootRuleDepth{0.1pt}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ContentsParSkip}
% This macro contains the \verb|parskip| used for the table of
% contents.
% \begin{macrocode}
\newcommand\ContentsParSkip{1pt}
% \end{macrocode}
% \end{macro}
%
%
% \subsection{Size Changing Commands and Mathematics}
%
% The size changing commands \verb|\small| and \verb|\footnotesize|
% redefine also \verb|\@listi|. This effect has to be undone.
%
%
% \begin{macro}{\DTK@math}
% This macro modifies the relavant parameters for typesetting
% mathematics.
% \begin{macrocode}
\newcommand\DTK@math{%
\abovedisplayskip = 4pt plus 2pt minus 1pt
\belowdisplayskip = \abovedisplayskip
\abovedisplayshortskip = 2pt plus 2pt
\belowdisplayshortskip = \abovedisplayshortskip
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@normalsize}
% This is an internal size changing command. We save the old
% definition in \verb|\DTK@@normalsize| and redefine it. After the
% old definition is used some sizes are changed to a smaller value.
% \begin{macrocode}
\let\DTK@@normalsize=\@normalsize
\def\@normalsize{%
\DTK@@normalsize
\DTK@math
\let\@listi=\@listI}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\normalsize}
% This is a size changing command. We save the old
% definition in the macro \verb|\DTK@normalsize| and redefine
% it. After the old definition is used some sizes are changed to a
% smaller value.
% \begin{macrocode}
\let\DTK@normalsize=\normalsize
\renewcommand\normalsize{%
\DTK@normalsize
\DTK@math
\let\@listi=\@listI}
\normalsize
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\small}
% This is a size changing command. We save the old
% definition in \verb|\DTK@small| and redefine it. After the
% old definition is used some sizes are changed to a smaller value.
% \begin{macrocode}
\let\DTK@small=\small
\renewcommand\small{%
\DTK@small
\DTK@math
\let\@listi=\@listI}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\footnotesize}
% This is a size changing command. We save the old
% definition in the macro \verb|\DTK@footnotesize| and redefine
% it. After the old definition is used some sizes are changed to a
% smaller value.
% \begin{macrocode}
\let\DTK@footnotesize=\footnotesize
\renewcommand\footnotesize{%
\DTK@footnotesize
\DTK@math
\let\@listi=\@listI}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Path}
% \changes{1.3}{1997/01/28}{Macro added.}
% This macro can be used to typeset paths to network sources like
% ftp directories or URLs as well as email addresses. The argument
% is typeset in a teletype font. Underscores and tildes are treated
% as ordinary characters. Linebreaking is enabled after certain
% special characters without inserting a hyphen.
%
% Unfortunately this macro is fragile.
% \begin{macrocode}
\begingroup
\gdef\Path@SepI{/""}
\gdef\Path@SepII{\symbol{92}""}
\gdef\Path@SepIII{:""}
\catcode`\/=13
\catcode`\:=13
\catcode`\^=0
^catcode`\\=13
^gdef^Path{^begingroup
^catcode`^/=13
^catcode`^\=13
^catcode`^:=13
^catcode`^~=12
^catcode`^$=12 %$
^catcode`^_=12
^catcode`^#=12
^let/=^Path@SepI
^let\=^Path@SepII
^let:=^Path@SepIII
^@Path}
^gdef^@Path#1{^texttt{#1}^endgroup}
^endgroup
% \end{macrocode}
% \end{macro}
%
%
% \subsection{Logical Markup}
%
% One of the advantages of \LaTeX\ is the possiblity to use logical
% markup. For this purpose several markup macros are provided.
% Unfortunately the macros provided are not sufficient in several
% situations. Thus this class provides some additional markup
% macros to come closer to the ideal situation.
%
% \begin{macro}{\File}
% This macro is intended to be used for typesetting file names.
% \changes{1.7}{2001/11/04}{macro added.}
% \begin{macrocode}
\providecommand\File[1]{\texttt{#1}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Package}
% This macro is intended to be used for typesetting package names.
% \changes{1.7}{2001/11/04}{macro added.}
% \begin{macrocode}
\providecommand\Package[1]{\texttt{#1}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Program}
% This macro is intended to be used for typesetting program names.
% \changes{1.7}{2001/11/04}{macro added.}
% \begin{macrocode}
\providecommand\Program[1]{\texttt{#1}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Command}
% This macro is intended to be used for typesetting command names.
% For instance command names are relevant when talking about Unix
% commands.
% \changes{1.7}{2001/11/04}{macro added.}
% \begin{macrocode}
\providecommand\Command[1]{\texttt{#1}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Macro}
% This macro is intended to be used for typesetting macro names.
% \changes{1.7}{2001/11/04}{macro added.}
% \begin{macrocode}
\providecommand\Macro[1]{\texttt{#1}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Environment}
% This macro is intended to be used for typesetting environment names.
% \changes{1.7}{2001/11/04}{macro added.}
% \begin{macrocode}
\providecommand\Environment[1]{\texttt{#1}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Email}
% This macro is intended to be used for typesetting email addresses.
% \changes{1.7}{2001/11/04}{macro added.}
% \begin{macrocode}
\providecommand\Email[1]{\texttt{#1}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Acronym}
% This macro is intended to be used for typesetting acronyms. It is
% highly recommended to use this macro sparsingly
% \changes{1.7}{2001/11/04}{macro added.}
% \begin{macrocode}
\providecommand\Acronym[1]{\textsc{#1}}
% \end{macrocode}
% \end{macro}
%
%
% \subsection{List Making Environments}
%
% The list making environments \verb|description|, \verb|itemize|,
% and \verb|enumerate| are adapted to use less vertical space. This
% is mainly done by resetting \verb|\parsep|, \verb|\itemsep|, and
% \verb|\topsep|.
%
% The environments \verb|itemize| and \verb|enumerate| use the
% macros \verb|@listi|, \verb|@listii|, etc. Thus it is sufficient
% to redefine those macros.
%
% \begin{macrocode}
\def\@listI{%
\leftmargin = \leftmargini
\parsep = \parskip
\topsep = 0pt plus 2pt
\itemsep = 0pt plus 2pt}
% \end{macrocode}
%
% \begin{macrocode}
\let\@listi=\@listI
% \end{macrocode}
%
% \begin{macrocode}
\def\@listii{%
\leftmargin = \leftmarginii
\labelwidth = \leftmarginii
\advance \labelwidth by-\labelsep
\parsep = \parskip
\topsep = 0pt plus 2pt
\itemsep = 0pt plus 2pt}
% \end{macrocode}
%
% \begin{macrocode}
\def\@listiii{%
\leftmargin = \leftmarginiii
\labelwidth = \leftmarginiii
\advance \labelwidth by-\labelsep
\partopsep = 1pt plus 0pt minus 1pt
\parsep = \parskip
\topsep = 0pt plus 2pt
\itemsep = 0pt plus 2pt}
% \end{macrocode}
% We activate the defaults.
% \begin{macrocode}
\@listi
% \end{macrocode}
%
% For some reason \verb|@listi| is redefined in \verb|small| and
% \verb|\footnotesize|. Thus we have to take care to undo the
% changes made there. For this purpose we save the old definitions
% and restore the intended meaning of \verb|\@listi| after calling
% the old macro.
%
%
% \begin{macrocode}
\renewcommand\labelitemi{$\m@th\circ$}
\renewcommand\labelitemii{$\m@th\triangleright$}
\renewcommand\labelitemiii{$\m@th\diamond$}
\setlength\leftmargini{1.5em}
\setlength\leftmarginii{1.4em}
\setlength\leftmarginiii{1.3em}
\setlength\leftmarginiv{1.2em}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\labelitemi{$\m@th\bullet$}
\renewcommand\labelitemii{\bf --}
\renewcommand\labelitemiii{$\m@th\ast$}
\setlength\leftmargini{2.5em}
\setlength\leftmarginii{2.2em}
\setlength\leftmarginiii{1.87em}
\setlength\leftmarginiv{1.7em}
%</ninetyfive>
%<*class>
% \end{macrocode}
%
% \begin{environment}{description}
% To get things smaller we completely redefine the description
% environment. Nevertheless we make use of the old label formatting
% macro.
% \begin{macrocode}
\renewenvironment{description}{%
\begin{list}{}{%
\labelwidth = 0pt
\itemindent = -\leftmargin
\parsep = \parskip
\topsep = 0pt plus 2pt
\itemsep = 0pt plus 2pt
\let\makelabel=\descriptionlabel}%
}{\end{list}}
% \end{macrocode}
% \end{environment}
%
% \begin{macro}{descriptionlabel}
%
% \begin{macrocode}
\renewcommand\descriptionlabel[1]{%
\hspace\labelsep{\normalsize\it #1}}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\descriptionlabel[1]{\hspace\labelsep \bf #1}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{environment}{quotation}
% Since the whole journal does not use parindent we make the
% quotation environment the same as the quote environment.
% \begin{macrocode}
\renewenvironment{quotation}{%
\list{}{\rightmargin\leftmargin}%
\item\relax
}{\endlist}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewenvironment{quotation}{%
\list{}{\listparindent 1.5em
\itemindent\listparindent
\rightmargin\leftmargin\parsep \z@ plus\p@}%
\item\relax
}{\endlist}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{environment}
%
% \begin{environment}{roll}
% We add a new type of list making environment. The \verb|roll|
% does not indent per default but just typesets the argument of the
% \verb|\item| macro in boldface. It has one optional argument
% which can be used to specify the amount of indentation desired.
%
% \begin{macrocode}
\newenvironment{roll}%
{\@ifnextchar[{\r@ll}{\r@ll[0pt]}}%
{\end{list}}
% \end{macrocode}
%
% \begin{macrocode}
\def\r@ll[#1]{\begin{list}{}{%
\labelwidth = #1
\leftmargin = \labelwidth
\itemsep = .3ex
\let\makelabel=\rolllabel}%
}
% \end{macrocode}
% \end{environment}
%
% Typeset the label of a \verb|roll| environment.
% \begin{macrocode}
\newcommand\rolllabel[1]{\hspace\labelsep \textbf{#1}\hfill}
% \end{macrocode}
%
%
% \begin{environment}{example}
% We provide an environment for typesetting example code.
% It is typeset in a smaller font with an indentation left and right.
% \begin{macrocode}
\newenvironment{example}{\begin{quote}\small}{\end{quote}}
% \end{macrocode}
% \end{environment}
%
%
%
%
%
% \begin{macrocode}
\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
ext@#1\endcsname}{#1}{\protect\numberline{\csname
the#1\endcsname}{\ignorespaces #2}}\begingroup
\@parboxrestore
\small
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
\endgroup}
% \end{macrocode}
%
%
% \subsection{Sectioning Commands}
%
%
% The counter \verb|secnumdepth| determines which sectional units
% are decorated with a number. Since we don't want sections and
% everything below to be numbered we set this counter to 0.
% \begin{macrocode}
\setcounter{secnumdepth}{0}
% \end{macrocode}
%
% All but the first article are separated by additional vertical
% space from the preceding text. Thus we define a new boolean
% variable to determine which article is the first one in a chapter.
% \begin{macrocode}
\newif\ifFirstArticle
\FirstArticletrue
% \end{macrocode}
%
% \begin{macro}{\part}
% This definition is used in the author version, where \verb|\part|
% should not be used. An error message is issued instead.
% \begin{macrocode}
\ifDTK@Author@
\renewcommand\part{%
\typeout{*** Parts can not be used in single articles.}}
\else
% \end{macrocode}
%
% A part is aligned to the next full page. A special page style is
% used on a first page of a part. The macro \verb|\part| has one
% ordinary argument which constitutes the main title of the part.
% This argument can be preceeded by an optional argument---enclosed
% in brackets. This first optional argument is used as the running
% head. If it is missing the main title is used instead.
%
% The main argument can be followed by another optional argument.
% This second optional argument is the subtitle of the part.
% If none is given then the empty default is used instead.
% The second optional argument is an enhancement compared to the
% original definition of parts in \LaTeX.
%
% \begin{macrocode}
\renewcommand\part{%
\clearpage
\thispagestyle{part}%
\FirstArticletrue
\Advance@Label@Prefix
\@ifstar{\part@star{chapter}}{\part@star{part}}}
\fi
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\part@star}
% If the next character is a \verb|[| then the part macro has an
% optional argument.
% \begin{macrocode}
\newcommand\part@star[1]{%
\@ifnextchar[{\part@optional{#1}}{\part@normal{#1}}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\part@optional}
% This macro treats the case that the part macro has an optional
% argument. This optional argument is used in the running head and
% the table of contents.
% \begin{macrocode}
\def\part@optional#1[#2]#3{%
\markboth{#2}{#2}%
\addcontentsline{toc}{#1}{#2}%
\@ifnextchar[{\part@subtitle{#3}}{\part@nosubtitle{#3}}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\part@normal}
% This macro treats the case that the part has no optional
% argument. In this case the title itself is used in the head and
% in the table of contents.
% \begin{macrocode}
\newcommand\part@normal[2]{%
\markboth{#2}{#2}%
\addcontentsline{toc}{#1}{#2}%
\@ifnextchar[{\part@subtitle{#2}}{\part@nosubtitle{#2}}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\part@subtitle}
% This macro treats the case that the part has an optional
% argument for a subtitle.
% \begin{macrocode}
\def\part@subtitle#1[#2]{\TopArt{#1}{\\#2}\bigskip\par}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\part@nosubtitle}
% This macro treats the case that the part has no optional
% argument for a subtitle.
% \begin{macrocode}
\newcommand\part@nosubtitle[1]{\TopArt{#1}{}\bigskip\par}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\TopArt}
% This macro is used to generate the layout of the beginning of a
% part. It takes two arguments. The first argument is the title of
% the part and the second argument is its subtitle. If the subtitle
% is not empty then it is started by \verb|\\|.
% \begin{macrocode}
\newcommand\TopArtRule{2pt}
\newcommand\TopArt[2]{%
\begin{minipage}{\textwidth}\parskip=0pt\parindent=0pt
\null\vspace{18pt}\par\raggedright\large\sf
{\huge\sf #1}\\[-.5ex]\rule{\textwidth}{\TopArtRule}%
\vspace{2pt} #2
\end{minipage}}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\TopArt[2]{%
\begingroup
\unitlength = 1pt
\@tempcnta = \textwidth
\divide\@tempcnta by \unitlength
\framebox(\@tempcnta,38){\parbox{.95\textwidth}{%
\begin{center}{\large\bf #1}#2 \end{center}}}
\endgroup}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\chapter}
% In the author version of this class no chapters are allowed. They
% are activated when the option \verb|full| is given to the
% class/style. Otherwise an error message is printed.
% \begin{macrocode}
\ifDTK@Author@
\renewcommand\chapter{%
\typeout{*** Chapters can not be used in single articles.}}
\else
% \end{macrocode}
%
% The appearance of a chapter is the same as the appearance of a
% section. Additionally a line is added to the table of contents
% and the headline is set appropriately.
%
% Since we want to deal with optional arguments and star variants
% things are becoming a little bit more complicated. I don't know
% if it is worth the effort. Maybe nobody will ever use this
% feature anyhow.
% \begin{macrocode}
\renewcommand\chapter{%
\@ifnextchar*{\chapter@star}{%
\@ifnextchar[{\chapter@optional}{\chapter@normal}}}
\fi
% \end{macrocode}
% Ignore any number of stars. Well this may be to harsh but I think
% this is enough.
% \begin{macrocode}
\def\chapter@star*{\chapter}
% \end{macrocode}
% Provide a default for the optional argument.
% \begin{macrocode}
\def\chapter@normal#1{\chapter@optional[#1]{#1}}
% \end{macrocode}
% Now do the whole job.
% \begin{macrocode}
\def\chapter@optional[#1]{%
\typeout{#1}%
\Advance@Label@Prefix
\addcontentsline{toc}{chapter}{#1}%
\markboth{#1}{#1}%
\FirstArticletrue
\@startsection{chapter}{0}{\z@}{-1ex plus-1ex minus
-.2ex}{.5ex plus.2ex}{\ChapterFont}*%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\section}
% The section is redefined to use less vertical space than the
% original definition.
%
% \begin{macrocode}
\renewcommand\section{\@startsection{section}{1}{\z@}{%
-2ex plus-1ex minus-.2ex}{.5ex plus.2ex}{\SectionFont}}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\section{\@startsection{section}{1}{\z@}{%
-1ex plus-1ex minus-.2ex}{.5ex plus.2ex}{\SectionFont}}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\subsection}
% The subsection is redefined to use less vertical space than the
% original definition.
%
% \begin{macrocode}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}{%
-2ex plus-1ex minus-.2ex}{0.75ex plus.2ex}{\SubsectionFont}}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}{%
-1ex plus-1ex minus-.2ex}{0.75ex plus.2ex}{\SubsectionFont}}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\subsubsection}
% The subsubsection is redefined to use less vertical space than
% the original definition.
%
% \begin{macrocode}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}{%
-2ex plus-1ex minus-.2ex}{0.75ex plus.2ex}{\SubsubsectionFont}}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}{%
-1ex plus-1ex minus-.2ex}{0.75ex plus.2ex}{\SubsubsectionFont}}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\paragraph}
% The paragraph is redefined to use less vertical space than the
% original definition.
%
% \begin{macrocode}
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}{%
0ex plus1ex minus.2ex}{-.5ex}{\SubsubsectionFont}}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}{%
1ex plus1ex minus.2ex}{-.5ex}{\SubsubsectionFont}}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\subparagraph}
% The subparagraph is redefined to use less vertical space than the
% original definition.
%
% \begin{macrocode}
\renewcommand\subparagraph{\@startsection{subparagraph}{4}%
{\parindent}{0ex plus1ex minus.2ex}{-.5ex}{\SubsubsectionFont}}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\subparagraph{\@startsection{subparagraph}{4}%
{\parindent}{1ex plus1ex minus.2ex}{-.5ex}{\SubsubsectionFont}}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
%
% \subsection{The Article Layout}
%
%
% \begin{macro}{\keywords}
% The macro \verb|keywords| is intended for the user to specify
% keywords for the article. It is not used for the article itself
% but for the reprint and the \BibTeX\ file of all articles.
% \begin{macrocode}
\newcommand\keywords[1]{\def\DTK@keywords{#1}}
\def\DTK@keywords{}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\maketitle}
% The title of an article is typeset together with the author
% information. If it is the first article in this chapter then
% additional vertical space is added.
%
% The title is added to the table of contents and the headline is
% adjusted appropriately.
%
% The macro \verb|\NewpageThreshold| is used to determine how much
% space is needed aon a page to start a new article. If less space
% is left then the next article is started on the next page.
%
% Now we can start to typeset the head of an article and perform
% all tasks required in this situation.
%
% \begin{macrocode}
\renewcommand\maketitle{%
% \end{macrocode}
%
% If we are not in a complete journal then we use a different page style
% for the first page. Thus it is possible to use this class to typeset
% preprints and get a better layout of the first page.
% \begin{macrocode}
\ifDTK@Author@ \thispagestyle{part}\fi
% \end{macrocode}
%
% Now we have to ensure that there is enough space left on this page to
% start a new article. If there isn't enough space we start the article on
% the next page.
% \changes{1.5}{2001/04/25}{Bugfix: constant replaced by macro.}
% \begin{macrocode}
\ifdim\DTKtitle@skip>0pt\vspace{\DTKtitle@skip}\fi
\begingroup
\dimen0=\vsize
\advance\dimen0 by -\pagetotal
\ifdim\dimen0<\NewpageThreshold
\newpage
\global\FirstArticletrue
\fi
\endgroup
% \end{macrocode}
%
% The namespace for labels has to be switched. This is done by
% calling the macro \verb|\Advance@Label@Prefix|.
% \begin{macrocode}
\Advance@Label@Prefix
% \end{macrocode}
%
% We encapsulate the title and author information in a minipage to avoid a
% pagebreak in beween (maybe not necessary). Then we draw a line to
% separate the article from the previous one. The line is required if the
% boolean variable \verb|FirstArticle| is true. This variable is set
% afterwards.
% \begin{macrocode}
\begingroup
\begin{minipage}{\textwidth}
\ifFirstArticle
\global\FirstArticlefalse
\vskip 3pt
\else
\DTKtitle@sep
\fi
% \end{macrocode}
%
%
% \begin{macrocode}
\setcounter{footnote}0
% \end{macrocode}
%
% Now we insert the title and the author. The title is also put into the
% table of contents. The running head is adjusted.
% \begin{macrocode}
\@flushglue=0pt plus .3\textwidth\relax
\raggedright
\TitleFont
\spaceskip=\fontdimen2\font\relax
\xspaceskip=\fontdimen7\font\relax
\@title
\ifx\@author\@empty\else
\bigskip\par
\AuthorFont\@author
\fi
\end{minipage}%
\@thanks
\let\thanks\@gobble
\addcontentsline{toc}{chapter}{\@title}%
\markboth{\@title}{\@title}%
\endgroup
% \end{macrocode}
%
% Finally we rest certain values and insert some space to the beginning of
% the article.
% \begin{macrocode}
\let\@title=\@empty
\let\@author=\@empty
\let\@thanks=\@empty
\setcounter{figure}0
\setcounter{table}0
\setcounter{equation}0
% \setcounter{footnote}0
\medskip\par}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\DTKtitle@skip}
%
% \begin{macrocode}
\newcommand\DTKtitle@skip{12pt}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\DTKtitle@skip{0pt}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\DTKtitle@sep}
%
% \begin{macrocode}
\newcommand\DTKtitle@sep{\vspace{32pt plus 8pt minus 16pt}}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\DTKtitle@sep{\rule{\textwidth}{.4pt}%
\vskip 14pt plus 8pt minus 12pt}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
%
% Several authors are separated by \verb|\and|. Here is a first
% approximation to deal with this case.
%
% \begin{macrocode}
\renewcommand\and{, }
% \end{macrocode}
%
% We provide default values for the author, the title and the
% footnote of the title. All of them are empty.
% \begin{macrocode}
\let\@title=\@empty
\let\@author=\@empty
\let\@thanks=\@empty
% \end{macrocode}
%
% \begin{environment}{abstract}
% The abstract is typeset in a smaller font indented left and right.
% The use of the quote environment ensures that the abstract can be
% broken at the end of the line.
%
% \begin{macrocode}
\newenvironment{abstract}{%
\begin{quote}\small
}{%
\end{quote}\medskip\par}
% \end{macrocode}
% \end{environment}
%
%
% \subsection{Numbering}
%
% The numbering is done on a global basis. No chapter numbers are
% prepended. Especially since none are used at all. This is just
% like in the article class.
%
% \begin{macrocode}
\renewcommand\thefigure{\arabic{figure}}
\renewcommand\thetable{\arabic{table}}
\renewcommand\theequation{\arabic{equation}}
% \end{macrocode}
%
%
% \subsection{Labels}
%
% Labels have to be used on an per article basis for this purpose
% we use a macro to hold the prefix for the labels. This prefix is
% prepended whenever something is done with the labels.
%
% The prefix is constructed from a numeric counter. This counter is% allocated and initialized. Maybe I could live without this
% counter but this way the labels look nicer (if you ever see them).
% \begin{macrocode}
\newcount\DTL@label
\DTL@label=0
% \end{macrocode}
%
% \begin{macro}{\Advance@Label@Prefix}
% This macro is expanded whenever a new module is entered. It has
% to take care that a new and unique prefix string for the labels
% is generated and stored in the macro \verb|\Label@Prefix|.
% \begin{macrocode}
\newcommand\Advance@Label@Prefix{%
\advance\DTL@label 1
\xdef\Label@Prefix{module \the\DTL@label:}}
% \end{macrocode}
% \end{macro}
%
% The label prefix has to be initalized. The easiest way to perform
% this task is touse the macro defined above.
% \begin{macrocode}
\Advance@Label@Prefix
% \end{macrocode}
%
% Sometimes it is desirable to use labels in the old
% sense. I.e. without the module system. For this purpose we keep
% the old definitions of the macros \verb|\ref|, \verb|\label|, and
% \verb|\pageref| under the new names \verb|\Ref|, \verb|\Label|, and
% \verb|\Pageref| respectivly.
% \begin{macrocode}
\let\Ref=\ref
\let\Label=\label
\let\Pageref=\pageref
% \end{macrocode}
%
% \begin{macro}{\ref}
% The module prefix is prepended before the original \verb|\ref|
% macros is used.
% \begin{macrocode}
\renewcommand\ref[1]{\Ref{\Label@Prefix:#1}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\label}
% The module prefix is prepended before the original \verb|\label|
% macros is used.
% \begin{macrocode}
\renewcommand\label[1]{\Label{\Label@Prefix:#1}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\pageref}
% The module prefix is prepended before the original \verb|\pageref|
% macros is used.
% \begin{macrocode}
\renewcommand\pageref[1]{\Pageref{\Label@Prefix:#1}}
% \end{macrocode}
% \end{macro}
%
%
% \subsection{Bibliography}
%
% \begin{macro}{\thebibliography}
% Instead of using a \verb|\chapter*| to start a bibliography we
% use a \verb|\section*|. Thus the bibliography should not appear
% in the table of contents.
% \changes{1.8}{2002/04/01}{typeset raggedright.}
% \begin{macrocode}
\renewcommand\thebibliography[1]{%
\section*{\refname}%
\list{[\arabic{enumi}]}{%
\settowidth\labelwidth{[#1]}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\usecounter{enumi}}
\def\newblock{\hskip .11em plus .33em minus .07em}
\sloppy\clubpenalty4000\widowpenalty4000
\sfcode`\.=1000\relax\DTK@bibliography@rightskip}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\DTK@bibliography@rightskip}
%
% \changes{1.8}{2002/04/01}{macro added.}
% \begin{macrocode}
\newcommand\DTK@bibliography@rightskip{\rightskip=0pt plus 2em}
%</class>
%<*two>
\newcommand\DTK@bibliography@rightskip{}
%</two>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\DTK@bibliography}
% This macro is used to overwrite the macro \verb|\bibliography|
% when the complete journal is typeset.
% \begin{macrocode}
\newcommand\DTK@bibliography[1]{
\InputIfFileExists{#1.bbl}{}{\typeout{--- File #1.bbl not found.}}}
% \end{macrocode}
% \end{macro}
%
% \changes{1.3}{1997/01/28}{Forcing the bibstyle.}
% We switch to the default bib style.
%
% \begin{macrocode}
\bibliographystyle{dtk}
% \end{macrocode}
%
%
% \subsection{Footnotes}
%
% This is just my personal taste. I have incorporated my
% fnblock.sty. This style option arranges things in a way that
% footnotes do not go beneath the footnotemarks. In addition they
% can be indented at the right side.
%
% Both indentation at both sides can be configured with the
% following two macros:
% \begin{macrocode}
\newcommand\DTK@fnrightmargin{0em}
\newcommand\DTK@fnleftmargin{1em}
% \end{macrocode}
%
% \begin{macro}{\@makefntext}
% And now we make the footnote to behave as desired.
% \changes{1.4}{2000/08/06}{Don't let footnote line and footnote
% text be broken across pages. Fix problem with footnotemarks.}
% \begin{macrocode}
\long\def\@makefntext#1{%
\@nobreaktrue
\begin{list}{}{%
\rightmargin=0pt%
\parsep=0.333\baselineskip plus 2pt
\leftmargin=\DTK@fnleftmargin}
\item\mbox{}%
\llap{\@textsuperscript{\normalfont\@thefnmark}\kern1pt}%
#1%
\end{list}}
%</class>
%<*ninetyfive>
\long\def\@makefntext#1{\parindent 1em\noindent
\hbox to 1.8em{\hss$\m@th^{\@thefnmark}$}#1}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@textsuperscript}
% Define \verb|\@textsuperscript| for older LaTeX(2e) versions.
% The macros has been copied from ``latex.ltx'' <1999/12/01>.
% \changes{1.4}{2000/08/12}{Macro introduced to fix problems with
% footnotes in minipages.}
% \begin{macrocode}
\@ifundefined{@textsuperscript}{%
\def\@textsuperscript#1{%
{\m@th\ensuremath{^{\mbox{\fontsize\sf@size\z@#1}}}}}
}{}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\footnoterule}
% The rule separating main text and footnotes is defined.
% \begin{macrocode}
\renewcommand\footnoterule{%
\kern-3\p@
\hrule\@width0.333\columnwidth
\kern2.6\p@}
%</class>
%<*ninetyfive>
\renewcommand\footnoterule{\kern-3\p@
\hrule width .4\columnwidth
\kern 2.6\p@}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
%
% \subsection{Defining Page Styles}
%
% \subsubsection{The Page Style ``plain''}
%
% The page style plain provides a head line and a foot line. The
% page number is printed in the outer corner of the head line. The
% inner part of the head line contains the title of the current
% article.
%
% The foot line contains the name and number of the current journal
% flushed towards the inner border of the page.
%
% The head line and the footline are separated by a bar from the
% main body of text.
%
% \begin{macrocode}
\renewcommand\ps@plain{%
\let\@mkboth=\@gobbletwo
\let\chaptermark=\@gobble
\let\sectionmark=\@gobble
\let\subsectionmark=\@gobble
\def\@oddhead{\vbox{\hbox to \textwidth{%
\let\\=\relax
\HeadFont \rightmark \hfil\PagenoFont\thepage}\kern 3pt
\ifdim\HeadRuleDepth>0pt \hrule depth\HeadRuleDepth\fi}}%
\def\@evenhead{\vbox{\hbox to \textwidth{%
\let\\=\relax
\PagenoFont \thepage\hfil\HeadFont \leftmark}\kern 3pt
\ifdim\HeadRuleDepth>0pt \hrule depth\HeadRuleDepth\fi}}%
\def\@oddfoot{\vbox{%
\ifdim\FootRuleDepth>0pt \hrule depth\FootRuleDepth \fi
\kern 5pt \hbox to \textwidth{\FootFont \footmark\hfil\null}}}%
\def\@evenfoot{\vbox{%
\ifdim\FootRuleDepth>0pt \hrule depth\FootRuleDepth \fi
\kern 5pt \hbox to \textwidth{\null\hfil\FootFont \footmark}}}}
% \end{macrocode}
%
%
% \subsubsection{The Page Style ``headings''}
%
% The page style headings is an alias to the page style plain.
% \changes{1.4}{2000/09/05}{definition for pagestyle headings added.}
% \begin{macrocode}
\let\ps@headings\ps@plain
% \end{macrocode}
%
% \subsubsection{The Page Style ``part''}
%
% The page style \verb|part| contains the same foot as the page style
% \verb|plain|. The head line is empty.
%
% This style is used when a new part is started. It can be
% configured by redefining the macros \verb|FootRuleDepth|,
% \verb|\FootFont|, and \verb|\PagenoFont|.
%
% \begin{macrocode}
\newcommand\ps@part{%
\let\@mkboth=\@gobbletwo
\let\chaptermark=\@gobble
\let\sectionmark=\@gobble
\let\subsectionmark=\@gobble
\let\@oddhead=\@empty
\let\@evenhead=\@empty
\def\@oddfoot{\vbox{%
\ifdim\FootRuleDepth>0pt \hrule depth\FootRuleDepth \fi
\kern 5pt \hbox to \textwidth{\FootFont \footmark\hfil\null}}}%
\def\@evenfoot{\vbox{%
\ifdim\FootRuleDepth>0pt \hrule depth\FootRuleDepth \fi
\kern 5pt \hbox to \textwidth{\null\hfil\FootFont \footmark}}}}
% \end{macrocode}
%
% The default page style is plain. This has been set by the book
% style before. If we want our changes to take effect we have to
% reinitialize the page style.
%
% \begin{macrocode}
\pagestyle{plain}
% \end{macrocode}
%
%
%
% \subsection{The Layout of the Titlepage}
%
% \begin{macro}{\DieTeXnischeKomoedie}
% This macro produces the title page. It has three arguments. The
% first argument is the number of the volume. This value is also
% stored in the macro \verb|\volume| for later use. The second
% argument is the number of the year and the third argument is the
% date when this volume is released. The date is given as month and
% year.
%
% The appearance of the cover page is determined by the macro
% \verb|\CoverArt|. This can be redefined to get a different cover
% page.
% \begin{macrocode}
\ifDTK@Author@\else
\newcommand\DieTeXnischeKomoedie[3]{%
\thispagestyle{empty}%
\gdef\volume{#1}%
\gdef\DTKedition{#2}%
\gdef\DTKdate{#3}%
\global\let\bibliography=\DTK@bibliography
\global\let\bibliographystyle=\@gobble
\CoverArt{#1}{#2}{#3}%
\newpage}
\fi
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\CoverArt}
%
% This macro implements the layout of the cover page of
% DTK. It can be redefined to get a different layout.
%
% \changes{1.4}{2000/08/06}{Special effects via the packages
% graphicx and color instead of PostScript specials.}
% \changes{1.7}{2001/11/02}{Correction of the size of the number on
% the title page for volumes after 1999.}
% \begin{macrocode}
%<*ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine>
\newfont\CoverTitleFont{cmr17 scaled \magstep 5}
\newfont\CoverNumberFont{cmr17 scaled 3583}
%</ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine>
\newcommand\CoverArt[3]{%
\ifx\CoverTitleFont\@undefined
\newfont\CoverTitleFont{ecrm1700 scaled \magstep 5}
\fi
\ifx\CoverNumberFont\@undefined
\newfont\CoverNumberFont{ecrm1700 scaled 2986}
\fi
\vspace*{-34pt}\hfill
\setbox\@tempboxa=\hbox to \textheight{\null\hfill\CoverTitleFont
\journalname\hfill\null}%
\@tempdimb=\ht\@tempboxa
\advance\@tempdimb by\dp\@tempboxa
\hbox to\@tempdimb{%
\vbox to\wd\@tempboxa{%
\vskip\wd\@tempboxa
\vss\rotatebox{90}{\box\@tempboxa}}\hss} \
\rule{\CoverArt@barwidth}{\textheight}
\begin{minipage}[b]{.7\textwidth}\raggedright
\rule{1em}{0pt}%
\dimen2=\textwidth\advance\dimen2-1em
\parbox{\dimen2}{\CoverArt@font
DANTE\\
Deutschsprachige\\
Anwendervereinigung
\TeX\ \eV}\\[1ex]
\dimen3=\textwidth\advance\dimen3-\CoverArt@gap
\hfill\rule{\dimen3}{\CoverArt@linewidth}%
\\[-\baselineskip]\null\hspace{1em}%
{\CoverArt@small\cover@sub{#1}{#2}{#3}}%
\\[-\baselineskip]\rule{0pt}{.617647\textheight}%
\CoverNumberFont
\null\hfill
\makebox(0,0)[br]{%
\textcolor{CoverArt@grey}{%
\CoverArt@strip@no #1;\hspace{1pt}%
}}%
\end{minipage}%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{cover@sub}
% Internal macro for typesetting the volume information on the
% cover--front and back matter.
% \changes{1.7}{2001/31/12}{Extracted to allow configuration for
% "`Die \TeX nichen Kontakte"'}
% \begin{macrocode}
\newcommand\cover@sub[3]{%
#2. Jahrgang\quad Heft #1\quad #3%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{CoverArt@grey}
% Define the color for the number on the cover.
% \changes{1.4}{2000/08/06}{Color definition via color.sty}
% \begin{macrocode}
\ifDTK@Author@\else
\definecolor{CoverArt@grey}{gray}{.8}
\fi
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\CoverArt@strip@no}
% Extract the relevant part from the number of the issue.
% \changes{1.7}{2001/11/02}{Correction of the macro to deal with
% four digit numbers instead of striipng two digits. This is used
% since the year 2000.}
% \begin{macrocode}
\def\CoverArt@strip@no#1/#2;{#1\raisebox{0.35ex}{\CoverTitleFont/}#2}
%<*ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine>
\def\CoverArt@strip@no#1/#2#3#4#5;{%
#1\raisebox{0.35ex}{\CoverTitleFont/}#4#5}
%</ninetyfive|ninetysix|ninetyseven|ninetyeight|ninetynine>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\CoverArt@linewidth}
%
% This macro determines the thickness of the horizontal rule
% separating the publisher from the edition information.
% \begin{macrocode}
\newcommand\CoverArt@linewidth{0pt}%{1.2pt}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\CoverArt@barwidth}
%
% \begin{macrocode}
\newcommand\CoverArt@barwidth{2.41pt}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\CoverArt@font}
%
% \begin{macrocode}
\newcommand\CoverArt@font{\Large\raggedleft}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\CoverArt@small}
%
% \begin{macrocode}
\newcommand\CoverArt@small{\footnotesize}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\CoverArt@gap}
%
% \begin{macrocode}
\newcommand\CoverArt@gap{2em}
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\renewcommand\CoverArt[3]{
\ifx\CoverTitleFont\@undefined
\newfont\CoverTitleFont{cmr17 scaled \magstep 5}%
\fi
\begin{center}
{\LARGE DANTE\\[14pt]
\Large Deutschsprachige Anwendervereinigung \TeX\ \eV}%
\\\rule{\textwidth}{2pt}\par\vfill
\CoverTitleFont Die
\\[22pt] \TeX nische
\\[22pt] Kom{\"o}die
\par\vfill\rule{\textwidth}{2pt}\\[4pt]\large
Heft #1\hfill #2.\ Jahrgang\hfill #3
\normalsize
\end{center}\vspace*{28.5pt}}
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
%
% \subsection{List of Addresses}
%
% Addresses can be given anywhere throughout the whole
% document. The address together with the page where it has been
% given is stored in the index.
%
% The list of addresses is handled by the index mechanism of
% \LaTeX. I (safely) assume that nobody has the desire to make an
% index for a journal.
%
% \begin{macro}{\address}
% The address macro takes three arguments. The first argument is the
% first name the second is the last name and the third is the
% address where several lines can be included which are separated
% by \verb|\\|.
%
% The macro can be e.g. as follows:\\
% \verb|\address{Gerd}{Neugebauer}%|\\
% \verb| {Mainzer Str. 8\\56321 Rhens}|
%
%
% The address is given to \verb|\index| to be stored in the .idx
% file. This file is sorted and reformatted to produce the sorted
% list of addresses.
%
% The problem was to get the correct (German) ordering. For this
% purpose the \TeX{} macros which are (normally) part of a name
% have to be expanded properly. Unfortunately plain expansion may
% leave braces which confuse makeindex. To get rid of these braces
% we have to scan the tokens and transfer those tokens that are not
% braces.
%
% We use one big assumption. We assume that a name does not contain
% a dollar sign. Well, it is rather unusual that mathematics is
% part of a name.
%
% The better solution would be a future version of makeindex which
% is able to cope with those problems (wait and pray:-)
% \changes{1.5}{2001/06/05}{Some magic for doublequote}
% \begin{macrocode}
\chardef\DTK@cat=\the\catcode`\"
\catcode`\"=13
\newcommand\address[3]{%
\begingroup
\def\"##1{\@ifundefined{detex@@##1}{##1}%
{\csname detex@@##1\endcsname}}%
\ifcat a\noexpand"\else\let"=\"\fi
\def\ss{ss}%
\let\'=\relax
\let\`=\relax
\let\^=\relax
\let\.=\relax
\let\==\relax
\let\d=\relax
\let\b=\relax
\let\c=\relax
\let\v=\relax
\let\H=\relax
\let\t=\relax
\let\u=\relax
\let\~=\relax
\def\o{o}%
\def\O{O}%
\def\aa{aa}%
\def\AA{Aa}%
\def\l{l}%
\def\L{L}%
\def\ae{ae}%
\def\AE{Ae}%
\def\oe{oe}%
\def\OE{Oe}%
\def\TeX{TeX}%
\def\LaTeX{LaTeX}%
\def\LaTeXe{LaTeX2e}%
\let\null=\relax
\xdef\@ddress{#2, #1}%
\endgroup
\begingroup
\def\\{\string\\}%
\ifcat a\noexpand"\else\def\"{\string"}\fi
\def"{\string"}%
\def\null{}%
\expandafter\@strip\@ddress$%$
\index{\STRIP@*#1 #2!#3}%
\endgroup
}
\catcode`\"=\DTK@cat
% \end{macrocode}
% \end{macro}
% For the removing of \TeX\ macros in addresses we need some
% definitions to perform the mapping.
% \begin{macrocode}
\let\strip@grp={
\let\strip@end=$%$
\def\@strip{\def\STRIP@{}\strip@I}
\def\strip@I{\let\strip@next=\strip@I
\futurelet\strip@CHAR\strip@II}
\def\strip@II#1{%
\ifx\strip@CHAR\strip@end
\let\strip@next=\relax
\else\ifx\strip@CHAR\strip@grp
\strip@I #1$%$
\let\strip@next=\strip@I
\else\ifcat\strip@CHAR A
\xdef\STRIP@{\STRIP@#1}%
\else\ifcat\strip@CHAR.
\xdef\STRIP@{\STRIP@#1}%
\else\ifcat\strip@CHAR\space
\xdef\STRIP@{\STRIP@ #1}%
\fi\fi\fi\fi\fi
\strip@next}
% \end{macrocode}
%
% \begin{macrocode}
\def\detex@@a{ae}
\def\detex@@o{oe}
\def\detex@@u{ue}
\def\detex@@A{Ae}
\def\detex@@O{Oe}
\def\detex@@U{Ue}
\def\detex@@s{ss}
% \end{macrocode}
%
% \begin{environment}{theaddresses}
% The addresses are collected in an environment Addresses. This
% environment is used to customize the layout of this list.
% \changes{1.5}{2001/04/08}{raggedright added.}
% \changes{1.7}{2001/11/03}{boxing of address items and raggedbottom added.}
% \begin{macrocode}
\ifDTK@Author@\else
\newenvironment{theaddresses}{%
\chapter{\addressname}\Label{addresses}
\begingroup
\columnsep=10pt
\addresssize
\def\addressitem##1##2##3{%
\par
\parbox{\columnwidth}{
\textbf{##1}\hfill[\ignorespaces ##3]%
\\ ##2}}
\begin{multicols}{2}%
\raggedbottom
\raggedright
}{%
\end{multicols}%
\endgroup
}
\fi
\newcommand\addresssize{\footnotesize\parskip=6pt plus 2pt minus 3pt}
% \end{macrocode}
%
% For older issues another definition has been used.
% \begin{macrocode}
%</class>
%<*ninetyfive|ninetysix>
\let\addresssize\relax
%</ninetyfive|ninetysix>
%<*class>
% \end{macrocode}
% \end{environment}
%
% \begin{macro}{\listofaddresses}
% This macro reads the index file which is assumed to contain the
% properly formatted list of authors. If this file does not exist
% then a warning is printed.
%
% \begin{macrocode}
\ifDTK@Author@
\newcommand\listofaddresses{%
\typeout{*** listofaddresses not supported in articles.}}
\else
\newcommand\listofaddresses{%
\InputIfFileExists{\jobname.ind}{}{%
\typeout{No file \jobname.ind.}%
\typeout{Use the following command to create it:\space\space
makeindex -s dtk.ist \jobname}%
\typeout{\space}}%
}
\fi
% \end{macrocode}
% \end{macro}
%
%
% \subsection{The Table of Contents}
%
% \begin{macro}{\tableofcontents}
% The table of contents should appear as a page of it's own. It
% should have an appropriate headline if it is long
% enough. Otherwise the first page has no headline and no page
% number.
%
% \begin{macro}{\tableofcontents}
% This macro produces the table of contents. It is not availlable
% for single articles
% \begin{macrocode}
\ifDTK@Author@
\renewcommand\tableofcontents{%
\typeout{*** tabelofcontents not supported in articles.}}
\else
\renewcommand\tableofcontents{%
\clearpage
\thispagestyle{empty}%
\markboth{\contentsname}{\contentsname}%
\ContentsArt
\begingroup
\parskip=\ContentsParSkip
\let\\=\relax
\TOC@configure
\@starttoc{toc}
\endgroup
}
\fi
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\TOC@configure}
% This macro can be used to redefine properties of the table of
% contents.
% \begin{macrocode}
\let\TOC@configure\relax
%</class>
%<*ninetyseven|ninetyeight|ninetynine>
\def\TOC@configure{\renewcommand{\bfdefault}{bdx}}
%</ninetyseven|ninetyeight|ninetynine>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ContentsArt}
% This macro is used to typeset the head of the table of contents.
% \begin{macrocode}
\newcommand\ContentsArt{%
\vspace*{-\headheight}\vspace*{-\headsep}\vspace*{-2pt}
\begin{minipage}{\textwidth}
\Huge \journalname\\[2pt]%
\rule{\textwidth}{2pt}\\[2pt]%
\null\hfill
\CoverArt@small
\cover@sub{\volume}{\DTKedition}{\DTKdate}
\end{minipage}\vspace{16pt minus 8pt}\par
}
% \end{macrocode}
% \end{macro}
% \begin{macrocode}
%</class>
%<*ninetyfive>
\ifDTK@Author@\else
\renewcommand\ContentsArt{\part@nosubtitle{\contentsname}}
\fi
%</ninetyfive>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
\DeclareFontShape{T1}{cmr}{bdx}{n}
{<5><6><7><8><9><10><10.95><12>
<14.4><17.28><20.74><24.88> ecrb10
}{}
\DeclareFontShape{OT1}{cmr}{bdx}{n}
{<5><6><7><8><9><10><10.95><12>
<14.4><17.28><20.74><24.88> cmbdx10
}{}
% \end{macrocode}
%
% The lines contained in the table of contents are determined by
% the counter \verb|tocdepth|. The counter defines a level above
% which the lines are suppressed in the table of contents.
%
% We are only interested in chapters and parts. Chapters have level
% 0 and parts have level -1. Thus we set \verb|tocdepth| to 0.
% \begin{macrocode}
\setcounter{tocdepth}{0}
% \end{macrocode}
% The layout of the lines in the table of contents is determined by
% the macros \verb|\l@|{\em type}. Some of them are redefined next.
%
% \begin{macro}{\l@part}
% This macro determines the layout of the line in the table of
% contents for parts. It simply imitates the layout of chapters
% without additional space.
% \changes{1.4}{2000/08/12}{Definition modified.}
%
% \begin{macrocode}
\renewcommand\l@part[2]{%
\addpenalty{-\@highpenalty}%
\addvspace{0.5em plus 0pt}% space above part line
\@tempdima 1.5em
\begingroup
\bf
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\par
\penalty\@highpenalty
\endgroup
\addvspace{0.2em}%
}
% \end{macrocode}
%
% For older issues another definition has been used.
% \begin{macrocode}
%</class>
%<*ninetyfive|ninetysix>
\renewcommand\l@part[2]{%
\addpenalty{-\@highpenalty}%
\addvspace{0.5em plus 0pt}% space above part line
\@tempdima 1.5em
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\bf
\leavevmode
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak\hfil \nobreak\hbox to\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup}
%</ninetyfive|ninetysix>
%<*class>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\l@chapter}
% This macro determines the layout of the line in the table of
% contents for chapters. It simply imitates the layout of
% sections.
% \changes{1.4}{2000/08/12}{Definition modified.}
%
% \begin{macrocode}
\renewcommand\l@chapter[2]{%
\begingroup
\vskip \z@ \@plus.2\p@
\@afterindenttrue
\interlinepenalty\@M
\@tempdima 1.5em\relax % number width
\@tempdimb 2.5em\relax % indent
\advance\leftskip \@tempdimb
\advance\rightskip \@tempdimb
% \advance\leftskip \@tempdima
\noindent\hskip -\leftskip
% \hbox to\@tempdimb{\hbox to\@tempdima{\hss #2}\hss}%
\hbox to\@tempdimb{#2\hss}%
#1\par
\endgroup}
% \end{macrocode}
%
% For older issues another definition has been used.
% \begin{macrocode}
%</class>
%<*ninetyfive|ninetysix>
\renewcommand\l@chapter{\@dottedtocline{0}{1.5em}{2.3em}}
%</ninetyfive|ninetysix>
%<*class>
% \end{macrocode}
% \end{macro}
%
% For backward compatibility modes we have defined class options.
% If an old layout is requested via a class option then we have to
% load now the appropriate class option file.
% \begin{macrocode}
\@ifundefined{DTK@layout}{}{\input dtk\DTK@layout.clo}
% \end{macrocode}
%
% Now the class is complete.
% \begin{macrocode}
%</class>
%<*logos>
% \end{macrocode}
%
%
% \section{The Package dtklogos}
%
% This section contains some useful abbreviations. They are mainly
% some kind of logos.
% \changes{1.4}{2000/08/27}{Logos moved to a separate package.}
% \begin{macrocode}
\ProvidesPackage{dtklogos}[\filedate\space\fileversion\space gene]
% \end{macrocode}
%
% First we have to determine which kind of \LaTeX{} is running. We use
% the existence of the macro \verb|\documentclass| to see if we have a
% \LaTeXe. This macro should not be defined in \LaTeX\,2.09.
% \begin{macrocode}
\newif\ifOldLaTeX
\@ifundefined{documentclass}{\OldLaTeXtrue}{\OldLaTeXfalse}
% \end{macrocode}
% The following hack is from Bernd Raichle.
%
% For \LaTeX\,2.09 (with or without NFSS) we need something like
% the \verb|\smaller| from the obsolete ``smaller.sty'' to emulate
% SmallCaps for (nearly) all types of fonts. For SmallCaps it is
% required to reduce further than for \verb|\smaller|. Thus we make
% a new definition for \verb|\logo@smaller| which is oriented at
% the ``math sizes'' (here: \verb|\scriptfont<fam>|) which is
% defined in \LaTeXe.
%
% \begin{macrocode}
\ifOldLaTeX
\expandafter\ifx\csname selectfont\endcsname\relax
% \end{macrocode}
%
% For OFSS a hack is needed to switch back to Family/Series/Shape.
% For this purpose we ``abuse'' the ``math group/fam'' which is
% changed similar to the macros from the file ``lfonts.tex''.
% \begin{macrocode}
\newcommand{\logo@sm@ller}{\relax
\expandafter\logo@sm@ll@r\expandafter{\the\fam}}
\newcommand{\logo@sm@ll@r}[1]{%
% \ifx\@currsize\tiny \tiny\fi
\ifx\@currsize\scriptsize \tiny\fi
\ifx\@currsize\footnotesize \tiny\fi
\ifx\@currsize\small \scriptsize\fi
\ifx\@currsize\normalsize \scriptsize\fi
\ifx\@currsize\large \footnotesize\fi
\ifx\@currsize\Large \normalsize\fi
\ifx\@currsize\LARGE \large\fi
\ifx\@currsize\huge \Large\fi
\ifx\@currsize\Huge \huge\fi
\ifcase#1\relax\rm\or\mit\or\cal\or\tenex % not sure about the tenex
\or\it\or\sl\or\bf\or\tt\or\sf\or\sc\or\ly\fi}
\else
% \end{macrocode}
%
% With NFSS (for \LaTeX\,2.09) we can change the size indepenently
% from the other font properties. Thus things are easier.
% \begin{macrocode}
\newcommand{\logo@sm@ller}{%
\relax\@nomath\logo@smaller
\ifx\f@size\@vpt \else
\ifx\f@size\@vipt \fontsize\@vpt{6pt}\fi
\ifx\f@size\@viipt \fontsize\@vpt{6pt}\fi
\ifx\f@size\@viiipt \fontsize\@vipt{7pt}\fi
\ifx\f@size\@ixpt \fontsize\@vipt{7pt}\fi
\ifx\f@size\@xpt \fontsize\@viipt{8pt}\fi
\ifx\f@size\@xipt \fontsize\@viiipt{9.5pt}\fi
\ifx\f@size\@xiipt \fontsize\@viiipt{9.5pt}\fi
\ifx\f@size\@xivpt \fontsize\@xpt{12pt}\fi
\ifx\f@size\@xviipt \fontsize\@xiipt{14pt}\fi
\ifx\f@size\@xxpt \fontsize\@xivpt{18pt}\fi
\ifx\f@size\@xxvpt \fontsize\@xxpt{25pt}\fi
\selectfont
\fi}
% \end{macrocode}
%
% The first versions of NFSS have used the macro name \verb|\size|
% instead of \verb|\fontsize|.
% \begin{macrocode}
\@ifundefined{fontsize}{\let\fontsize=\size}{}
\fi
\newcommand{\logo@smaller}{\protect\logo@sm@ller}
\fi
% \end{macrocode}
%
% \subsection{Macros from texnames.sty}
%
% The following macros are taken from the file {\tt texnames.sty}
% version \verb|1.09| from \verb|<16 March 1993>| by Nelson
% H.\,F.~Beebe. I have simply included the definitions here to avoid
% additional files to be distributed with dtk.dtx. The original
% documentation has been wrapped into the doc format. And here it goes:
%
% In the following, we first give the ``official'' definition,
% then follow it with spelling variants. Alternate definitions
% are discarded in favor of the official one. Each family is
% separated by a line like the following one.
%
% \begin{macro}{\TeX}
% Only change from plain.tex is the \verb|\spacefactor| assignment
% (suggested by Phil Taylor), so that \TeX\ at the end of a
% sentence isn't treated as an abbreviation.
%
% \begin{macrocode}
\renewcommand\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX%
\spacefactor1000 }
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\AmS}
% From the AMS tex/ams/amslatex/fontsel/nfssinst.tex file:
% \begin{macrocode}
\providecommand\AmS{%
\(\cal A\)\kern-.1667em\lower.5ex\hbox
{\(\cal M\)}\kern-.125em{\(\cal S\)}}
\providecommand\AMS{\AmS}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\AmSLaTeX}
% \begin{macrocode}
\providecommand\AmSLaTeX{\AmS-\LaTeX}
\providecommand\AMSLaTeX{\AmSLaTeX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\AmSTeX}
% Mike Spivak's amstex/amstex.tex 1.1d [26-Aug-1988] has\\
% \verb|\def\AmSTeX{{\textfontii A}\kern-.1667em\lower.5ex\hbox|\\
% \verb| {\textfontii M}\kern-.125em{\textfontii S}-\TeX}|\\
% and 2.1 [05-Apr-1991] has an equivalent definition.
% AmSTeX's \verb|\textfontii| is exactly the same as \verb|\cal|, which
% all \TeX variants understand.
%
% \begin{macrocode}
\providecommand\AmSTeX{%
$\cal A$\kern-.1667em\lower.5ex\hbox{$\cal M$}%
\kern-.125em$\cal S$-\TeX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\AMSTEX}
% Leslie Lamport's latex/tmanual.tex [10-Jul-1984] (an early
% draft of the book) defines it in uppercase with the standard
% definition.
% \begin{macrocode}
\providecommand\AMSTEX{\AmSTeX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\AMSTEX}
% Barbara Beeton's latex/deproc.sty [24-Apr-1986] and inputs/tugbot.sty
% [11-Jan-1988] uses this spelling, but the definition\\
% \verb|\leavevmode\hbox{$\cal A\kern-.2em\lower.376ex \hbox{$\cal|\\
% \verb|M$}\kern-.2em\cal S$-\TeX}|
% \begin{macrocode}
\providecommand\AMSTeX{\AmSTeX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\BibTeX}
% The definitions of \verb|\BibTeX| and \verb|\SLiTeX| in Leslie Lamport's
% latex/local.tex lower the E by 0.7ex, while \TeX in plain.tex lowers
% it by 0.5ex. Oren Patashnik's bibtex/btxdoc.tex and bibtex/btxhak.tex
% [08-Feb-1988] and bibtex/bibtex.web 0.99c [xx-Feb-1988] use this same
% name and definition, but Oren said using \TeX here is ok. (Curiously,
% \LaTeX itself does not define macros for any \TeX ware except \LaTeX and
% \TeX!)
%
% \begin{macrocode}
\ifOldLaTeX
\newcommand{\BibTeX}{\protect\pBibTeX}
\newcommand{\pBibTeX}{B\kern-.05em%
\hbox{\logo@smaller I\kern-.025emB}\kern-.08em%
\-\TeX}
\else
\DeclareRobustCommand{\BibTeX}{B\kern-.05em%
% \end{macrocode}
%
% The following hack comes from the definition of the macro \LaTeX\
% cf.~file ``ltlogos.dtx'' from the \LaTeXe\ distribution. der
% \begin{macrocode}
\hbox{$\m@th$% %% force math size calculations
\csname S@\f@size\endcsname
\fontsize\sf@size\z@
\math@fontsfalse\selectfont
I\kern-.025emB}%
\kern-.08em%
\-\TeX}
\fi
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\BIBTeX}
% Leslie Lamport uses this spelling in latex.tex, but not as a
% macro. We include it for consistency with AMSTeX.
%
% \begin{macrocode}
\providecommand\BIBTeX{\BibTeX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\BIBTEX}
% Leslie Lamport's latex/slides.tex [05-Jun-1984],
% latex/tmanual.tex [10-Jul-1984] (an early draft of the book),
% and latex/lerrata.tex [23-Jul-1985] have this spelling, but the
% definition \verb|BIB\kern-.1em\TeX|.
%
% \begin{macrocode}
\providecommand\BIBTEX{\BibTeX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\LAMSTeX}
% From tugboat.com 1.08 [24-Oct-1990].
%
% \begin{macrocode}
\providecommand\LAMSTeX{%
L\raise.42ex\hbox{\kern-.3em\the\scriptfont2 A}%
\kern-.2em\lower.376ex\hbox{\the\textfont2 M}%
\kern-.125em {\the\textfont2 S}-\TeX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\LamSTeX}
% This is just a variant of the macro above.
%
% \begin{macrocode}
\providecommand\LamSTeX{\LAMSTeX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\LAmSTeX}
% This variant seems likely to appear:
%
% \begin{macrocode}
\providecommand\LAmSTeX{\LAMSTeX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\LaTeX}
% The definition from latex.tex (\LaTeX{} VERSION 2.09 $<$14 January
% 1991$>$) and bibtex.web 0.99c [xx-Feb-1988] lowers the E slightly
% more than \TeX, but consistency seems more desirable. See
% comments at \BibTeX. Different definitions are given by
% latex/deproc.sty [24-Apr-1986], amstex/man.sty [15-Dec-1986]
% inputs/tugbot.sty [11-Jan-1988], and latex/tugboat.com 1.08
% [24-Oct-1990].
%
% \begin{macrocode}
\providecommand\LaTeX{%
L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em\TeX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\LATEX}
% latex/slides.tex [05-Jun-1984] and latex/lerrata.tex [23-Jul-1985]
% have this spelling, but different definitions
%
% \begin{macrocode}
\providecommand\LATEX{\LaTeX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\LaTeXTeX}
% This logo is invented in \verb|dtk.cls| to denote either \TeX{} or
% \LaTeX.
%
% \begin{macrocode}
\ifOldLaTeX
\newcommand\LaTeXTeX{(\kern-.15emL\kern-.36em\raise.3ex\hbox{\sc
a}\kern-.3em)\kern-.15em\TeX}%
\else
\DeclareRobustCommand{\LaTeXTeX}{(\kern-.15emL\kern-.36em%
{\sbox\z@ T%
\vbox to\ht0{\hbox{$\m@th$%
\csname S@\f@size\endcsname
\fontsize\sf@size\z@
\math@fontsfalse\selectfont
A}%
\vss}%
}\kern-.2em)%
\kern-.15em%
\TeX}
\fi
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\MF}
% Don Knuth's mf.web 2.7 [xx-Sep-1990] and Barbara Beeton's
% latex/deproc.sty [24-Apr-1986] use an equivalent of this definition.
% The font is variously named \verb|\logo|, \verb|\manfnt|, and
% \verb|\mf|. plain.tex
% preloads \verb|\manfnt|. manfnt has the letters A, E, F, M, N, O, T in
% various sizes plus extra symbols for Don Knuth's books Computers and
% Typesetting, and Concrete Mathematics, while logo10 has only those
% letters in one size. AmSTeX uses \verb|\logo| in amsppt.sty and
% imappt.sty, so we should avoid it, and tugboat.com uses
% \verb|\mf| for \verb|{\smc Metafont}|. We therefore use
% \verb|\manfnt| here, defining it if necessary. QUESTION: should
% we use manfnt, or logo10?
%
% \begin{macrocode}
\ifOldLaTeX
\ifx\manfnt\@undefined
\font\manfnt=logo10
\fi
\ifx\manfntsl\@undefined
\font\manfntsl=logosl10
\fi
\newcommand\MF{\begingroup
\ifdim\fontdimen1\font>0pt \let\manfnt=\manfntsl \fi
{\manfnt META}\-{\manfnt FONT}\endgroup\spacefactor1000 }%
\newcommand\MP{\begingroup
\ifdim\fontdimen1\font>0pt \let\manfnt=\manfntsl \fi
{\manfnt META}\-{\manfnt POST}\endgroup\spacefactor1000 }%
\else
% \end{macrocode}
%
% The following improved definitions are taken from mflogo by Ulrik
% Vieth.
%
% \begin{macrocode}
\DeclareFontFamily{U}{logo}{}
\DeclareFontShape{U}{logo}{m}{n}{
<8> <9> gen * logo
<10> <10.95> <12> <14.4> <17.28> <20.74> <24.88> logo10
}{}
\DeclareFontShape{U}{logo}{m}{it}{
<8> <9> gen * logosl
<10> <10.95> <12> <14.4> <17.28> <20.74> <24.88> logosl10
}{}
\DeclareFontShape{U}{logo}{m}{sl}{
<-> ssub * logo/m/it
}{}
\DeclareFontShape{U}{logo}{sbc}{n}{
<8> <9> sub * logo/m/n
<10> <10.95> <12> <14.4> <17.28> <20.74> <24.88> logobf10
}{}
\DeclareFontShape{U}{logo}{b}{n}{
<8> <9> sub * logo/m/n
<10> <10.95> <12> <14.4> <17.28> <20.74> <24.88> logod10
}{}
\DeclareFontShape{U}{logo}{bx}{n}{
<-> ssub * logo/b/n
}{}
\DeclareRobustCommand\logofamily{%
\not@math@alphabet\logofamily\relax
\fontencoding{U}\fontfamily{logo}\selectfont}
\DeclareTextFontCommand{\textlogo}{\logofamily}
% \end{macrocode}
%
% \changes{1.4}{2000/08/06}{Hyphenation of meta-font and meta-post only.}
%
% \begin{macrocode}
\newcommand\MF{\mbox{\textlogo{META}}\-\mbox{\textlogo{FONT}}\@}
\newcommand\MP{\mbox{\textlogo{META}}\-\mbox{\textlogo{POST}}\@}
\fi
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\METAFONT}
% I cannot find any ``official'' uses of this alternate, but it
% seems likely that people will use it.
%
% \begin{macrocode}
\providecommand\METAFONT{\MF}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\METAPOST}
% In analogy to \verb|METAFONT|.
%
% \begin{macrocode}
\providecommand\METAPOST{\MP}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\SLITEX}
% Leslie Lamport's latex/slides.tex [05-Jun-1984]. His
% latex/lerrata.tex [23-Jul-1985] and latex/tmanual.tex
% [10-Jul-1984] (an early draft of the book) define it as
% SLI\TeX! The \LaTeX\ User's Guide and Reference Manual (1986)
% appears to use small caps, and possibly kerning, for Sli.
% I need to ask Leslie to suggest a preferred definition.
%
% \begin{macrocode}
\providecommand\SLITEX{%
S\kern-.065em L\kern-.18em\raise.32ex\hbox{i}%
\kern-.03em\TeX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\SLiTeX}
% latex/local.tex (sample Local Guide) [27-Oct-1988] uses
% this name, but defines it as\\
% \verb|{\rm S\kern-.06em{\sc l\kern-.035emi}\kern-.06em T\kern|\\
% \verb| -.1667em\lower.7ex\hbox{E}\kern-.125emX}|\\
% with an extra-low E, and kerned Sli in small caps. Is this
% what the \LaTeX\ User's Guide and Reference Manual (1986) used?
%
% \begin{macrocode}
\providecommand\SLiTeX{\SLITEX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\SliTeX}
% latex/slitex.tex [08-Jun-1988] uses SliTeX in typeouts,
% but not as a macro -- what a way to confuse the user.
%
% \begin{macrocode}
\providecommand\SliTeX{\SLITEX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\SLITeX}
% I cannot find a use of this one, but it seems a likely
% candidate anyway, and is consistent with AMSTeX and BIBTeX.
%
% \begin{macrocode}
\providecommand\SLITeX{\SLITEX}
% \end{macrocode}
% \end{macro}
%
%
% \subsection{Additional Macros}
%
% Some additional logos showed up during the years they are
% collected in this section.
%
% \begin{macro}{\NTS}
% This one comes from a communication with Bernd Raichle.
%
% \begin{macrocode}
\providecommand\NTS{\mbox{\mathsurround=0pt
\(\cal N\mkern -4mu\lower .5ex\hbox{$\cal T$}\mkern -2mu S\)}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\MakeIndex}
% This one comes from a communication with Bernd Raichle based on
% makeindex.tex -- released 17 February 1987 by Leslie Lamport.
% \begin{macrocode}
\providecommand\MakeIndex{\textit{Make\-Index}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\emTeX}
%
% \changes{1.3}{1997/02/03}{logo added.}
% \begin{macrocode}
\providecommand\emTeX{{em\TeX}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\PublicTeX}
%
% \changes{1.3}{1997/02/03}{logo added.}
% \begin{macrocode}
\providecommand\PubliCTeX{PubliC\TeX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\TeXXeT}
% This one comes from the sources of web2c.
% \changes{1.2}{1996/12/15}{logo added.}
% \begin{macrocode}
\providecommand\TeXXeT{%
\TeX--X\kern-.125em\lower.5ex\hbox{E}\kern-.1667emT}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\TeXeT}
% This one comes from the sources of web2c.
% \changes{1.2}{1996/12/15}{logo added.}
% \begin{macrocode}
\providecommand\TeXeT{%
\TeX-X\kern-.125em\lower.5ex\hbox{E}\kern-.1667emT}
% \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\WinEdt}
% This one comes from Volker RW Schaa.
% \changes{1.7}{2001/11/02}{logos added.}
% \begin{macrocode}
\providecommand\WinEdt{\mbox{\textsf{WinEdt}}}%
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\WinEdtKK}
% This one comes from Volker RW Schaa.
% \changes{1.7}{2001/11/02}{logos added.}
% \begin{macrocode}
\providecommand\WinEdtKK{\mbox{\textsf{WinEdt2k}}}%
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\LyX}
% This one comes from an article by Laura E. Jackson and Herbert Vo\ss.
% \changes{1.7}{2001/11/02}{logo added.}
% \begin{macrocode}
\providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
% \end{macrocode}
% \end{macro}
%
%
% \subsection{Additional Macros for Acronyms}
%
% The following macros are maily form the predecessor style
% file. Some new ones have been added.
%
% \begin{macro}{\eV}
% The abbreviation for e.V\kern-.18em.\ is defined in
% this macro. The kerning of the letters is corrected manually.
%
% \begin{macrocode}
\providecommand\eV{e.V\kern-.18em\@ifnextchar.{}{.}}
% \end{macrocode}
% Disclaimer: I have not invented this macro. It has been defined
% this way in the predecessor style.
% \begin{macrocode}
%</logos>
%<*ninetyfive>
\renewcommand\eV{e.\kern-.18emV\kern-.18em\@ifnextchar.{}{.}}
%</ninetyfive>
%<*logos>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\dante}
% The ``official logo'' for DANTE e.V\kern-.18em.\ is defined.
% \begin{macrocode}
\providecommand\dante{DANTE \eV}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Dante}
% The long name of DANTE.
% \begin{macrocode}
\providecommand\Dante{DANTE,
Deutschsprachige Anwendervereinigung \TeX~\eV}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\DTK}
% The long name of this booklet, eh journal.
% \begin{macrocode}
\providecommand\DTK{Die \TeX\-ni\-sche Ko\-m{\"o}\-die}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\LaTeXe}
% If \verb|\LaTeXe| is not defined then define it. Since this macro
% is so essential we just want to be sure that it exists.
% \begin{macrocode}
\providecommand\LaTeXe{%
\LaTeX{}\kern.05em2$_{\textstyle\varepsilon}$}
% \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\PS}
% We define the logo for Post\-Script.
% \begin{macrocode}
\providecommand\PS{Post\-Script}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\PiC}
% For some reason this is not defined in texnames.sty. Since it has
% been in the predecessor of this style it is also defined here.
% \begin{macrocode}
\providecommand\PiC{P\kern-.12em\lower.5ex\hbox{I}\kern-.075emC}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\PiCTeX}
% Now the previous macro is combined with \TeX.
% \begin{macrocode}
\providecommand\PiCTeX{\PiC\kern-.11em\TeX}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\TUG}
% The \TeX{} Users Group.
% \begin{macrocode}
\providecommand\TUG{\TeX{} Users Group}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\TUGboat}
% The communications of the \TeX{} Users Group.
% \begin{macrocode}
\providecommand\TUGboat{\textsl{TUGboat}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\TUB}
% The communications of the \TeX{} Users Group.
% \begin{macrocode}
\let\TUB\TUGboat
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\TTN}
% The communications of the \TeX{} Users Group
% \begin{macrocode}
\providecommand\TTN{\textsl{\TeX{} and TUG NEWS}}
% \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\NFSS}
% The New Font Selection Scheme.
% \begin{macrocode}
\providecommand\NFSS{\textsf{NFSS}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\NTS}
% I don't know where this one comes from.
% \changes{1.4}{2000/08/06}{NTS logo added.}
% \begin{macrocode}
\providecommand\NTS{\leavevmode
\hbox{$\cal N\kern-0.35em\lower0.5ex\hbox{$\cal T$}\kern-0.2emS$}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\eTeX}
% I don't know where this one comes from.
% \changes{1.4}{2000/08/06}{eTeX logo added.}
% \begin{macrocode}
\providecommand\eTeX{{\leavevmode\hbox{$\varepsilon$}-\TeX}}
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
%</logos>
% \end{macrocode}
%
%
% \section{The Package dtk-pdf for PDF Reprints}
% \changes{1.4}{2000/08/12}{Packet dtk-pdf integrated.}
%
% The following section contains the package which is used to
% produce the PDF files for the WWW.
%
% \begin{macrocode}
%<*pdf>
% \end{macrocode}
%
% A lot of packages are required to get things right.
%
% \begin{macrocode}
\ProvidesPackage{dtk-pdf}[\filedate\space\fileversion\space gene]
% \end{macrocode}
%
% A lot of packages are required to get things right.
%
% \begin{macrocode}
\RequirePackage{ae,multicol,graphicx,color}
\RequirePackage[bookmarks=false]{hyperref}
% \end{macrocode}
%
% Configure the \verb|hyperref| package appropriately.
%
% \begin{macrocode}
\hypersetup{a5paper,colorlinks,urlcolor=blue}
% \end{macrocode}
%
% Slightly adjust the page on the paper.
%
% \begin{macrocode}
\oddsidemargin=-10mm
\evensidemargin=-10mm
\topmargin=-15mm
% \end{macrocode}
%
% \begin{macro}{\Volume}
% This macro contains the number of the volume in which the current
% article has been published.
% \begin{macrocode}
\newcommand\Volume{?/??}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Pages}
% This macro contains the numbers of the pages on which the
% curtrent article has been published originally.
% \begin{macrocode}
\newcommand\Pages{???}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\volume}
% This macro is redefined to show appropriate information.
% \begin{macrocode}
\renewcommand\volume{\Volume\ -- Nachdruck}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\titlemark}
% This macro is used in some old articles. Nowadays it simply has
% to eat up one following argument.
% \begin{macrocode}
\let\titlemark\@gobble
% \end{macrocode}
% \end{macro}
%
%
%
% \begin{macrocode}
\newcount\AdNo \AdNo=0
% \end{macrocode}
%
% \begin{macro}{\Address}
% This macro is used to typeset all adresses.
% \begin{macrocode}
\newcommand\Address{\bigskip\par\advance\AdNo1
\begin{multicols}2 \count255=0\relax
\loop\csname Address\the\count255\endcsname\advance\count255 1
\ifnum\count255<\AdNo \repeat
\end{multicols}}
% \end{macrocode}
% \end{macro}
%
%
%
% \begin{macrocode}
\renewcommand\address[3]{%
\expandafter\gdef\csname Address\the\AdNo\endcsname
{\par\parbox{.45\textwidth}{\footnotesize\raggedright
#1 #2 \\#3}}\advance\AdNo1\relax}
% \end{macrocode}
%
% Store the address of DANTE as first address in the list.
%
% \begin{macrocode}
\address{\href{http://www.dante.de/}{\Dante}}{}{%
\href{http://www.dante.de/}{Postfach 10\,18\,40\\
69008 Heidelberg\\
\texttt{dante@dante.de}}}
% \end{macrocode}
%
%
%
% \begin{macrocode}
\providecommand\DTK@keywords{}
% \end{macrocode}
%
% \begin{macro}{\m@ketitle}
% Save the meaning of \verb|\maketitle| to extend it.
% \begin{macrocode}
\let\m@ketitle=\maketitle
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\maketitle}
% The macro is redefined to typeset the head of the single article.
% Th information for the author and the title are stored in the PDF
% information fields aswell. This may lead to problems if they
% contain certain macros.
% \changes{1.5}{2001/10/21}{Mapping of certain macros}
% \begin{macrocode}
\renewcommand\maketitle{%
\thispagestyle{empty}%
\newlength{\lx}\settowidth{\lx}{\Large\DTK}%
\advance\lx3em\quad
\href{http://www.dante.de/dante/DTK}{%
\rotatebox{90}{\hspace*{1.5em}\Large\DTK}}
\rule{.9pt}{\lx}\quad
%
\begin{minipage}[b]{.75\textwidth}\parskip=1ex
{\raggedleft\large
\href{http://www.dante.de/}{DANTE\\
Deutschsprachige\\
Anwendervereinigung \TeX\ e.V.}\medskip\par
}
\ifx\@author\empty\else\@author: \fi\emph{\@title}, \DTK\
\Volume, S.\ \Pages.\medskip
\scriptsize Reproduktion oder Nutzung dieses Beitrags durch
konventionelle, elektronische oder beliebige andere Verfahren ist
nur im nicht-kommerziellen Rahmen gestattet. Verwendungen in
gr"o"serem Umfang bitte zur Information bei \dante{} melden. F\"ur
kommerzielle Nutzung ist die Zustimmung der Autoren einzuholen.
\DTK\ ist die Mitgliedszeitschrift von \Dante. Einzelne Hefte
k\"onnen von Mitgliedern bei der Gesch\"aftsstelle von \Dante\
erworben werden. Mitglieder erhalten \DTK\ im Rahmen ihrer
Mitgliedschaft.
\end{minipage}
\begingroup
\def\LaTeX{LaTeX}%
\def\BibTeX{BibTeX}%
\def\TeX{TeX}%
\def\LyX{LyX}%
\hypersetup{%
pdftitle=\@title,
pdfauthor=\@author,
pdfkeywords={\DTK@keywords},
pdfsubject={\volume},
pdfstartview={FitBH}
}%
\endgroup
\m@ketitle
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\textcentigrade}
% This macro is defined for backward compatibility.
% \begin{macrocode}
\def\textcentigrade{\textcelsius}
% \end{macrocode}
% \end{macro}
%
%
% \verb|\guillemotleft|/\verb|\guillemotright| from the polish
% version of the ``computer modern''.
%
% \begin{macrocode}
\AtBeginDocument{%
\DeclareFontEncoding{OT4}{}{}%
\DeclareFontEncoding{TS1}{}{}%
\DeclareFontSubstitution{OT4}{cmr}{m}{n}%
\DeclareTextCommand{\guillemotleft}{\encodingdefault}{%
{\fontencoding{OT4}\fontfamily{cmr}\selectfont\char174}}%
\DeclareTextCommand{\guillemotright}{\encodingdefault}{%
{\fontencoding{OT4}\fontfamily{cmr}\selectfont\char175}}%
\DeclareTextCommand{\guilsinglleft}{\encodingdefault}{%
{\fontencoding{T1}\fontfamily{cmr}\selectfont\char14}}%
\DeclareTextCommand{\guilsinglright}{\encodingdefault}{%
{\fontencoding{T1}\fontfamily{cmr}\selectfont\char15}}%
\DeclareTextCommand{\textperthousand}{\encodingdefault}{%
{\fontencoding{TS1}\fontfamily{cmr}\selectfont\char135}}%
}
% \end{macrocode}
%
%
%
% \begin{macrocode}
\newif\ifmaintitle
% \end{macrocode}
%
% Old versions of \LaTeX\ used to define \verb|\footheight|. Some
% articles try to redefine this length. Nowadays it is simply
% ignored.
% \begin{macrocode}
\newlength\footheight
% \end{macrocode}
%
% Now the packet is complete.
%
% \begin{macrocode}
%</pdf>
% \end{macrocode}
%
%
% \section{The Index Style}
% \changes{1.4}{2000/08/27}{Index file integrated into the dtx file.}
%
% The index style is used to sort the authors of the journal for
% the list of all authors. Makeindex is used for this purpose. Here
% we have to define the appropriate configuration file.
%
% \begin{macrocode}
%<*ist>
actual '*'
preamble "\\begin{theaddresses}"
postamble "\n\\end{theaddresses}\n"
item_0 "\n \\addressitem{"
item_2 "}{"
item_x1 "}{"
item_x2 "}{"
delim_0 "}{"
delim_1 "}{"
delim_2 "}{"
delim_t "}"
group_skip ""
quote '$'
%</ist>
% \end{macrocode}
%
% That's all.
%
% \Finale
%
\endinput
%
% Local Variables:
% mode: latex
% TeX-master: t
% End:
|