1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273
|
% \iffalse meta-comment
%
% % \iffalse meta-comment
% %
% % Copyright (C) 1990-2004 Nederlandstalige TeX Gebruikersgroep.
% % All rights reserved.
% %
% % This file is part of the NTG document classes distribution
% % ----------------------------------------------------------
% %
% % It may be distributed and/or modified under the
% % conditions of the LaTeX Project Public License, either version 1.3
% % of this license or (at your option) any later version.
% % The latest version of this license is in
% % http://www.latex-project.org/lppl.txt
% % and version 1.3 or later is part of all distributions of LaTeX
% % version 2003/12/01 or later.
% %
% % This work has the LPPL maintenance status "maintained".
% %
% % The Current Maintainer of this work is Johannes Braams.
% %
% % The list of all files belonging to the NTG document classes
% % distribution is given in the file `manifest.txt.
% %
% % The list of derived (unpacked) files belonging to the distribution
% % and covered by LPPL is defined by the unpacking scripts (with
% % extension .ins) which are part of the distribution.
% % \fi
% \fi
% \CheckSum{3726}
% \iffalse
%% Copyright (C) 1994 -- 2004 by Victor Eijkhout and Johannes Braams
%% Based on classes.dtx
%% Copyright (C) 1999 LaTeX3 project, all rights reserved.
%%
%% \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 \~}
%
% \section{Identification}
%
% These document classes can only be used with \LaTeXe, so we make
% sure that an appropriate message is displayed when another \TeX{}
% format is used.
% \begin{macrocode}
%<artikel|rapport|boek>\NeedsTeXFormat{LaTeX2e}[1995/06/01]
% \end{macrocode}
%
% Announce the Class name and its version:
% \begin{macrocode}
%<*artikel>
%<type1>\ProvidesClass{artikel1}%
%<type2>\ProvidesClass{artikel2}%
%<type3>\ProvidesClass{artikel3}%
%</artikel>
%<*rapport>
%<type1>\ProvidesClass{rapport1}%
%<type3>\ProvidesClass{rapport3}%
%</rapport>
%<*boek>
%<type1>\ProvidesClass{boek}%
%<type3>\ProvidesClass{boek3}%
%</boek>
%<10pt>\ProvidesFile{ntg10.clo}
%<11pt>\ProvidesFile{ntg11.clo}
%<12pt>\ProvidesFile{ntg12.clo}
%<*driver>
\ProvidesFile{ntgclass.drv}
%</driver>
[2004/06/07 v2.1a
%<artikel|rapport|boek> NTG LaTeX document class]
%<10pt|11pt|12pt> NTG LaTeX file (size option)]
% \end{macrocode}
% \changes{v2.0e}{1994/03/20}{removed the typeout statements they are
% no longer needed separately}
%
% \section{The documentation driver file}
%
% We use the document class provided by the \LaTeXe distribution
% for producing the documentation.
% \changes{v2.0e}{1994/03/20}{moved the driver code in order not to
% need a separate driver}
% \begin{macrocode}
%<*driver>
]
\documentclass{ltxdoc}
% \end{macrocode}
%
% We don't want everything to appear in the index
% \begin{macrocode}
\DoNotIndex{\',\.,\@M,\@@input,\@Alph,\@alph,\@addtoreset,\@arabic}
\DoNotIndex{\@badmath,\@centercr,\@cite}
\DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue}
\DoNotIndex{\@input,\@ixpt,\@m,\@minus,\@mkboth}
\DoNotIndex{\@ne,\@nil,\@nomath,\@plus,\@set@topoint}
\DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb}
\DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt}
\DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt}
\DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace}
\DoNotIndex{\advance,\Alph,\alph}
\DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box}
\DoNotIndex{\bullet}
\DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption}
\DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass}
\DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist}
\DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup}
\DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter}
\DoNotIndex{\fbox}
\DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef}
\DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule}
\DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi}
\DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi}
\DoNotIndex{\input}
\DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark}
\DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright}
\DoNotIndex{\month,\newcommand,\newcounter,\newenvironment}
\DoNotIndex{\NeedsTeXFormat,\newdimen}
\DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number}
\DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@}
\DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip}
\DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions}
\DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright}
\DoNotIndex{\refstepcounter,\relax,\renewcommand}
\DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily}
\DoNotIndex{\roman,\secdef,\selectfont,\setbox,\setcounter,\setlength}
\DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space}
\DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase}
\DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt}
\DoNotIndex{\viipt,\vipt,\vskip,\vspace}
\DoNotIndex{\wd,\xiipt,\year,\z@}
% \end{macrocode}
% We do want an index, using linenumbers
% \changes{v2.0t}{1996/03/31}{Added \cs{CodelineIndex} to make sure a
% \texttt{.idx} file is produced}
% \begin{macrocode}
\EnableCrossrefs
\CodelineIndex
% \end{macrocode}
% We use so many \file{docstrip} modules that we set the
% \texttt{StandardModuleDepth} counter to 1.
% \begin{macrocode}
\setcounter{StandardModuleDepth}{1}
% \end{macrocode}
% The following command retrieves the date and version information
% from the file.
% \begin{macrocode}
\GetFileInfo{ntgclass.drv}
% \end{macrocode}
% Some commonly used abbreviations
% \begin{macrocode}
\newcommand*\Lopt[1]{\textsf {#1}}
\newcommand*\file[1]{\texttt {#1}}
\newcommand*\Lcount[1]{\textsl {\small#1}}
\newcommand*\pstyle[1]{\textsl {#1}}
\newcommand*\Lenv[1]{\textsf {#1}}
% \end{macrocode}
% We also want the full details.
% \begin{macrocode}
\begin{document}
\DocInput{ntgclass.dtx}
\PrintIndex
% ^^A\PrintChanges
\end{document}
%</driver>
% \end{macrocode}
% \fi
%
%
%
% \changes{v2.0b}{1994/02/02}{Removed typos that were found in
% classes.dtx, synced with that file}
% \changes{v2.0d}{1994/02/23}{Fixed some errors in the documentation}
% \changes{v2.0f}{1994/04/18}{Sync'ed with classes.dtx}
% \changes{v2.0g}{1994/06/01}{Moved the identification section up
% front; removed the use of \cs{fileversion} c.s.}
% \changes{v2.0g}{1994/06/01}{Added the 'v' to \cs{changes}}
% \changes{v2.0m}{1994/12/20}{Use \cs{newcommand*} instead of
% \cs{newcommand} in most places}
% \changes{v2.0m}{1994/12/23}{Made the oneside option work for the
% book class}
% \changes{v2.0p}{1995/08/09}{Use \cs{cs} instead of \cs{cmd} in
% \cs{changes} entries}
% \changes{v2.0p}{1995/08/10}{use \cs{hb@xt@} instead of \cs{hbox}
% \texttt{to}}
% \changes{v2.0x}{1997/09/08}{Repaired a few documentation bugs}
%
% \title{NTG Document Classes for \LaTeX{} version 2e\thanks{This file
% has version number \fileversion, last revised \filedate.}}
%
% \author{%
% Copyright (C) 1992 by Leslie Lamport \and
% Copyright (C) 1994,1999 by Victor Eijkhout \and Johannes Braams
% }
% \date{\filedate}
%
% \maketitle
% \tableofcontents
%
% \StopEventually{} ^^A
%
% \section{Introduction}
%
% This file contains the set of document classes that were made
% available by Working Group 13 of the NTG (Nederlandstalige \TeX\
% Gebruikersgroep). They are compatible with the standard \LaTeX2e
% document classes, but implement different layouts.
%
% \section{The {\sc docstrip} modules}
%
% The following modules are used in the implementation to direct
% {\sc docstrip} in generating the external files:
% \begin{center}
% \begin{tabular}{ll}
% artikel & produce the documentclasses artikel?\\
% rapport & produce the documentclasses rapport?\\
% 10pt & produce the class option for 10pt\\
% 11pt & produce the class option for 11pt\\
% 12pt & produce the class option for 12pt\\
% boek & produce the documentclasses boek?\\
% type1 & produce the `1' variants of the classes\\
% type2 & produce the `2' variants of the classes\\
% type3 & produce the `3' variants of the classes\\
% driver & produce a documentation driver file \\
% \end{tabular}
% \end{center}
%
% \section{Initial Code}
%
% In this part we define a few commands that are used later on.
%
% \begin{macro}{\@ptsize}
% This control sequence is used to store the second digit of the
% pointsize we are typesetting in. So, normally, it's value is one
% of 0, 1 or 2.
% \begin{macrocode}
%<*artikel|rapport|boek>
\newcommand*\@ptsize{}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\if@restonecol}
% When the document has to printed in two columns, we sometimes
% have to temporarily switch to one column. This switch is used to
% remember to switch back.
% \begin{macrocode}
\newif\if@restonecol
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\if@titlepage}
% A switch to indicate if a titlepage has to be produced. For the
% artikel document class the default is not to make a seperate
% titlepage.
% \begin{macrocode}
\newif\if@titlepage
%<artikel>\@titlepagefalse
%<!artikel>\@titlepagetrue
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\if@openright}
% \changes{v2.0f}{1994/04/18}{Macro added}
% A switch to indicate if chapters must start on a right-hand page.
% The default for the report class is no; for the book class it's
% yes.
% \begin{macrocode}
%<!artikel>\newif\if@openright
% \end{macrocode}
% \end{macro}
%
% \changes{v2.0r}{1995/10/05}{Macro \cs{if@openbib} removed}
%
% \begin{macro}{\if@mainmatter}
% \changes{v2.0m}{1994/12/23}{Moved the allocation of
% \cs{if@mainmatter} here}
%
% The switch |\if@mainmatter|, only available in the document class
% book, indicates whether we are processing the main material in
% the book.
% \begin{macrocode}
%<boek>\newif\if@mainmatter \@mainmattertrue
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\if@oldtoc}
% A switch to indicate if `old' layout of the table of contents
% should be produced. These document classes normally produce a
% table of contents that looks quite different from what the
% standard classes produce.
% \begin{macrocode}
\newif\if@oldtoc
\@oldtocfalse
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\if@allcaps}
% By default the text on the titlepage is set in capital letters.
% This can be disabled by the option \Lopt{mctitle}, which sets the
% switch |\if@allcaps| to false.
% \begin{macrocode}
\newif\if@allcaps
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\if@titlecentered}
% In the document classes \file{artikel3} and \file{rapport3} the
% default placement of the title that is produced by |\maketitle|
% is flushleft. This can be changed by the switch
% |\if@titlecentered|.
% \begin{macrocode}
%<type3>\newif\if@titlecentered
%<type3>\@titlecenteredfalse
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\if@revlabel}
% These document classes need to be able to change the positioning
% of the label in labeled lists. This switch is used for that
% purpose.
% \begin{macrocode}
\newif\if@revlabel
% \end{macrocode}
% \end{macro}
%
% \section{Declaration of Options}
%
%
% \subsection{Setting Paper Sizes}
%
% The variables |\paperwidth| and |\paperheight| should reflect the
% physical paper size after trimming. For desk printer output this
% is usually the real paper size since there is no post-processing.
% Classes for real book production will probably add other paper
% sizes and additionally the production of crop marks for trimming.
% \changes{v1.0.7}{1993/12/09}{Removed typo, A4 is not 279 mm high}
% \begin{macrocode}
\DeclareOption{a4paper}
{\setlength\paperheight {297mm}%
\setlength\paperwidth {210mm}}
\DeclareOption{a5paper}
{\setlength\paperheight {210mm}%
\setlength\paperwidth {148mm}}
\DeclareOption{b5paper}
{\setlength\paperheight {250mm}%
\setlength\paperwidth {176mm}}
\DeclareOption{letterpaper}
{\setlength\paperheight {11in}%
\setlength\paperwidth {8.5in}}
\DeclareOption{legalpaper}
{\setlength\paperheight {14in}%
\setlength\paperwidth {8.5in}}
\DeclareOption{executivepaper}
{\setlength\paperheight {10.5in}%
\setlength\paperwidth {7.25in}}
% \end{macrocode}
%
% The option \Lopt{landscape} switches the values of |\paperheight|
% and |\paperwidth|, assuming the dimensions wer given for portrait
% paper.
% \begin{macrocode}
\DeclareOption{landscape}
{\setlength\@tempdima {\paperheight}%
\setlength\paperheight {\paperwidth}%
\setlength\paperwidth {\@tempdima}}
% \end{macrocode}
%
% \subsection{Choosing the type size}
%
% The type size options are handled by defining |\@ptsize| to contain
% the last digit of the size in question and branching on |\ifcase|
% statements. This is done for historical reasons to stay compatible
% with other packages that use the |\@ptsize| variable to select
% special actions. It makes the declarations of size options less
% than 10pt difficult, although one can probably use \texttt{9}
% and \texttt{8} assuming that a class wont define both
% \Lopt{8pt} and \Lopt{18pt} options.
%
% \begin{macrocode}
\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
% \end{macrocode}
%
%
% \subsection{Two-side or one-side printing}
%
% For two-sided printing we use the switch |\if@twoside|. In
% addition we have to set the |\if@mparswitch| to get any margin
% paragraphs into the outside margin.
% \begin{macrocode}
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
% \end{macrocode}
%
%
% \subsection{Draft option}
%
% If the user requests \Lopt{draft} we show any overfull boxes.
% We could probably add some more interesting stuff to this option.
% \begin{macrocode}
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
\DeclareOption{final}{\setlength\overfullrule{0pt}}
% \end{macrocode}
%
% \subsection{Titlepage option}
% An article usually has no separate titlepage, but the user can
% request one.
% \begin{macrocode}
\DeclareOption{titlepage}{\@titlepagetrue}
\DeclareOption{notitlepage}{\@titlepagefalse}
% \end{macrocode}
%
% \subsection{openright option}
% \changes{v2.0f}{1994/04/18}{Option openright and openany added}
% This option determines whether or not a chapter must start on
% a right-hand page
% request one.
% \begin{macrocode}
%<!artikel>\DeclareOption{openright}{\@openrighttrue}
%<!artikel>\DeclareOption{openany}{\@openrightfalse}
% \end{macrocode}
%
% For these document classes there used to be a file
% \file{voorwerk.sty} which was a replacement for
% \file{titlepag.sty}. Therefore we also have the option
% \Lopt{voorwerk}.
% \begin{macrocode}
\DeclareOption{voorwerk}{\@titlepagetrue}
\DeclareOption{geenvoorwerk}{\@titlepagefalse}
% \end{macrocode}
%
%
% \subsection{Table of contents formatting}
%
% This document class uses a new layout for the table of contents,
% but in order to maintain compatibility with the standard \LaTeXe
% document classes we supply an extra option: \Lopt{oldtoc}. If
% this option is specified the switch |\if@oldtoc| will be set
% true.
% \begin{macrocode}
\DeclareOption{oldtoc}{\@oldtoctrue}
% \end{macrocode}
%
% \subsection{Formatting of the title}
%
% The option \Lopt{titlecentered} changes the behaviour of the
% |\maketitle| command. It then produces a title like it does for
% the \file{artikel1} document class.
% \begin{macrocode}
%<type3>\DeclareOption{titlecentered}{\@titlecenteredtrue}
% \end{macrocode}
%
% In the \file{rapport} and \file{boek} document styles the
% titlepage uses all capital letters. The option \Lopt{mctitle}
% (for `mixed case') prevents this.
% \begin{macrocode}
%<rapport|boek>\DeclareOption{mctitle}{\@allcapsfalse}
%<rapport|boek>\DeclareOption{uctitle}{\@allcapstrue}
% \end{macrocode}
%
% \subsection{Twocolumn printing}
%
% Two-column and one-column printing is again realized via a switch.
% \begin{macrocode}
\DeclareOption{onecolumn}{\@twocolumnfalse}
\DeclareOption{twocolumn}{\@twocolumntrue}
% \end{macrocode}
%
% \subsection{Equation numbering on the left}
%
% The option \Lopt{leqno} can be used to get the equation numbers
% on the left side of the equation. It loads code which is generated
% automatically from the kernel files when the format is built.
% If the equation number does get a special formatting then instead
% of using the kernel file the class would need to provide the code
% explicitly.
% \begin{macrocode}
\DeclareOption{leqno}{\input{leqno.clo}}
% \end{macrocode}
%
% \subsection{Flush left displays}
%
% The option \Lopt{fleqn} redefines the displayed math environments
% in such a way that they come out flush left, with an indentation
% of |\mathindent| from the prevailing left margin. It loads code
% which is generated automatically from the kernel files when the
% format is built.
% \changes{v1.0.8}{1993/12/18}{Corrected some typos. ASAJ.}
% \begin{macrocode}
\DeclareOption{fleqn}{\input{fleqn.clo}}
% \end{macrocode}
%
% \subsection{Open bibliography}
%
% The option \Lopt{openbib} produces the ``open'' bibliography
% style, in which each block starts on a new line, and succeeding
% lines in a block are indented by |\bibindent|.
% \changes{v2.0r}{1995/10/05}{openbib option reimplemented}
% \begin{macrocode}
\DeclareOption{openbib}{%
% \end{macrocode}
% First some hook into the bibliography environment is filled.
% \begin{macrocode}
\AtEndOfPackage{%
\renewcommand\@openbib@code{%
\advance\leftmargin\bibindent
\itemindent -\bibindent
\listparindent \itemindent
\parsep \z@
}%
% \end{macrocode}
% In addition the definition of |\newblock| is overwritten.
% \begin{macrocode}
\renewcommand\newblock{\par}}%
}
% \end{macrocode}
%
% \section{Executing Options}
%
% Here we execute the default options to initialize certain
% variables. Note that the document class `boek' always uses two
% sided printing.
% \begin{macrocode}
%<*artikel>
\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,uctitle}
%</artikel>
%<*rapport>
\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,uctitle,openany}
%</rapport>
%<*boek>
\ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,uctitle,openright}
%</boek>
% \end{macrocode}
%
% The |\ProcessOptions| command causes the execution of the code
% for every option \Lopt{FOO}
% which is declared and for which the user typed
% the \Lopt{FOO} option in his
% |\documentclass| command. For every option \Lopt{BAR} he typed,
% which is not declared, the option is assumed to be a global option.
% All options will be passed as document options to any
% |\usepackage| command in the document preamble.
% \begin{macrocode}
\ProcessOptions
% \end{macrocode}
% Now that all the options have been executed we can load the
% chosen class option file that contains all size dependent code.
% \begin{macrocode}
\input{ntg1\@ptsize.clo}
%</artikel|rapport|boek>
% \end{macrocode}
%
% \section{Loading Packages}
%
% These class files do not load additional packages.
%
%
% \section{Document Layout}
% \label{sec:maincode}
%
% In this section we are finally dealing with the nasty typographical
% details.
%
% \subsection{Fonts}
%
% \LaTeX\ offers the user commands to change the size of the font,
% relative to the `main' size. Each relative size changing command
% |\size| executes the command
% |\@setfontsize||\size|\meta{font-size}\meta{baselineskip} where:
%
% \begin{description}
% \item[\meta{font-size}] The absolute size of the font to use from
% now on.
%
% \item[\meta{baselineskip}] The normal value of |\baselineskip|
% for the size of the font selected. (The actual value will be
% |\baselinestretch| * \meta{baselineskip}.)
% \end{description}
%
% A number of commands, defined in the \LaTeX{} kernel, shorten the
% following definitions and are used throughout. They are:
% \begin{center}
% \begin{tabular}{ll@{\qquad}ll@{\qquad}ll}
% \verb=\@vpt= & 5 & \verb=\@vipt= & 6 & \verb=\@viipt= & 7 \\
% \verb=\@viiipt= & 8 & \verb=\@ixpt= & 9 & \verb=\@xpt= & 10 \\
% \verb=\@xipt= & 10.95 & \verb=\@xiipt= & 12 & \verb=\@xivpt= & 14.4\\
% ...
% \end{tabular}
% \end{center}
%
% \begin{macro}{\normalsize}
% \begin{macro}{\@normalsize}
% \changes{v2.0b}{1994/02/02}{\cs{@normalsize} now defined in the
% kernel}
%
% The user level command for the main size is |\normalsize|.
% Internally \LaTeX{} uses |\@normalsize| when it refers to the
% main size. |\@normalsize| will be defined to work like
% |\normalsize| if the latter is redefined from its default
% definition (that just issues an error message). Otherwise
% |\@normalsize| simply selects a 10pt/12pt size.
%
% The |\normalsize| macro also sets new values for\\
% |\abovedisplayskip|, |\abovedisplayshortskip| and
%
% \changes{v1.0.5}{1993/12/07}{\cs{normalsize} doesn't exist, so use
% \cs{newcommand}}
% \changes{v1.0.8}{1993/12/18}{\cs{normalsize} is now defined in the
% kernel, so use \cs{renewcommand}. ASAJ.}
% \begin{macrocode}
%<*10pt|11pt|12pt>
\renewcommand\normalsize{%
%<*10pt>
\@setfontsize\normalsize\@xpt\@xiipt
\abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
\abovedisplayshortskip \z@ \@plus3\p@
\belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
%</10pt>
%<*11pt>
\@setfontsize\normalsize\@xipt{13.6}%
\abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
\abovedisplayshortskip \z@ \@plus3\p@
\belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
%</11pt>
%<*12pt>
\@setfontsize\normalsize\@xiipt{14.5}%
\abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
\abovedisplayshortskip \z@ \@plus3\p@
\belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
%</12pt>
% \end{macrocode}
% The |\belowdisplayskip| is always equal to the
% |\abovedisplayskip|. The parameters of the first level list are
% always given by |\@listI|.
% \begin{macrocode}
\belowdisplayskip \abovedisplayskip
\let\@listi\@listI}
% \end{macrocode}
% Make |\@normalsize| a synonymn for |\normalsize|.
% \begin{macrocode}
\let\@normalsize\normalsize
% \end{macrocode}
%
% We initially choose the normalsize font.
% \begin{macrocode}
\normalsize
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\small}
% \changes{v2.0f}{1994/04/18}{Use \cs{newcommand} instead of
% \cs{renewcommand} because of change in the \LaTeX kernel}
% This is similar to |\normalsize|.
% \begin{macrocode}
\newcommand*\small{%
%<*10pt>
\@setfontsize\small\@ixpt{11}%
\abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
\abovedisplayshortskip \z@ \@plus2\p@
\belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
%</10pt>
%<*11pt>
\@setfontsize\small\@xpt\@xiipt
\abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
\abovedisplayshortskip \z@ \@plus3\p@
\belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
%</11pt>
%<*12pt>
\@setfontsize\small\@xipt{13.6}%
\abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
\abovedisplayshortskip \z@ \@plus3\p@
\belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
%</12pt>
\belowdisplayskip \abovedisplayskip
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\footnotesize}
% \changes{v2.0f}{1994/04/18}{Use \cs{newcommand} instead of
% \cs{renewcommand} because of change in the \LaTeX kernel}
% This is similar to |\normalsize|.
% \begin{macrocode}
\newcommand*\footnotesize{%
%<*10pt>
\@setfontsize\footnotesize\@viiipt{9.5}%
\abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
\abovedisplayshortskip \z@ \@plus\p@
\belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
%</10pt>
%<*11pt>
\@setfontsize\footnotesize\@ixpt{11}%
\abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@
\abovedisplayshortskip \z@ \@plus\p@
\belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
%</11pt>
%<*12pt>
\@setfontsize\footnotesize\@xpt\@xiipt
\abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
\abovedisplayshortskip \z@ \@plus3\p@
\belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
%</12pt>
\belowdisplayskip \abovedisplayskip
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\scriptsize}
% \begin{macro}{\tiny}
% \begin{macro}{\large}
% \begin{macro}{\Large}
% \begin{macro}{\LARGE}
% \begin{macro}{\huge}
% \begin{macro}{\Huge}
% \changes{v2.0f}{1994/04/18}{Use \cs{newcommand} instead of
% \cs{renewcommand} because of change in the \LaTeX kernel}
% These are all much simpler than the previous macros, they just
% select a new fontsize, but leave the parameters for displays and
% lists alone.
% \begin{macrocode}
%<*10pt>
\newcommand*\scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
\newcommand*\tiny{\@setfontsize\tiny\@vpt\@vipt}
\newcommand*\large{\@setfontsize\large\@xiipt{14}}
\newcommand*\Large{\@setfontsize\Large\@xivpt{18}}
\newcommand*\LARGE{\@setfontsize\LARGE\@xviipt{22}}
\newcommand*\huge{\@setfontsize\huge\@xxpt{25}}
\newcommand*\Huge{\@setfontsize\Huge\@xxvpt{30}}
%</10pt>
%<*11pt>
\newcommand*\scriptsize{\@setfontsize\scriptsize\@viiipt{9.5}}
\newcommand*\tiny{\@setfontsize\tiny\@vipt\@viipt}
\newcommand*\large{\@setfontsize\large\@xiipt{14}}
\newcommand*\Large{\@setfontsize\Large\@xivpt{18}}
\newcommand*\LARGE{\@setfontsize\LARGE\@xviipt{22}}
\newcommand*\huge{\@setfontsize\huge\@xxpt{25}}
\newcommand*\Huge{\@setfontsize\Huge\@xxvpt{30}}
%</11pt>
%<*12pt>
\newcommand*\scriptsize{\@setfontsize\scriptsize\@viiipt{9.5}}
\newcommand*\tiny{\@setfontsize\tiny\@vipt\@viipt}
\newcommand*\large{\@setfontsize\large\@xivpt{18}}
\newcommand*\Large{\@setfontsize\Large\@xviipt{22}}
\newcommand*\LARGE{\@setfontsize\LARGE\@xxpt{25}}
\newcommand*\huge{\@setfontsize\huge\@xxvpt{30}}
\let\Huge=\huge
%</12pt>
%</10pt|11pt|12pt>
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
%
% \subsection{Paragraphing}
%
% \begin{macro}{\lineskip}
% \begin{macro}{\normallineskip}
% These parameters control \TeX's behaviour when two lines tend to
% come too close together.
% \begin{macrocode}
%<*artikel|rapport|boek>
\setlength\lineskip{1\p@}
\setlength\normallineskip{1\p@}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\baselinestretch}
% This is used as a multiplier for |\baselineskip|. The default is
% to \emph{not} stretch the baselines. Note that if this command
% doesn't resolve to ``empty'' any \texttt{plus} or \texttt{minus}
% part in the specification of |\baselineskip| is ignored.
% \begin{macrocode}
\renewcommand\baselinestretch{}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\unitindent}
% These document classes all use a single dimension for a number of
% layout parameters:
% \begin{itemize}
% \item the label width in section heading,
% \item the |\parindent|
% \item the footnote label indent (= half |\unitindent|)
% \item listindent on the first level
% \end{itemize}
% \begin{macrocode}
\newdimen\unitindent
% \end{macrocode}
% The default setting accomodates three levels of single digit
% section numbering.
% \begin{macrocode}
%<*type1|type3>
{\setbox0\hbox{\normalsize\rmfamily 2.2.2\hskip.5em}
\global\unitindent=\wd0}
%</type1|type3>
% \end{macrocode}
%
% \begin{macro}{\othermargin}
% Other indentations are maximal label width plus white space.
% \changes{v2.0l}{1994/07/11}{\cs{othermargin} is also used in type2
% document classes; changed docstrip guards accordingly}
% \begin{macrocode}
\newdimen\othermargin
{\setbox0\hbox{\normalsize (m)\hskip.6em}\global\othermargin=\wd0}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{if@needwriteindent}
% If this is not enough, a new width is calculated, set, and the
% file{.aux} file contains an instruction that will set
% |\unitindent| on the next run.
%
% For this we need a switch
% \begin{macrocode}
%<*type1|type3>
\newif\if@needwriteindent
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@indentset}
% And a command that sets the various parameters.
% \begin{macrocode}
\newcommand*\@indentset{%
%<!type3> \global\parindent=\unitindent
\global\leftmargini=\unitindent
\global\@needwriteindenttrue}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@writeindent}
% The |\end{document}| command will call |\@writeindent| to write
% the final width of |\unitindent| on the \file{.aux} file. Also a
% command is written to set |\unitindent|. To be compatible with
% other document classes a check is written to the \file{.aux} file
% for the existence of |\unitindent|. This prevents nasty errors
% when another document class is used.
% \begin{macrocode}
\newcommand*\@writeindent[1]{\immediate\write\@mainaux
{\string\@ifundefined{unitindent}{\string\newdimen\string\unitindent
\let\string\@indentset\relax}{}}
\immediate\write\@mainaux{\global\string\unitindent=#1\string\relax
\string\@indentset \string\relax}}
% \end{macrocode}
% \end{macro}
%
% We need to use the hook into |\end{document}| to write the final
% value of |\unitindent| om the file{.aux} file for the next run.
% \begin{macrocode}
\AtEndDocument{%
\if@filesw
\if@needwriteindent
\@writeindent{\the\unitindent}
\fi
\fi}
%</type1|type3>
% \end{macrocode}
%
% In the document class \file{artikel2} the width of |\unitindent|
% is fixed and related to |\othermargin|.
% \begin{macrocode}
%<type2>\unitindent=2\othermargin
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\parskip}
% \begin{macro}{\parindent}
% |\parskip| gives extra vertical space between paragraphs and
% |\parindent| is the width of the paragraph indentation. The value
% of |\parindent| depends on whether we are in two column mode.
% \begin{macrocode}
%<*type1>
\setlength\parskip{0\p@}
\setlength\parindent{\unitindent}
%</type1>
%<*type3>
\setlength\parskip{.5\baselineskip \@plus .1\baselineskip
\@minus .1\baselineskip}
\setlength\parindent{\z@}
%</type3>
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\@lowpenalty}
% \begin{macro}{\@medpenalty}
% \begin{macro}{\@highpenalty}%
% The commands |\nopagebreak| and |\nolinebreak| put in penalties
% to discourage these breaks at the point they are put in.
% They use |\@lowpenalty|, |\@medpenalty| or |\@highpenalty|,
% dependent on their argument.
% \begin{macrocode}
\@lowpenalty 51
\@medpenalty 151
\@highpenalty 301
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\clubpenalty}
% \begin{macro}{\widowpenalty}
% These penalties are use to discourrage club and widow lines.
% Because we use their default values we only show them here,
% commented out.
% \begin{macrocode}
% \clubpenalty 150
% \widowpenalty 150
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\displaywidowpenalty}
% \begin{macro}{\predisplaypenalty}
% \begin{macro}{\postdisplaypenalty}
% Discourrage (but not so much) widows in front of a math display
% and forbid breaking directly in front of a display. Allow break
% after a display without a penalty. Again the default values are
% used, therefore we only show them here.
% \begin{macrocode}
% \displaywidowpenalty 50
% \predisplaypenalty 10000
% \postdisplaypenalty 0
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\interlinepenalty}
% Allow the breaking of a page in the middle of a paragraph.
% \begin{macrocode}
% \interlinepenalty 0
% \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\brokenpenalty}
% We allow the breaking of a page after a hyphenated line.
% \begin{macrocode}
% \brokenpenalty 0
%</artikel|rapport|boek>
% \end{macrocode}
% \end{macro}
%
%
% \subsection{Page Layout}
%
% All margin dimensions are measured from a point one inch from the
% top and lefthand side of the page.
%
% \subsubsection{Vertical spacing}
%
% \begin{macro}{\headheight}
% \begin{macro}{\headsep}
% \begin{macro}{\topskip}
% The |\headheight| is the height of the box that will contain the
% running head. The |\headsep| is the distance between the bottom
% of the running head and the top of the text. |\topskip| is the
% |\baselineskip| for the first line on a page.
% \begin{macrocode}
%<*10pt|11pt|12pt>
\setlength\headheight{12\p@}
\setlength\headsep {25\p@}
%<10pt>\setlength\topskip {10\p@}
%<11pt>\setlength\topskip {11\p@}
%<12pt>\setlength\topskip {12\p@}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\footskip}
% The distance from the baseline of the box which contains the
% running footer to the baseline of last line of text is controlled
% by the |\footskip|.
% Bottom of page:
% \begin{macrocode}
\setlength\footskip{30\p@} %
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\maxdepth}
% \changes{v2.0r}{1995/10/05}{Added setting of \cs{maxdepth}}
% The \TeX\ primitive register |\maxdepth| has a function that is
% similar to that of |\topskip|. The register |\@maxdepth| should
% always contain a copy of |\maxdepth|. In both plain \TeX\ and
% \LaTeX~2.09 |\maxdepth| had a fixed value of \texttt{4pt}; in
% native \LaTeX2e\ mode we let the value depend on the typesize. We
% set it so that |\maxdepth| $+$ |\topskip| $=$ typesize $\times
% 1.5$. As it happens, in these classes |\topskip| is equal to the
% typesize, therefor we set |\maxdepth| to half the value of
% |\topskip|.
% \begin{macrocode}
\if@compatibility
\setlength\maxdepth{4\p@}
\else
\setlength\maxdepth{.5\topskip}
\fi
% \end{macrocode}
% \end{macro}
%
% \subsubsection{The dimension of text}
%
% \begin{macro}{\textwidth}
% When we are in compatibility mode we have to make sure that the
% dimensions of the printed area are not different from what the
% user was used to see.
%
% \begin{macrocode}
\if@compatibility
\if@twocolumn
\setlength\textwidth{410\p@}
\else
%<10pt> \setlength\textwidth{345\p@}
%<11pt> \setlength\textwidth{360\p@}
%<12pt> \setlength\textwidth{390\p@}
\fi
% \end{macrocode}
% When we are not in compatibility mode we can set some of the
% dimensions differently, taking into account the paper size for
% instance.
% \begin{macrocode}
\else
% \end{macrocode}
% First, we calculate the maximum textwidth, which will we will
% allow on the selected paper and store it in |\@tempdima|. Then we
% store the length of a line with approximately 60 -- 70 characters
% in |\@tempdimb|. The values given are taken from the file
% \texttt{a4.sty} by Johannes Braams and Nico Poppelier and are
% more or less suitable when Computer Modern fonts are used.
% \begin{macrocode}
\setlength\@tempdima{\paperwidth}
\addtolength\@tempdima{-2in}
%<10pt> \setlength\@tempdimb{361\p@}
%<11pt> \setlength\@tempdimb{376\p@}
%<12pt> \setlength\@tempdimb{412\p@}
% \end{macrocode}
%
% Now we can set the |\textwidth|, depending on whether we will be
% setting one or two columns.
%
% In two column mode each \emph{column} shouldn't be wider than
% |\@tempdimb| (which could happen on \textsc{a3} paper for
% instance).
% \begin{macrocode}
\if@twocolumn
\ifdim\@tempdima>2\@tempdimb\relax
\setlength\textwidth{2\@tempdimb}
\else
\setlength\textwidth{\@tempdima}
\fi
% \end{macrocode}
% In one column mode the text should not be wider than the minimum
% of the paperwidth (minus 2 inches for the margins) and the
% maximum length of a line as defined by the number of characters.
% \begin{macrocode}
\else
\ifdim\@tempdima>\@tempdimb\relax
\setlength\textwidth{\@tempdimb}
\else
\setlength\textwidth{\@tempdima}
\fi
\fi
\fi
% \end{macrocode}
%
% Here we modify the width of the text a little to be a whole
% number of points.
% \begin{macrocode}
\if@compatibility
\else
\@settopoint\textwidth
\fi
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\textheight}
% Now that we have computed the width of the text, we have to take
% care of the height. The |\textheight| is the height of text
% (including footnotes and figures, excluding running head and
% foot).
%
% First make sure that the compatibility mode gets the same
% dimensions as we had with \LaTeX2.09. The number of lines was
% calculated as the floor of the old |\textheight| minus
% |\topskip|, divided by |\baselineskip| for |\normalsize|. The
% old value of |\textheight| was 528pt.
%
% \begin{macrocode}
\if@compatibility
%<10pt> \setlength\textheight{43\baselineskip}
%<11pt> \setlength\textheight{38\baselineskip}
%<12pt> \setlength\textheight{36\baselineskip}
% \end{macrocode}
%
% Again we compute this, depending on the papersize and depending
% on the baselineskip that is used, in order to have a whole number
% of lines on the page.
% \begin{macrocode}
\else
\setlength\@tempdima{\paperheight}
% \end{macrocode}
%
% We leave at least a 1 inch margin on the top and the bottom of
% the page.
% \begin{macrocode}
\addtolength\@tempdima{-2in}
% \end{macrocode}
%
% We also have to leave room for the running headers and footers.
% \begin{macrocode}
\addtolength\@tempdima{-1.5in}
% \end{macrocode}
%
% Then we divide the result by the current |\baselineskip| and
% store this in the count register |\@tempcnta|, which then
% contains the number of lines that fit on this page.
% \begin{macrocode}
\divide\@tempdima\baselineskip
\@tempcnta=\@tempdima
% \end{macrocode}
%
% From this we can calculate the height of the text.
% \begin{macrocode}
\setlength\textheight{\@tempcnta\baselineskip}
\fi
% \end{macrocode}
%
% The first line on the page has a height of |\topskip|.
% \begin{macrocode}
\advance\textheight by \topskip
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Margins}
%
% Most of the values of these parameters are now calculated, based
% on the papersize in use. In the calculations the |\marginparsep|
% needs to be taken into account so we give it its value first.
%
% \begin{macro}{\marginparsep}
% \begin{macro}{\marginparpush}
% The horizontal space between the main text and marginal notes is
% determined by |\marginparsep|, the minimum vertical separation
% between two marginal notes is controlled by |\marginparpush|.
% \begin{macrocode}
\if@twocolumn
\setlength\marginparsep {10\p@}
\else
%<10pt> \setlength\marginparsep{11\p@}
%<11pt> \setlength\marginparsep{10\p@}
%<12pt> \setlength\marginparsep{10\p@}
\fi
%<10pt|11pt>\setlength\marginparpush{5\p@}
%<12pt>\setlength\marginparpush{7\p@}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% Now we can give the values for the other margin parameters. For
% native \LaTeXe, these are calculated.
% \begin{macro}{\oddsidemargin}
% \begin{macro}{\evensidemargin}
% \begin{macro}{\marginparwidth}
% First we give the values for the compatibility mode.
%
% Values for two-sided printing:
% \begin{macrocode}
\if@compatibility
\if@twoside
%<10pt> \setlength\oddsidemargin {44\p@}
%<11pt> \setlength\oddsidemargin {36\p@}
%<12pt> \setlength\oddsidemargin {21\p@}
%<10pt> \setlength\evensidemargin {82\p@}
%<11pt> \setlength\evensidemargin {74\p@}
%<12pt> \setlength\evensidemargin {59\p@}
%<10pt> \setlength\marginparwidth {107\p@}
%<11pt> \setlength\marginparwidth {100\p@}
%<12pt> \setlength\marginparwidth {85\p@}
% \end{macrocode}
% Values for one-sided printing:
% \begin{macrocode}
\else
%<10pt> \setlength\oddsidemargin {63\p@}
%<11pt> \setlength\oddsidemargin {54\p@}
%<12pt> \setlength\oddsidemargin {39.5\p@}
%<10pt> \setlength\evensidemargin {63\p@}
%<11pt> \setlength\evensidemargin {54\p@}
%<12pt> \setlength\evensidemargin {39.5\p@}
%<10pt> \setlength\marginparwidth {90\p@}
%<11pt> \setlength\marginparwidth {83\p@}
%<12pt> \setlength\marginparwidth {68\p@}
\fi
% \end{macrocode}
% And values for two column mode:
% \begin{macrocode}
\if@twocolumn
\setlength\oddsidemargin {30\p@}
\setlength\evensidemargin {30\p@}
\setlength\marginparwidth {48\p@}
\fi
% \end{macrocode}
%
% When we are not in compatibility mode we can take the dimensions
% of the selected paper into account.
%
% The values for |\oddsidemargin| and |\marginparwidth| will be set
% depending on the status of the |\if@twoside|.
%
% If |@twoside| is true (which is always the case for boek) we make
% the inner margin smaller than the outer one.
% \changes{v2.0f}{1994/04/18}{New algorithm for \cs{oddsidemargin}}
% \begin{macrocode}
\else
\if@twoside
\setlength\@tempdima {\paperwidth}
\addtolength\@tempdima {-\textwidth}
\setlength\oddsidemargin {.4\@tempdima}
\addtolength\oddsidemargin {-1in}
% \end{macrocode}
% The width of the margin for text is set to the remainder of the
% width except for a `real margin' of white space of width 0.4in.
% A check should perhaps be built in to ensure that the (text)
% margin width does not get too small!
%
% \changes{v2.0f}{1994/04/18}{New algorithm for \cs{marginparwidth}}
% \changes{v2.0p}{1995/08/09}{Also take \cs{marginparsep} into account
% here}
% \begin{macrocode}
\setlength\marginparwidth {.6\@tempdima}
\addtolength\marginparwidth {-\marginparsep}
\addtolength\marginparwidth {-0.4in}
% \end{macrocode}
% For one-sided printing we center the text on the page, by
% calculating the difference between |textwidth| and
% |\paperwidth|. Half of that difference is than used for
% the margin (thus |\oddsidemargin| is |1in| less).
% \begin{macrocode}
\else
\setlength\@tempdima {\paperwidth}
\addtolength\@tempdima {-\textwidth}
\setlength\oddsidemargin {.5\@tempdima}
\addtolength\oddsidemargin {-1in}
\setlength\marginparwidth {.5\@tempdima}
\addtolength\marginparwidth {-\marginparsep}
\addtolength\marginparwidth {-.4in}
\fi
% \end{macrocode}
% With the above algorithm the |\marginparwidth| can come out quite
% large which we may not want.
% \begin{macrocode}
\ifdim \marginparwidth >2in
\setlength\marginparwidth{2in}
\fi
% \end{macrocode}
% Having done these calculations we make them pt values.
% \begin{macrocode}
\@settopoint\oddsidemargin
\@settopoint\marginparwidth
% \end{macrocode}
%
% The |\evensidemargin| can now be computed from the values set
% above.
% \begin{macrocode}
\setlength\evensidemargin {\paperwidth}
\addtolength\evensidemargin{-2in}
\addtolength\evensidemargin{-\textwidth}
\addtolength\evensidemargin{-\oddsidemargin}
% \end{macrocode}
% Setting |\evensidemargin| to a full point value may produce a
% small error. However it will lie within the error range a
% doublesided printer of todays technology can accuratly print.
% \begin{macrocode}
\@settopoint\evensidemargin
\fi
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\topmargin}
% The |\topmargin| is the distance between the top of `the
% printable area' ---which is 1 inch below the top of the paper---
% and the top of the box which contains the running head.
%
% It can now be computed from the values set above.
% \begin{macrocode}
\if@compatibility
\setlength\topmargin{27pt}
\else
\setlength\topmargin{\paperheight}
\addtolength\topmargin{-2in}
\addtolength\topmargin{-\headheight}
\addtolength\topmargin{-\headsep}
\addtolength\topmargin{-\textheight}
\addtolength\topmargin{-\footskip} % this might be wrong!
% \end{macrocode}
% By changing the factor in the next line the complete page
% can be shifted vertically.
% \changes{v2.0m}{1994/07/13}{Moved rounding of \cs{topmargin} to
% native mode}
% \begin{macrocode}
\addtolength\topmargin{-.5\topmargin}
\@settopoint\topmargin
\fi
% \end{macrocode}
% \end{macro}
%
%
% \subsubsection{Footnotes}
%
% \begin{macro}{\footnotesep}
% |\footnotesep| is the height of the strut placed at the beginning
% of every footnote. It equals the height of a normal
% |\footnotesize| strut in this
% class, thus no extra space occurs between footnotes.
% \begin{macrocode}
%<10pt>\setlength\footnotesep{6.65\p@}
%<11pt>\setlength\footnotesep{7.7\p@}
%<12pt>\setlength\footnotesep{8.4\p@}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\footins}
% |\skip\footins| is the space between the last line of the main
% text and the top of the first footnote.
% \begin{macrocode}
%<10pt>\setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
%<11pt>\setlength{\skip\footins}{10\p@ \@plus 4\p@ \@minus 2\p@}
%<12pt>\setlength{\skip\footins}{10.8\p@ \@plus 4\p@ \@minus 2\p@}
%</10pt|11pt|12pt>
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Float placement parameters}
%
% All float parameters are given default values in the \LaTeXe{}
% kernel. For this reason parameters that are not counters
% need to be set with |\renewcommand|.
%
% \paragraph{Limits for the placement of floating objects}
%
% \begin{macro}{\c@topnumber}
% The \Lcount{topnumber} counter holds the maximum number of
% floats that can appear on the top of a text page.
% \begin{macrocode}
%<*artikel|rapport|boek>
\setcounter{topnumber}{2}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\topfraction}
% This indicates the maximum part of a text page that can be
% occupied by floats at the top.
% \changes{v1.0.8}{1993/12/18}{Replaced \cs{newcommand} with
% \cs{renewcommand}. ASAJ.}
% \begin{macrocode}
\renewcommand\topfraction{.7}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\c@bottomnumber}
% The \Lcount{bottomnumber} counter holds the maximum number of
% floats that can appear on the bottom of a text page.
% \begin{macrocode}
\setcounter{bottomnumber}{1}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\bottomfraction}
% This indicates the maximum part of a text page that can be
% occupied by floats at the bottom.
% \changes{v1.0.8}{1993/12/18}{Replaced \cs{newcommand} with
% \cs{renewcommand}. ASAJ.}
% \begin{macrocode}
\renewcommand\bottomfraction{.3}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\c@totalnumber}
% This indicates the maximum number of floats that can appear on
% any text page.
% \begin{macrocode}
\setcounter{totalnumber}{3}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\textfraction}
% This indicates the minimum part of a text page that has to be
% occupied by text.
% \changes{v1.0.8}{1993/12/18}{Replaced \cs{newcommand} with
% \cs{renewcommand}. ASAJ.}
% \begin{macrocode}
\renewcommand\textfraction{.2}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\floatpagefraction}
% This indicates the minimum part of a page that has to be
% occupied by floating objects before a `float page' is produced.
% \changes{v1.0.8}{1993/12/18}{Replaced \cs{newcommand} with
% \cs{renewcommand}. ASAJ.}
% \begin{macrocode}
\renewcommand\floatpagefraction{.5}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\c@dbltopnumber}
% The \Lcount{dbltopnumber} counter holds the maximum number of
% two column floats that can appear on the top of a two column text
% page.
% \begin{macrocode}
\setcounter{dbltopnumber}{2}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\dbltopfraction}
% This indicates the maximum part of a two column text page that
% can be occupied by two column floats at the top.
% \changes{v1.0.8}{1993/12/18}{Replaced \cs{newcommand} with
% \cs{renewcommand}. ASAJ.}
% \begin{macrocode}
\renewcommand\dbltopfraction{.7}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\dblfloatpagefraction}
% This indicates the minimum part of a page that has to be
% occupied by two column wide floating objects before a `float
% page' is produced.
% \changes{v1.0.8}{1993/12/18}{Replaced \cs{newcommand} with
% \cs{renewcommand}. ASAJ.}
% \begin{macrocode}
\renewcommand\dblfloatpagefraction{.5}
%</artikel|rapport|boek>
% \end{macrocode}
% \end{macro}
%
% \paragraph{Floats on a text page}
%
% \begin{macro}{\floatsep}
% \begin{macro}{\textfloatsep}
% \begin{macro}{\intextsep}
% When a floating object is placed on a page with text, these
% parameters control the seperation between the float and the other
% objects on the page. These parameters are used for both
% one-column mode and single-column floats in two-column mode.
%
% |\floatsep| is the space between adjacent floats that are moved
% to the top or bottom of the text page.
%
% |\textfloatsep| is the space between the main text and floats
% at the top or bottom of the page.
%
% |\intextsep| is the space between in-text floats and the text.
% \begin{macrocode}
%<*10pt>
\setlength\floatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
\setlength\intextsep {12\p@ \@plus 2\p@ \@minus 2\p@}
%</10pt>
%<*11pt>
\setlength\floatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
\setlength\intextsep {12\p@ \@plus 2\p@ \@minus 2\p@}
%</11pt>
%<*12pt>
\setlength\floatsep {12\p@ \@plus 2\p@ \@minus 4\p@}
\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
\setlength\intextsep {14\p@ \@plus 4\p@ \@minus 4\p@}
%</12pt>
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\dblfloatsep}
% \begin{macro}{\dbltextfloatsep}
% When floating objects that span the whole |\textwidth| are placed
% on a text page when we are in twocolumn mode the separation
% between the float and the text is controlled by |\dblfloatsep|
% and |\dbltextfloatsep|.
%
% |\dblfloatsep| is the space between adjacent floats that are moved
% to the top or bottom of the text page.
%
% |\dbltextfloatsep| is the space between the main text and floats
% at the top or bottom of the page.
%
% \begin{macrocode}
%<*10pt>
\setlength\dblfloatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
%</10pt>
%<*11pt>
\setlength\dblfloatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
%</11pt>
%<*12pt>
\setlength\dblfloatsep {14\p@ \@plus 2\p@ \@minus 4\p@}
\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
%</12pt>
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \paragraph{Floats on their own page or column}
%
% \begin{macro}{\@fptop}
% \begin{macro}{\@fpsep}
% \begin{macro}{\@fpbot}
% When floating objects are placed on seperate pages the layout of
% such pages is controlled by these parameters. At the top of the
% page |\@fptop| amount of stretchable whitespace is inserted, at
% the bottom of the page we get an |\@fpbot| amount of stretchable
% whitespace. Between adjacent floats the |\@fpsep| is inserted.
%
% These paramaters are used for the placement of floating objects
% in one column mode, or in single column floats in two column
% mode.
%
% Note that at least one of the two parameters |\@fptop| and
% |\@fpbot| should contain a |plus ...fil| to allow filling the
% remaining empty space.
% \begin{macrocode}
%<*10pt>
\setlength\@fptop{0\p@ \@plus 1fil}
\setlength\@fpsep{8\p@ \@plus 2fil}
\setlength\@fpbot{0\p@ \@plus 1fil}
%</10pt>
%<*11pt>
\setlength\@fptop{0\p@ \@plus 1fil}
\setlength\@fpsep{8\p@ \@plus 2fil}
\setlength\@fpbot{0\p@ \@plus 1fil}
%</11pt>
%<*12pt>
\setlength\@fptop{0\p@ \@plus 1fil}
\setlength\@fpsep{10\p@ \@plus 2fil}
\setlength\@fpbot{0\p@ \@plus 1fil}
%</12pt>
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\@dblfptop}
% \begin{macro}{\@dblfpsep}
% \begin{macro}{\@dblfpbot}
% Double column floats in two column mode are handled with similar
% parameters.
% \begin{macrocode}
%<*10pt>
\setlength\@dblfptop{0\p@ \@plus 1fil}
\setlength\@dblfpsep{8\p@ \@plus 2fil}
\setlength\@dblfpbot{0\p@ \@plus 1fil}
%</10pt>
%<*11pt>
\setlength\@dblfptop{0\p@ \@plus 1fil}
\setlength\@dblfpsep{8\p@ \@plus 2fil}
\setlength\@dblfpbot{0\p@ \@plus 1fil}
%</11pt>
%<*12pt>
\setlength\@dblfptop{0\p@ \@plus 1fil}
\setlength\@dblfpsep{10\p@ \@plus 2fil}
\setlength\@dblfpbot{0\p@ \@plus 1fil}
%</12pt>
%<*artikel|rapport|boek>
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsection{Page Styles}
%
% The page style \pstyle{foo} is defined by defining the command
% |\ps@foo|. This command should make only local definitions.
% There should be no stray spaces in the definition, since they
% could lead to mysterious extra spaces in the output (well, that's
% something that should be always avoided).
%
% \begin{macro}{\@evenhead}
% \begin{macro}{\@oddhead}
% \begin{macro}{\@evenfoot}
% \begin{macro}{\@oddfoot}
% The |\ps@...| command defines the macros |\@oddhead|,
% |\@oddfoot|, |\@evenhead|, and |\@evenfoot| to define the running
% heads and feet---e.g., |\@oddhead| is the macro to produce the
% contents of the heading box for odd-numbered pages. It is called
% inside an |\hbox| of width |\textwidth|.
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\thispagestyle}
% Several commands (|\index|, |\maketitle|) give a
% |\thispagestyle{plain}| command, which will overrule a
% |\pagestyle{empty}| command. This situation is almost always
% unwanted. Therefore we provide a more careful definition.
%
% First save the original definition.
% \begin{macrocode}
\let\Thispagestyle\thispagestyle
% \end{macrocode}
% Then we provide the new definition, for which we must also adapt
% |\pagestyle| a little.
% \begin{macrocode}
\newcommand*\@emptypagestyle{empty}
\renewcommand*\pagestyle[1]{\@nameuse{ps@#1}\def\@currentpagestyle{#1}}
\renewcommand*\thispagestyle[1]{%
\ifx\@currentpagestyle\@emptypagestyle
\else
\global\@specialpagetrue
\gdef\@specialstyle{#1}%
\fi}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Marking conventions}
%
% To make headings determined by the sectioning commands, the page
% style defines the commands |\chaptermark|, |\sectionmark|,
% \ldots,\\
% where |\chaptermark{|\meta{TEXT}|}| is called by
% |\chapter| to set a mark, and so on.
%
% The |\...mark| commands and the |\...head| macros are defined
% with the help of the following macros. (All the |\...mark|
% commands should be initialized to no-ops.)
%
% \LaTeX{} extends \TeX's |\mark| facility by producing two kinds
% of marks, a `left' and a `right' mark, using the following
% commands:
% \begin{flushleft}
% |\markboth{|\meta{LEFT}|}{|\meta{RIGHT}|}|: Adds both marks.
%
% |\markright{|\meta{RIGHT}|}|: Adds a `right' mark.
%
% |\leftmark|: Used in the |\@oddhead|, |\@oddfoot|, |\@evenhead|
% or |\@evenfoot| macros, it gets the current `left'
% mark. |\leftmark| works like \TeX's |\botmark|
% command.
%
% |\rightmark|: Used in the |\@oddhead|, |\@oddfoot|, |\@evenhead|
% or |\@evenfoot| macros, it gets the current
% `right' mark. |\rightmark| works like \TeX's
% |\firstmark| command.
% \end{flushleft}
%
% The marking commands work reasonably well for right marks
% `numbered within' left marks--e.g., the left mark is changed by a
% |\chapter| command and the right mark is changed by a |\section|
% command. However, it does produce somewhat anomalous results if
% two |\markboth|'s occur on the same page.
%
% Commands like |\tableofcontents| that should set the marks in some
% page styles use a |\@mkboth| command, which is |\let| by the
% pagestyle command (|\ps@...|) to |\markboth| for setting the
% heading or to |\@gobbletwo| to do nothing.
%
% \subsubsection{Defining the page styles}
% \label{sec:pagestyle}
%
% The pagestyle \pstyle{empty} is defined in \file{latex.dtx}, but
% the pagestyle \pstyle{plain} is slightly altered here. The
% difference is that the page numbers are set flush right in
% onesided and flush left and right in the twosided style.
%
% \begin{macro}{\ps@plain}
%
% \begin{macrocode}
\renewcommand*\ps@plain{%
% \end{macrocode}
% The running head are empty in this pagestyle, the page number
% appears in the running foot.
% \begin{macrocode}
\let\@oddhead\@empty\let\@evenhead\@empty
\def\@oddfoot{\hfil\PageFont\thepage}%
\if@twoside
\def\@evenfoot{\PageFont\thepage\hfil}%
\else
\let\@evenfoot\@oddfoot
\fi
% \end{macrocode}
% Because the running heads should be empty we |let| |\@mkboth| to
% |\@gobbletwo|, thus disabling the mark commands.
% \begin{macrocode}
\let\@mkboth\@gobbletwo}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ps@headings}
% The definition of the page style \pstyle{headings} has to be
% different for two sided printing than it is for one sided
% printing.
%
% \begin{macrocode}
\if@twoside
\def\ps@headings{%
% \end{macrocode}
% The running feet are empty in this page style, the running head
% contains the page number and one of the marks.
% \begin{macrocode}
\let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@evenhead{{\PageFont\thepage}\hfil\MarkFont\leftmark}%
\def\@oddhead{{\MarkFont\rightmark}\hfil\PageFont\thepage}%
% \end{macrocode}
%
% When using this page style, the contents of the running head is
% determined by the chapter and section titles. So we |\let|
% |\@mkboth| to |\markboth|.
% \begin{macrocode}
\let\@mkboth\markboth
% \end{macrocode}
%
% For the artikel document classes we define |\sectionmark| to clear
% the right mark and put the number of the section (when it is
% numbered) and its title in the left mark. The rightmark is set by
% |\subsectionmark| to contain the subsection titles.
%
% Note the use of |##1| for the parameter of the |\sectionmark|
% command, which will be defined when |\ps@headings| is executed.
%
% \changes{v2.0p}{1995/08/09}{Removed extra dot after \cs{thesection}
% (PR 1519)}
% \changes{v2.0p}{1995/08/09}{Replace \cs{hskip} \texttt{1em}\cs{relax}
% with \cs{quad}}
% \changes{v2.0p}{1995/08/10}{Use \cs{MakeUppercase} instead of
% \cs{uppercase}}
% \begin{macrocode}
%<*artikel>
\def\sectionmark##1{%
\markboth {\MakeUppercase{%
\ifnum \c@secnumdepth >\z@
\thesection\quad
\fi
##1}}{}}%
\def\subsectionmark##1{%
\markright {%
\ifnum \c@secnumdepth >\@ne
\thesubsection\quad
\fi
##1}}}
%</artikel>
% \end{macrocode}
%
% In the rapport and boek document classes we use the |\chaptermark|
% and |\sectionmark| macros to fill the running heads.
%
% Note the use of |##1| for the parameter of the |\chaptermark|
% command, which will be defined when |\ps@headings| is executed.
%
% \begin{macrocode}
%<*rapport|boek>
\def\chaptermark##1{%
\markboth {\MakeUppercase{\ifnum \c@secnumdepth >\m@ne
%<boek> \if@mainmatter
\@chapapp\ \thechapter. \ %
%<boek> \fi
\fi
##1}}{}}%
\def\sectionmark##1{%
\markright {\MakeUppercase{\ifnum \c@secnumdepth >\z@
\thesection. \ \fi
##1}}}}
%</rapport|boek>
% \end{macrocode}
%
% The definition of |\ps@headings| for one sided printing can be
% much simpler, because we treat even and odd pages the same.
% Therefore we don't need to define |\@even...|.
% \begin{macrocode}
\else
\def\ps@headings{%
\let\@oddfoot\@empty
\def\@oddhead{{\MarkFont\rightmark}\hfil\PageFont\thepage}%
\let\@mkboth\markboth
% \end{macrocode}
% We use |\markright| now instead of |\markboth| as we did for two
% sided printing.
% \begin{macrocode}
%<*artikel>
\def\sectionmark##1{%
\markright {\MakeUppercase{%
\ifnum \c@secnumdepth >\m@ne
\thesection\quad
\fi
##1}}}}
%</artikel>
% \end{macrocode}
%
% \begin{macrocode}
%<*rapport|boek>
\def\chaptermark##1{%
\markright {\MakeUppercase{%
\ifnum \c@secnumdepth >\m@ne
%<boek> \if@mainmatter
\@chapapp\ \thechapter. \ %
%<boek> \fi
\fi
##1}}}}
%</rapport|boek>
\fi
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ps@myheadings}
% The definition of the page style \pstyle{myheadings} is fairly
% simple because the user determines the contents of the running
% head himself by using the |\markboth| and |\markright| commands.
%
% \begin{macrocode}
\def\ps@myheadings{%
\let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@evenhead{{\PageFont\thepage}\hfil\MarkFont\leftmark}%
\def\@oddhead{{\MarkFont\rightmark}\hfil\PageFont\thepage}%
% \end{macrocode}
%
% We have to make sure that the marking commands that are used by
% the chapter and section headings are disabled. We do this
% |\let|ting them to a macro that gobbles its argument(s).
% \begin{macrocode}
\let\@mkboth\@gobbletwo
%<!artikel> \let\chaptermark\@gobble
\let\sectionmark\@gobble
%<artikel> \let\subsectionmark\@gobble
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\PageFont}
% \begin{macro}{\MarkFont}
% These macros are use to store the fonts that are used to typeset
% the pagenumber (|\PageFont|) and the marks (|\MarkFont|) in the
% running head and feet.
% \begin{macrocode}
\newcommand*\PageFont{\rmfamily}
\newcommand*\MarkFont{\slshape}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\RunningFonts}
% Use this macro to change the fonts that are used in the running
% heads.
% \begin{macrocode}
\newcommand*\RunningFonts[2]{%
\renewcommand*\PageFont{#1}\renewcommand*\MarkFont{#2}}
% \end{macrocode}
% \end{macro}
%
% \section{Document Markup}
%
% \subsection{The title}
%
% \begin{macro}{\title}
% \begin{macro}{\author}
% \begin{macro}{\date}
% These three macros are provided by \file{latex.dtx} to provide
% information about the title, author(s) and date of the document.
% The information is stored away in internal control sequences.
% It is the task of the |\maketitle| command to use the
% information provided. The definitions of these macros are shown
% here for information.
% \begin{macrocode}
% \newcommand*\title[1]{\gdef\@title{#1}}
% \newcommand*\author[1]{\gdef\@author{#1}}
% \newcommand*\date[1]{\gdef\@date{#1}}
% \end{macrocode}
% The |\date| macro gets today's date by default.
% \begin{macrocode}
% \gdef\@date{\today}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\TitleFont}
% \changes{v2.0d}{1994/02/23}{Macro added}
% This selects the font to use in the title of the document.
% \begin{macrocode}
\newcommand*\TitleFont{\bfseries}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\maketitle}
% The definition of |\maketitle| depends on whether a seperate
% title page is made. This is the default for the rapport and boek
% document classes, but for the artikel classes it is optional.
% Note that the title, author and date information is printed in
% capital letters by default. This can be changed by the option
% \Lopt{mctitle}.
%
% When we are making a title page, we locally redefine
% |\footnotesize| and |\footnoterule| to change the appearance of
% the footnotes that are produced by the |\thanks| command.
% \changes{v2.0z}{2004/02/20}{Make \cs{footnote} work in the title}
% \begin{macrocode}
%<!boek>\if@titlepage
\renewcommand*\TitleFont{\rmfamily}
\newcommand*\maketitle{%
\begin{titlepage}%
\let\footnotesize\small
\let\footnoterule\relax
\let \footnote \thanks
% \end{macrocode}
% Footnotes on the titlepage, generated by the use of |\thanks|,
% use symbols in these document classes.
% \changes{v2.0v}{1997/03/02}{Use \cs{textendash} instead of
% \texttt{-{}-}}
% \begin{macrocode}
\long\def\@makefntext##1{\parindent\z@
\def\labelitemi{\textendash}\@revlabeltrue
\leavevmode\@textsuperscript{\@thefnmark}\kern1em\relax ##1}
\renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
% \end{macrocode}
% We center the entire title vertically; the centering is set off a
% little by adding a |\vskip|. In compatibility mode the pagenumber
% is set to 0 to keep the behaviour of \LaTeX\ 2.09 style files
% \begin{macrocode}
\if@compatibility\setcounter{page}{0}\fi
\null\vfil
\vskip 60\p@
% \end{macrocode}
% Then we set the title, in a |\LARGE| font; leave a little space
% and set the author(s) in a |\large| font. We do this inside a
% tabular environment to get them in a single column.
% Before the date we leave a little whitespace again.
% \changes{v2.0d}{1994/02/23}{Added selection of font by
% \cs{TitleFont}}
% \begin{macrocode}
\begin{center}%
\TitleFont
{\LARGE \def\\{\penalty -\@M}
\if@allcaps
\expandafter\uc@nothanks\@title\thanks\relax
\else
\@title
\fi\par}%
\vskip 3em%
{\large
\lineskip .75em \parindent\z@
\begin{tabular}[t]{c}%
\if@allcaps
\expandafter\uc@authornothanks\@author\and\relax
\else
\@author
\fi
\end{tabular}\par}%
\vskip 1.5em%
{\large
\if@allcaps
\uppercase\expandafter{\@date}%
\else
\@date
\fi\par}%
\end{center}\par
% \end{macrocode}
% Then we call |\@thanks| to print the information that goes into
% the footnote and finish the page.
% \begin{macrocode}
\@thanks
\vfil\null
\end{titlepage}%
% \end{macrocode}
% We reset the \Lcount{footnote} counter, disable |\thanks| and
% |\maketitle| and save some storage space by emptying the internal
% information macros.
% \changes{v2.0r}{1995/10/05}{use \cs{let} to save space, empty
% \cs{@date} as well}
% \begin{macrocode}
\setcounter{footnote}{0}%
\global\let\thanks\relax
\global\let\maketitle\relax
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@title\@empty
\global\let\@date\@empty
% \end{macrocode}
% After the title is set the declaration commands |\title|, etc.\
% can vanish.
% The definition of |\and| makes only sense within the argument of
% |\author| so this can go as well.
% \changes{v2.0r}{1995/10/05}{Disable \cs{title} and similar decls}
% \begin{macrocode}
\global\let\title\relax
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
}
% \end{macrocode}
%
% We want to have the title, author and date information in
% uppercase, but we have to be very carefull not to put too much
% text in uppercase. The macros that perform the filtering of texts
% that shouldn't be in uppercase were developped with th help of
% Howard Trickey.
%
% \begin{macro}{\uc@nothanks}
% This macro takes all the text up to the first use of |\thanks|
% and passes it to |\uppercase|. The use of |\futurelet| will store
% the token \emph{after} the |\thanks| in |\@tempa|. The macro
% |\u@tx| uses that information to determine what to do next.
% \begin{macrocode}
\def\uc@nothanks#1\thanks{\uppercase{#1}\futurelet\@tempa\uc@tx}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\uc@authornothanks}
% A document can have more than one author. Usually they are
% seperated with |\and|. For each author a footnote --using
% |\thanks| can be present. Therefore this macro takes all the text
% up to the first use of |\and|, thus picking up all the
% information for one author. This is than passsed to
% |\uc@nothanks|, which checks for the presence of |\thanks|. For
% this to work the argument of |\uc@nothanks| has to be delimited
% by |\thanks\relax|.
% \begin{macrocode}
\def\uc@authornothanks#1\and{\uc@nothanks#1\thanks\relax
% \end{macrocode}
% Then we have to check whether the |\and| we ound earlier was put
% in by the user, in which case information for another user will
% follow, or by the call from another macro, in which case the
% |\and| will be followed by a |\relax| token. The |\futurelet|
% contstruct stores the first token \emph{after} the |\and| in
% |\@tempa| to be inspected by |\u@ax|.
% \begin{macrocode}
\futurelet\@tempa\uc@ax}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\uc@ax}
% When |\@tempa| contains a |\relax| token nothing needs to be
% done, when it doesn't we put in a linebreak |\\| the word `and'
% (stored in |\andname| so that this control sequence can be
% redeined for other languages), another linebreak and we call
% |\uc@authornothanks| to continue processing. The |\expandafter|
% lets \TeX\ see the |\fi| first.
% \begin{macrocode}
\def\uc@ax{%
\ifx\@tempa\relax
\else
\\ \andname \\ \expandafter\uc@authornothanks
\fi}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\uc@tx}
% This macro simply checks whether |\@tempa| contains a |\relax|
% token. When it doesn't further processing is performed by
% |\u@ty|.
% \begin{macrocode}
\def\uc@tx{\ifx\@tempa\relax
\else \expandafter\uc@ty \fi}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\uc@ty}
% The macro |\uc@ty| gets executed when the |\thanks| that
% delimited text earlier on in the processing had a real argument.
% In that case it was a |\thanks| put in by the user, \emph{not} by
% these macros. Therefore the argument is now passed to |\thanks|
% and processing continues by calling |\uc@nothanks|.
% \begin{macrocode}
\def\uc@ty#1{\thanks{#1}\uc@nothanks}
% \end{macrocode}
% \end{macro}
%
% When the title is not on a page of its own, the layout of the
% title is a little different. We use symbols to mark the footnotes
% and we have to deal with two column documents.
%
% Therefore we first start a new group to keep changes local. Then
% we redefine |\thefootnote| to use |\fnsymbol|; and change
% |\@makefnmark| so that footnotemarks have zero width (to make the
% centering of the author names look better). We also want raised
% footnotemarkers in the footnotes here.
% \changes{v2.0p}{1995/08/10}{Now use \cs{@textsuperscript} in the
% definition of footnotes}
% \begin{macrocode}
%<*!boek>
\else
\newcommand*\maketitle{\par
\begingroup
\renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
%<!type2> \def\@makefnmark{\rlap{%
%<!type2> \@textsuperscript{\normalfont\@thefnmark}}}%
%<!type2> \long\def\@makefntext{\@xmakefntext{%
%<!type2> \@textsuperscript{\normalfont\@thefnmark}}}%
%<*type2>
% \end{macrocode}
% \changes{v2.0v}{1997/03/02}{Use \cs{textendash} instead of
% \texttt{-{}-}}
% \begin{macrocode}
\long\def\@makefntext##1{\parindent\z@
\def\labelitemi{\textendash}%
\leavevmode\hb@xt@.5\unitindent{%
\@textsuperscript{\normalfont\@thefnmark}\hfil}##1}
%</type2>
% \end{macrocode}
% If this is a twocolumn document we start a new page in twocolumn
% mode, with the title set to the full width of the text. The
% actual printing of the title information is left to
% |\@maketitle|.
% \changes{v2.0h}{1994/06/02}{Added check on number of columns in use
% locally}
% \begin{macrocode}
\if@twocolumn
\ifnum \col@number=\@ne
\@maketitle
\else
\twocolumn[\@maketitle]%
\fi
\else
% \end{macrocode}
% When this is not a twocolumn document we just start a new page,
% prevent floating objects from appearing on the top of this page
% and print the title information.
% \begin{macrocode}
\newpage
\global\@topnum\z@
\@maketitle
\fi
% \end{macrocode}
% This page gets a \pstyle{plain} layout. We call |\@thanks| to
% produce the footnotes.
% \begin{macrocode}
\thispagestyle{plain}\@thanks
% \end{macrocode}
% Now we can close the group, reset the \Lcount{footnote} counter,
% disable |\thanks|, |\maketitle| and |\@maketitle| and save some
% storage space by emptying the internal information macros.
% \changes{v2.0r}{1995/10/05}{use \cs{let} to save space, disable
% \cs{title} and similar decls an empty \cs{@date} as well}
% \begin{macrocode}
\endgroup
\setcounter{footnote}{0}%
\global\let\thanks\relax
\global\let\maketitle\relax
\global\let\@maketitle\relax
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@title\@empty
\global\let\@date\@empty
\global\let\title\relax
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
}
% \end{macrocode}
%
% \begin{macro}{\@maketitle}
% This macro takes care of formatting the title information when we
% have no seperate title page.
%
% We always start a new page, leave some white space and center the
% information. The title is set in a |\LARGE| font, the author
% names and the in a |\large| font.
% \changes{v2.0d}{1994/02/23}{Added slection of font by \cs{TitleFont}}
% \changes{v2.0z}{2004/02/20}{Make \cs{footnote} work}
% \begin{macrocode}
\def\@maketitle{%
\newpage
\null
\vskip 2em%
%<type3>\if@titlecentered
\begin{center}%
\let \footnote \thanks
{\LARGE \TitleFont \@title \par}%
\vskip 1.5em%
{\large \TitleFont
\lineskip .5em%
\begin{tabular}[t]{c}%
\@author
\end{tabular}\par}%
\vskip 1em%
{\large \TitleFont \@date}%
\end{center}%
%<*type3>
\else
{\LARGE \TitleFont \head@style \@title \par} \vskip 1.5em
{\large \TitleFont \lineskip .5em \tabcolsep\z@
\def\and{%%% \begin{tabular} has already started
\end{tabular}\hskip 1em plus .17fil
\begin{tabular}[t]{l}}%% \end{tabular} will come
\begin{tabular}[t]{l}\@author\end{tabular}\par}
\vskip 1em {\large \TitleFont \@date}
\fi
%</type3>
\par
\vskip 1.5em}
\fi
%</!boek>
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \subsection{Chapters and Sections}
%
% \subsubsection{Building blocks}
% The definitions in this part of the class file make use of two
% macros, |\@startsection| and |\secdef|, which are defined by
% \file{latex.dtx}. To understand what is going on here, we
% describe their syntax.
%
% The macro |\@startsection| has 6 required arguments, optionally
% followed by a $*$, an optional argument and a required argument:
%
% |\@startsection|\meta{name}\meta{level}\meta{indent}^^A
% \meta{beforeskip}\meta{afterskip}\meta{style}
% optional *\\
% \null\hphantom{\bslash @startsection}^^A
% |[|\meta{altheading}|]|\meta{heading}
%
% It is a generic command to start a section, the arguments have
% the following meaning:
%
% \begin{description}
% \item[\meta{name}] The name of the user level command, e.g.,
% `section'.
% \item[\meta{level}] A number, denoting the depth of the section
% -- e.g., chapter=1, section = 2, etc. A section number
% will be printed if and only if \meta{level} $<=$ the value
% of the \Lcount{secnumdepth} counter.
% \item[\meta{indent}] The indentation of the heading from the left
% margin
% \item[\meta{beforeskip}] The absolute value of this argument
% gives the skip to leave above the heading. If it is
% negative, then the paragraph indent of the text following
% the heading is suppressed.
% \item[\meta{afterskip}] If positive, this gives the skip to leave
% below the heading, else it gives the skip to leave to the
% right of a run-in heading.
% \item[\meta{style}] Commands to set the style of the
% heading. Since the June 1996 release of \LaTeX\ the
% \emph{last} command in this argument may be a command such
% as |\MakeUppercase| or |\fbox| that takes an argument. The
% section heading will be supplied as the argument to this
% command. So setting |#6| to, say, |\bfseries\MakeUppercase|
% would produce bold, uppercase headings.
% \item[$*$] When this is missing the heading is numbered and the
% corresponding counter is incremented.
% \item[\meta{altheading}] Gives an alternative heading to use in
% the table of contents and in the running heads. This should
% be not present when the $*$ form is used.
% \item[\meta{heading}] The heading of the new section.
% \end{description}
% A sectioning command is normally defined to |\@startsection| and
% its first six arguments.
%
% The macro |\secdef| can be used when a sectioning command is
% defined without using |\@startsection|. It has two arguments:
%
% |\secdef|\meta{unstarcmds}\meta{starcmds}
%
% \begin{description}
% \item[\meta{unstarcmds}] Used for the normal form of the
% sectioning command.
% \item[\meta{starcmds}] Used for the $*$-form of the
% sectioning command.
% \end{description}
%
% You can use |\secdef| as follows:
% \begin{verbatim}
% \def\chapter { ... \secdef \CMDA \CMDB }
% \def\CMDA [#1]#2{ ... } % Command to define
% % \chapter[...]{...}
% \def\CMDB #1{ ... } % Command to define
% % \chapter*{...}
% \end{verbatim}
%
% \begin{macro}{\head@style}
% In the definition of chapter and section commands a number of
% settings frequently occur. Therefore we store them in a control
% sequence.
%
% Section headings are to be set extremely raggedright, with no
% hyphenations, not even at explicit hyphens.
%
% \begin{macrocode}
\newcommand*\head@style{%
\interlinepenalty \@M
\hyphenpenalty=\@M \exhyphenpenalty=\@M
\rightskip=0cm plus .7\hsize\relax}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@sect}
% The definition of this macro from \file{latex.dtx} needs to be
% repeated here because we want to modify its behaviour with
% respect to:
% \begin{enumerate}
% \item the width of the number, which is fixed;
% \item checking the value of |\unitindent|;
% \item formatting the section title ragged right;
% \item changing the argument of |\contentsline|.
% \end{enumerate}
% \begin{macrocode}
\def\@sect#1#2#3#4#5#6[#7]#8{%
\ifnum #2>\c@secnumdepth
\let\@svsec\@empty
\else
\refstepcounter{#1}%
% \end{macrocode}
% The following code (within the group) checks the value of
% |\unitindent|. If the sectionnumber is wider than |\unitindent|
% its value is adapted and a flag is set to rememeber to store the
% new value in the \file{.aux}-file.
% \begin{macrocode}
%<*type1|type3>
\begingroup
\setbox\@tempboxa=\hbox{#6\relax
\csname the#1\endcsname
\hskip.5em}
\ifdim\wd\@tempboxa>\unitindent
\global\unitindent=\wd\@tempboxa
\@indentset
\fi
\endgroup
%</type1|type3>
% \end{macrocode}
% Since |\@seccntformat| might end with an improper |\hskip| which
% is scanning forward for |plus| or |minus| we end the definition
% of |\@svsec| with |\relax| as a precaution.
% \changes{v2.0n}{1995/01/06}{No longer redefine \cs{protect} but use
% one of the available settings}
% \changes{v2.0o}{1995/05/07}{Added \cs{relax} to prevent problems
% with a section starting with plus or minus}
% \begin{macrocode}
\protected@edef\@svsec{\@seccntformat{#1}\relax}%
\fi
\@tempskipa #5\relax
\ifdim \@tempskipa>\z@
\begingroup
% \end{macrocode}
% \changes{v2.0u}{1996/09/23}{Moved brace to allow commands like
% \cs{MakeUppercase} in 6th argument. Changed \cs{par} to
% \cs{endgraf} to allow non-long commands. This follows a change in
% \LaTeX.}
% This |{| used to be after the argument to |\@hangfrom| but was
% moved here to allow commands such as |\MakeUppercase| to be used
% at the end of |#6|.
% \begin{macrocode}
#6{%
%<*type1|type3>
\@hangfrom{\hskip #3\relax\@svsec}\head@style #8\endgraf}%
%</type1|type3>
%<*type2>
\@hangfrom{\hskip #3}
\head@style\@svsec \hskip.3em\relax #8\endgraf}
%</type2>
\endgroup
\csname #1mark\endcsname{#7}%
\addcontentsline{toc}{#1}{%
\ifnum #2>\c@secnumdepth
\else
\protect\numberline{\csname the#1\endcsname}%
\fi
\toc@font#2 #7}%
\else
\def\@svsechd{#6\hskip #3\relax
\@svsec #8\csname #1mark\endcsname{#7}%
\addcontentsline{toc}{#1}{%
\ifnum #2>\c@secnumdepth
\else
\protect\numberline{\csname the#1\endcsname}%
\fi
\toc@font#2 #7}}%
\fi
\@xsect{#5}}
% \end{macrocode}
% This macro was introduced in \LaTeXe, its definition is changed
% here to get the fixed with of the section number.
% \changes{v2.0o}{1995/05/07}{added \cs{relax} in the type2 case}
% \begin{macrocode}
\def\@seccntformat#1{%
%<!type2> \hb@xt@\unitindent{\csname the#1\endcsname \hfil}%
%<type2> \csname the#1\endcsname\hskip.3em\relax
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@ssect}
% Similar changes need to be made to the definition of |\@ssect|,
% which is used in `starred' sections.
% \begin{macrocode}
\def\@ssect#1#2#3#4#5{\@tempskipa #3\relax
\ifdim \@tempskipa>\z@
\begingroup
% \end{macrocode}
% \changes{v2.0u}{1996/09/23}{Moved brace to allow commands like
% \cs{MakeUppercase} in 4th argument. Changed \cs{par} to
% \cs{endgraf} to allow non-long commands. This follows a change in
% \LaTeX.}
% This |{| used to be after the argument to |\@hangfrom| but was
% moved here to allow commands such as |\MakeUppercase| to be used
% at the end of |#6|.
% \begin{macrocode}
#4{%
\@hangfrom{\hskip #1}\head@style #5\endgraf}%
\endgroup
\else
\def\@svsechd{#4\hskip #1\relax #5}%
\fi
\@xsect{#3}}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Mark commands}
%
% \begin{macro}{\chaptermark}
% \begin{macro}{\sectionmark}
% \begin{macro}{\subsectionmark}
% \begin{macro}{\subsubsectionmark}
% \begin{macro}{\paragraphmark}
% \begin{macro}{\subparagraphmark}
% Default initializations of |\...mark| commands. These commands
% are used in the definition of the page styles (see
% section~\ref{sec:pagestyle}) Most of them are already defined by
% \file{latex.tex}, so they are only shown here.
%
% \begin{macrocode}
%<!artikel>\newcommand*\chaptermark[1]{}
% \newcommand*\sectionmark[1]{}
% \newcommand*\subsectionmark[1]{}
% \newcommand*\subsubsectionmark[1]{}
% \newcommand*\paragraphmark[1]{}
% \newcommand*\subparagraphmark[1]{}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsubsection{Define Counters}
%
% \begin{macro}{\c@secnumdepth}
% The value of the counter \Lcount{secnumdepth} gives the depth of
% the highest-level sectioning command that is to produce section
% numbers.
% \begin{macrocode}
%<artikel>\setcounter{secnumdepth}{3}
%<!artikel>\setcounter{secnumdepth}{2}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\c@part}
% \begin{macro}{\c@chapter}
% \begin{macro}{\c@section}
% \begin{macro}{\c@subsection}
% \begin{macro}{\c@subsubsection}
% \begin{macro}{\c@paragraph}
% \begin{macro}{\c@subparagraph}
% These counters are used for the section numbers. The macro\\
% |\newcounter{|\meta{newctr}|}[|\meta{oldctr}|]|\\
% defines \meta{newctr} to be a counter, which is reset to zero when
% counter \meta{oldctr} is stepped. Counter \meta{oldctr} must
% already be defined.
%
% \begin{macrocode}
\newcounter {part}
%<artikel>\newcounter {section}
%<*rapport|boek>
\newcounter {chapter}
\newcounter {section}[chapter]
%</rapport|boek>
\newcounter {subsection}[section]
\newcounter {subsubsection}[subsection]
\newcounter {paragraph}[subsubsection]
\newcounter {subparagraph}[paragraph]
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\thepart}
% \begin{macro}{\thechapter}
% \begin{macro}{\thesection}
% \begin{macro}{\thesubsection}
% \begin{macro}{\thesubsubsection}
% \begin{macro}{\theparagraph}
% \begin{macro}{\thesubparagraph}
% For any counter \Lcount{CTR}, |\theCTR| is a macro that defines
% the printed version of counter \Lcount{CTR}. It is defined in
% terms of the following macros:
%
% |\arabic{|\Lcount{COUNTER}|}| prints the value of
% \Lcount{COUNTER} as an arabic numeral.
%
% |\roman{|\Lcount{COUNTER}|}| prints the value of
% \Lcount{COUNTER} as a lowercase roman numberal.
%
% |\Roman{|\Lcount{COUNTER}|}| prints the value of
% \Lcount{COUNTER} as an uppercase roman numberal.
%
% |\alph{|\Lcount{COUNTER}|}| prints the value of \Lcount{COUNTER}
% as a lowercase letter: $1 =$~a, $2 =$~ b, etc.
%
% |\Alph{|\Lcount{COUNTER}|}| prints the value of \Lcount{COUNTER}
% as an uppercase letter: $1 =$~A, $2 =$~B, etc.
%
% Actually to save space the internal counter repesentations
% and the commands operating on those are used.
% \begin{macrocode}
\renewcommand*\thepart{\@Roman\c@part}
%<artikel>\renewcommand\thesection{\@arabic\c@section}
%<*rapport|boek>
\renewcommand*\thechapter{\@arabic\c@chapter}
\renewcommand*\thesection{\thechapter.\@arabic\c@section}
%</rapport|boek>
\renewcommand*\thesubsection{\thesection.\@arabic\c@subsection}
\renewcommand*\thesubsubsection{\thesubsection.\@arabic\c@subsubsection}
\renewcommand*\theparagraph{\thesubsubsection.\@arabic\c@paragraph}
\renewcommand*\thesubparagraph{\theparagraph.\@arabic\c@subparagraph}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\@chapapp}
% |\@chapapp| is initially defined to be `|\chaptername|'. The
% |\appendix| command redefines it to be `|\appendixname|'.
%
% \begin{macrocode}
%<rapport|boek>\newcommand*\@chapapp{\chaptername}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Front Matter, Main Matter, and Back Matter}
%
% \changes{v2.0f}{1994/04/18}{Added LL's additions to the book class to
% the boek class}
%
% A boek contains these three sections. First, we define the
% switch |\@mainmatter| that is true iff we are processing Main
% Matter. When this switch is false, the |\chapter| command does
% not print chapter numbers.
%
% Here we define the commands that start these sections.
% \begin{macro}{\frontmatter}
% This command starts Roman page numbering and turns off chapter
% numbering.
% \begin{macrocode}
%<*boek>
\newcommand*\frontmatter{%
\cleardoublepage
\@mainmatterfalse
\pagenumbering{roman}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\mainmatter}
% This command clears the page, starts arabic page numbering and
% turns on chapter numbering.
% \begin{macrocode}
\newcommand*\mainmatter{%
\cleardoublepage
\@mainmattertrue
\pagenumbering{arabic}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\backmatter}
% This clears the page, turns off chapter numbering and leaves page
% numbering unchanged.
% \begin{macrocode}
\newcommand*\backmatter{%
\if@openright\cleardoublepage\else\clearpage\fi
\@mainmatterfalse}
%</boek>
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Parts}
%
% \begin{macro}{\part}
% The command to start a new part of our document.
%
% In the artikel classes the definition of |\part| is rather simple;
% we start a new paragraph, add a little white space, suppress the
% indentation of the first paragraph (not for the \file{artikel2}
% document class) and make use of |\@secdef|.
% \changes{v2.0z}{2004/02/20}{Check \texttt{@noskipsec} switch and
% possibly force horizontal mode; see \LaTeX{} PR/2889.}
% \begin{macrocode}
%<*artikel>
\newcommand*\part{%
\if@noskipsec \leavevmode \fi
\par
\addvspace{4ex}%
%<!type2> \@afterindentfalse
%<type2> \@afterindenttrue
\secdef\@part\@spart}
%</artikel>
% \end{macrocode}
%
% For the rapport and boek classes we things a bit different.
%
% We start a new (righthand) page and use the \pstyle{empty}
% pagestyle.
% \begin{macrocode}
%<*rapport|boek>
\newcommand*\part{%
\cleardoublepage
\thispagestyle{empty}%
% \end{macrocode}
% When we are making a two column document, this will be a one
% column page. We use |@tempswa| to remember to switch back to two
% columns.
% \begin{macrocode}
\if@twocolumn
\onecolumn
\@tempswatrue
\else
\@tempswafalse
\fi
% \end{macrocode}
% We need an empty box to prevent the fil glue from disappearing.
% \changes{v2.0r}{1995/10/05}{Replace \cs{hbox} by \cs{null}}
% \begin{macrocode}
\null\vfil
% \end{macrocode}
% Here we use |\secdef| to indicate which commands to use to make
% the actual heading.
% \begin{macrocode}
\secdef\@part\@spart}
%</rapport|boek>
% \end{macrocode}
%
% \begin{macro}{\@part}
% This macro does the actual formatting of the title of the part.
% Again the macro is differently defined for the artikel document
% classes than for the document classes rapport and boek.
%
% \begin{macro}{\PartFont}
% The font used to typeset the part is stored in this maro.
% \begin{macrocode}
\newcommand*\PartFont{\bfseries}
% \end{macrocode}
% \end{macro}
%
% When \Lcount{secnumdepth} is larger than $-1$ for the
% artikel document classes, we have a numbered
% part, otherwise it is unnumbered.
% \changes{v2.0p}{1995/08/10}{replace \cs{reset@font} with
% \cs{normalfont}}
% \begin{macrocode}
%<*artikel>
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >\m@ne
\refstepcounter{part}%
\addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
\else
\addcontentsline{toc}{part}{#1}%
\fi
% \end{macrocode}
% We print the title flush left in the artikel classes.
% Also we prevent breaking between lines and reset the font.
% \begin{macrocode}
{\head@style
\parindent\unitindent
\normalfont
% \end{macrocode}
% When this is a numbered part we have to print the number and the
% title. The |\nobreak| should prevent a page break here.
% \changes{v2.0z}{2004/02/20}{Replaced tilde with \cs{nobreakspace},
% see \LaTeX{} (pr/3310)}
% \begin{macrocode}
\ifnum \c@secnumdepth >\m@ne
%<!type2> \Large\PartFont\noindent \partname\nobreakspace\thepart
%<type2> \Large\PartFont\indent \partname\nobreakspace\thepart
\par\nobreak
\fi
%<!type2> \Large \PartFont \noindent #2%
%<type2> \Large \PartFont #2%
% \end{macrocode}
% Then we empty the mark registers, leave some white space and call
% |\@afterheading| to takes care of suppressing the indentation.
% \begin{macrocode}
\markboth{}{}\par}%
\nobreak
\vskip 3ex
\@afterheading}
%</artikel>
% \end{macrocode}
%
% When \Lcount{secnumdepth} is larger than $-2$ for the
% document class rapport and boek, we have a numbered
% part, otherwise it is unnumbered.
% \begin{macrocode}
%<*rapport|boek>
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >-2\relax
\refstepcounter{part}%
\addcontentsline{toc}{part}{\thepart\hspace{1em}\toc@case{#1}}%
\else
\addcontentsline{toc}{part}{\toc@case{#1}}%
\fi
% \end{macrocode}
% We empty the mark registers and center the title on the page in the
% rapport and boek document classes.
% Also we prevent breaking between lines and reset the font.
% \changes{v2.0p}{1995/08/10}{replace \cs{reset@font} with
% \cs{normalfont}}
% \changes{v2.0r}{1995/10/05}{Added missing percent}
% \begin{macrocode}
\markboth{}{}%
{\centering
\interlinepenalty \@M
\normalfont
% \end{macrocode}
% When this is a numbered part we have to print the number. We have
% to expand |\partname| before |\uppercase| is called, therefore we
% use a temporary control sequence that, when called will execute
% |\uppercase| on the contents of |\partname|.
% \begin{macrocode}
\ifnum \c@secnumdepth >-2\relax
\Large\PartFont
\edef\@tempa{\noexpand\uppercase{\partname}}\@tempa
\nobreakspace\thepart
\par
% \end{macrocode}
% We leave some space before we print the title and leave the
% finishing up to |\@endpart|.
% \begin{macrocode}
\vskip 20\p@
\fi
\Large \PartFont \uppercase{#2}\par}%
\@endpart}
%</rapport|boek>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@spart}
% This macro does the actual formatting of the title of the part
% when the star form of the user command was used. In this case we
% \emph{never} print a number. Otherwise the formatting is the same.
%
% The differences between the definition of this macro in the
% artikel document classes and in the rapport and boek document
% classes are similar as they were for |\@part|.
% \changes{v2.0p}{1995/08/10}{replace \cs{reset@font} with
% \cs{normalfont}}
% \begin{macrocode}
%<*artikel>
\def\@spart#1{%
{\parindent \z@
\head@style
\normalfont
%<!type2> \Large \PartFont \noindent #1\par}%
%<type2> \Large \PartFont \indent #1\par}%
\nobreak
\vskip 3ex
\@afterheading}
%</artikel>
% \end{macrocode}
% \changes{v2.0p}{1995/08/10}{replace \cs{reset@font} with
% \cs{normalfont}}
% \begin{macrocode}
%<*rapport|boek>
\def\@spart#1{%
{\centering
\interlinepenalty \@M
\normalfont
\Large \PartFont #1\par}%
\@endpart}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@endpart}
% \changes{v2.0r}{1995/10/05}{move docstrip guard to avoid defining
% \cs{@endpart} in artikelx}
% This macro finishes the part page, for both |\@part| and
% |\@spart|.
%
% First we fill the current page.
% \begin{macrocode}
\def\@endpart{\vfil\newpage
% \end{macrocode}
% Then, when we are in twosided mode and chapters are supposed to
% be on right hand sides, we produce a completely blank
% page.
% \changes{v2.0z}{2004/02/20}{Only add empty page after part if
% twoside and openright (\LaTeX{} pr/3155)}
% \begin{macrocode}
%<!boek> \if@twoside
\if@openright
\null
\thispagestyle{empty}%
\newpage
\fi
%<!boek> \fi
% \end{macrocode}
% When this was a two column document we have to switch back to two
% column mode.
% \begin{macrocode}
\if@tempswa
\twocolumn
\fi}
%</rapport|boek>
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \subsubsection{Chapters}
%
% \begin{macro}{\chapter}
% A chapter should always start on a new page therefore we start by
% calling |\clearpage| and setting the pagestyle for this page to
% \pstyle{plain}.
% \changes{v2.0f}{1994/04/18}{Make \cs{chapter} listen to the openright
% and openany options}
% \begin{macrocode}
%<*rapport|boek>
\newcommand*\chapter{\if@openright\cleardoublepage\else\clearpage\fi
\thispagestyle{plain}%
% \end{macrocode}
% Then we prevent floats from appearing at the top of this page
% because it looks weird to see a floating object above a chapter
% title.
% \begin{macrocode}
\global\@topnum\z@
% \end{macrocode}
% Then we suppress the indentation of the first paragraph by
% setting the switch |\@afterindent| to |false|. We use |\secdef|
% to specify the macros to use for actually setting the chapter
% title.
% \begin{macrocode}
\@afterindentfalse
\secdef\@chapter\@schapter}
% \end{macrocode}
%
% \begin{macro}{\@chapter}
% This macro is called when we have a numbered chapter. When
% \Lcount{secnumdepth} is larger than $-1$ and, in the boek class,
% |\@mainmatter| is true, we display the chapter number. We also
% inform the user that a new chapter is about to be typeset by
% writing a message to the terminal.
% \changes{v2.0k}{1994/06/08}{Removed carriage return behind +boek}
% \begin{macrocode}
\def\@chapter[#1]#2{%
\ifnum \c@secnumdepth >\m@ne
%<boek> \if@mainmatter
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\addcontentsline{toc}{chapter}%
{\protect\numberline{\thechapter}\toc@font0 #1}%
%<*boek>
\else
\addcontentsline{toc}{chapter}{\toc@font0 #1}%
\fi
%</boek>
\else
\addcontentsline{toc}{chapter}{\toc@font0 #1}%
\fi
% \end{macrocode}
% After having written an entry to the table of contents we store
% the (alternative) title of this chapter with |\chaptermark| and
% add some white space to the lists of figures and tables.
% \begin{macrocode}
\chaptermark{#1}%
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
% \end{macrocode}
% Then we call upon |\@makechapterhead| to format the actual
% chapter title. We have to do this in a special way when we are in
% twocolumn mode in order to have the chapter title use the entire
% |\textwidth|. In one column mode we call |\@afterheading| which
% takes care of suppressing the indentation.
% \begin{macrocode}
\if@twocolumn
\@topnewpage[\@makechapterhead{#2}]%
\else
\@makechapterhead{#2}%
\@afterheading
\fi}
% \end{macrocode}
%
% \begin{macro}{\ChapFont}
% The font used to typeset the chapters is stored in this maro.
% \begin{macrocode}
\newcommand*\ChapFont{\bfseries}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@makechapterhead}
% The macro above uses |\@makechapterhead|\meta{text} to format the
% heading of the chapter.
%
% We begin by leaving some white space. The we open a group in
% which we have a paragraph indent of 0pt, and in which we have the
% text set ragged right. We also reset the font.
% \changes{v2.0p}{1995/08/10}{replace \cs{reset@font} with
% \cs{normalfont}}
% \begin{macrocode}
\def\@makechapterhead#1{%
%<!boek> \vspace*{50\p@ \@plus 5\p@}%
%<boek> \vspace*{50\p@ \@plus 20\p@}%
{\setlength\parindent{\z@}%
\setlength\parskip {\z@}%
\head@style \normalfont
% \end{macrocode}
% Then we check whether the number of the chapter has to be printed.
% If so we leave some whitespace between the chapternumber and its
% title.
% \changes{v2.0j}{1994/06/03}{Removed carriage return behind +boek}
% \changes{v2.0m}{1994/12/20}{Added a \cs{nobreak} to prevent a
% pagebreak between the chapternumber and the chaptertitle}
% \begin{macrocode}
\ifnum \c@secnumdepth >\m@ne
%<boek> \if@mainmatter
\Large\ChapFont \@chapapp{} \thechapter
\par\nobreak
\vskip 20\p@
%<boek> \fi
\fi
% \end{macrocode}
% Now we set the title in a large bold font. We prevent a pagebreak
% at this point and leave some whitespace before the text begins.
% \begin{macrocode}
\Large \ChapFont #1\par
\nobreak
\vskip 40\p@
}}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\@schapter}
% This macro is called when we have an unnumbered chapter. It is
% much simpler than |\@chapter| because it only needs to typeset
% the chapter title.
% \begin{macrocode}
\def\@schapter#1{\if@twocolumn
\@topnewpage[\@makeschapterhead{#1}]%
\else
\@makeschapterhead{#1}%
\@afterheading
\fi}
% \end{macrocode}
%
% \begin{macro}{\@makeschapterhead}
% The macro above uses |\@makeschapterhead|\meta{text}to format
% the heading of the chapter. It is similar to |\@makechapterhead|
% except that it never has to print a chapter number.
%
% \changes{v2.0p}{1995/08/10}{replace \cs{reset@font} with
% \cs{normalfont}}
% \begin{macrocode}
\def\@makeschapterhead#1{%
%<!boek> \vspace*{50\p@\@plus 5\p@}%
%<boek> \vspace*{50\p@\@plus 20\p@}%
{\setlength\parindent{\z@}%
\setlength\parskip{\z@}%
\head@style
\normalfont
\Large \ChapFont #1\par
\nobreak
\vskip 40\p@
}}
%</rapport|boek>
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
%
% \subsubsection{Lower level headings}
%
% These commands all make use of |\@startsection|.
% \begin{macro}{\section}
% This gives a normal heading with white space above the heading
% (the whitespace below the heading will be generated by the
% |\parskip| that is inserted at the start of the first paragraph),
% the title set in |\large\bfseries|, and no indentation on the
% first paragraph.
% \changes{v2.0p}{1995/08/10}{replace \cs{reset@font} with
% \cs{normalfont}}
% \begin{macrocode}
\newcommand*\section{%
%<*type1|type3>
\@startsection {section}{1}{\z@}%
{-2\baselineskip\@plus -1\baselineskip \@minus -.5\baselineskip}%
%</type1|type3>
%<*type2>
\@startsection {section}{1}{\unitindent}%
{2\baselineskip\@plus \baselineskip \@minus .5\baselineskip}%
%</type2>
%<type1> {.5\baselineskip}%
%<type2|type3> {.01\baselineskip}%
{\normalfont\large\SectFont}}
% \end{macrocode}
%
% \begin{macro}{\SectFont}
% The font used to typeset the sections is stored in this maro.
% \begin{macrocode}
\newcommand*\SectFont{\bfseries}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\subsection}
% This gives a normal heading with white space above the heading,
% the title set in |\normalsize\bfseries|, and no indentation on
% the first paragraph.
% \changes{v2.0n}{1995/01/06}{Use 1\cs{baselineskip} instead of
% \cs{baselineskip} for artikel2}
% \changes{v2.0p}{1995/08/10}{replace \cs{reset@font} with
% \cs{normalfont}}
% \begin{macrocode}
\newcommand*\subsection{%
%<*type1|type3>
\@startsection{subsection}{2}{\z@}%
{-1\baselineskip\@plus -.5\baselineskip \@minus -.25\baselineskip}%
%</type1|type3>
%<*type2>
\@startsection{subsection}{2}{\unitindent}%
{1\baselineskip\@plus .5\baselineskip \@minus .25\baselineskip}%
%</type2>
%<type1> {.25\baselineskip}%
%<type2|type3> {.01\baselineskip}%
{\normalfont\normalsize\SSectFont}}
% \end{macrocode}
%
% \begin{macro}{\SSectFont}
% The font used to typeset the subsections is stored in this maro.
% \begin{macrocode}
\newcommand*\SSectFont{\bfseries}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\subsubsection}
% This gives a normal heading with white space above the heading,
% the title set in |\normalsize\tm|, and no indentation on the
% first paragraph.
% \changes{v2.0p}{1995/08/10}{replace \cs{reset@font} with
% \cs{normalfont}}
% \begin{macrocode}
\newcommand*\subsubsection{%
%<*type1|type3>
\@startsection{subsubsection}{3}{\z@}%
{-1\baselineskip plus -.5\baselineskip minus -.25\baselineskip}%
%</type1|type3>
%<*type2>
\@startsection{subsubsection}{3}{\unitindent}%
{1\baselineskip plus .5\baselineskip minus .25\baselineskip}%
%</type2>
%<type1> {.25\baselineskip}%
%<type2|type3> {.01\baselineskip}%
{\normalfont\normalsize\SSSectFont}}
% \end{macrocode}
%
% \begin{macro}{\SSSectFont}
% The font used to typeset the subsubsections is stored in this maro.
% \begin{macrocode}
%<artikel&(type1|type3)>\newcommand*\SSSectFont{\rmfamily}
%<type2>\newcommand*\SSSectFont{\scshape}
%<rapport|boek>\newcommand*\SSSectFont{\slshape}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\paragraph}
% This gives a run-in heading with white space above and to the
% right of the heading, the title set in |\normalsize\slshape|.
% \changes{v2.0d}{1994/02/23}{Forgot to change \cs{slshape} into
% \cs{ParaFont}}
% \changes{v2.0p}{1995/08/10}{replace \cs{reset@font} with
% \cs{normalfont}}
% \begin{macrocode}
\newcommand*\paragraph{%
%<!type2> \@startsection{paragraph}{4}{\z@}%
%<type2> \@startsection{paragraph}{4}{\unitindent}%
{3.25ex \@plus1ex \@minus.2ex}%
{-1em}%
{\normalfont\normalsize\ParaFont}}
% \end{macrocode}
%
% \begin{macro}{\ParaFont}
% The font used to typeset the paragraphs is stored in this maro.
% \begin{macrocode}
%<!type2>\newcommand*\ParaFont{\slshape}
%<type2>\newcommand*\ParaFont{\scshape}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\subparagraph}
% This gives an indented run-in heading with white space above and
% to the right of the heading, the title set in
% |\normalsize\slshape|.
% \changes{v2.0p}{1995/08/10}{replace \cs{reset@font} with
% \cs{normalfont}}
% \begin{macrocode}
\newcommand*\subparagraph{%
%<!type2> \@startsection{subparagraph}{5}{\parindent}%
%<type2> \@startsection{subparagraph}{5}{\unitindent}%
{3.25ex \@plus1ex \@minus .2ex}%
{-1em}%
{\normalfont\normalsize\SParaFont}}
% \end{macrocode}
%
% \begin{macro}{\SParaFont}
% The font used to typeset the subparagraphs is stored in this maro.
% \begin{macrocode}
\newcommand*\SParaFont{\slshape}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\Headingfonts}
% To change the fonts that are used to typeset the title,part,
% chapter and section headings this macro can be used.
% \changes{v2.0d}{1994/02/23}{Added \cs{TitleFont}}
% \begin{macrocode}
%<*artikel>
\newcommand*\HeadingFonts[7]{%
\renewcommand*\TitleFont{#1}%
\renewcommand*\PartFont{#2}%
\renewcommand*\SectFont{#3}%
\renewcommand*\SSectFont{#4}%
\renewcommand*\SSSectFont{#5}%
\renewcommand*\ParaFont{#6}%
\renewcommand*\SParaFont{#7}}
%</artikel>
%<*rapport|boek>
\newcommand*\HeadingFonts[8]{%
\renewcommand*\TitleFont{#1}%
\renewcommand*\PartFont{#2}%
\renewcommand*\ChapFont{#3}%
\renewcommand*\SectFont{#4}%
\renewcommand*\SSectFont{#5}%
\renewcommand*\SSSectFont{#6}%
\renewcommand*\ParaFont{#7}%
\renewcommand*\SParaFont{#8}}
%</rapport|boek>
% \end{macrocode}
% \end{macro}
%
% \subsection{Lists}
%
% \subsubsection{General List Parameters}
%
% The following commands are used to set the default values for the list
% environment's parameters. See the \LaTeX{} manual for an explanation
% of the meanings of the parameters. Defaults for the list
% environment are set as follows. First, |\rightmargin|,
% |\listparindent| and |\itemindent| are set to 0pt. Then, for a Kth
% level list, the command |\@listK| is called, where `K' denotes `i',
% '`i', ... , `vi'. (I.e., |\@listiii| is called for a third-level
% list.) By convention, |\@listK| should set |\leftmargin| to
% |\leftmarginK|.
%
% \begin{macro}{\leftmargin}
% \begin{macro}{\leftmargini}
% \begin{macro}{\leftmarginii}
% \begin{macro}{\leftmarginiii}
% \begin{macro}{\leftmarginiv}
% \begin{macro}{\leftmarginv}
% \begin{macro}{\leftmarginvi}
% For efficiency, level-one list's values are defined at top level, and
% |\@listi| is defined to set only |\leftmargin|.
%
% \begin{macrocode}
%<!type2>\setlength\leftmargini {\unitindent}
%<type2>\setlength\leftmargini {\othermargin}
\setlength\leftmarginii {\othermargin}
\setlength\leftmarginiii{\othermargin}
\setlength\leftmarginiv {\othermargin}
\setlength\leftmarginv {\othermargin}
\setlength\leftmarginvi {1em}
% \end{macrocode}
% Here we set the top level leftmargin.
% \begin{macrocode}
\setlength\leftmargin {\leftmargini}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\labelsep}
% \begin{macro}{\labelwidth}
% |\labelsep| is the distance between the label and the text of an
% item; |\labelwidth| is the width of the label.
% \begin{macrocode}
\setlength \labelsep {5\p@}
\setlength \labelwidth{\leftmargini}
\addtolength\labelwidth{-\labelsep}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\partopsep}
% When the user leaves a blank line before the environment an extra
% vertical space of |\partopsep| is inserted, in addition to
% |\parskip| and |\topsep|.
% \begin{macrocode}
\setlength\partopsep{\z@}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\topsep}
% Extra vertical space, in addition to |\parskip|, added above and
% below list and paragraphing environments.
% \begin{macrocode}
\setlength\topsep{\z@}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@beginparpenalty}
% \begin{macro}{\@endparpenalty}
% These penalties are inserted before and after a list or paragraph
% environment. They are set to a bonus value to encourage page
% breaking at these points.
% \begin{macro}{\@itempenalty}
% This penalty is inserted between list items.
% \begin{macrocode}
\@beginparpenalty -\@lowpenalty
\@endparpenalty -\@lowpenalty
\@itempenalty -\@lowpenalty
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\@listi}
% \begin{macro}{\@listI}
% |\@listi| defines values of
% |\leftmargin|, |\parsep|, |\topsep|, and |\itemsep|, etc.\ for the
% lists that appear on top-level. Its definition is modified by the
% font-size commands (eg within |\small| the list parameters get
% ``smaller'' values).
%
% For this reason \@listI is defined to hold a saved copy of \@listi
% so that |\normalsize| can switch all parameters back.
%
% \begin{macrocode}
\def\@listi{%
%<!type2> \leftmargin\unitindent
%<type2> \leftmargin\leftmargini
%<!type2> \labelsep.5em%
%<type2> \labelsep.45em%
\labelwidth\leftmargin
\advance\labelwidth-\labelsep
\parsep \z@
%<!type3> \topsep 0\p@ \@plus\p@
%<type3> \topsep -.5\parskip \@plus\p@
\itemsep 0\p@ \@plus1\p@}
\let\@listI\@listi
% \end{macrocode}
% We initialise these parameters although strictly speaking that
% is not necessary.
% \begin{macrocode}
\@listi
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\@listii}
% \begin{macro}{\@listiii}
% \begin{macro}{\@listiv}
% \begin{macro}{\@listv}
% \begin{macro}{\@listvi}
% Here are the same macros for the higher level lists. Note that
% they don't have saved versions and are not modified by the font
% size commands. In other words this class assumes that nested
% lists only appear in |\normalsize|, i.e.\ the main document size.
% \begin{macrocode}
\def\@listii {\leftmargin\leftmarginii
%<!type2> \labelsep .5em%
%<type2> \labelsep .3em%
\labelwidth\leftmarginii
\advance\labelwidth-\labelsep
%<!type3> \topsep 0\p@ \@plus\p@
%<type3> \topsep -.5\parskip\@plus\p@
\parsep \z@
\itemsep \z@ \@plus\p@}
\def\@listiii{\leftmargin\leftmarginiii
%<!type2> \labelsep .5em%
%<type2> \labelsep .3em%
\labelwidth\leftmarginiii
\advance\labelwidth-\labelsep
%<!type3> \topsep 0\p@ \@plus\p@
%<type3> \topsep -.5\parskip\@plus\p@
\parsep \z@
\partopsep \z@ \@plus\p@
\itemsep \z@ \@plus\p@}
\def\@listiv {\leftmargin\leftmarginiv
%<!type2> \labelsep .5em%
%<type2> \labelsep .3em%
\labelwidth\leftmarginiv%
\advance\labelwidth-\labelsep
%<!type3> \topsep 0\p@ \@plus\p@
%<type3> \topsep -.5\parskip\@plus\p@
\parsep \z@
\itemsep \z@ \@plus\p@}
\def\@listv {\leftmargin\leftmarginv
%<!type2> \labelsep .5em%
%<type2> \labelsep .3em%
\labelwidth\leftmarginv
\advance\labelwidth-\labelsep%
%<!type3> \topsep 0\p@ \@plus\p@
%<type3> \topsep -.5\parskip\@plus\p@
\parsep \z@
\itemsep \z@ \@plus\p@}
\def\@listvi {\leftmargin\leftmarginvi
%<!type2> \labelsep .5em
%<type2> \labelsep .3em
\labelwidth\leftmarginvi
\advance\labelwidth{-\labelsep}%
%<!type3> \topsep 0\p@ \@plus\p@
%<type3> \topsep -.5\parskip\@plus\p@
\parsep \z@
\itemsep \z@ \@plus\p@}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsubsection{Enumerate}
%
% The enumerate environment uses four counters: \Lcount{enumi},
% \Lcount{enumii}, \Lcount{enumiii} and \Lcount{enumiv}, where
% \Lcount{enumN} controls the numbering of the Nth level
% enumeration.
%
% \begin{macro}{\theenumi}
% \begin{macro}{\theenumii}
% \begin{macro}{\theenumiii}
% \begin{macro}{\theenumiv}
% The counters are already defined in \file{latex.dtx}, but their
% representation is changed here.
%
% \begin{macrocode}
\renewcommand*\theenumi{\@arabic\c@enumi}
\renewcommand*\theenumii{\@alph\c@enumii}
\renewcommand*\theenumiii{\@roman\c@enumiii}
\renewcommand*\theenumiv{\@Alph\c@enumiv}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\labelenumi}
% \begin{macro}{\labelenumii}
% \begin{macro}{\labelenumiii}
% \begin{macro}{\labelenumiv}
% The label for each item is generated by the commands\\
% |\labelenumi| ... |\labelenumiv|.
% \begin{macrocode}
\newcommand*\labelenumi{\theenumi.}
\newcommand*\labelenumii{(\theenumii)}
\newcommand*\labelenumiii{\theenumiii.}
\newcommand*\labelenumiv{\theenumiv.}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\p@enumii}
% \begin{macro}{\p@enumiii}
% \begin{macro}{\p@enumiv}
% The expansion of |\p@enumN||\theenumN| defines the output of a
% |\ref| command when referencing an item of the Nth level of an
% enumerated list.
% \begin{macrocode}
\renewcommand*\p@enumii{\theenumi}
\renewcommand*\p@enumiii{\theenumi(\theenumii)}
\renewcommand*\p@enumiv{\p@enumiii\theenumiii}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
%
% \begin{environment}{enumerate}
% We want to have different label positioning on different levels of
% list. To acheive this we have to redefine the \Lenv{enumerate}
% environment.
%
% \begin{macrocode}
\renewenvironment{enumerate}{%
\ifnum \@enumdepth >3
\@toodeep
\else
\advance\@enumdepth \@ne
\edef\@enumctr{enum\romannumeral\the\@enumdepth}%
\list{\csname label\@enumctr\endcsname}
{\usecounter{\@enumctr}%
%<type1> \ifnum \@listdepth=1
%<*type1|type3>
\if@revlabel
\def\makelabel##1{\hskip .5\unitindent{##1\hfil}}%
\else
%<!type3> \def\makelabel##1{\hfil##1}
%<type3> \def\makelabel##1{##1\hfil}
\fi
%</type1|type3>
%<type1> \else
%<type1|type2> \def\makelabel##1{##1\hfil}%
%<type1> \fi
}%
\fi}
% \end{macrocode}
% We try to suppress spaces after these list constructs.
% \begin{macrocode}
{\global\@ignoretrue \endlist}
% \end{macrocode}
% \end{environment}
%
% \subsubsection{Itemize}
%
% \begin{macro}{\labelitemi}
% \begin{macro}{\labelitemii}
% \begin{macro}{\labelitemiii}
% \begin{macro}{\labelitemiv}
% Itemization is controlled by four commands: |\labelitemi|,
% |\labelitemii|, |\labelitemiii|, and |\labelitemiv|, which define
% the labels of thevarious itemization levels: the symbols used are
% bullet, bold en-dash, asterisk and centred dot.
%
% \changes{v2.0u}{1996/09/23}{Changed \texttt{--} to \cs{textendash}
% following \file{classes.dtx}}
% \changes{v2.0u}{1996/09/23}{Did similar for the bullet and centered
% dot.}
% \changes{v2.0v}{1997/03/02}{Now also \cs{textasteriskcentered}}
% \begin{macrocode}
\newcommand*{\labelitemi}{\textbullet}
\newcommand*{\labelitemii}{\normalfont\bfseries \textendash}
\newcommand*{\labelitemiii}{\textasteriskcentered}
\newcommand*{\labelitemiv}{\textperiodcentered}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{environment}{itemize}
% We want to have differen label positioning on different levels of
% list. To acheive this we have to redefine the \Lenv{itemize}
% environment.
% \begin{macrocode}
\renewenvironment{itemize}{%
\ifnum \@itemdepth >3
\@toodeep
\else
\advance\@itemdepth \@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\list{\csname\@itemitem\endcsname}%
{%
%<type1> \ifnum \@listdepth=1\relax
%<*type1|type3>
\if@revlabel
\def\makelabel##1{\hskip .5\unitindent{##1\hfil}}\else
%<type1> \def\makelabel##1{\hfil##1}
%<type3> \def\makelabel##1{##1\hfil}
\fi
%</type1|type3>
%<type1> \else
%<type1|type2> \def\makelabel##1{##1\hfil}
%<type1> \fi
}%
\fi}
% \end{macrocode}
% We try to suppress spaces after these list constructs.
% \begin{macrocode}
{\global\@ignoretrue \endlist}
% \end{macrocode}
% \end{environment}
%
% \subsubsection{Description}
%
% \begin{environment}{description}
% The description environment is defined here -- while the itemize
% and enumerate environments are defined in \file{latex.dtx}.
%
% \begin{macrocode}
\newenvironment{description}
{\list{}{\labelwidth\z@ \itemindent-\leftmargin
\let\makelabel\descriptionlabel}}
{\endlist}
% \end{macrocode}
% \end{environment}
%
% \begin{macro}{\descriptionlabel}
% To change the formatting of the label, you must redefine
% |\descriptionlabel|.
%
% \begin{macrocode}
\newcommand*\descriptionlabel[1]{\hspace\labelsep \bfseries #1}
% \end{macrocode}
% \end{macro}
%
% \subsection{Adapting existing environments}
%
% Because we globally set |\topsep| to zero, we need to modify the
% definitions of a number of environments slightly to get a litle
% whitespace around them in the document classes \file{artikel1}
% and \file{rapport1}.
%
% \begin{environment}{center}
% Add a litle surrounding whitespace.
% \begin{macrocode}
%<*type1>
\def\center
{\topsep=.25\baselineskip \@plus .1\baselineskip
\@minus .1\baselineskip
\trivlist \centering\item[]}
\let\endcenter\endtrivlist
% \end{macrocode}
% \end{environment}
%
% \begin{environment}{flushleft}
% Add a litle surrounding whitespace.
% \begin{macrocode}
\def\flushleft
{\topsep=.25\baselineskip \@plus .1\baselineskip
\@minus .1\baselineskip
\trivlist \raggedright\item[]}
\let\endflushleft=\endtrivlist
% \end{macrocode}
% \end{environment}
%
% \begin{environment}{flushright}
% Add a litle surrounding whitespace.
% \begin{macrocode}
\def\flushright
{\topsep=.25\baselineskip \@plus .1\baselineskip
\@minus .1\baselineskip
\trivlist \raggedleft\item[]}
\let\endflushright=\endtrivlist
%</type1>
% \end{macrocode}
% \end{environment}
%
% \begin{environment}{verbatim}
% In \Lenv{verbatim} we add a little surrounding whitespace,
% --which for \file{artikel3} and \file{rapport3} is negative to
% compensate for the positive |\parskip|-- but also an indent for
% the \file{artikel1} and \file{rapport1} document classess.
% \begin{macrocode}
\def\verbatim{%
%<*type1|type2>
\topsep=.25\baselineskip \@plus .1\baselineskip
\@minus .1\baselineskip
\@verbatim
%</type1|type2>
%<type1> \leftskip\unitindent
%<type2> \leftskip\z@
%<*type3>
\topsep=-.5\parskip
\@verbatim
%</type3>
\frenchspacing\@vobeyspaces \@xverbatim}
%<type1>\def\endverbatim{\if@newlist \leavevmode\fi\endtrivlist}
% \end{macrocode}
% \end{environment}
%
% \subsection{Defining new environments}
%
% \subsubsection{Abstract}
%
% \begin{environment}{abstract}
% When we are producing a separate titlepage we also put the
% abstract on a page of its own. It will be centred vertically on
% the page.
%
% Note that this environment is not defined for boeks.
% \changes{v2.0e}{1994/03/19}{Use \cs{SectFont} for the abstract title}
% \begin{macrocode}
%<!boek>\if@titlepage
\newenvironment{abstract}{%
\titlepage
\null\vfil
\hbox{\SectFont \abstractname}
\noindent\ignorespaces}
{\par\vfil\null\endtitlepage}
% \end{macrocode}
% When we are not making a seperate titlepage --the default for the
% artikel document classes-- we have to check if we are in twocolumn
% mode. In that case the abstract is set as a |\section*|,
% otherwise the abstract is typeset flushleft, an amount
% |\unitindent| smaller as the normal text.
% \begin{macrocode}
%<*artikel|rapport>
\else
\newenvironment{abstract}{%
\if@twocolumn
\section*{\abstractname}%
\else
\small
%<*type1|type3>
\bgroup\rightskip=\unitindent
\hbox{\SectFont \abstractname}%
\noindent\ignorespaces
%</type1|type3>
% \end{macrocode}
% As always, the \file{artikel2} document class has a
% different implementation.
% \changes{v2.0m}{1994/12/30}{Removed superfluous closing brace}
% \begin{macrocode}
%<*type2>
\hbox{\hskip\unitindent\SectFont \abstractname}%
\list{}{\setlength\listparindent{\unitindent}%
\setlength\parindent {\z@}%
\setlength\leftmargin {\unitindent}%
\setlength\rightmargin {\unitindent}%
\setlength\parsep {\z@}}%
\item[]%
%</type2>
\fi}
% \end{macrocode}
% Which implies that the definition of |\end{abstract}| is also
% different.
% \begin{macrocode}
%<!type2> {\if@twocolumn\else\par\egroup\fi}
%<type2> {\if@twocolumn\else\par\endlist\fi}
\fi
%</artikel|rapport>
% \end{macrocode}
% \end{environment}
%
% \subsubsection{Verse}
%
% \begin{environment}{verse}
% The verse environment is defined by making clever use of the
% list environment's parameters. The user types |\\| to end a line.
% This is implemented by |\let|'ing |\\| equal |\@centercr|.
%
% \changes{v2.0r}{1995/10/05}{stop \cs{item} scanning for [ with
% \cs{relax}}
% \begin{macrocode}
\newenvironment{verse}
{\let\\\@centercr
\list{}{\itemsep\z@
\itemindent-1.5em%
\listparindent\itemindent
\rightmargin\leftmargin
\advance\leftmargin1.5em}%
\item\relax}
{\endlist}
% \end{macrocode}
% \end{environment}
%
% \subsubsection{Quotation}
%
% \begin{environment}{quotation}
% The quotation environment is also defined by making clever use of
% the list environment's parameters. The lines in the environment
% are set smaller than |\textwidth|. The first line of a paragraph
% inside this environment is indented.
%
% \changes{v2.0r}{1995/10/05}{stop \cs{item} scanning for [ with
% \cs{relax}}
% \begin{macrocode}
\newenvironment{quotation}
{\list{}{%
%<!type2> \listparindent\z@
%<type2> \listparindent\unitindent
%<boek> \listparindent1.5em%
\itemindent\listparindent
\rightmargin\leftmargin
\parsep\z@ \@plus\p@}%
\item\relax}
{\endlist}
% \end{macrocode}
% \end{environment}
%
% \subsubsection{Quote}
%
% \begin{environment}{quote}
% The quote environment is like the quotation environment except
% that paragraphs are not indented.
%
% \changes{v2.0r}{1995/10/05}{stop \cs{item} scanning for [ with
% \cs{relax}}
% \begin{macrocode}
\newenvironment{quote}
{\list{}{\rightmargin\leftmargin}%
\item\relax}
{\endlist}
% \end{macrocode}
% \end{environment}
%
% \subsubsection{Theorem}
%
% \begin{macro}{\@begintheorem}
% \begin{macro}{\@opargbegintheorem}
% \begin{macro}{\@endtheorem}
% These document classes have a slightly modified \Lenv{theorem}
% environment style. Surrounding whitespace is added and an
% initialisation of |\labelsep|. Finally a slanted font instead of
% an italic font is used.
% \begin{macrocode}
\def\@begintheorem#1#2{%
\vskip\baselineskip \labelsep=.5em%
\trivlist
\item[\hskip \labelsep{\bfseries #1\ #2}]\slshape}
\def\@opargbegintheorem#1#2#3{%
\vskip\baselineskip \labelsep=.5em%
\trivlist
\item[\hskip \labelsep{\bfseries #1\ #2\ (#3)}]\slshape}
\def\@endtheorem{\endtrivlist \vskip\baselineskip}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsubsection{Titlepage}
%
% \begin{environment}{titlepage}
% In the normal environments, the titlepage environment does
% nothing but start and end a page, and inhibit page numbers. It
% also resets the page number to zero. This is incorrect since it
% results in using the page parameters for a right-hand page but it
% is the way it was. In two-column style, it still makes a
% one-column page.
%
% \changes{v1.0.7}{1993/12/09}{Moved the setting of
% \cs{@restonecolfalse}}
% \changes{v2.0f}{1994/04/18}{Incorporated LL's changes to this
% environment}
% \begin{macrocode}
\newenvironment{titlepage}
{
%<boek> \cleardoublepage
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse\newpage
\fi
\thispagestyle{empty}%
\if@compatibility
\setcounter{page}\z@
%<*artikel|rapport>
\else
\setcounter{page}\@ne
%</artikel|rapport>
\fi}
{\if@restonecol\twocolumn \else \newpage \fi
%<artikel|rapport> \setcounter{page}\@ne
}
% \end{macrocode}
% \end{environment}
%
% \subsubsection{Appendix}
%
% \begin{macro}{\appendix}
%
% The |\appendix| command is not really an environment, it is a
% macro that makes some changes in the way things are done.
%
% In the artikel document classes the |\appendix| command must do the
% following:
% \begin{itemize}
% \item reset the section and subsection counters to zero,
% \item redefine |\thesection| to produce alphabetic appendix
% numbers.
% \end{itemize}
%
% \changes{v2.0z}{2004/02/20}{Redefine \cs{thesection} globally
% (\LaTeX{} pr/2862)}
% \begin{macrocode}
%<*artikel>
\newcommand*\appendix{\par
\setcounter{section}{0}%
\setcounter{subsection}{0}%
\gdef\thesection{\@Alph\c@section}}
%</artikel>
% \end{macrocode}
%
% In the rapport and boek document classes the |\appendix| command
% must do the following:
% \begin{itemize}
% \item reset the chapter and section counters to zero,
% \item set |\@chapapp| to |\appendixname| (for messages),
% \item redefine the chapter counter to produce appendix numbers,
% \item possibly redefine the |\chapter| command if appendix titles
% and headings are to look different from chapter titles and
% headings.
% \end{itemize}
%
% \changes{v2.0z}{2004/02/20}{Redefine \cs{thechapter} and
% \cs{@chapapp} globally (\LaTeX{} pr/2862)}
% \begin{macrocode}
%<*rapport|boek>
\newcommand*\appendix{\par
\setcounter{chapter}{0}%
\setcounter{section}{0}%
\gdef\@chapapp{\appendixname}%
\gdef\thechapter{\@Alph\c@chapter}}
%</rapport|boek>
% \end{macrocode}
% \end{macro}
%
% \subsection{Setting parameters for existing environments}
%
% \subsubsection{Array and tabular}
%
% \begin{macro}{\arraycolsep}
% The columns in an array environment are separated by
% 2|\arraycolsep|.
% \begin{macrocode}
\setlength\arraycolsep{5\p@}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\tabcolsep}
% The columns in an tabular environment are separated by
% 2|\tabcolsep|.
% \begin{macrocode}
\setlength\tabcolsep{6\p@}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\arrayrulewidth}
% The width of rules in the array and tabular environments is given
% by |\arrayrulewidth|.
% \begin{macrocode}
\setlength\arrayrulewidth{.4\p@}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\doublerulesep}
% The space between adjacent rules in the array and tabular
% environments is given by |\doublerulesep|.
% \begin{macrocode}
\setlength\doublerulesep{2\p@}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Tabbing}
%
% \begin{macro}{\tabbingsep}
% This controls the space that the |\'| command puts in. (See
% \LaTeX{} manual for an explanation.)
% \begin{macrocode}
\setlength\tabbingsep{\labelsep}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Minipage}
%
% \begin{macro}{\@minipagerestore}
% The macro |\@minipagerestore| is called upon entry to a minipage
% environment to set up things that are to be handled differently
% inside a minipage environment.
%
% \begin{macrocode}
%<type1>\def\@minipagerestore{\parindent\unitindent}
%<*type3>
\def\@minipagerestore{%
\parskip=.5\baselineskip \@plus .1\baselineskip
\@minus .1\baselineskip}
%</type3>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@mpfootins}
% Minipages have their own footnotes; |\skip||\@mpfootins| plays
% same r\^ole for footnotes in a minipage as |\skip||\footins| does
% for ordinary footnotes.
%
% \begin{macrocode}
\skip\@mpfootins = \skip\footins
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Framed boxes}
%
% \begin{macro}{\fboxsep}
% The space left by |\fbox| and |\framebox| between the box and the
% text in it.
% \begin{macro}{\fboxrule}
% The width of the rules in the box made by |\fbox| and |\framebox|.
% \begin{macrocode}
\setlength\fboxsep{3\p@}
\setlength\fboxrule{.4\p@}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \subsubsection{Equation and eqnarray}
%
% \begin{macro}{\theequation}
% When within chapters, the equation counter will be reset at
% beginning of a new chapter and the equation number will be
% prefixed by the chapter number.
%
% This code must follow the |\chapter| definition, or more exactly
% the definition of the chapter counter.
% \changes{v2.0v}{1997/03/02}{Added test for non-zero chapter number}
% \begin{macrocode}
%<artikel>\renewcommand*\theequation{\@arabic\c@equation}
%<*rapport|boek>
\@addtoreset{equation}{chapter}
\renewcommand*\theequation{%
\ifnum \c@chapter>\z@ \thechapter.\fi\@arabic\c@equation}
%</rapport|boek>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\jot}
% |\jot| is the extra space added between lines of an eqnarray
% environment. The default value is used.
% \begin{macrocode}
% \setlength\jot{3pt}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@eqnnum}
% The macro |\@eqnnum| defines how equation numbers are to appear in
% equations. Again the default is used.
%
% \begin{macrocode}
% \def\@eqnnum{(\theequation)}
% \end{macrocode}
% \end{macro}
%
% \subsection{Floating objects}
%
% The file \file{latex.dtx} only defines a number of tools with
% which floating objects can be defined. This is done in the
% document class. It needs to define the following macros for each
% floating object of type \texttt{TYPE} (e.g., \texttt{TYPE} =
% figure).
%
% \begin{description}
% \item[\texttt{\bslash fps@TYPE}]
% The default placement specifier for floats of type
% \texttt{TYPE}.
%
% \item[\texttt{\bslash ftype@TYPE}]
% The type number for floats of type \texttt{TYPE}. Each
% \texttt{TYPE} has associated a unique positive {\texttt
% TYPE} number, which is a power of two. E.g., figures might
% have type number 1, tables type number 2, programs type
% number 4, etc.
%
% \item[\texttt{\bslash ext@TYPE}]
% The file extension indicating the file on which the contents
% list for float type \texttt{TYPE} is stored. For example,
% |\ext@figure| = `lof'.
%
% \item[\texttt{\bslash fnum@TYPE}]
% A macro to generate the figure number for a caption. For
% example, |\fnum@TYPE| == `Figure |\thefigure|'.
%
% \item[\texttt{\bslash @makecaption{\meta{num}}{\meta{text}}}]
% A macro to make a caption, with \meta{num} the value produced
% by |\fnum@...| and \meta{text} the text of the caption. It
% can assume it's in a |\parbox| of the appropriate width.
% This will be used for \emph{all} floating objects.
%
% \end{description}
%
% The actual environment that implements a floating object such as
% a figure is defined using the macros |\@float| and |\end@float|,
% which are defined in \file{latex.dtx}.
%
% An environment that implements a single column floating object is
% started with |\@float{|\texttt{TYPE}|}[|\meta{placement}|]| of type
% \texttt{TYPE} with \meta{placement} as the placement specifier.
% The default value of \meta{PLACEMENT} is defined by |\fps@TYPE|.
%
% The environment is ended by |\end@float|. E.g., |\figure| ==
% |\@float|{figure}, |\endfigure| == |\end@float|.
%
% \subsubsection{Figure}
%
% Here is the implementation of the figure environment.
%
% \begin{macro}{\c@figure}
% First we have to allocate a counter to number the figures. In the
% rapport and boek document classes the figures are numbered per
% chapter.
% \begin{macrocode}
%<*artikel>
\newcounter{figure}
\renewcommand*\thefigure{\@arabic\c@figure}
%</artikel>
%<*rapport|boek>
% \end{macrocode}
% \changes{v2.0v}{1997/03/02}{Added test for non-zero chapter number}
% \begin{macrocode}
\newcounter{figure}[chapter]
\renewcommand*\thefigure{%
\ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
%</rapport|boek>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\fps@figure}
% \begin{macro}{\ftype@figure}
% \begin{macro}{\ext@figure}
% \begin{macro}{\num@figure}
% Here are the parameters for the floating objects of type `figure'.
% \changes{v2.0z}{2004/02/20}{Replaced tilde with \cs{nobreakspace}
% (\LaTeX{} pr/3310)}
% \begin{macrocode}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
\def\fnum@figure{\figurename\nobreakspace\thefigure}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{environment}{figure}
% \begin{environment}{figure*}
% And the definition of the actual environment. The form with the
% |*| is used for double column figures.
% \begin{macrocode}
\newenvironment{figure}
{\@float{figure}}
{\end@float}
\newenvironment{figure*}
{\@dblfloat{figure}}
{\end@dblfloat}
% \end{macrocode}
% \end{environment}
% \end{environment}
%
% \subsubsection{Table}
%
% Here is the implementation of the table environment. It is very
% much the same as the figure environment.
%
% \begin{macro}{\c@table}
% First we have to allocate a counter to number the tables. In the
% rapport and boek document classes the tables are numbered per
% chapter.
% \begin{macrocode}
%<*artikel>
\newcounter{table}
\renewcommand*\thetable{\@arabic\c@table}
%</artikel>
%<*rapport|boek>
% \end{macrocode}
% \changes{v2.0v}{1997/03/02}{Added test for non-zero chapter number}
% \begin{macrocode}
\newcounter{table}[chapter]
\renewcommand*\thetable{%
\ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
%</rapport|boek>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\fps@table}
% \begin{macro}{\ftype@table}
% \begin{macro}{\ext@table}
% \begin{macro}{\num@table}
% Here are the parameters for the floating objects of type `table'.
% \changes{v2.0z}{2004/02/20}{Replaced tilde with \cs{nobreakspace}
% (\LaTeX{} pr/3310)}
% \begin{macrocode}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot}
\def\fnum@table{\tablename\nobreakspace\thetable}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{environment}{table}
% \begin{environment}{table*}
% And the definition of the actual environment. The form with the
% |*| is used for double column tables.
% \begin{macrocode}
\newenvironment{table}
{\@float{table}}
{\end@float}
\newenvironment{table*}
{\@dblfloat{table}}
{\end@dblfloat}
% \end{macrocode}
% \end{environment}
% \end{environment}
%
% \subsubsection{Captions}
%
% \begin{macro}{\@makecaption}
% The |\caption| command calls |\@makecaption| to format the
% caption of floating objects. It gets two arguments,
% \meta{number}, the number of the floating object and \meta{text},
% the text of the caption. Usually \meta{number} contains a string
% such as `Figure 3.2'. The macro can assume it is called inside a
% |\parbox| of right width, with |\normalsize|.
%
% \begin{macro}{\abovecaptionskip}
% \begin{macro}{\belowcaptionskip}
% These lengths contain the amount of white space to leave above
% and below the caption.
% \begin{macrocode}
\newlength\abovecaptionskip
\newlength\belowcaptionskip
\setlength\abovecaptionskip{10\p@}
\setlength\belowcaptionskip{0\p@}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% The definition of this macro is |\long| in order to allow more
% then one paragraph in a caption.
% \changes{v2.0d}{1994/02/23}{Introduced \cs{CaptionLabelFont} and
% \cs{CaptionTextFont}}
% \changes{v2.0e}{1994/03/19}{\cs{CaptionLabelFont} shouldn't
% influence the font for the caption text}
% \begin{macrocode}
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
% \end{macrocode}
% We want to see if the caption fits on one line on the page,
% therefore we first typeset it in a temporary box.
% \changes{vv2.0g}{1994/06/01}{Use \cs{sbox}\cs{@tempboxa} instead of
% \cs{setbox}\cs{@tempboxa}\cs{hbox} to make this colour safe}
% \begin{macrocode}
\sbox\@tempboxa{{\CaptionLabelFont#1:} \CaptionTextFont#2}%
% \end{macrocode}
% We can the measure its width. It that is larger than the current
% |\hsize| we typeset the caption as an ordinary paragraph.
% \begin{macrocode}
\ifdim \wd\@tempboxa >\hsize
{\CaptionLabelFont#1:} \CaptionTextFont#2\par
% \end{macrocode}
% If the caption fits, we center it. Because this uses an |\hbox|
% directly in vertical mode, it does not execute the |\everypar|
% tokens; the only thing that could be needed here is resetting the
% `minipage flag' so we do this explicitly.
% \changes{v2.0m}{1994/12/20}{Due to a change in the way floats are
% handled we need to set the \cs{if@minipage} switch to false}
% \begin{macrocode}
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\CaptionLabelFont}
% \begin{macro}{\CaptionTextFont}
% These macros can contain the fonts used for typesetting captions.
% By default they do nothing.
% \begin{macrocode}
\newcommand*\CaptionLabelFont{\relax}
\newcommand*\CaptionTextFont{\relax}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\CaptionFonts}
% To change the fonts that are used to typeset captions
% this macro can be used.
% \begin{macrocode}
\newcommand*\CaptionFonts[2]{%
\renewcommand*\CaptionLabelFont{#1}%
\renewcommand*\CaptionTextFont{#2}%
}
% \end{macrocode}
% \end{macro}
%
% \subsection{Font changing}
%
% \changes{v2.0f}{1994/04/18}{\cs{@newfontswitch} and
% \cs{@renewfontswitch} have become \cs{DeclareOldFontCommand}}
%
% Here we supply the declarative font changing commands that were
% common in \LaTeX\ version 2.09 and earlier. These commands work
% in text mode \emph{and} in math mode. They are provided for
% compatibility, but one should start using the |\text...| and
% |\math...| commands instead. These commands are defined using
% |\DeclareOldFontCommand|, a command with three arguments: the user
% command to be defined; \LaTeX\ commands to execute in text mode
% and \LaTeX\ commands to execute in math mode.
%
% \changes{v1.0.7}{1993/12/12}{Distinguished between compatibility and
% `normal' mode for the font changing commands.}
% \changes{v1.0.8}{1993/12/18}{These are now defined in the kernel,
% so use \cs{@renewfontswitch}. Compatibility mode defines
% \cs{@renewfontswitch} to do nothing, so we don't need to check for
% compatibility mode any more.}
% \changes{v1.0.10}{1993/12/20}{Added \cs{normalfont} back in the
% definitions of \cs{rm} etc. as this should be the default
% behaviour}
% \begin{macro}{\rm}
% \changes{v1.0.6}{1993/12/08}{Macro added}
% \begin{macro}{\tt}
% \changes{v1.0.6}{1993/12/08}{Macro added}
% \begin{macro}{\sf}
% \changes{v1.0.6}{1993/12/08}{Macro added}
%
% The commands to change the family. When in compatibility mode we
% select the `default' font first, to get \LaTeX2.09 behviour.
% \begin{macrocode}
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\bf}
% \changes{v1.0.6}{1993/12/08}{Macro added}
% The command to change to the bold series. One should use
% |\mdseries| to explicitly switch back to medium series.
% \begin{macrocode}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\sl}
% \changes{v1.0.6}{1993/12/08}{Macro added}
% \begin{macro}{\it}
% \changes{v1.0.6}{1993/12/08}{Macro added}
% \begin{macro}{\sc}
% \changes{v1.0.6}{1993/12/08}{Macro added}
%
% And the commands to change the shape of the font. The slanted and
% small caps shapes are not available by default as math alphabets,
% so those changes do nothing in math mode. One should use
% |\upshape| to explicitly change back to the upright shape.
% \begin{macrocode}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\relax}
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\relax}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\cal}
% \changes{v1.0.7}{1993/12/12}{Macro added}
% \begin{macro}{\mit}
% \changes{v1.0.7}{1993/12/12}{Macro added}
%
% The commands |\cal| and |\mit| should only be used in math mode,
% outside math mode they have no effect. Currently the New Font
% Selection Scheme defines these commands to generate warning
% messages. Therefore we have to define them `by hand'.
% \changes{v2.0m}{1994/12/20}{Now define \cs{cal} and \cs{mit} using
% \cs{DeclareRobustCommand*}}
% \changes{v2.0t}{1996/04/01}{Repaired a couple of typos}
% \begin{macrocode}
\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
\DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\em}
% The definition of \verb*|\em| is changed here to have slanted
% instead of italic fonts.
% \changes{v2.0s}{1995/11/28}{Now redefine \cs*{em} instead of \cs{pem}}
% \begin{macrocode}
\DeclareRobustCommand*\em{%
\@nomath\em
\ifdim\fontdimen\@ne\font>\z@
\upshape
\else
\slshape
\fi}
% \end{macrocode}
% \end{macro}
%
% \section{Cross Referencing}
% \subsection{Table of Contents, etc.}
%
% A |\section| command writes a
% |\contentsline{section}{|\meta{title}|}{|\meta{page}|}| command
% on the \file{.toc} file, where \meta{title} contains the
% contents of the entry and \meta{page} is the page number. If
% sections are being numbered, then \meta{title} will be of the
% form |\numberline{|\meta{num}|}{|\meta{heading}|}| where
% \meta{num} is the number produced by |\thesection|. Other
% sectioning commands work similarly.
%
% A |\caption| command in a `figure' environment writes
%
% |\contentsline{figure}{\numberline{|\meta{num}|}{|%
% \meta{caption}|}}{|\meta{page}|}|
%
% on the .\file{lof} file, where \meta{num} is the number produced
% by |\thefigure| and \meta{caption} is the figure caption. It
% works similarly for a `table' environment.
%
% The command |\contentsline{|\meta{name}|}| expands to
% |\l@|\meta{name}. So, to specify the table of contents, we must
% define |\l@chapter|, |\l@section|, |\l@subsection|, ... ; to
% specify the list of figures, we must define |\l@figure|; and so
% on. Most of these can be defined with either the
% |\@dottedtocline| or the |\@regtocline| command, which work as
% follows.
%
% |\@dottedtocline{|\meta{level}|}{|\meta{indent}|}{|^^A
% \meta{numwidth}|}{|^^A
% \meta{title}|}{|\meta{page}|}|
%
% |\@regtocline{|\meta{level}|}{|\meta{title}|}{|\meta{page}|}|
%
% \begin{description}
% \item[\meta{level}] An entry is produced only if\meta{ level}
% $<=$ value of the \Lcount{tocdepth} counter. Note,
% |\chapter| is level 0, |\section| is level 1, etc.
% \item[\meta{indent}] The indentation from the outer left margin
% of the start of the contents line.
% \item[\meta{numwidth}] The width of a box in which the section
% number is to go, if \meta{title} includes a |\numberline|
% command.
% \end{description}
%
% \begin{macro}{\@pnumwidth}
% \begin{macro}{\@tocrmarg}
% \begin{macro}{\@dotsep}
% This command uses the following three parameters, which are set
% with a |\newcommand| (so em's can be used to make them depend upon
% the font).
% \begin{description}
% \item[\texttt{\bslash @pnumwidth}] The width of a box in which the
% page number is put.
% \changes{v2.0m}{1994/12/20}{Changed documentation from > or = to
% $\ge$}
% \item[\texttt{\bslash @tocrmarg}] The right margin for multiple
% line entries. One wants |\@tocrmarg| $\ge$ |\@pnumwidth|
% \item[\texttt{\bslash @dotsep}] Separation between dots, in mu
% units. Should be defined as a number like 2 or 1.7
% \end{description}
%
% \begin{macrocode}
\newcommand*\@pnumwidth{1.55em}
\newcommand*\@tocrmarg {2.55em}
\newcommand*\@dotsep{4.5}
%<artikel>\setcounter{tocdepth}{3}
%<!artikel>\setcounter{tocdepth}{2}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsubsection{Table of Contents}
%
% \begin{macro}{\tableofcontents}
% This macro is used to request that \LaTeX{} produces a table of
% contents. In the rapport and boek document classes the tables of
% contents, figures etc. are always set in single-column style.
%
% \changes{v1.0.7}{1993/12/09}{Moved the setting of
% \cs{@restonecolfalse}}
% \begin{macrocode}
\newcommand*\tableofcontents{%
%<*rapport|boek>
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
% \end{macrocode}
% The title is set using the |\chapter*| command, making sure that
% the running head --if one is required-- contains the right
% information.
% \changes{v2.1a}{2004/06/07}{Moved \cs{@mkboth} out of heading arg
% (\LaTeX{} pr/3285)}
% \begin{macrocode}
\chapter*{\contentsname}%
%</rapport|boek>
%<artikel> \section*{\contentsname}%
\@mkboth{\MakeUppercase{\contentsname}}%
{\MakeUppercase{\contentsname}}%
% \end{macrocode}
% The the actual table of contents is made by calling
% |\@starttoc{toc}|. After that we restore twocolumn mode if
% necessary.
% \begin{macrocode}
\@starttoc{toc}%
%<!artikel> \if@restonecol\twocolumn\fi
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@starttoc}
% The internal \LaTeXe macro |\@starttoc| needs to be adapted for
% the \file{artikel3} and \file{rapport3} document classes,in order
% to deal with a the fact that for these document classes the
% |\parskip| is normally non-zero. We don't want that in the table
% of contents.
% \begin{macrocode}
%<*type3>
\def\@starttoc#1{\begingroup
\makeatletter
\parskip\z@
\@input{\jobname.#1}%
\if@filesw
\expandafter\newwrite\csname tf@#1\endcsname
\immediate\openout \csname tf@#1\endcsname \jobname.#1\relax
\fi \global\@nobreakfalse \endgroup}
%</type3>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@regtocline}
% These document classes use a different format for the table of
% contents than the standard classes from which they were
% developped. In order to acheive this different format we defined
% the macro |\@regtocline|.
% \begin{macrocode}
\newcommand*\@regtocline[3]{%
\ifnum #1>\c@tocdepth
\else
\vskip\z@\@plus.2\p@
{\hangindent\z@ \@afterindenttrue \interlinepenalty\@M
\leftskip\unitindent
\rightskip\unitindent\@plus 1fil
\parfillskip\z@
\@tempdima\unitindent
%<type2> \advance\@tempdima by \othermargin
\parindent\z@
\leavevmode
\hbox{}\hskip -\leftskip\relax#2\nobreak
\hskip 1em \nobreak{\slshape #3}\par
}%
\fi}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\numberline}
% This internal macro is redefined for the \file{artikel2} document
% class.
% \begin{macrocode}
%<type2>\def\numberline#1{\hb@xt@\@tempdima{\hfil#1\hskip.3em}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\toc@font}
% The changed definition of |\@sect| that we use, selects a
% different font for the table of contents for the various header
% levels. It does this using |\toc@font|.
% \begin{macrocode}
\if@oldtoc
\newcommand*\toc@font[1]{\relax}
\else
\newcommand*\toc@font[1]{%
%<*artikel>
\ifcase#1\relax
%<type2> \Large\bfseries
\or\bfseries
\or\slshape
\or\rmfamily
%</artikel>
%<*rapport|boek>
\ifcase#1\relax
\bfseries
\or\slshape
\or\rmfamily
%</rapport|boek>
\fi}
\fi
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\toc@case}
% In the \file{rapport} and \file{boek} document classes, the
% entries for parts are typeset in capital letters in the new style
% of the table of contents. In the old style this isn't done. The
% macro |\toc@case| is used to switch this.
% \begin{macrocode}
\if@oldtoc
\newcommand*\toc@case{\relax}
\else
\newcommand*\toc@case{\MakeUppercase}
\fi
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\l@part}
% Each sectioning command needs an additional macro to format its
% entry in the table of contents, as described above. The macro for
% the entry for parts is defined in a special way.
%
% First we make sure that if a pagebreak should occur, it occurs
% \emph{before} this entry. Also a little whitespace is added and a
% group begun to keep changes local.
% \changes{v1.0.8}{1993/12/18}{Replaced -\cs{@secpenalty} by
% \cs{@secpenalty}. ASAJ.}
%
% First we have the definition from the standard classes.
% \changes{v2.0q}{1995/08/22}{Don't print a toc line when the tocdepth
% counter is less then -1; Added missing braces around argument to
% \cs{addpenalty}.}
% \begin{macrocode}
\if@oldtoc
\newcommand*\l@part[2]{%
\ifnum \c@tocdepth >-2\relax
%<artikel> \addpenalty\@secpenalty
%<!artikel> \addpenalty{-\@highpenalty}%
\addvspace{2.25em \@plus\p@}%
\begingroup
% \end{macrocode}
% The macro |\numberline| requires that the width of the box that
% holds the part number is stored in \LaTeX's scratch register
% |\@tempdima|. Therefore we put it there.
% \begin{macrocode}
\setlength\@tempdima{3em}%
% \end{macrocode}
% The we set |\parindent| to 0pt and use |\rightskip| to leave
% enough room for the pagenumbers. To prevent overfull box messages
% the |\parfillskip| is set to a negative value.
% \begin{macrocode}
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
% \end{macrocode}
% Now we can set the entry, in a large bold font. We make sure to
% leave vertical mode, set the part title and add the pagenumber,
% set flush right.
% \begin{macrocode}
{\leavevmode
\large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
% \end{macrocode}
% Prevent a pagebreak immediately after this entry, but use
% |\everypar| to reset the |\if@nobreak| switch. Finally we close
% the group.
% \changes{v2.0r}{1995/10/05}{Added missing percent}
% \begin{macrocode}
\nobreak
%<artikel> \if@compatibility
\global\@nobreaktrue
\everypar{\global\@nobreakfalse\everypar{}}%
%<artikel> \fi
\endgroup
\fi}
% \end{macrocode}
% Then we can introduce our new definition.
% \begin{macrocode}
\else
\newcommand*\l@part{%
\ifnum \c@tocdepth >-2\relax
%<artikel> \addpenalty\@secpenalty
%<!artikel> \addpenalty{-\@highpenalty}%
\addvspace{2.25em \@plus \p@}%
\@regtocline{0}%
\fi}
\fi
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\l@chapter}
% This macro formats the entries in the table of contents for
% chapters. It is very similar to |\l@part|
%
% First we make sure that if a pagebreak should occur, it occurs
% \emph{before} this entry. Also a little whitespace is added and a
% group begun to keep changes local.
%
% Again we first present the `standard' definition
% \changes{v2.0q}{1995/08/22}{Added missing braces around argument to
% \cs{addpenalty}.}
% \begin{macrocode}
%<*rapport|boek>
\if@oldtoc
\newcommand*\l@chapter[2]{%
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
% \end{macrocode}
%
% The macro |\numberline| requires that the width of the box that
% holds the part number is stored in \LaTeX's scratch register
% |\@tempdima|. Therefore we put it there. We begin a group, and
% change some of the paragraph parameters.
% \begin{macrocode}
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
% \end{macrocode}
% Then we leave vertical mode and switch to a bold font.
% \begin{macrocode}
\leavevmode \bfseries
% \end{macrocode}
% Because we do not use |\numberline| here, we have do some fine
% tuning `by hand', before we can set the entry. We discourage but
% not disallow a pagebreak immediately after a chapter entry.
% \begin{macrocode}
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup}
% \end{macrocode}
% Then we present our new definition.
% \begin{macrocode}
\else
\newcommand*\l@chapter{\@regtocline{0}}
\fi
%</rapport|boek>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\l@section}
% In the artikel document classes the entry in the table of contents
% for sections looks much like the chapter entries for the rapport
% and boek document classes.
%
% First we make sure that if a pagebreak should occur, it occurs
% \emph{before} this entry. Also a little whitespace is added and a
% group begun to keep changes local.
% \changes{v1.0.8}{1993/12/18}{Replaced -\cs{@secpenalty} by
% \cs{@secpenalty}. ASAJ.}
% \begin{macrocode}
%<*artikel>
\if@oldtoc
\newcommand*\l@section[2]{%
\addpenalty\@secpenalty
\addvspace{1.0em \@plus\p@}%
% \end{macrocode}
%
% The macro |\numberline| requires that the width of the box that
% holds the part number is stored in \LaTeX's scratch register
% |\@tempdima|. Therefore we put it there. We begin a group, and
% change some of the paragraph paramters.
% \begin{macrocode}
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
% \end{macrocode}
% Then we leave vertical mode and switch to a bold font.
% \begin{macrocode}
\leavevmode \bfseries
% \end{macrocode}
% Because we do not use |\numberline| here, we have do some fine
% tuning `by hand', before we can set the entry. We discourage but
% not disallow a pagebreak immediately after a chapter entry.
% \begin{macrocode}
\advance\leftskip\@tempdima
\hskip -\leftskip
#1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
\endgroup}
% \end{macrocode}
% The new definition:
% \begin{macrocode}
\else
\newcommand*\l@section{\@regtocline{1}}
\fi
%</artikel>
% \end{macrocode}
% In the rapport and boek document classes the definition for
% |\l@section| is much simpler.
% \changes{v2.0g}{1994/06/01}{Added a missing backslash}
% \begin{macrocode}
%<*rapport|boek>
\if@oldtoc
\newcommand*\l@section {\@dottedtocline{1}{1.5em}{2.3em}}
\else
\newcommand*\l@section {\@regtocline{1}}
\fi
%</rapport|boek>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\l@subsection}
% \begin{macro}{\l@subsubsection}
% \begin{macro}{\l@paragraph}
% \begin{macro}{\l@subparagraph}
% All lower level entries are defined using the macro
% |\@dottedtocline| or |\@regtocline| (see above).
% \begin{macrocode}
\if@oldtoc
%<*artikel>
\newcommand*\l@subsection {\@dottedtocline{2}{1.5em}{2.3em}}
\newcommand*\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
\newcommand*\l@paragraph {\@dottedtocline{4}{7.0em}{4.1em}}
\newcommand*\l@subparagraph {\@dottedtocline{5}{10em}{5em}}
%</artikel>
%<*rapport|boek>
\newcommand*\l@subsection {\@dottedtocline{2}{3.8em}{3.2em}}
\newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
\newcommand*\l@paragraph {\@dottedtocline{4}{10em}{5em}}
\newcommand*\l@subparagraph {\@dottedtocline{5}{12em}{6em}}
%</rapport|boek>
\else
\newcommand*\l@subsection {\@regtocline{2}}
\newcommand*\l@subsubsection{\@regtocline{3}}
\newcommand*\l@paragraph {\@regtocline{4}}
\newcommand*\l@subparagraph {\@regtocline{5}}
\fi
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsubsection{List of figures}
%
% \begin{macro}{\listoffigures}
% This macro is used to request that \LaTeX{} produces a list of
% figures. It is very similar to |\tableofcontents|.
%
% \changes{v1.0.7}{1993/12/09}{Moved the setting of
% \cs{@restonecolfalse}}
% \changes{v2.0z}{2004/02/20}{Moved \cs{@mkboth} out of heading arg
% (\LaTeX{} pr/3285)}
% \changes{v2.1a}{2004/06/07}{Added a missing closing brace}
% \begin{macrocode}
\newcommand*\listoffigures{%
%<*rapport|boek>
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\listfigurename}%
%</rapport|boek>
%<artikel> \section*{\listfigurename}%
\@mkboth{\MakeUppercase{\listfigurename}}%
{\MakeUppercase{\listfigurename}}%
\@starttoc{lof}%
%<rapport|boek> \if@restonecol\twocolumn\fi
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\l@figure}
% This macro produces an entry in the list of figures.
% \begin{macrocode}
\if@oldtoc
\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
\else
\newcommand*\l@figure{\@regtocline{1}}
\fi
% \end{macrocode}
% \end{macro}
%
% \subsubsection{List of tables}
%
% \begin{macro}{\listoftables}
% This macro is used to request that \LaTeX{} produces a list of
% tables. It is very similar to |\tableofcontents|.
%
% \changes{v1.0.7}{1993/12/09}{Moved the setting of \cs{@restonecolfalse}}
% \changes{v2.0z}{2004/02/20}{Moved \cs{@mkboth} out of heading arg
% (\LaTeX{} pr/3285)}
% \changes{v2.1a}{2004/06/07}{Added a missing closing brace}
% \begin{macrocode}
\newcommand*\listoftables{%
%<*rapport|boek>
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\listtablename}%
%</rapport|boek>
%<artikel> \section*{\listtablename}%
\@mkboth{\MakeUppercase{\listtablename}}%
{\MakeUppercase{\listtablename}}%
\@starttoc{lot}%
%<rapport|boek> \if@restonecol\twocolumn\fi
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\l@table}
% This macro produces an entry in the list of tables.
% \begin{macrocode}
\let\l@table\l@figure
% \end{macrocode}
% \end{macro}
%
% \subsection{Bibliography}
%
% \begin{macro}{\bibindent}
% The ``open'' bibliography format uses an indentation of
% |\bibindent|.
% \begin{macrocode}
\newdimen\bibindent
\setlength\bibindent{1.5em}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\newblock}
% This is a dummy definition for this macro which is used in the
% \textsf{thebibliography} environment.
% \begin{macrocode}
\newcommand*\newblock{}
% \end{macrocode}
% \end{macro}
%
% \begin{environment}{thebibliography}
% The `thebibliography' environment executes the following
% commands:
%
% |\renewcommand\newblock{\hskip .11em \@plus .33em \@minus .07em}|
% -- Defines the ``closed'' format, where the blocks (major units
% of information) of an entry run together.
%
% |\sloppy| -- Used because it's rather hard to do line breaks in
% bibliographies,
%
% |\sfcode`\.=1000\relax| --
% Causes a `.' (period) not to produce an end-of-sentence space.
%
% The implementation of this environment is based on the generic
% list environment. It uses the \Lcount{enumiv} counter internally
% to generate the labels of the list.
%
% When an empty `thebibliography' environment is found, a warning
% is issued.
%
% \changes{v1.0.9}{1993/12/19}{Corrected definition of thebibliography
% for artikel}
% \changes{v2.0r}{1995/10/05}{Removed unneeded braces}
% \changes{v2.0z}{2004/02/20}{Moved \cs{@mkboth} out of heading arg
% (\LaTeX{} pr/3285)}
% \begin{macrocode}
\newenvironment{thebibliography}[1]
%<*artikel>
{\section*{\refname}%
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
%</artikel>
%<*!artikel>
{\chapter*{\bibname}%
\@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
%</!artikel>
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand*\theenumiv{\@arabic\c@enumiv}}%
\sloppy\clubpenalty4000\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
% \end{macrocode}
% \end{environment}
%
% \begin{macro}{\newblock}
% The default definition for |\newblock| is to produce a small space.
% \begin{macrocode}
% \changes{v2.0t}{1996/04/01}{use \cs{renewcommand} instead of
% \cs{newcommand}}
\renewcommand\newblock{\hskip.11em\@plus.33em\@minus.07em}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@openbib@code}
% The default definition for |\@openbib@code| is to do nothing.
% It will be changed by the \Lopt{openbib} option.
% \changes{v2.0r}{1995/10/05}{Macro added}
% \begin{macrocode}
\let\@openbib@code\@empty
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@biblabel}
% The label for a |\bibitem[...]| command is produced by this
% macro. The default from \file{latex.dtx} is used.
% \begin{macrocode}
% \renewcommand*\@biblabel[1]{[#1]\hfill}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@cite}
% The output of the |\cite| command is produced by this macro. The
% default from \file{latex.dtx} is used.
% \begin{macrocode}
% \renewcommand*\@cite[1]{[#1]}
% \end{macrocode}
% \end{macro}
%
% \subsection{The index}
%
% \begin{environment}{theindex}
% The environment `theindex' can be used for indices. It makes an
% index with two columns, with each entry a seperate paragraph. At
% the user level the commands |\item|, |\subitem| and |\subsubitem|
% are used to produce index entries of various levels. When a new
% letter of the alphabet is encountered an amount of |\indexspace|
% white space can be added.
%
%
% \changes{v1.0.7}{1993/12/09}{Moved the setting of
% \cs{@restonecoltrue}}
% \begin{macrocode}
\newenvironment{theindex}{%
\if@twocolumn
\@restonecolfalse
\else
\@restonecoltrue
\fi
%<artikel> \twocolumn[\section*{\indexname}]%
%<!artikel> \twocolumn[\@makeschapterhead{\indexname}]%
\@mkboth{\MakeUppercase{\indexname}}{\MakeUppercase{\indexname}}%
\thispagestyle{plain}\parindent\z@
% \end{macrocode}
% Parameter changes to |\columnseprule| and |\columnsep| have to be
% done after |\twocolumn| has acted. Otherwise they can affect the
% last page before the index.
% \changes{v2.0z}{2004/02/20}{Moved setting of \cs{columnsep} and
% \cs{columnseprule} later to avoid affecting the wrong page (cf
% \LaTeX{} pr/3616)}
% \begin{macrocode}
\columnseprule \z@
\columnsep 35\p@
\parskip\z@ \@plus .3\p@\relax
\let\item\@idxitem
}{%
% \end{macrocode}
% When the document continues after the index and it was a one
% column document we have to switch back to one column after the
% index.
% \begin{macrocode}
\if@restonecol\onecolumn\else\clearpage\fi}
% \end{macrocode}
% \end{environment}
%
% \begin{macro}{\@idxitem}
% \begin{macro}{\subitem}
% \begin{macro}{\subsubitem}
% Thsee macros are used to format the entries in the index.
% \begin{macrocode}
\newcommand*\@idxitem {\par\hangindent 40\p@}
\newcommand*\subitem {\@idxitem\hspace*{20\p@}}
\newcommand*\subsubitem{\@idxitem\hspace*{30\p@}}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\indexspace}
% The amount of white space that is inserted between `letter
% blocks' in the index.
% \begin{macrocode}
\newcommand*\indexspace{\par\vskip10\p@\@plus5\p@\@minus3\p@\relax}
% \end{macrocode}
% \end{macro}
%
% \subsection{Footnotes}
%
% \begin{macro}{\footnoterule}
% Usually, footnotes are separated from the main body of the text
% by a small rule. This rule is drawn by the macro |\footnoterule|.
% The standard \LaTeX\ document classes make sure that the rule
% takes no vertical space (see \file{plain.tex}) and compensate for
% the natural heigth of the rule of 0.4pt by adding the right
% amount of vertical skip. For the \file{artikel2} document class
% this is still true, but for the others the amount of whitespace
% between the last line of the text and the start of the footnotes
% is increased by giving |\footnoterule| a positive
% height\footnote{This should perhaps have been done by increasing
% the value of \cs{skip}\cs{footins}, but changing that now would
% mean changing the formatting of existing
% documents. (\small\texttt{JLB, 08/09/1997})}.
%
% To prevent the rule from colliding with the footnote we first add
% a little negative vertical skip, then we put the rule and add
% some positive vertical skip.
% \begin{macrocode}
\renewcommand*\footnoterule{%
\kern-3\p@
%<*type1|type3>
\kern.5\baselineskip
\hrule\@width\unitindent
\kern.4\baselineskip
%</type1|type3>
%<*type2>
\hrule\@width 3\unitindent
\kern 2.6\p@
%</type2>
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\c@footnote}
% Footnotes are numbered within chapters in the rapport and boek
% document styles.
% \begin{macrocode}
% \newcounter{footnote}
%<!artikel>\@addtoreset{footnote}{chapter}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@makefntext}
% The footnote mechanism of \LaTeX{} calls the macro |\@makefntext|
% to produce the actual footnote. The macro gets the text of the
% footnote as its argument and should use |\@thefnmark| as the mark
% of the footnote. The macro |\@makefntext|is called when
% effectively inside a |\parbox| of width |\columnwidth| (i.e.,
% with |\hsize| = |\columnwidth|).
%
% An example of what can be achieved is given by the following piece
% of \TeX\ code.
% \changes{v2.0c}{1994/02/21}{Adapted example to artikel style.}
% \begin{verbatim}
% \long\def\@xmakefntext#1#2{%
% %<!type3> \parindent=.5\unitindent
% %<type3> \parindent=\z@\parskip=.5\baselineskip
% \def\labelitemi{--}\@revlabeltrue
% {\setbox0=\hbox {#1\hskip.5em plus 1fil}%
% \dimen0=2\wd0
% \ifdim\dimen0>\unitindent
% \global\unitindent=\dimen0
% \@indentset
% \fi}%
% \@setpar{\@@par
% \@tempdima \hsize
% \advance\@tempdima-.5\unitindent
% \parshape \@ne .5\unitindent \@tempdima}%
% \par
% \noindent\llap{\hb@xt@.5\unitindent{#1\hfil}}#2}
% \end{verbatim}
% The effect of this definition is that all lines of the footnote
% are indented by 10pt, while the first line of a new paragraph is
% indented by 1em. To change these dimensions, just substitute the
% desired value for `10pt' (in both places) or `1em'. The mark is
% flushright against the footnote.
%
% In these document classes we use a simpler macro, in which the
% footnote text is set like an ordinary text paragraph, with no
% indentation except on the first line of the footnote. Thus, all
% the macro must do is set |\parindent| to the appropriate value
% for succeeding paragraphs and put the proper indentation before
% the mark. We change the label of itemized lists inside footnotes
% and need to check that the |\unitindent| is large enough for our
% purposes.
%
% For most of the document classes produced from this file we need
% a slightly modified |\@makefntext| on the title page, so we
% introduce an extra macro, |\@xmakefntext|.
% \changes{v2.0l}{1994/07/11}{Moved `.' from within \cs{@xmakefntext}
% to \cs{@makefntext}}
% \changes{v2.0t}{1996/04/01}{Repaired a typo}
% \changes{v2.0u}{1996/09/23}{Changed \texttt{--} to \cs{textendash}
% following \file{classes.dtx}}
% \begin{macrocode}
%<*type1|type3>
\newcommand*\@makefntext{\@xmakefntext{\normalfont\@thefnmark.}}
\newcommand*\@xmakefntext[1]{%
\parindent\z@
\def\labelitemi{\textendash}\@revlabeltrue
{\setbox0\hbox {#1\hskip.5em plus 1fil}
\dimen0=2\wd0\relax
\ifdim\dimen0>\unitindent
\global\unitindent\dimen0\relax
\@indentset
\fi}
\leavevmode\hb@xt@.5\unitindent{#1\hfil}}
%</type1|type3>
% \end{macrocode}
% For the \file{artikel2} document class we have a simpler
% definition of |\@makefntext|.
% \changes{v2.0m}{1994/12/30}{Added missing parameter}
% \changes{v2.0w}{1997/04/01}{Mixed \cs{def} and \cs{newcommand} syntax}
% \begin{macrocode}
%<*type2>
\newcommand\@makefntext[1]{%
\parindent\othermargin
\noindent\hb@xt@\othermargin{\normalfont\@thefnmark\hfil\relax}#1}
%</type2>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@makefnmark}
% The footnote markers that are printed in the text to point to the
% footnotes should be produced by the macro |\@makefnmark|. We use
% the default definition for it.
% \begin{macrocode}
%\renewcommand\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}}
% \end{macrocode}
% \end{macro}
%
% \section{Initialization}
%
% \subsection{Words}
%
% \begin{macro}{\contentsname}
% \begin{macro}{\listfigurename}
% \begin{macro}{\listtablename}
% This document class is for documents prepared in the English language.
% To prepare a version for another language, various English words must
% be replaced. All the English words that require replacement are
% defined below in command names.
% \begin{macrocode}
\newcommand*\contentsname{Contents}
\newcommand*\listfigurename{List of Figures}
\newcommand*\listtablename{List of Tables}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\refname}
% \begin{macro}{\bibname}
% \begin{macro}{\indexname}
% \begin{macrocode}
%<artikel>\newcommand*\refname{References}
%<rapport|boek>\newcommand*\bibname{Bibliography}
\newcommand*\indexname{Index}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\figurename}
% \begin{macro}{\tablename}
% \begin{macrocode}
\newcommand*\figurename{Figure}
\newcommand*\tablename{Table}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\partname}
% \begin{macro}{\chaptername}
% \begin{macro}{\appendixname}
% \begin{macro}{\abstractname}
% \begin{macro}{\seename}
% \begin{macro}{\andname}
% \begin{macrocode}
\newcommand*\partname{Part}
%<rapport|boek>\newcommand*\chaptername{Chapter}
\newcommand*\appendixname{Appendix}
%<!boek>\newcommand*\abstractname{Abstract}
\newcommand*\seename{see}
\newcommand*\andname{and}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsection{Date}
%
% \begin{macro}{\today}
% This macro uses the \TeX\ primitives |\month|, |\day| and |\year|
% to provide the date of the \LaTeX-run.
% \begin{macrocode}
\newcommand*\today{}
% \end{macrocode}
% To save space we define |\today| in a way that it is expanded
% when the class file is read in. This means that low-level changes
% to the internal \TeX{} registers that are happening later on
% (e.g.\ if some packages goes |\month=5|) are not reflected in
% |\today|.
% \changes{v2.0r}{1995/10/05}{use \cs{edef} to save a lot of space}
% \changes{v2.0z}{2004/02/20}{use \cs{def} again, latex/2620}
% \begin{macrocode}
\def\today{\ifcase\month\or
January\or February\or March\or April\or May\or June\or
July\or August\or September\or October\or November\or December\fi
\space\number\day, \number\year}
% \end{macrocode}
% \end{macro}
%
% \subsection{Two column mode}
%
% \begin{macro}{\columnsep}
% This gives the distance between two columns in two column mode.
% \begin{macrocode}
\setlength\columnsep{10\p@}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\columnseprule}
% This gives the width of the rule between two columns in two
% column mode. We have no visible rule.
% \begin{macrocode}
\setlength\columnseprule{0\p@}
% \end{macrocode}
% \end{macro}
%
% \subsection{The page style}
% We have \pstyle{plain} pages in the document classes
% \file{artikel} and \file{rapport} unless the user specified
% otherwise. In the \file{boek} document class we use the page
% style \pstyle{headings} by default. We use arabic pagenumbers.
% \begin{macrocode}
%<!boek>\pagestyle{plain}
%<boek>\pagestyle{headings}
\pagenumbering{arabic} % Arabic page numbers
% \end{macrocode}
%
% \subsection{Single or double sided printing}
%
% \changes{v2.0m}{1994/12/20}{removed typo}
% When the \Lopt{twoside} option wasn't specified, we don't try to
% make each page as long as all the others.
% \begin{macrocode}
%<*artikel>
\if@twoside
\else
\raggedbottom
\fi
%</artikel>
% \end{macrocode}
% When the \Lopt{twocolumn} option was specified we call
% |\twocolumn| to activate this mode. We try to make each column as
% long as the others, but call |sloppy| to make our life easier.
% \begin{macrocode}
\if@twocolumn
\twocolumn
\sloppy
\flushbottom
% \end{macrocode}
% Normally we call |\onecolumn| to initiate typesetting in one
% column.
% \begin{macrocode}
\else
\onecolumn
\fi
% \end{macrocode}
%
% \begin{macro}{\frenchspacing}
% Controls the amount of space after a punctuation mark.
% \begin{macrocode}
\frenchspacing
%</artikel|rapport|boek>
% \end{macrocode}
% \end{macro}
%
% \Finale
%
\endinput
%
|