1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>LaTex Help</title>
<style type="text/css"><!--
h3.fn,span.fn {font-family:sans-serif; margin-left: 1cm; text-indent: -1cm; }
a:link {font-family:sans-serif; color: #004faf; text-decoration: none }
a:visited {font-family:sans-serif; color: #004faf; text-decoration: none }
body {font-family:sans-serif; background: white; color: black; }
P { font-family:sans-serif; }
OL { font-family:sans-serif; }
UL { font-family:sans-serif; }
LI { font-family:sans-serif; }
TD { font-family:sans-serif; }
H1 { font-family:sans-serif; }
H2 { font-family:sans-serif; color: #993300; }
CODE { font-family:monospace; }
--></style>
</head>
<body bgcolor="#ffffff">
<h1 align=center><A NAME="top">Texmaker : LaTeX Reference</a></h1><br>
<h2 align=center>Alphabetical Index </h2>
<p align="center" ><b>
<A HREF="#index0">#</A>
<A HREF="#indexa">A</A>
<A HREF="#indexb">B</A>
<A HREF="#indexc">C</A>
<A HREF="#indexd">D</A>
<A HREF="#indexe">E</A>
<A HREF="#indexf">F</A>
<A HREF="#indexh">H</A>
<A HREF="#indexi">I</A>
<A HREF="#indexk">K</A>
<A HREF="#indexl">L</A>
<A HREF="#indexm">M</A>
<A HREF="#indexn">N</A>
<A HREF="#indexo">O</A>
<A HREF="#indexp">P</A>
<A HREF="#indexq">Q</A>
<A HREF="#indexr">R</A>
<A HREF="#indexs">S</A>
<A HREF="#indext">T</A>
<A HREF="#indexu">U</A>
<A HREF="#indexv">V</A>
<A HREF="#indexw">W</A>
</p>
<p><hr></p>
<!-- INDEX BY SUBJECT -->
<h2 align="center">Index by subject</h2>
<p><b><A HREF="#SEC3">Counters</A></b> Internal counters used by LaTeX.</p>
<UL>
<LI><A NAME="TOC4" HREF="#SEC4">\addtocounter</A>
<LI><A NAME="TOC5" HREF="#SEC5">\alph</A>
<LI><A NAME="TOC6" HREF="#SEC6">\arabic</A>
<LI><A NAME="TOC7" HREF="#SEC7">\fnsymbol</A>
<LI><A NAME="TOC8" HREF="#SEC8">\newcounter</A>
<LI><A NAME="TOC9" HREF="#SEC9">\refstepcounter</A>
<LI><A NAME="TOC10" HREF="#SEC10">\roman</A>
<LI><A NAME="TOC11" HREF="#SEC11">\stepcounter</A>
<LI><A NAME="TOC12" HREF="#SEC12">\setcounter</A>
<LI><A NAME="TOC13" HREF="#SEC13">\usecounter</A>
<LI><A NAME="TOC14" HREF="#SEC14">\value</A>
</UL>
<p><b><A HREF="#SEC15">Cross References</A></b> Automatic referencing.</p>
<UL>
<LI><A NAME="TOC16" HREF="#SEC16">\label</A>
<LI><A NAME="TOC17" HREF="#SEC17">\pageref</A>
<LI><A NAME="TOC18" HREF="#SEC18">\ref</A>
</UL>
<p><b><A HREF="#SEC19">Definitions</A></b> Define your own commands etc.</p>
<UL>
<LI><A NAME="TOC20" HREF="#SEC20">\newcommand</A>
<LI><A NAME="TOC21" HREF="#SEC21">\newenvironment</A>
<LI><A NAME="TOC22" HREF="#SEC22">\newtheorem</A>
<LI><A NAME="TOC23" HREF="#SEC23">\newfont</A>
</UL>
<p><b><A HREF="#SEC24">Document Classes</A></b> Some of the various classes available.</p>
<p><b><A HREF="#SEC30">Environments</A></b> Such as enumerate & itemize.</p>
<UL>
<UL>
<LI><A NAME="TOC31" HREF="#SEC31">array</A>
<LI><A NAME="TOC32" HREF="#SEC32">center</A>
<UL>
<LI><A NAME="TOC33" HREF="#SEC33">\centering</A>
</UL>
<LI><A NAME="TOC34" HREF="#SEC34">description</A>
<LI><A NAME="TOC35" HREF="#SEC35">enumerate</A>
<LI><A NAME="TOC36" HREF="#SEC36">eqnarray</A>
<LI><A NAME="TOC37" HREF="#SEC37">equation</A>
<LI><A NAME="TOC38" HREF="#SEC38">figure</A>
<LI><A NAME="TOC39" HREF="#SEC39">flushleft</A>
<UL>
<LI><A NAME="TOC40" HREF="#SEC40">\raggedright</A>
</UL>
<LI><A NAME="TOC41" HREF="#SEC41">flushright</A>
<UL>
<LI><A NAME="TOC42" HREF="#SEC42">\raggedleft</A>
</UL>
<LI><A NAME="TOC43" HREF="#SEC43">itemize</A>
<LI><A NAME="TOC44" HREF="#SEC44">letter</A>
<LI><A NAME="TOC45" HREF="#SEC45">list</A>
<LI><A NAME="TOC46" HREF="#SEC46">minipage</A>
<LI><A NAME="TOC47" HREF="#SEC47">picture</A>
<UL>
<LI><A NAME="TOC48" HREF="#SEC48">\circle</A>
<LI><A NAME="TOC49" HREF="#SEC49">\dashbox</A>
<LI><A NAME="TOC50" HREF="#SEC50">\frame</A>
<LI><A NAME="TOC51" HREF="#SEC51">\framebox</A>
<LI><A NAME="TOC52" HREF="#SEC52">\line</A>
<LI><A NAME="TOC53" HREF="#SEC53">\linethickness</A>
<LI><A NAME="TOC54" HREF="#SEC54">\makebox</A>
<LI><A NAME="TOC55" HREF="#SEC55">\multiput</A>
<LI><A NAME="TOC56" HREF="#SEC56">\oval</A>
<LI><A NAME="TOC57" HREF="#SEC57">\put</A>
<LI><A NAME="TOC58" HREF="#SEC58">\shortstack</A>
<LI><A NAME="TOC59" HREF="#SEC59">\vector</A>
</UL>
<LI><A NAME="TOC60" HREF="#SEC60">quotation</A>
<LI><A NAME="TOC61" HREF="#SEC61">quote</A>
<LI><A NAME="TOC62" HREF="#SEC62">tabbing</A>
<LI><A NAME="TOC63" HREF="#SEC63">table</A>
<LI><A NAME="TOC64" HREF="#SEC64">tabular</A>
<UL>
<LI><A NAME="TOC65" HREF="#SEC65">\cline</A>
<LI><A NAME="TOC66" HREF="#SEC66">\hline</A>
<LI><A NAME="TOC67" HREF="#SEC67">\multicolumn</A>
<LI><A NAME="TOC68" HREF="#SEC68">\vline</A>
</UL>
<LI><A NAME="TOC69" HREF="#SEC69">thebibliography</A>
<UL>
<LI><A NAME="TOC70" HREF="#SEC70">\bibitem</A>
<LI><A NAME="TOC71" HREF="#SEC71">\cite</A>
<LI><A NAME="TOC72" HREF="#SEC72">\nocite</A>
<LI><A NAME="TOC73" HREF="#SEC73">Using BibTeX</A>
</UL>
<LI><A NAME="TOC74" HREF="#SEC74">theorem</A>
<LI><A NAME="TOC75" HREF="#SEC75">titlepage</A>
<LI><A NAME="TOC76" HREF="#SEC76">verbatim</A>
<UL>
<LI><A NAME="TOC77" HREF="#SEC77">\verb</A>
</UL>
<LI><A NAME="TOC78" HREF="#SEC78">verse</A>
</UL>
</UL>
<p><b><A HREF="#SEC79">Footnotes</A></b> How to produce footnotes.</p>
<UL>
<LI><A NAME="TOC80" HREF="#SEC80">\footnote</A>
<LI><A NAME="TOC81" HREF="#SEC81">\footnotemark</A>
<LI><A NAME="TOC82" HREF="#SEC82">\footnotetext</A>
</UL>
<p><b><A HREF="#SEC25">Layout</A></b> Controlling the page layout.</p>
<UL>
<LI><A NAME="TOC26" HREF="#SEC26">\flushbottom</A>
<LI><A NAME="TOC27" HREF="#SEC27">\onecolumn</A>
<LI><A NAME="TOC28" HREF="#SEC28">\raggedbottom</A>
<LI><A NAME="TOC29" HREF="#SEC29">\twocolumn</A>
</UL>
<p><b><A HREF="#SEC83">Lengths</A></b> The length commands.</p>
<UL>
<LI><A NAME="TOC84" HREF="#SEC84">\newlength</A>
<LI><A NAME="TOC85" HREF="#SEC85">\setlength</A>
<LI><A NAME="TOC86" HREF="#SEC86">\addtolength</A>
<LI><A NAME="TOC87" HREF="#SEC87">\settodepth</A>
<LI><A NAME="TOC88" HREF="#SEC88">\settoheight</A>
<LI><A NAME="TOC89" HREF="#SEC89">\settowidth</A>
<LI><A NAME="TOC90" HREF="#SEC90">Predefined lengths</A>
</UL>
<p><b><A HREF="#SEC91">Letters</A></b> The letter class.</p>
<UL>
<LI><A NAME="TOC92" HREF="#SEC92">\address</A>
<LI><A NAME="TOC93" HREF="#SEC93">\cc</A>
<LI><A NAME="TOC94" HREF="#SEC94">\closing</A>
<LI><A NAME="TOC95" HREF="#SEC95">\encl</A>
<LI><A NAME="TOC96" HREF="#SEC96">\location</A>
<LI><A NAME="TOC97" HREF="#SEC97">\makelabels</A>
<LI><A NAME="TOC98" HREF="#SEC98">\name</A>
<LI><A NAME="TOC99" HREF="#SEC99">\opening</A>
<LI><A NAME="TOC100" HREF="#SEC100">\ps</A>
<LI><A NAME="TOC101" HREF="#SEC101">\signature</A>
<LI><A NAME="TOC102" HREF="#SEC102">\startbreaks</A>
<LI><A NAME="TOC103" HREF="#SEC103">\stopbreaks</A>
<LI><A NAME="TOC104" HREF="#SEC104">\telephone</A>
</UL>
<p><b><A HREF="#SEC105">Line & Page Breaking</A></b> How to insert pagebreaks etc.</p>
<UL>
<LI><A NAME="TOC106" HREF="#SEC106">\\</A>
<LI><A NAME="TOC107" HREF="#SEC107">\-</A>
<LI><A NAME="TOC108" HREF="#SEC108">\cleardoublepage</A>
<LI><A NAME="TOC109" HREF="#SEC109">\clearpage</A>
<LI><A NAME="TOC110" HREF="#SEC110">\enlargethispage</A>
<LI><A NAME="TOC111" HREF="#SEC111">\fussy</A>
<LI><A NAME="TOC112" HREF="#SEC112">\hyphenation</A>
<LI><A NAME="TOC113" HREF="#SEC113">\linebreak</A>
<LI><A NAME="TOC114" HREF="#SEC114">\newline</A>
<LI><A NAME="TOC115" HREF="#SEC115">\newpage</A>
<LI><A NAME="TOC116" HREF="#SEC116">\nolinebreak</A>
<LI><A NAME="TOC117" HREF="#SEC117">\nopagebreak</A>
<LI><A NAME="TOC118" HREF="#SEC118">\pagebreak</A>
<LI><A NAME="TOC119" HREF="#SEC119">\sloppy</A>
</UL>
<p><b><A HREF="#SEC120">Making Paragraphs</A></b> Paragraph commands.</p>
<UL>
<LI><A NAME="TOC121" HREF="#SEC121">\indent</A>
<LI><A NAME="TOC122" HREF="#SEC122">\noindent</A>
<LI><A NAME="TOC123" HREF="#SEC123">\par</A>
</UL>
<p><b><A HREF="#SEC124">Margin Notes</A></b> Putting remarks in the margin.</p>
<p><b><A HREF="#SEC125">Math Formulae</A></b> How to create mathematical formulae.</p>
<UL>
<LI><A NAME="TOC126" HREF="#SEC126">Subscripts & Superscripts</A>
<LI><A NAME="TOC127" HREF="#SEC127">Math Symbols</A>
<LI><A NAME="TOC128" HREF="#SEC128">Spacing in Math Mode</A>
<LI><A NAME="TOC129" HREF="#SEC129">Math Miscellany</A>
</UL>
<p><b><A HREF="#SEC130">Modes</A></b> Paragraph, Math or LR modes.</p>
<p><b><A HREF="#SEC131">Page Styles</A></b> Various styles of page layout.</p>
<UL>
<LI><A NAME="TOC132" HREF="#SEC132">\maketitle</A>
<LI><A NAME="TOC133" HREF="#SEC133">\author</A>
<LI><A NAME="TOC134" HREF="#SEC134">\date</A>
<LI><A NAME="TOC135" HREF="#SEC135">\thanks</A>
<LI><A NAME="TOC136" HREF="#SEC136">\title</A>
<LI><A NAME="TOC137" HREF="#SEC137">\pagenumbering</A>
<LI><A NAME="TOC138" HREF="#SEC138">\pagestyle</A>
<LI><A NAME="TOC139" HREF="#SEC139">\markboth</A>
<LI><A NAME="TOC140" HREF="#SEC140">\markright</A>
<LI><A NAME="TOC141" HREF="#SEC141">\thispagestyle</A>
</UL>
<p><b><A HREF="#SEC142">Sectioning</A></b> How to section properly.</p>
<p><b><A HREF="#SEC143">Spaces & Boxes</A></b> All the associated commands.</p>
<UL>
<LI><A NAME="TOC144" HREF="#SEC144">\dotfill</A>
<LI><A NAME="TOC145" HREF="#SEC145">\hfill</A>
<LI><A NAME="TOC146" HREF="#SEC146">\hrulefill</A>
<LI><A NAME="TOC147" HREF="#SEC147">\hspace</A>
<LI><A NAME="TOC148" HREF="#SEC148">\addvspace</A>
<LI><A NAME="TOC149" HREF="#SEC149">\bigskip</A>
<LI><A NAME="TOC150" HREF="#SEC150">\medskip</A>
<LI><A NAME="TOC151" HREF="#SEC151">\smallskip</A>
<LI><A NAME="TOC152" HREF="#SEC152">\vfill</A>
<LI><A NAME="TOC153" HREF="#SEC153">\vspace</A>
<LI><A NAME="TOC154" HREF="#SEC154">\fbox</A>
<LI><A NAME="TOC155" HREF="#SEC155">\framebox</A>
<LI><A NAME="TOC156" HREF="#SEC156">lrbox</A>
<LI><A NAME="TOC157" HREF="#SEC157">\makebox</A>
<LI><A NAME="TOC158" HREF="#SEC158">\mbox</A>
<LI><A NAME="TOC159" HREF="#SEC159">\newsavebox</A>
<LI><A NAME="TOC160" HREF="#SEC160">\parbox</A>
<LI><A NAME="TOC161" HREF="#SEC161">\raisebox</A>
<LI><A NAME="TOC162" HREF="#SEC162">\rule</A>
<LI><A NAME="TOC163" HREF="#SEC163">\savebox</A>
<LI><A NAME="TOC164" HREF="#SEC164">\sbox</A>
<LI><A NAME="TOC165" HREF="#SEC165">\usebox</A>
</UL>
<p><b><A HREF="#SEC166">Special Characters</A></b> Special reserved characters.</p>
<p><b><A HREF="#SEC167">Splitting the Input</A></b> Dealing with big files by splitting.</p>
<UL>
<LI><A NAME="TOC168" HREF="#SEC168">\include</A>
<LI><A NAME="TOC169" HREF="#SEC169">\includeonly</A>
<LI><A NAME="TOC170" HREF="#SEC170">\input</A>
</UL>
<p><b><A HREF="#SEC171">Starting & Ending</A></b> The formal start & end layouts.</p>
<p><b><A HREF="#SEC172">Table of Contents</A></b> How to create a table of contents.</p>
<UL>
<LI><A NAME="TOC173" HREF="#SEC173">\addcontentsline</A>
<LI><A NAME="TOC174" HREF="#SEC174">\addtocontents</A>
</UL>
<p><b><A HREF="#SEC175">Terminal Input/Output</A></b> User interaction.</p>
<UL>
<LI><A NAME="TOC176" HREF="#SEC176">\typein</A>
<LI><A NAME="TOC177" HREF="#SEC177">\typeout</A>
</UL>
<p><b><A HREF="#SEC178">Typefaces</A></b> Such as bold, italics etc.</p>
<UL>
<LI><A NAME="TOC179" HREF="#SEC179">\Styles</A>
<LI><A NAME="TOC180" HREF="#SEC180">Sizes</A>
<LI><A NAME="TOC181" HREF="#SEC181">Low-level font commands</A>
</UL>
<!-- ALPHABETICAL INDEX -->
<hr>
<h2><A NAME="alpha">Alphabetical index</A></h2>
<p><b> # </b></p>
<DIR>
<LI><A A NAME="index0" HREF="#IDX259">$</A>
<LI><A HREF="#SEC128">\!</A>
<LI><A HREF="#IDX134">\' (tabbing)</A>
<LI><A HREF="#SEC125">\(</A>
<LI><A HREF="#SEC125">\)</A>
<LI><A HREF="#IDX132">\+</A>
<LI><A HREF="#SEC128">\,</A>
<LI><A HREF="#SEC107">\- (hyphenation)</A>
<LI><A HREF="#IDX133">\- (tabbing)</A>
<LI><A HREF="#SEC128">\;</A>
<LI><A HREF="#IDX131">\<</A>
<LI><A HREF="#IDX129">\=</A>
<LI><A HREF="#IDX130">\></A>
<LI><A HREF="#SEC125">\[</A>
<LI><A HREF="#SEC106">\\</A>
<LI><A HREF="#SEC125">\]</A>
<LI><A HREF="#IDX135">\` (tabbing)</A>
</DIR>
<p><b> A</A> </b></p>
<DIR>
<LI><A NAME="indexa" HREF="#IDX139">\a</A>
<LI><A HREF="#SEC173">\addcontentsline</A>
<LI><A HREF="#SEC92">\address</A>
<LI><A HREF="#SEC174">\addtocontents</A>
<LI><A HREF="#SEC4">\addtocounter</A>
<LI><A HREF="#SEC86">\addtolength</A>
<LI><A HREF="#SEC148">\addvspace</A>
<LI><A HREF="#SEC5">\alph</A>
<LI><A HREF="#SEC5">\Alph</A>
<LI><A HREF="#IDX314">\appendix</A>
<LI><A HREF="#SEC6">\arabic</A>
<LI><A HREF="#SEC31">array (environment)</A>
<LI><A HREF="#SEC133">\author</A>
</DIR>
<p><b> <A NAME="indexb">B</A> </b></p>
<DIR>
<LI><A HREF="#IDX346">\backslash</A>
<LI><A HREF="#SEC30">\begin</A>
<LI><A HREF="#IDX380">\bfseries</A>
<LI><A HREF="#SEC70">\bibitem</A>
<LI><A HREF="#SEC73">\bibliography</A>
<LI><A HREF="#SEC73">\bibliographystyle</A>
<LI><A HREF="#SEC149">\bigskip</A>
</DIR>
<p><b> <A NAME="indexc">C</A> </b></p>
<DIR>
<LI><A HREF="#IDX80">\caption</A>
<LI><A HREF="#SEC93">\cc</A>
<LI><A HREF="#IDX275">\cdots</A>
<LI><A HREF="#SEC32">center</A>
<LI><A HREF="#SEC33">\centering</A>
<LI><A HREF="#SEC142">\chapter</A>
<LI><A HREF="#SEC48">\circle</A>
<LI><A HREF="#SEC71">\cite</A>
<LI><A HREF="#SEC108">\cleardoublepage</A>
<LI><A HREF="#SEC109">\clearpage</A>
<LI><A HREF="#SEC65">\cline</A>
<LI><A HREF="#SEC94">\closing</A>
</DIR>
<p><b> <A NAME="indexd">D</A> </b></p>
<DIR>
<LI><A HREF="#SEC49">\dashbox</A>
<LI><A HREF="#SEC134">\date</A>
<LI><A HREF="#IDX276">\ddots</A>
<LI><A HREF="#IDX193">\depth</A>
<LI><A HREF="#SEC34">description</A>
<LI><A HREF="#SEC24">\documentclass</A>
<LI><A HREF="#SEC144">\dotfill</A>
</DIR>
<p><b> <A NAME="indexe">E</A> </b></p>
<DIR>
<LI><A HREF="#IDX376">\emph</A>
<LI><A HREF="#SEC95">\encl</A>
<LI><A HREF="#SEC30">\end</A>
<LI><A HREF="#SEC110">\enlargethispage</A>
<LI><A HREF="#SEC35">enumerate</A>
<LI><A HREF="#SEC36">eqnarray</A>
<LI><A HREF="#SEC37">equation</A>
</DIR>
<p><b> <A NAME="indexf">F</A> </b></p>
<DIR>
<LI><A HREF="#SEC154">\fbox</A>
<LI><A HREF="#SEC38">figure</A>
<LI><A HREF="#SEC26">\flushbottom</A>
<LI><A HREF="#SEC39">flushleft</A>
<LI><A HREF="#SEC41">flushright</A>
<LI><A HREF="#SEC7">\fnsymbol</A>
<LI><A HREF="#IDX416">\fontencoding</A>
<LI><A HREF="#IDX417">\fontfamily</A>
<LI><A HREF="#IDX418">\fontseries</A>
<LI><A HREF="#IDX419">\fontshape</A>
<LI><A HREF="#IDX420">\fontsize</A>
<LI><A HREF="#SEC80">\footnote</A>
<LI><A HREF="#SEC81">\footnotemark</A>
<LI><A HREF="#IDX406">\footnotesize</A>
<LI><A HREF="#SEC82">\footnotetext</A>
<LI><A HREF="#IDX277">\frac</A>
<LI><A HREF="#SEC50">\frame</A>
<LI><A HREF="#SEC51">\framebox</A>
<LI><A HREF="#SEC111">\fussy</A>
</DIR>
<p><b> <A NAME="indexh">H</A> </b></p>
<DIR>
<LI><A HREF="#IDX192">\height</A>
<LI><A HREF="#SEC145">\hfill</A>
<LI><A HREF="#SEC66">\hline</A>
<LI><A HREF="#SEC146">\hrulefill</A>
<LI><A HREF="#SEC147">\hspace</A>
<LI><A HREF="#IDX413">\Huge</A>
<LI><A HREF="#IDX412">\huge</A>
<LI><A HREF="#SEC112">\hyphenation</A>
</DIR>
<p><b> <A NAME="indexi">I</A> </b></p>
<DIR>
<LI><A HREF="#SEC168">\include</A>
<LI><A HREF="#SEC169">\includeonly</A>
<LI><A HREF="#SEC121">\indent</A>
<LI><A HREF="#SEC170">\input</A>
<LI><A HREF="#SEC43">\item</A>
<LI><A HREF="#SEC43">itemize</A>
<LI><A HREF="#IDX375">\itshape</A>
</DIR>
<p><b> <A NAME="indexk">K</A> </b></p>
<DIR>
<LI><A HREF="#IDX136">\kill</A>
</DIR>
<p><b> <A NAME="indexl">L</A> </b></p>
<DIR>
<LI><A HREF="#SEC16">\label</A>
<LI><A HREF="#IDX409">\large</A>
<LI><A HREF="#IDX411">\LARGE</A>
<LI><A HREF="#IDX410">\Large</A>
<LI><A HREF="#IDX278">\ldots</A>
<LI><A HREF="#IDX74">\lefteqn</A>
<LI><A HREF="#SEC44">letter</A>
<LI><A HREF="#SEC52">\line</A>
<LI><A HREF="#SEC113">\linebreak</A>
<LI><A HREF="#SEC53">\linethickness</A>
<LI><A HREF="#SEC45">list</A>
<LI><A HREF="#IDX358">\listoffigures</A>
<LI><A HREF="#IDX359">\listoftables</A>
<LI><A HREF="#IDX204">\location</A>
<LI><A HREF="#SEC156">lrbox</A>
</DIR>
<p><b> <A NAME="indexm">M</A> </b></p>
<DIR>
<LI><A HREF="#SEC157">\makebox</A>
<LI><A HREF="#SEC54">\makebox (picture)</A>
<LI><A HREF="#SEC97">\makelabels</A>
<LI><A HREF="#SEC132">\maketitle</A>
<LI><A HREF="#SEC139">\markboth</A>
<LI><A HREF="#SEC140">\markright</A>
<LI><A HREF="#IDX394">\mathbf</A>
<LI><A HREF="#IDX399">\mathcal</A>
<LI><A HREF="#IDX397">\mathit</A>
<LI><A HREF="#IDX398">\mathnormal</A>
<LI><A HREF="#IDX393">\mathrm</A>
<LI><A HREF="#IDX395">\mathsf</A>
<LI><A HREF="#IDX396">\mathtt</A>
<LI><A HREF="#IDX400">\mathversion</A>
<LI><A HREF="#SEC158">\mbox</A>
<LI><A HREF="#IDX378">\mdseries</A>
<LI><A HREF="#SEC150">\medskip</A>
<LI><A HREF="#SEC46">minipage</A>
<LI><A HREF="#SEC67">\multicolumn</A>
<LI><A HREF="#SEC55">\multiput</A>
</DIR>
<p><b> <A NAME="indexn">N</A> </b></p>
<DIR>
<LI><A HREF="#SEC98">\name</A>
<LI><A HREF="#SEC20">\newcommand</A>
<LI><A HREF="#SEC8">\newcounter</A>
<LI><A HREF="#SEC21">\newenvironment</A>
<LI><A HREF="#SEC23">\newfont</A>
<LI><A HREF="#SEC84">\newlength</A>
<LI><A HREF="#SEC114">\newline</A>
<LI><A HREF="#SEC115">\newpage</A>
<LI><A HREF="#SEC159">\newsavebox</A>
<LI><A HREF="#SEC22">\newtheorem</A>
<LI><A HREF="#SEC72">\nocite</A>
<LI><A HREF="#IDX360">\nofiles</A>
<LI><A HREF="#SEC122">\noindent</A>
<LI><A HREF="#SEC116">\nolinebreak</A>
<LI><A HREF="#SEC117">\nopagebreak</A>
<LI><A HREF="#IDX392">\normalfont</A>
<LI><A HREF="#IDX408">\normalsize</A>
</DIR>
<p><b> <A NAME="indexo">O</A> </b></p>
<DIR>
<LI><A HREF="#SEC27">\onecolumn</A>
<LI><A HREF="#SEC99">\opening</A>
<LI><A HREF="#SEC56">\oval</A>
<LI><A HREF="#IDX279">\overbrace</A>
<LI><A HREF="#IDX280">\overline</A>
</DIR>
<p><b> <A NAME="indexp">P</A> </b></p>
<DIR>
<LI><A HREF="#SEC118">\pagebreak</A>
<LI><A HREF="#SEC137">\pagenumbering</A>
<LI><A HREF="#SEC17">\pageref</A>
<LI><A HREF="#SEC138">\pagestyle</A>
<LI><A HREF="#SEC123">\par</A>
<LI><A HREF="#SEC142">\paragraph</A>
<LI><A HREF="#SEC160">\parbox</A>
<LI><A HREF="#SEC47">picture</A>
<LI><A HREF="#SEC100">\ps</A>
<LI><A HREF="#IDX137">\pushtabs</A>
<LI><A HREF="#SEC57">\put</A>
</DIR>
<p><b> <A NAME="indexq">Q</A> </b></p>
<DIR>
<LI><A HREF="#SEC60">quotation</A>
<LI><A HREF="#SEC61">quote</A>
</DIR>
<p><b> <A NAME="indexr">R</A> </b></p>
<DIR>
<LI><A HREF="#SEC28">\raggedbottom</A>
<LI><A HREF="#SEC42">\raggedleft</A>
<LI><A HREF="#SEC40">\raggedright</A>
<LI><A HREF="#SEC161">\raisebox</A>
<LI><A HREF="#SEC18">\ref</A>
<LI><A HREF="#SEC9">\refstepcounter</A>
<LI><A HREF="#IDX373">\rmfamily</A>
<LI><A HREF="#SEC10">\roman</A>
<LI><A HREF="#SEC10">\Roman</A>
<LI><A HREF="#SEC162">\rule</A>
</DIR>
<p><b> <A NAME="indexs">S</A> </b></p>
<DIR>
<LI><A HREF="#SEC163">\savebox</A>
<LI><A HREF="#SEC164">\sbox</A>
<LI><A HREF="#IDX405">\scriptsize</A>
<LI><A HREF="#IDX388">\scshape</A>
<LI><A HREF="#SEC142">\section</A>
<LI><A HREF="#IDX421">\selectfont</A>
<LI><A HREF="#SEC12">\setcounter</A>
<LI><A HREF="#SEC85">\setlength</A>
<LI><A HREF="#SEC87">\settodepth</A>
<LI><A HREF="#SEC88">\settoheight</A>
<LI><A HREF="#SEC89">\settowidth</A>
<LI><A HREF="#IDX386">\sffamily</A>
<LI><A HREF="#SEC58">\shortstack</A>
<LI><A HREF="#SEC101">\signature</A>
<LI><A HREF="#SEC119">\sloppy</A>
<LI><A HREF="#IDX384">\slshape</A>
<LI><A HREF="#IDX407">\small</A>
<LI><A HREF="#SEC151">\smallskip</A>
<LI><A HREF="#IDX281">\sqrt</A>
<LI><A HREF="#SEC102">\startbreaks</A>
<LI><A HREF="#SEC11">\stepcounter</A>
<LI><A HREF="#SEC103">\stopbreaks</A>
<LI><A HREF="#SEC142">\subparagraph</A>
<LI><A HREF="#SEC142">\subsection</A>
<LI><A HREF="#SEC142">\subsubsection</A>
<LI><A HREF="#IDX347">\symbol</A>
</DIR>
<p><b> <A NAME="indext">T</A> </b></p>
<DIR>
<LI><A HREF="#SEC62">tabbing</A>
<LI><A HREF="#SEC63">table</A>
<LI><A HREF="#IDX357">\tableofcontents</A>
<LI><A HREF="#SEC64">tabular</A>
<LI><A HREF="#SEC104">\telephone</A>
<LI><A HREF="#IDX380">\textbf</A>
<LI><A HREF="#IDX375">\textit</A>
<LI><A HREF="#IDX378">\textmd</A>
<LI><A HREF="#IDX392">\textnormal</A>
<LI><A HREF="#IDX373">\textrm</A>
<LI><A HREF="#IDX388">\textsc</A>
<LI><A HREF="#IDX386">\textsf</A>
<LI><A HREF="#IDX384">\textsl</A>
<LI><A HREF="#IDX389">\texttt</A>
<LI><A HREF="#IDX381">\textup</A>
<LI><A HREF="#SEC135">\thanks</A>
<LI><A HREF="#SEC69">thebibliography</A>
<LI><A HREF="#SEC74">theorem</A>
<LI><A HREF="#SEC141">\thispagestyle</A>
<LI><A HREF="#IDX404">\tiny</A>
<LI><A HREF="#SEC136">\title</A>
<LI><A HREF="#SEC75">titlepage</A>
<LI><A HREF="#IDX165">\today</A>
<LI><A HREF="#IDX194">\totalheight</A>
<LI><A HREF="#IDX389">\ttfamily</A>
<LI><A HREF="#SEC29">\twocolumn</A>
<LI><A HREF="#SEC176">\typein</A>
<LI><A HREF="#SEC177">\typeout</A>
</DIR>
<p><b> <A NAME="indexu">U</A> </b></p>
<DIR>
<LI><A HREF="#IDX282">\underbrace</A>
<LI><A HREF="#IDX283">\underline</A>
<LI><A HREF="#IDX381">\upshape</A>
<LI><A HREF="#SEC165">\usebox</A>
<LI><A HREF="#SEC13">\usecounter</A>
<LI><A HREF="#IDX422">\usefont</A>
<LI><A HREF="#IDX46">\usepackage</A>
</DIR>
<p><b> <A NAME="indexv">V</A> </b></p>
<DIR>
<LI><A HREF="#SEC14">\value</A>
<LI><A HREF="#IDX284">\vdots</A>
<LI><A HREF="#SEC59">\vector</A>
<LI><A HREF="#SEC77">\verb</A>
<LI><A HREF="#SEC76">verbatim</A>
<LI><A HREF="#SEC78">verse</A>
<LI><A HREF="#SEC152">\vfill</A>
<LI><A HREF="#SEC68">\vline</A>
<LI><A HREF="#SEC153">\vspace</A>
</DIR>
<p><b> <A NAME="indexw">W</A> </b></p>
<DIR>
<LI><A HREF="#SEC90">\width</A>
</DIR>
</P>
<hr>
<!-- HELP CONTENTS -->
<h2><A NAME="SEC3">Counters</A></h2>
<P>
Everything LaTeX numbers for you has a counter associated with it. The
name of the counter is the same as the name of the environment or
command that produces the number, except with no <CODE>\</CODE>. (enumi -
enumiv are used for the nested enumerate environment.) Below is a list
of the counters used in LaTeX's standard document classes to control
numbering.
</P>
<PRE>
part paragraph figure enumi
chapter subparagraph table enumii
section page footnote enumiii
subsection equation mpfootnote enumiv
subsubsection
</PRE>
<UL>
<LI><A HREF="#SEC4">\addtocounter</A>: Add a quantity to a counter.
<LI><A HREF="#SEC5">\alph</A>: Print value of a counter using letters.
<LI><A HREF="#SEC6">\arabic</A>: Print value of a counter using numerals.
<LI><A HREF="#SEC7">\fnsymbol</A>: Print value of a counter using symbols.
<LI><A HREF="#SEC8">\newcounter</A>: Define a new counter.
<LI><A HREF="#SEC9">\refstepcounter</A>: Add to counter, resetting subsidiary counters.
<LI><A HREF="#SEC10">\roman</A>: Print value of a counter using roman numerals.
<LI><A HREF="#SEC12">\setcounter</A>: Set the value of a counter.
<LI><A HREF="#SEC11">\stepcounter</A>: Add to counter, resetting subsidiary counters.
<LI><A HREF="#SEC13">\usecounter</A>: Use a specified counter in a list environment.
<LI><A HREF="#SEC14">\value</A>: Use the value of a counter in an expression.
</UL>
<H3><A NAME="SEC4" HREF="#TOC4">\addtocounter</A></H3>
<P>
<CODE>\addtocounter{counter}{value}</CODE>
</P>
<P>
The <CODE>\addtocounter</CODE> command increments the <CODE>counter</CODE> by the
amount specified by the <CODE>value</CODE> argument. The <CODE>value</CODE>
argument can be negative.
</P>
<H3><A NAME="SEC5" HREF="#TOC5">\alph</A></H3>
<P>
<CODE>\alph{counter}</CODE>
</P>
<P>
This command causes the value of the <CODE>counter</CODE> to be printed in
alphabetic characters. The <CODE>\alph</CODE> command uses lower case
alphabetic alphabetic characters, i.e., <CODE>a, b, c...</CODE> while the
<CODE>\Alph</CODE> command uses upper case alphabetic characters, i.e.,
<CODE>A, B, C...</CODE>.
</P>
<H3><A NAME="SEC6" HREF="#TOC6">\arabic</A></H3>
<P>
<CODE>\arabic{counter}</CODE>
</P>
<P>
The <CODE>\arabic</CODE> command causes the value of the <CODE>counter</CODE> to be
printed in Arabic numbers, i.e., <CODE>3</CODE>.
</P>
<H3><A NAME="SEC7" HREF="#TOC7">\fnsymbol</A></H3>
<P>
<CODE>\fnsymbol{counter}</CODE>
</P>
<P>
The <CODE>\fnsymbol</CODE> command causes the value of the <CODE>counter</CODE> to
be printed in a specific sequence of nine symbols that can be used for
numbering footnotes.
</P>
<P>
eg. From 1-9:
</P>
<P>
NB. <CODE>counter</CODE> must have a value between 1 and 9 inclusive.
</P>
<H3><A NAME="SEC8" HREF="#TOC8">\newcounter</A></H3>
<P>
<CODE>\newcounter{foo}[counter]</CODE>
</P>
<P>
The <CODE>\newcounter</CODE> command defines a new counter named <CODE>foo</CODE>.
The counter is initialized to zero.
</P>
<P>
The optional argument <CODE>[counter]</CODE> causes the counter <CODE>foo</CODE> to
be reset whenever the counter named in the optional argument is
incremented.
</P>
<H3><A NAME="SEC9" HREF="#TOC9">\refstepcounter</A></H3>
<P>
<CODE>\refstepcounter{counter}</CODE>
</P>
<P>
The <CODE>\refstepcounter</CODE> command works like <CODE>\stepcounter</CODE>
See section <A HREF="#SEC11">\stepcounter</A>, except it also defines the current <CODE>\ref</CODE>
value to be the result of <CODE>\thecounter</CODE>.
</P>
<H3><A NAME="SEC10" HREF="#TOC10">\roman</A></H3>
<P>
<CODE>\roman{counter}</CODE>
</P>
<P>
This command causes the value of the <CODE>counter</CODE> to be printed in
Roman numerals. The <CODE>\roman</CODE> command uses lower case Roman
numerals, i.e., <CODE>i, ii, iii...</CODE>, while the <CODE>\Roman</CODE> command
uses upper case Roman numerals, i.e., <CODE>I, II, III...</CODE>.
</P>
<H3><A NAME="SEC11" HREF="#TOC11">\stepcounter</A></H3>
<P>
<CODE>\stepcounter{counter}</CODE>
</P>
<P>
The <CODE>\stepcounter</CODE> command adds one to the <CODE>counter</CODE> and
resets all subsidiary counters.
</P>
<H3><A NAME="SEC12" HREF="#TOC12">\setcounter</A></H3>
<P>
<CODE>\setcounter{counter}{value}</CODE>
</P>
<P>
The <CODE>\setcounter</CODE> command sets the value of the <CODE>counter</CODE> to
that specified by the <CODE>value</CODE> argument.
</P>
<H3><A NAME="SEC13" HREF="#TOC13">\usecounter</A></H3>
<P>
<CODE>\usecounter{counter}</CODE>
</P>
<P>
The <CODE>\usecounter</CODE> command is used in the second argument of the
<CODE>list</CODE> environment to allow the counter specified to be used to
number the list items.
</P>
<H3><A NAME="SEC14" HREF="#TOC14">\value</A></H3>
<P>
<CODE>\value{counter}</CODE>
</P>
<P>
The <CODE>\value</CODE> command produces the value of the <CODE>counter</CODE> named
in the mandatory argument. It can be used where LaTeX expects an
integer or number, such as the second argument of a <CODE>\setcounter</CODE>
or <CODE>\addtocounter</CODE> command, or in:
</P>
<PRE>
\hspace{\value{foo}\parindent}
</PRE>
<P>
It is useful for doing arithmetic with counters.
</P>
<h2><A NAME="SEC15">Cross References</A> </h2>
<P>
One reason for numbering things like figures and equations is to refer
the reader to them, as in "See Figure 3 for more details."
</P>
<UL>
<LI><A HREF="#SEC16">\label</A>: Assign a symbolic name to a piece of text.
<LI><A HREF="#SEC17">\pageref</A>: Refer to a page number.
<LI><A HREF="#SEC18">\ref</A>: Refer to a section, figure or similar.
</UL>
<H3><A NAME="SEC16" HREF="#TOC16">\label</A></H3>
<P>
<CODE>\label{key}</CODE>
</P>
<P>
A <CODE>\label</CODE> command appearing in ordinary text assigns to the
<CODE>key</CODE> the number of the current sectional unit; one appearing
inside a numbered environment assigns that number to the <CODE>key</CODE>.
</P>
<P>
A <CODE>key</CODE> can consist of any sequence of letters, digits, or
punctuation characters. Upper and lowercase letters are different.
</P>
<P>
To avoid accidentally creating two labels with the same name, it is
common to use labels consisting of a prefix and a suffix separated by a
colon. The prefixes conventionally used are
</P>
<UL>
<LI>
<CODE>cha</CODE>
for chapters
<LI>
<CODE>sec</CODE>
for lower-level sectioning commands
<LI>
<CODE>fig</CODE>
for figures
<LI>
<CODE>tab</CODE>
for tables
<LI>
<CODE>eq</CODE>
for equations
</UL>
<P>
Thus, a label for a figure would look like <CODE>fig:bandersnatch</CODE>.
</P>
<H3><A NAME="SEC17" HREF="#TOC17">\pageref</A></H3>
<P>
<CODE>\pageref{key}</CODE>
</P>
<P>
The <CODE>\pageref</CODE> command produces the page number of the place in the
text where the corresponding <CODE>\label</CODE> command appears. ie. where
<CODE>\label{key}</CODE> appears.
</P>
<H3><A NAME="SEC18" HREF="#TOC18">\ref</A></H3>
<P>
<CODE>\ref{key}</CODE>
</P>
<P>
The <CODE>\ref</CODE> command produces the number of the sectional unit,
equation number, ... of the corresponding <CODE>\label</CODE> command.
</P>
<h2><A NAME="SEC19">Definitions</A></h2>
<UL>
<LI><A HREF="#SEC20">\newcommand</A>: Define a new command.
<LI><A HREF="#SEC21">\newenvironment</A>: Define a new environment.
<LI><A HREF="#SEC22">\newtheorem</A>: Define a new theorem-like environment.
<LI><A HREF="#SEC23">\newfont</A>: Define a new font name.
</UL>
<H3><A NAME="SEC20" HREF="#TOC20">\newcommand</A></H3>
<PRE>
\newcommand{cmd}[args]{definition}
\newcommand{cmd}[args][default]{definition}
\renewcommand{cmd}[args]{definition}
\renewcommand{cmd}[args][default]{definition}
</PRE>
<P>
These commands define (or redefine) a command.
</P>
<DL COMPACT>
<DT><CODE>cmd</CODE>
<DD>
A command name beginning with a <CODE>\</CODE>. For <CODE>\newcommand</CODE> it
must not be already defined and must not begin with <CODE>\end</CODE>; for
<CODE>\renewcommand</CODE> it must already be defined.
<DT><CODE>args</CODE>
<DD>
An integer from 1 to 9 denoting the number of arguments of the command
being defined. The default is for the command to have no arguments.
<DT><CODE>def</CODE>
<DD>
If this optional parameter is present, it means that the command's first
argument is optional. The default value of the optional argument is
<CODE>def</CODE>.
<DT><CODE>definition</CODE>
<DD>
The text to be substituted for every occurrence of <CODE>cmd</CODE>; a
parameter of the form <CODE>#n</CODE> in <CODE>cmd</CODE> is replaced by the text of
the nth argument when this substitution takes place.
</DL>
<H3><A NAME="SEC21" HREF="#TOC21">\newenvironment</A></H3>
<PRE>
\newenvironment{nam}[args]{begdef}{enddef}
\newenvironment{nam}[args][default]{begdef}{enddef}
\renewenvironment{nam}[args]{begdef}{enddef}
</PRE>
<P>
These commands define or redefine an environment.
</P>
<DL COMPACT>
<DT><CODE>nam</CODE>
<DD>
The name of the environment. For <CODE>\newenvironment</CODE> there must be
no currently defined environment by that name, and the command
<CODE>\nam</CODE> must be undefined. For <CODE>\renewenvironment</CODE> the
environment must already be defined.
<DT><CODE>args</CODE>
<DD>
An integer from 1 to 9 denoting the number of arguments of
the newly-defined environment. The default is no arguments.
<DT><CODE>default</CODE>
<DD>
If this is specified, the first argument is optional, and <CODE>default</CODE>
gives the default value for that argument.
<DT><CODE>begdef</CODE>
<DD>
The text substituted for every occurrence of <CODE>\begin{nam}</CODE>; a
parameter of the form <CODE>#n</CODE> in <CODE>cmd</CODE> is replaced by the text of
the nth argument when this substitution takes place.
<DT><CODE>enddef</CODE>
<DD>
The text substituted for every occurrence of <CODE>\end{nam}</CODE>. It may
not contain any argument parameters.
</DL>
<H3><A NAME="SEC22" HREF="#TOC22">\newtheorem</A></H3>
<PRE>
\newtheorem{env_name}{caption}[within]
\newtheorem{env_name}[numbered_like]{caption}
</PRE>
<P>
This command defines a theorem-like environment.
</P>
<DL COMPACT>
<DT><CODE>env_name</CODE>
<DD>
The name of the environment to be defined. A string of letters. It must
not be the name of an existing environment or counter.
<DT><CODE>caption</CODE>
<DD>
The text printed at the beginning of the environment, right before the
number. This may simply say "Theorem", for example.
<DT><CODE>within</CODE>
<DD>
The name of an already defined counter, usually of a sectional unit.
Provides a means of resetting the new theorem counter <STRONG>within</STRONG>
the sectional unit.
<DT><CODE>numbered_like</CODE>
<DD>
The name of an already defined theorem-like environment.
</DL>
<P>
The <CODE>\newtheorem</CODE> command may have at most one optional argument.
</P>
<H3><A NAME="SEC23" HREF="#TOC23">\newfont</A></H3>
<P>
<CODE>\newfont{cmd}{font_name}</CODE>
</P>
<P>
Defines the command name <CODE>cmd</CODE>, which must not be currently
defined, to be a declaration that selects the font named
<CODE>font_name</CODE> to be the current font.
</P>
<h2><A NAME="SEC24">Document Classes</A></h2>
<P>
Valid LaTeX document classes include:
</P>
<UL>
<LI>
article
<LI>
report
<LI>
letter
<LI>
book
<LI>
slides
</UL>
<P>
Other document classes are often available.
They are selected with the following command:
</P>
<P>
<CODE>\documentclass [options] {class}</CODE>
</P>
<P>
All the standard classes (except slides) accept the following options
for selecting the typeface size (10 pt is default):
</P>
<P>
10pt, 11pt, 12pt
</P>
<P>
All classes accept these options for selecting the paper size (default
is letter):
</P>
<P>
a4paper, a5paper, b5paper, letterpaper, legalpaper, executivepaper
</P>
<P>
Miscellaneous options:
</P>
<UL>
<LI>
landscape -- selects landscape format. Default is portrait.
<LI>
titlepage, notitlepage -- selects if there should be a separate title
page.
<LI>
leqno -- equation number on left side of equations. Default is right side.
<LI>
fleqn -- displayed formulas flush left. Default is centred.
<LI>
openbib -- use "open" bibliography format.
<LI>
draft, final -- mark/do not mark overfull boxes with a rule.
Default is final.
</UL>
<P>
These options are not available with the slides class:
</P>
<UL>
<LI>
oneside, twoside -- selects one- or twosided layout. Default is
oneside, except for the book class.
<LI>
openright, openany -- determines if a chapter should start on a
right-hand page. Default is openright for book.
<LI>
onecolumn, twocolumn -- one or two columns. Defaults to one column.
</UL>
<P>
The slides class offers the option <CODE>clock</CODE> for printing the time at
the bottom of each note.
</P>
<P>
If you specify more than one option, they must be separated by a comma.
</P>
<P>
Additional packages are loaded by a
</P>
<P>
<CODE><A NAME="IDX46">\usepackage[options]{pkg}</A></CODE>
</P>
<P>
command. If you specify more than one package, they must be separated by
a comma.
</P>
<P>
Any options given in the <CODE>\documentclass</CODE> command that are unknown
by the selected document class are passed on to the packages loaded with
<CODE>\usepackage</CODE>.
</P>
<h2><A NAME="SEC25">Layout</A></h2>
<P>
Miscellaneous commands for controlling the general layout of the page.
</P>
<UL>
<LI><A HREF="#SEC26">\flushbottom</A>: Make all text pages the same height.
<LI><A HREF="#SEC27">\onecolumn</A>: Use one-column layout.
<LI><A HREF="#SEC28">\raggedbottom</A>: Allow text pages of differing height.
<LI><A HREF="#SEC29">\twocolumn</A>: Use two-column layout.
</UL>
<H3><A NAME="SEC26" HREF="#TOC26">\flushbottom</A></H3>
<P>
The <CODE>\flushbottom</CODE> declaration makes all text pages the same
height, adding extra vertical space when necessary to fill out the page.
</P>
<P>
This is the standard if twocolumn mode is selected.
</P>
<H3><A NAME="SEC27" HREF="#TOC27">\onecolumn</A></H3>
<P>
The <CODE>\onecolumn</CODE> declaration starts a new page and produces
single-column output.
</P>
<H3><A NAME="SEC28" HREF="#TOC28">\raggedbottom</A></H3>
<P>
The <CODE>\raggedbottom</CODE> declaration makes all pages the height of the
text on that page. No extra vertical space is added.
</P>
<H3><A NAME="SEC29" HREF="#TOC29">\twocolumn</A></H3>
<P>
<CODE>\twocolumn[text]</CODE>
</P>
<P>
The <CODE>\twocolumn</CODE> declaration starts a new page and produces
two-column output. If the optional <CODE>text</CODE> argument is present, it
is typeset in one-column mode.
</P>
<h2><A NAME="SEC30">Environments</A> </h2>
<P>
LaTeX provides a number of different paragraph-making environments.
Each environment begins and ends in the same manner.
</P>
<PRE>
\begin{environment-name}
.
.
.
\end{environment-name}
</PRE>
<UL>
<LI><A HREF="#SEC31">array</A>: Math arrays.
<LI><A HREF="#SEC32">center</A>: Centred lines.
<LI><A HREF="#SEC34">description</A>: Labelled lists.
<LI><A HREF="#SEC35">enumerate</A>: Numbered lists.
<LI><A HREF="#SEC36">eqnarray</A>: Sequences of aligned equations.
<LI><A HREF="#SEC37">equation</A>: Displayed equation.
<LI><A HREF="#SEC38">figure</A>: Floating figures.
<LI><A HREF="#SEC39">flushleft</A>: Flushed left lines.
<LI><A HREF="#SEC41">flushright</A>: Flushed right lines.
<LI><A HREF="#SEC43">itemize</A>: Bulleted lists.
<LI><A HREF="#SEC44">letter</A>: Letters.
<LI><A HREF="#SEC45">list</A>: Generic list environment.
<LI><A HREF="#SEC46">minipage</A>: Miniature page.
<LI><A HREF="#SEC47">picture</A>: Picture with text, arrows, lines and circles.
<LI><A HREF="#SEC60">quotation</A>: Indented environment with paragraph indentation.
<LI><A HREF="#SEC61">quote</A>: Indented environment with no paragraph indentation.
<LI><A HREF="#SEC62">tabbing</A>: Align text arbitrarily.
<LI><A HREF="#SEC63">table</A>: Floating tables.
<LI><A HREF="#SEC64">tabular</A>: Align text in columns.
<LI><A HREF="#SEC69">thebibliography</A>: Bibliography or reference list.
<LI><A HREF="#SEC74">theorem</A>: Theorems, lemmas, etc.
<LI><A HREF="#SEC75">titlepage</A>: For hand crafted title pages.
<LI><A HREF="#SEC76">verbatim</A>: Simulating typed input.
<LI><A HREF="#SEC78">verse</A>: For poetry and other things.
</UL>
<H3><A NAME="SEC31" HREF="#TOC31">array</A></H3>
<PRE>
\begin{array}{col1col2...coln}
column 1 entry & column 2 entry ... & column n entry \\
.
.
.
\end{array}
</PRE>
<P>
Math arrays are produced with the array environment. It has a single
mandatory argument describing the number of columns and the alignment
within them. Each column, <CODE>coln</CODE>, is specified by a single letter
that tells how items in that row should be formatted.
</P>
<UL>
<LI>
<CODE>c</CODE> -- for centred
<LI>
<CODE>l</CODE> -- for flush left
<LI>
<CODE>r</CODE> -- for flush right
</UL>
<P>
Column entries must be separated by an <CODE>&</CODE>. Column entries may
include other LaTeX commands. Each row of the array must be terminated
with the string <CODE>\\</CODE>.
</P>
<P>
Note that the <CODE>array</CODE> environment can only be used in math mode, so
normally it is used inside an <CODE>equation</CODE> environment.
</P>
<H3><A NAME="SEC32" HREF="#TOC32">center</A></H3>
<PRE>
\begin{center}
Text on line 1 \\
Text on line 2 \\
.
.
.
\end{center}
</PRE>
<P>
The <CODE>center</CODE> environment allows you to create a paragraph consisting of
lines that are centred within the left and right margins on the current
page. Each line must be terminated with the string <CODE>\\</CODE>.
</P>
<UL>
<LI><A HREF="#SEC33">\centering</A>: The declaration form of the <CODE>center</CODE> environment.
</UL>
<H4><A NAME="SEC33" HREF="#TOC33">\centering</A></H4>
<P>
This declaration corresponds to the <CODE>center</CODE> environment. This
declaration can be used inside an environment such as <CODE>quote</CODE> or in
a <CODE>parbox</CODE>. The text of a figure or table can be centred on the
page by putting a <CODE>\centering</CODE> command at the beginning of the
figure or table environment.
</P>
<P>
Unlike the <CODE>center</CODE> environment, the <CODE>\centering</CODE> command does
not start a new paragraph; it simply changes how LaTeX formats paragraph
units. To affect a paragraph unit's format, the scope of the
declaration must contain the blank line or <CODE>\end</CODE> command (of an
environment like quote) that ends the paragraph unit.
</P>
<H3><A NAME="SEC34" HREF="#TOC34">description</A></H3>
<PRE>
\begin{description}
\item [label] First item
\item [label] Second item
.
.
.
\end{description}
</PRE>
<P>
The <CODE>description</CODE> environment is used to make labelled lists. The
<CODE>label</CODE> is bold face and flushed right.
</P>
<H3><A NAME="SEC35" HREF="#TOC35">enumerate</A></H3>
<P>
<A NAME="IDX69"></A>
<A NAME="IDX70"></A>
</P>
<PRE>
\begin{enumerate}
\item First item
\item Second item
.
.
.
\end{enumerate}
</PRE>
<P>
The <CODE>enumerate</CODE> environment produces a numbered list. Enumerations
can be nested within one another, up to four levels deep. They can also
be nested within other paragraph-making environments.
</P>
<P>
Each item of an enumerated list begins with an <CODE>\item</CODE> command.
There must be at least one <CODE>\item</CODE> command within the environment.
</P>
<P>
The <CODE>enumerate</CODE> environment uses the <CODE>enumi</CODE> through
<CODE>enumiv</CODE> counters (see section <A HREF="#SEC3">Counters</A>). The type of numbering can be
changed by redefining <CODE>\theenumi</CODE> etc.
</P>
<H3><A NAME="SEC36" HREF="#TOC36">eqnarray</A></H3>
<P>
<A NAME="IDX71"></A>
<A NAME="IDX72"></A>
<A NAME="IDX73"></A>
</P>
<PRE>
\begin{eqnarray}
math formula 1 \\
math formula 2 \\
.
.
.
\end{eqnarray}
</PRE>
<P>
The <CODE>eqnarray</CODE> environment is used to display a sequence of
equations or inequalities. It is very much like a three-column
<CODE>array</CODE> environment, with consecutive rows separated by <CODE>\\</CODE>
and consecutive items within a row separated by an <CODE>&</CODE>.
</P>
<P>
An equation number is placed on every line unless that line has a
<CODE>\nonumber</CODE> command.
</P>
<P>
</P>
<P>
The command <CODE><A NAME="IDX74">\lefteqn</A></CODE> is used for splitting long formulas across
lines. It typesets its argument in display style flush left in a box of
zero width.
</P>
<H3><A NAME="SEC37" HREF="#TOC37">equation</A></H3>
<P>
<A NAME="IDX75"></A>
<A NAME="IDX76"></A>
<A NAME="IDX77"></A>
</P>
<PRE>
\begin{equation}
math formula
\end{equation}
</PRE>
<P>
The <CODE>equation</CODE> environment centres your equation on the page and places
the equation number in the right margin.
</P>
<H3><A NAME="SEC38" HREF="#TOC38">figure</A></H3>
<P>
<A NAME="IDX78"></A>
<A NAME="IDX79"></A>
</P>
<PRE>
\begin{figure}[placement]
body of the figure
<A NAME="IDX80">\caption{figure title}</A>
\end{figure}
</PRE>
<P>
Figures are objects that are not part of the normal text, and are
usually "floated" to a convenient place, like the top of a page.
Figures will not be split between two pages.
</P>
<P>
The optional argument <CODE>[placement]</CODE> determines where LaTeX will try
to place your figure. There are four places where LaTeX can possibly
put a float:
</P>
<OL>
<LI>
<CODE>h</CODE> (Here) - at the position in the text where the figure
environment appears.
<LI>
<CODE>t</CODE> (Top) - at the top of a text page.
<LI>
<CODE>b</CODE> (Bottom) - at the bottom of a text page.
<LI>
<CODE>p</CODE> (Page of floats) - on a separate float page, which is a page
containing no text, only floats.
</OL>
<P>
The standard report and article classes use the default placement
<CODE>tbp</CODE>.
</P>
<P>
The body of the figure is made up of whatever text, LaTeX commands, etc.
you wish. The <CODE>\caption</CODE> command allows you to title your figure.
</P>
<H3><A NAME="SEC39" HREF="#TOC39">flushleft</A></H3>
<P>
<A NAME="IDX81"></A>
<A NAME="IDX82"></A>
<A NAME="IDX83"></A>
</P>
<PRE>
\begin{flushleft}
Text on line 1 \\
Text on line 2 \\
.
.
.
\end{flushleft}
</PRE>
<P>
The <CODE>flushleft</CODE> environment allows you to create a paragraph
consisting of lines that are flushed left, to the left-hand margin.
Each line must be terminated with the string <CODE>\\</CODE>.
</P>
<UL>
<LI><A HREF="#SEC40">\raggedright</A>: The declaration form of the <CODE>flushleft</CODE> environment.
</UL>
<H4><A NAME="SEC40" HREF="#TOC40">\raggedright</A></H4>
<P>
<A NAME="IDX84"></A>
<A NAME="IDX85"></A>
<A NAME="IDX86"></A>
<A NAME="IDX87"></A>
</P>
<P>
This declaration corresponds to the <CODE>flushleft</CODE> environment. This
declaration can be used inside an environment such as <CODE>quote</CODE> or in
a <CODE>parbox</CODE>.
</P>
<P>
Unlike the <CODE>flushleft</CODE> environment, the <CODE>\raggedright</CODE> command
does not start a new paragraph; it simply changes how LaTeX formats
paragraph units. To affect a paragraph unit's format, the scope of the
declaration must contain the blank line or <CODE>\end</CODE> command (of an
environment like quote) that ends the paragraph unit.
</P>
<H3><A NAME="SEC41" HREF="#TOC41">flushright</A></H3>
<P>
<A NAME="IDX88"></A>
<A NAME="IDX89"></A>
<A NAME="IDX90"></A>
</P>
<PRE>
\begin{flushright}
Text on line 1 \\
Text on line 2 \\
.
.
.
\end{flushright}
</PRE>
<P>
The <CODE>flushright</CODE> environment allows you to create a paragraph
consisting of lines that are flushed right, to the right-hand margin.
Each line must be terminated with the string <CODE>\\</CODE>.
</P>
<UL>
<LI><A HREF="#SEC42">\raggedleft</A>: The declaration form of the <CODE>flushright</CODE> environment.
</UL>
<H4><A NAME="SEC42" HREF="#TOC42">\raggedleft</A></H4>
<P>
<A NAME="IDX91"></A>
<A NAME="IDX92"></A>
<A NAME="IDX93"></A>
<A NAME="IDX94"></A>
</P>
<P>
This declaration corresponds to the <CODE>flushright</CODE> environment. This
declaration can be used inside an environment such as <CODE>quote</CODE> or in
a <CODE>parbox</CODE>.
</P>
<P>
Unlike the <CODE>flushright</CODE> environment, the <CODE>\raggedleft</CODE> command
does not start a new paragraph; it simply changes how LaTeX formats
paragraph units. To affect a paragraph unit's format, the scope of the
declaration must contain the blank line or <CODE>\end</CODE> command (of an
environment like quote) that ends the paragraph unit.
</P>
<H3><A NAME="SEC43" HREF="#TOC43">itemize</A></H3>
<P>
<A NAME="IDX95"></A>
<A NAME="IDX96"></A>
<A NAME="IDX97"></A>
</P>
<PRE>
\begin{itemize}
\item First item
\item Second item
.
.
.
\end{itemize}
</PRE>
<P>
The <CODE>itemize</CODE> environment produces a "bulleted" list. Itemizations
can be nested within one another, up to four levels deep. They can also
be nested within other paragraph-making environments.
</P>
<P>
Each item of an <CODE>itemized</CODE> list begins with an <CODE>\item</CODE> command.
There must be at least one <CODE>\item</CODE> command within the environment.
</P>
<P>
The <CODE>itemize</CODE> environment uses the <CODE>itemi</CODE> through
<CODE>itemiv</CODE> counters (see section <A HREF="#SEC3">Counters</A>). The type of numbering can be
changed by redefining <CODE>\theitemi</CODE> etc.
</P>
<H3><A NAME="SEC44" HREF="#TOC44">letter</A></H3>
<P>
<A NAME="IDX98"></A>
</P>
<P>
This environment is used for creating letters. See section <A HREF="#SEC91">Letters</A>.
</P>
<H3><A NAME="SEC45" HREF="#TOC45">list</A></H3>
<P>
<A NAME="IDX99"></A>
<A NAME="IDX100"></A>
</P>
<P>
The <CODE>list</CODE> environment is a generic environment which is used for
defining many of the more specific environments. It is seldom used in
documents, but often in macros.
</P>
<PRE>
\begin{list}{label}{spacing}
\item First item
\item Second item
.
.
.
\end{list}
</PRE>
<P>
The <CODE>{label}</CODE> argument specifies how items should be labelled.
This argument is a piece of text that is inserted in a box to form the
label. This argument can and usually does contain other LaTeX commands.
</P>
<P>
The <CODE>{spacing}</CODE> argument contains commands to change the spacing
parameters for the list. This argument will most often be null, i.e.,
<CODE>{}</CODE>. This will select all default spacing which should suffice
for most cases.
</P>
<H3><A NAME="SEC46" HREF="#TOC46">minipage</A></H3>
<P>
<A NAME="IDX101"></A>
<A NAME="IDX102"></A>
<A NAME="IDX103"></A>
<A NAME="IDX104"></A>
</P>
<PRE>
\begin{minipage}[position]{width}
text
\end{minipage}
</PRE>
<P>
The <CODE>minipage</CODE> environment is similar to a <CODE>\parbox</CODE> command.
It takes the same optional <CODE>position</CODE> argument and mandatory
<CODE>width</CODE> argument. You may use other paragraph-making environments
inside a minipage.
</P>
<P>
Footnotes in a <CODE>minipage</CODE> environment are handled in a way that is
particularly useful for putting footnotes in figures or tables. A
<CODE>\footnote</CODE> or <CODE>\footnotetext</CODE> command puts the footnote at
the bottom of the minipage instead of at the bottom of the page, and it
uses the <CODE>mpfootnote</CODE> counter instead of the ordinary
<CODE>footnote</CODE> counter See section <A HREF="#SEC3">Counters</A>.
</P>
<P>
NOTE: Don't put one minipage inside another if you are using footnotes;
they may wind up at the bottom of the wrong minipage.
</P>
<H3><A NAME="SEC47" HREF="#TOC47">picture</A></H3>
<P>
<A NAME="IDX105"></A>
<A NAME="IDX106"></A>
<A NAME="IDX107"></A>
</P>
<PRE>
\begin{picture}(width,height)(x offset,y offset)
.
.
picture commands
.
.
\end{picture}
</PRE>
<P>
The <CODE>picture</CODE> environment allows you to create just about any kind
of picture you want containing text, lines, arrows and circles. You
tell LaTeX where to put things in the picture by specifying their
coordinates. A coordinate is a number that may have a decimal point and
a minus sign -- a number like <CODE>5</CODE>, <CODE>2.3</CODE> or <CODE>-3.1416</CODE>. A
coordinate specifies a length in multiples of the unit length
<CODE>\unitlength</CODE>, so if <CODE>\unitlength</CODE> has been set to <CODE>1cm</CODE>,
then the coordinate 2.54 specifies a length of 2.54 centimetres. You
can change the value of <CODE>\unitlength</CODE> anywhere you want, using the
<CODE>\setlength</CODE> command, but strange things will happen if you try
changing it inside the picture environment.
</P>
<P>
A position is a pair of coordinates, such as <CODE>(2.4,-5)</CODE>, specifying
the point with x-coordinate <CODE>2.4</CODE> and y-coordinate <CODE>-5</CODE>.
Coordinates are specified in the usual way with respect to an origin,
which is normally at the lower-left corner of the picture. Note that
when a position appears as an argument, it is not enclosed in braces;
the parentheses serve to delimit the argument.
</P>
<P>
The <CODE>picture</CODE> environment has one mandatory argument, which is a
<CODE>position</CODE>. It specifies the size of the picture. The environment
produces a rectangular box with width and height determined by this
argument's x- and y-coordinates.
</P>
<P>
The <CODE>picture</CODE> environment also has an optional <CODE>position</CODE>
argument, following the <CODE>size</CODE> argument, that can change the
origin. (Unlike ordinary optional arguments, this argument is not
contained in square brackets.) The optional argument gives the
coordinates of the point at the lower-left corner of the picture
(thereby determining the origin). For example, if <CODE>\unitlength</CODE>
has been set to <CODE>1mm</CODE>, the command
<PRE>
\begin{picture}(100,200)(10,20)
</PRE>
<P>
produces a picture of width 100 millimetres and height 200
millimetres, whose lower-left corner is the point (10,20) and whose
upper-right corner is therefore the point (110,220). When you first
draw a picture, you will omit the optional argument, leaving the origin
at the lower-left corner. If you then want to modify your picture by
shifting everything, you just add the appropriate optional argument.
</P>
<P>
The environment's mandatory argument determines the nominal size of the
picture. This need bear no relation to how large the picture really is;
LaTeX will happily allow you to put things outside the picture, or even
off the page. The picture's nominal size is used by LaTeX in determining
how much room to leave for it.
</P>
<P>
Everything that appears in a picture is drawn by the <CODE>\put</CODE>
command. The command
<PRE>
\put (11.3,-.3){...}
</PRE>
<P>
puts the object specified by <CODE>...</CODE> in the picture, with its
reference point at coordinates (11.3,-.3). The reference points for
various objects will be described below.
</P>
<P>
The <CODE>\put</CODE> command creates an <STRONG>LR box</STRONG>. You can put anything
in the text argument of the <CODE>\put</CODE> command that you'd put into the
argument of an <CODE>\mbox</CODE> and related commands. When you do this, the
reference point will be the lower left corner of the box.
</P>
<P>
Picture commands:
<UL>
<LI><A HREF="#SEC48">\circle</A>: Draw a circle.
<LI><A HREF="#SEC49">\dashbox</A>: Draw a dashed box.
<LI><A HREF="#SEC50">\frame</A>: Draw a frame around an object.
<LI><A HREF="#SEC51">\framebox (picture)</A>: Draw a box with a frame around it.
<LI><A HREF="#SEC52">\line</A>: Draw a straight line.
<LI><A HREF="#SEC53">\linethickness</A>: Set the line thickness.
<LI><A HREF="#SEC54">\makebox (picture)</A>: Draw a box of the specified size.
<LI><A HREF="#SEC55">\multiput</A>: Draw multiple instances of an object.
<LI><A HREF="#SEC56">\oval</A>: Draw an ellipse.
<LI><A HREF="#SEC57">\put</A>: Place an object at a specified place.
<LI><A HREF="#SEC58">\shortstack</A>: Make a pile of objects.
<LI><A HREF="#SEC59">\vector</A>: Draw a line with an arrow.
</UL>
<H4><A NAME="SEC48" HREF="#TOC48">\circle</A></H4>
<P>
<A NAME="IDX108"></A>
</P>
<P>
<CODE>\circle[*]{diameter}</CODE>
</P>
<P>
The <CODE>\circle</CODE> command produces a circle with a diameter as close to
the specified one as possible. If the <CODE>*</CODE>-form of the command is
used, LaTeX draws a solid circle.
</P>
<P>
Note that only circles up to 40 pt can be drawn.
</P>
<H4><A NAME="SEC49" HREF="#TOC49">\dashbox</A></H4>
<P>
<A NAME="IDX109"></A>
</P>
<P>
Draws a box with a dashed line.
</P>
<P>
<CODE>\dashbox{dash_length}(width,height){...}</CODE>
</P>
<P>
The <CODE>\dashbox</CODE> has an extra argument which specifies the width of
each dash. A dashed box looks best when the <CODE>width</CODE> and
<CODE>height</CODE> are multiples of the <CODE>dash_length</CODE>.
</P>
<H4><A NAME="SEC50" HREF="#TOC50">\frame</A></H4>
<P>
<A NAME="IDX110"></A>
</P>
<P>
<CODE>\frame{...}</CODE>
</P>
<P>
The <CODE>\frame</CODE> command puts a rectangular frame around the object
specified in the argument. The reference point is the bottom left
corner of the frame. No extra space is put between the frame and the
object.
</P>
<H4><A NAME="SEC51" HREF="#TOC51">\framebox</A></H4>
<P>
<A NAME="IDX111"></A>
</P>
<P>
<CODE>\framebox(width,height)[position]{...}</CODE>
</P>
<P>
The <CODE>\framebox</CODE> command is exactly the same as the <CODE>\makebox</CODE>
command, except that it puts a frame around the outside of the box that
it creates.
</P>
<P>
The <CODE>framebox</CODE> command produces a rule of thickness
<CODE>\fboxrule</CODE>, and leaves a space <CODE>\fboxsep</CODE> between the rule
and the contents of the box.
</P>
<H4><A NAME="SEC52" HREF="#TOC52">\line</A></H4>
<P>
<A NAME="IDX112"></A>
</P>
<P>
<CODE>\line(x slope,y slope){length}</CODE>
</P>
<P>
The <CODE>\line</CODE> command draws a line of the specified <CODE>length</CODE> and
<CODE>slope</CODE>.
</P>
<P>
Note that LaTeX can only draw lines with slope = x/y, where x and y
have integer values from -6 through 6.
</P>
<H4><A NAME="SEC53" HREF="#TOC53">\linethickness</A></H4>
<P>
<A NAME="IDX113"></A>
</P>
<P>
<CODE>\linethickness{dimension}</CODE>
</P>
<P>
Declares the thickness of horizontal and vertical lines in a picture
environment to be <CODE>dimension</CODE>, which must be a positive length. It
does not affect the thickness of slanted lines and circles, or the
quarter circles drawn by <CODE>\oval</CODE> to form the corners of an oval.
</P>
<H4><A NAME="SEC54" HREF="#TOC54">\makebox</A></H4>
<P>
<A NAME="IDX114"></A>
</P>
<P>
<CODE>\makebox(width,height)[position]{...}</CODE>
</P>
<P>
The <CODE>\makebox</CODE> command for the picture environment is similar to
the normal <CODE>\makebox</CODE> command except that you must specify a
<CODE>width</CODE> and <CODE>height</CODE> in multiples of <CODE>\unitlength</CODE>.
</P>
<P>
The optional argument, <CODE>[position]</CODE>, specifies the quadrant that
your text appears in. You may select up to two of the following:
</P>
<UL>
<LI>
<CODE>t</CODE> - Moves the item to the top of the rectangle
<LI>
<CODE>b</CODE> - Moves the item to the bottom
<LI>
<CODE>l</CODE> - Moves the item to the left
<LI>
<CODE>r</CODE> - Moves the item to the right
</UL>
<P>
See section <A HREF="#SEC157">\makebox</A>.
</P>
<H4><A NAME="SEC55" HREF="#TOC55">\multiput</A></H4>
<P>
<A NAME="IDX115"></A>
</P>
<P>
<CODE>\multiput(x coord,y coord)(delta x,delta y){number of copies}{object}</CODE>
</P>
<P>
The <CODE>\multiput</CODE> command can be used when you are putting the same
object in a regular pattern across a picture.
</P>
<H4><A NAME="SEC56" HREF="#TOC56">\oval</A></H4>
<P>
<A NAME="IDX116"></A>
</P>
<P>
<CODE>\oval(width,height)[portion]</CODE>
</P>
<P>
The <CODE>\oval</CODE> command produces a rectangle with rounded corners. The
optional argument, <CODE>[portion]</CODE>, allows you to select part of the
oval.
</P>
<UL>
<LI>
<CODE>t</CODE> - Selects the top portion
<LI>
<CODE>b</CODE> - Selects the bottom portion
<LI>
<CODE>r</CODE> - Selects the right portion
<LI>
<CODE>l</CODE> - Selects the left portion
</UL>
<P>
Note that the "corners" of the oval are made with quarter circles with
a maximum radius of 20 pt, so large "ovals" will look more like boxes
with rounded corners.
</P>
<H4><A NAME="SEC57" HREF="#TOC57">\put</A></H4>
<P>
<A NAME="IDX117"></A>
</P>
<P>
<CODE>\put(x coord,y coord){ ... }</CODE>
</P>
<P>
The <CODE>\put</CODE> command places the item specified by the mandatory
argument at the given coordinates.
</P>
<H4><A NAME="SEC58" HREF="#TOC58">\shortstack</A></H4>
<P>
<A NAME="IDX118"></A>
</P>
<P>
<CODE>\shortstack[position]{... \\ ... \\ ...}</CODE>
</P>
<P>
The <CODE>\shortstack</CODE> command produces a stack of objects. The valid
positions are:
</P>
<UL>
<LI>
<CODE>r</CODE> - Moves the objects to the right of the stack
<LI>
<CODE>l</CODE> - Moves the objects to the left of the stack
<LI>
<CODE>c</CODE> - Moves the objects to the centre of the stack (default)
</UL>
<H4><A NAME="SEC59" HREF="#TOC59">\vector</A></H4>
<P>
<A NAME="IDX119"></A>
</P>
<P>
<CODE>\vector(x slope,y slope){length}</CODE>
</P>
<P>
The <CODE>\vector</CODE> command draws a line with an arrow of the specified
length and slope. The <CODE>x</CODE> and <CODE>y</CODE> values must lie between -4
and +4, inclusive.
</P>
<H3><A NAME="SEC60" HREF="#TOC60">quotation</A></H3>
<P>
<A NAME="IDX120"></A>
<A NAME="IDX121"></A>
<A NAME="IDX122"></A>
</P>
<PRE>
\begin{quotation}
text
\end{quotation}
</PRE>
<P>
The margins of the <CODE>quotation</CODE> environment are indented on the left
and the right. The text is justified at both margins and there is
paragraph indentation. Leaving a blank line between text produces a new
paragraph.
</P>
<H3><A NAME="SEC61" HREF="#TOC61">quote</A></H3>
<P>
<A NAME="IDX123"></A>
<A NAME="IDX124"></A>
<A NAME="IDX125"></A>
</P>
<PRE>
\begin{quote}
text
\end{quote}
</PRE>
<P>
The margins of the <CODE>quote</CODE> environment are indented on the left and
the right. The text is justified at both margins. Leaving a blank line
between text produces a new paragraph.
</P>
<H3><A NAME="SEC62" HREF="#TOC62">tabbing</A></H3>
<P>
<A NAME="IDX126"></A>
<A NAME="IDX127"></A>
<A NAME="IDX128"></A>
<PRE>
\begin{tabbing}
text \= more text \= still more text \= last text \\
second row \> \> more \\
.
.
.
\end{tabbing}
</PRE>
<P>
The <CODE>tabbing</CODE> environment provides a way to align text in columns.
It works by setting tab stops and tabbing to them much the way you do
with an ordinary typewriter.
</P>
<P>
It is best suited for cases where the width of each column is constant
and known in advance.
</P>
<P>
This environment can be broken across pages, unlike the <CODE>tabular</CODE>
environment.
</P>
<P>
The following commands can be used inside a <CODE>tabbing</CODE> enviroment:
</P>
<DL COMPACT>
<DT><CODE><A NAME="IDX129">\=</A></CODE>
<DD>
Sets a tab stop at the current position.
<DT><CODE><A NAME="IDX130">\></A></CODE>
<DD>
Advances to the next tab stop.
<DT><CODE><A NAME="IDX131">\<</A></CODE>
<DD>
This command allows you to put something to the left of the
local margin without changing the margin.
Can only be used at the start of the line.
<DT><CODE><A NAME="IDX132">\+</A></CODE>
<DD>
Moves the left margin of the next and all the
following commands one tab stop to the right.
<DT><CODE><A NAME="IDX133">\-</A></CODE>
<DD>
Moves the left margin of the next and all the
following commands one tab stop to the left.
<DT><CODE><A NAME="IDX134">\'</A></CODE>
<DD>
Moves everything that you have typed so far in the
current column, i.e. everything from the most recent <CODE>\></CODE>,
<CODE>\<</CODE>, <CODE>\'</CODE>, <CODE>\\</CODE>, or <CODE>\kill</CODE> command, to the right
of the previous column, flush against the current column's tab stop.
<DT><CODE><A NAME="IDX135">\`</A></CODE>
<DD>
Allows you to put text flush right against any tab stop, including tab
stop 0. However, it can't move text to the right of the last column
because there's no tab stop there. The <CODE>\`</CODE> command moves all the
text that follows it, up to the <CODE>\\</CODE> or <CODE>\end{tabbing}</CODE>
command that ends the line, to the right margin of the tabbing
environment. There must be no <CODE>\></CODE> or <CODE>\'</CODE> command between
the <CODE>\`</CODE> and the command that ends the line.
<DT><CODE><A NAME="IDX136">\kill</A></CODE>
<DD>
Sets tab stops without producing
text. Works just like <CODE>\\</CODE> except that it throws away the
current line instead of producing output for it. The effect of any
<CODE>\=</CODE>, <CODE>\+</CODE> or <CODE>\-</CODE> commands in that line remain in
effect.
<DT><CODE><A NAME="IDX137">\pushtabs</A></CODE>
<DD>
Saves all current tab stop positions. Useful for
temporarily changing tab stop positions in the middle of a
<CODE>tabbing</CODE> environment.
<DT><CODE><A NAME="IDX138">\pushtabs</A></CODE>
<DD>
Restores the tab stop positions saved by the last <CODE>\pushtabs</CODE>.
<DT><CODE><A NAME="IDX139">\a</A></CODE>
<DD>
In a <CODE>tabbing</CODE> environment, the commands <CODE>\=</CODE>, <CODE>\'</CODE> and
<CODE>\`</CODE> do not produce accents as normal. Instead, the commands
<CODE>\a=</CODE>, <CODE>\a'</CODE> and <CODE>\a`</CODE> are used.
</DL>
<P>
This example typesets a Pascal function in a traditional format:
</P>
<PRE>
\begin{tabbing}
function \= fact(n : integer) : integer;\\
\> begin \= \+ \\
\> if \= n $>$ 1 then \+ \\
fact := n * fact(n-1) \- \\
else \+ \\
fact := 1; \-\- \\
end;\\
\end{tabbing}
</PRE>
<H3><A NAME="SEC63" HREF="#TOC63">table</A></H3>
<P>
<A NAME="IDX140"></A>
<A NAME="IDX141"></A>
<A NAME="IDX142"></A>
</P>
<PRE>
\begin{table}[placement]
body of the table
\caption{table title}
\end{table}
</PRE>
<P>
Tables are objects that are not part of the normal text, and are
usually "floated" to a convenient place, like the top of a page.
Tables will not be split between two pages.
</P>
<P>
The optional argument <CODE>[placement]</CODE> determines where LaTeX will try
to place your table. There are four places where LaTeX can possibly put
a float:
</P>
<UL>
<LI>
<CODE>h</CODE> : Here - at the position in the text where the table
environment appears.
<LI>
<CODE>t</CODE> : Top - at the top of a text page.
<LI>
<CODE>b</CODE> : Bottom - at the bottom of a text page.
<LI>
<CODE>p</CODE> : Page of floats - on a separate float page, which is a page
containing no text, only floats.
</UL>
<P>
The standard <CODE>report</CODE> and <CODE>article</CODE> classes use the default
placement <CODE>[tbp]</CODE>.
</P>
<P>
The body of the table is made up of whatever text, LaTeX commands, etc.,
you wish. The <CODE>\caption</CODE> command allows you to title your table.
</P>
<H3><A NAME="SEC64" HREF="#TOC64">tabular</A></H3>
<P>
<A NAME="IDX143"></A>
<A NAME="IDX144"></A>
<A NAME="IDX145"></A>
</P>
<PRE>
\begin{tabular}[pos]{cols}
column 1 entry & column 2 entry ... & column n entry \\
.
.
.
\end{tabular}
</PRE>
<P>
or
</P>
<PRE>
\begin{tabular*}{width}[pos]{cols}
column 1 entry & column 2 entry ... & column n entry \\
.
.
.
\end{tabular*}
</PRE>
<P>
These environments produce a box consisting of a sequence of rows of
items, aligned vertically in columns. The mandatory and optional
arguments consist of:
</P>
<DL COMPACT>
<DT><CODE>width</CODE>
<DD>
Specifies the width of the <CODE>tabular*</CODE> environment. There must be
rubber space between columns that can stretch to fill out the specified
width.
<DT><CODE>pos</CODE>
<DD>
Specifies the vertical position; default is alignment on the centre of
the environment.
<UL>
<LI>
<CODE>t</CODE> - align on top row
<LI>
<CODE>b</CODE> - align on bottom row
</UL>
<DT><CODE>cols</CODE>
<DD>
Specifies the column formatting. It consists of a sequence of the
following specifiers, corresponding to the sequence of columns and
intercolumn material.
<UL>
<LI>
<CODE>l</CODE> - A column of left-aligned items.
<LI>
<CODE>r</CODE> - A column of right-aligned items.
<LI>
<CODE>c</CODE> - A column of centred items.
<LI>
<CODE>|</CODE> - A vertical line the full height and depth of the environment.
<LI>
<CODE>@{text}</CODE> - This inserts <CODE>text</CODE> in every row. An @-expression
suppresses the intercolumn space normally inserted between columns; any
desired space between the inserted text and the adjacent items must be
included in text. An <CODE>\extracolsep{wd}</CODE> command in an
@-expression causes an extra space of width <CODE>wd</CODE> to appear to the
left of all subsequent columns, until countermanded by another
<CODE>\extracolsep</CODE> command. Unlike ordinary intercolumn space, this
extra space is not suppressed by an @-expression. An
<CODE>\extracolsep</CODE> command can be used only in an @-expression in the
<CODE>cols</CODE> argument.
<LI>
<CODE>p{wd}</CODE> - Produces a column with each item typeset in a parbox of
width <CODE>wd</CODE>, as if it were the argument of a <CODE>\parbox[t]{wd}</CODE>
command. However, a <CODE>\\</CODE> may not appear in the item, except in the
following situations:
<OL>
<LI>
inside an environment like <CODE>minipage</CODE>, <CODE>array</CODE>, or <CODE>tabular</CODE>.
<LI>
inside an explicit <CODE>\parbox</CODE>.
<LI>
in the scope of a <CODE>\centering</CODE>, <CODE>\raggedright</CODE>, or <CODE>\raggedleft</CODE>
declaration. The latter declarations must appear inside braces or an
environment when used in a <CODE>p</CODE>-column element.
</OL>
<LI>
<CODE>*{num}{cols}</CODE> - Equivalent to <CODE>num</CODE> copies of
<CODE>cols</CODE>, where <CODE>num</CODE> is any positive integer and <CODE>cols</CODE> is
any list of column-specifiers, which may contain another
<CODE>*-expression</CODE>.
</UL>
</DL>
<P>
These commands can be used inside a <CODE>tabular</CODE> environment:
</P>
<UL>
<LI><A HREF="#SEC65">\cline</A>: Draw a horizontal line spanning some columns.
<LI><A HREF="#SEC66">\hline</A>: Draw a horizontal line spanning all columns.
<LI><A HREF="#SEC67">\multicolumn</A>: Make an item spanning several columns.
<LI><A HREF="#SEC68">\vline</A>: Draw a vertical line.
</UL>
<H4><A NAME="SEC65" HREF="#TOC65">\cline</A></H4>
<P>
<A NAME="IDX146"></A>
</P>
<P>
<CODE>\cline{i-j}</CODE>
</P>
<P>
The <CODE>\cline</CODE> command draws horizontal lines across the columns
specified, beginning in column <CODE>i</CODE> and ending in column <CODE>j</CODE>,
which are identified in the mandatory argument.
</P>
<H4><A NAME="SEC66" HREF="#TOC66">\hline</A></H4>
<P>
<A NAME="IDX147"></A>
</P>
<P>
The <CODE>\hline</CODE> command will draw a horizontal line the width of the
table. It's most commonly used to draw a line at the top, bottom, and
between the rows of the table.
</P>
<H4><A NAME="SEC67" HREF="#TOC67">\multicolumn</A></H4>
<P>
<A NAME="IDX148"></A>
</P>
<P>
<CODE>\multicolumn{cols}{pos}{text}</CODE>
</P>
<P>
The <CODE>\multicolumn</CODE> is used to make an entry that spans several
columns. The first mandatory argument, <CODE>cols</CODE>, specifies the
number of columns to span. The second mandatory argument, <CODE>pos</CODE>,
specifies the formatting of the entry; <CODE>c</CODE> for centred, <CODE>l</CODE>
for flushleft, <CODE>r</CODE> for flushright. The third mandatory argument,
<CODE>text</CODE>, specifies what text is to make up the entry.
</P>
<H4><A NAME="SEC68" HREF="#TOC68">\vline</A></H4>
<P>
<A NAME="IDX149"></A>
</P>
<P>
The <CODE>\vline</CODE> command will draw a vertical line extending the full
height and depth of its row. An <CODE>\hfill</CODE> command can be used to
move the line to the edge of the column. It can also be used in an
@-expression.
</P>
<H3><A NAME="SEC69" HREF="#TOC69">thebibliography</A></H3>
<P>
<A NAME="IDX150"></A>
<A NAME="IDX151"></A>
</P>
<PRE>
\begin{thebibliography}{widest-label}
\bibitem[label]{cite_key}
.
.
.
\end{thebibliography}
</PRE>
<P>
The <CODE>thebibliography</CODE> environment produces a bibliography or
reference list. In the <CODE>article</CODE> class, this reference list is
labelled "References"; in the <CODE>report</CODE> class, it is labelled
"Bibliography".
</P>
<UL>
<LI>
<CODE>widest-label</CODE>: Text that, when printed, is approximately as wide
as the widest item label produces by the <CODE>\bibitem</CODE> commands.
</UL>
<UL>
<LI><A HREF="#SEC70">\bibitem</A>: Specify a bibliography item.
<LI><A HREF="#SEC71">\cite</A>: Refer to a bibliography item.
<LI><A HREF="#SEC72">\nocite</A>: Include an item in the bibliography.
<LI><A HREF="#SEC73">Using BibTeX</A>: Automatic generation of bibliographies.
</UL>
<H4><A NAME="SEC70" HREF="#TOC70">\bibitem</A></H4>
<P>
<A NAME="IDX152"></A>
</P>
<P>
<CODE>\bibitem[label]{cite_key}</CODE>
</P>
<P>
The <CODE>\bibitem</CODE> command generates an entry labelled by <CODE>label</CODE>.
If the <CODE>label</CODE> argument is missing, a number is generated as the
<CODE>label</CODE>, using the <CODE>enumi</CODE> counter. The <CODE>cite_key</CODE> is
any sequence of letters, numbers, and punctuation symbols not containing
a comma. This command writes an entry on the <TT>`.aux'</TT> file
containing <CODE>cite_key</CODE> and the item's <CODE>label</CODE>. When this
<TT>`.aux'</TT> file is read by the <CODE>\begin{document}</CODE> command, the
item's <CODE>label</CODE> is associated with <CODE>cite_key</CODE>, causing the
reference to <CODE>cite_key</CODE> by a <CODE>\cite</CODE> command to produce the
associated <CODE>label</CODE>.
</P>
<H4><A NAME="SEC71" HREF="#TOC71">\cite</A></H4>
<P>
<A NAME="IDX153"></A>
</P>
<P>
<CODE>\cite[text]{key_list}</CODE>
</P>
<P>
The <CODE>key_list</CODE> argument is a list of citation keys. This command
generates an in-text citation to the references associated with the keys
in <CODE>key_list</CODE> by entries on the <TT>`.aux'</TT> file read by the
<CODE>\begin{document}</CODE> command.
</P>
<P>
The optional <CODE>text</CODE> argument will appear after the citation,
i.e. <CODE>\cite[p. 2]{knuth}</CODE> might produce `[Knuth, p. 2]'.
</P>
<H4><A NAME="SEC72" HREF="#TOC72">\nocite</A></H4>
<P>
<A NAME="IDX154"></A>
</P>
<P>
<CODE>\nocite{key_list}</CODE>
</P>
<P>
The <CODE>\nocite</CODE> command produces no text, but writes <CODE>key_list</CODE>,
which is a list of one or more citation keys, on the <TT>`.aux'</TT> file.
</P>
<H4><A NAME="SEC73" HREF="#TOC73">Using BibTeX</A></H4>
<P>
<A NAME="IDX155"></A>
<A NAME="IDX156"></A>
<A NAME="IDX157"></A>
<A NAME="IDX158"></A>
<A NAME="IDX159"></A>
</P>
<P>
If you use the BibTeX program by Oren Patashnik (highly recommended if
you need a bibliography of more than a couple of titles) to maintain
your bibliography, you don't use the <CODE>thebibliography</CODE>
environment. Instead, you include the lines
</P>
<PRE>
\bibliographystyle{style}
\bibliography{bibfile}
</PRE>
<P>
where <CODE>style</CODE> refers to a file <CODE>style.bst</CODE>, which defines how
your citations will look. The standard styles distributed with BibTeX
are:
</P>
<DL COMPACT>
<DT><CODE>alpha</CODE>
<DD>
Sorted alphabetically. Labels are formed from name of author and year of
publication.
<DT><CODE>plain</CODE>
<DD>
Sorted alphabetically. Labels are numeric.
<DT><CODE>unsrt</CODE>
<DD>
Like <CODE>plain</CODE>, but entries are in order of citation.
<DT><CODE>abbrv</CODE>
<DD>
Like <CODE>plain</CODE>, but more compact labels.
</DL>
<P>
In addition, numerous other BibTeX style files exist tailored to the
demands of various publications.
</P>
<P>
The argument to <CODE>\bibliography</CODE> refers to the file
<CODE>bibfile.bib</CODE>, which should contain your database in BibTeX
format. Only the entries referred to via <CODE>\cite</CODE> and <CODE>\nocite</CODE>
will be listed in the bibliography.
</P>
<H3><A NAME="SEC74" HREF="#TOC74">theorem</A></H3>
<P>
<A NAME="IDX160"></A>
<A NAME="IDX161"></A>
</P>
<PRE>
\begin{theorem}
theorem text
\end{theorem}
</PRE>
<P>
The <CODE>theorem</CODE> environment produces "Theorem x" in boldface followed
by your theorem text.
</P>
<H3><A NAME="SEC75" HREF="#TOC75">titlepage</A></H3>
<P>
<A NAME="IDX162"></A>
<A NAME="IDX163"></A>
<A NAME="IDX164"></A>
</P>
<PRE>
\begin{titlepage}
text
\end{titlepage}
</PRE>
<P>
The <CODE>titlepage</CODE> environment creates a title page, i.e. a page with no
printed page number or heading. It also causes the following page to be
numbered page one. Formatting the title page is left to you. The
<CODE><A NAME="IDX165">\today</A></CODE> command comes in handy for title pages.
</P>
<P>
Note that you can use the <CODE>\maketitle</CODE> (see section <A HREF="#SEC132">\maketitle</A>) command to
produce a standard title page.
</P>
<H3><A NAME="SEC76" HREF="#TOC76">verbatim</A></H3>
<P>
<A NAME="IDX166"></A>
<A NAME="IDX167"></A>
<A NAME="IDX168"></A>
<A NAME="IDX169"></A>
<A NAME="IDX170"></A>
</P>
<PRE>
\begin{verbatim}
text
\end{verbatim}
</PRE>
<P>
The <CODE>verbatim</CODE> environment is a paragraph-making environment that
gets LaTeX to print exactly what you type in. It turns LaTeX into a
typewriter with carriage returns and blanks having the same effect that
they would on a typewriter.
</P>
<UL>
<LI><A HREF="#SEC77">\verb</A>: The macro form of the <CODE>verbatim</CODE> environment.
</UL>
<H4><A NAME="SEC77" HREF="#TOC77">\verb</A></H4>
<P>
<A NAME="IDX171"></A>
<A NAME="IDX172"></A>
</P>
<P>
<CODE>\verb char literal_text char</CODE>
</P>
<P>
<CODE>\verb*char literal_text char</CODE>
</P>
<P>
Typesets <CODE>literal_text</CODE> exactly as typed, including special
characters and spaces, using a typewriter (<CODE>\tt</CODE>) type style.
There may be no space between <CODE>\verb</CODE> or <CODE>\verb*</CODE> and
<CODE>char</CODE> (space is shown here only for clarity). The <CODE>*-form</CODE>
differs only in that spaces are printed
as `\verb*| |'.
</P>
<H3><A NAME="SEC78" HREF="#TOC78">verse</A></H3>
<P>
<A NAME="IDX173"></A>
<A NAME="IDX174"></A>
</P>
<PRE>
\begin{verse}
text
\end{verse}
</PRE>
<P>
The <CODE>verse</CODE> environment is designed for poetry, though you may find
other uses for it.
</P>
<P>
The margins are indented on the left and the right. Separate the lines
of each stanza with <CODE>\\</CODE>, and use one or more blank lines to
separate the stanzas.
</P>
<h2><A NAME="SEC79">Footnotes</A></h2>
<P>
<A NAME="IDX175"></A>
</P>
<P>
Footnotes can be produced in one of two ways. They can be
produced with one command, the <CODE>\footnote</CODE> command. They can also
be produced with two commands, the <CODE>\footnotemark</CODE> and the
<CODE>\footnotetext</CODE> commands. See the specific command for information
on why you would use one over the other.
</P>
<UL>
<LI><A HREF="#SEC80">\footnote</A>: Insert a footnote.
<LI><A HREF="#SEC81">\footnotemark</A>: Insert footnote mark only.
<LI><A HREF="#SEC82">\footnotetext</A>: Insert footnote text only.
</UL>
<H3><A NAME="SEC80" HREF="#TOC80">\footnote</A></H3>
<P>
<A NAME="IDX176"></A>
</P>
<P>
<CODE>\footnote[number]{text}</CODE>
</P>
<P>
The <CODE>\footnote</CODE> command places the numbered footnote <CODE>text</CODE> at
the bottom of the current page. The optional argument, <CODE>number</CODE>,
is used to change the default footnote number. This command can only be
used in outer paragraph mode; i.e., you cannot use it in sectioning
commands like <CODE>\chapter</CODE>, in figures, tables or in a <CODE>tabular</CODE>
environment.
</P>
<H3><A NAME="SEC81" HREF="#TOC81">\footnotemark</A></H3>
<P>
<A NAME="IDX177"></A>
</P>
<P>
The <CODE>\footnotemark</CODE> command puts the footnote <CODE>number</CODE> in the
text. This command can be used in inner paragraph mode. The text of
the footnote is supplied by the <CODE>\footnotetext</CODE> command.
</P>
<P>
This command can be used to produce several consecutive footnote markers
referring to the same footnote by using
</P>
<P>
<CODE>\footnotemark[\value{footnote}]</CODE>
</P>
<P>
after the first <CODE>\footnote</CODE> command.
</P>
<H3><A NAME="SEC82" HREF="#TOC82">\footnotetext</A></H3>
<P>
<A NAME="IDX178"></A>
</P>
<P>
<CODE>\footnotetext[number]{text}</CODE>
</P>
<P>
The <CODE>\footnotetext</CODE> command produces the <CODE>text</CODE> to be placed
at the bottom of the page. This command can come anywhere after the
<CODE>\footnotemark</CODE> command. The <CODE>\footnotetext</CODE> command must
appear in outer paragraph mode.
</P>
<P>
The optional argument, <CODE>number</CODE>, is used to change the default
footnote number.
</P>
<h2><A NAME="SEC83">Lengths</A></h2>
<P>
<A NAME="IDX179"></A>
</P>
<P>
A <CODE>length</CODE> is a measure of distance. Many LaTeX commands take a
length as an argument.
</P>
<UL>
<LI><A HREF="#SEC84">\newlength</A>: Define a new length.
<LI><A HREF="#SEC85">\setlength</A>: Set the value of a length.
<LI><A HREF="#SEC86">\addtolength</A>: Add a quantity to a length.
<LI><A HREF="#SEC87">\settodepth</A>: Set a length to the depth of something.
<LI><A HREF="#SEC88">\settoheight</A>: Set a length to the height of something.
<LI><A HREF="#SEC89">\settowidth</A>: Set a length to the width of something.
<LI><A HREF="#SEC90">Predefined lengths</A>: Lengths that are, like, predefined.
</UL>
<H3><A NAME="SEC84" HREF="#TOC84">\newlength</A></H3>
<P>
<A NAME="IDX180"></A>
<A NAME="IDX181"></A>
</P>
<P>
<CODE>\newlength{\gnat}</CODE>
</P>
<P>
The <CODE>\newlength</CODE> command defines the mandatory argument,
<CODE>\gnat</CODE>, as a <CODE>length</CODE> command with a value of <CODE>0in</CODE>. An
error occurs if a <CODE>\gnat</CODE> command already exists.
</P>
<H3><A NAME="SEC85" HREF="#TOC85">\setlength</A></H3>
<P>
<A NAME="IDX182"></A>
<A NAME="IDX183"></A>
</P>
<P>
<CODE>\setlength{\gnat}{length}</CODE>
</P>
<P>
The <CODE>\setlength</CODE> command is used to set the value of a
<CODE>length</CODE> command. The <CODE>length</CODE> argument can be expressed in
any terms of length LaTeX understands, i.e., inches (<CODE>in</CODE>),
millimetres (<CODE>mm</CODE>), points (<CODE>pt</CODE>), etc.
</P>
<H3><A NAME="SEC86" HREF="#TOC86">\addtolength</A></H3>
<P>
<A NAME="IDX184"></A>
<A NAME="IDX185"></A>
</P>
<P>
<CODE>\addtolength{\gnat}{length}</CODE>
</P>
<P>
The <CODE>\addtolength</CODE> command increments a "length command" by the
amount specified in the <CODE>length</CODE> argument. It can be a negative
amount.
</P>
<H3><A NAME="SEC87" HREF="#TOC87">\settodepth</A></H3>
<P>
<A NAME="IDX186"></A>
</P>
<P>
<CODE>\settodepth{\gnat}{text}</CODE>
</P>
<P>
The <CODE>\settodepth</CODE> command sets the value of a <CODE>length</CODE> command
equal to the depth of the <CODE>text</CODE> argument.
</P>
<H3><A NAME="SEC88" HREF="#TOC88">\settoheight</A></H3>
<P>
<A NAME="IDX187"></A>
</P>
<P>
<CODE>\settoheight{\gnat}{text}</CODE>
</P>
<P>
The <CODE>\settoheight</CODE> command sets the value of a <CODE>length</CODE> command
equal to the height of the <CODE>text</CODE> argument.
</P>
<H3><A NAME="SEC89" HREF="#TOC89">\settowidth</A></H3>
<P>
<A NAME="IDX188"></A>
</P>
<P>
<CODE>\settowidth{\gnat}{text}</CODE>
</P>
<P>
The <CODE>\settowidth</CODE> command sets the value of a <CODE>length</CODE> command
equal to the width of the <CODE>text</CODE> argument.
</P>
<H3><A NAME="SEC90" HREF="#TOC90">Predefined lengths</A></H3>
<P>
<A NAME="IDX189"></A>
<A NAME="IDX190"></A>
</P>
<P>
<CODE><A NAME="IDX191">\width</A></CODE>
</P>
<P>
<CODE><A NAME="IDX192">\height</A></CODE>
</P>
<P>
<CODE><A NAME="IDX193">\depth</A></CODE>
</P>
<P>
<CODE><A NAME="IDX194">\totalheight</A></CODE>
</P>
<P>
These length parameters can be used in the arguments of the box-making
commands See section <A HREF="#SEC143">Spaces & Boxes</A>. They specify the natural width etc. of
the text in the box. <CODE>\totalheight</CODE> equals <CODE>\height</CODE> +
<CODE>\depth</CODE>. To make a box with the text stretched to double the
natural size, e.g., say
</P>
<P>
<CODE>\makebox[2\width]{Get a stretcher}</CODE>
</P>
<h2><A NAME="SEC91" >Letters</A></h2>
<P>
<A NAME="IDX195"></A>
<A NAME="IDX196"></A>
</P>
<P>
You can use LaTeX to typeset letters, both personal and business. The
<CODE>letter</CODE> document class is designed to make a number of letters at
once, although you can make just one if you so desire.
</P>
<P>
Your <TT>`.tex'</TT> source file has the same minimum commands as the other
document classes, i.e., you must have the following commands as a
minimum:
</P>
<PRE>
\documentclass{letter}
\begin{document}
... letters ...
\end{document}
</PRE>
<P>
Each letter is a <CODE>letter</CODE> environment, whose argument is the name
and address of the recipient. For example, you might have:
</P>
<PRE>
\begin{letter}{Mr. Joe Smith\\ 2345 Princess St.
\\ Edinburgh, EH1 1AA}
...
\end{letter}
</PRE>
<P>
The letter itself begins with the <CODE>\opening</CODE> command. The text of
the letter follows. It is typed as ordinary LaTeX input. Commands that
make no sense in a letter, like <CODE>\chapter</CODE>, do not work. The letter
closes with a <CODE>\closing</CODE> command.
</P>
<P>
After the <CODE>closing</CODE>, you can have additional material. The
<CODE>\cc</CODE> command produces the usual "cc: ...". There's also a similar
<CODE>\encl</CODE> command for a list of enclosures. With both these commands,
use <CODE>\\</CODE> to separate the items.
</P>
<P>
These commands are used with the <CODE>letter</CODE> class:
</P>
<UL>
<LI><A HREF="#SEC92">\address</A>: Your return address.
<LI><A HREF="#SEC93">\cc</A>: Cc list.
<LI><A HREF="#SEC94">\closing</A>: Saying goodbye.
<LI><A HREF="#SEC95">\encl</A>: List of enclosed material.
<LI><A HREF="#SEC96">\location</A>: Your organisation's address.
<LI><A HREF="#SEC97">\makelabels</A>: Making address labels.
<LI><A HREF="#SEC98">\name</A>: Your name, for the return address.
<LI><A HREF="#SEC99">\opening</A>: Saying hello.
<LI><A HREF="#SEC100">\ps</A>: Adding a postscript.
<LI><A HREF="#SEC101">\signature</A>: Your signature.
<LI><A HREF="#SEC102">\startbreaks</A>: Allow page breaks.
<LI><A HREF="#SEC103">\stopbreaks</A>: Disallow page breaks.
<LI><A HREF="#SEC104">\telephone</A>: Your phone number.
</UL>
<H3><A NAME="SEC92" HREF="#TOC92">\address</A></H3>
<P>
<A NAME="IDX197"></A>
</P>
<P>
<CODE>\address{Return address}</CODE>
</P>
<P>
The return address, as it should appear on the letter and the envelope.
Separate lines of the address should be separated by <CODE>\\</CODE> commands.
If you do not make an <CODE>\address</CODE> declaration, then the letter will
be formatted for copying onto your organisation's standard letterhead.
If you give an <CODE>\address</CODE> declaration, then the letter will be formatted
as a personal letter.
</P>
<H3><A NAME="SEC93" HREF="#TOC93">\cc</A></H3>
<P>
<A NAME="IDX198"></A>
<A NAME="IDX199"></A>
</P>
<P>
<CODE>\cc{Kate Schechter\\Rob McKenna}</CODE>
</P>
<P>
Generate a list of other persons the letter was sent to. Each name is
printed on a separate line.
</P>
<H3><A NAME="SEC94" HREF="#TOC94">\closing</A></H3>
<P>
<A NAME="IDX200"></A>
<A NAME="IDX201"></A>
</P>
<P>
<CODE>\closing{text}</CODE>
</P>
<P>
The letter closes with a <CODE>\closing</CODE> command, i.e.,
<PRE>
\closing{Best Regards,}
</PRE>
<H3><A NAME="SEC95" HREF="#TOC95">\encl</A></H3>
<P>
<A NAME="IDX202"></A>
<A NAME="IDX203"></A>
</P>
<P>
<CODE>\encl{CV\\Certificates}</CODE>
</P>
<P>
Generate a list of enclosed material.
</P>
<H3><A NAME="SEC96" HREF="#TOC96">\location</A></H3>
<P>
<A NAME="IDX204"></A>
</P>
<P>
<CODE>\location{address}</CODE>
</P>
<P>
This modifies your organisation's standard address. This only appears
if the <CODE>firstpage</CODE> pagestyle is selected.
</P>
<H3><A NAME="SEC97" HREF="#TOC97">\makelabels</A></H3>
<P>
<A NAME="IDX205"></A>
</P>
<P>
<CODE>\makelabels{number}</CODE>
</P>
<P>
If you issue this command in the preamble, LaTeX will create a sheet of
address labels. This sheet will be output before the letters.
</P>
<H3><A NAME="SEC98" HREF="#TOC98">\name</A></H3>
<P>
<A NAME="IDX206"></A>
</P>
<P>
<CODE>\name{June Davenport}</CODE>
</P>
<P>
Your name, used for printing on the envelope together with the return
address.
</P>
<H3><A NAME="SEC99" HREF="#TOC99">\opening</A></H3>
<P>
<A NAME="IDX208"></A>
</P>
<P>
<CODE>\opening{text}</CODE>
</P>
<P>
The letter begins with the <CODE>\opening</CODE> command. The mandatory
argument, <CODE>text</CODE>, is whatever text you wish to start your letter,
i.e.,
<PRE>
\opening{Dear Joe,}
</PRE>
<H3><A NAME="SEC100" HREF="#TOC100">\ps</A></H3>
<P>
<A NAME="IDX209"></A>
</P>
<P>
<CODE>\ps</CODE>
</P>
<P>
Use this command before a postscript.
</P>
<H3><A NAME="SEC101" HREF="#TOC101">\signature</A></H3>
<P>
<A NAME="IDX210"></A>
</P>
<P>
<CODE>\signature{Harvey Swick}</CODE>
</P>
<P>
Your name, as it should appear at the end of the letter underneath the
space for your signature. Items that should go on separate lines should
be separated by <CODE>\\</CODE> commands.
</P>
<H3><A NAME="SEC102" HREF="#TOC102">\startbreaks</A></H3>
<P>
<A NAME="IDX211"></A>
</P>
<P>
<CODE>\startbreaks</CODE>
</P>
<P>
Used after a <CODE>\stopbreaks</CODE> command to allow page breaks again.
</P>
<H3><A NAME="SEC103" HREF="#TOC103">\stopbreaks</A></H3>
<P>
<A NAME="IDX212"></A>
</P>
<P>
<CODE>\stopbreaks</CODE>
</P>
<P>
Inhibit page breaks until a <CODE>\startbreaks</CODE> command occurs.
</P>
<H3><A NAME="SEC104" HREF="#TOC104">\telephone</A></H3>
<P>
<A NAME="IDX213"></A>
</P>
<P>
<CODE>\telephone{number}</CODE>
</P>
<P>
This is your telephone number. This only appears if the
<CODE>firstpage</CODE> pagestyle is selected.
</P>
<h2><A NAME="SEC105" >Line & Page Breaking</A></h2>
<P>
<A NAME="IDX214"></A>
<A NAME="IDX215"></A>
<A NAME="IDX216"></A>
</P>
<P>
The first thing LaTeX does when processing ordinary text is to
translate your input file into a string of glyphs and spaces. To
produce a printed document, this string must be broken into lines, and
these lines must be broken into pages. In some environments, you do the
line breaking yourself with the <CODE>\\</CODE> command, but LaTeX usually
does it for you.
</P>
<UL>
<LI><A HREF="#SEC106">\\</A>: Start a new line.
<LI><A HREF="#SEC107">\- (hyphenation)</A>: Insert explicit hyphenation.
<LI><A HREF="#SEC108">\cleardoublepage</A>: Start a new right-hand page.
<LI><A HREF="#SEC109">\clearpage</A>: Start a new page.
<LI><A HREF="#SEC110">\enlargethispage</A>: Enlarge the current page a bit.
<LI><A HREF="#SEC111">\fussy</A>: Be fussy about line breaking.
<LI><A HREF="#SEC112">\hyphenation</A>: Tell LaTeX how to hyphenate a word.
<LI><A HREF="#SEC113">\linebreak</A>: Break the line.
<LI><A HREF="#SEC114">\newline</A>: Break the line prematurely.
<LI><A HREF="#SEC115">\newpage</A>: Start a new page.
<LI><A HREF="#SEC116">\nolinebreak</A>: Don't break the current line.
<LI><A HREF="#SEC117">\nopagebreak</A>: Don't make a page break here.
<LI><A HREF="#SEC118">\pagebreak</A>: Please make a page break here.
<LI><A HREF="#SEC119">\sloppy</A>: Be sloppy about line breaking.
</UL>
<H3><A NAME="SEC106" HREF="#TOC106">\\</A></H3>
<P>
<A NAME="IDX217"></A>
<A NAME="IDX218"></A>
</P>
<P>
<CODE>\\[*][extra-space]</CODE>
</P>
<P>
The <CODE>\\</CODE> command tells LaTeX to start a new line. It has an
optional argument, <CODE>extra-space</CODE>, that specifies how much extra
vertical space is to be inserted before the next line. This can be a
negative amount.
</P>
<P>
The <CODE>\\*</CODE> command is the same as the ordinary <CODE>\\</CODE> command
except that it tells LaTeX not to start a new page after the line.
</P>
<H3><A NAME="SEC107" HREF="#TOC107">\-</A></H3>
<P>
<A NAME="IDX219"></A>
<A NAME="IDX220"></A>
</P>
<P>
The <CODE>\-</CODE> command tells LaTeX that it may hyphenate the word at that
point. LaTeX is very good at hyphenating, and it will usually find all
correct hyphenation points. The <CODE>\-</CODE> command is used for the
exceptional cases.
</P>
<P>
Note that when you insert <CODE>\-</CODE> commands in a word, the word will
only be hyphenated at those points and not at any of the hyphenation
points that LaTeX might otherwise have chosen.
</P>
<H3><A NAME="SEC108" HREF="#TOC108">\cleardoublepage</A></H3>
<P>
<A NAME="IDX221"></A>
<A NAME="IDX222"></A>
</P>
<P>
The <CODE>\cleardoublepage</CODE> command ends the current page and causes all
figures and tables that have so far appeared in the input to be printed.
In a two-sided printing style, it also makes the next page a right-hand
(odd-numbered) page, producing a blank page if necessary.
</P>
<H3><A NAME="SEC109" HREF="#TOC109">\clearpage</A></H3>
<P>
<A NAME="IDX223"></A>
<A NAME="IDX224"></A>
</P>
<P>
The <CODE>\clearpage</CODE> command ends the current page and causes all
figures and tables that have so far appeared in the input to be printed.
</P>
<H3><A NAME="SEC110" HREF="#TOC110">\enlargethispage</A></H3>
<P>
<A NAME="IDX225"></A>
<A NAME="IDX226"></A>
</P>
<P>
<CODE>\enlargethispage{size}</CODE>
</P>
<P>
<CODE>\enlargethispage*{size}</CODE>
</P>
<P>
Enlarge the <CODE>\textheight</CODE> for the current page by the specified
amount; e.g. <CODE>\enlargethispage{\baselineskip}</CODE> will allow one
additional line.
</P>
<P>
The starred form tries to squeeze the material together on the page as
much as possible. This is normally used together with an explicit
<CODE>\pagebreak</CODE>.
</P>
<H3><A NAME="SEC111" HREF="#TOC111">\fussy</A></H3>
<P>
<A NAME="IDX227"></A>
</P>
<P>
<CODE>\fussy</CODE>
</P>
<P>
This declaration (which is the default) makes TeX more fussy about line
breaking. This can avoids too much space between words, but may produce
overfull boxes.
</P>
<P>
This command cancels the effect of a previous <CODE>\sloppy</CODE> command. section <A HREF="#SEC119">\sloppy</A>
</P>
<H3><A NAME="SEC112" HREF="#TOC112">\hyphenation</A></H3>
<P>
<A NAME="IDX228"></A>
<A NAME="IDX229"></A>
</P>
<P>
<CODE>\hyphenation{words}</CODE>
</P>
<P>
The <CODE>\hyphenation</CODE> command declares allowed hyphenation points,
where <CODE>words</CODE> is a list of words, separated by spaces, in which
each hyphenation point is indicated by a <CODE>-</CODE> character.
</P>
<H3><A NAME="SEC113" HREF="#TOC113">\linebreak</A></H3>
<P>
<A NAME="IDX230"></A>
<A NAME="IDX231"></A>
</P>
<P>
<CODE>\linebreak[number]</CODE>
</P>
<P>
The <CODE>\linebreak</CODE> command tells LaTeX to break the current line at
the point of the command. With the optional argument, <CODE>number</CODE>,
you can convert the <CODE>\linebreak</CODE> command from a demand to a
request. The number must be a number from 0 to 4. The higher the
number, the more insistent the request is.
</P>
<P>
The <CODE>\linebreak</CODE> command causes LaTeX to stretch the line so it
extends to the right margin.
</P>
<H3><A NAME="SEC114" HREF="#TOC114">\newline</A></H3>
<P>
<A NAME="IDX232"></A>
<A NAME="IDX233"></A>
</P>
<P>
The <CODE>\newline</CODE> command breaks the line right where it is. It can
only be used in paragraph mode.
</P>
<H3><A NAME="SEC115" HREF="#TOC115">\newpage</A></H3>
<P>
<A NAME="IDX234"></A>
<A NAME="IDX235"></A>
</P>
<P>
The <CODE>\newpage</CODE> command ends the current page.
</P>
<H3><A NAME="SEC116" HREF="#TOC116">\nolinebreak</A></H3>
<P>
<A NAME="IDX236"></A>
</P>
<P>
<CODE>\nolinebreak[number]</CODE>
</P>
<P>
The <CODE>\nolinebreak</CODE> command prevents LaTeX from breaking the current
line at the point of the command. With the optional argument,
<CODE>number</CODE>, you can convert the <CODE>\nolinebreak</CODE> command from a
demand to a request. The number must be a number from 0 to 4. The
higher the number, the more insistent the request is.
</P>
<H3><A NAME="SEC117" HREF="#TOC117">\nopagebreak</A></H3>
<P>
<A NAME="IDX237"></A>
</P>
<P>
<CODE>\nopagebreak[number]</CODE>
</P>
<P>
The <CODE>\nopagebreak</CODE> command prevents LaTeX from breaking the current
page at the point of the command. With the optional argument,
<CODE>number</CODE>, you can convert the <CODE>\nopagebreak</CODE> command from a
demand to a request. The number must be a number from 0 to 4. The
higher the number, the more insistent the request is.
</P>
<H3><A NAME="SEC118" HREF="#TOC118">\pagebreak</A></H3>
<P>
<A NAME="IDX238"></A>
<A NAME="IDX239"></A>
</P>
<P>
<CODE>\pagebreak[number]</CODE>
</P>
<P>
The <CODE>\pagebreak</CODE> command tells LaTeX to break the current page at
the point of the command. With the optional argument, <CODE>number</CODE>,
you can convert the <CODE>\pagebreak</CODE> command from a demand to a
request. The number must be a number from 0 to 4. The higher the
number, the more insistent the request is.
</P>
<H3><A NAME="SEC119" HREF="#TOC119">\sloppy</A></H3>
<P>
<A NAME="IDX240"></A>
</P>
<P>
<CODE>\sloppy</CODE>
</P>
<P>
This declaration makes TeX less fussy about line breaking. This can
prevent overfull boxes, but may leave too much space between words.
</P>
<P>
Lasts until a <CODE>\fussy</CODE> command is issued. section <A HREF="#SEC111">\fussy</A>.
</P>
<h2><A NAME="SEC120">Making Paragraphs</A> </h2>
<P>
<A NAME="IDX241"></A>
<A NAME="IDX242"></A>
</P>
<P>
A paragraph is ended by one or more completely blank lines -- lines not
containing even a <CODE>%</CODE>. A blank line should not appear where a new
paragraph cannot be started, such as in math mode or in the argument of
a sectioning command.
</P>
<UL>
<LI><A HREF="#SEC121">\indent</A>: Indent this paragraph.
<LI><A HREF="#SEC122">\noindent</A>: Do not indent this paragraph.
<LI><A HREF="#SEC123">\par</A>: Another way of writing a blank line.
</UL>
<H3><A NAME="SEC121" HREF="#TOC121">\indent</A></H3>
<P>
<A NAME="IDX243"></A>
<A NAME="IDX244"></A>
</P>
<P>
<CODE>\indent</CODE>
</P>
<P>
This produces a horizontal space whose width equals the width of the
paragraph indentation. It is used to add paragraph indentation where it
would otherwise be suppressed.
</P>
<H3><A NAME="SEC122" HREF="#TOC122">\noindent</A></H3>
<P>
<A NAME="IDX245"></A>
<A NAME="IDX246"></A>
</P>
<P>
<CODE>\noindent</CODE>
</P>
<P>
When used at the beginning of the paragraph, it suppresses the paragraph
indentation. It has no effect when used in the middle of a paragraph.
</P>
<H3><A NAME="SEC123" HREF="#TOC123">\par</A></H3>
<P>
<A NAME="IDX247"></A>
<A NAME="IDX248"></A>
</P>
<P>
Equivalent to a blank line; often used to make command or environment
definitions easier to read.
</P>
<h2><A NAME="SEC124">Margin Notes</A></h2>
<P>
<A NAME="IDX249"></A>
<A NAME="IDX250"></A>
<A NAME="IDX251"></A>
</P>
<P>
The command <CODE>\marginpar[left]{right}</CODE> creates a note in the margin.
The first line will be at the same height as the line in the text where
the <CODE>\marginpar</CODE> occurs.
</P>
<P>
When you only specify the mandatory argument <CODE>right</CODE>, the text will
be placed
</P>
<UL>
<LI>
in the right margin for one-sided layout
<LI>
in the outside margin for two-sided layout
<LI>
in the nearest margin for two-column layout.
</UL>
<P>
By issuing the command <CODE>\reversemarginpar</CODE>, you can force the marginal
notes to go into the opposite (inside) margin.
</P>
<P>
When you specify both arguments, <CODE>left</CODE> is used for the left
margin, and <CODE>right</CODE> is used for the right margin.
</P>
<P>
The first word will normally not be hyphenated; you can enable
hyphenation by prefixing the first word with a <CODE>\hspace{0pt}</CODE>
command.
</P>
<h2><A NAME="SEC125">Math Formulae</A> </h2>
<P>
<A NAME="IDX252"></A>
<A NAME="IDX253"></A>
<A NAME="IDX254"></A>
<A NAME="IDX255"></A>
<A NAME="IDX256"></A>
<A NAME="IDX257"></A>
<A NAME="IDX258"></A>
<A NAME="IDX259"></A>
</P>
<P>
There are three environments that put LaTeX in math mode:
</P>
<DL COMPACT>
<DT><CODE>math</CODE>
<DD>
For Formulae that appear right in the text.
<DT><CODE>displaymath</CODE>
<DD>
For Formulae that appear on their own line.
<DT><CODE>equation</CODE>
<DD>
The same as the displaymath environment except that it adds an equation
number in the right margin.
</DL>
<P>
The <CODE>math</CODE> environment can be used in both paragraph and LR mode,
but the <CODE>displaymath</CODE> and <CODE>equation</CODE> environments can be used
only in paragraph mode. The <CODE>math</CODE> and <CODE>displaymath</CODE>
environments are used so often that they have the following short forms:
</P>
<PRE>
\(...\) instead of \begin{math}...\end{math}
\[...\] instead of \begin{displaymath}...\end{displaymath}
</PRE>
<P>
In fact, the <CODE>math</CODE> environment is so common that it has an even
shorter form:
</P>
<PRE>
$ ... $ instead of \(...\)
</PRE>
<P>
<A NAME="IDX260"></A>
</P>
<UL>
<LI><A HREF="#SEC126">Subscripts & Superscripts</A>: Also known as exponent or index.
<LI><A HREF="#SEC127">Math Symbols</A>: Various mathematical squiggles.
<LI><A HREF="#SEC128">Spacing in Math Mode</A>: Thick, medium, thin and negative spaces.
<LI><A HREF="#SEC129">Math Miscellany</A>: Stuff that doesn't fit anywhere else.
</UL>
<H3><A NAME="SEC126" HREF="#TOC126">Subscripts & Superscripts</A></H3>
<P>
<A NAME="IDX261"></A>
<A NAME="IDX262"></A>
<A NAME="IDX263"></A>
<A NAME="IDX264"></A>
</P>
<P>
To get an expression <I>exp</I> to appear as a subscript, you just type
<CODE>_{</CODE><I>exp</I><CODE>}</CODE>. To get <I>exp</I> to appear as a superscript, you type
<CODE>^{</CODE><I>exp</I><CODE>}</CODE>. LaTeX handles superscripted superscripts and all of
that stuff in the natural way. It even does the right thing when
something has both a subscript and a superscript.
</P>
<H3><A NAME="SEC127" HREF="#TOC127">Math Symbols</A></H3>
<P>
<A NAME="IDX265"></A>
<A NAME="IDX266"></A>
<A NAME="IDX267"></A>
</P>
<P>
LaTeX provides almost any mathematical symbol you're likely to need. The
commands for generating them can be used only in math mode. For
example, if you include <CODE>$\pi$</CODE> in your source, you will get the
symbol
in your output.
</P>
<H3><A NAME="SEC128" HREF="#TOC128">Spacing in Math Mode</A></H3>
<P>
<A NAME="IDX268"></A>
<A NAME="IDX269"></A>
</P>
<P>
In a <CODE>math</CODE> environment, LaTeX ignores the spaces you type and puts
in the spacing that it thinks is best. LaTeX formats mathematics the
way it's done in mathematics texts. If you want different spacing,
LaTeX provides the following four commands for use in math mode:
</P>
<P>
<A NAME="IDX270"></A>
<A NAME="IDX271"></A>
<A NAME="IDX272"></A>
<A NAME="IDX273"></A>
</P>
<OL>
<LI>
<CODE>\;</CODE> - a thick space
<LI>
<CODE>\:</CODE> - a medium space
<LI>
<CODE>\,</CODE> - a thin space
<LI>
<CODE>\!</CODE> - a negative thin space
</OL>
<H3><A NAME="SEC129" HREF="#TOC129">Math Miscellany</A></H3>
<P>
<A NAME="IDX274"></A>
</P>
<DL COMPACT>
<DT><CODE><A NAME="IDX275">\cdots</A></CODE>
<DD>
Produces a horizontal ellipsis where the dots are raised to the centre
of the line.
eg.
<DT><CODE><A NAME="IDX276">\ddots</A></CODE>
<DD>
Produces a diagonal ellipsis.
eg.
<DT><CODE><A NAME="IDX277">\frac{num}{den}</A></CODE>
<DD>
Produces the fraction <CODE>num</CODE> divided by <CODE>den</CODE>.
eg.
<DT><CODE><A NAME="IDX278">\ldots</A></CODE>
<DD>
Produces an ellipsis. This command works in
any mode, not just math mode.
eg.
<DT><CODE><A NAME="IDX279">\overbrace{text}</A></CODE>
<DD>
Generates a brace over text.
eg.
<DT><CODE><A NAME="IDX280">\overline{text}</A></CODE>
<DD>
Causes the argument text to be overlined.
eg.
<DT><CODE><A NAME="IDX281">\sqrt[root]{arg}</A></CODE>
<DD>
Produces the square root of its argument. The
optional argument, <CODE>root</CODE>, determines what root to produce, i.e.,
the cube root of <CODE>x+y</CODE> would be typed as <CODE>$\sqrt[3]{x+y}$</CODE>.
eg.
<DT><CODE><A NAME="IDX282">\underbrace{text}</A></CODE>
<DD>
Generates text with a brace underneath.
eg.
<DT><CODE><A NAME="IDX283">\underline{text}</A></CODE>
<DD>
Causes the argument text to be underlined.
This command can also be used in paragraph and LR modes.
eg.
<DT><CODE><A NAME="IDX284">\vdots</A></CODE>
<DD>
Produces a vertical ellipsis.
eg.
</DL>
<h2><A NAME="SEC130">Modes</A> </h2>
<P>
<A NAME="IDX285"></A>
<A NAME="IDX286"></A>
<A NAME="IDX287"></A>
<A NAME="IDX288"></A>
<A NAME="IDX289"></A>
</P>
<P>
When LaTeX is processing your input text, it is always in one of three
modes:
</P>
<UL>
<LI>
Paragraph mode
<LI>
Math mode
<LI>
Left-to-right mode, called LR mode for short
</UL>
<P>
LaTeX changes mode only when it goes up or down a staircase to a
different level, though not all level changes produce mode changes.
Mode changes occur only when entering or leaving an environment, or when
LaTeX is processing the argument of certain text-producing commands.
</P>
<P>
"Paragraph mode" is the most common; it's the one LaTeX is in when
processing ordinary text. In that mode, LaTeX breaks your text into
lines and breaks the lines into pages. LaTeX is in "math mode" when
it's generating a mathematical formula. In "LR mode", as in paragraph
mode, LaTeX considers the output that it produces to be a string of
words with spaces between them. However, unlike paragraph mode, LaTeX
keeps going from left to right; it never starts a new line in LR mode.
Even if you put a hundred words into an <CODE>\mbox</CODE>, LaTeX would keep
typesetting them from left to right inside a single box, and then
complain because the resulting box was too wide to fit on the line.
</P>
<P>
LaTeX is in LR mode when it starts making a box with an <CODE>\mbox</CODE>
command. You can get it to enter a different mode inside the box - for
example, you can make it enter math mode to put a formula in the box.
There are also several text-producing commands and environments for
making a box that put LaTeX in paragraph mode. The box make by one of
these commands or environments will be called a <CODE>parbox</CODE>. When
LaTeX is in paragraph mode while making a box, it is said to be in
"inner paragraph mode". Its normal paragraph mode, which it starts out
in, is called "outer paragraph mode".
</P>
<h2><A NAME="SEC131">Page Styles</A></h2>
<P>
<A NAME="IDX290"></A>
<A NAME="IDX291"></A>
</P>
<P>
The <CODE>\documentclass</CODE> command determines the size and position of
the page's head and foot. The page style determines what goes in them.
</P>
<UL>
<LI><A HREF="#SEC132">\maketitle</A>: Generate a title page.
<LI><A HREF="#SEC137">\pagenumbering</A>: Set the style used for page numbers.
<LI><A HREF="#SEC138">\pagestyle</A>: Change the headings/footings style.
<LI><A HREF="#SEC141">\thispagestyle</A>: Change the headings/footings style for this page.
</UL>
<H3><A NAME="SEC132" HREF="#TOC132">\maketitle</A></H3>
<P>
<A NAME="IDX292"></A>
<A NAME="IDX293"></A>
</P>
<P>
<CODE>\maketitle</CODE>
</P>
<P>
The <CODE>\maketitle</CODE> command generates a title on a separate title page
- except in the <CODE>article</CODE> class, where the title normally goes at
the top of the first page. Information used to produce the title is
obtained from the following declarations:
</P>
<P>
See section <A HREF="#SEC131">Page Styles</A> for the commands to give the information.
</P>
<UL>
<LI><A HREF="#SEC133">\author</A>: Who wrote this stuff?
<LI><A HREF="#SEC134">\date</A>: The date the document was created.
<LI><A HREF="#SEC135">\thanks</A>: A special form of footnote.
<LI><A HREF="#SEC136">\title</A>: How to set the document title.
</UL>
<H3><A NAME="SEC133" HREF="#TOC133">\author</A></H3>
<P>
<A NAME="IDX294"></A>
<A NAME="IDX295"></A>
</P>
<P>
<CODE>\author{names}</CODE>
</P>
<P>
The <CODE>\author</CODE> command declares the author(s), where <CODE>names</CODE> is
a list of authors separated by <CODE>\and</CODE> commands. Use <CODE>\\</CODE> to
separate lines within a single author's entry -- for example, to give
the author's institution or address.
</P>
<H3><A NAME="SEC134" HREF="#TOC134">\date</A></H3>
<P>
<A NAME="IDX296"></A>
<A NAME="IDX297"></A>
</P>
<P>
<CODE>\date{text}</CODE>
</P>
<P>
The <CODE>\date</CODE> command declares <I>text</I> to be the document's date. With
no <CODE>\date</CODE> command, the current date is used.
</P>
<H3><A NAME="SEC135" HREF="#TOC135">\thanks</A></H3>
<P>
<A NAME="IDX298"></A>
<A NAME="IDX299"></A>
</P>
<P>
<CODE>\thanks{text}</CODE>
</P>
<P>
The <CODE>\thanks</CODE> command produces a <CODE>\footnote</CODE> to the title.
</P>
<H3><A NAME="SEC136" HREF="#TOC136">\title</A></H3>
<P>
<A NAME="IDX300"></A>
<A NAME="IDX301"></A>
</P>
<P>
<CODE>\title{text}</CODE>
</P>
<P>
The <CODE>\title</CODE> command declares <CODE>text</CODE> to be the title. Use
<CODE>\\</CODE> to tell LaTeX where to start a new line in a long title.
</P>
<H3><A NAME="SEC137" HREF="#TOC137">\pagenumbering</A></H3>
<P>
<A NAME="IDX302"></A>
<A NAME="IDX303"></A>
</P>
<P>
<CODE>\pagenumbering{num_style}</CODE>
</P>
<P>
Specifies the style of page numbers. Possible values of <CODE>num_style</CODE> are:
</P>
<UL>
<LI>
<CODE>arabic</CODE> - Arabic numerals
<LI>
<CODE>roman</CODE> - Lowercase Roman numerals
<LI>
<CODE>Roman</CODE> - Uppercase Roman numerals
<LI>
<CODE>alph</CODE> - Lowercase letters
<LI>
<CODE>Alph</CODE> - Uppercase letters
</UL>
<H3><A NAME="SEC138" HREF="#TOC138">\pagestyle</A></H3>
<P>
<A NAME="IDX304"></A>
</P>
<P>
<CODE>\pagestyle{option}</CODE>
</P>
<P>
The <CODE>\pagestyle</CODE> command changes the style from the current page on
throughout the remainder of your document.
</P>
<P>
The valid options are:
</P>
<UL>
<LI>
<CODE>plain</CODE> - Just a plain page number.
<LI>
<CODE>empty</CODE> - Produces empty heads and feet - no page numbers.
<LI>
<CODE>headings</CODE> - Puts running headings on each page. The document
style specifies what goes in the headings.
<LI>
<CODE>myheadings</CODE> - You specify what is to go in the heading with the
<CODE>\markboth</CODE> or the <CODE>\markright</CODE> commands.
</UL>
<UL>
<LI><A HREF="#SEC139">\markboth</A>: Set left and right headings.
<LI><A HREF="#SEC140">\markright</A>: Set right heading only.
</UL>
<H3><A NAME="SEC139" HREF="#TOC139">\markboth</A></H3>
<P>
<A NAME="IDX305"></A>
</P>
<PRE>
\markboth{left head}{right head}
</PRE>
<P>
The <CODE>\markboth</CODE> command is used in
conjunction with the page style <CODE>myheadings</CODE> for setting
both the left and the right heading. You should note that a "left-hand
heading" is generated by the last <CODE>\markboth</CODE> command before the
end of the page, while a "right-hand heading" is generated by the first
<CODE>\markboth</CODE> or <CODE>\markright</CODE> that comes on the page if there is
one, otherwise by the last one before the page.
</P>
<H3><A NAME="SEC140" HREF="#TOC140">\markright</A></H3>
<P>
<A NAME="IDX306"></A>
</P>
<PRE>
\markright{right head}
</PRE>
<P>
The <CODE>\markright</CODE> command is used in conjunction with the page style
<CODE>myheadings</CODE> for setting the right heading, leaving the left
heading unchanged. You should note that a "left-hand heading" is
generated by the last <CODE>\markboth</CODE> command before the end of the
page, while a "right-hand heading" is generated by the first
<CODE>\markboth</CODE> or <CODE>\markright</CODE> that comes on the page if there is
one, otherwise by the last one before the page.
</P>
<H3><A NAME="SEC141" HREF="#TOC141">\thispagestyle</A></H3>
<P>
<A NAME="IDX307"></A>
</P>
<P>
<CODE>\thispagestyle{option}</CODE>
</P>
<P>
The <CODE>\thispagestyle</CODE> command works in the same manner as the
<CODE>\pagestyle</CODE> command except that it changes the style for the
current page only.
</P>
<h2><A NAME="SEC142">Sectioning</A> </h2>
<P>
<A NAME="IDX308"></A>
<A NAME="IDX309"></A>
<A NAME="IDX310"></A>
<A NAME="IDX311"></A>
<A NAME="IDX312"></A>
<A NAME="IDX313"></A>
</P>
<P>
Sectioning commands provide the means to structure your text into units.
</P>
<UL>
<LI>
<CODE>\part</CODE>
<LI>
<CODE>\chapter</CODE> (report and book class only)
<LI>
<CODE>\section</CODE>
<LI>
<CODE>\subsection</CODE>
<LI>
<CODE>\subsubsection</CODE>
<LI>
<CODE>\paragraph</CODE>
<LI>
<CODE>\subparagraph</CODE>
</UL>
<P>
All sectioning commands take the same general form, i.e.,
</P>
<P>
<CODE>\chapter[optional]{title}</CODE>
</P>
<P>
In addition to providing the heading in the text, the mandatory argument
of the sectioning command can appear in two other places:
</P>
<OL>
<LI>
The table of contents
<LI>
The running head at the top of the page
</OL>
<P>
You may not want the same thing to appear in these other two places as
appears in the text heading. To handle this situation, the sectioning
commands have an <CODE>optional</CODE> argument that provides the text for
these other two purposes.
</P>
<P>
All sectioning commands have <CODE>*</CODE>-forms that print a <I>title</I>,
but do not include a number and do not make an entry in the table of
contents.
</P>
<P>
<A NAME="IDX315"></A>
</P>
<P>
<CODE><A NAME="IDX314">\appendix</A></CODE>
</P>
<P>
The <CODE>\appendix</CODE> command changes the way sectional units are
numbered. The <CODE>\appendix</CODE> command generates no text and does not
affect the numbering of parts.
The normal use of this command is something like
</P>
<PRE>
\chapter{The First Chapter}
...
\appendix
\chapter{The First Appendix}
</PRE>
<h2><A NAME="SEC143" >Spaces & Boxes</A></h2>
<P>
<A NAME="IDX316"></A>
<A NAME="IDX317"></A>
</P>
<P>
All the predefined length parameters See section <A HREF="#SEC90">Predefined lengths</A> can be
used in the arguments of the box-making commands.
</P>
<UL>
Horizontal space
<LI><A HREF="#SEC144">\dotfill</A>: Stretchable horizontal dots.
<LI><A HREF="#SEC145">\hfill</A>: Stretchable horizontal space.
<LI><A HREF="#SEC146">\hrulefill</A>: Stretchable horizontal rule.
<LI><A HREF="#SEC147">\hspace</A>: Fixed horizontal space.
Vertical space
<LI><A HREF="#SEC148">\addvspace</A>: Fixed vertical space.
<LI><A HREF="#SEC149">\bigskip</A>: Fixed vertical space.
<LI><A HREF="#SEC150">\medskip</A>: Fixed vertical space.
<LI><A HREF="#SEC151">\smallskip</A>: Fixed vertical space.
<LI><A HREF="#SEC152">\vfill</A>: Stretchable vertical space.
<LI><A HREF="#SEC153">\vspace</A>: Fixed vertical space.
Boxes
<LI><A HREF="#SEC154">\fbox</A>: Framebox.
<LI><A HREF="#SEC155">\framebox</A>: Framebox, adjustable position.
<LI><A HREF="#SEC156">lrbox</A>: An environment like \sbox.
<LI><A HREF="#SEC157">\makebox</A>: Box, adjustable position.
<LI><A HREF="#SEC158">\mbox</A>: Box.
<LI><A HREF="#SEC159">\newsavebox</A>: Declare a name for saving a box.
<LI><A HREF="#SEC160">\parbox</A>: Box with text in paragraph mode.
<LI><A HREF="#SEC161">\raisebox</A>: Raise or lower text.
<LI><A HREF="#SEC162">\rule</A>: Lines and squares.
<LI><A HREF="#SEC163">\savebox</A>: Like \makebox, but save the text for later use.
<LI><A HREF="#SEC164">\sbox</A>: Like \mbox, but save the text for later use.
<LI><A HREF="#SEC165">\usebox</A>: Print saved text.
</UL>
<H3><A NAME="SEC144" HREF="#TOC144">\dotfill</A></H3>
<P>
<A NAME="IDX318"></A>
</P>
<P>
The <CODE>\dotfill</CODE> command produces a "rubber length" that produces dots
instead of just spaces.
</P>
<H3><A NAME="SEC145" HREF="#TOC145">\hfill</A></H3>
<P>
<A NAME="IDX319"></A>
</P>
<P>
The <CODE>\hfill</CODE> fill command produces a "rubber length" which can
stretch or shrink horizontally. It will be filled with spaces.
</P>
<H3><A NAME="SEC146" HREF="#TOC146">\hrulefill</A></H3>
<P>
<A NAME="IDX320"></A>
</P>
<P>
The <CODE>\hrulefill</CODE> fill command produces a "rubber length" which can
stretch or shrink horizontally. It will be filled with a horizontal
rule.
</P>
<H3><A NAME="SEC147" HREF="#TOC147">\hspace</A></H3>
<P>
<A NAME="IDX321"></A>
</P>
<P>
<CODE>\hspace[*]{length}</CODE>
</P>
<P>
The <CODE>\hspace</CODE> command adds horizontal space. The length of the
space can be expressed in any terms that LaTeX understands, i.e.,
points, inches, etc. You can add negative as well as positive space
with an <CODE>\hspace</CODE> command. Adding negative space is like
backspacing.
</P>
<P>
LaTeX removes horizontal space that comes at the end of a line. If you
don't want LaTeX to remove this space, include the optional <CODE>*</CODE>
argument. Then the space is never removed.
</P>
<H3><A NAME="SEC148" HREF="#TOC148">\addvspace</A></H3>
<P>
<A NAME="IDX322"></A>
<A NAME="IDX323"></A>
<A NAME="IDX324"></A>
</P>
<P>
<CODE>\addvspace{length}</CODE>
</P>
<P>
The <CODE>\addvspace</CODE> command normally adds a vertical space of height
length. However, if vertical space has already been added to the same
point in the output by a previous <CODE>\addvspace</CODE> command, then this
command will not add more space than needed to make the natural length
of the total vertical space equal to <CODE>length</CODE>.
</P>
<H3><A NAME="SEC149" HREF="#TOC149">\bigskip</A></H3>
<P>
<A NAME="IDX325"></A>
</P>
<P>
The <CODE>\bigskip</CODE> command is equivalent to
<CODE>\vspace{bigskipamount}</CODE> where <CODE>bigskipamount</CODE> is determined
by the document class.
</P>
<H3><A NAME="SEC150" HREF="#TOC150">\medskip</A></H3>
<P>
<A NAME="IDX326"></A>
</P>
<P>
The <CODE>\medskip</CODE> command is equivalent to
<CODE>\vspace{medskipamount}</CODE> where <CODE>medskipamount</CODE> is determined
by the document class.
</P>
<H3><A NAME="SEC151" HREF="#TOC151">\smallskip</A></H3>
<P>
<A NAME="IDX327"></A>
</P>
<P>
<CODE>\smallskip</CODE>
</P>
<P>
The <CODE>\smallskip</CODE> command is equivalent to
<CODE>\vspace{smallskipamount}</CODE> where <CODE>smallskipamount</CODE> is
determined by the document class.
</P>
<H3><A NAME="SEC152" HREF="#TOC152">\vfill</A></H3>
<P>
<A NAME="IDX328"></A>
</P>
<P>
The <CODE>\vfill</CODE> fill command produces a rubber length which can
stretch or shrink vertically.
</P>
<H3><A NAME="SEC153" HREF="#TOC153">\vspace</A></H3>
<P>
<A NAME="IDX329"></A>
</P>
<P>
<CODE>\vspace[*]{length}</CODE>
</P>
<P>
The <CODE>\vspace</CODE> command adds vertical space. The length of the space
can be expressed in any terms that LaTeX understands, i.e., points,
inches, etc. You can add negative as well as positive space with an
<CODE>\vspace</CODE> command.
</P>
<P>
LaTeX removes vertical space that comes at the end of a page. If you
don't want LaTeX to remove this space, include the optional <CODE>*</CODE>
argument. Then the space is never removed.
</P>
<H3><A NAME="SEC154" HREF="#TOC154">\fbox</A></H3>
<P>
<A NAME="IDX330"></A>
</P>
<P>
<CODE>\fbox{text}</CODE>
</P>
<P>
The <CODE>\fbox</CODE> command is exactly the same as the <CODE>\mbox</CODE>
command, except that it puts a frame around the outside of the box that
it creates.
</P>
<H3><A NAME="SEC155" HREF="#TOC155">\framebox</A></H3>
<P>
<A NAME="IDX331"></A>
</P>
<P>
<CODE>\framebox[width][position]{text}</CODE>
</P>
<P>
The <CODE>\framebox</CODE> command is exactly the same as the <CODE>\makebox</CODE>
command, except that it puts a frame around the outside of the box that
it creates.
</P>
<P>
The framebox command produces a rule of thickness <CODE>\fboxrule</CODE>, and
leaves a space <CODE>\fboxsep</CODE> between the rule and the contents of the
box.
</P>
<H3><A NAME="SEC156" HREF="#TOC156">lrbox</A></H3>
<P>
<A NAME="IDX332"></A>
</P>
<P>
<CODE>\begin{lrbox}{cmd} text \end{lrbox}</CODE>
</P>
<P>
This is the environment form of <CODE>\sbox</CODE>.
</P>
<P>
The text inside the environment is saved in the box <CODE>cmd</CODE>, which
must have been declared with <CODE>\newsavebox</CODE>.
</P>
<H3><A NAME="SEC157" HREF="#TOC157">\makebox</A></H3>
<P>
<A NAME="IDX333"></A>
</P>
<P>
<CODE>\makebox[width][position]{text}</CODE>
</P>
<P>
The <CODE>\makebox</CODE> command creates a box just wide enough to contain
the <CODE>text</CODE> specified. The width of the box is specified by the
optional <CODE>width</CODE> argument. The position of the text within the box
is determined by the optional <CODE>position</CODE> argument.
</P>
<UL>
<LI>
<CODE>c</CODE> -- centred (default)
<LI>
<CODE>l</CODE> -- flushleft
<LI>
<CODE>r</CODE> -- flushright
<LI>
<CODE>s</CODE> -- stretch from left to right margin. The text must contain
stretchable space for this to work.
</UL>
<P>
See section <A HREF="#SEC54">\makebox</A>.
</P>
<H3><A NAME="SEC158" HREF="#TOC158">\mbox</A></H3>
<P>
<A NAME="IDX334"></A>
</P>
<P>
<CODE>\mbox{text}</CODE>
</P>
<P>
The <CODE>\mbox</CODE> command creates a box just wide enough to hold the text
created by its argument.
</P>
<P>
Use this command to prevent text from being split across lines.
</P>
<H3><A NAME="SEC159" HREF="#TOC159">\newsavebox</A></H3>
<P>
<A NAME="IDX335"></A>
</P>
<P>
<CODE>\newsavebox{cmd}</CODE>
</P>
<P>
Declares <CODE>cmd</CODE>, which must be a command name that is not already
defined, to be a bin for saving boxes.
</P>
<H3><A NAME="SEC160" HREF="#TOC160">\parbox</A></H3>
<P>
<A NAME="IDX336"></A>
</P>
<P>
<CODE>\parbox[position][height][inner-pos]{width}{text}</CODE>
</P>
<P>
A <CODE>parbox</CODE> is a box whose contents are created in <CODE>paragraph</CODE>
mode. The <CODE>\parbox</CODE> has two mandatory arguments:
</P>
<UL>
<LI>
<CODE>width</CODE> - specifies the width of the parbox, and
<LI>
<CODE>text</CODE> - the text that goes inside the parbox.
</UL>
<P>
LaTeX will position a <CODE>parbox</CODE> so its centre lines up with the centre of
the text line. The optional <I>position</I> argument allows you
to line up either the top or bottom line in the parbox (default is top).
</P>
<P>
If the <I>height</I> argument is not given, the box will have the natural
height of the text.
</P>
<P>
The <I>inner-pos</I> argument controls the placement of the text inside the
box. If it is not specified, <I>position</I> is used.
</P>
<UL>
<LI>
<CODE>t</CODE> -- text is placed at the top of the box.
<LI>
<CODE>c</CODE> -- text is centred in the box.
<LI>
<CODE>b</CODE> -- text is placed at the bottom of the box.
<LI>
<CODE>s</CODE> -- stretch vertically. The text must contain
vertically stretchable space for this to work.
</UL>
<P>
A <CODE>\parbox</CODE> command is used for a parbox containing a small piece
of text, with nothing fancy inside. In particular, you shouldn't use
any of the paragraph-making environments inside a <CODE>\parbox</CODE>
argument. For larger pieces of text, including ones containing a
paragraph-making environment, you should use a <CODE>minipage</CODE>
environment See section <A HREF="#SEC46">minipage</A>.
</P>
<H3><A NAME="SEC161" HREF="#TOC161">\raisebox</A></H3>
<P>
<A NAME="IDX337"></A>
</P>
<P>
<CODE>\raisebox{distance}[extend-above][extend-below]{text}</CODE>
</P>
<P>
The <CODE>\raisebox</CODE> command is used to raise or lower text. The first
mandatory argument specifies how high the text is to be raised (or
lowered if it is a negative amount). The text itself is processed in
<CODE>LR mode</CODE>.
</P>
<P>
Sometimes it's useful to make LaTeX think something has a different
size than it really does - or a different size than LaTeX would
normally think it has. The <CODE>\raisebox</CODE> command lets you tell
LaTeX how tall it is.
</P>
<P>
The first optional argument, <CODE>extend-above</CODE>, makes LaTeX think
that the text extends above the line by the amount specified. The
second optional argument, <CODE>extend-below</CODE>, makes LaTeX think that
the text extends below the line by the amount specified.
</P>
<H3><A NAME="SEC162" HREF="#TOC162">\rule</A></H3>
<P>
<A NAME="IDX338"></A>
</P>
<P>
<CODE>\rule[raise-height]{width}{thickness}</CODE>
</P>
<P>
The <CODE>\rule</CODE> command is used to produce horizontal lines. The
arguments are defined as follows:
</P>
<UL>
<LI>
<CODE>raise-height</CODE> - specifies how high to raise the rule (optional)
<LI>
<CODE>width</CODE> - specifies the length of the rule (mandatory)
<LI>
<CODE>thickness</CODE> - specifies the thickness of the rule (mandatory)
</UL>
<H3><A NAME="SEC163" HREF="#TOC163">\savebox</A></H3>
<P>
<A NAME="IDX339"></A>
</P>
<PRE>
\savebox{cmd}[width][pos]{text}
</PRE>
<P>
This command typeset <CODE>text</CODE> in a box just as for <CODE>\makebox</CODE>.
However, instead of printing the resulting box, it saves it in bin
<CODE>cmd</CODE>, which must have been declared with <CODE>\newsavebox</CODE>.
</P>
<H3><A NAME="SEC164" HREF="#TOC164">\sbox</A></H3>
<P>
<A NAME="IDX340"></A>
</P>
<P>
<CODE>\sbox{text}</CODE>
</P>
<P>
This commands typeset <CODE>text</CODE> in a box just as for <CODE>\mbox</CODE>.
However, instead of printing the resulting box, it saves it in bin
<CODE>cmd</CODE>, which must have been declared with <CODE>\newsavebox</CODE>.
</P>
<H3><A NAME="SEC165" HREF="#TOC165">\usebox</A></H3>
<P>
<A NAME="IDX341"></A>
</P>
<P>
<CODE>\usebox{cmd}</CODE>
</P>
<P>
Prints the box most recently saved in bin <CODE>cmd</CODE> by a
<CODE>\savebox</CODE> command.
</P>
<h2><A NAME="SEC166">Special Characters</A></h2>
<P>
<A NAME="IDX342"></A>
<A NAME="IDX343"></A>
<A NAME="IDX344"></A>
<A NAME="IDX345"></A>
</P>
<P>
The following characters play a special role in LaTeX and are called
"special printing characters", or simply "special characters".
</P>
<PRE>
# $ % & ~ _ ^ \ { }
</PRE>
<P>
Whenever you put one of these special characters into your file, you are
doing something special. If you simply want the character to be printed
just as any other letter, include a <CODE>\</CODE> in front of the character.
For example, <CODE>\$</CODE> will produce <CODE>$</CODE> in your output.
</P>
<P>
One exception to this rule is the <CODE>\</CODE> itself because <CODE>\\</CODE> has
its own special meaning. A <CODE>\</CODE> is produced by typing
<CODE><A NAME="IDX346">$\backslash$</A></CODE> in your file.
</P>
<P>
Also, <CODE>\~</CODE> means `place a tilde accent over the following letter',
so you will probably want to use <CODE>\verb</CODE> instead.
</P>
<P>
<A NAME="IDX348"></A>
</P>
<P>
In addition, you can access any character of a font once you know its
number by using the <CODE><A NAME="IDX347">\symbol</A></CODE> command. For example, the character
used for displaying spaces in the <CODE>\verb*</CODE> command has the code
decimal 32, so it can be typed as <CODE>\symbol{32}</CODE>.
</P>
<P>
You can also specify octal numbers with <CODE>'</CODE> or hexadecimal numbers
with <CODE>"</CODE>, so the previous example could also be written as
<CODE>\symbol{'40}</CODE> or <CODE>\symbol{"20}</CODE>.
</P>
<h2><A NAME="SEC167">Splitting the Input</A></h2>
<P>
<A NAME="IDX349"></A>
<A NAME="IDX350"></A>
</P>
<P>
A large document requires a lot of input. Rather than putting the whole
input in a single large file, it's more efficient to split it into
several smaller ones. Regardless of how many separate files you use,
there is one that is the root file; it is the one whose name you type
when you run LaTeX.
</P>
<UL>
<LI><A HREF="#SEC168">\include</A>: Conditionally include a file.
<LI><A HREF="#SEC169">\includeonly</A>: Determine which files are included.
<LI><A HREF="#SEC170">\input</A>: Unconditionally include a file.
</UL>
<H3><A NAME="SEC168" HREF="#TOC168">\include</A></H3>
<P>
<A NAME="IDX351"></A>
</P>
<P>
<CODE>\include{file}</CODE>
</P>
<P>
The <CODE>\include</CODE> command is used in conjunction with the
<CODE>\includeonly</CODE> command for selective inclusion of files. The
<CODE>file</CODE> argument is the first name of a file, denoting
<TT>`file.tex'</TT>. If <CODE>file</CODE> is one the file names in the file list
of the <CODE>\includeonly</CODE> command or if there is no <CODE>\includeonly</CODE>
command, the <CODE>\include</CODE> command is equivalent to
</P>
<PRE>
\clearpage \input{file} \clearpage
</PRE>
<P>
except that if the file <TT>`file.tex'</TT> does not exist, then a warning
message rather than an error is produced. If the file is not in the
file list, the <CODE>\include</CODE> command is equivalent to <CODE>\clearpage</CODE>.
</P>
<P>
The <CODE>\include</CODE> command may not appear in the preamble or in a file
read by another <CODE>\include</CODE> command.
</P>
<H3><A NAME="SEC169" HREF="#TOC169">\includeonly</A></H3>
<P>
<A NAME="IDX352"></A>
</P>
<P>
<CODE>\includeonly{</CODE><I>file_list</I><CODE>}</CODE>
</P>
<P>
The <CODE>\includeonly</CODE> command controls which files will be read in by
an <CODE>\include</CODE> command. <I>file_list</I> should be a comma-separated
list of filenames. Each filename must match exactly a filename specified
in a <CODE>\include</CODE> command. This command can only appear in the
preamble.
</P>
<H3><A NAME="SEC170" HREF="#TOC170">\input</A></H3>
<P>
<A NAME="IDX353"></A>
</P>
<P>
<CODE>\input{file}</CODE>
</P>
<P>
The <CODE>\input</CODE> command causes the indicated <CODE>file</CODE> to be read and
processed, exactly as if its contents had been inserted in the current
file at that point. The file name may be a complete file name with
extension or just a first name, in which case the file <TT>`file.tex'</TT>
is used.
</P>
<h2><A NAME="SEC171">Starting & Ending</A></h2>
<P>
<A NAME="IDX354"></A>
<A NAME="IDX355"></A>
</P>
<P>
Your input file must contain the following commands as a minimum:
</P>
<PRE>
\documentclass{class}
\begin{document}
... your text goes here ...
\end{document}
</PRE>
<P>
where the <CODE>class</CODE> selected is one of the valid classes for LaTeX.
See section <A HREF="#SEC24">Document Classes</A> for details of the
various document classes available locally.
</P>
<P>
You may include other LaTeX commands between the <CODE>\documentclass</CODE>
and the <CODE>\begin{document}</CODE> commands (i.e., in the `preamble').
</P>
<h2><A NAME="SEC172" >Table of Contents</A></h2>
<P>
<A NAME="IDX356"></A>
</P>
<P>
A table of contents is produced with the
<CODE><A NAME="IDX357">\tableofcontents</A></CODE>
command. You put the command right where you want the table of contents
to go; LaTeX does the rest for you. It produces a heading, but it does
not automatically start a new page. If you want a new page after the
table of contents, include a <CODE>\newpage</CODE> command after the
<CODE>\tableofcontents</CODE> command.
</P>
<P>
There are similar commands
<CODE><A NAME="IDX358">\listoffigures</A></CODE>
and
<CODE><A NAME="IDX359">\listoftables</A></CODE>
for producing a list of figures and a list of tables, respectively.
Everything works exactly the same as for the table of contents.
</P>
<P>
NOTE: If you want any of these items to be generated, you cannot have
the
<CODE><A NAME="IDX360">\nofiles</A></CODE>
command in your document.
</P>
<UL>
<LI><A HREF="#SEC173">\addcontentsline</A>: Add an entry to table of contents etc.
<LI><A HREF="#SEC174">\addtocontents</A>: Add text directly to table of contents file etc.
</UL>
<H3><A NAME="SEC173" HREF="#TOC173">\addcontentsline</A></H3>
<P>
<A NAME="IDX361"></A>
</P>
<P>
<CODE>\addcontentsline{file}{sec_unit}{entry}</CODE>
</P>
<P>
The <CODE>\addcontentsline</CODE> command adds an entry to the specified list
or table where:
</P>
<UL>
<LI>
<CODE>file</CODE> is the extension of the file on which information is to be
written: <CODE>toc</CODE> (table of contents), <CODE>lof</CODE> (list of figures),
or <CODE>lot</CODE> (list of tables).
<LI>
<CODE>sec_unit</CODE> controls the formatting of the entry. It should be one
of the following, depending upon the value of the file argument:
<OL>
<LI>
<CODE>toc</CODE> -- the name of the sectional unit, such as part or subsection.
<LI>
<CODE>lof</CODE> -- figure
<LI>
<CODE>lot</CODE> -- table
</OL>
<LI>
<CODE>entry</CODE> is the text of the entry.
</UL>
<H3><A NAME="SEC174" HREF="#TOC174">\addtocontents</A></H3>
<P>
<A NAME="IDX362"></A>
</P>
<P>
<CODE>\addtocontents{file}{text}</CODE>
</P>
<P>
The <CODE>\addtocontents</CODE> command adds text (or formatting commands) directly
to the file that generates the table of contents or list of figures or
tables.
</P>
<UL>
<LI>
<CODE>file</CODE> is the extension of the file on which information is to be
written: <CODE>toc</CODE> (table of contents), <CODE>lof</CODE> (list of figures),
or <CODE>lot</CODE> (list of tables).
<LI>
<CODE>text</CODE> is the information to be written.
</UL>
<h2><A NAME="SEC175">Terminal Input/Output</A></h2>
<P>
<A NAME="IDX363"></A>
<A NAME="IDX364"></A>
</P>
<UL>
<LI><A HREF="#SEC176">\typein</A>: Read text from the terminal.
<LI><A HREF="#SEC177">\typeout</A>: Write text to the terminal.
</UL>
<H3><A NAME="SEC176" HREF="#TOC176">\typein</A></H3>
<P>
<A NAME="IDX365"></A>
</P>
<P>
<CODE>\typein[cmd]{msg}</CODE>
</P>
<P>
Prints <CODE>msg</CODE> on the terminal and causes LaTeX to stop and wait for
you to type a line of input, ending with return. If the <CODE>cmd</CODE>
argument is missing, the typed input is processed as if it had been
included in the input file in place of the <CODE>\typein</CODE> command. If
the <CODE>cmd</CODE> argument is present, it must be a command name. This
command name is then defined or redefined to be the typed input.
</P>
<H3><A NAME="SEC177" HREF="#TOC177">\typeout</A></H3>
<P>
<A NAME="IDX366"></A>
</P>
<P>
<CODE>\typeout{msg}</CODE>
</P>
<P>
Prints <CODE>msg</CODE> on the terminal and in the <CODE>log</CODE> file. Commands
in <CODE>msg</CODE> that are defined with <CODE>\newcommand</CODE> or
<CODE>\renewcommand</CODE> are replaced by their definitions before being
printed.
</P>
<P>
LaTeX's usual rules for treating multiple spaces as
a single space and ignoring spaces after a command name apply to
<CODE>msg</CODE>. A <CODE>\space</CODE> command in <CODE>msg</CODE> causes a single space
to be printed. A <CODE>^^J</CODE> in <CODE>msg</CODE> prints a newline.
</P>
<h2><A NAME="SEC178">Typefaces</A></h2>
<P>
<A NAME="IDX367"></A>
<A NAME="IDX368"></A>
</P>
<P>
The <CODE>typeface</CODE> is specified by giving the "size" and "style". A
typeface is also called a "font".
</P>
<UL>
<LI><A HREF="#SEC179">Styles</A>: Select roman, italics etc.
<LI><A HREF="#SEC180">Sizes</A>: Select point size.
<LI><A HREF="#SEC181">Low-level font commands</A>: Commands for wizards.
</UL>
<H3><A NAME="SEC179" HREF="#TOC179">\Styles</A></H3>
<P>
<A NAME="IDX369"></A>
<A NAME="IDX370"></A>
<A NAME="IDX371"></A>
</P>
<P>
The following type style commands are supported by LaTeX.
</P>
<P>
These commands are used like <CODE>\textit{italics text}</CODE>. The
corresponding command in parenthesis is the "declaration form", which
takes no arguments. The scope of the declaration form lasts until the
next type style command or the end of the current group.
</P>
<P>
The declaration forms are cumulative; i.e., you can say
<CODE>\sffamily\bfseries</CODE> to get sans serif boldface.
</P>
<P>
You can also use the environment form of the declaration forms; e.g.
<CODE>\begin{ttfamily}...\end{ttfamily}</CODE>.
</P>
<DL COMPACT>
<DT><CODE><A NAME="IDX373">\textrm (\rmfamily)</A></CODE>
<DD>
<A NAME="IDX372"></A>
Roman.
<DT><CODE><A NAME="IDX375">\textit (\itshape)</A></CODE>
<DD>
<A NAME="IDX374"></A>
<DT><CODE><A NAME="IDX376">\emph</A></CODE>
<DD>
Emphasis (toggles between \textit and \textrm).
<DT><CODE><A NAME="IDX378">\textmd (\mdseries)</A></CODE>
<DD>
<A NAME="IDX377"></A>
Medium weight (default). The opposite of boldface.
<DT><CODE><A NAME="IDX380">\textbf (\bfseries)</A></CODE>
<DD>
<A NAME="IDX379"></A>
Boldface.
<DT><CODE><A NAME="IDX381">\textup (\upshape)</A></CODE>
<DD>
<A NAME="IDX382"></A>
Upright (default). The opposite of slanted.
<DT><CODE><A NAME="IDX384">\textsl (\slshape)</A></CODE>
<DD>
<A NAME="IDX383"></A>
Slanted.
<DT><CODE><A NAME="IDX386">\textsf (\sffamily)</A></CODE>
<DD>
<A NAME="IDX385"></A>
Sans serif.
<DT><CODE><A NAME="IDX388">\textsc (\scshape)</A></CODE>
<DD>
<A NAME="IDX387"></A>
Small caps.
<DT><CODE><A NAME="IDX389">\texttt (\ttfamily)</A></CODE>
<DD>
<A NAME="IDX390"></A>
Typewriter.
<DT><CODE><A NAME="IDX392">\textnormal (\normalfont)</A></CODE>
<DD>
<A NAME="IDX391"></A>
Main document font.
<DT><CODE><A NAME="IDX393">\mathrm</A></CODE>
<DD>
Roman, for use in math mode.
<DT><CODE><A NAME="IDX394">\mathbf</A></CODE>
<DD>
Boldface, for use in math mode.
<DT><CODE><A NAME="IDX395">\mathsf</A></CODE>
<DD>
Sans serif, for use in math mode.
<DT><CODE><A NAME="IDX396">\mathtt</A></CODE>
<DD>
Typewriter, for use in math mode.
<DT><CODE><A NAME="IDX397">\mathit</A></CODE>
<DD>
Italics, for use in math mode, e.g. variable names with several letters.
<DT><CODE><A NAME="IDX398">\mathnormal</A></CODE>
<DD>
For use in math mode, e.g. inside another type style declaration.
<DT><CODE><A NAME="IDX399">\mathcal</A></CODE>
<DD>
`Calligraphic' letters, for use in math mode.
</DL>
<P>
In addition, the command
<CODE><A NAME="IDX400">\mathversion{bold}</A></CODE>
can be used for switching to bold letters and symbols in
formulas. <CODE>\mathversion{normal}</CODE> restores the default.
</P>
<H3><A NAME="SEC180" HREF="#TOC180">Sizes</A></H3>
<P>
<A NAME="IDX401"></A>
<A NAME="IDX402"></A>
<A NAME="IDX403"></A>
</P>
<P>
The following standard type size commands are supported by LaTeX.
</P>
<P>
The commands as listed here are "declaration forms". The scope of the
declaration form lasts until the next type style command or the end of
the current group.
</P>
<P>
You can also use the environment form of these commands; e.g.
<CODE>\begin{tiny}...\end{tiny}</CODE>.
</P>
<DL COMPACT>
<DT><CODE><A NAME="IDX404">\tiny</A></CODE>
<DD>
<DT><CODE><A NAME="IDX405">\scriptsize</A></CODE>
<DD>
<DT><CODE><A NAME="IDX406">\footnotesize</A></CODE>
<DD>
<DT><CODE><A NAME="IDX407">\small</A></CODE>
<DD>
<DT><CODE><A NAME="IDX408">\normalsize</A></CODE>
<DD>
(default)
<DT><CODE><A NAME="IDX409">\large</A></CODE>
<DD>
<DT><CODE><A NAME="IDX410">\Large</A></CODE>
<DD>
<DT><CODE><A NAME="IDX411">\LARGE</A></CODE>
<DD>
<DT><CODE><A NAME="IDX412">\huge</A></CODE>
<DD>
<DT><CODE><A NAME="IDX413">\Huge</A></CODE>
<DD>
</DL>
<H3><A NAME="SEC181" HREF="#TOC181">Low-level font commands</A></H3>
<P>
<A NAME="IDX414"></A>
<A NAME="IDX415"></A>
</P>
<P>
These commands are primarily intended for writers of macros and
packages. The commands listed here are only a subset of the available
ones. For full details, you should consult Chapter 7 of <CITE>The LaTeX
Companion</CITE>.
</P>
<DL COMPACT>
<DT><CODE><A NAME="IDX416">\fontencoding{enc}</A></CODE>
<DD>
Select font encoding. Valid encodings include <CODE>OT1</CODE> and <CODE>T1</CODE>.
<DT><CODE><A NAME="IDX417">\fontfamily{family}</A></CODE>
<DD>
Select font family. Valid families include:
<UL>
<LI><CODE>cmr</CODE> for Computer Modern Roman
<LI><CODE>cmss</CODE> for Computer Modern Sans Serif
<LI><CODE>cmtt</CODE> for Computer Modern Typewriter
</UL>
and numerous others.
<DT><CODE><A NAME="IDX418">\fontseries{series}</A></CODE>
<DD>
Select font series. Valid series include:
<UL>
<LI><CODE>m</CODE> Medium (normal)
<LI><CODE>b</CODE> Bold
<LI><CODE>c</CODE> Condensed
<LI><CODE>bc</CODE> Bold condensed
<LI><CODE>bx</CODE> Bold extended
</UL>
and various other combinations.
<DT><CODE><A NAME="IDX419">\fontshape{shape}</A></CODE>
<DD>
Select font shape. Valid shapes are:
<UL>
<LI><CODE>n</CODE> Upright (normal)
<LI><CODE>it</CODE> Italic
<LI><CODE>sl</CODE> Slanted (oblique)
<LI><CODE>sc</CODE> Small caps
<LI><CODE>ui</CODE> Upright italics
<LI><CODE>ol</CODE> Outline
</UL>
The two last shapes are not available for most font families.
<DT><CODE><A NAME="IDX420">\fontsize{size}{skip}</A></CODE>
<DD>
Set font size. The first parameter is the font size to switch to; the
second is the <CODE>\baselineskip</CODE> to use. The unit of both parameters
defaults to pt. A rule of thumb is that the baselineskip should be 1.2
times the font size.
<DT><CODE><A NAME="IDX421">\selectfont</A></CODE>
<DD>
The changes made by calling the four font commands described above do
not come into effect until <CODE>\selectfont</CODE> is called.
<DT><CODE><A NAME="IDX422">\usefont{enc}{family}{series}{shape}</A></CODE>
<DD>
Equivalent to calling <CODE>\fontencoding</CODE>, <CODE>\fontfamily</CODE>,
<CODE>\fontseries</CODE> and <CODE>\fontshape</CODE> with the given parameters, followed by <CODE>\selectfont</CODE>.
</DL>
</body></html>
|