1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764 18765 18766 18767 18768 18769 18770 18771 18772 18773 18774 18775 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893 18894 18895 18896 18897 18898 18899 18900 18901 18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942 18943 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 19052 19053 19054 19055 19056 19057 19058 19059 19060 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 19075 19076 19077 19078 19079 19080 19081 19082 19083 19084 19085 19086 19087 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133 19134 19135 19136 19137 19138 19139 19140 19141 19142 19143 19144 19145 19146 19147 19148 19149 19150 19151 19152 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423 19424 19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535 19536 19537 19538 19539 19540 19541 19542 19543 19544 19545 19546 19547 19548 19549 19550 19551 19552 19553 19554 19555 19556 19557 19558 19559 19560 19561 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 19592 19593 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 19707 19708 19709 19710 19711 19712 19713 19714 19715 19716 19717 19718 19719 19720 19721 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761 19762 19763 19764 19765 19766 19767 19768 19769 19770 19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 19794 19795 19796 19797 19798 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834 19835 19836 19837 19838 19839 19840 19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854 19855 19856 19857 19858 19859 19860 19861 19862 19863 19864 19865 19866 19867 19868 19869 19870 19871 19872 19873 19874 19875 19876 19877 19878 19879 19880 19881 19882 19883 19884 19885 19886 19887 19888 19889 19890 19891 19892 19893 19894 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924 19925 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 19948 19949 19950 19951 19952 19953 19954 19955 19956 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966 19967 19968 19969 19970 19971 19972 19973 19974 19975 19976 19977 19978 19979 19980 19981 19982 19983 19984 19985 19986 19987 19988 19989 19990 19991 19992 19993 19994 19995 19996 19997 19998 19999 20000 20001 20002 20003 20004 20005 20006 20007 20008 20009 20010 20011 20012 20013 20014 20015 20016 20017 20018 20019 20020 20021 20022 20023 20024 20025 20026 20027 20028 20029 20030 20031 20032 20033 20034 20035 20036 20037 20038 20039 20040 20041 20042 20043 20044 20045 20046 20047 20048 20049 20050 20051 20052 20053 20054 20055 20056 20057 20058 20059 20060 20061 20062 20063 20064 20065 20066 20067 20068 20069 20070 20071 20072 20073 20074 20075 20076 20077 20078 20079 20080 20081 20082 20083 20084 20085 20086 20087 20088 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099 20100 20101 20102 20103 20104 20105 20106 20107 20108 20109 20110 20111 20112 20113 20114 20115 20116 20117 20118 20119 20120 20121 20122 20123 20124 20125 20126 20127 20128 20129 20130 20131 20132 20133 20134 20135 20136 20137 20138 20139 20140 20141 20142 20143 20144 20145 20146 20147 20148 20149 20150 20151 20152 20153 20154 20155 20156 20157 20158 20159 20160 20161 20162 20163 20164 20165 20166 20167 20168 20169 20170 20171 20172 20173 20174 20175 20176 20177 20178 20179 20180 20181 20182 20183 20184 20185 20186 20187 20188 20189 20190 20191 20192 20193 20194 20195 20196 20197 20198 20199 20200 20201 20202 20203 20204 20205 20206 20207 20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218 20219 20220 20221 20222 20223 20224 20225 20226 20227 20228 20229 20230 20231 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241 20242 20243 20244 20245 20246 20247 20248 20249 20250 20251 20252 20253 20254 20255 20256 20257 20258 20259 20260 20261 20262 20263 20264 20265 20266 20267 20268 20269 20270 20271 20272 20273 20274 20275 20276 20277 20278 20279 20280 20281 20282 20283 20284 20285 20286 20287 20288 20289 20290 20291 20292 20293 20294 20295 20296 20297 20298 20299 20300 20301 20302 20303 20304 20305 20306 20307 20308 20309 20310 20311 20312 20313 20314 20315 20316 20317 20318 20319 20320 20321 20322 20323 20324 20325 20326 20327 20328 20329 20330 20331 20332 20333 20334 20335 20336 20337 20338 20339 20340 20341 20342 20343 20344 20345 20346 20347 20348 20349 20350 20351 20352 20353 20354 20355 20356 20357 20358 20359 20360 20361 20362 20363 20364 20365 20366 20367 20368 20369 20370 20371 20372 20373 20374 20375 20376 20377 20378 20379 20380 20381 20382 20383 20384 20385 20386 20387 20388 20389 20390 20391 20392 20393 20394 20395 20396 20397 20398 20399 20400 20401 20402 20403 20404 20405 20406 20407 20408 20409 20410 20411 20412 20413 20414 20415 20416 20417 20418 20419 20420 20421 20422 20423 20424 20425 20426 20427 20428 20429 20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476 20477 20478 20479 20480 20481 20482 20483 20484 20485 20486 20487 20488 20489 20490 20491 20492 20493 20494 20495 20496 20497 20498 20499 20500 20501 20502 20503 20504 20505 20506 20507 20508 20509 20510 20511 20512 20513 20514 20515 20516 20517 20518 20519 20520 20521 20522 20523 20524 20525 20526 20527 20528 20529 20530 20531 20532 20533 20534 20535 20536 20537 20538 20539 20540 20541 20542 20543 20544 20545 20546 20547 20548 20549 20550 20551 20552 20553 20554 20555 20556 20557 20558 20559 20560 20561 20562 20563 20564 20565 20566 20567 20568 20569 20570 20571 20572 20573 20574 20575 20576 20577 20578 20579 20580 20581 20582 20583 20584 20585 20586 20587 20588 20589 20590 20591 20592 20593 20594 20595 20596 20597 20598 20599 20600 20601 20602 20603 20604 20605 20606 20607 20608 20609 20610 20611 20612 20613 20614 20615 20616 20617 20618 20619 20620 20621 20622 20623 20624 20625 20626 20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 20642 20643 20644 20645 20646 20647 20648 20649 20650 20651 20652 20653 20654 20655 20656 20657 20658 20659 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 20670 20671 20672 20673 20674 20675 20676 20677 20678 20679 20680 20681 20682 20683 20684 20685 20686 20687 20688 20689 20690 20691 20692 20693 20694 20695 20696 20697 20698 20699 20700 20701 20702 20703 20704 20705 20706 20707 20708 20709 20710 20711 20712 20713 20714 20715 20716 20717 20718 20719 20720 20721 20722 20723 20724 20725 20726 20727 20728 20729 20730 20731 20732 20733 20734 20735 20736 20737 20738 20739 20740 20741 20742 20743 20744 20745 20746 20747 20748 20749 20750 20751 20752 20753 20754 20755 20756 20757 20758 20759 20760 20761 20762 20763 20764 20765 20766 20767 20768 20769 20770 20771 20772 20773 20774 20775 20776 20777 20778 20779 20780 20781 20782 20783 20784 20785 20786 20787 20788 20789 20790 20791 20792 20793 20794 20795 20796 20797 20798 20799 20800 20801 20802 20803 20804 20805 20806 20807 20808 20809 20810 20811 20812 20813 20814 20815 20816 20817 20818 20819 20820 20821 20822 20823 20824 20825 20826 20827 20828 20829 20830 20831 20832 20833 20834 20835 20836 20837 20838 20839 20840 20841 20842 20843 20844 20845 20846 20847 20848 20849 20850 20851 20852 20853 20854 20855 20856 20857 20858 20859 20860 20861 20862 20863 20864 20865 20866 20867 20868 20869 20870 20871 20872 20873 20874 20875 20876 20877 20878 20879 20880 20881 20882 20883 20884 20885 20886 20887 20888 20889 20890 20891 20892 20893 20894 20895 20896 20897 20898 20899 20900 20901 20902 20903 20904 20905 20906 20907 20908 20909 20910 20911 20912 20913 20914 20915 20916 20917 20918 20919 20920 20921 20922 20923 20924 20925 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 20936 20937 20938 20939 20940 20941 20942 20943 20944 20945 20946 20947 20948 20949 20950 20951 20952 20953 20954 20955 20956 20957 20958 20959 20960 20961 20962 20963 20964 20965 20966 20967 20968 20969 20970 20971 20972 20973 20974 20975 20976 20977 20978 20979 20980 20981 20982 20983 20984 20985 20986 20987 20988 20989 20990 20991 20992 20993 20994 20995 20996 20997 20998 20999 21000 21001 21002 21003 21004 21005 21006 21007 21008 21009 21010 21011 21012 21013 21014 21015 21016 21017 21018 21019 21020 21021 21022 21023 21024 21025 21026 21027 21028 21029 21030 21031 21032 21033 21034 21035 21036 21037 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047 21048 21049 21050 21051 21052 21053 21054 21055 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 21094 21095 21096 21097 21098 21099 21100 21101 21102 21103 21104 21105 21106 21107 21108 21109 21110 21111 21112 21113 21114 21115 21116 21117 21118 21119 21120 21121 21122 21123 21124 21125 21126 21127 21128 21129 21130 21131 21132 21133 21134 21135 21136 21137 21138 21139 21140 21141 21142 21143 21144 21145 21146 21147 21148 21149 21150 21151 21152 21153 21154 21155 21156 21157 21158 21159 21160 21161 21162 21163 21164 21165 21166 21167 21168 21169 21170 21171 21172 21173 21174 21175 21176 21177 21178 21179 21180 21181 21182 21183 21184 21185 21186 21187 21188 21189 21190 21191 21192 21193 21194 21195 21196 21197 21198 21199 21200 21201 21202 21203 21204 21205 21206 21207 21208 21209 21210 21211 21212 21213 21214 21215 21216 21217 21218 21219 21220 21221 21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 21238 21239 21240 21241 21242 21243 21244 21245 21246 21247 21248 21249 21250 21251 21252 21253 21254 21255 21256 21257 21258 21259 21260 21261 21262 21263 21264 21265 21266 21267 21268 21269 21270 21271 21272 21273 21274 21275 21276 21277 21278 21279 21280 21281 21282 21283 21284 21285 21286 21287 21288 21289 21290 21291 21292 21293 21294 21295 21296 21297 21298 21299 21300 21301 21302 21303 21304 21305 21306 21307 21308 21309 21310 21311 21312 21313 21314 21315 21316 21317 21318 21319 21320 21321 21322 21323 21324 21325 21326 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 21337 21338 21339 21340 21341 21342 21343 21344 21345 21346 21347 21348 21349 21350 21351 21352 21353 21354 21355 21356 21357 21358 21359 21360 21361 21362 21363 21364 21365 21366 21367 21368 21369 21370 21371 21372 21373 21374 21375 21376 21377 21378 21379 21380 21381 21382 21383 21384 21385 21386 21387 21388 21389 21390 21391 21392 21393 21394 21395 21396 21397 21398 21399 21400 21401 21402 21403 21404 21405 21406 21407 21408 21409 21410 21411 21412 21413 21414 21415 21416 21417 21418 21419 21420 21421 21422 21423 21424 21425 21426 21427 21428 21429 21430 21431 21432 21433 21434 21435 21436 21437 21438 21439 21440 21441 21442 21443 21444 21445 21446 21447 21448 21449 21450 21451 21452 21453 21454 21455 21456 21457 21458 21459 21460 21461 21462 21463 21464 21465 21466 21467 21468 21469 21470 21471 21472 21473 21474 21475 21476 21477 21478 21479 21480 21481 21482 21483 21484 21485 21486 21487 21488 21489 21490 21491 21492 21493 21494 21495 21496 21497 21498 21499 21500 21501 21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 21534 21535 21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 21555 21556 21557 21558 21559 21560 21561 21562 21563 21564 21565 21566 21567 21568 21569 21570 21571 21572 21573 21574 21575 21576 21577 21578 21579 21580 21581 21582 21583 21584 21585 21586 21587 21588 21589 21590 21591 21592 21593 21594 21595 21596 21597 21598 21599 21600 21601 21602 21603 21604 21605 21606 21607 21608 21609 21610 21611 21612 21613 21614 21615 21616 21617 21618 21619 21620 21621 21622 21623 21624 21625 21626 21627 21628 21629 21630 21631 21632 21633 21634 21635 21636 21637 21638 21639 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651 21652 21653 21654 21655 21656 21657 21658 21659 21660 21661 21662 21663 21664 21665 21666 21667 21668 21669 21670 21671 21672 21673 21674 21675 21676 21677 21678 21679 21680 21681 21682 21683 21684 21685 21686 21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 21699 21700 21701 21702 21703 21704 21705 21706 21707 21708 21709 21710 21711 21712 21713 21714 21715 21716 21717 21718 21719 21720 21721 21722 21723 21724 21725 21726 21727 21728 21729 21730 21731 21732 21733 21734 21735 21736 21737 21738 21739 21740 21741 21742 21743 21744 21745 21746 21747 21748 21749 21750 21751 21752 21753 21754 21755 21756 21757 21758 21759 21760 21761 21762 21763 21764 21765 21766 21767 21768 21769 21770 21771 21772 21773 21774 21775 21776 21777 21778 21779 21780 21781 21782 21783 21784 21785 21786 21787 21788 21789 21790 21791 21792 21793 21794 21795 21796 21797 21798 21799 21800 21801 21802 21803 21804 21805 21806 21807 21808 21809 21810 21811 21812 21813 21814 21815 21816 21817 21818 21819 21820 21821 21822 21823 21824 21825 21826 21827 21828 21829 21830 21831 21832 21833 21834 21835 21836 21837 21838 21839 21840 21841 21842 21843 21844 21845 21846 21847 21848 21849 21850 21851 21852 21853 21854 21855 21856 21857 21858 21859 21860 21861 21862 21863 21864 21865 21866 21867 21868 21869 21870 21871 21872 21873 21874 21875 21876 21877 21878 21879 21880 21881 21882 21883 21884 21885 21886 21887 21888 21889 21890 21891 21892 21893 21894 21895 21896 21897 21898 21899 21900 21901 21902 21903 21904 21905 21906 21907 21908 21909 21910 21911 21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 21922 21923 21924 21925 21926 21927 21928 21929 21930 21931 21932 21933 21934 21935 21936 21937 21938 21939 21940 21941 21942 21943 21944 21945 21946 21947 21948 21949 21950 21951 21952 21953 21954 21955 21956 21957 21958 21959 21960 21961 21962 21963 21964 21965 21966 21967 21968 21969 21970 21971 21972 21973 21974 21975 21976 21977 21978 21979 21980 21981 21982 21983 21984 21985 21986 21987 21988 21989 21990 21991 21992 21993 21994 21995 21996 21997 21998 21999 22000 22001 22002 22003 22004 22005 22006 22007 22008 22009 22010 22011 22012 22013 22014 22015 22016 22017 22018 22019 22020 22021 22022 22023 22024 22025 22026 22027 22028 22029 22030 22031 22032 22033 22034 22035 22036 22037 22038 22039 22040 22041 22042 22043 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055 22056 22057 22058 22059 22060 22061 22062 22063 22064 22065 22066 22067 22068 22069 22070 22071 22072 22073 22074 22075 22076 22077 22078 22079 22080 22081 22082 22083 22084 22085 22086 22087 22088 22089 22090 22091 22092 22093 22094 22095 22096 22097 22098 22099 22100 22101 22102 22103 22104 22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 22116 22117 22118 22119 22120 22121 22122 22123 22124 22125 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135 22136 22137 22138 22139 22140 22141 22142 22143 22144 22145 22146 22147 22148 22149 22150 22151 22152 22153 22154 22155 22156 22157 22158 22159 22160 22161 22162 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 22175 22176 22177 22178 22179 22180 22181 22182 22183 22184 22185 22186 22187 22188 22189 22190 22191 22192 22193 22194 22195 22196 22197 22198 22199 22200 22201 22202 22203 22204 22205 22206 22207 22208 22209 22210 22211 22212 22213 22214 22215 22216 22217 22218 22219 22220 22221 22222 22223 22224 22225 22226 22227 22228 22229 22230 22231 22232 22233 22234 22235 22236 22237 22238 22239 22240 22241 22242 22243 22244 22245 22246 22247 22248 22249 22250 22251 22252 22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 22267 22268 22269 22270 22271 22272 22273 22274 22275 22276 22277 22278 22279 22280 22281 22282 22283 22284 22285 22286 22287 22288 22289 22290 22291 22292 22293 22294 22295 22296 22297 22298 22299 22300 22301 22302 22303 22304 22305 22306 22307 22308 22309 22310 22311 22312 22313 22314 22315 22316 22317 22318 22319 22320 22321 22322 22323 22324 22325 22326 22327 22328 22329 22330 22331 22332 22333 22334 22335 22336 22337 22338 22339 22340 22341 22342 22343 22344 22345 22346 22347 22348 22349 22350 22351 22352 22353 22354 22355 22356 22357 22358 22359 22360 22361 22362 22363 22364 22365 22366 22367 22368 22369 22370 22371 22372 22373 22374 22375 22376 22377 22378 22379 22380 22381 22382 22383 22384 22385 22386 22387 22388 22389 22390 22391 22392 22393 22394 22395 22396 22397 22398 22399 22400 22401 22402 22403 22404 22405 22406 22407 22408 22409 22410 22411 22412 22413 22414 22415 22416 22417 22418 22419 22420 22421 22422 22423 22424 22425 22426 22427 22428 22429 22430 22431 22432 22433 22434 22435 22436 22437 22438 22439 22440 22441 22442 22443 22444 22445 22446 22447 22448 22449 22450 22451 22452 22453 22454 22455 22456 22457 22458 22459 22460 22461 22462 22463 22464 22465 22466 22467 22468 22469 22470 22471 22472 22473 22474 22475 22476 22477 22478 22479 22480 22481 22482 22483 22484 22485 22486 22487 22488 22489 22490 22491 22492 22493 22494 22495 22496 22497 22498 22499 22500 22501 22502 22503 22504 22505 22506 22507 22508 22509 22510 22511 22512 22513 22514 22515 22516 22517 22518 22519 22520 22521 22522 22523 22524 22525 22526 22527 22528 22529 22530 22531 22532 22533 22534 22535 22536 22537 22538 22539 22540 22541 22542 22543 22544 22545 22546 22547 22548 22549 22550 22551 22552 22553 22554 22555 22556 22557 22558 22559 22560 22561 22562 22563 22564 22565 22566 22567 22568 22569 22570 22571 22572 22573 22574 22575 22576 22577 22578 22579 22580 22581 22582 22583 22584 22585 22586 22587 22588 22589 22590 22591 22592 22593 22594 22595 22596 22597 22598 22599 22600 22601 22602 22603 22604 22605 22606 22607 22608 22609 22610 22611 22612 22613 22614 22615 22616 22617 22618 22619 22620 22621 22622 22623 22624 22625 22626 22627 22628 22629 22630 22631 22632 22633 22634 22635 22636 22637 22638 22639 22640 22641 22642 22643 22644 22645 22646 22647 22648 22649 22650 22651 22652 22653 22654 22655 22656 22657 22658 22659 22660 22661 22662 22663 22664 22665 22666 22667 22668 22669 22670 22671 22672 22673 22674 22675 22676 22677 22678 22679 22680 22681 22682 22683 22684 22685 22686 22687 22688 22689 22690 22691 22692 22693 22694 22695 22696 22697 22698 22699 22700 22701 22702 22703 22704 22705 22706 22707 22708 22709 22710 22711 22712 22713 22714 22715 22716 22717 22718 22719 22720 22721 22722 22723 22724 22725 22726 22727 22728 22729 22730 22731 22732 22733 22734 22735 22736 22737 22738 22739 22740 22741 22742 22743 22744 22745 22746 22747 22748 22749 22750 22751 22752 22753 22754 22755 22756 22757 22758 22759 22760 22761 22762 22763 22764 22765 22766 22767 22768 22769 22770 22771 22772 22773 22774 22775 22776 22777 22778 22779 22780 22781 22782 22783 22784 22785 22786 22787 22788 22789 22790 22791 22792 22793 22794 22795 22796 22797 22798 22799 22800 22801 22802 22803 22804 22805 22806 22807 22808 22809 22810 22811 22812 22813 22814 22815 22816 22817 22818 22819 22820 22821 22822 22823 22824 22825 22826 22827 22828 22829 22830 22831 22832 22833 22834 22835 22836 22837 22838 22839 22840 22841 22842 22843 22844 22845 22846 22847 22848 22849 22850 22851 22852 22853 22854 22855 22856 22857 22858 22859 22860 22861 22862 22863 22864 22865 22866 22867 22868 22869 22870 22871 22872 22873 22874 22875 22876 22877 22878 22879 22880 22881 22882 22883 22884 22885 22886 22887 22888 22889 22890 22891 22892 22893 22894 22895 22896 22897 22898 22899 22900 22901 22902 22903 22904 22905 22906 22907 22908 22909 22910 22911 22912 22913 22914 22915 22916 22917 22918 22919 22920 22921 22922 22923 22924 22925 22926 22927 22928 22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 22958 22959 22960 22961 22962 22963 22964 22965 22966 22967 22968 22969 22970 22971 22972 22973 22974 22975 22976 22977 22978 22979 22980 22981 22982 22983 22984 22985 22986 22987 22988 22989 22990 22991 22992 22993 22994 22995 22996 22997 22998 22999 23000 23001 23002 23003 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025 23026 23027 23028 23029 23030 23031 23032 23033 23034 23035 23036 23037 23038 23039 23040 23041 23042 23043 23044 23045 23046 23047 23048 23049 23050 23051 23052 23053 23054 23055 23056 23057 23058 23059 23060 23061 23062 23063 23064 23065 23066 23067 23068 23069 23070 23071 23072 23073 23074 23075 23076 23077 23078 23079 23080 23081 23082 23083 23084 23085 23086 23087 23088 23089 23090 23091 23092 23093 23094 23095 23096 23097 23098 23099 23100 23101 23102 23103 23104 23105 23106 23107 23108 23109 23110 23111 23112 23113 23114 23115 23116 23117 23118 23119 23120 23121 23122 23123 23124 23125 23126 23127 23128 23129 23130 23131 23132 23133 23134 23135 23136 23137 23138 23139 23140 23141 23142 23143 23144 23145 23146 23147 23148 23149 23150 23151 23152 23153 23154 23155 23156 23157 23158 23159 23160 23161 23162 23163 23164 23165 23166 23167 23168 23169 23170 23171 23172 23173 23174 23175 23176 23177 23178 23179 23180 23181 23182 23183 23184 23185 23186 23187 23188 23189 23190 23191 23192 23193 23194 23195 23196 23197 23198 23199 23200 23201 23202 23203 23204 23205 23206 23207 23208 23209 23210 23211 23212 23213 23214 23215 23216 23217 23218 23219 23220 23221 23222 23223 23224 23225 23226 23227 23228 23229 23230 23231 23232 23233 23234 23235 23236 23237 23238 23239 23240 23241 23242 23243 23244 23245 23246 23247 23248 23249 23250 23251 23252 23253 23254 23255 23256 23257 23258 23259 23260 23261 23262 23263 23264 23265 23266 23267 23268 23269 23270 23271 23272 23273 23274 23275 23276 23277 23278 23279 23280 23281 23282 23283 23284 23285 23286 23287 23288 23289 23290 23291 23292 23293 23294 23295 23296 23297 23298 23299 23300 23301 23302 23303 23304 23305 23306 23307 23308 23309 23310 23311 23312 23313 23314 23315 23316 23317 23318 23319 23320 23321 23322 23323 23324 23325 23326 23327 23328 23329 23330 23331 23332 23333 23334 23335 23336 23337 23338 23339 23340 23341 23342 23343 23344 23345 23346 23347 23348 23349 23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 23361 23362 23363 23364 23365 23366 23367 23368 23369 23370 23371 23372 23373 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 23386 23387 23388 23389 23390 23391 23392 23393 23394 23395 23396 23397 23398 23399 23400 23401 23402 23403 23404 23405 23406 23407 23408 23409 23410 23411 23412 23413 23414 23415 23416 23417 23418 23419 23420 23421 23422 23423 23424 23425 23426 23427 23428 23429 23430 23431 23432 23433 23434 23435 23436 23437 23438 23439 23440 23441 23442 23443 23444 23445 23446 23447 23448 23449 23450 23451 23452 23453 23454 23455 23456 23457 23458 23459 23460 23461 23462 23463 23464 23465 23466 23467 23468 23469 23470 23471 23472 23473 23474 23475 23476 23477 23478 23479 23480 23481 23482 23483 23484 23485 23486 23487 23488 23489 23490 23491 23492 23493 23494 23495 23496 23497 23498 23499 23500 23501 23502 23503 23504 23505 23506 23507 23508 23509 23510 23511 23512 23513 23514 23515 23516 23517 23518 23519 23520 23521 23522 23523 23524 23525 23526 23527 23528 23529 23530 23531 23532 23533 23534
|
#This file was created by <mike> Tue Jan 25 10:36:51 2000
#LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team
\lyxformat 2.15
\textclass book
\begin_preamble
% DO NOT ALTER THIS PREAMBLE!!!!
%
% I've designed this preamble to ensure that the User's Guide prints
% out as advertised. If you mess with this preamble,
% parts of the User's Guide may not print out as expected. If you
% have problems LaTeXing this file, please contact
% the documentation team intead of messing around in here. --jpw 4/97
%% Widens the vertical table spacing
%%
\renewcommand{\arraystretch}{1.25}
\setlength{\tabcolsep}{0.45em}
%% Provides certain commands which are missing.
%%
\DeclareRobustCommand{\textyen}{%
{\fontencoding{U}\fontfamily{msa}\selectfont\char85}%
}
\DeclareRobustCommand{\textcurrency}{%
{\fontencoding{U}\fontfamily{wasy}\selectfont\char27}%
}
\DeclareRobustCommand{\textcent}{%
{\fontencoding{U}\fontfamily{wasy}\selectfont\char103}%
}
\DeclareRobustCommand{\textbrokenbar}{%
{\fontencoding{U}\fontfamily{wasy}\selectfont\char124}%
}
%% For some odd reason, this character isn't defined in T1-encoding.
%%
\DeclareInputText{"0AD}{\textendash}
%% Accented characters missing in non-T1 encodings.
%%
\ProvideTextCommandDefault{\quotedblbase}{%
\raisebox{-1ex}{\textquotedblright}
\hspace{-0.7em}
}
\ProvideTextCommandDefault{\quotesinglbase}{%
\raisebox{-1ex}{\textquoteright}
\hspace{-0.7em}
}
\ProvideTextCommandDefault{\guillemotleft}{%
\raisebox{0.27ex}{\ensuremath{\scriptscriptstyle \ll\!\!\!}}
}
\ProvideTextCommandDefault{\guillemotright}{%
\raisebox{0.27ex}{\ensuremath{\scriptscriptstyle \gg}}
}
\ProvideTextCommandDefault{\guilsinglleft}{%
\raisebox{0.27ex}{\ensuremath{\scriptscriptstyle <\!\!\!}}
}
\ProvideTextCommandDefault{\guilsinglright}{%
\raisebox{0.27ex}{\ensuremath{\scriptscriptstyle >}}
}
\ProvideTextCommandDefault{\DH}{%
D\hspace{-0.7em}\rule[0.8ex]{0.30em}{0.08ex}\hspace{0.40em}
}
\ProvideTextCommandDefault{\dh}{%
\ensuremath{\mathrm{\partial}}
\hspace{-0.65em}\rule[1.35ex]{0.3em}{0.08ex}\hspace{0.35em}
}
\ProvideTextCommandDefault{\TH}{%
\textsc{I\hspace{-0.325em}p}
}
\ProvideTextCommandDefault{\th}{%
p\hspace{-0.55em}l
}
\end_preamble
\language default
\inputencoding latin1
\fontscheme default
\graphics default
\paperfontsize default
\spacing single
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 2
\paperpagestyle headings
\layout Title
The LyX User's Guide
\layout Author
by the LyX Team
\begin_float footnote
\layout Standard
\noindent
This file is currently maintained by
\noun on
Mike Ressler
\noun default
, mike.ressler@alum.mit.edu.
Please send comments or error corrections to that address.
\end_float
\layout Standard
\begin_inset LatexCommand \tableofcontents{}
\end_inset
\layout Chapter
Introduction
\layout Section
What Is LyX?
\layout Standard
LyX is a program that provides a more modern approach to writing documents
with a computer, an approach that breaks with the obsolete tradition of
the
\begin_inset Quotes eld
\end_inset
typewriter concept.
\begin_inset Quotes erd
\end_inset
It is designed for authors who want professional output quickly with a
minimum of effort without becoming specialists in typesetting.
Compared to common word processors, LyX will increase productivity a lot,
since the job of typesetting is done mostly by the computer, not the author.
With LyX, the author can concentrate on the contents of her writing, since
the computer takes care of the look.
\layout Standard
Technically this is done by combining the comfortable interface of a word
processor with the high quality of a real typesetting system.
LyX uses the most popular and, in our opinion, best typesetting system
available: LaTeX.
LaTeX is used for a wide range of documents, especially in science.
For example, it's difficult to find a mathematics or computer science book
that is not done with LaTeX.
So, some people claim that its main purpose is mathematical typesetting.
This isn't true.
LaTeX is equally good for writing letters, articles, books, or any other
kind of document, and does so much better than common word processors.
What prevents some people from using this powerful, free typesetting system,
one that is available for almost every computer system, is its difficult
usage.
With plain LaTeX, you need to enter a series of typesetting commands into
the text in order to produce your document.
As a result, you get no visual feedback until you feed your document to
the LaTeX program.
It's also difficult to read these documents before they have been printed.
So, online editing isn't very easy.
This is where LyX enters the game.
\layout Standard
LyX provides an
\begin_inset Quotes eld
\end_inset
almost-WYSIWYG
\begin_inset Quotes erd
\end_inset
view of the document.
\begin_inset Quotes eld
\end_inset
Almost
\begin_inset Quotes erd
\end_inset
means that the line- and page-breaks are not displayed exactly as they
will appear in the printed document.
However, that's not really necessary, since LyX uses a separate typesetter
program [here, LaTeX] to perform the final formatting of your text.
While LyX contains everything it needs to be a comfortable user interface,
the typesetting program contains everything necessary to format text, and
do so very, very well.
There's no need to reinvent the wheel, after all.
Besides, computers are best at following a set of rules, and doing so repeatedl
y and consistently.
Why should you do extra work remembering which subsubsection in which section
in which chapter you're in, what numbering scheme your using, how big the
different headings are, what font you used for the different types of headings,
and so on, and so on, and so on, \SpecialChar \ldots{}
when a computer can do all of that for
you? The answer is simple: you shouldn't, and with LyX, you don't have
to.
So, line- and page-breaks aren't your problem anymore.
Remembering which number to use for the next subsection isn't your problem
anymore.
Recalling what font you used for all of your section headings isn't your
problem anymore.
With LyX, you simply choose a so-called
\begin_inset Quotes eld
\end_inset
paragraph environment.
\begin_inset Quotes erd
\end_inset
That's it.
You're done.
\layout Standard
This gives you far more power than you may think.
No longer do you need to scroll through a 75 page document, changing all
of the section numbers because you deleted an old section.
You could even pick a section, heading and all, up out of one document
and drop it in a new one.
LyX does the renumbering for you, adds the section to the Table of Contents,
and more! Because you tell LyX [and LaTeX] what
\emph on
kind
\emph default
of document you're editing and what
\emph on
type
\emph default
of paragraph this-or-that text is, the computer can typeset it accordingly.
Cut some paragraphs from an old document [say, an article] and paste them
in a completely different one, [say, a letter] and LyX does the rest.
Of course you can also still do some low-level formatting for fine-tuning.
However, the proper way with LyX is to tell the computer what the text
\emph on
is
\emph default
, not what it should look like.
So, we like to say that LyX gives you WYSIWYM editing [What You See Is
What You
\emph on
Mean
\emph default
].
\layout Standard
Some people might be tempted to call LyX a
\begin_inset Quotes eld
\end_inset
frontend to LaTeX.
\begin_inset Quotes erd
\end_inset
This isn't quite fair.
LyX performs some typesetting internally to generate the correct look on
the screen.
Furthermore, LyX has some extensions to LaTeX specially designed to work
with the WYSIWYM-concept.
So, it's actually better to call LyX a
\emph on
High Level Wordprocessor
\emph default
that uses LaTeX as its backend.
\layout Section
About This Document
\layout Standard
If you haven't read the
\emph on
\begin_inset Quotes eld
\end_inset
Introduction
\begin_inset Quotes erd
\end_inset
\emph default
, you need to.
Yes, we mean now.
\layout Standard
The
\begin_inset Quotes eld
\end_inset
\emph on
Introduction
\emph default
\begin_inset Quotes erd
\end_inset
describes several things, most importantly, the format of all of the manuals.
If you don't read it, you'll have a bear of a time navigating this manual.
You might also be better served looking in one of the other manuals instead
of this one.
\begin_inset Quotes eld
\end_inset
\emph on
Introduction
\emph default
\begin_inset Quotes erd
\end_inset
describes that, too.
\layout Standard
A full list of credits, containing of the LyX Documentation Project member,
appears at the end of this file.
\layout Section
Getting Started
\layout Subsection
Invoking LyX
\layout Standard
Similar to other Linux [and other brands of Unix] programs, you start LyX
by simply typing
\family typewriter
lyx
\family default
at the command line.
You can, of course, include several command-line options, including file
names.
We're not going to repeat all of the command-line options here, since we've
already done that in the
\family typewriter
man
\family default
page for LyX.
Check there for more info.
\layout Standard
There are one or two things we'd like to comment on:
\layout Itemize
If you include more than one file name on the command line, LyX will load
them all, though it won't display them all simultaneously.
More on that in a bit.
\layout Itemize
Many of you X-perts out there will try, in vain, to use the
\family typewriter
-geometry
\family default
option or its cousin, which has the form:
\family typewriter
-80x24+5+5
\family default
.
For now, there is a workaround via the options
\family typewriter
-height
\family default
,
\family typewriter
-width
\family default
,
\family typewriter
-xpos
\family default
and
\family typewriter
-ypos
\family default
.
\layout Subsection
How LyX Looks
\layout Subsubsection
The Main Window
\layout Standard
Like most applications, LyX has the familiar menu bar across the top of
its window.
Below it is a toolbar with a pulldown box and various buttons.
There is, of course, a vertical scrollbar and a main work area for editing
documents.
At the bottom of the window is a small window containing a single line
of text.
This is the
\emph on
minibuffer
\emph default
[a term which we've swiped, lock, stock, and barrel, from GNU Emacs].
It not only displays status information, but takes input, as well.
\layout Standard
Note that there is no horizontal scroll bar.
This is not a bug or an oversight, but intentional.
When you read a book, you expect the end of a line to wrap around to the
next line.
Text overflows onto new pages in a vertical fashion, hence the need for
only a vertical scrollbar.
\layout Standard
There are three cases where you might want a horizontal scrollbar.
The first case is large figures, displayed WYSIWYG\SpecialChar \@.
This, however, is due
to a flaw in the routine that displays graphics on the LyX screen in a
WYSIWYG fashion; it should rescale the graphics to fit in the window, just
as you'd need to rescale graphics to fit on a page.
The second and third cases are tables and equations which are wider than
the LyX window.
That is indeed a problem, one which will be resolved in a future version
of LyX.
\layout Subsubsection
Popups
\layout Standard
Ever heard of a
\begin_inset Quotes eld
\end_inset
dialog box?
\begin_inset Quotes erd
\end_inset
We LyXers like to call them popups windows, or popups for short.
Almost all of the LyX popups have three basic buttons:
\family sans
OK
\family default
,
\family sans
\bar under
A
\bar default
pply
\family default
, and
\family sans
Cancel
\family default
.
The first and last ones are self-explanatory.
The
\family sans
\bar under
A
\bar default
pply
\family default
button works similarly to the
\family sans
OK
\family default
button, in that it activates whatever changes you made in the popup; however,
it doesn't close the popup, like
\family sans
OK
\family default
does.
Actually, pressing the
\family sans
OK
\family default
button is exactly the same as pressing
\family sans
\bar under
A
\bar default
pply
\family default
to commit the changes and then
\family sans
Cancel
\family default
to close the popup.
The three buttons also have shortcut keys:
\layout Itemize
\family sans
OK
\family default
is bound to the
\family sans
Return
\family default
key, as in most programs
\layout Itemize
\family sans
\bar under
A
\bar default
pply
\family default
is bound to
\family sans
M-a
\family default
[as you might expect]
\layout Itemize
\family sans
Cancel
\family default
is bound to the
\family sans
Esc
\family default
key.
\layout Standard
There are some popups that have different buttons.
Not to worry, they're typically self-explanatory.
We just wanted to document somewhere what that
\family sans
\bar under
A
\bar default
pply
\family default
does.
\layout Subsection
HELP!
\layout Standard
First, the bad news: the help system is not as thorough or idiot-proof as
in many commercial applications.
Patience.
We're working on it.
\layout Standard
Now the good news: the help system consists of the LyX manuals.
You can read
\emph on
all
\emph default
of the manuals from inside LyX.
Just select the manual you want read from the
\family sans
\bar under
H
\bar default
elp
\family default
menu.
\layout Standard
While we're at it, we'd like to make a comment about the manuals.
They're not idiot-proof, not in the least.
Here's what one of our authors,
\noun on
John Weiss
\noun default
, once said about manuals:
\layout Quotation
I hate manuals.
\layout Quotation
Yes, we've all dealt with the terse, poorly-translated, or cryptic manuals.
They are aggravating.
I find, however, that the overly simplified ones are even more aggravating.
First, they spend about half their time carefully explaining to the user
how to operate a mouse, what a menu is, et cetera, et cetera, ad nauseum.
Please, if someone doesn't know how to use their own computer, or a GUI,
then they should sit down and learn
\emph on
before
\emph default
they start up a major piece of software.
\layout Quotation
Second, what information they do provide seems to assume that the user is
stupid.
Utter nonsense! Most users, in my experience, are some combination of clueless
and intimidated, not stupid.
Besides, if someone is truly slow on the uptake, they need help that a
manual for a piece of computer software can't give.
\layout Standard
\emph on
Editor's Note: With this in mind, I've instructed all of the other authors
to avoid patronizing you, the reader, and to be more pedagogical than pedantic.
As for those who are too lazy to read and understand the manuals --- well,
as we say here in America, there's no such thing as a free lunch.
- jw
\layout Section
The LyX Interface
\layout Subsection
Basic File Operations
\layout Standard
Under the
\family sans
\bar under
F
\bar default
ile
\family default
menu are the 9 basic operations for any word processor:
\layout Itemize
\family sans
\bar under
N
\bar default
ew
\layout Itemize
\family sans
New from
\bar under
t
\bar default
emplate
\layout Itemize
\family sans
\bar under
O
\bar default
pen
\layout Itemize
\family sans
\bar under
C
\bar default
lose
\layout Itemize
\family sans
\bar under
S
\bar default
ave
\layout Itemize
\family sans
Save
\protected_separator
\bar under
A
\bar default
s
\layout Itemize
\family sans
\bar under
R
\bar default
evert to saved
\layout Itemize
\family sans
\bar under
P
\bar default
rint
\layout Itemize
\family sans
E
\bar under
x
\bar default
it
\layout Standard
They all do pretty much the same thing as in other word processors, with
a few minor differences.
The
\family sans
\bar under
F
\bar default
ile\SpecialChar \menuseparator
New from template
\family default
command not only prompts you for a name for the new file, but also prompts
you for a template to use.
Selecting a template will automatically set certain layout features for
the document, features you would otherwise need to change manually.
They can be of use for certain classes, especially those for writing letters
[see sec.
\begin_inset LatexCommand \ref{sec:doc-classes}
\end_inset
]
\layout Standard
Note: There is no
\begin_inset Quotes eld
\end_inset
default file
\begin_inset Quotes erd
\end_inset
or document named
\begin_inset Quotes eld
\end_inset
Untitled
\begin_inset Quotes erd
\end_inset
or
\begin_inset Quotes eld
\end_inset
scratch.
\begin_inset Quotes erd
\end_inset
Unless you tell LyX to open a file or create a new one, that big, blank
space is just that --- a big, blank space.
\layout Standard
The
\family sans
\bar under
R
\bar default
evert to saved
\family default
command is useful if more people work on the same document at the same
time
\begin_float footnote
\layout Standard
If you plan to do this, you should check out the Version Control feature
in LyX also.
Read
\emph on
Extended Features
\emph default
\SpecialChar \@.
\end_float
.
It will simply reload the document from disk.
You can of course also use it if you regret that you changed a document
and want to restore it to the last save.
\layout Standard
The second matter of note concerns the commands
\family sans
\bar under
F
\bar default
ile\SpecialChar \menuseparator
\bar under
C
\bar default
lose
\family default
and
\family sans
\bar under
F
\bar default
ile\SpecialChar \menuseparator
E
\bar under
x
\bar default
it
\family default
.
They both feature a
\begin_inset Quotes eld
\end_inset
nag box
\begin_inset Quotes erd
\end_inset
to save us all from our own stupidity.
That is, if you try to close a file with changes [or exit LyX], you'll
be informed that there are unsaved files.
\begin_float footnote
\layout Standard
Some of you will know that previous versions of LyX would crash if you tried
to kill the window from the window manager [i.e.
double-clicking the upper left corner].
This was fixed in 0.12, so it's safe to do that now.
\end_float
\layout Subsection
Basic Editing Features
\layout Standard
Like most modern word processors, LyX can perform cut and paste operations
on blocks of text, can move by character, word, or screenful of text, and
can delete whole words as well as individual characters.
The next four sections cover the basic LyX editing features and how to
access them.
We'll start with cut and paste.
\layout Standard
As you might expect, the
\family sans
\bar under
E
\bar default
dit
\family default
menu has the cut and paste commands, along with various other editing features.
Some of these are special and covered in later sections, such as the
\family sans
Flo
\bar under
a
\bar default
ts
\protected_separator
&
\protected_separator
Insets
\family default
submenu.
The basic ones are:
\layout Itemize
\family sans
\bar under
C
\bar default
ut
\layout Itemize
\family sans
C
\bar under
o
\bar default
py
\layout Itemize
\family sans
\bar under
P
\bar default
aste
\layout Itemize
\family sans
\bar under
F
\bar default
ind
\protected_separator
&
\protected_separator
Replace
\layout Standard
The first three are self-explanatory.
One thing to note: whenever you delete a block of text that you've selected,
it's automatically placed in the clipboard.
That is, the
\family sans
Delete
\family default
and
\family sans
Backspace
\family default
keys also functions as the
\family sans
Cut
\family default
command.
Also, if you've selected text, be careful.
If you hit a key, LyX will completely delete the selected text and replace
it with what you just typed.
You'll have to do an
\family sans
Undo
\family default
to get back the lost text.
\layout Standard
The
\family sans
\bar under
E
\bar default
dit\SpecialChar \menuseparator
\bar under
F
\bar default
ind
\protected_separator
&
\protected_separator
Replace
\family default
item opens the
\family sans
Find
\protected_separator
&
\protected_separator
Replace
\family default
popup.
LyX does its find and replace work a little bit differently than certain
commercial programs.
Obviously, the text you want to find goes in the
\family sans
Fi
\bar under
n
\bar default
d
\family default
box.
The two arrow buttons search backward and forward, respectively [it's obvious
which does which].
\begin_float footnote
\layout Standard
These two arrows can be accessed from the keyboard via the shortcuts
\family sans
M-f
\family default
and
\family sans
M-b
\family default
for forward and back.
\end_float
Once you've found a word or expression, LyX selects it.
Hitting the
\family sans
\bar under
R
\bar default
eplace
\family default
button replaces the selected text with the contents of the
\family sans
Replace
\protected_separator
\bar under
w
\bar default
ith
\family default
box.
\layout Standard
Let's state that again: you can't do a replace unless you've done a find
first.
\layout Standard
To repeat a replace, click the arrow key to find the next/previous word,
then hit the
\family sans
\bar under
R
\bar default
eplace
\family default
button.
There is no operation to do a
\begin_inset Quotes eld
\end_inset
replace all
\begin_inset Quotes erd
\end_inset
.
[At least not yet\SpecialChar \ldots{}
]
\layout Standard
The
\family sans
Case sensitive
\family default
toggle button can be used if you want the search to consider the case of
the search word.
If the toggle is set, searching for
\begin_inset Quotes eld
\end_inset
\family typewriter
Match
\family default
\begin_inset Quotes erd
\end_inset
will not match the word
\begin_inset Quotes eld
\end_inset
\family typewriter
match
\family default
\begin_inset Quotes erd
\end_inset
.
\layout Standard
The
\family sans
Match Word
\family default
toggle button can be used to force LyX to only find complete words.
I.e.
searching for
\begin_inset Quotes eld
\end_inset
\family typewriter
match
\family default
\begin_inset Quotes erd
\end_inset
will not match
\begin_inset Quotes eld
\end_inset
\family typewriter
matches
\family default
\begin_inset Quotes erd
\end_inset
.
\layout Subsection
Undo and Redo
\layout Standard
If you make a mistake, you can easily recover from it.
LyX has an infinite-capacity undo/redo buffer.
Select
\family sans
\bar under
E
\bar default
dit\SpecialChar \menuseparator
\bar under
U
\bar default
ndo
\family default
to undo some mistake.
If you accidently undo too much, use
\family sans
\bar under
E
\bar default
dit\SpecialChar \menuseparator
\bar under
R
\bar default
edo
\family default
to
\begin_inset Quotes eld
\end_inset
undo the undo.
\begin_inset Quotes erd
\end_inset
\emph on
The undo-mechanism has been limited to 100 steps in the beta-version, as
this feature has not yet been properly tested out.
\layout Standard
You can't use
\family sans
\bar under
R
\bar default
edo
\family default
beyond the most recent change.
Likewise, you can't
\family sans
\bar under
U
\bar default
ndo
\family default
beyond the first change you made after opening the file.
In such situations, the corresponding menu entries are grayed out.
Notice that if you revert back all changes to arrive to the document as
it was last saved, the
\begin_inset Quotes eld
\end_inset
changed
\begin_inset Quotes erd
\end_inset
status of the document is unfortunately not reset.
This is a known bug.
\layout Standard
The
\family sans
\bar under
U
\bar default
ndo
\family default
and
\family sans
\bar under
R
\bar default
edo
\family default
work on almost everything in LyX.
They have some quirks, too.
They won't
\family sans
\bar under
U
\bar default
ndo
\family default
or
\family sans
\bar under
R
\bar default
edo
\family default
text character by character, but by blocks of text.
That can take some getting used to; you'll have to play with
\family sans
\bar under
U
\bar default
ndo
\family default
and
\family sans
\bar under
R
\bar default
edo
\family default
to get a feel for just how much they'll undo/redo, and after time, you'll
hopefully appreciate how it works.
Also,
\family sans
\bar under
R
\bar default
edo
\family default
does not work inside of math mode.
Tip: if you enter
\family sans
Math mode
\family default
, change an equation, then leave math mode,
\family sans
\bar under
U
\bar default
ndo
\family default
will revert to the old version of the equation, the one which existed before
you entered
\family sans
Math mode
\family default
.
\layout Subsection
Basic Mouse Bindings
\layout Standard
We're not going to go into all of the mouse bindings here.
Some of the other sections of this manual cover specific operations you
can do with the mouse.
Instead, we're going to cover the most basic mouse operations.
\layout Enumerate
Motion
\begin_deeper
\layout Itemize
Click the
\emph on
left mouse button
\emph default
once anywhere in the edit window.
The cursor moves to the text under the mouse.
\layout Itemize
The
\begin_inset Quotes eld
\end_inset
Scroll Bar
\begin_inset Quotes erd
\end_inset
\begin_deeper
\layout Standard
The scrollbar in LyX works pretty much as any other scrollbar around, except
that we've enhanced it a bit.
The scrollbar arrow buttons can do more than meets the eye:
\layout Itemize
Use the
\emph on
left mouse button
\emph default
to scroll by one line in the direction of the arrow.
\layout Itemize
Use the
\emph on
right mouse button
\emph default
to scroll a page in the
\emph on
same
\emph default
direction as the arrow.
\layout Itemize
Use the
\emph on
middle mouse button
\emph default
to scroll a page in the
\emph on
opposite
\emph default
direction of the arrow.
\end_deeper
\layout Itemize
References
\begin_deeper
\layout Standard
Click on the
\emph on
left mouse button
\emph default
to jump to the referenced section.
\end_deeper
\end_deeper
\layout Enumerate
Selecting Text
\begin_deeper
\layout Itemize
Hold down the
\emph on
left mouse button
\emph default
and drag the mouse.
LyX selects the text between the old and new mouse positions.
This is similar to how other programs work.
\layout Itemize
Click the
\emph on
middle mouse button
\emph default
to paste text.
LyX repositions the cursor under the mouse and puts the pasted material
into the text at that position.
Also, if you've selected any text, LyX copies it into the paste buffer
and pastes it.
\end_deeper
\layout Enumerate
Footnotes, Margin Notes, Figure and Table Floats, etc.
\begin_deeper
\layout Standard
\emph on
Single click
\emph default
\emph on
the
\emph default
left mouse button to open or close any of these.
Also check the appropriate section of this manual for more details.
\end_deeper
\layout Enumerate
Tables
\begin_deeper
\layout Standard
\emph on
Single click the right mouse button
\emph default
to open a pop-up that will allow you to manipulate the table.
\end_deeper
\layout Subsection
Basic Key Bindings
\layout Standard
Again, we're not going to cover all of the keybindings.
You should know how to use a keyboard by now.
Besides, the
\emph on
Reference manual
\emph default
contains a complete list of
\emph on
all
\emph default
of the keybindings.
\layout Standard
Some keys, like
\family sans
PageUp
\family default
,
\family sans
PageDown
\family default
,
\family sans
Left
\family default
,
\family sans
Right
\family default
,
\family sans
Up
\family default
, and
\family sans
Down
\family default
, do exactly what you expect them to do.
Other keys don't:
\layout List
\labelwidthstring 00.00.0000
\family sans
Tab
\family default
There is no such thing as a tab stop in LyX.
If you don't understand this, go read Section
\begin_inset LatexCommand \ref{sec:parindentintro}
\end_inset
and
\begin_inset LatexCommand \ref{sec:par-environments}
\end_inset
, especially sec.
\begin_inset LatexCommand \ref{sec:parenvlists}
\end_inset
, right now.
Yes, right now.
If you're still confused, look in the
\emph on
Tutorial
\emph default
.
\layout List
\labelwidthstring 00.00.0000
\family sans
Esc
\family default
This is the
\begin_inset Quotes eld
\end_inset
cancel key.
\begin_inset Quotes erd
\end_inset
It's used, generically, to cancel operations.
Other parts of the manual will go into greater detail about this.
\layout List
\labelwidthstring 00.00.0000
\family sans
Home
\family default
\protected_separator
and
\protected_separator
\family sans
End
\family default
These move the cursor, respectively, to the beginning and end of a line.
\layout List
\labelwidthstring 00.00.0000
\family sans
Backspace
\family default
\protected_separator
and
\protected_separator
\family sans
Delete
\family default
\emph on
If
\emph default
you have your keyboard set up correctly under the X Windows System,
\family sans
Backspace
\family default
works as expected and
\family sans
Delete
\family default
deletes the character to the right of the cursor [if no text is selected].
\begin_deeper
\layout Standard
If you haven't set up your keyboard under X, or have no idea what we mean
by that, go read section
\begin_inset LatexCommand \ref{sec:x-win-keys}
\end_inset
immediately.
You'll save yourself a lot of headaches.
\end_deeper
\layout Standard
Then there are the modifier keys:
\layout List
\labelwidthstring 00.00.0000
\family sans
Control-
\family default
This has a couple of different uses, depending on which keys it's used
in combination with:
\begin_deeper
\layout Itemize
With
\family sans
Backspace
\family default
or
\family sans
Delete
\family default
, it deletes an entire word instead of a single character.
\layout Itemize
With
\family sans
Left
\family default
and
\family sans
Right
\family default
, it moves by words instead of characters.
\layout Itemize
With
\family sans
Home
\family default
and
\family sans
End
\family default
, it moves to the beginning and the end of the document, respectively.
\end_deeper
\layout List
\labelwidthstring 00.00.0000
\family sans
Shift-
\family default
Use this with any of the motion keys to select the text between the old
and new cursor positions.
\layout List
\labelwidthstring 00.00.0000
\family sans
Meta-
\family default
As we noted earlier, this is the
\family sans
Alt
\family default
- key on many keyboards.
This key does many different things, but it also activated the
\emph on
menu accelerator keys
\emph default
.
If you use this in combination with any of the underlined letters in a
menu or menu item, it selects that menu item.
If you use the accelerator key for a menu and then hit
\family sans
Space
\family default
, you'll open that menu.
\begin_deeper
\layout Standard
For example, the sequence
\begin_inset Quotes eld
\end_inset
\family sans
M-e
\protected_separator
p
\family default
\begin_inset Quotes erd
\end_inset
pastes text.
Typing
\begin_inset Quotes eld
\end_inset
\family sans
M-f
\protected_separator
Space
\family default
\begin_inset Quotes erd
\end_inset
opens the
\family sans
\bar under
F
\bar default
ile
\family default
menu.
\layout Standard
There are also other things bound to the
\family sans
Meta-
\family default
key, but you'll have to check in the
\emph on
Reference
\emph default
\emph on
manual
\emph default
for more info.
\end_deeper
\layout Standard
Hopefully, you'll learn more and more keybindings and short-cut keys as
you use LyX, because most mouse actions will prompt a small message in
the minibuffer which describe the name of the action, you've just triggered,
and any existing keybindings for that action.
The notation for the keybindings is very similar to the notation used in
this documentation, so you should not have any problems understanding it.
However, notice that Shift-modifiers are explicitly mentioned, so
\family sans
\begin_inset Quotes eld
\end_inset
M-p S-A
\family default
\begin_inset Quotes erd
\end_inset
means
\family sans
Meta-p
\family default
followed by a capital
\family sans
A
\family default
.
\begin_inset Quotes eld
\end_inset
\family sans
S-C-S
\family default
\begin_inset Quotes erd
\end_inset
means
\family sans
Shift-Control-s
\family default
.
\layout Section
Using LyX with Other Programs
\layout Subsection
Importing ASCII files
\layout Standard
You can import text from an ASCII file using the
\family sans
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
Import
\protected_separator
\bar under
A
\bar default
SCII
\protected_separator
File
\family default
submenu.
It contains two different options:
\family sans
As
\protected_separator
\bar under
L
\bar default
ines
\family default
and
\family sans
As
\protected_separator
\bar under
P
\bar default
aragraphs
\family default
.
\layout Standard
\family sans
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
Import
\protected_separator
\bar under
A
\bar default
SCII
\protected_separator
File\SpecialChar \menuseparator
As
\protected_separator
\bar under
L
\bar default
ines
\family default
puts each line of the file into its own LyX paragraph.
This is useful if you're importing a text file with a simple list in it.
However, if your text file contains paragraphs in it, LyX will mangle the
paragraphs if you use this form of import.
\layout Standard
\family sans
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
Import
\protected_separator
\bar under
A
\bar default
SCII
\protected_separator
File\SpecialChar \menuseparator
As
\protected_separator
\bar under
P
\bar default
aragraphs
\family default
preserves paragraphs in text files.
Often in a text file, you didn't put the contents of an entire paragraph
on one line.
You used
\family sans
Return
\family default
to break up the paragraph into separate lines.
Using the
\family sans
As
\protected_separator
\bar under
P
\bar default
aragraphs
\family default
option, LyX won't mangle such paragraphs.
Anything between two consecutive blank lines goes into its own LyX paragraph.
\emph on
But Remember:
\emph default
you must make sure there is a
\emph on
completely blank
\emph default
line between each and every paragraph in your text file.
If not, LyX might end up merging two paragraphs.
\layout Standard
Use these options wisely.
You have been warned!
\layout Subsection
Cut and Paste Between LyX and Other X Programs
\layout Standard
The
\family sans
Cut
\family default
,
\family sans
Copy
\family default
, and
\family sans
Paste
\family default
operations work only
\emph on
inside
\emph default
LyX.
At the moment, you can't copy text from LyX to another X-Windows program.
Sorry, but this is not implemented yet.
\layout Standard
The LyX team has managed, however, to get the other direction working.
That is, you can copy text from another X-Windows program
\emph on
into
\emph default
LyX.
This special form of pasting works like the ASCII import feature; you can
paste as lines or as paragraphs.
Use:
\layout Itemize
\family sans
Paste
\protected_separator
Primary
\protected_separator
Selection
\protected_separator
As
\protected_separator
\bar under
L
\bar default
ines
\layout Itemize
\family sans
Paste
\protected_separator
Primary
\protected_separator
Selection
\protected_separator
As
\protected_separator
Para
\bar under
g
\bar default
raphs
\layout Standard
from the
\family sans
\bar under
E
\bar default
dit
\family default
menu to do this.
\layout Chapter
LyX Setup and Supporting Applications
\layout Section
Introduction
\layout Standard
If you're using LyX on a system someone else has set up for you, then you
can safely skip this chapter.
It describes all of the things you need beyond the LyX binary and files
distributed with it.
\layout Standard
If you're installing LyX on your system,
\emph on
you should read the README's that came with the LyX distribution and then
\family sans
\emph default
Help\SpecialChar \menuseparator
LaTeX
\protected_separator
configuration
\family default
\emph on
.
\emph default
Do that first.
This chapter does not describe installation or setup of the LyX binary
[Well, not everything\SpecialChar \ldots{}
].
It does describe all of the things you'll need to use LyX to its fullest.
\begin_float footnote
\layout Standard
This is basically where we decided to document a bunch of info about running
LyX, including what other programs you'll need to make LyX useful.
\end_float
\layout Section
Requirements
\layout Standard
The version of LyX distributed as binaries only needs X Windows (X11R6).
But it will compile under X11R5 as well.
LyX is quite small (about 1M without XForms) and doesn't even need much
memory to store the documents.
It's also not that fast,
\begin_float footnote
\layout Standard
It might take while if text in a new font has to be displayed, since the
font has to be loaded into the X-server.
LyX will not load fonts until they are really needed, so not all fonts
are immediately accessible in all possible styles and sizes.
\end_float
but fast enough to allow working on a 386DX40 with 8MB RAM.
\begin_float footnote
\layout Standard
Note from
\noun on
Matthias
\noun default
:
\begin_inset Quotes eld
\end_inset
I know people who do this.
\begin_inset Quotes erd
\end_inset
\end_float
\layout Standard
If you want to print and preview, you also need a complete LaTeX2e installation,
including
\family typewriter
dvips
\family default
and
\family typewriter
xdvi
\family default
.
LyX will definitely not work with LaTeX2.09 (the changes you would have
to do in the LyX sources are substantially more work than upgrading your
LaTeX).
You can obtain a LaTeX distribution (and anything and everything related
to TeX and LaTeX) from any member of the Comprehensive TeX Archive Network
(CTAN).
There are three primary ftp servers and a host of mirrors in the network:
the primary machines are ftp.dante.de (Germany), ftp.tex.ac.uk (United Kingdom),
and ctan.tug.org (USA).
A complete list of mirrors may be found at
\begin_inset LatexCommand \url{http://www.ctan.org}
\end_inset
\begin_inset LatexCommand \label{sec:ctan}
\end_inset
.
\layout Standard
If you want to compile your own binary you also need the XForms library.
As of version 1.0 you will need to use one of versions 0.81, 0.86 or 0.88 of
the XForms library.
We recommend using version 0.88, since that will give you a few extra features.
You can obtain it from:
\layout Itemize
\begin_inset LatexCommand \url{http://bragg.phys.uwm.edu/xforms/}
\end_inset
\layout Itemize
\begin_inset LatexCommand \url{ftp://ftp/cs.ruu.nl/pub/XFORMS}
\end_inset
\layout Standard
You also need the pixmap library (libXpm).
Since this is usually a part of most modern Unixes it shouldn't be a problem.
Just make sure you have the right pixmap library for your version of the
XForms library.
There are some incompatibility issues.
As of version 1.0 you will need version 4.7 or 4.8 of libXpm.
\layout Standard
To compile LyX\SpecialChar \ldots{}
well, you wouldn't be reading this document if you hadn't
already done so, would you?
\begin_float footnote
\layout Standard
If, by some odd chance, someone has handed you a printed version of this
manual and the source files, please feel free to go ask
\emph on
them
\emph default
for help.
Or, look at the
\family typewriter
README
\family default
files that came in the source code distribution.
\end_float
\layout Section
Basic LyX Setup
\layout Standard
\begin_inset LatexCommand \label{sec:setup}
\end_inset
Again, you probably wouldn't be reading this file if you didn't already
have a working LyX binary, so we won't discuss that here.
There are a few things we do want to mention about LyX setup and installation.
\layout Standard
There are two ways to run LyX.
The first way is to install LyX and all of its support files on your system.
Of course, you need root privileges to do that.
The second way to run LyX doesn't require root access, letting you
\begin_inset Quotes eld
\end_inset
install
\begin_inset Quotes erd
\end_inset
LyX somewhere in your own account.
LyX will automatically detect where it is as long as the supporting directories
are put in the correct places.
\layout Standard
There are several features of LyX that can be configured from inside LyX,
without resorting to configuration files.
First, LyX is able to inspect your system to see what programs, LaTeX document
classes and LaTeX packages are available.
It uses this knowledge to give reasonable defaults to several variables
of
\family typewriter
lyxrc
\family default
.
Although this configuration has already been done when LyX was installed
on you system, you might have some items that you installed locally and
which are not seen by LyX.
To force LyX to re-inspect your system, you should use
\family sans
\bar under
O
\bar default
ptions\SpecialChar \menuseparator
\bar under
R
\bar default
econfigure
\family default
.
You should then restart LyX to ensure that the changes are taken into account.
As far as LaTeX classes and packages are concerned, you will find information
about what has been found under
\family sans
Help\SpecialChar \menuseparator
L
\bar under
a
\bar default
TeX
\protected_separator
Configuration
\family default
.
\layout Standard
The second set of settings that you might want to change comprises all the
document-level setting that you can change via the
\family sans
\bar under
D
\bar default
ocument
\family default
,
\family sans
P
\bar under
a
\bar default
per
\family default
,
\family sans
\bar under
Q
\bar default
uotes
\family default
and
\family sans
\bar under
L
\bar default
aTeX
\family default
\protected_separator
\family sans
Preamble
\family default
popups of the
\family sans
\bar under
L
\bar default
ayout
\family default
menu
\begin_float footnote
\layout Standard
LyX 0.10.x users might remember that these settings used to be accessible
in
\family typewriter
lyxrc
\family default
.
This is not the case anymore.
\end_float
.
To do this, open a (possibly new) scrap document, set all these options
according to your taste and save them with
\family sans
\bar under
L
\bar default
ayout\SpecialChar \menuseparator
\bar under
S
\bar default
ave
\protected_separator
layout
\protected_separator
as
\protected_separator
default
\family default
.
This will create a template named
\family typewriter
default.lyx
\family default
which is automatically loaded by LyX when you open a document without template
such that the settings are automatically set up as you defined them.
\layout Standard
There are many other user-configurable options that you can feed to LyX.
Upon startup, LyX attempts to read a file called
\family typewriter
~/.lyx/lyxrc
\family default
beneath your home directory.
If this file does not exist, LyX will read a global options file called
\family typewriter
lyxrc
\family default
.
The document
\emph on
Customization
\emph default
contains more information about these setup files.
\layout Section
Setting Up the X Keyboard
\layout Standard
\begin_inset LatexCommand \label{sec:x-win-keys}
\end_inset
To use LyX properly, you
\emph on
must
\emph default
set X up correctly.
This is especially vital if you're using the international support features
of LyX and want to use non-English keyboard mappings.
Unfortunately, almost nobody bothers to do this, especially those who've
installed Linux on a PC\SpecialChar \@.
Administrators of large systems can be guilty of
this, too, so don't assume that you're safe if you're using a large system.
Any user can instruct X how to use his or her keyboard.
You needn't rely on your sysadmin for this - in fact, you
\emph on
shouldn't
\emph default
! The following two programs are all you need to set up your keyboard the
way you want it.
\layout Subsection
\family typewriter
xmodmap
\family default
and
\family typewriter
xkeycaps
\layout Standard
First of all read the man pages for these two programs.
They are your best friends when you are trying to set up X key mapping
correctly.
If you don't have them, install them.
\layout Subsubsection
\family typewriter
xmodmap
\layout Standard
This document contains no information on how to use
\family typewriter
xmodmap
\family default
.
There is a sample
\family typewriter
.Xmodmap
\family default
file in
\emph on
Customization
\emph default
.
To load the new X keyboard mappings, place the command
\family typewriter
xmodmap
\protected_separator
.Xmodmap
\family default
somewhere in your startup scripts [for example,
\family typewriter
.cshrc
\family default
,
\family typewriter
.profile
\family default
,
\family typewriter
.login
\family default
, or
\family typewriter
.xinitrc
\family default
are all possibilities].
\layout Subsubsection
\family typewriter
xkeycaps
\layout Standard
This program is a dream come true! It brings up a graphical version of your
keyboard, allows you to make modifications, and then spits those modifications
out to the standard output in a form readable by
\family typewriter
xmodmap
\family default
.
It is very useful when you're trying to design a new
\family typewriter
.Xmodmap
\family default
file, though it will require you to do a bit of cut-and-pasting.
\layout Subsection
Modifiers and Mode_switch
\layout Standard
LyX supports three modifiers: Shift [
\family sans
S-
\family default
], Control [
\family sans
C-
\family default
], and Meta [
\family sans
M-
\family default
].
Moreover, if one of the keys of your keyboard is configured as a
\family sans
Compose
\family default
key, then you can use it to enter some characters not available on your
keyboard.
This compose key can be used either as a modifier (like
\family sans
Shift
\family default
or
\family sans
Control
\family default
) or as a prefix key.
Here are some examples of what you can do with a
\family sans
Compose
\family default
key:
\layout Itemize
\family sans
Compose+e+'
\family default
\begin_inset Formula \( \rightarrow \)
\end_inset
\layout Itemize
\family sans
Compose+O+R
\family default
\begin_inset Formula \( \rightarrow \)
\end_inset
\layout Itemize
\family sans
Compose+1+2
\family default
\begin_inset Formula \( \rightarrow \)
\end_inset
\layout Itemize
\family sans
Compose+<+<
\family default
\begin_inset Formula \( \rightarrow \)
\end_inset
\layout Standard
This input method is particularly handy when you use accented characters
only from time to time.
It works by default for latin1 characters, but other input methods will
be used if you setup your locale correctly.
\layout Subsection
Helpful Hints and Tips
\layout Standard
First, open up two xterminals.
Use one to edit a new
\family typewriter
.Xmodmap
\family default
file and run
\family typewriter
xkeycaps
\family default
from the other.
Using
\family typewriter
xkeycaps
\family default
, remap your keyboard the way you want it.
There's a button in
\family typewriter
xkeycaps
\family default
to output the new keymap.
Once you hit it,
\family typewriter
xkeycaps
\family default
will spit a bunch of stuff on the xterm you executed it from.
Just copy and paste all of that into your
\family typewriter
.Xmodmap
\family default
file, and you're done.
\begin_float footnote
\layout Standard
You could also save yourself some typing by executing
\family typewriter
xkeycaps > .Xmodmap
\family default
.
This will create a usable map file.
Of course, if you hit the
\begin_inset Quotes eld
\end_inset
output keymap
\begin_inset Quotes erd
\end_inset
button in
\family typewriter
xkeycaps
\family default
more than once, the resulting map file will be a mess.
As with all things,
\family typewriter
xkeycaps
\family default
is a tool, and only as intelligent as the person on the other end.
\end_float
\layout Standard
Also, there are some things you can do to help you get oriented.
Try executing the command
\family typewriter
xmodmap -v -pm
\family default
.
This will show you all of the currently active modifiers.
Also try
\family typewriter
xmodmap -v -pke | more
\family default
to see which keycode numbers are mapped to which symbolic names.
It will also give you some idea of the syntax of the
\family typewriter
.Xmodmap
\family default
file.
\layout Standard
There's one thing you'll need to check.
Make sure that your
\family sans
Delete
\family default
and
\family sans
BackSpace
\family default
keys are
\emph on
not
\emph default
defined as the same key symbol by X! Note that giving these two keys unique
symbol names will not necessarily alter the behavior of your programs.
Some programs bind
\family sans
Delete
\family default
and
\family sans
BackSpace
\family default
to the same operation.
Emacs is one.
Other programs, however, use
\family sans
Delete
\family default
and
\family sans
BackSpace
\family default
for different operations.
LyX is one of these programs, and if you have
\family sans
Delete
\family default
and
\family sans
BackSpace
\family default
labeled with the same key symbol name, you'll have trouble using LyX.
\layout Section
LaTeX
\layout Standard
If you want to do more with LyX than simply create documents and spit out
\family typewriter
.tex
\family default
files, you'll need LaTeX.
\layout Standard
In case you were wondering, LaTeX is an extension to TeX, a document preparation
system invented in 1984 by Donald Knuth.
\begin_float footnote
\layout Standard
A note about pronunciation: TeX originated from the Greek letters,
\begin_inset Formula \( \tau \epsilon \chi \)
\end_inset
, which rhymes with
\begin_inset Quotes eld
\end_inset
blech.
\begin_inset Quotes erd
\end_inset
That's how you pronounce
\begin_inset Quotes eld
\end_inset
TeX
\begin_inset Quotes erd
\end_inset
and
\begin_inset Quotes eld
\end_inset
LaTeX.
\begin_inset Quotes erd
\end_inset
[If you're American, just pronounce the
\begin_inset Quotes eld
\end_inset
X
\begin_inset Quotes erd
\end_inset
as a
\begin_inset Quotes eld
\end_inset
k
\begin_inset Quotes erd
\end_inset
and you've got it.]
\end_float
TeX takes a set of commands in an ASCII file and converts it to a
\begin_inset Quotes eld
\end_inset
device-independent
\begin_inset Quotes erd
\end_inset
format, or Dvi, for short.
The Dvi file can then be sent to printers.
TeX is programmable, and LaTeX is nothing but a [really huge] set of TeX
macros.
LaTeX will typically come as part of a TeX distribution, so all you need
is a TeX package.
\layout Standard
There are two version of LaTeX commonly in use today.
One is the older LaTeX 2.09; the other is the newer LaTeX2e.
LyX will only work with LaTeX2e and will gag on the older version 2.09.
\layout Standard
Let us make that perfectly clear:
\layout Standard
\added_space_top 0.23cm \added_space_bottom 0.23cm \align center
LyX
\emph on
WILL ONLY WORK WITH
\emph default
LaTeX2e!!!
\layout Standard
If your system has version 2.09, get the sysadmin to upgrade.
\layout Standard
If you're using Linux, LaTeX2e should have come with your distribution.
Look in the instructions that came with your Linux distribution [most likely
a CD-ROM] and install the TeX package, if you didn't do so already.
Everything you need will be there, along with some things you probably
don't need.
\layout Standard
For other systems, you'll probably have to talk to your sysadmin to get
TeX/LaTeX installed on your machine if it's not on there already.
\layout Standard
Oh, did we mention that LyX only works with LaTeX2e?
\layout Section
Dvips and Ghostscript
\layout Subsection
What You Need
\layout Standard
There's one more step you need to take if you want to print your LyX documents.
Obviously, you'll need to make sure your printer is configured [see next
section].
You'll also need to install these programs (or compatibles), if you don't
have them already:
\layout Itemize
\family typewriter
dvips
\layout Itemize
\family typewriter
ghostscript
\layout Itemize
\family typewriter
xdvi
\layout Itemize
\family typewriter
ghostview
\layout Standard
The latter two programs are previewer for files in Dvi and PostScript
\begin_float footnote
\layout Standard
PostScript is a registered trademark of Adobe Systems Incorporated, and
is the main page description language in the UN*X world.
\end_float
format.
If you don't know what a dvi-file is, you've probably also never worked
with LaTeX and should read the
\emph on
Tutorial
\emph default
document before proceeding further.
\family typewriter
dvips
\family default
converts dvi-files into PostScript, which is the format most printers
use nowadays.
For those of you using dot-matrix and inkjet printers, you'll want to filter
the PostScript through
\family typewriter
ghostscript
\family default
, which is capable of creating output for a variety of printers.
The following section on printer setup describes how to do this automatically
every time you print.
For now, we'll concentrate on
\family typewriter
dvips
\family default
.
\layout Subsection
Dvips
\layout Standard
\begin_inset LatexCommand \label{sec:dvipsconfig}
\end_inset
Whether you'll be running LyX on a large system or a Linux box at home,
you should configure
\family typewriter
dvips
\family default
.
\family typewriter
dvips
\family default
will either
\begin_inset Quotes eld
\end_inset
print
\begin_inset Quotes erd
\end_inset
into a file, or send output directly to the printer, depending on how it's
configured.
If it is set up to print to a file, and if no filename is specified, it
will simply turn
\family typewriter
foo.dvi
\family default
into
\family typewriter
foo.ps
\family default
.
Most systems have
\family typewriter
dvips
\family default
set up to send output to the default printer.
For LyX, you'll want the flexibility to do both.
\layout Standard
If you are not a mood to configure
\family typewriter
dvips
\family default
to adapt its output to your printer, you can safely skip this section.
Be warned however that the output will not match the quality that you could
expect from your printer.
At least, it will print.
\layout Standard
If you are using teTeX (a TeX distribution which is particularly popular
on Linux), you should run the program
\family typewriter
texconfig
\family default
.
To make the name of a new printer recognized by
\family typewriter
dvips
\family default
you should then select menu entry
\family sans
Dvips
\family default
, then add.
Enter the required parameters and, before exiting, remember to select the
function
\family sans
Rehash
\family default
.
\layout Standard
Let's turn now to manual configuration: in order to inform
\family typewriter
dvips
\family default
how to automagically convert a
\family typewriter
.dvi
\family default
file into a
\family typewriter
.ps
\family default
file adapted to printer
\family typewriter
foo
\family default
, you need to have a config-file,
\begin_inset Quotes eld
\end_inset
\family typewriter
config.foo
\family default
,
\begin_inset Quotes erd
\end_inset
lying around somewhere.
Typically, the
\family typewriter
config.*
\family default
files for
\family typewriter
dvips
\family default
will be in
\family typewriter
/usr/lib/texmf/dvips
\family default
in most TeX distributions.
Your system will probably be different, of course, so just look under the
main TeX directory for a subdirectory called
\begin_inset Quotes eld
\end_inset
\family typewriter
dvips
\family default
.
\begin_inset Quotes erd
\end_inset
It'll be there somewhere.
\layout Standard
Typically, there will be at least one config-file:
\family typewriter
config.ps
\family default
.
This file is the default configuration file, which is
\emph on
always
\emph default
read by dvips
\begin_float footnote
\layout Standard
In particular, this file is not necessarily connected to the existence of
a file named
\family typewriter
ps
\family default
.
\end_float
.
Read this file and see what options could need to be changed for your particula
r printer.
Then create a file
\family typewriter
config.foo
\family default
containing only the relevant lines.
\layout Standard
There's at least one thing you need to do to the config-file.
There may exist a line that looks like,
\begin_inset Quotes eld
\end_inset
\family typewriter
o | lpr
\family default
\begin_inset Quotes erd
\end_inset
[without the quotes, of course\SpecialChar \ldots{}
].
Change it to
\begin_inset Quotes eld
\end_inset
\family typewriter
o | lpr -Pfoo
\family default
\begin_inset Quotes erd
\end_inset
, so that the output is sent by default to printer
\family typewriter
foo
\family default
.
However, you should probably investigate the entries
\begin_inset Quotes eld
\end_inset
\family typewriter
M
\family default
\begin_inset Quotes erd
\end_inset
and
\begin_inset Quotes eld
\end_inset
\family typewriter
D
\family default
\begin_inset Quotes erd
\end_inset
, which define respectively the Metafont mode and the resolution of the
printer.
If you do not know what a Metafont mode is, you can see it as a printer
driver: it adapts the design of TeX fonts to ensure that they give the
best possible result on your printer.
Be warned however that, if you define different Metafont modes for different
printers,
\family typewriter
dvips
\family default
will generate several copies of your TeX fonts on disk, and these take
valuable space.
\layout Standard
Once you are satisfied that your printers are correctly configured, you
should tell LyX to make use of this configuration.
To do this, you should edit
\family typewriter
lyxrc
\family default
and set correctly the entries
\family typewriter
\backslash
print_adapt_output
\family default
and
\family typewriter
\backslash
print_spool_command
\family default
as described there.
\layout Standard
You can use as many config-files as you like, one for each of your printers.
The default printer for LyX can be specified in
\family typewriter
lyxrc
\family default
or with the
\family typewriter
PRINTER
\family default
environment variable.
You can also choose the desired printer from inside LyX, as described in
a later section.Once you've done all that, you can print to either a PostScript
printer or file from LyX.
\layout Standard
If your printer doesn't understand PostScript, you'll need to use
\family typewriter
ghostscript
\family default
as a filter for your print spooler.
That's covered in numerous HOWTO's and manuals.
We also have a section that covers a little bit of this.
\layout Standard
Some people don't seem to like using the
\family typewriter
dvips
\family default
plus
\family typewriter
ghostscript
\family default
combination.
As alternative, you can use a program that converts the dvi-file directly
into your printer language.
You can specify this program in
\family typewriter
lyxrc
\family default
, too.
There is a major disadvantage to this method.
You can't include any PostScript files, such as graphics, in your documents,
since the printer-specific conversion programs don't understand PostScript.
For that reason, the LyX team highly recommends using
\family typewriter
dvips
\family default
and
\family typewriter
ghostscript
\family default
for printing.
\layout Subsection
Ghostscript, Xdvi and Ghostview
\layout Standard
\family typewriter
Xdvi
\family default
and
\family typewriter
ghostview
\family default
are viewers, The former handles
\family typewriter
.dvi
\family default
files, while the later interfaces with
\family typewriter
ghostscript
\family default
to allow you to view PostScript files.
\layout Standard
A quick note on both of these programs.
Both automatically update themselves if the viewed file
\begin_float footnote
\layout Standard
That means the
\family typewriter
.dvi
\family default
or
\family typewriter
.ps
\family default
file, not the files used to make these.
\end_float
changes.
You can also force an update.
So, once you've opened one of these two viewers, there's no reason to close
it.
Also, both programs are functionally the same, providing all of the same
features.
\layout Standard
The LyX team recommends using
\family typewriter
xdvi
\family default
for fine tuning documents.
Why? It's faster; there's one less layer of processing you need to do before
you can view the changes.
Here's an example:
\layout Enumerate
Use
\family typewriter
xdvi
\family default
to preview a document from LyX, and leave it running.
\layout Enumerate
Make changes to the document using LyX.
\layout Enumerate
To view those changes, just choose
\family sans
Update DVI
\family default
from the
\family sans
File
\family default
menu.
When LaTeX's all done, click on the
\family typewriter
xdvi
\family default
window, and voil!
\family typewriter
xdvi
\family default
will update itself.
\layout Standard
Now, this doesn't mean
\family typewriter
ghostview
\family default
is useless.
\family typewriter
ghostview
\family default
is better suited to those occasions where you
\emph on
must
\emph default
view the PostScript version of the document.
For repeated changes that aren't PostScript dependent, you're better off
previewing with
\family typewriter
xdvi
\family default
.
There is an alternative to
\family typewriter
ghostview
\family default
which sports a much better interface:
\family typewriter
gv
\family default
.
LyX will automatically use it instead of ghostscript if it is available.
\layout Section
The Printer
\layout Standard
\size normal
Anyone working on a large system shouldn't have any problems here.
Your sysadmin [or you, if you are the sysadmin] should already have the
printers set up for your system.
All you need to do is find out the name of the printer you want to use,
and configure your
\family typewriter
lyxrc
\family default
as described in the last section.
\layout Standard
\size normal
Those of you using Linux, however, will have a bit more work to do.
Many people now receive a Linux distribution, such as Red Hat or Slackware,
on CD-ROM
\size default
\SpecialChar \@.
\size normal
They follow the install instructions, get Linux up and running, but never
realize that they need to set up their printer.
If you've never touched the file
\family typewriter
/etc/printcap
\family default
, you need to set up your printer.
\size default
We've written a little something to help you out with that; check out the
\begin_inset Quotes eld
\end_inset
\emph on
A Printer Tutorial
\emph default
\begin_inset Quotes erd
\end_inset
chapter in the
\emph on
Customization
\emph default
manual for help.
\layout Chapter
LyX Basics
\layout Section
Document Types
\layout Subsection
Introduction
\layout Standard
Before you do anything else, before you ever start writing a document, you
need to decide what
\emph on
type
\emph default
of document you want to edit.
Different types of documents use different types of spacing, headings,
numbering schemes, and so on.
Additionally, different documents use different paragraph environments,
and format the title of your document differently.
\layout Standard
A
\emph on
document class
\emph default
describes a group of properties common to a particular set of documents.
By setting the document class, you automagically select these properties,
making it easier to create the type of document you want.
If you don't choose a document class, LyX picks one for you by default.
So, it behooves you to change the class of your document.
\layout Standard
Read on for info about the document classes you can choose from LyX, and
how to fine-tune some of their properties.
\layout Subsection
\begin_inset LatexCommand \label{sec:doc-classes}
\end_inset
The Various Document Classes
\layout Subsubsection
Overview
\layout Standard
There are five standard document classes in LyX.
They are:
\layout Description
Article for basic articles
\layout Description
Report for basic reports
\layout Description
Book for writing a book
\layout Description
Letter for US-style letters
\layout Description
Slides is used to make transparencies
\layout Standard
There are also some non-standard classes, which LyX only uses if you have
a LaTeX setup that supports them:
\layout Description
Aapaper Journal articles in the style and format used in Astronomy & Astrophysic
s
\layout Description
Amsart Journal articles in the style and format used by the AMS [American
Mathematical Society].
There are three amsart layouts available.
The standard one uses a typical numbering scheme for theorems,
\emph on
etc.
\emph default
, that prepends the section number to the number of the result.
All result-type statements (propositions, corollaries, and so on) are sequenced
together, but definitions, examples, and the like have their own sequence.
The
\begin_inset Quotes eld
\end_inset
sequential numbering
\begin_inset Quotes erd
\end_inset
scheme does not place the section number with each result, but numbers
them throughout the article in a single sequence.
Each type of result gets its own sequence.
There is also a layout that dispenses with numbering of statements altogether.
\layout Description
Amsbook Books in the style and format used by the AMS.
Only the standard numbering scheme is provided, under the assumption that
you would not want to number results consecutively throughout a book, and
that you would need to number results.
\layout Description
Dinbrief fr Briefe nach deutscher Art
\layout Description
Foils is used to make transparencies, but is better than
\family sans
slides
\layout Description
Iletter per lettere all' italiana
\layout Description
Linuxdoc Used with the SGML-tools package (formerly known as LinuxDoc).
It allows LyX to produce SGML output.
SGML is a markup language and is the predecessor to HTML\SpecialChar \@.
The SGML-tools
package allows you to convert SGML to HTML or to the format used by
\family typewriter
man
\family default
pages.
\layout Description
Paper for use with the
\family typewriter
paper
\family default
LaTeX document class [not in all LaTeX distributions]
\layout Description
Revtex is used to write articles for the publications of the American Physical
Society (APS), American Institute of Physics (AIP), and Optical Society
of America (OSA).
This class is not completely compatible with all LyX features.
\layout Standard
We won't go into any detail about how to use these different document classes
here.
You can find all the details about the non-standard classes in the
\emph on
Extended Editing
\emph default
manual.
Here, we will settle with a list of some of the common properties of all
of the document classes.
\layout Subsubsection
Selecting a Class
\layout Standard
You can select a class using the
\family sans
Document
\protected_separator
Layout
\family default
popup.
To open the
\family sans
Document
\protected_separator
Layout
\family default
popup, select
\family sans
\bar under
D
\bar default
ocument...
\family default
from the
\family sans
\bar under
L
\bar default
ayout
\family default
menu.
Then use
\family sans
\bar under
C
\bar default
lass
\family default
to select the class you want to use.
\layout Standard
After you select a class, LyX then asks if you want to use the defaults
for
\family sans
\bar under
P
\bar default
agestyle
\family default
,
\family sans
Sides
\family default
,
\family sans
Columns
\family default
,
\family sans
Separation
\family default
, and
\family sans
E
\bar under
x
\bar default
tra
\protected_separator
Options
\family default
.
It's safe to hit
\family sans
\bar under
Y
\bar default
es
\family default
here.
If you look at the
\family sans
Document
\protected_separator
Layout
\family default
popup again, you'll notice options for all of these.
So, you can always fine-tune the defaults for a given section.
\layout Subsubsection
Properties
\layout Standard
In case you're wondering what those
\begin_inset Quotes eld
\end_inset
defaults
\begin_inset Quotes erd
\end_inset
are for each of the document classes, here's a quick table describing them:
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable
multicol5
11 5 0 0 -1 -1 -1 -1
1 1 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 1 0 0
8 1 1 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
\newline
\family sans
Pagestyle
\family default
\newline
\family sans
Sides
\family default
\newline
\family sans
Columns
\family default
\newline
Max.
sectioning level
\newline
article
\newline
\family sans
Plain
\family default
\newline
\family sans
One
\family default
\newline
\family sans
One
\family default
\newline
\family sans
Section
\family default
\newline
report
\newline
\family sans
Plain
\family default
\newline
\family sans
One
\family default
\newline
\family sans
One
\family default
\newline
\family sans
Chapter
\family default
\newline
book
\newline
\family sans
Headings
\family default
\newline
\family sans
Two
\family default
\newline
\family sans
One
\family default
\newline
\family sans
Chapter
\family default
\newline
letter
\newline
\family sans
Plain
\family default
\newline
\family sans
One
\family default
\newline
\family sans
One
\family default
\newline
none
\newline
linuxdoc
\newline
\family sans
Plain
\family default
\newline
\family sans
One
\family default
\newline
\family sans
One
\family default
\newline
\family sans
Section
\family default
\newline
aapaper
\newline
\family sans
Plain
\newline
Two
\newline
Two
\newline
Section
\family default
\newline
amsart
\newline
\family sans
Headings
\family default
\newline
\family sans
One
\family default
\newline
\family sans
One
\family default
\newline
\family sans
Section
\family default
\newline
dinbrief
\newline
\family sans
Plain
\family default
\newline
\family sans
One
\family default
\newline
\family sans
One
\family default
\newline
none
\newline
iletter
\newline
\family sans
Plain
\family default
\newline
\family sans
One
\family default
\newline
\family sans
One
\family default
\newline
none
\newline
paper
\newline
\family sans
Headings
\family default
\newline
\family sans
One
\family default
\newline
\family sans
One
\family default
\newline
\family sans
Section
\layout Standard
There is no default value of
\family sans
E
\bar under
x
\bar default
tra
\protected_separator
Options
\family default
or
\family sans
Separation
\family default
for any of these classes.
\layout Standard
You're probably also wondering what
\begin_inset Quotes eld
\end_inset
Max.
sectioning level
\begin_inset Quotes erd
\end_inset
means.
There are several paragraph environment used to create section headings.
Different document classes allow different types of section headings.
Only two use the
\family sans
Chapter
\family default
heading; the rest do not and begin instead with the
\family sans
Section
\family default
heading.
Some document classes, such as the three for letters, don't use any section
headings.
In addition to
\family sans
Chapter
\family default
and
\family sans
Section
\family default
headings, there are also
\family sans
Subsection
\family default
headings,
\family sans
Subsubsection
\family default
headings, and so on.
We'll describe these headings fully in section
\begin_inset LatexCommand \ref{sec:parenvheadings}
\end_inset
.
\layout Subsection
Fine-Tuning the Defaults
\layout Standard
Okay, we know we never told you what most of these
\begin_inset Quotes eld
\end_inset
default options
\begin_inset Quotes erd
\end_inset
set by the
\family sans
\bar under
C
\bar default
lass
\family default
button do.
That's what this section is for.
\layout List
\labelwidthstring MMMMMMM
\family sans
\bar under
P
\bar default
agestyle
\family default
This is another list, containing five options.
It controls what sorts of headings and page numbers go on a page:
\begin_float footnote
\layout Standard
LaTeX does this part.
\end_float
\begin_deeper
\layout List
\labelwidthstring MMMMMMM
\family sans
Default
\family default
Use default pagestyle of current class.
\layout List
\labelwidthstring MMMMMMM
\family sans
Empty
\family default
No page numbers or headings.
\layout List
\labelwidthstring MMMMMMM
\family sans
Plain
\family default
Page numbers only.
\layout List
\labelwidthstring MMMMMMM
\family sans
Headings
\family default
Page numbers and either the current chapter or section title and number.
Whether LyX uses the current chapter or the current section depends on
which is the maximum sectioning level.
\layout List
\labelwidthstring MMMMMMM
\family sans
Fancy
\family default
This allows you to create fully customizable headers and footers if you
have the
\family sans
fancyhdr
\family default
package installed.
At the moment, support in LyX is limited to this setting.
To use the full power of this package, you have to resolve to magic codes
in your preamble.
Check the documentation for the
\family sans
fancyhdr
\family default
package for more details.
\end_deeper
\layout List
\labelwidthstring MMMMMMM
\family sans
Sides
\family default
No, LyX can't make your printer print on both sided of a sheet of paper!
However, it can use a different format for odd-numbered pages than even-numbere
d pages.
This way, if you
\emph on
do
\emph default
have a printer that duplexes,
\begin_float footnote
\layout Standard
i.e.
prints on both sides of a sheet of paper
\end_float
your page number will always be in the upper right corner of the page and
the left margin will have extra room for a binding.
\begin_deeper
\layout Standard
There are two toggle buttons here:
\family sans
One
\family default
for single-sided documents,
\family sans
Two
\family default
for double-sided documents.
\end_deeper
\layout List
\labelwidthstring MMMMMMM
\family sans
Columns
\family default
Yes, this does control how many columns each page has.
You can choose, using the toggle buttons,
\family sans
One
\family default
or
\family sans
Two
\family default
for the number of columns.
\begin_deeper
\layout Standard
Note that LyX won't show two columns on screen.
That's impractical, often unreadable, and not part of the WYSIWYM concept.
However, there
\emph on
will
\emph default
be two columns in the generated output.
\end_deeper
\layout List
\labelwidthstring MMMMMMM
\family sans
E
\bar under
x
\bar default
tra
\protected_separator
Options
\family default
The LaTeX command
\family typewriter
\backslash
documentclass
\family default
takes several options.
LyX sets some of these automatically for you.
This text box allows you to enter in others.
Just type in a comma-separated list of options.
See a good LaTeX book to find out what kinds of additional options you
can use.
\layout List
\labelwidthstring MMMMMMM
\family sans
Separation
\family default
This has its own section.
See sec.
\begin_inset LatexCommand \ref{sec:parindentintro}
\end_inset
for a description of what this does.
\layout Subsection
Paper Size, Orientation, and Margins
\layout Standard
There are several other options to set in the
\family sans
Document
\protected_separator
Layout
\family default
popup.
All of them are global options, but they have special purposes and only
affect certain features.
We describe what these options do in the same section that describes the
features they affect.
\layout Standard
There are two options that affect the overall layout of the document, so
we'll describe them here.
You'll find them in the
\family sans
Paper
\family default
popup under the
\family sans
Layout
\family default
menu:
\layout List
\labelwidthstring MMMMMM
\family sans
Orientation
\family default
Two toggle buttons choose whether to print the output as
\family sans
\bar under
L
\bar default
andscape
\family default
or as
\family sans
Po
\bar under
r
\bar default
trait
\family default
.
\layout List
\labelwidthstring MMMMMM
\family sans
Papersi
\bar under
z
\bar default
e
\family default
What size paper to print on.
The choices are
\begin_deeper
\layout Itemize
\family sans
Default
\layout Itemize
\family sans
A3, A4,
\family default
\family sans
A5
\layout Itemize
\family sans
B3, B4, B5
\layout Itemize
\family sans
US Letter
\layout Itemize
\family sans
US legal
\layout Itemize
\family sans
US executive
\layout Itemize
\family sans
Custom
\end_deeper
\layout Standard
Some of these settings require you to have the
\family sans
geometry
\family default
package installed.
This package will also allow you to set the margins in the
\family sans
Paper
\family default
popup.
\layout Subsection
Important Note:
\layout Standard
If you change a document's class, LyX has to convert
\emph on
everything
\emph default
into the new class.
That includes the paragraph environments.
Some paragraph environments are standard; all of the document classes have
them.
Some classes have special paragraph environments, however.
If this is the case, and you change document classes, LyX sets the missing
paragraph environments to
\family sans
Standard
\family default
and places an error box at the beginning of the paragraph.
Just click on them and you'll get a message popup that tells you about
the conversion and why it failed.
\layout Section
Paragraph Indentation and Separation
\layout Subsection
Introduction
\layout Standard
\begin_inset LatexCommand \label{sec:parindentintro}
\end_inset
Before describing all of the various paragraph environments, we'd like to
say a word or two about paragraph indentation.
\layout Standard
Everyone seems to have their own convention for separating paragraphs.
Most Americans indent the first line of a paragraph.
Others don't indent but put extra space between the paragraphs.
LyX uses the same convention you find among typographer.
The
\emph on
first
\emph default
paragraph of a section, or after a figure, an equation, a table, a list,
etc., is
\emph on
not
\emph default
indented.
Only a paragraph following another paragraph gets indented.
Some people don't like this convention, but if you want to use indented
paragraphs, you'll have to live with it.
\begin_float footnote
\layout Standard
There is a way to force LaTeX to indent all paragraphs.
LyX won't show this, of course, but LaTeX
\emph on
will
\emph default
print it that way.
You'll need to get a special package and insert an appropriate command
in the preamble.
[
\emph on
Editor's Note: I'll insert this info when I get the time.
- jw
\emph default
]
\end_float
\layout Standard
The space between paragraphs, like the line spacing, the space between headings
and text --- in fact, all of the spacings for just about everything are
pre-coded into LyX.
As we said, you don't worry about how much space to add between what.
LyX takes care of that.
In fact, these pre-coded vertical spacings aren't a single number but a
range.
That way, LyX can squish or stretch the space between lines to make sure
figures fit on a page with text, so that sections don't start at the bottom
of a page, and so on.
\begin_float footnote
\layout Standard
Actually, LaTeX does this when LyX goes to produce a printable file.
\end_float
However, pre-coded doesn't mean you can't change them.
LyX gives you the ability to globally change
\emph on
all
\emph default
of these pre-coded spacings.
We'll explain more later.
\layout Subsection
Global Indentation Method
\layout Standard
To select the default method of separating paragraphs, select
\family sans
\bar under
D
\bar default
ocument...
\family default
from the
\family sans
\bar under
L
\bar default
ayout
\family default
menu.
This opens the
\family sans
Document
\protected_separator
Layout
\family default
popup.
Select
\family sans
\bar under
I
\bar default
ndent
\family default
or
\family sans
S
\bar under
k
\bar default
ip
\family default
to indent paragraphs or add extra space between paragraphs, respectively.
\layout Subsection
Fine-Tuning
\layout Standard
You can also change the separation method of a single paragraph.
Choose
\family sans
\bar under
P
\bar default
aragraph...
\family default
from the
\family sans
\bar under
L
\bar default
ayout
\family default
menu to open the
\family sans
Paragraph
\protected_separator
Layout
\family default
popup.
Toggle the
\family sans
\bar under
N
\bar default
o Indent
\family default
button to change the state of the current paragraph.
If paragraphs indent by default, this button will be inactive at first.
If paragraphs have no indentation but use extra space for separation, this
button will be depressed initially.
\layout Standard
You should only need to change the indentation method for a single paragraph
if you need to do some fine-tuning.
Typically, you'll select
\family sans
\bar under
I
\bar default
ndent
\family default
or
\family sans
S
\bar under
k
\bar default
ip
\family default
for the entire document and edit away.
\layout Subsection
Changing Line Spacing
\layout Standard
In the
\family sans
Document
\protected_separator
Layout
\family default
popup you can choose your line spacing provided you have the
\family sans
setspace
\family default
package installed.
\layout Section
Paragraph Environments
\begin_inset LatexCommand \label{sec:par-environments}
\end_inset
\layout Subsection
Overview
\layout Standard
The paragraph environments correspond to the various
\family typewriter
\backslash
begin{
\family default
\emph on
environment
\family typewriter
\emph default
} ...
\backslash
end{
\family default
\emph on
environment
\family typewriter
\emph default
}
\family default
command sequences in an ordinary LaTeX file.
If you don't know LaTeX, or the concept of a paragraph environment is totally
alien to you, we urge you to read the
\emph on
Tutorial
\emph default
.
The
\emph on
Tutorial
\emph default
also contains many more examples than this section does.
\layout Standard
A paragraph environment is, simply, a
\begin_inset Quotes eld
\end_inset
container
\begin_inset Quotes erd
\end_inset
for a paragraph which gives that paragraph certain properties.
This can include a particular style of font, different margins, a numbering
scheme, labels, and so on.
Additionally, you can
\begin_inset Quotes eld
\end_inset
nest
\begin_inset Quotes erd
\end_inset
the different environments inside one another, allowing one environment
to inherit some of the properties of another.
The different paragraph environments totally replace the need for messy
tab stops, on the fly margin adjustment, and other holdovers from the days
of typewriters.
There are several paragraph environments which are specific to a particular
document type.
We'll only be covering the most common ones here.
\layout Standard
To choose a new paragraph environment, use the pull-down box on the left
end of the toolbar.
[Click on the arrow to open and close it.] LyX will change the environment
of the
\emph on
entire
\emph default
paragraph in which the cursor sits.
You can also change the environment of an entire group of paragraphs if
you select them before choosing the new environment.
\layout Standard
Note that hitting
\family sans
Return
\family default
will
\emph on
typically
\emph default
create a new paragraph using the
\family sans
Standard
\family default
paragraph environment.
We say
\begin_inset Quotes eld
\end_inset
typically
\begin_inset Quotes erd
\end_inset
because this isn't always the case.
\begin_float footnote
\layout Standard
If you are in one of these environments:
\latex latex
\layout LaTeX
\backslash
vspace{-2ex}
\backslash
parbox[t]{3cm}{
\layout Itemize
\family sans
Quote
\layout Itemize
\family sans
Quotation
\layout LaTeX
}
\backslash
parbox[t]{3cm}{
\layout Itemize
\family sans
Verse
\layout Itemize
\family sans
Itemize
\layout LaTeX
}
\backslash
parbox[t]{3cm}{
\layout Itemize
\family sans
Enumerate
\layout Itemize
\family sans
Description
\layout LaTeX
}
\backslash
parbox[t]{3cm}{
\layout Itemize
\family sans
List
\layout LaTeX
}
\layout Standard
LyX keeps the old paragraph environment when you hit
\family sans
Return
\family default
, rather than resetting it to
\family sans
Standard
\family default
.
LyX will still reset the nesting depth, however.
\end_float
Usually, starting a new paragraph resets both the paragraph environment
and the nesting depth [more on nesting in section
\begin_inset LatexCommand \ref{sec:nest}
\end_inset
].
Sometimes, however, LyX keeps the old environment.
At the moment, all this is context-specific; you're better off expecting
\family sans
Return
\family default
to reset the paragraph environment and depth.
If you want a new paragraph to keep the current environment and depth,
use
\family sans
M-Return
\family default
instead.
\begin_float footnote
\layout Standard
This invokes the function
\family typewriter
break-paragraph-keep-layout
\family default
.
\end_float
\layout Subsection
Standard
\layout Standard
The default paragraph environment is
\family sans
Standard
\family default
.
It creates a plain paragraph.
If LyX resets the paragraph environment, this is the one it chooses.
In fact, the paragraph you're reading right now [and most of the ones in
this manual] are in the
\family sans
Standard
\family default
environment.
\layout Standard
You can nest a paragraph using the
\family sans
Standard
\family default
environment in just about anything else, but you can't really nest anything
in a
\family sans
Standard
\family default
environment.
\layout Subsection
Document Titles
\layout Standard
A LaTeX title page has three parts: the title itself, the name[s] of the
author[s] and a
\begin_inset Quotes eld
\end_inset
footnote
\begin_inset Quotes erd
\end_inset
for thanks or contact information.
For certain types of documents, LaTeX places all of this on a separate
page along with today's date.
For other types of documents, the title
\begin_inset Quotes eld
\end_inset
page
\begin_inset Quotes erd
\end_inset
goes at the top of the first page of the document.
\layout Standard
LyX provides an interface to the title page commands through the paragraph
environments
\family sans
Title
\family default
,
\family sans
Author
\family default
, and
\family sans
Date
\family default
.
Here's how you use them:
\layout Itemize
Put the title of your document in the
\family sans
Title
\family default
environment.
\layout Itemize
Put the author name in the
\family sans
Author
\family default
environment.
\layout Itemize
If you want the date to have a certain appearance, want to use a fixed date,
or want other text to appear in place of today's date, put that text in
the
\family sans
Date
\family default
environment.
Note that using this environment is optional.
If you don't provide any, LaTeX will automatically insert today's date.
\layout Standard
Be sure to do this at the top of the document.
You can use footnotes to insert
\begin_inset Quotes eld
\end_inset
thanks
\begin_inset Quotes erd
\end_inset
or contact information.
\layout Subsection
Headings
\layout Standard
\begin_inset LatexCommand \label{sec:parenvheadings}
\end_inset
There are nine paragraph environments for producing section headings.
LyX takes care of the numbering for you.
All you need to do is decide what you're going to call section 3 of chapter
9.
\layout Subsubsection
Numbered Headings
\layout Standard
There are 6 numbered types of section headings.
They are:
\layout Enumerate
\family sans
Chapter
\layout Enumerate
\family sans
Section
\layout Enumerate
\family sans
Subsection
\layout Enumerate
\family sans
Subsubsection
\layout Enumerate
\family sans
Paragraph
\layout Enumerate
\family sans
Subparagraph
\layout Standard
LyX labels each heading with a series of numbers, separated by periods.
The numbers describe where in the document you are.
These headings all subdivide your document into different pieces of text.
For example, suppose you're writing a book.
You group the book into chapters.
LyX does similar grouping:
\layout Itemize
Either
\family sans
Chapter
\family default
or
\family sans
Section
\family default
is the maximum sectioning level.
\layout Itemize
\family sans
Chapter
\family default
s are divided into
\family sans
Section
\family default
s
\layout Itemize
\family sans
Section
\family default
s are divided into
\family sans
Subsection
\family default
s
\layout Itemize
\family sans
Subsection
\family default
s are divided into
\family sans
Subsubsection
\family default
s
\layout Itemize
\family sans
Subsubsection
\family default
s are divided into
\family sans
Paragraph
\family default
s
\layout Itemize
\family sans
Paragraph
\family default
s are divided into
\family sans
Subparagraph
\family default
s
\layout Standard
\emph on
Note:
\emph default
not all document types use the
\family sans
Chapter
\family default
heading as the maximum sectioning level.
In that case, the
\family sans
Section
\family default
is the top-level heading.
\layout Standard
So, if you use the
\family sans
Subsubsection
\family default
environment to label a new sub-subsection, LyX labels it with its number,
along with the number of the subsection, section, and, if applicable, chapter
that it's in.
For example: the fifth section of the second chapter of this book has the
label
\begin_inset Quotes eld
\end_inset
2.5
\begin_inset Quotes erd
\end_inset
.
\layout Subsubsection
Unnumbered Headings
\layout Standard
There are 3 types of unnumbered section headings.
They are:
\layout Enumerate
\family sans
Section*
\layout Enumerate
\family sans
Subsection*
\layout Enumerate
\family sans
Subsubsection*
\layout Standard
The
\begin_inset Quotes eld
\end_inset
*
\begin_inset Quotes erd
\end_inset
after each name means that these headings are not numbered.
They work the same as their numbered counterparts.
\layout Subsubsection
Changing the Numbering
\layout Standard
You can also alter which sectioning levels get numbered and which ones appear
in the Table of Contents.
Now, this doesn't remove any of the levels; that's preset in the document
class.
Certain classes start with
\family sans
Chapter
\family default
and go down to the
\family sans
Subparagraph
\family default
level.
Others start at
\family sans
Section
\family default
.
Similarly, not all document classes number all sectioning levels.
Most don't number
\family sans
Paragraph
\family default
or
\family sans
Subparagraph
\family default
.
This is something you can change.
\layout Standard
Open the
\family sans
Document
\protected_separator
Layout
\family default
popup [via the
\family sans
\bar under
D
\bar default
ocument...
\family default
item in the
\family sans
\bar under
L
\bar default
ayout
\family default
menu].
You should see a counter labelled
\family sans
Section
\protected_separator
number
\protected_separator
depth
\family default
.
This counter controls how far down in the sectioning hierarchy LyX numbers
a section heading.
Unfortunately, the number you choose with the slider is really goofy, so
here's a table of values and what they do:
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable
multicol5
9 2 0 0 -1 -1 -1 -1
1 0 0 0
0 1 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 1 0 0
8 1 0 "" ""
8 1 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
\family sans
Sec.
Num.
Depth
\family default
\newline
LyX numbers these
\newline
value:
\newline
section headings:
\newline
-1
\newline
no numbering
\newline
-0 and 0
\newline
\family sans
Chapter
\family default
\newline
1
\newline
\family sans
Chapter
\family default
through
\family sans
Section
\family default
\newline
2
\newline
\family sans
Chapter
\family default
through
\family sans
Subsection
\family default
\newline
3
\newline
\family sans
Chapter
\family default
through
\family sans
Subsubsection
\family default
\newline
4
\newline
\family sans
Chapter
\family default
through
\family sans
Paragraph
\family default
\newline
5
\newline
\family sans
Chapter
\family default
through
\family sans
Subparagraph
\layout Standard
Of course, if you're using a document class that doesn't use
\family sans
Chapter
\family default
headings, then the numbering begins at the
\family sans
Section
\family default
heading, and
\begin_inset Quotes eld
\end_inset
0
\begin_inset Quotes erd
\end_inset
also corresponds to
\begin_inset Quotes eld
\end_inset
no numbering.
\begin_inset Quotes erd
\end_inset
\layout Standard
There's another counter on the
\family sans
Document
\protected_separator
Layout
\family default
popup, called
\family sans
Table
\protected_separator
of
\protected_separator
contents
\protected_separator
depth
\family default
.
It works the same way as
\family sans
Section
\protected_separator
numbering
\protected_separator
depth
\family default
, only it controls which sectioning levels appear in, you guessed it, the
Table of Contents.
This is a great control to have.
Suppose you wanted to number
\emph on
all
\emph default
sectioning heading, but you only wanted
\family sans
Chapter
\family default
s,
\family sans
Section
\family default
s, and
\family sans
Subsection
\family default
s in the Table of Contents.
You'd just set
\family sans
Section
\protected_separator
numbering
\protected_separator
depth
\family default
to
\begin_inset Quotes eld
\end_inset
5
\begin_inset Quotes erd
\end_inset
and
\family sans
Table of contents
\protected_separator
depth
\family default
to
\begin_inset Quotes eld
\end_inset
2
\begin_inset Quotes erd
\end_inset
and voil! You're all set.
\layout Subsubsection
Special Information
\layout Standard
The following information applies to
\family sans
Chapter
\family default
,
\family sans
Section
\family default
,
\family sans
Subsection
\family default
,
\family sans
Subsubsection
\family default
,
\family sans
Paragraph
\family default
,
\family sans
Subparagraph
\family default
as well as
\family sans
Section*
\family default
,
\family sans
Subsection*
\family default
, and
\family sans
Subsubsection*
\family default
:
\layout Itemize
You cannot use a margin note in any of these environments.
\layout Itemize
You can use inlined math in these environments.
\layout Itemize
You cannot do any nesting with these environments.
\layout Itemize
You can use labels and cross-references to refer to their numbers.
\layout Standard
As for examples of these paragraph environments - look around you! We're
using them everywhere in the manuals.
\layout Subsubsection
Creating an Appendix
\layout Standard
Currently, LyX cannot display an appendix.
You can use inserted LaTeX code to create an appendix with the command:
\layout LyX-Code
\backslash
appendix
\layout Standard
All headings following this command will appear in the previewed or printed
document as appendices.
\layout Standard
See section
\protected_separator
\begin_inset LatexCommand \ref{sec:latexcodes}
\end_inset
to learn how to insert LaTeX commands into a document.
\layout Subsection
Quotes and Poetry
\layout Standard
LyX has three paragraph environments for writing poetry and quotations.
They are
\family sans
Quote
\family default
,
\family sans
Quotation
\family default
, and
\family sans
Verse
\family default
.
Forget the days of changing linespacing and twiddling with margins.
These three paragraph environments already have those changes built-in.
They all widen the left margin and add a bit of extra space above and below
the text they contain.
They also allow nesting, so you can put a
\family sans
Verse
\family default
in a
\family sans
Quotation
\family default
, as well as in some other paragraph environments.
\layout Standard
There is another feature of these three paragraph environments: they do
\emph on
not
\emph default
reset to
\family sans
Standard
\family default
when you break a paragraph.
So, you can type in that poem and merrily hit
\family sans
Return
\family default
without worrying about the paragraph environment changing on you.
Of course, that means that, once you're done typing in that poem, you have
to change back to the
\family sans
Standard
\family default
environment yourself.
\layout Subsubsection
\family sans
Quote
\family default
and
\family sans
Quotation
\layout Standard
\begin_inset LatexCommand \label{sec:quote}
\end_inset
Now that we've described the similarities of these three environments, it's
time for the differences.
\family sans
Quote
\family default
and
\family sans
Quotation
\family default
are identical except for one difference:
\family sans
Quote
\family default
uses extra spacing to separate paragraphs and never indents the first line.
\family sans
Quotation
\family default
\emph on
always
\emph default
indents the first line of a paragraph and uses the same line spacing throughout.
\layout Standard
Here's an example of the
\family sans
Quote
\family default
environment:
\layout Quote
This is in the
\family sans
Quote
\family default
environment.
I can keep writing, extending this line out further and further until it
wraps.
See - no indentation!
\layout Quote
Here's the second paragraph of this quote.
Again, there's no indentation, but there is extra space between me and
the other paragraph.
\layout Standard
That ends that example.
Here's another example, this time in the
\family sans
Quotation
\family default
environment:
\layout Quotation
This is in the
\family sans
Quotation
\family default
environment.
If I keep writing, you'll see the indentation.
If your country uses a writing style that shows off new paragraphs by indenting
the first line, then
\family sans
Quotation
\family default
is the environment for you! Well, you'd use it
\emph on
if
\emph default
you were quoting other text.
\layout Quotation
Here's a new paragraph.
I could ramble on and on, like a politician at election time.
If I did that, though, you'd get bored.
\layout Standard
That was our other example.
As the example notes,
\family sans
Quote
\family default
is for those people who use extra space to separate paragraphs.
They should put quotes in the
\family sans
Quote
\family default
environment.
those who use indentation to mark a new paragraph should use the
\family sans
Quotation
\family default
paragraph environment for quoted text.
\layout Subsubsection
\family sans
Verse
\layout Standard
\family sans
\begin_inset LatexCommand \label{sec:verse}
\end_inset
Verse
\family default
is a paragraph environment for poetry, rhymes, verses, and so on.
Here's an example:
\layout Verse
This is in Verse
\newline
Which I did not rehearse!
\layout Verse
It could be much worse.
This line could be long, very long, oh so long, so very long that it wraps
around.
It looks okay on screen, but in the printed version, the extra lines are
indented a bit more than the first.
Okay, so it's turned to prose and doesn't rhyme anymore.
So sue me.
\layout Verse
To break a line
\newline
And make things look fine
\newline
Use
\family sans
C-Return
\family default
.
\layout Standard
As you can see,
\family sans
Verse
\family default
does not indent both margins.
Each stanza of the verse or poem is in its own paragraph.
To separate the individual lines of a stanza, use the
\family typewriter
break-line
\family default
function,
\family sans
C-Return
\family default
.
\layout Subsection
Lists
\layout Standard
\begin_inset LatexCommand \label{sec:parenvlists}
\end_inset
This is an area where LyX clearly outshines standard word processors.
One of the most common complaints and
\begin_inset Quotes eld
\end_inset
bug
\begin_inset Quotes erd
\end_inset
reports on the LyX Developer's list is,
\begin_inset Quotes eld
\end_inset
I can't put in more than one space!
\begin_inset Quotes erd
\end_inset
Typically, the user in question is looking for some way to indent text
so he can make an outline or a list.
After all, on the brand-name commercial word processors, if you want to
write a list, you need to apply tab stops, indents, an a plethora of other
horizontal spacing commands.
\layout Standard
But why should
\emph on
you
\emph default
have to do this at all? Tab stops are fine for a typewriter, where you
have no other way to indent text.
A computer, on the other hand, is quite good at counting and doing things
repeatedly.
So, you shouldn't need to keep track of list numbers, indentations, and
such.
And with LyX, you don't.
\layout Standard
LyX has four different paragraph environments for creating different kinds
of lists.
In the
\family sans
Itemize
\family default
and
\family sans
Enumerate
\family default
environments, LyX labels your list items with bullets or numbers, respectively.
In the
\family sans
Description
\family default
and
\family sans
List
\family default
environments, LyX lets you provide your own label.
We'll present the individual details of each type of list next after describing
some general features of all four of them.
\layout Subsubsection
General Features
\layout Standard
The four paragraph environments for lists differ from the other environments
in several ways.
First, LyX treats each paragraph as a list item.
Hitting
\family sans
Return
\family default
does
\emph on
not
\emph default
reset the environment to
\family sans
Standard
\family default
but keeps the current environment and creates a new list item.
The nesting depth is typically reset, however.
If you want to keep both the current nesting depth and paragraph environment,
you should use
\family sans
M-Return
\family default
to break paragraphs.
\layout Standard
You can nest lists of any type inside one another.
In fact, LyX changes the labels on some list items depending on how its
nested.
If you intend to use any of the list paragraph environments, we
\emph on
strongly urge
\emph default
you to read all of section
\begin_inset LatexCommand \ref{sec:nest}
\end_inset
.
\layout Subsubsection
\family sans
Itemize
\layout Standard
\begin_inset LatexCommand \label{sec:itemize}
\end_inset
The first type of list we'll describe in detail is the
\family sans
Itemize
\family default
paragraph environment.
It has the following properties:
\layout Itemize
Each item has a particular bullet or symbol as its label.
\begin_deeper
\layout Itemize
LyX uses the same symbol for all of the items in a given nesting level.
\layout Itemize
The symbol appears at the beginning of the first line.
\end_deeper
\layout Itemize
The items can be any length.
LyX automatically offsets the left margin of each item.
The offset is always relative to whatever environment the
\family sans
Itemize
\family default
list may be in.
\layout Itemize
If you nest an
\family sans
Itemize
\family default
environment inside another
\family sans
Itemize
\family default
environment, the label changes to a new symbol.
\begin_deeper
\layout Itemize
There are four different symbols for up to a fourfold nesting.
\layout Itemize
LyX always shows the same symbol, an asterisk, on screen.
\layout Itemize
See section
\begin_inset LatexCommand \ref{sec:nest}
\end_inset
for a full explanation of nesting.
\end_deeper
\layout Standard
Of course, that explanation was also an example of an
\family sans
Itemize
\family default
list.
The
\family sans
Itemize
\family default
environment is best suited for lists where the order doesn't matter.
\layout Standard
We said that different levels use different symbols as their label.
Here's an example of all four possible symbols.
Note that those of you reading this manual online won't see any difference.
\layout Itemize
The label for the first level
\family sans
Itemize
\family default
is a large black dot, or bullet.
\begin_deeper
\layout Itemize
The label for the second level is a dash.
\begin_deeper
\layout Itemize
The label for the third is an asterisk.
\begin_deeper
\layout Itemize
The label for the fourth is a centered dot.
\end_deeper
\layout Itemize
Back out to the third level.
\end_deeper
\layout Itemize
Back to the second level.
\end_deeper
\layout Itemize
Back to the outermost level.
\layout Standard
These are the default labels for an
\family sans
Itemize
\family default
list.
You can customize these labels by adding the correct commands to the LaTeX
preamble (see section
\begin_inset LatexCommand \ref{sec:preamble}
\end_inset
).
Of course, LyX won't know about them; that's the whole point to the WYSIWYM
concept.
Any customizations you make appear in the printed document.
\layout Standard
Notice how the space between items decreases with increasing depth.
We'll explain nesting and all the tricks you can do with different depths
in section
\begin_inset LatexCommand \ref{sec:nest}
\end_inset
.
Be sure to read it!
\layout Subsubsection
\family sans
Enumerate
\layout Standard
\begin_inset LatexCommand \label{sec:enumerate}
\end_inset
The
\family sans
Enumerate
\family default
environment is the tool to use to create numbered lists and outlines.
It has these properties:
\layout Enumerate
Each item has a numeral as its label.
\begin_deeper
\layout Enumerate
The type of numeral depends on the nesting depth.
\end_deeper
\layout Enumerate
LyX automatically counts the items for you and updates the label as appropriate.
\layout Enumerate
Each new
\family sans
Enumerate
\family default
environment resets the counter to 1.
\layout Enumerate
Like the
\family sans
Itemize
\family default
environment, the
\family sans
Enumerate
\family default
environment:
\begin_deeper
\layout Enumerate
Offsets the items relative to the left margin.
Items can be any length.
\layout Enumerate
Reduces the space between items as the nesting depth increases.
\layout Enumerate
Uses different types of labels depending on the nesting depth.
\layout Enumerate
Allows up to a fourfold nesting.
\end_deeper
\layout Standard
Unlike the
\family sans
Itemize
\family default
environment,
\family sans
Enumerate
\family default
\emph on
does
\emph default
show the different labels for each item.
Here is how LyX labels the four different levels in an
\family sans
Enumerate
\family default
:
\layout Enumerate
The first level of an
\family sans
Enumerate
\family default
uses Arabic numerals followed by a period.
\begin_deeper
\layout Enumerate
The second level uses lower case letters surrounded by parentheses.
\begin_deeper
\layout Enumerate
The third level uses lower-case Roman numerals followed by a period.
\begin_deeper
\layout Enumerate
The fourth level uses capital letters followed by a period.
\layout Enumerate
Again, notice the decrease in inter-item spacing as the nesting depth increases.
\end_deeper
\layout Enumerate
Back to the third level
\end_deeper
\layout Enumerate
Back to the second level.
\end_deeper
\layout Enumerate
Back to the outermost level.
\layout Standard
Once again, you can customize the type of numbering used in the
\family sans
Enumerate
\family default
environment.
It involves adding commands to the LaTeX preamble (section
\begin_inset LatexCommand \ref{sec:preamble}
\end_inset
), however.
As stated earlier, such customization only shows up in the printed version,
not on the LyX screen.
\layout Standard
There is more to nesting
\family sans
Enumerate
\family default
environments than we've stated here.
You
\emph on
really
\emph default
should read section
\begin_inset LatexCommand \ref{sec:nest}
\end_inset
to learn more about nesting.
\layout Subsubsection
\family sans
Description
\layout Standard
\begin_inset LatexCommand \label{sec:descrlist}
\end_inset
Unlike the previous two environments, the
\family sans
Description
\family default
list has no fixed label.
Instead, LyX uses the first
\begin_inset Quotes eld
\end_inset
word
\begin_inset Quotes erd
\end_inset
of the first line as the label.
Here's an example:
\layout Description
Example: This is an example of the
\family sans
Description
\family default
environment.
\layout Standard
LyX typesets the label in boldface and puts extra space between it and the
rest of the line.
\layout Standard
Now, you're probably wondering what we mean by,
\begin_inset Quotes eld
\end_inset
uses the first 'word'.
\begin_inset Quotes erd
\end_inset
As stated earlier,
\begin_float footnote
\layout Standard
\emph on
Editor's Note: This should be stated in the beginning somewhere\SpecialChar \ldots{}
-jw
\end_float
the
\family sans
Space
\family default
key does not add a whitespace character, but separates words from one another.
Inside of a
\family sans
Description
\family default
environment, the
\family sans
Space
\family default
key tells LyX to end the label if we're at the beginning of the first line
of an item.
[
\emph on
Editor's Note: Hopefully, someone will change this.
It would be nice if, say, the
\family sans
Tab
\family default
key terminated the label, since LaTeX allows you to use a resizeable space
in the label of a description list.
-jw
\emph default
]
\layout Standard
However, what if you want or need to use more than one word in the label
of a
\family sans
Description
\family default
environment? Simple: use a
\family sans
Protected Blank
\family default
.
[Use either
\family sans
C-Space
\family default
or
\family sans
\bar under
S
\bar default
pecial
\protected_separator
Characters\SpecialChar \menuseparator
Protected
\protected_separator
\bar under
B
\bar default
lank
\family default
from the
\family sans
\bar under
I
\bar default
nsert
\family default
menu.
See sec.
\begin_inset LatexCommand \ref{sec:hspace}
\end_inset
for more info.] Here's an example:
\layout Description
Second
\protected_separator
Example: This one shows how to use a
\family sans
Protected
\protected_separator
Blank
\family default
in the label of a
\family sans
Description
\family default
list item.
\layout Description
Usage: You should use the
\family sans
Description
\family default
environment for things like definitions and theorems.
Use it when you need to make one word in particular stand out in the text
that describes it.
It's not a good idea to use a
\family sans
Description
\family default
environment when you have an entire sentence that you want to describe.
You're better off using
\family sans
Itemize
\family default
or
\family sans
Enumerate
\family default
and nesting several
\family sans
Standard
\family default
paragraphs into them.
\layout Description
Nesting: You can, of course, nest
\family sans
Description
\family default
environments inside one another, nest them in other types of lists, and
so on.
Read section
\begin_inset LatexCommand \ref{sec:nest}
\end_inset
to learn about nesting.
\layout Standard
Notice that after the first line, LyX indents subsequent lines, offsetting
them from the first line.
\layout Subsubsection
The LyX
\family sans
List
\layout Standard
\begin_inset LatexCommand \label{sec:lyxlist}
\end_inset
The
\family sans
List
\family default
environment is a LyX extension to LaTeX.
\layout Standard
Now, if you jumped here without reading sections
\begin_inset LatexCommand \ref{sec:itemize}
\end_inset
-
\begin_inset LatexCommand \ref{sec:descrlist}
\end_inset
, you've goofed.
The
\family sans
List
\family default
environment does
\emph on
not
\emph default
create numbered lists.
That's what
\family sans
Enumerate
\family default
does, and it's documented in section
\begin_inset LatexCommand \ref{sec:enumerate}
\end_inset
.
\layout Standard
Like the
\family sans
Description
\family default
environment the
\family sans
List
\family default
environment has user-defined labels for each list item.
There are some key differences between this list environment and the other
three:
\layout List
\labelwidthstring MMMMMM
item
\protected_separator
labels LyX uses the first
\begin_inset Quotes eld
\end_inset
word
\begin_inset Quotes erd
\end_inset
of each line as the item label.
The first
\family sans
Space
\family default
after the beginning of the first line of an item marks the end of the label.
If you need to use more than one word in an item label, use a
\family sans
Protected
\protected_separator
Blank
\family default
[
\family sans
C-Space
\family default
] between them.
\layout List
\labelwidthstring MMMMMM
margins As you can see, LyX uses different margins for the item label and
the body of the item text.
The body of the text has a larger left margin, which is equal to the default
label width plus a little extra space.
\layout List
\labelwidthstring MMMMMM
label
\protected_separator
width LyX uses one of two things for the label width: the actual width of
the label, or the default width, whichever is larger.
If the actual width is larger, then the label
\begin_inset Quotes eld
\end_inset
extends
\begin_inset Quotes erd
\end_inset
into the first line.
In other words, the text of the first line isn't aligned with the left
margin of the rest of the item text.
\layout List
\labelwidthstring MMMMMM
default
\protected_separator
width You can very easily set this default width.
It's quite painless, actually.
So, you can easily ensure that the text of all items in a
\family sans
List
\family default
environment have the same left margin.
\layout List
\labelwidthstring MMMMMM
uses You should use the
\family sans
List
\family default
environment the same way you'd use as
\family sans
Description
\family default
list: when you need one word to stand out from the text that describes
it.
The
\family sans
List
\family default
environment gives you another way to do this, using a different overall
layout.
\layout List
\labelwidthstring MMMMMM
nesting You can nest
\family sans
List
\family default
environments inside one another, nest them in other types of lists, and
so on.
They work just like the other list paragraph environments.
Read section
\begin_inset LatexCommand \ref{sec:nest}
\end_inset
to learn about nesting.
\layout Standard
As you can see, this is a feature-packed paragraph environment!
\layout Standard
To change the default width of the label, select the items in the list to
change.
You can also simply move the cursor into a
\family sans
List
\family default
item if you want to change only its label width.
Now open the
\family sans
Paragraph Layout
\family default
popup [use
\family sans
\bar under
P
\bar default
aragraph...
\family default
in the
\family sans
\bar under
L
\bar default
ayout
\family default
menu] and find the
\family sans
Label
\protected_separator
Width
\family default
text box.
The text in the
\family sans
Label
\protected_separator
Width
\family default
box determines the default label width.
If you really, really want to, you can use the text of your largest label
here, but you don't need to.
We recommend using the letter
\begin_inset Quotes eld
\end_inset
M
\begin_inset Quotes erd
\end_inset
multiple times.
It's the widest character and is a standard unit of width in LaTeX.
\begin_float footnote
\layout Standard
Of course, you could use some other character multiple times, too.
Or, you could get fancy and use combinations of
\begin_inset Quotes eld
\end_inset
|
\begin_inset Quotes erd
\end_inset
s,
\begin_inset Quotes eld
\end_inset
0
\begin_inset Quotes erd
\end_inset
s and
\begin_inset Quotes eld
\end_inset
M
\begin_inset Quotes erd
\end_inset
s.
However, the width of the letter
\begin_inset Quotes eld
\end_inset
M
\begin_inset Quotes erd
\end_inset
\emph on
is
\emph default
a standard unit of horizontal space under LaTeX.
That's why we recommend using
\begin_inset Quotes eld
\end_inset
M
\begin_inset Quotes erd
\end_inset
multiple times.
\end_float
The default label width in the example
\family sans
List
\family default
is 6
\begin_inset Quotes eld
\end_inset
M
\begin_inset Quotes erd
\end_inset
s wide.
Using
\begin_inset Quotes eld
\end_inset
M
\begin_inset Quotes erd
\end_inset
as your unit of width in the
\family sans
Label
\protected_separator
Width
\family default
box has one more advantage: you don't need to keep changing the contents
of
\family sans
Label
\protected_separator
Width
\family default
every time you alter a label in a
\family sans
List
\family default
environment.
\layout Standard
There's yet another feature of the
\family sans
List
\family default
environment we need to tell you about.
As you can see in the examples, LyX left-justifies the item labels by default.
In reality, there is an
\family sans
HFill
\family default
built into the end of the label.
We'll document
\family sans
HFills
\family default
later in section
\begin_inset LatexCommand \ref{sec:hspace}
\end_inset
.
You can use additional
\family sans
HFills
\family default
to change how LyX justifies the item label.
Here are some examples:
\layout List
\labelwidthstring MMMMMMMM
Left The default for
\family sans
List
\family default
item labels.
\layout List
\labelwidthstring MMMMMMMM
\hfill
Center One
\family sans
HFill
\family default
at the beginning of the label centers it.
\layout List
\labelwidthstring MMMMMMMM
\protected_separator
\protected_separator
\protected_separator
\protected_separator
\protected_separator
\protected_separator
\protected_separator
\protected_separator
\protected_separator
\protected_separator
\protected_separator
\protected_separator
\protected_separator
\protected_separator
\protected_separator
Right
\protected_separator
#1 You can sort-of right justify the label by using several
\family sans
Protected
\protected_separator
Blank
\family default
s at the beginning of the line.
As you can see, however, it alters the margin of the first line.
It'll be a pain in the butt to figure out just how many
\family sans
Protected
\protected_separator
Blank
\family default
s are enough.
\layout List
\labelwidthstring MMMMMMMM
\hfill
\hfill
\hfill
\hfill
\hfill
\hfill
\hfill
\hfill
\hfill
\hfill
\hfill
\hfill
\hfill
\hfill
\hfill
Right
\protected_separator
#2 This is somewhat better, though still a kludge.
Uses several
\family sans
HFill
\family default
s at the beginning of the label.
[
\emph on
Editor's Note: This is another one of those things that seemed okay at the
time, but now look really clunky.
The developers should change it.
- jw
\emph default
]
\layout Standard
Don't worry if you have no idea what
\family sans
HFill
\family default
s are yet.
Just remember that you can use them to customize the look of the
\family sans
List
\family default
environment.
\layout Standard
That does it for the four paragraph environments for making lists.
Oh - did we mention that you should read about nesting environments in
section
\begin_inset LatexCommand \ref{sec:nest}
\end_inset
if you want to use any of these list environments?
\layout Subsection
Letters
\layout Subsubsection
\family sans
Address
\family default
and
\family sans
Right
\protected_separator
Address
\family default
: An Overview
\layout Standard
Although LyX has document classes for letters, we've also created two paragraph
environments called
\family sans
Address
\family default
and
\family sans
Right
\protected_separator
Address
\family default
.
\begin_float footnote
\layout Standard
Note from
\noun on
Matthias
\noun default
: I'm a bit proud about this right address layout.
Try to reach the same typesetting effect with usual word processors.
You will have to create a frame and position it manually with the mouse
and all those funny things.
\end_float
To use the letter class, you need to use specific paragraph environments
in a specific order, otherwise LaTeX gags on the document.
In contrast, you can use the
\family sans
Address
\family default
and
\family sans
Right
\protected_separator
Address
\family default
paragraph environments anywhere with no problem.
You can even nest them inside other environments, though you can't nest
anything in them.
\layout Standard
Of course, you're not limited to using
\family sans
Address
\family default
and
\family sans
Right
\protected_separator
Address
\family default
for letters only.
\family sans
Right
\protected_separator
Address
\family default
, in particular, is useful for creating article titles like those used in
European academic papers.
\layout Subsubsection
Usage
\layout Standard
\begin_inset LatexCommand \label{sec:adress_usage}
\end_inset
The
\family sans
Address
\family default
environment formats text in the style of an address, which is also used
for the opening and signature in some countries.
Similarly, the
\family sans
Right
\protected_separator
Address
\family default
environment formats text in the style of a right-justified address, which
is used for the sender's address and today's date in some countries.
Here's an example of each:
\layout Right Address
Right Address
\newline
WhoAmI
\newline
WhereAmI
\newline
When is it? What is today?
\layout Standard
That was
\family sans
Right
\protected_separator
Address
\family default
.
Notice that the lines all have the same left margin, which LyX sets to
fit the largest block of text on a single line.
Here's and example of the
\family sans
Address
\family default
environment:
\layout Address
WhoAreYou
\newline
Where do I send this
\newline
Your post office and country
\layout Standard
As you can see, both
\family sans
Address
\family default
and
\family sans
Right
\protected_separator
Address
\family default
add extra space between themselves and the next paragraph.
Speaking of which, if you hit
\family sans
Return
\family default
in either of these environments, LyX resets the nesting depth and sets
the environment to
\family sans
Standard
\family default
.
This makes sense, however, since
\family sans
Return
\family default
is the
\family typewriter
break-paragraph
\family default
function, and the individual lines of an address are not paragraphs.
Thus, you'd use
\family typewriter
break-line
\family default
[
\family sans
C-Return
\family default
or
\family sans
\bar under
S
\bar default
pecial
\protected_separator
Character\SpecialChar \menuseparator
\bar under
L
\bar default
inebreak
\family default
from the
\family sans
\bar under
I
\bar default
nsert
\family default
menu] to start a new line in an
\family sans
Address
\family default
or
\family sans
Right
\protected_separator
Address
\family default
environment.
\layout Subsection
Academic Writing
\layout Standard
Most academic writing begins with an abstract and ends with a bibliography
or list of references.
LyX contains paragraph environments for both of these.
\layout Subsubsection
\family sans
Abstract
\layout Standard
The
\family sans
Abstract
\family default
environment is used for the abstract of an article.
Technically, you
\emph on
could
\emph default
use this environment anywhere, but you really
\emph on
should
\emph default
only use it at the beginning of the document, after the title.
Also, don't bother trying to nest
\family sans
Abstract
\family default
in anything else or vice versa.
It won't work.
\layout Standard
The
\family sans
Abstract
\family default
environment does several things for you.
First, it puts the centered label
\begin_inset Quotes eld
\end_inset
Abstract
\begin_inset Quotes erd
\end_inset
above the text.
The label and the text of the abstract are separated by some extra vertical
space.
Second, it typesets everything in a smaller font, just as you'd expect.
Lastly, it adds a bit of extra vertical space between the abstract and
the subsequent text.
Well, that's how it will appear on the LyX screen.
If your document is in the
\begin_inset Quotes eld
\end_inset
report
\begin_inset Quotes erd
\end_inset
class, the abstract actually appears on a separate page in the printed
version of the file.
\layout Standard
Starting a new paragraph by hitting
\family sans
Return
\family default
does
\emph on
not
\emph default
reset the paragraph environment.
The new paragraph will still be in the
\family sans
Abstract
\family default
environment.
So, you will have to change the paragraph environment yourself when you
finish entering the abstract of your document.
\layout Standard
We'd love to give you an example of the
\family sans
Abstract
\family default
environment, but we can't, since this document is in the
\begin_inset Quotes eld
\end_inset
book
\begin_inset Quotes erd
\end_inset
class.
If you've never heard of an
\begin_inset Quotes eld
\end_inset
abstract
\begin_inset Quotes erd
\end_inset
before, you can safely ignore this environment.
\layout Standard
One last note: the
\family sans
Abstract
\family default
environment is only useful in the
\begin_inset Quotes eld
\end_inset
article
\begin_inset Quotes erd
\end_inset
and
\begin_inset Quotes eld
\end_inset
report
\begin_inset Quotes erd
\end_inset
document classes [as well as
\begin_inset Quotes eld
\end_inset
amsart,
\begin_inset Quotes erd
\end_inset
which is just a specialized version of
\begin_inset Quotes eld
\end_inset
article
\begin_inset Quotes erd
\end_inset
].
The
\begin_inset Quotes eld
\end_inset
book
\begin_inset Quotes erd
\end_inset
document class ignores the
\family sans
Abstract
\family default
completely, and it's utterly silly to use
\family sans
Abstract
\family default
in the
\begin_inset Quotes eld
\end_inset
letter
\begin_inset Quotes erd
\end_inset
document class.
\layout Subsubsection
\family sans
Bibliography
\layout Standard
\begin_inset LatexCommand \label{sec:bibliography}
\end_inset
The
\family sans
Bibliography
\family default
environment is used to list references.
Technically, you
\emph on
could
\emph default
use this environment anywhere, but you really
\emph on
should
\emph default
only use it at the end of the document.
Also, don't bother trying to nest
\family sans
Bibliography
\family default
in anything else or vice versa.
It won't work.
\layout Standard
When your first open a
\family sans
Bibliography
\family default
environment, LyX add a large vertical space, followed by the heading
\begin_inset Quotes eld
\end_inset
Bibliography
\begin_inset Quotes erd
\end_inset
or
\begin_inset Quotes eld
\end_inset
References,
\begin_inset Quotes erd
\end_inset
depending on the document class.
The heading is in a large boldface font.
Each paragraph of the
\family sans
Bibliography
\family default
environment is a bibliography entry.
Thus, hitting
\family sans
Return
\family default
does
\emph on
not
\emph default
reset the paragraph environment.
Each new paragraph is still in the
\family sans
Bibliography
\family default
environment.
\layout Standard
At the
\emph on
beginning
\emph default
of the
\emph on
first line
\emph default
of each paragraph, you will see a grayish box showing a number.
If you click on it, you will get a popup in which you can set a
\family sans
key
\family default
and a
\family sans
label
\family default
.
The key is the symbolic name by which you will refer to this bibliography
entry.
For example, suppose your first entry in the bibliography was a book about
LaTeX.
We could choose the key
\begin_inset Quotes eld
\end_inset
latexguide
\begin_inset Quotes erd
\end_inset
for that entry.
You can also give a label, which will be displayed in the gray inset box.
\layout Standard
The
\family sans
key
\family default
field isn't useless.
You can refer to your bibliography entries using the
\family sans
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
Citation Reference
\family default
command.
Just choose the key inside in the combox
\family sans
key
\family default
.
An example of the
\family sans
Bibliography
\family default
appears [where else] at the end of this document.
\begin_inset Quotes eld
\end_inset
See
\begin_inset LatexCommand \cite{latexguide}
\end_inset
or
\begin_inset LatexCommand \cite[Chapter 3]{latexcompanion}
\end_inset
\begin_inset Quotes erd
\end_inset
is an example of how to cite two of the entries in it.
In the second one, we used the
\family sans
remark
\family default
field of the citation popup to add the text
\begin_inset Quotes eld
\end_inset
Chapter 3
\begin_inset Quotes erd
\end_inset
.
The texts
\begin_inset Quotes eld
\end_inset
latexguide
\begin_inset Quotes erd
\end_inset
and
\begin_inset Quotes eld
\end_inset
latexcompanion
\begin_inset Quotes erd
\end_inset
that you see on screen will be replaced in print by the number or the label
of the bibliography entry.
\layout Standard
The more advanced LaTeX bibliography package BibTeX is also supported by
LyX.
For a description of how to use it, please refer to the
\emph on
Extended LyX Features
\emph default
document.
\layout Subsection
Special Purpose
\layout Standard
There are three standard paragraph environments that simply don't fit any
category, as they are very specialized for a particular purpose.
We'll point out the highlights and uses of each.
\layout Subsubsection
\family sans
Caption
\layout Standard
\begin_inset LatexCommand \label{sec:captionlayout}
\end_inset
The
\family sans
Caption
\family default
environment is the default paragraph environment for
\family sans
Figure
\protected_separator
Floats
\family default
and
\family sans
Table
\protected_separator
Floats
\family default
.
On the LyX screen, you'll see either the label
\begin_inset Quotes eld
\end_inset
Figure:
\begin_inset Quotes erd
\end_inset
or
\begin_inset Quotes eld
\end_inset
Table:
\begin_inset Quotes erd
\end_inset
, depending on which type of
\family sans
Float
\family default
it's in.
Additionally, the
\family sans
Caption
\family default
environment generates a figure or table number in the final output.
\layout Standard
You can't really nest things into a
\family sans
Caption
\family default
environment or vice versa.
Additionally, hitting
\family sans
Return
\family default
resets the paragraph environment to
\family sans
Standard
\family default
, so a
\family sans
Caption
\family default
can only be a single paragraph.
\layout Standard
You cannot use a
\family sans
Caption
\family default
environment outside of a
\family sans
Figure
\protected_separator
Float
\family default
or a
\family sans
Table
\protected_separator
Float
\family default
.
See sections
\begin_inset LatexCommand \ref{sec:figures}
\end_inset
and
\begin_inset LatexCommand \ref{sec:tables}
\end_inset
for more information on
\family sans
Figure
\protected_separator
Floats
\family default
and
\family sans
Table
\protected_separator
Floats
\family default
.
\layout Subsubsection
\family sans
LyX-Code
\layout Standard
The
\family sans
LyX-Code
\family default
environment is another LyX-extension.
It typesets text in a typewriter-style font.
It also treats the
\family sans
Space
\family default
key as a fixed whitespace;
\begin_float footnote
\layout Standard
In the
\family sans
LyX-Code
\family default
environment, the
\family sans
Space
\family default
key is treated as a
\family sans
Protected
\protected_separator
Blank
\family default
instead of an end-of-word marker.
\end_float
this is the only case in which you can type multiple whitespaces in LyX.
If you need to insert blank lines, you'll still need to use
\family sans
C-Return
\family default
[the
\family typewriter
break-line
\family default
function].
\family sans
Return
\family default
breaks paragraphs.
Note, however, that
\family sans
Return
\family default
does
\emph on
not
\emph default
reset the paragraph environment.
So, when you finish using the
\family sans
LyX-Code
\family default
environment, you'll need to change the paragraph environment yourself.
Also, you
\emph on
can
\emph default
nest the
\family sans
LyX-Code
\family default
environment inside of others.
\layout Standard
There are a few quirks with this environment:
\layout Itemize
You cannot use
\family sans
C-Return
\family default
at the beginning of a new paragraph [i.e.
you can't follow
\family sans
Return
\family default
with a
\family sans
C-Return
\family default
].
\layout Itemize
You can't follow a
\family sans
C-Return
\family default
with a
\family sans
Space
\family default
.
\begin_deeper
\layout Itemize
Use a
\family sans
Return
\family default
to begin a new paragraph, then you can use a
\family sans
Space
\family default
.
\layout Itemize
Or: use
\family sans
C-Space
\family default
instead.
\end_deeper
\layout Itemize
You can't have an empty paragraph or an empty line.
You must put at least one
\family sans
Space
\family default
in any line you want blank.
Otherwise, LaTeX generates errors.
\layout Itemize
You cannot get the typewriter double quotes by typing
\family sans
"
\family default
since that will insert
\emph on
real
\emph default
quotes.
You get the typewriter double quotes with
\family sans
C-"
\family default
or
\family sans
C-q
\family default
.
\layout Standard
Here's an example:
\layout LyX-Code
#include<stdio.h>
\layout LyX-Code
\protected_separator
\layout LyX-Code
int main(void)
\layout LyX-Code
{
\layout LyX-Code
\protected_separator
\protected_separator
printf(
\begin_inset Quotes eld
\end_inset
Hello World
\backslash
n
\begin_inset Quotes erd
\end_inset
);
\layout LyX-Code
\protected_separator
\protected_separator
return 0;
\layout LyX-Code
}
\layout Standard
This is just the standard
\begin_inset Quotes eld
\end_inset
Hello world!
\begin_inset Quotes erd
\end_inset
program.
\layout Standard
\family sans
LyX-Code
\family default
has one purpose: to typeset code, such as program source, shell scripts,
rc-files, and so on.
Use it only in those very, very special cases where you need to generate
text as if you used a typewriter.
\layout Subsubsection
Comment
\layout Standard
The comment paragraph environment can be used to write comments about your
document that will not appear in the final output.
In order to make this clear, LyX will present the comment environment in
a different color than the rest of the text.
\layout Subsubsection
\family sans
LaTeX
\layout Standard
\begin_inset LatexCommand \label{sec:LaTeXlayout}
\end_inset
The
\family sans
LaTeX
\family default
paragraph environment has a specific purpose: to pass large blocks of commands
to LaTeX.
It has the following features:
\layout Itemize
Text appears in red, indicating that it is LaTeX code.
\layout Itemize
You can insert whitespace multiple times using the
\family sans
Space
\family default
key [i.e.
\family sans
Space
\family default
gets treated as a
\family sans
Protected
\protected_separator
Blank
\family default
].
\begin_deeper
\layout Itemize
This does not work, however, after a
\family sans
C-Return
\family default
.
Use
\family sans
C-Space
\family default
in that case.
\end_deeper
\layout Itemize
If you wish to break up your LaTeX commands over several lines, use
\family sans
C-Return
\family default
to break the lines.
\layout Itemize
The
\family sans
Return
\family default
key resets the paragraph environment to
\family sans
Standard
\family default
.
\layout Itemize
You
\emph on
can
\emph default
nest a
\family sans
LaTeX
\family default
environment in other environments.
\layout Standard
See section
\begin_inset LatexCommand \ref{sec:latexcodes}
\end_inset
for more information.
\layout Section
Nesting Environments
\begin_inset LatexCommand \label{sec:nest}
\end_inset
\layout Subsection
The Big Deal
\layout Standard
Throughout the previous sections, we've been constantly nagging you to
\begin_inset Quotes eld
\end_inset
go read section
\begin_inset LatexCommand \ref{sec:nest}
\end_inset
.
\begin_inset Quotes erd
\end_inset
So, you're probably wondering what the big deal is.
\layout Standard
The big deal is that LyX differs rather strongly from the traditional
\begin_inset Quotes eld
\end_inset
word\SpecialChar \-
processor-as-overglorified-typewriter
\begin_inset Quotes erd
\end_inset
concept.
With a typewriter, text is merely ink on a page.
Most word processors aren't much better, treating text as pixels on the
screen and bytes in memory.
In contrast, LyX treats text as a unified block with a particular context
and specific properties.
However, what if you wanted one
\begin_inset Quotes eld
\end_inset
block
\begin_inset Quotes erd
\end_inset
to inherit some of the properties of another
\begin_inset Quotes eld
\end_inset
block?
\begin_inset Quotes erd
\end_inset
\layout Standard
Here's a more specific example: outlines.
You have three main points in your outline, but point #2 also has two subpoints.
In other words, you have a list
\emph on
inside
\emph default
of another list, with the inner list
\begin_inset Quotes eld
\end_inset
attached
\begin_inset Quotes erd
\end_inset
to item #2:
\layout Enumerate
one
\layout Enumerate
two
\begin_deeper
\layout Enumerate
sublist - item #1
\layout Enumerate
sublist - item #2
\end_deeper
\layout Enumerate
three
\layout Standard
How do you put a list inside of a list?
\layout Standard
By now, the answer should be obvious: you nest one list inside the other.
However, nesting isn't just limited to lists.
In LyX, you can nest just about anything inside anything else, as you're
about to find out.
This is the real power of nesting paragraph environments.
\layout Subsection
What You Can and Can't Nest
\layout Standard
Before we fire a list of paragraph environments at you, we need to tell
you a little bit more about how nesting works.
\layout Standard
The question of nesting is a bit more complicated than a simple yes or no,
can you or can't you.
There's also the question of how.
Can you nest this environment into anything else? Can you nest another
environment into it? A
\begin_inset Quotes eld
\end_inset
yes
\begin_inset Quotes erd
\end_inset
to one of these doesn't guarantee a
\begin_inset Quotes eld
\end_inset
yes
\begin_inset Quotes erd
\end_inset
to the other.
\layout Standard
The paragraph environments in LyX can do one of three things when it comes
to nesting.
First, an environment may be completely unnestable.
Second, there are environments that are fully nestable.
You can nest them inside of things and you can also nest other things inside
of them.
There is one last type of environment.
You can nest them into other environments, but that's it.
You can't nest anything into them.
\layout Standard
Here's a list of the three types of nesting behavior, and which paragraph
environments have them:
\begin_float footnote
\layout Standard
For some odd reason, LyX allows you to fully nest both
\family sans
Bibliography
\family default
and
\family sans
Abstract
\family default
.
Also, LyX allows you to nest
\family sans
Title
\family default
,
\family sans
Author
\family default
, and
\family sans
Date
\family default
into other environments.
We urge you not to.
LaTeX may barf if you try it.
Then again, it may not.
We don't know for certain.
However, it makes no sense contextually to perform any nesting with these
environments, so why would you ever want to?
\end_float
\layout Description
Unnestable Can't nest them.
Can't nest into them.
\begin_deeper
\layout Itemize
\family sans
Chapter
\layout Itemize
\family sans
Section
\family default
\layout Itemize
\family sans
Subsection
\layout Itemize
\family sans
Subsubsection
\layout Itemize
\family sans
Paragraph
\family default
\layout Itemize
\family sans
Subparagraph
\layout Itemize
\family sans
Section*
\layout Itemize
\family sans
Subsection*
\layout Itemize
\family sans
Subsubsection*
\layout Itemize
\family sans
Bibliography
\layout Itemize
\family sans
Abstract
\layout Itemize
\family sans
Title
\layout Itemize
\family sans
Author
\layout Itemize
\family sans
Date
\end_deeper
\layout Description
Fully
\protected_separator
Nestable You can nest them.
You can nest other things into them.
\begin_deeper
\layout Itemize
\family sans
Verse
\layout Itemize
\family sans
Quote
\layout Itemize
\family sans
Quotation
\layout Itemize
\family sans
Itemize
\layout Itemize
\family sans
Enumerate
\layout Itemize
\family sans
Description
\layout Itemize
\family sans
List
\layout Itemize
\family sans
LyX-Code
\end_deeper
\layout Description
Nestable-Inside You can nest them inside of other things.
You can't nest anything into them.
\begin_deeper
\layout Itemize
\family sans
Standard
\layout Itemize
\family sans
Right
\protected_separator
Address
\layout Itemize
\family sans
Address
\layout Itemize
\family sans
LaTeX
\end_deeper
\layout Standard
The
\family sans
Caption
\family default
environment doesn't really fit anywhere, since it's only used inside of
\family sans
Table
\protected_separator
Floats
\family default
and
\family sans
Figure
\protected_separator
Floats
\family default
.
\layout Subsection
Nesting Other Things: Tables, Math, Floats, etc.
\layout Standard
\begin_inset LatexCommand \label{sec:table-and-fig-nesting}
\end_inset
There are several things that aren't paragraph environments, but which are
affected by nesting anyhow.
They are:
\layout Itemize
Equations
\layout Itemize
Tables
\layout Itemize
Figures
\layout Standard
[Note: if you put a figure or a table in a
\family sans
Float
\family default
, this is no longer true.
See below or look in sections
\begin_inset LatexCommand \ref{sec:figures}
\end_inset
or
\begin_inset LatexCommand \ref{sec:tables}
\end_inset
for more info.]
\layout Standard
LyX can treat these three objects as either a word or as a paragraph.
Well, you can't inline a table, but you can inline math and figures.
If a figure or an equation is inlined, it goes wherever the paragraph it's
in goes.
\layout Standard
On the other hand, if you have an equation, figure or table in a
\begin_inset Quotes eld
\end_inset
paragraph
\begin_inset Quotes erd
\end_inset
of its own, it behaves just like a
\begin_inset Quotes eld
\end_inset
nestable-inside
\begin_inset Quotes erd
\end_inset
paragraph environment.
You can nest it into any environment, but you [obviously] can't nest anything
into it.
\layout Standard
Here's an example with a table:
\layout Enumerate
Item One
\begin_deeper
\layout Enumerate
This is (a) and it's nested.
\begin_deeper
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable
multicol5
2 2 0 0 -1 -1 -1 -1
1 0 0 0
1 1 0 0
8 1 0 "" ""
8 1 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
a
\newline
b
\newline
c
\newline
d
\end_deeper
\layout Enumerate
This is (b).
The table is actually nested inside (a).
\end_deeper
\layout Enumerate
Back out again.
\layout Standard
If we hadn't nested the table at all, the list would look like this:
\layout Enumerate
Item One
\begin_deeper
\layout Enumerate
This is (a) and it's nested.
\end_deeper
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable
multicol5
2 2 0 0 -1 -1 -1 -1
1 0 0 0
1 1 0 0
8 1 0 "" ""
8 1 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
a
\newline
b
\newline
c
\newline
d
\layout Enumerate
This is (b).
The table is
\emph on
not
\emph default
nested inside (a).
In fact, it's not nested at all.
\layout Enumerate
Back out again.
\layout Standard
Notice how item (b) is not only no longer nested, but is also the first
item of a new list!
\layout Standard
There's another trap you can fall into: nesting the table, but not going
deep enough.
LyX turns anything after the table into a new [sub]list.
\layout Enumerate
Item One
\begin_deeper
\layout Enumerate
This is (a) and it's nested.
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable
multicol5
2 2 0 0 -1 -1 -1 -1
1 0 0 0
1 1 0 0
8 1 0 "" ""
8 1 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
a
\newline
b
\newline
c
\newline
d
\layout Enumerate
This is (b).
The table is actually nested inside Item One, but
\emph on
not
\emph default
inside (a).
\end_deeper
\layout Enumerate
Back out again.
\layout Standard
As you can see, item (b) turned into the first item of a new list, but a
new list
\emph on
inside
\emph default
item 1.
The same thing would have happened to a figure or an equation.
So, if you nest tables, figures or equations, make sure you go to the right
depth!
\layout Standard
Then there are the so-called
\family sans
Floats
\family default
.
A
\family sans
Float
\family default
is a block of text associated with some sort of label, but which doesn't
have a fixed location.
It can
\begin_inset Quotes eld
\end_inset
float
\begin_inset Quotes erd
\end_inset
forward or backward a page or two, to wherever it fits best.
\family sans
Footnotes
\family default
and
\family sans
Margin
\protected_separator
Notes
\family default
are floats, as are
\family sans
Table
\protected_separator
Floats
\family default
,
\family sans
Figure
\protected_separator
Floats
\family default
,
\family sans
Wide
\protected_separator
Table
\protected_separator
Floats
\family default
, and
\family sans
Wide
\protected_separator
Figure
\protected_separator
Floats
\family default
.
\begin_float footnote
\layout Standard
The difference between the wide and non-wide floats is only relevant in
two-column documents, where wide floats are two columns wide instead of
one.
In one-column documents, the menu entries for
\family sans
Wide
\protected_separator
Table
\protected_separator
Floats
\family default
, and
\family sans
Wide
\protected_separator
Figure
\protected_separator
Floats are unavailable.
\end_float
When you're editing a document in LyX, a closed
\family sans
Float
\family default
looks like a superscripted word in red and goes wherever the paragraph
it's in goes.
However, because a
\family sans
Float
\family default
has not fixed location in the final text, nesting has no effect on its
actual location after you feed your document to LaTeX.
\layout Subsection
Usage and General Features
\layout Subsubsection
The Various Bindings
\layout Standard
Now that we've told you what you can and can't nest, it's about time we
explained
\emph on
how
\emph default
to nest things!
\begin_float footnote
\layout Standard
\emph on
Author's Note: I debated putting this section before the previous two, but
all three are so tied together, that it was hard to figure out the order.
-jw
\end_float
\layout Standard
First, you have your choice of keybindings, a toolbar button, and a menu
item.
Selecting
\family sans
Change
\protected_separator
En
\bar under
v
\bar default
ironment
\protected_separator
Depth
\family default
from the
\family sans
\bar under
L
\bar default
ayout
\family default
menu
\emph on
increases
\emph default
the nesting depth by one level.
You can also increase the depth by using the toolbar button showing a picture
of a page, with two arrows on either side of an indented paragraph.
Lastly, you can
\emph on
increase
\emph default
the nesting depth with the keybinding
\family sans
M-p
\protected_separator
Right
\family default
, while
\family sans
M-p
\protected_separator
Left
\family default
\emph on
decreases
\emph default
the nesting depth.
\layout Standard
There are two ways to nest text.
You can select the text to nest, or you can simply move the cursor into
the paragraph whose depth you want to change.
The first method lets you alter several paragraphs at once.
\layout Standard
Note that LyX only changes the nesting depth if it can.
If it's invalid to do so, nothing happens if you try to change the depth.
Additionally, if you change the depth of one paragraph, it affects the
depth of every paragraph nested inside of it.
It's hard to describe what exactly LyX does in this case.
That depends specifically on what your text looks like.
Your best bet is to simply play with changing the nesting depth and see
what happens.
\layout Standard
Lastly, we'd like to note the following:
\layout Itemize
If you
\emph on
decrease
\emph default
the depth multiple times [e.g.
using
\family sans
M-p
\protected_separator
Left
\family default
repeatedly] LyX stops at the outermost level.
\layout Itemize
If you
\emph on
increase
\emph default
the depth multiple times [e.g.
using
\family sans
M-p
\protected_separator
Right
\family default
repeatedly] LyX
\begin_inset Quotes eld
\end_inset
wraps around.
\begin_inset Quotes erd
\end_inset
That is, when you reach the innermost level, LyX doesn't stop there, but
returns to the outermost level if you try to increase the depth once more.
\layout Standard
Note that the
\begin_inset Quotes eld
\end_inset
innermost level
\begin_inset Quotes erd
\end_inset
does not mean the innermost possible depth.
You can't nest to an arbitrary level; there has to be something in the
level above it.
\layout Standard
Speaking of levels, LyX can perform up to a sixfold nesting.
In other words,
\begin_inset Quotes eld
\end_inset
level #6
\begin_inset Quotes erd
\end_inset
is the innermost possible depth.
Here's an example to display what we mean:
\layout Enumerate
level #1 - outermost
\begin_deeper
\layout Enumerate
level #2
\begin_deeper
\layout Enumerate
level #3
\begin_deeper
\layout Enumerate
level #4
\begin_deeper
\layout Itemize
level #5
\begin_deeper
\layout Itemize
level #6
\end_deeper
\end_deeper
\end_deeper
\end_deeper
\end_deeper
\layout Standard
Once again, LyX has a maximum of 6 levels, regardless of which specific
paragraph environments you're using at a given level.
\begin_float footnote
\layout Standard
Unfortunately, LyX doesn't enforce this limitation.
If you try to exceed it, however, LaTeX will return errors when you go
to produce output for your document.
\end_float
That means that you can perform a sixfold nesting of a
\family sans
Description
\family default
list, or a
\family sans
Verse
\family default
environment, and so on.
You can also mix environments, as we shall see later.
\layout Standard
There are two exceptions to the sixfold nesting limit, and you can see both
of them in the example.
Unlike the other fully-nestable environments, you can only perform a fourfold
nesting with the
\family sans
Enumerate
\family default
and
\family sans
Itemize
\family default
environments.
For example, if we tried to nest another
\family sans
Enumerate
\family default
list inside of item
\begin_inset Quotes eld
\end_inset
A.
\begin_inset Quotes erd
\end_inset
, we'd get errors.
\begin_float footnote
\layout Standard
Once again, LyX doesn't enforce this limitation.
If you try to exceed it, however, LaTeX will return errors when you go
to produce output for your document.
\end_float
\layout Subsection
Some Examples
\layout Standard
The best way to explain just what you can do with nesting is by illustration.
We have several examples of nested environments.
In them, we explain how we created the example, so that you can reproduce
them.
\layout Subsubsection
Example #1: The Sixfold-Way and Mixed Nesting
\layout List
\labelwidthstring MMM
#1-a This is the outermost level.
It's a
\family sans
List
\family default
environment.
\begin_deeper
\layout List
\labelwidthstring MMM
#2-a This is level #2.
We created it by using
\family sans
M-Return
\family default
followed by
\family sans
M-p
\protected_separator
Right
\family default
.
\begin_deeper
\layout List
\labelwidthstring MMM
#3-a This is level #3.
This time, we just hit
\family sans
Return
\family default
, then used
\family sans
M-p
\protected_separator
Right
\family default
twice in a row.
We could have also created it the same way as we did the previous level,
by hitting
\family sans
M-Return
\family default
followed by
\family sans
M-p
\protected_separator
Right
\family default
.
\begin_deeper
\layout Standard
This is actually a
\family sans
Standard
\family default
environment, nested inside of
\begin_inset Quotes eld
\end_inset
#3-a
\begin_inset Quotes erd
\end_inset
.
So, it's at level #4.
We did this by hitting
\family sans
M-Return
\family default
, then
\family sans
M-p
\protected_separator
Right
\family default
, then changing the paragraph environment to
\family sans
Standard
\family default
.
Do this to create list items with more than one paragraph - it also works
for the
\family sans
Description
\family default
,
\family sans
Enumerate
\family default
, and
\family sans
Itemize
\family default
environments!
\layout Standard
Here's another
\family sans
Standard
\family default
paragraph, also at level #4, made with just a
\family sans
M-Return
\family default
.
\layout List
\labelwidthstring MMM
#4-a This is level #4.
We hit
\family sans
M-Return
\family default
and changed the paragraph environment back to
\family sans
List
\family default
.
Remember - we can't nest anything inside of a
\family sans
Standard
\family default
environment, which is why we're still at level #4.
However, we
\emph on
can
\emph default
keep nesting things inside of
\begin_inset Quotes eld
\end_inset
#3-a
\begin_inset Quotes erd
\end_inset
.
\begin_deeper
\layout List
\labelwidthstring MMM
#5-a This is level #5\SpecialChar \ldots{}
\begin_deeper
\layout List
\labelwidthstring MMM
#6-a \SpecialChar \ldots{}
and this is level #6.
By now, you should know how we made these two.
\end_deeper
\layout List
\labelwidthstring MMM
#5-b Back to level #5.
Just hit
\family sans
M-Return
\family default
followed by a
\family sans
M-p
\protected_separator
Left
\family default
.
\end_deeper
\layout List
\labelwidthstring MMM
#4-b After another
\family sans
M-Return
\family default
followed by a
\family sans
M-p
\protected_separator
Left
\family default
, we're back at level #4.
\end_deeper
\layout List
\labelwidthstring MMM
#3-b Back to level #3.
By now it should be obvious how we did this.
\end_deeper
\layout List
\labelwidthstring MMM
#2-b Back to level #2.
\end_deeper
\layout List
\labelwidthstring MMM
#1-b And last, back to the outermost level, #1.
After this sentence, we'll hit
\family sans
Return
\family default
and change the paragraph environment back to
\family sans
Standard
\family default
to end the list.
\layout Standard
There you have it! Oh --- we could have also used the
\family sans
Description
\family default
,
\family sans
Quote
\family default
,
\family sans
Quotation
\family default
, or even the
\family sans
Verse
\family default
environment in place of the
\family sans
List
\family default
environment.
The example would have worked exactly the same.
\layout Subsubsection
Example #2: Inheritance
\layout LyX-Code
This is the LyX-Code environment, at level #1, the outermost
\layout LyX-Code
level.
\protected_separator
Now we'll hit
\family sans
Return
\family default
, then
\family sans
M-p
\protected_separator
Right
\family default
, after which,
\layout LyX-Code
we'll change to the
\family sans
Enumerate
\family default
environment.
\begin_deeper
\layout Enumerate
This is the
\family sans
Enumerate
\family default
environment, at level #2.
\layout Enumerate
Notice how the nested
\family sans
Enumerate
\family default
not only inherits its margins from its parent environment [
\family sans
LyX-Code
\family default
], but also inherits its font and spacing!
\end_deeper
\layout Standard
We ended this example by hitting
\family sans
Return
\family default
.
After that, we needed to reset the paragraph environment to
\family sans
Standard
\family default
and resetting the nesting depth by using
\family sans
M-p
\protected_separator
Left
\family default
once.
\layout Subsubsection
Example #3: Labels, Levels, and the
\family sans
Enumerate
\family default
and
\family sans
Itemize
\family default
Environments.
\layout Enumerate
This is level #1, in an
\family sans
Enumerate
\family default
paragraph environment.
We're actually going to nest a bunch of these.
\begin_deeper
\layout Enumerate
This is level #2.
We used
\family sans
M-Return
\family default
followed by
\family sans
M-p
\protected_separator
Right
\family default
.
Now, what happens if we nest an
\family sans
Itemize
\family default
environment inside of this one? It will be at level #3, but what will its
label be? An asterisk?
\begin_deeper
\layout Itemize
No! It's a bullet.
This is the
\emph on
first
\emph default
\family sans
Itemize
\family default
environment, even though it's at level #3.
So, its label is a bullet.
[Note: we got here by using
\family sans
M-Return
\family default
, then
\family sans
M-p
\protected_separator
Right
\family default
, then changing the environment to
\family sans
Itemize
\family default
.]
\begin_deeper
\layout Itemize
Here's level #4, produced using
\family sans
M-Return
\family default
, then
\family sans
M-p
\protected_separator
Right
\family default
.
We'll do that again\SpecialChar \ldots{}
\begin_deeper
\layout Enumerate
\SpecialChar \ldots{}
to get to level #5.
This time, however, we also changed the paragraph environment back to
\family sans
Enumerate
\family default
.
Notice the type of numbering! It's
\emph on
lowercase Roman
\emph default
, because we're the
\emph on
thirdfold
\emph default
\family sans
Enumerate
\family default
environment [i.e.
we're an
\family sans
Enumerate
\family default
inside an
\family sans
Enumerate
\family default
inside an
\family sans
Enumerate
\family default
].
\layout Enumerate
What happens if we
\emph on
don't
\emph default
change the paragraph environment, but decrease the nesting depth? What
type of numbering does LyX use?
\layout Enumerate
Oh, as if you couldn't guess by now, we're just using
\family sans
M-Return
\family default
to keep the current environment and depth but create a new item.
\layout Enumerate
Let's use
\family sans
M-p
\protected_separator
Left
\family default
to decrease the depth after the next
\family sans
M-Return
\family default
.
\end_deeper
\layout Enumerate
This is level #4.
Look what type of label LyX is using!
\end_deeper
\layout Enumerate
This is level #3.
Even though we've changed levels, LyX is still using a lowercase Roman
numeral as the label.
Why?!
\layout Enumerate
Because, even though the nesting depth has changed, the paragraph is
\emph on
still
\emph default
a thirdfold
\family sans
Enumerate
\family default
environment.
Notice, however, that LyX
\emph on
did
\emph default
reset the counter for the label.
\end_deeper
\layout Enumerate
Another
\family sans
M-Return
\family default
\family sans
M-p
\protected_separator
Left
\family default
sequence, and we're back to level #2.
This time, we not only changed the nesting depth, but we also moved back
into the twofold-nested
\family sans
Enumerate
\family default
environment.
\end_deeper
\layout Enumerate
The same thing happens if we do another
\family sans
M-Return
\family default
\family sans
M-p
\protected_separator
Left
\family default
sequence and return to level #1, the outermost level.
\layout Standard
Lastly, we reset the environment to
\family sans
Standard
\family default
.
As you can see, the level number doesn't correspond to what type of labelling
LyX uses for the
\family sans
Enumerate
\family default
and
\family sans
Itemize
\family default
environments.
The number of
\emph on
other
\family sans
Enumerate
\family default
environments
\emph default
surrounding it determines what kind of label LyX uses for an
\family sans
Enumerate
\family default
item.
The same rule applies for the
\family sans
Itemize
\family default
environment, as well.
\layout Subsubsection
Example #4: Going Bonkers
\layout Enumerate
We're going to go totally nuts now.
We won't nest as deep as in the other examples, nor will we go into the
same detail with how we did it.
[level #1:
\family sans
Enumerate
\family default
]
\begin_deeper
\layout Standard
[
\family sans
Return, M-p
\protected_separator
Left, Standard
\family default
: level #2] We'll stick an encapsulated description of how we created the
example in brackets someplace.
For example, the two keybindings are how we changed the depth.
The environment name is, obviously, the name of the current environment.
Either before or after this, we'll put in the level.
\end_deeper
\layout Enumerate
[
\family sans
Return, Enumerate
\family default
: level #1] This is the next item in the list.
\begin_deeper
\layout Verse
Now we'll add verse.
\newline
It will get much worse.
\newline
[
\family sans
Return, M-p
\protected_separator
Left, Verse
\family default
: level #2]
\layout Verse
Fiddle dee, Fiddle doo.
\newline
Bippitey boppitey boo!
\newline
[
\family sans
M-Return
\family default
]
\layout Verse
Here comes a table for you:
\begin_deeper
\layout Standard
\added_space_top 0.3cm \align center \LyXTable
multicol5
2 2 0 0 -1 -1 -1 -1
0 0 0 0
1 0 0 0
8 0 0 "" ""
8 1 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
one-fish
\newline
two-fish
\newline
red-fish
\newline
blue-fish
\end_deeper
\layout Verse
[
\family sans
M-Return, Table, M-p
\protected_separator
Right
\family default
3 times,
\family sans
M-Return, Verse, M-p
\protected_separator
Left
\family default
]
\end_deeper
\layout Enumerate
[
\family sans
Return, Enumerate
\family default
: level #1] This is another item.
Note that selecting a
\family sans
Table
\family default
resets the nesting depth to level #1, so we increased the nesting depth
3 times to put the table inside the
\family sans
Verse
\family default
environment.
\layout Quotation
We're now ending the
\family sans
Enumerate
\family default
list and changing to
\family sans
Quotation
\family default
.
We're still at level #1.
We want to show you some of the things you can do by mixing environments.
The next set of paragraphs is a
\begin_inset Quotes eld
\end_inset
quoted letter.
\begin_inset Quotes erd
\end_inset
We'll nest both the
\family sans
Address
\family default
and
\family sans
Right
\protected_separator
Address
\family default
environments inside of this one, then use another nested
\family sans
Quotation
\family default
for the letter body.
We'll use
\family sans
M-Return
\family default
to preserve the depth.
Remember that you need to use
\family sans
C-Return
\family default
to create multiple lines inside the
\family sans
Address
\family default
and
\family sans
Right
\protected_separator
Address
\family default
environments.
Here it goes:
\begin_deeper
\layout Right Address
1234 Nowhere Rd.
\newline
Moosegroin, MT 00100
\newline
9-6-96
\layout Address
Dear Mr.
\protected_separator
Fizlewitz:
\layout Quotation
We regret to inform you that we cannot fill your order for 50L of compressed
methane gas due to circumstances beyond our control.
Unfortunately, several of our cows have mysteriously exploded, creating
a backlog in our orders for methane.
We will place your name on the waiting list and try to fill your order
as soon as possible.
In the meantime, we thank you for your patience.
\layout Quotation
We do, however, now have a special on beef.
If you are interested, please return the enclosed pricing and order form
with your order, along with payment.
\layout Quotation
We thank you again for your patience.
\layout Address
Sincerely,
\newline
=-=-=-=-=
\end_deeper
\layout Quotation
That ends that example!
\layout Standard
As you can see, nesting environments in LyX gives you a lot of power with
just a few keystrokes.
We could have easily nested an
\family sans
Itemize
\family default
list inside of a
\family sans
Quotation
\family default
or
\family sans
Quote
\family default
, or put a
\family sans
Quote
\family default
inside of an
\family sans
Itemize
\family default
list.
You have a huge variety of options at your disposal.
\layout Section
Fonts and Text Styles
\layout Subsection
Overview
\layout Standard
Many modern typesetting and markup languages have begun to move towards
specifying character styles rather than specifying a particular font.
For example, instead of changing to an italicized version of the current
font to emphasize text, you use an
\begin_inset Quotes eld
\end_inset
emphasized style
\begin_inset Quotes erd
\end_inset
instead.
This concept fits in perfectly with LyX.
In LyX, you do things based on contexts, rather than focusing on typesetting
details.
\layout Standard
Right now, LyX allows you to specify a global default font, and has two
character styles,
\family sans
Emphasized
\family default
and
\family sans
Noun
\family default
.
The
\family sans
Emphasized
\family default
style corresponds to an italics font.
The
\family sans
Noun
\family default
style corresponds to a font in smallcaps, which some languages and writing
styles use to typeset proper names.
The LyX Team actually hopes to someday have a full set of character styles,
and to also allow the user to customize which font changes correspond to
what styles.
At the moment, though, you'll have to be satisfied with what we've done
already.
\layout Subsection
Global Options
\layout Standard
You can set the default font from the
\family sans
Document Layout
\family default
popup, activated using
\family sans
Document...
\family default
from the
\family sans
Layout
\family default
menu.
There are two options of interest here,
\family sans
\bar under
F
\bar default
onts
\family default
and
\family sans
Font
\protected_separator
\bar under
S
\bar default
ize
\family default
.
The possible options under
\family sans
\bar under
F
\bar default
onts
\family default
include
\begin_inset Quotes eld
\end_inset
\family sans
default
\family default
\begin_inset Quotes erd
\end_inset
and a list of fonts available on your system.
The option
\begin_inset Quotes eld
\end_inset
\family sans
default
\family default
\begin_inset Quotes erd
\end_inset
uses the standard TeX fonts, known as
\begin_inset Quotes eld
\end_inset
computer modern
\begin_inset Quotes erd
\end_inset
(cm) or
\begin_inset Quotes eld
\end_inset
European modern
\begin_inset Quotes erd
\end_inset
(ec).
Most systems will typically have some version of a Times and Helvetica
font, with other variants.
You'll have to examine this for yourself.
\layout Standard
As for the
\family sans
Font
\protected_separator
\bar under
S
\bar default
ize
\family default
option, there are three possible values:
\family sans
10
\family default
,
\family sans
11
\family default
, and
\family sans
12
\family default
.
Remember, this is the
\emph on
base
\emph default
font size.
LyX actually scales all of the other possible font sizes [such as those
used in footnotes, superscripts, and subscripts] by this value.
You can always fine-tune the font size from within the document if you
need to.
It's also rather silly to use an 8pt or 24pt font as the default font size,
as this typically renders your document unreadable.
\layout Standard
Note that once you choose a new value for
\family sans
\bar under
F
\bar default
onts
\family default
or
\family sans
Font
\protected_separator
\bar under
S
\bar default
ize
\family default
, LyX does
\emph on
not
\emph default
change the screen.
You'll only see a difference once you generate the final output.
This is part of the WYSIWYM concept.
Besides, if you're intelligent enough to use a computer, you're intelligent
enough to recognize that
\begin_inset Quotes eld
\end_inset
Roman
\begin_inset Quotes erd
\end_inset
text on the LyX screen corresponds to the default font.
\layout Subsection
Using Different Character Styles
\layout Standard
As we've already seen, LyX automatically changes the character style for
certain paragraph environments.
We also mentioned two other character styles,
\family sans
Emphasized
\family default
and
\family sans
Noun
\family default
.
You can activate both of these styles via keybindings, the menus, and the
toolbar.
\layout Standard
To activate the
\family sans
Noun
\family default
style, do one of the following:
\layout Itemize
select
\family sans
\bar under
N
\bar default
oun
\protected_separator
Style
\family default
from the
\family sans
\bar under
L
\bar default
ayout
\family default
menu
\layout Itemize
click on the toolbar button with the person-shaped icon
\layout Itemize
use the keybinding
\family sans
M-c
\protected_separator
c
\layout Standard
These commands are all toggles.
That is, if
\family sans
Noun
\family default
style is already active, they deactivate it.
\layout Standard
One typically uses the
\family sans
Noun
\family default
style for proper names.
For example:
\begin_inset Quotes eld
\end_inset
\noun on
Matthias Ettrich
\noun default
is the original author of LyX.
\begin_inset Quotes erd
\end_inset
\layout Standard
A more widely used character style is the
\family sans
Emphasized
\family default
style.
You can activate [or deactivate - it's also a toggle] the
\family sans
Emphasized
\family default
style by:
\layout Itemize
selecting
\family sans
\bar under
E
\bar default
mphasize
\protected_separator
Style
\family default
from the
\family sans
\bar under
L
\bar default
ayout
\family default
menu
\layout Itemize
clicking on the toolbar button with the
\begin_inset Quotes eld
\end_inset
!
\begin_inset Quotes erd
\end_inset
character on it
\layout Itemize
using the keybindings
\family sans
M-c
\protected_separator
e
\layout Standard
At the moment, the
\family sans
Emphasized
\family default
style is equivalent to an italicized font.
We have plans to make that association more user-configurable in the future.
\layout Standard
We've been using the
\family sans
Emphasized
\family default
style all over the place in this document.
Here's one more example:
\layout Quotation
\emph on
Don't overuse character styles!
\layout Standard
It's also a warning in addition to an example.
One's writing should parallel ordinary conversation.
Since we don't all constantly scream at each other, we should also avoid
the common tendency to overuse character style.
\layout Standard
Oh --- one last note: You can always reset to the default font using the
keybinding
\family sans
M-c
\protected_separator
Space
\family default
.
\layout Subsection
Fine-Tuning with the
\family sans
Character Layout
\family default
Popup
\layout Standard
There are always occasions when you'll need to do some fine-tuning, so LyX
gives you a way to create custom character style.
For example, an academic journal or a corporation may have a style sheet
requiring a sans-serif font be used in certain situations.
\begin_float footnote
\layout Standard
Note from
\noun on
John Weiss
\noun default
: There is, in fact, such a style sheet for the LyX Documentation, since
manuals need a certain amount of consistency.
\end_float
Also, writers sometimes use a different font to offset a character's thoughts
from ordinary dialogue.
\layout Standard
Before we document how to use custom character style, we want to issue a
warning yet again: Don't overuse character styles.
Many modern word processors have a vast array of fonts available to them,
providing you with the power of a printing press.
Unfortunately, there is this tendency to overuse that power.
The phrase,
\begin_inset Quotes eld
\end_inset
Using a sledgehammer to swat a fly,
\begin_inset Quotes erd
\end_inset
comes to mind.
And, as the old saying implies, documents that overuse different fonts
and sizes tend to look like someone's knocked huge holes in it.
\layout Standard
Enough complaining.
\layout Standard
To use custom fonts, open the
\family sans
Character
\protected_separator
Layout
\family default
popup using
\family sans
\bar under
C
\bar default
haracter...
\family default
from the
\family sans
\bar under
L
\bar default
ayout
\family default
menu.
There are six buttons on this popup, each corresponding to a different
font property which you can choose.
You can choose an option for one of these six properties, or select
\family sans
No
\protected_separator
change
\family default
, which keeps the current state of that property.
The item
\family sans
Reset
\family default
will reset the property to whatever is the default for the hosting paragraph
environment.
You can use this to reset attributes across a bunch of different paragraph
environments in a snap.
\layout Standard
The six font properties, and their options [in addition to
\family sans
No
\protected_separator
change
\family default
and
\family sans
Reset
\family default
] are:
\layout List
\labelwidthstring MMMMM
\family sans
\bar under
F
\bar default
amily
\family default
The
\begin_inset Quotes eld
\end_inset
overall look
\begin_inset Quotes erd
\end_inset
of the font.
The possible options are:
\begin_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Roman
\family default
This is the Roman font family.
\begin_deeper
\layout Standard
It's also the default family.
[keybinding =
\family sans
M-c
\protected_separator
r
\family default
]
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Sans
\protected_separator
Serif
\family default
\family sans
This is the Sans Serif font family.
\begin_deeper
\layout Standard
[keybinding =
\family sans
M-c
\protected_separator
s
\family default
]
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Typewriter
\family default
\family typewriter
This is the Typewriter font family.
\begin_deeper
\layout Standard
[keybinding =
\family sans
M-c
\protected_separator
p
\family default
]
\end_deeper
\end_deeper
\layout List
\labelwidthstring MMMMM
\family sans
\bar under
S
\bar default
eries
\family default
This corresponds to the print weight.
Options are:
\begin_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Medium
\family default
This is the Medium font series.
\begin_deeper
\layout Standard
It's also the default series.
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Bold
\family default
\series bold
This is the Bold font series.
\begin_deeper
\layout Standard
You can toggle this series on or off using
\family sans
\bar under
B
\bar default
old
\protected_separator
Style
\family default
from the
\family sans
\bar under
L
\bar default
ayout
\family default
menu, or with the keybinding
\family sans
M-c
\protected_separator
b
\family default
.
\end_deeper
\end_deeper
\layout List
\labelwidthstring MMMMM
\family sans
S
\bar under
h
\bar default
ape
\family default
As the name implies.
Options are:
\begin_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Upright
\family default
This is the Upright font shape.
\begin_deeper
\layout Standard
It's also the default shape.
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Italic
\family default
\shape italic
This
\family sans
i
\family default
s the Italic font shape
\shape default
\emph on
.
\layout List
\labelwidthstring MMMMMM
\family sans
Slanted
\family default
\shape slanted
This is the Slanted font shape
\family sans
\family default
\shape default
(although it might not be visible on screen, this is different from italic).
\layout List
\labelwidthstring MMMMMM
\family sans
Small
\protected_separator
Caps
\family default
\shape smallcaps
This is the Small caps font shape
\shape default
\noun on
.
\end_deeper
\layout List
\labelwidthstring MMMMM
\family sans
Si
\bar under
z
\bar default
e
\family default
Alters the size of the font.
You'll find no numerical values here; all possible sizes are actually proportio
nal to the default font size.
Once again, you don't feed LyX the details, but a general description of
what you want to do.
\begin_deeper
\layout Standard
The options [and their keybindings] are:
\layout List
\labelwidthstring MMMMMM
\family sans
Tiny
\family default
\size tiny
This is the
\begin_inset Quotes eld
\end_inset
Tiny
\begin_inset Quotes erd
\end_inset
font size.
\begin_deeper
\layout Standard
[keybinding =
\family sans
M-s
\protected_separator
t
\family default
or
\family sans
M-s
\protected_separator
1
\family default
]
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Smallest
\family default
\size scriptsize
This is the
\begin_inset Quotes eld
\end_inset
Smallest
\begin_inset Quotes erd
\end_inset
font size
\begin_deeper
\layout Standard
[keybinding =
\family sans
M-s
\protected_separator
\family default
2]
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Smaller
\family default
\size footnotesize
This is the
\begin_inset Quotes eld
\end_inset
Smallest
\begin_inset Quotes erd
\end_inset
font size
\begin_deeper
\layout Standard
[keybinding =
\family sans
M-s
\protected_separator
S
\family default
or
\family sans
M-s
\protected_separator
\family default
3]
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Small
\family default
\size small
This is the
\begin_inset Quotes eld
\end_inset
Small
\begin_inset Quotes erd
\end_inset
font size.
\begin_deeper
\layout Standard
[keybinding =
\family sans
M-s
\protected_separator
s
\family default
or
\family sans
M-s
\protected_separator
\family default
4]
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Normal
\family default
This is the
\begin_inset Quotes eld
\end_inset
Normal
\begin_inset Quotes erd
\end_inset
font size.
\begin_deeper
\layout Standard
It's also the default size.
[keybinding =
\family sans
M-s
\protected_separator
n
\family default
or
\family sans
M-s
\protected_separator
\family default
5]
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Large
\family default
\size large
This is the
\begin_inset Quotes eld
\end_inset
Large
\begin_inset Quotes erd
\end_inset
font size.
\begin_deeper
\layout Standard
[keybinding =
\family sans
M-s
\protected_separator
l
\family default
or
\family sans
M-s
\protected_separator
\family default
6]
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Larger
\family default
\size larger
This is the
\begin_inset Quotes eld
\end_inset
Larger
\begin_inset Quotes erd
\end_inset
font size.
\begin_deeper
\layout Standard
[keybinding =
\family sans
M-s
\protected_separator
S-L
\family default
or
\family sans
M-s
\protected_separator
\family default
7]
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Largest
\family default
\size largest
This is the
\begin_inset Quotes eld
\end_inset
Largest
\begin_inset Quotes erd
\end_inset
font size.
\begin_deeper
\layout Standard
[keybinding =
\family sans
M-s
\protected_separator
\family default
8]
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Huge
\family default
\size huge
This is the
\begin_inset Quotes eld
\end_inset
Huge
\begin_inset Quotes erd
\end_inset
font size.
\begin_deeper
\layout Standard
[keybinding =
\family sans
M-s
\protected_separator
h
\family default
or
\family sans
M-s
\protected_separator
\family default
9]
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Huger
\family default
\size giant
This is the
\begin_inset Quotes eld
\end_inset
Huger
\begin_inset Quotes erd
\end_inset
font size.
\begin_deeper
\layout Standard
[keybinding =
\family sans
M-s
\protected_separator
H
\family default
or
\family sans
M-s
\protected_separator
\family default
0]
\end_deeper
\layout Standard
We'll warn you
\emph on
yet again
\emph default
: don't go crazy with this feature.
You should almost never need to change the font size.
LyX automatically changes the font size for different paragraph environments
- use that instead.
This is here for fine-tuning
\emph on
only!
\end_deeper
\layout List
\labelwidthstring MMMMM
\family sans
\bar under
M
\bar default
isc
\family default
Here you can change a few other things at the character level.
Options are:
\begin_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Emph
\family default
\emph on
This is text with emphasize on
\emph default
.
\begin_deeper
\layout Standard
This might seem like the same as
\shape italic
Italic
\shape default
, but it is actually a bit different.
If you use emphasize on italicized text, it will make it upright.
In future versions of LyX, we hope to let you customize the exact behavior
of this
\emph on
logical
\emph default
property.
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Underbar
\family default
\bar under
This is text with Underbar on.
\begin_deeper
\layout Standard
[keybinding =
\family sans
M-c
\protected_separator
u
\family default
]
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
Noun
\family default
\noun on
This is text with Noun on.
\begin_deeper
\layout Standard
Like
\family sans
Emph
\family default
, this is a logical attribute.
For the moment, it is equivalent to
\family sans
Small
\protected_separator
Caps
\family default
, but that is bound to change some day.
\end_deeper
\layout List
\labelwidthstring MMMMMM
\family sans
LaTeX
\protected_separator
mode
\family default
\bar under
\latex latex
This is text in
\backslash
LaTeX mode.
\begin_deeper
\layout Standard
This is a special font attribute that is used when you want to insert raw
LaTeX codes in your document.
What appears in LaTeX mode is put verbatim into the LaTeX file.
\end_deeper
\layout Standard
Avoid using underbar if you can! It's a holdover from the typewriter days,
when you couldn't change fonts.
We no longer need to resort to emphasizing text by overstriking it with
an underscore character.
It's only included in LyX because it's also in LaTeX, and because some
people
\emph on
may
\emph default
need it in order to follow style sheets for journal submissions.
\end_deeper
\layout List
\labelwidthstring 00.00.0000
\family sans
Color
\family default
You can adjust the color of the text with this control.
Of course, you need to have a color printer to exploit this, but you also
need to have the
\family sans
color
\family default
LaTeX package installed.
Notice that
\family typewriter
xdvi
\family default
is not able to display these colors.
Besides
\family sans
No
\protected_separator
color
\family default
, which
\family sans
\family default
is the standard
\begin_inset Quotes eld
\end_inset
color
\begin_inset Quotes erd
\end_inset
, you can choose between
\family sans
Black
\family default
,
\family sans
White
\family default
,
\family sans
Red
\family default
,
\family sans
Green
\family default
,
\family sans
Blue
\family default
,
\family sans
Cyan
\family default
,
\family sans
Magenta
\family default
and
\family sans
Yellow
\family default
text.
We won't illustrate here, because most people do not have a color printer.
\layout Standard
You have a huge number of combinations to choose from.
\layout Standard
Once you've chosen a new character style via the
\family sans
Character
\protected_separator
Layout
\family default
popup, you can activate it using the toolbar button labelled
\begin_inset Quotes eld
\end_inset
Font
\begin_inset Quotes erd
\end_inset
.
[You can, of course, also use the usual
\family sans
OK
\family default
and
\family sans
\bar under
A
\bar default
pply
\family default
buttons.] The toolbar button lets you toggle the state of your custom character
style even when the
\family sans
Character
\protected_separator
Layout
\family default
popup isn't visible.
\layout Standard
As we stated earlier, to completely reset the character style to the default,
use
\family sans
M-c
\protected_separator
Space
\family default
.
\layout Standard
We conclude with the same warning we've been spewing: Don't overuse the
fonts.
They are, more often than not, a kludge and a horrible substitute for good
writing.
Your writing should speak for itself --- and will.
\layout Section
Printing and Previewing
\layout Subsection
Overview
\layout Standard
Now that we've covered some of the basic features of document preparation
using LyX, you probably want to know how to print out your masterpiece.
Before we tell you that, however, we want to give you a quickie explanation
of what goes on behind-the-scenes.
We cover some of this information in sec.
\begin_inset LatexCommand \ref{sec:lyxandlatex}
\end_inset
as well.
\layout Standard
LyX uses a program called
\begin_inset Quotes eld
\end_inset
LaTeX
\begin_inset Quotes erd
\end_inset
as its backend.
[Actually, LaTeX is just a macro package for the TeX typesetting system,
but to prevent confusion, we'll just refer to the whole magilla as
\begin_inset Quotes eld
\end_inset
LaTeX.
\begin_inset Quotes erd
\end_inset
] Think of it this way: LyX is what you use to do your actual writing.
Then, LyX calls LaTeX to turn your writing into printable output.
This happens in a couple of stages:
\layout Enumerate
First, LyX converts your document to a series of text commands for LaTeX,
generating a file with the extension,
\begin_inset Quotes eld
\end_inset
\family typewriter
.tex
\family default
\begin_inset Quotes erd
\end_inset
.
\layout Enumerate
Next, LaTeX uses the commands in the
\family typewriter
.tex
\family default
file to produce printable output.
It doesn't know anything about your printer, however.
Instead, LaTeX produces what's known as a
\emph on
device-independent
\emph default
file, or Dvi for short.
The actual output is in a file with the extension,
\begin_inset Quotes eld
\end_inset
\family typewriter
.dvi
\family default
\begin_inset Quotes erd
\end_inset
.
Dvi files are completely portable; you can move them from one machine to
another without needing to do any sort of conversion.
\begin_deeper
\layout Description
NOTE: The dvi-file only contains what was in the LaTeX file itself.
If you have included PostScript pictures in your document, there will
only be a link to these files.
So don't forget these files if you move your
\family typewriter
.dvi
\family default
file to another computer.
\end_deeper
\layout Enumerate
Consider the
\family typewriter
.dvi
\family default
file to be the
\begin_inset Quotes eld
\end_inset
final output.
\begin_inset Quotes erd
\end_inset
Once you have it, you can view it, print it, or convert it to other formats.
\begin_deeper
\layout Enumerate
You can view
\family typewriter
.dvi
\family default
files using a program called
\family typewriter
xdvi
\family default
.
\layout Enumerate
Some printers and Unix systems understand Dvi, and can print your
\family typewriter
.dvi
\family default
file directly.
\layout Enumerate
Nowadays, most printers understand the PostScript format.
LyX automatically converts the
\family typewriter
.dvi
\family default
file to a PostScript file for you when you go to print out your document.
LyX will also let you preview a PostScript version of your document using
the program
\family typewriter
ghostview
\family default
.
\begin_deeper
\layout Standard
One advantage of using PostScript is that the converter program [called
\family typewriter
dvips
\family default
] takes any PostScript graphics you may have included in your document
and puts it into the resulting PostScript version of your document.
It also includes any special fonts you may have used.
That makes the PostScript version much, much more portable than the Dvi
version.
\end_deeper
\end_deeper
\layout Standard
LyX does all of these steps automagically for you.
\layout Standard
As you have seen, a lot of things happen before you get a hardcopy or a
preview of your document.
So, don't worry if printing requires a bit more time than with other word
processors.
The printed result is worth the wait.
Quality always has its price.
\layout Subsection
Quick Viewing with
\family typewriter
xdvi
\layout Standard
To get a look at the final version of your document, with all of the pagebreaks
in place, the footnotes correctly numbered, and so on, select
\family sans
View
\protected_separator
\bar under
d
\bar default
vi
\family default
from the
\family sans
\bar under
F
\bar default
ile
\family default
menu.
Then wait a while.
\layout Standard
When all of the behind-the-scenes action is done, LyX calls the program
\family typewriter
xdvi
\family default
.
You can now look at the results.
[If you want more info on the
\family typewriter
xdvi
\family default
program, see the
\family typewriter
man
\family default
-pages.]
\layout Description
Helpful-Tip: Keep the
\family typewriter
xdvi
\family default
window open, maybe moving it to another desktop.
Then, after you make changes to your document, just use
\family sans
\bar under
U
\bar default
pdate
\protected_separator
dvi
\family default
from the
\family sans
\bar under
F
\bar default
ile
\family default
menu.
Now click on the
\family typewriter
xdvi
\family default
window.
The
\family typewriter
xdvi
\family default
program will automatically reread the
\family typewriter
.dvi
\family default
file and give you an updated view.
\layout Subsection
Viewing the PostScript Version with
\family typewriter
ghostview
\layout Standard
In general, using
\family typewriter
xdvi
\family default
to view your document is the easiest and fastest way.
There may be times, however, when you want to look at the PostScript version.
One reason is fonts.
\begin_float footnote
\layout Standard
Note from
\noun on
John Weiss
\noun default
: Another reason is paranoia.
I always like to look at the PostScript file before I print it, just so
I see exactly what went to the printer\SpecialChar \ldots{}
\end_float
You can use PostScript fonts in a LaTeX document, but
\family typewriter
xdvi
\family default
won't show this.
You'll need to use
\family typewriter
ghostview
\family default
or some other PostScript file viewer to see the actual results.
\layout Standard
To view the PostScript version of your document, select
\family sans
\bar under
V
\bar default
iew
\protected_separator
PostScript
\family default
from the
\family sans
\bar under
F
\bar default
ile
\family default
menu.
Then go get some coffee.
\begin_float footnote
\layout Standard
Note from
\noun on
Matthias Zenker:
\noun default
A reasonably fast machine will not give you the time, however\SpecialChar \ldots{}
\end_float
When all of the magic behind-the-scenes is done, LyX calls the program
\family typewriter
ghostview
\family default
.
You can now look at the results.
\layout Standard
You've guessed what the
\family sans
Updat
\bar under
e
\bar default
PostScript
\family default
command from the
\family sans
\bar under
F
\bar default
ile
\family default
menu does, haven't you? Remember to click once in the
\family typewriter
ghostview
\family default
window after this command to update the view.
\layout Subsection
Printing the File
\layout Standard
To print a file, select
\family sans
\bar under
P
\bar default
rint...
\family default
from the
\family sans
\bar under
F
\bar default
ile
\family default
menu, or click on the toolbar button with the printer on it.
This opens the
\family sans
Print
\family default
popup.
\layout Standard
Here's a list of what all of the different options do:
\layout List
\labelwidthstring MMMM
\family sans
Print
\family default
Three toggle buttons that determine which pages to print.
You can choose:
\begin_deeper
\layout Itemize
\family sans
All
\protected_separator
Pa
\bar under
g
\bar default
es
\layout Itemize
\family sans
Only
\protected_separator
\bar under
O
\bar default
dd
\protected_separator
Pages
\layout Itemize
\family sans
Only
\protected_separator
\bar under
E
\bar default
ven
\protected_separator
Pages
\layout Standard
You can use these to print on both sides of a page even if your printer
only prints single-sided.
Just print the odd-numbered pages first, then turn the paper over and print
the even-numbered pages.
\end_deeper
\layout List
\labelwidthstring MMMM
\family sans
Order
\family default
Two toggle buttons that determine what order to print in.
Some printers spit out pages face-up, others, face-down.
By choosing a particular order, you can take the entire stack of pages
out of the printer without needing to reorder them.
\layout List
\labelwidthstring MMMM
\family sans
Print
\protected_separator
to
\family default
Two toggle buttons tied to text boxes.
You can print to either a file or a printer:
\begin_deeper
\layout List
\labelwidthstring MMMM
\family sans
\bar under
P
\bar default
rinter
\family default
This is the name of the printer to print to.
\begin_float footnote
\end_deeper
\layout Standard
Note that this printer name isn't for the
\family typewriter
lpr
\family default
command but for
\family typewriter
dvips
\family default
.
That means
\family typewriter
dvips
\family default
has to be configured for this printer name.
See the section
\begin_inset LatexCommand \ref{sec:dvipsconfig}
\end_inset
or the
\family typewriter
dvips
\family default
documentation for details.
The default printer can also be set in
\family typewriter
lyxrc
\family default
.
\end_float
The printer should understand PostScript files.
\begin_deeper
\layout List
\labelwidthstring MMMM
\family sans
\bar under
F
\bar default
ile
\family default
The name of a file to print to.
The output will be in Post\SpecialChar \-
Script format.
\begin_deeper
\layout Standard
Be careful with this option, though.
LyX currently uses a temporary directory to hold all of the different files
that it generates.
Unless you've disabled this feature, you need to specify the full path
name for the output file.
For example:
\begin_inset Quotes eld
\end_inset
\family typewriter
/home/me/docs/myfile.ps
\family default
\begin_inset Quotes erd
\end_inset
.
If you don't specify the full path name, LyX writes the file to the temporary
directory.
\begin_float footnote
\end_deeper
\end_deeper
\layout Standard
\emph on
Is this still true? -Asger
\end_float
\layout Standard
Note that printing may need little time, since LaTeX,
\family typewriter
dvips
\family default
and, if you don't have a PostScript printer,
\family typewriter
ghostscript
\family default
have to process your document.
\layout Section
A Few Words about Typography
\layout Subsection
Hyphens and Hyphenation
\layout Standard
\begin_inset LatexCommand \label{sec:hyphens}
\end_inset
In LyX, the
\begin_inset Quotes eld
\end_inset
\family typewriter
-
\family default
\begin_inset Quotes eld
\end_inset
character comes in three lengths, often called the
\emph on
hyphen
\emph default
, the
\emph on
en dash
\emph default
, and the
\emph on
em dash
\emph default
:
\layout Enumerate
hyphen
\hfill
-
\hfill
made with
\begin_inset Quotes eld
\end_inset
\family typewriter
-
\family default
\begin_inset Quotes eld
\end_inset
\layout Enumerate
en dash
\hfill
--
\hfill
made with
\begin_inset Quotes eld
\end_inset
\family typewriter
-
\latex latex
\backslash
/
\latex default
-
\family default
\begin_inset Quotes eld
\end_inset
\layout Enumerate
em dash
\hfill
---
\hfill
made with
\begin_inset Quotes eld
\end_inset
\family typewriter
-
\latex latex
\backslash
/
\latex default
-
\latex latex
\backslash
/
\latex default
-
\family default
\begin_inset Quotes eld
\end_inset
\layout Enumerate
minus sign
\hfill
\begin_inset Formula \( - \)
\end_inset
\hfill
a
\begin_inset Quotes eld
\end_inset
\family typewriter
-
\family default
\begin_inset Quotes eld
\end_inset
in math mode
\layout Standard
You generate these by using the
\begin_inset Quotes eld
\end_inset
\family typewriter
-
\family default
\begin_inset Quotes eld
\end_inset
character multiple times in a row.
LyX automatically converts them to the appropriate length dash in the final
output.
\layout Standard
The three types of dash are distinct from the minus sign, which appears
in math mode and has a length of its own.
Here are some examples of the
\begin_inset Quotes eld
\end_inset
\family typewriter
-
\family default
\begin_inset Quotes eld
\end_inset
in use:
\layout Enumerate
line- and page-breaks
\hfill
(
\emph on
hyphen
\emph default
)
\layout Enumerate
From A--Z
\hfill
(
\emph on
en dash
\emph default
)
\layout Enumerate
Oh --- there's a dash.
\hfill
(
\emph on
em dash
\emph default
)
\layout Enumerate
\begin_inset Formula \( x^{2}-y^{2}=z^{2} \)
\end_inset
\hfill
(
\emph on
minus sign
\emph default
)
\layout Standard
Those of you reading this from within LyX will see no difference, though
there is one in the printed version.
\layout Standard
One last note about hyphenation --- LyX automagically breaks up words and
inserts hyphens in English text.
[Actually, it's LaTeX that does this, and it will also hyphenate words
in
\emph on
some
\emph default
other languages.] The words won't be hyphenated until you generate the final
output.
\layout Standard
If, for some reason, LaTeX can't break a word correctly, you can set hyphenation
points manually.
This is done with the menu item
\family sans
Hyphenation
\protected_separator
\bar under
P
\bar default
oint
\family default
under
\family sans
\bar under
S
\bar default
pecial
\protected_separator
Characters
\family default
in the
\family sans
\bar under
I
\bar default
nsert
\family default
menu.
Note that these extra hyphenation points are only recommendations to LaTeX.
If no hyphenation is necessary, LaTeX will totally ignore them.
\layout Subsection
Punctuation Marks
\layout Subsubsection
Abbreviations and End of Sentence
\layout Standard
\begin_inset LatexCommand \label{sec:abbrev}
\end_inset
When LyX calls LaTeX to generate the final version of your document, LaTeX
automatically distinguishes between words, sentences, and abbreviations.
LaTeX then adds the
\begin_inset Quotes eld
\end_inset
appropriate amount of space
\begin_inset Quotes erd
\end_inset
: sentences get a little bit more space between the period and the next
word.
Abbreviations get the same amount of space after the period as a word uses.
\layout Standard
Unfortunately, the algorithm for figuring out what's an abbreviation and
what's the end of a sentence is really quite brain-dead.
If a
\begin_inset Quotes eld
\end_inset
\family typewriter
.
\family default
\begin_inset Quotes erd
\end_inset
is at the end of a lowercase letter, it's the end of a sentence; if it's
at the end of a capitalized letter, it's an abbreviation.
\layout Standard
Here are some examples of
\emph on
correct
\emph default
abbreviations and the end of a sentence:
\layout Itemize
M.
Butterfly
\layout Itemize
Don't worry.
Be happy.
\layout Standard
\SpecialChar \ldots{}
and here's an example of the algorithm going wrong:
\layout Itemize
e.
g.
this is too much space!
\layout Itemize
This is I.
It's okay.
\layout Standard
You won't see anything wrong until you view a final version of your document.
\layout Standard
To fix this problem, use one of the following:
\layout Enumerate
Use a
\family sans
Protected
\protected_separator
\bar under
B
\bar default
lank
\family default
after lowercase abbreviations (see section
\begin_inset LatexCommand \ref{sec:protblank-lbreak-horline}
\end_inset
).
\layout Enumerate
Use an
\family sans
End
\protected_separator
of
\protected_separator
sentence
\protected_separator
period
\family default
found under the
\family sans
Insert\SpecialChar \menuseparator
Special
\protected_separator
Character
\family default
menu to force the use of inter-sentence spacing.
This function is also bound to
\family sans
C-period
\family default
for easy access.
\layout Standard
With the corrections, our earlier examples look like this:
\layout Itemize
e.
\protected_separator
g.
\protected_separator
this is too much space!
\layout Itemize
This is I
\latex latex
\SpecialChar \@.
\latex default
It's okay.
\layout Standard
Some languages don't use extra spacing between sentences.
If your language is such a language, you don't need to worry about all
of this.
For those that do need to bother, there is help to catch those sneaky errors:
check out the
\family sans
Edit\SpecialChar \menuseparator
Check
\protected_separator
TeX
\family default
feature described in
\emph on
Extended Editing
\emph default
.
\layout Subsubsection
Quotes
\layout Standard
\begin_inset LatexCommand \label{sec:quotes}
\end_inset
LyX usually sets quotes correctly.
Specifically, it will use an opening quote at the beginning of quoted text,
and use a closing quote at the end.
For example,
\begin_inset Quotes eld
\end_inset
open close
\begin_inset Quotes erd
\end_inset
.
The keyboard character,
\family sans
"
\family default
, generates this automatically.
\layout Standard
You can change the behavior of the
\family sans
"
\family default
key using the
\family sans
Quotes
\family default
popup.
Choose
\family sans
\bar under
Q
\bar default
uotes...
\family default
from the
\family sans
\bar under
L
\bar default
ayout
\family default
menu.
Selecting the
\family sans
\bar under
D
\bar default
ouble
\family default
button makes the
\family sans
"
\family default
key produce the sequence:
\begin_inset Quotes eld
\end_inset
\begin_inset Quotes erd
\end_inset
.
The
\family sans
\bar under
S
\bar default
ingle
\family default
button, in contrast, makes the
\family sans
"
\family default
key produce:
\begin_inset Quotes els
\end_inset
'.
\layout Standard
You can also select quotes for different languages via the
\family sans
\bar under
T
\bar default
ype
\family default
option.
There are five choices:
\layout List
\labelwidthstring MMMMM
\family sans
\begin_inset Quotes eld
\end_inset
Text
\begin_inset Quotes erd
\end_inset
\family default
Use quotes like this
\begin_inset Quotes eld
\end_inset
double
\begin_inset Quotes erd
\end_inset
or
\begin_inset Quotes els
\end_inset
single
\begin_inset Quotes ers
\end_inset
\layout List
\labelwidthstring MMMMM
\family sans
\begin_inset Quotes gld
\end_inset
Text
\begin_inset Quotes grd
\end_inset
\family default
Use quotes like
\begin_inset Quotes gld
\end_inset
this
\begin_inset Quotes grd
\end_inset
or
\begin_inset Quotes gls
\end_inset
this
\begin_inset Quotes grs
\end_inset
\layout List
\labelwidthstring MMMMM
\family sans
\begin_inset Quotes pld
\end_inset
Text
\begin_inset Quotes prd
\end_inset
\family default
Use quotes like
\begin_inset Quotes pld
\end_inset
this
\begin_inset Quotes prd
\end_inset
or
\begin_inset Quotes pls
\end_inset
this
\begin_inset Quotes prs
\end_inset
\layout List
\labelwidthstring MMMMM
\family sans
\begin_inset Quotes fld
\end_inset
Text
\begin_inset Quotes frd
\end_inset
\family default
Use quotes like
\begin_inset Quotes fld
\end_inset
this
\begin_inset Quotes frd
\end_inset
or
\begin_inset Quotes fls
\end_inset
this
\begin_inset Quotes frs
\end_inset
\layout List
\labelwidthstring MMMMM
\family sans
\begin_inset Quotes ald
\end_inset
Text
\begin_inset Quotes ard
\end_inset
\family default
Use quotes like
\begin_inset Quotes ald
\end_inset
this
\begin_inset Quotes ard
\end_inset
or
\begin_inset Quotes als
\end_inset
this
\begin_inset Quotes ars
\end_inset
\layout Standard
Again, this affects what character the
\family sans
"
\family default
key produces.
\layout Standard
On the other hand, if you want to produce a bona-fide quote character, type
\family sans
C-q
\family default
.
This produces:
\family typewriter
"
\family default
.
\layout Subsection
Ligatures
\layout Standard
\begin_inset LatexCommand \label{sec:ligatures}
\end_inset
It is standard typesetting practice to group certain letters together and
print them as single characters.
These groups are known as
\emph on
ligatures
\emph default
.
Since LaTeX knows about ligatures, your LyX documents will contain them,
too.
Here are the possible ligatures:
\layout Itemize
ff
\layout Itemize
fi
\layout Itemize
fl
\layout Itemize
ffi
\layout Itemize
ffl
\layout Standard
Once in a while, though, you don't want a ligature in a word.
While a ligature may be okay in the word,
\begin_inset Quotes eld
\end_inset
graffiti,
\begin_inset Quotes erd
\end_inset
it looks really weird in compound words, such as
\begin_inset Quotes eld
\end_inset
cufflink
\begin_inset Quotes erd
\end_inset
or the German
\begin_inset Quotes eld
\end_inset
Dorffest.
\begin_inset Quotes erd
\end_inset
To break a ligature, use the LaTeX command
\begin_inset Quotes eld
\end_inset
\family typewriter
\backslash
/
\family default
\begin_inset Quotes erd
\end_inset
between the letters.
[Use
\family sans
M-c
\protected_separator
t
\family default
or the toolbar button labelled TeX to mark text as LaTeX commands.
See sec.
\begin_inset LatexCommand \ref{sec:latexcodes}
\end_inset
.] This changes
\begin_inset Quotes eld
\end_inset
cufflinks
\begin_inset Quotes erd
\end_inset
to
\begin_inset Quotes eld
\end_inset
cuff
\latex latex
\backslash
/
\latex default
links
\begin_inset Quotes erd
\end_inset
and
\begin_inset Quotes eld
\end_inset
Dorffest
\begin_inset Quotes erd
\end_inset
to
\begin_inset Quotes eld
\end_inset
Dorf
\latex latex
\backslash
/
\latex default
fest
\begin_inset Quotes erd
\end_inset
.
\layout Subsection
Widows and Orphans
\layout Standard
\begin_inset LatexCommand \label{sec:widows}
\end_inset
In the early days of word processors, page breaks went wherever the page
happened to end.
There was no regard for what was actually going on in the text.
You may remember once printing out a document, only to find the heading
for a new section printed at the very bottom of the page, the first line
of a new paragraph all alone at the bottom of a page, or the last line
of a paragraph at the top of a new page.
These dangly-bits of text became known as
\emph on
widows
\emph default
and
\emph on
orphans
\emph default
.
\layout Standard
Clearly, LyX can avoid breaking pages after a section heading.
That's part of the advantage of paragraph environments.
But what about widows and orphans, where the page breaks leave one line
of a paragraph all alone at the top or bottom of a page? There are rules
built into LaTeX governing page breaks, and some of those rules are there
to specifically prevent widows and orphans.
This is the advantage LyX has in using LaTeX as its backend.
\layout Standard
There's no way we can go into how TeX and LaTeX decide to break a page,
or how you can tweak that behavior.
Some LaTeX books listed in the bibliography [such as
\protected_separator
\begin_inset LatexCommand \cite{latexcompanion}
\end_inset
or
\protected_separator
\begin_inset LatexCommand \cite{latexguide}
\end_inset
] may have more information.
You will almost never need to worry about this, however.
\layout Chapter
Floats: Tables, Figures, Footnotes and Margin Notes
\layout Section
Footnotes
\layout Standard
Unlike other typesetting programs, LyX uses
\begin_inset Quotes eld
\end_inset
foldable
\begin_inset Quotes erd
\end_inset
floats instead of displaying its footnotes at the bottom of the screen
or somewhere else in your text.
When you insert a footnote via, what else,
\family sans
\series medium
\bar under
I
\bar no
nsert
\series default
\bar under
\SpecialChar \menuseparator
\series medium
F
\bar no
ootnote,
\family roman
you'll first see a red box with a label
\begin_inset Quotes eld
\end_inset
foot
\begin_inset Quotes erd
\end_inset
appearing within your text.
This box is LyX's representation of your footnote.
You can enter your text into this box.
If you click the
\begin_inset Quotes eld
\end_inset
\family sans
foot
\family roman
\begin_inset Quotes erd
\end_inset
--label, the box will
\begin_inset Quotes eld
\end_inset
fold
\begin_inset Quotes erd
\end_inset
.
You can access it at a later time by clicking on the word
\begin_inset Quotes eld
\end_inset
\family sans
foot
\family roman
\begin_inset Quotes erd
\end_inset
written as a superscript in red in the text, thereby
\begin_inset Quotes eld
\end_inset
unfolding
\begin_inset Quotes erd
\end_inset
the footnote.
\begin_float footnote
\layout Standard
To close this footnote, click on the red box on the left side.
\end_float
You will not see any numbers within LyX.
You don't need to worry about those, anyhow, because LyX does the numbering
for you, as well as putting the footnote at the bottom of the correct page,
when it processes your file.
If you want to turn already existing text into a footnote, simply mark
it and click on the footnote button (a picture of text with an arrow pointing
to stuff in the bottom margin).
\layout Standard
What LyX cannot do, yet, is take care of special needs like setting the
footnote--numbering back to 1 after each section in the
\begin_inset Quotes eld
\end_inset
\family typewriter
article
\family default
\begin_inset Quotes erd
\end_inset
\family roman
document class or changing the counter--style.
You'll need to insert LaTeX commands like th
\family default
os
\family roman
e
\family default
described in the
\emph on
Tricks for Footnotes and Marginpars
\emph default
section of
\begin_inset Quotes eld
\end_inset
\emph on
Extended Editing
\emph default
.
\begin_inset Quotes erd
\end_inset
\layout Description
NOTE: A float in LaTeX and LyX isn't a simple paragraph as with usual word
processors.
It is a complex text structure that may contain everything except floats.
That means you can use all the layouts inside a float, even figures and
tables.
You may not need this too often, but if you do occasionally need it, it's
a neat feature.
\newline
If you're intending to use the spellchecker, remember that floats
\emph on
must be open
\emph default
to be checked.
In order to open or close
\emph on
all
\emph default
footnotes (and margin notes), choose
\family sans
\bar under
E
\bar default
dit\SpecialChar \menuseparator
Flo
\bar under
a
\bar default
ts
\protected_separator
&
\protected_separator
Insets\SpecialChar \menuseparator
Open
\protected_separator
\bar under
A
\bar default
ll
\protected_separator
Footnotes/Margin
\protected_separator
Notes
\family default
.
\layout Section
Margin Notes
\layout Standard
Margin notes look and behave just like footnotes in LyX.
When you insert a margin note via
\family sans
\series medium
\bar under
I
\bar no
nsert\SpecialChar \menuseparator
\bar under
M
\bar no
argin
\series default
\bar default
\protected_separator
N
\series medium
\bar no
ote
\family default
\series default
\bar default
or the toolbar button (which contains a picture of text in a margin with
an arrow pointing to it), you'll see
\family roman
\series medium
a red box with a label
\begin_inset Quotes eld
\end_inset
margin
\begin_inset Quotes erd
\end_inset
appearing within your text.
\begin_float margin
\layout Standard
This is a margin note.
\end_float
This box is LyX's representation of your margin note.
You can enter your text into this box.
If you click the
\begin_inset Quotes eld
\end_inset
margin
\begin_inset Quotes erd
\end_inset
--label, the box will
\begin_inset Quotes eld
\end_inset
fold
\begin_inset Quotes erd
\end_inset
, making an exclamation mark appear beside the line in which you inserted
the margin note.
You can access it at a later time by clicking on
\family roman
the word
\family sans
\begin_inset Quotes eld
\end_inset
margin
\begin_inset Quotes erd
\end_inset
,
\family roman
written as a superscript in red in the text, thereby
\begin_inset Quotes eld
\end_inset
unfolding
\begin_inset Quotes erd
\end_inset
the margin note.
\layout Standard
As a default, LyX uses 1,9 cm (0.75 inches) as the margin width to allow
room for margin notes.
This might not be what you're looking for, but as with footnotes, LyX cannot
yet do everything LaTeX has to offer.
You might want to consult your LaTeX handbook for additional commands.
\layout Section
Figures and Imported Graphics
\layout Standard
\begin_inset LatexCommand \label{sec:figures}
\end_inset
No document preparation system is complete without the ability to import
graphics from other utilities into the document.
In LyX, these are referred to as ``figures'' whether they are actually
figures in the traditional sense or simply some kind of imported image.
Encapsulated PostScript figures are handled very well by LyX, which uses
\family typewriter
ghostview
\family default
to generate an on-screen image for the LyX window, and the
\family typewriter
\backslash
epsfig
\family default
LaTeX command to insert the figure in the final document.
\layout Standard
Note that figures referred to here are uncaptioned and sit wherever in the
document you place them.
If you need one of these features, see sec.
\protected_separator
\begin_inset LatexCommand \ref{sec:figurefloats}
\end_inset
below.
\layout Standard
Placing a figure in your document is done in two stages; first you tell
LyX that you want a figure, then you open the blank figure and tell LyX
the details about your figure.
To place the figure, you click on the second right-most icon on the toolbar,
or select
\family sans
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
Fi
\bar under
g
\bar default
ure...
\family default
from the menu.
\layout Standard
You will be presented with a popup which contains two options:
\layout List
\labelwidthstring 00.00.0000
\family sans
\bar under
E
\bar default
ncapsulated
\protected_separator
Postscript
\family default
: This is for inserting normal PostScript figures.
The figures will sit between lines on their own, such as here:
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center
\begin_inset Figure size 367 158
file mobius.eps
flags 5
\end_inset
\layout List
\labelwidthstring 00.00.0000
\family sans
\bar under
I
\bar default
nlined
\protected_separator
EPS
\family default
: This is for PostScript figures as well, but these figures behave differently;
they are inserted in the text stream like
\begin_inset Figure size 72 14
file mobius.eps
width 2 1
height 2 0.2
flags 5
\end_inset
this tiny fellow.
\layout Standard
This popup used to have another option to insert a
\family sans
\bar under
L
\bar default
aTeX
\protected_separator
or
\protected_separator
TeX
\family default
figure.
This option is not present anymore, since you can directly insert any LaTeX
file with the
\family sans
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
Include
\protected_separator
File
\family default
command.
\layout Standard
The second stage of manipulating a figure is done by clicking the left mouse
button on the figure.
A dialog box will appear, which allows you to enter the filename and various
other parameters.
The changes you make will not be applied to the figure until you hit
\family sans
\bar under
A
\bar default
pply.
\layout Standard
This dialog has numerous parameters, so I'll step though each one in order.
\layout List
\labelwidthstring 00.00.0000
\family sans
\bar under
E
\bar default
PS
\protected_separator
File
\family default
: This is the filename, and is fairly self-explanatory.
The
\family sans
\bar under
B
\bar default
rowse...
\family default
button lets you wander through the file hierarchy in a graphical manner
and select a file with your mouse.
\layout List
\labelwidthstring 00.00.0000
\family sans
Width
\family default
: This section lets you manipulate the width of the image.
\begin_inset Quotes eld
\end_inset
\family sans
Default
\family default
\begin_inset Quotes erd
\end_inset
indicates that the image size will be whatever the
\begin_inset Quotes eld
\end_inset
\family sans
EPS
\protected_separator
file
\family default
\begin_inset Quotes erd
\end_inset
says it should be.
However, you can alter the size by checking one of
\begin_inset Quotes eld
\end_inset
\family sans
cm
\family default
\begin_inset Quotes erd
\end_inset
,
\begin_inset Quotes eld
\end_inset
\family sans
inches
\family default
\begin_inset Quotes erd
\end_inset
,
\begin_inset Quotes eld
\end_inset
\family sans
%
\protected_separator
of
\protected_separator
Page
\family default
\begin_inset Quotes erd
\end_inset
, or
\begin_inset Quotes eld
\end_inset
\family sans
%
\protected_separator
of
\protected_separator
Column
\family default
\begin_inset Quotes erd
\end_inset
' and entering a number in the box to the right of those checkboxes.
\layout List
\labelwidthstring 00.00.0000
\family sans
Height
\family default
: This is similar to
\begin_inset Quotes eld
\end_inset
\family sans
Width
\family default
\begin_inset Quotes erd
\end_inset
above.
Note that if only
\emph on
one
\emph default
of either the width or the height is specified and the other is set to
\begin_inset Quotes eld
\end_inset
\family sans
Default
\family default
\begin_inset Quotes erd
\end_inset
then the ratio of width to height is will be kept the same as the original
image.
\layout List
\labelwidthstring 00.00.0000
\family sans
Display
\family default
: You can tweak the way the figure is displayed in LyX (this does not effect
how the image will appear in the printed document, only on your screen).
You may find that selecting
\family sans
\bar under
D
\bar default
o
\protected_separator
not
\protected_separator
display
\protected_separator
this
\protected_separator
figure
\family default
will speed up the performance of LyX.
LyX will just put an empty box in the document.
\layout List
\labelwidthstring 00.00.0000
\family sans
Options
\family default
: This box contains two options which didn't fit anywhere else.
\family sans
Display
\protected_separator
\bar under
F
\bar default
rame
\family default
places a frame around the figure in the LyX window (but has no effect in
the final document).
The
\family sans
Do
\protected_separator
\bar under
T
\bar default
ranslations
\family default
checkbox does something wonderful, I am sure.
I have no idea what it is though
\emph on
[Help me out here - what's it do? - PR; Ed\SpecialChar \@.
Note-I'm not sure myself -jpw]
\layout List
\labelwidthstring 00.00.0000
\family sans
Full
\protected_separator
Screen
\protected_separator
Preview
\family default
: This option simply calls up ghostview to view the PostScript figure in
a window by itself.
This can be useful for checking the figure outside of LyX.
\layout Subsection
Figure Floats
\layout Subsubsection
Using Figure Floats
\layout Standard
\begin_inset LatexCommand \label{sec:figurefloats}
\end_inset
The problem with inserting figures straight into your text is that they
might make the pagination of your document extremely awkward.
To suit the LyX mentality of automating such processes, you might find
it preferable to use
\family sans
Figu
\bar under
r
\bar default
e
\protected_separator
Floats
\family default
, which LyX (actually, LaTeX) is free to move about your document as it
deems necessary for a good fit.
In return, LyX automates the listing of these figures and allows you to
place a caption on them, using the
\family sans
Caption
\family default
environment explained in sec.
\protected_separator
\begin_inset LatexCommand \ref{sec:captionlayout}
\end_inset
.
\layout Standard
To place a
\family sans
Figu
\bar under
r
\bar default
e
\protected_separator
Float
\family default
simply select
\family sans
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
Floats\SpecialChar \menuseparator
Figu
\bar under
r
\bar default
e
\protected_separator
Float
\family default
from the menu bar.
You will get a float without a figure in it; use the toolbar icon described
above to insert the actual figure.
In two-column documents, you can select
\family sans
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
Floats\SpecialChar \menuseparator
Wide
\protected_separator
Figu
\bar under
r
\bar default
e
\protected_separator
Float
\family default
to get a float that spans the width of the page.
\begin_float fig
\layout Caption
\begin_inset LatexCommand \label{fig:escher}
\end_inset
M.C.
Escher on acid.
\layout Standard
\align center
\begin_inset Figure size 198 203
file escher-lsd.eps
flags 6
\end_inset
\end_float
\begin_float fig
\layout Standard
\align center
\begin_inset Figure size 434 332
file platypus.eps
flags 6
\end_inset
\layout Caption
\begin_inset LatexCommand \label{fig:kill-plat}
\end_inset
A severely distorted platypus in a float.
\end_float
\layout Standard
It seems simple, but there is subtlety involved in the placement of the
caption.
If you prefer your caption to appear below the figure, then insert the
\family sans
Fi
\bar under
g
\bar default
ure
\family default
when the cursor is at the very start of the caption (or you can delete
the caption and recreate it by selecting the
\family sans
Caption
\family default
environment after the figure has been inserted).
This is what we did for figure
\begin_inset LatexCommand \ref{fig:kill-plat}
\end_inset
.
If the cursor is at the end of the caption when you insert the
\family sans
Fi
\bar under
g
\bar default
ure
\family default
then it will be inserted after the caption, as was the case for
\begin_inset LatexCommand \ref{fig:escher}
\end_inset
.
It is always best to use one
\family sans
Figure
\family default
per
\family sans
Float
\family default
.
This allows LyX [actually LaTeX] to best position each figure.
\layout Standard
This figure also shows how we place a label and create a cross-reference
to it; as you would expect from reading section
\begin_inset LatexCommand \ref{sec:crossref}
\end_inset
you can simply insert a
\family sans
\bar under
L
\bar default
abel
\family default
in the caption and refer to it using a
\family sans
\bar under
C
\bar default
ross-Reference
\family default
as normal.
It is especially important to use these with figure floats, rather than
using vague references to
\begin_inset Quotes eld
\end_inset
the above figure,
\begin_inset Quotes erd
\end_inset
as LaTeX will reposition your floats for you in the final document; it
might not be
\begin_inset Quotes eld
\end_inset
above
\begin_inset Quotes erd
\end_inset
at all.
If it is not possible to fit the floats neatly on the same page as the
text which refers to it, the figures will be placed on a separate page
by themselves.
Rest assured that the overall effect is usually quite nice.
\layout Standard
There are two more features of the
\family sans
Figu
\bar under
r
\bar default
e
\protected_separator
Float
\family default
and
\family sans
Wide
\protected_separator
Figure
\protected_separator
Float
\family default
; the figure is automatically included in a
\family sans
List
\protected_separator
of
\protected_separator
\bar under
F
\bar default
igures
\family default
(as described in sec.
\protected_separator
\begin_inset LatexCommand \ref{sec:ListsOf}
\end_inset
) should you choose to include one in your document.
The second feature is that (like all floats) it can be closed or opened,
which lets you concentrate on your text and hide the figures.
\layout Subsubsection
Float Placement
\layout Standard
\begin_inset LatexCommand \label{sec:float-locn}
\end_inset
Now, the whole idea behind
\family sans
Figure
\protected_separator
Floats
\family default
[as well as
\family sans
Table
\protected_separator
Floats
\family default
, which we introduce later] is to allow LyX to place a figure [or table]
on a page in a consistent, sensible fashion.
This feature would be useless if you couldn't control that
\begin_inset Quotes eld
\end_inset
sensible fashion
\begin_inset Quotes erd
\end_inset
in some way.
LyX has four different locations where it will try to put a figure:
\layout Description
Here: LyX tries to put the
\family sans
Float
\family default
at the same point in the text where you put it.
\begin_deeper
\layout Standard
If there isn't enough room, LyX tries one of the other three location types.
\end_deeper
\layout Description
Top: LyX tries to put the
\family sans
Float
\family default
at the top of the current page.
If the figure won't fit on the current page, it goes to the next page.
\layout Description
Bottom: LyX tries to put the
\family sans
Float
\family default
at the bottom of the current page.
If there isn't room, it goes to the next page.
\layout Description
Page: LyX tries to put the
\family sans
Float
\family default
on a page of its own.
\layout Standard
You can specify this using the
\family sans
Document
\protected_separator
Layout
\family default
popup [opened using
\family sans
\bar under
L
\bar default
ayout\SpecialChar \menuseparator
\bar under
D
\bar default
ocument
\family default
].
There is a box called
\family sans
Flo
\bar under
a
\bar default
t
\protected_separator
Placement
\family default
which controls the global location of
\family sans
Float
\family default
s (you currently cannot control the location on a per float basis).
\layout Standard
Now, there is some subtlety to how this all works.
You can place any combination of four letters in the
\family sans
Flo
\bar under
a
\bar default
t
\protected_separator
Placement
\family default
box, in any order:
\layout Itemize
\family sans
h
\family default
for
\emph on
here
\layout Itemize
\family sans
t
\family default
for
\emph on
top
\layout Itemize
\family sans
b
\family default
for
\emph on
bottom
\layout Itemize
\family sans
p
\family default
for
\emph on
page
\layout Standard
The order specifies what location LyX should try first.
If that one fails, it tries the next one, and so on, though
\begin_inset Quotes eld
\end_inset
\family sans
h
\family default
\begin_inset Quotes erd
\end_inset
will always take precedence if it appears in the list.
The default placement list is
\begin_inset Quotes eld
\end_inset
\family sans
tbp
\family default
\begin_inset Quotes erd
\end_inset
: try the top of a text page first, then the bottom of a text page, then
on a page by itself.
If you want LyX to try
\begin_inset Quotes eld
\end_inset
really hard
\begin_inset Quotes erd
\end_inset
to place the figure where you command it, precede the list with an exclamation
point; for example
\begin_inset Quotes eld
\end_inset
\family sans
!htbp
\family default
\begin_inset Quotes erd
\end_inset
.
Here are some example entries and what they do:
\layout Enumerate
\family sans
hbp
\begin_deeper
\layout Standard
Try putting the figure/table at its actual position in the text.
If that doesn't work, put it on the bottom of the page.
If that fails, put it on a separate page.
\end_deeper
\layout Enumerate
\family sans
!hbp
\begin_deeper
\layout Standard
Try really hard to put the figure/table at its actual position in the text.
Then the bottom of the page, then on a separate page \SpecialChar \ldots{}
\end_deeper
\layout Enumerate
\family sans
tp
\begin_deeper
\layout Standard
Put the figure/table at the top of each page.
If it's too long, put it on a separate page.
\end_deeper
\layout Enumerate
\family sans
p
\begin_deeper
\layout Standard
Always put figures and tables on their own page.
\end_deeper
\layout Standard
One last note:
\family sans
Flo
\bar under
a
\bar default
t
\protected_separator
Placement
\family default
controls the position of
\emph on
both
\emph default
figure and table floats.
\layout Subsection
\family typewriter
XFig
\family default
and LyX
\layout Standard
One obvious question is
\begin_inset Quotes eld
\end_inset
how would I create the figures?
\begin_inset Quotes erd
\end_inset
Fortunately, the answer is included in most Linux and/or LaTeX distributions.
\family typewriter
XFig
\family default
is a powerful and highly recommended drawing tool.
If you want to include figures that you have created with
\family typewriter
XFig
\family default
there are several ways.
We recommend the following:
\layout Enumerate
Export the figure as Encapsulated PostScript.
This could be very easy included into LyX as described in the previous
sections.
The great advantage of this way is, that you have the full power of PostScript
available.
That means Bezier curves, colors, all line thicknesses and many more.
If you have inserted text into your fig-document this will be printed with
PostScript fonts, which is OK\SpecialChar \@.
The figure can be manipulated like any other
EPS figure, as described above.
\begin_deeper
\layout Standard
The only disadvantage is that you cannot create formulas as PostScript
text except by hand.
If you also need formulas or simple exponents or indices in your figure,
the next way is recommended.
\end_deeper
\layout Enumerate
Export the figure as LaTeX.
This is just as easy include into LyX, with the advantage that you may
use all LaTeX commands within the text inside XFig.
Therefore you have to set the
\emph on
special flag
\emph default
for text in XFig.
This is automatically if you invoke XFig with
\family typewriter
xfig
\protected_separator
-specialtext
\family default
.
If this is done and you have also chosen a LaTeX font you may simply write
\begin_inset Quotes eld
\end_inset
$H_2$
\begin_inset Quotes erd
\end_inset
in
\family typewriter
XFig\SpecialChar \@.
\family default
If you export this figure as LaTeX and include it in LyX with
\family sans
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
In
\bar under
c
\bar default
lude
\protected_separator
File
\family default
(see description in
\emph on
Extended Features
\emph default
) this text will appear as
\begin_inset Formula \( H_{2} \)
\end_inset
.
\begin_deeper
\layout Standard
The disadvantage of this way is that the graphical power of LaTeX isn't
as strong as PostScript\SpecialChar \@.
You cannot use all thicknesses of lines and, more
annoyingly, not all slopes.
This is why we recommend the third way for more complex figures.
\end_deeper
\layout Enumerate
Export the figure as LaTeX/PostScript combined.
Then
\family typewriter
XFig
\family default
[
\family typewriter
transfig
\family default
, really] will generate two files:
\begin_deeper
\layout Enumerate
the PostScript part
\family typewriter
foo.pstex
\family default
, that contains all painting.
\layout Enumerate
the LaTeX part
\family typewriter
foo.pstex_t
\family default
, that contains all text and a link to the PostScript part.
\end_deeper
\layout Standard
Then you just have to include the LaTeX part as described above.
\emph on
\latex latex
\emph default
\latex default
This will automatically include the PostScript part, too.
\begin_float footnote
\layout Standard
If you get an error like
\begin_inset Quotes eld
\end_inset
unknown graphics extension pstex
\begin_inset Quotes erd
\end_inset
you have to declare this graphic extensions.
I think this is a transfig bug that occurs with LaTeX2e.
Simply add a line like
\layout Standard
\family typewriter
\backslash
@namedef{Gin@rule@ps_tex}#1{{eps}{ps_tex}{#1}}
\layout Standard
in the file
\family typewriter
/usr/lib/texmf/tex/latex/graphics/dvips.def
\family default
.
Then add
\family typewriter
pstex
\family default
to the extension:
\layout Standard
\backslash
def
\backslash
Gin@extensions{eps, ps, pstex, eps.gz, ps.gz, eps=2EZ}
\layout Standard
This should fix the whole thing.
Alternatively you may export the postscript part as
\family typewriter
foo.eps
\family default
and change the LaTeX part
\family typewriter
foo.pstex_t
\family default
manually.
But this is annoying.
\end_float
This way you have the full PostScript and LaTeX power combined except
for the possibility to scale the figure after creating.
So if you want scalable pictures the PostScript format is your only choice.
Another little advantage of letting LaTeX typeset the font is that the
same font will appear in your figures as in your text, which looks a little
nicer.
\layout Section
Tables
\layout Standard
\begin_inset LatexCommand \label{sec:tables}
\end_inset
LyX now has the capability of creating and editing WYSIWYM tables.
LaTeX can do many more things with tables than LyX is currently capable
of, so you might want to look at a good LaTeX book if the table feature
described here should turn out to be inadequate to fill your needs.
\layout Standard
You can insert a table using either the table toolbar button or
\family sans
\bar under
E
\bar default
dit\SpecialChar \menuseparator
Ta
\bar under
b
\bar default
le
\family default
\SpecialChar \menuseparator
\family sans
\bar under
I
\bar default
nsert
\protected_separator
Table
\family default
.
A popup will appear, asking you for the number of rows and columns.
The default table has lines at the top and to the left of every cell, a
line to the right of the rightmost column and a line at the bottom of the
lowest row, forming a box around the table.
Additionally, the topmost row also has a line at the bottom, which causes
this row to appear separated from the rest of the table.
Here's an example:
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable
multicol5
4 4 0 0 -1 -1 -1 -1
1 1 0 0
1 0 0 0
1 0 0 0
1 1 0 0
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
1 8 1 0 0 0 0 "" ""
2 8 1 0 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
\newline
12
\newline
45
\newline
98
\newline
A
\newline
\newline
\newline
\newline
B
\newline
\newline
multi
\newline
C
\newline
\newline
\newline
\layout Subsection
The Table
\protected_separator
Layout pop-up
\layout Standard
You can alter a table by clicking on it with the right mouse button, which
pops up a window of options.
Among these options are:
\layout Itemize
Adding/removing border lines from a row or column.
If you remove the top line from one of the rows, you'll get a dotted line
in LyX, but no line will appear in the printout.
If you set the bottom line of one row and the top line of the row below,
then the rows are separated by a small space, as you can see with the top
row in the example above.
You can do the same vertically if you set the right line of a column and
the left line of the column to the right.
\layout Itemize
Text alignment in a column
\layout Itemize
Appending rows and columns
\layout Itemize
Deleting rows, columns, or the entire table
\layout Itemize
Multicolumn
\layout Itemize
Setting a fixed width for a column
\layout Itemize
Longtable options - this is useful if your table is higher than the paper.
Then the table is split on the bottom of the page and continued on the
next one
\layout Itemize
Rotate the whole table or a single cell sideways, by 90 degrees
\layout Standard
You can also use the menu to perform these options.
Try
\family sans
Edit\SpecialChar \menuseparator
Table
\family default
when the cursor is inside a table.
\layout Standard
Most of these options also work on selections.
This means that if you select more cells, columns or rows (you always have
to select cells, but it depends on the action, how these selected cells
are interpreted) the action is done on all of your selection.
\layout Standard
When you append a row, it is added
\emph on
below
\emph default
the row containing the cursor.
Similarly, columns are appended to the
\emph on
right
\emph default
of the cursor.
This makes it difficult to add columns on the left edge of a table without
a lot of cutting and pasting.
Deletion is always performed on the row or column containing the cursor.
\layout Standard
Multicolumn merges two adjacent cells on a given row.
For example, in the above table, row
\begin_inset Quotes eld
\end_inset
B
\begin_inset Quotes erd
\end_inset
has had multicolumn applied to the columns labelled
\begin_inset Quotes eld
\end_inset
45
\begin_inset Quotes erd
\end_inset
and
\begin_inset Quotes eld
\end_inset
98.
\begin_inset Quotes erd
\end_inset
To use it, you must first select the cells, then choose
\family sans
Multicolumn
\family default
from the menu.
\layout Standard
You can also use
\family sans
Multicolumn
\family default
if you need to have a special handling for a single table cell, regarding
then top and bottom border-lines and the text alignment.
Here an example of this special handling of a cell:
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable
multicol5
5 3 0 0 -1 -1 -1 -1
1 1 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 1 0 0
2 1 1 "" ""
4 1 0 "" ""
4 1 1 "" ""
1 8 1 1 0 0 0 "" ""
1 8 1 1 0 0 0 "" ""
1 8 1 1 0 0 0 "" ""
1 2 1 0 0 0 0 "" ""
0 4 1 0 0 0 0 "" ""
0 4 1 0 0 0 0 "" ""
1 2 0 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
\series bold
*
\series default
\newline
\series bold
x
\series default
\newline
\series bold
y
\series default
\newline
\series bold
point a & b
\series default
\newline
103
\newline
9
\newline
\series bold
point b & a
\series default
\newline
599
\newline
340
\newline
\series bold
point abc
\series default
\newline
1009
\newline
52
\newline
\series bold
point abcd
\series default
\newline
96
\newline
11
\layout Standard
You see here that the header line cells are aligned to the center, were
as the left column is aligned to the left and the other columns are aligned
to the right.
Also the bottom and top line of two cells have been removed.
\layout Standard
If you want your column to have a fixed width, then you can insert a width
in the
\family sans
Width
\family default
\emph on
\emph default
input-field of the
\family sans
Table
\protected_separator
Layout
\family default
popup.
\layout Standard
If your table becomes too large to fit on a portrait document layout, you
can select the
\family sans
Rotate
\protected_separator
90
\family default
button, and the table will appear sideways (this means landscape in a portrait
document style).
You might also like to rotate single table cells for having more horizontal
space.
Look at the following example, which demonstrates what you may need this
feature for.
\layout Standard
\emph on
Notice:
\emph default
This
\family sans
Rotate
\protected_separator
90
\family default
option will
\emph on
not
\emph default
display on screen, and works
\emph on
only
\emph default
for PostScript output.
So, if you want to preview them, use
\family sans
\bar under
V
\bar default
iew
\protected_separator
PostScript
\family default
, as
\family sans
View
\protected_separator
\bar under
d
\bar default
vi
\family default
will not work.
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable
multicol5
6 12 0 0 -1 -1 -1 -1
1 1 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 1 0 0
1 1 0 0
2 1 1 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 1 "" ""
4 1 1 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 1 0 "" ""
0 8 1 0 0 1 0 "" ""
0 8 1 0 0 1 0 "" ""
0 8 1 0 0 1 0 "" ""
0 8 1 0 0 1 0 "" ""
0 8 1 0 0 1 0 "" ""
0 8 1 0 0 1 0 "" ""
0 8 1 0 0 1 0 "" ""
0 8 1 0 0 1 0 "" ""
0 8 1 0 0 1 0 "" ""
0 8 1 0 0 0 0 "" ""
0 2 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 4 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
1 8 1 1 0 0 0 "" ""
2 8 1 0 0 0 0 "" ""
2 8 1 0 0 0 0 "" ""
2 8 1 0 0 0 0 "" ""
2 8 1 0 0 0 0 "" ""
2 8 1 0 0 0 0 "" ""
2 8 1 0 0 0 0 "" ""
2 8 1 0 0 0 0 "" ""
2 8 1 0 0 0 0 "" ""
2 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
Description
\newline
Flag 1
\newline
Flag 2
\newline
Flag 3
\newline
Flag 4
\newline
Flag 5
\newline
Flag 6
\newline
Flag 7
\newline
Flag 8
\newline
Flag 9
\newline
Flag 10
\protected_separator
\newline
Total
\newline
Desc.
\protected_separator
1
\newline
*
\newline
\newline
*
\newline
*
\newline
\newline
*
\newline
\newline
*
\newline
*
\newline
*
\newline
7
\newline
Desc.
\protected_separator
2
\newline
\newline
*
\newline
*
\newline
*
\newline
*
\newline
*
\newline
*
\newline
*
\newline
*
\newline
*
\newline
9
\newline
Desc.
\protected_separator
3
\newline
*
\newline
*
\newline
*
\newline
\newline
*
\newline
*
\newline
*
\newline
*
\newline
\newline
*
\newline
8
\newline
Desc.
\protected_separator
4
\newline
*
\newline
\newline
*
\newline
*
\newline
\newline
\newline
*
\newline
*
\newline
*
\newline
\newline
6
\newline
Total
\newline
\newline
30
\layout Standard
As you can see in the above example, the text in the header-line (Flag 1\SpecialChar \ldots{}
Flag
10) would not fit inside the paper width if they weren't rotated.
\layout Subsection
What can be placed inside a table?
\layout Standard
Many objects can be placed inside a table cell.
Any single line of text, a math inset (not a displayed or multilined equation,
though), or a figure can be in a cell, in fact, all three kinds of objects
can be placed in the same cell.
Font sizes and shapes can be altered, and the table will adjust to display
them properly.
However, you can't put a table inside a cell of another table, nor can
you put a special environment in a cell (like
\family sans
Section*
\family default
, etc.), since LyX then tries to put the whole table in that environment,
treating it like a paragraph.
The results of that will be unpredictable.
\layout Subsection
Cut & Paste & Tables
\layout Standard
Cutting and pasting between tables works reasonably well.
You can cut and paste even more than one row.
Selection with the mouse or with
\family sans
Shift
\family default
plus the arrow-keys works as usual.
The values in the second table below were cut and pasted from the first,
using the mouse to select and paste.
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable
multicol5
3 3 0 0 -1 -1 -1 -1
1 1 0 0
0 0 0 0
1 1 0 0
8 1 0 "" ""
8 1 0 "" ""
8 1 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
1
\newline
2
\newline
3
\newline
4
\newline
5
\newline
6
\newline
7
\newline
8
\newline
9
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable
multicol5
4 3 0 0 -1 -1 -1 -1
1 1 0 0
0 0 0 0
1 0 0 0
1 1 0 0
8 1 0 "" ""
8 1 0 "" ""
8 1 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
1
\newline
2
\newline
3
\newline
4
\newline
5
\newline
6
\newline
7
\newline
\newline
\newline
\newline
\newline
\layout Standard
Note that the cutting and pasting may give undesirable results unless the
target table has the same number of columns as the source table.
\layout Standard
To be able to copy/cut and paste a
\emph on
whole
\emph default
table you need a little trick.
There has to be a paragraph
\emph on
before
\emph default
and
\emph on
after
\emph default
the table.
This means that if the table is the first and/or last entry in your document,
you have to create paragraphs around it! Now select the whole table starting
from the last character of the paragraph before the table till before the
first character of the paragraph after the table.
Now you will cut/copy the entire table including the structure, and not
only the contents of the table.
\layout Subsection
Multiple lines in cells
\layout Standard
It is possible to have multi-line entries in tables, but not in a completely
WYSIWYM manner.
There are several methods that can be used to achieve this:
\layout Enumerate
Define a fixed length for the column in the
\family sans
Table
\protected_separator
Layout
\family default
popup.
After this, your text is automatically split into more lines and the cell
enlarged vertically, when the length of the text exceeds the given fixed
length.
\layout Enumerate
Remove the line between two (or more) adjacent rows.
This gives only an approximation of a truly multi-line cell.
\layout Enumerate
Define a fixed length for the column in the
\family sans
Table
\protected_separator
Layout
\family default
popup and press the
\family sans
Linebreaks
\family default
button.
After this you should be able to force linebreaks by inserting
\begin_inset Quotes erd
\end_inset
\backslash
\backslash
\begin_inset Quotes erd
\end_inset
marked as TeX, but this shouldn't be needed as selecting
\family sans
Linebreaks
\family default
means that the linebreaks are WYSIWYG in the resulting document.
\begin_deeper
\layout Standard
Here is an example table:
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable
multicol5
10 3 0 0 -1 -1 -1 -1
1 1 0 0
0 0 0 0
0 1 0 0
0 0 0 0
1 1 0 0
0 1 1 0
0 1 0 0
0 1 1 0
0 1 1 0
0 1 1 0
8 1 0 "" ""
2 1 0 "3cm" ""
8 1 1 "" ""
0 8 1 1 0 0 0 "" ""
1 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 2 1 1 1 0 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 2 1 1 1 0 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 1 0 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 1 0 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 1 "" ""
0 8 1 1 0 0 0 "" ""
1
\newline
2
\newline
3
\newline
4
\newline
This is a multiline entry in a table.
\newline
5
\newline
6
\newline
This is longer now.
\newline
7
\newline
8
\newline
This is a multiline entry in a table.
This is longer now.
\newline
9
\latex latex
\newline
\latex default
10
\newline
This is a
\latex latex
\backslash
\backslash
\latex default
\emph on
multiline
\emph default
\latex latex
\backslash
\backslash
\latex default
entry in a table.
\newline
11
\newline
\newline
This should be the same as below.
\newline
\newline
12
\newline
This is a
\newline
13
\newline
\newline
\emph on
multiline
\emph default
\newline
\newline
\newline
entry in a table.
\newline
\newline
\newline
This should be the same as above.
\newline
\layout Standard
You can see that the multilined text will not appear that way within LyX,
but it will print that way.
If the lines are very long, you can hit
\family sans
C-Return
\family default
and you'll get a new row in the same cell where you can continue to write.
Be aware that the output will
\emph on
NOT
\emph default
respect this row breaks but will treat the whole text of the cell as if
inputed in one row.
\end_deeper
\layout Standard
A related concern is that text within a cell will not wrap to fit the page,
so if a line of text in a table is too long, the table will extend beyond
the right margin of the page.
Similarly, LyX's table inset will not split itself at the bottom of a page,
and so might extend below the bottom margin.
You have these options to resolve this problem:
\layout Enumerate
Split it into two tables, to correctly handle pagebreaks and margins.
\layout Enumerate
Push the
\family sans
Longtable
\family default
button in the
\family sans
Table
\protected_separator
Layout
\family default
popup.
This automatically splits the table over more pages, if it is too high.
After doing this, the list of
\family sans
Longtable
\family default
buttons activate themselves and you may now define:
\begin_deeper
\layout Enumerate
\family sans
FirstHead
\family default
: The current row and all rows above that don't have any special options
defined, are defined to be the header-lines of the first page of the multipage-
table.
\layout Enumerate
\family sans
Head
\family default
: The current row and all rows above that don't have any special options
defined, are defined to be the header-lines of all pages of the multipage-table
except for the first page if
\family sans
FirstHead
\family default
is defined.
\layout Enumerate
\family sans
Foot
\family default
: The current row and all rows above that don't have any special options
defined, are defined to be the footer-lines of all pages of the multipage-table
except for the last page if
\family sans
LastFoot
\family default
is defined.
\layout Enumerate
\family sans
LastFoot
\family default
: The current row and all rows above that don't have any special options
defined, are defined to be the footer-lines of the last page of the multipage-t
able.
\layout Enumerate
\family sans
NewPage
\family default
: This forces a pagebreak after the row where this flag is defined.
\layout Standard
If you define more flags in the same table row, you should be aware of the
fact that only the first flag is used in the defined table rows.
The others will the be defined as
\emph on
empty
\emph default
.
In this context, first means first in this order:
\family sans
Foot, LastFoot,
\family default
\family sans
Head,
\family default
\family sans
FirstHead
\family default
[
\emph on
Look at the longtable.lyx example file to see how this works -- jv
\emph default
].
\end_deeper
\layout Enumerate
Use the
\family sans
Width
\family default
entry in the
\family sans
Table
\protected_separator
Layout
\family default
popup to restrict the width of the table till it fits horizontally.
\layout Enumerate
A table can also be placed in a float, as described below, which will allow
TeX to place it as well as it can within the page.
\layout List
\labelwidthstring 00.00.0000
One
\protected_separator
last
\protected_separator
remark:
\family sans
Longtable
\family default
and
\family sans
Rotate
\protected_separator
90
\family default
use special LaTeX packages, so you should look into
\family sans
L
\bar under
a
\bar default
TeX
\protected_separator
configuration
\family default
in the
\family sans
\bar under
H
\bar default
elp
\family default
menu to see if your system supports these features.
\layout Subsection
Table Floats
\layout Standard
\begin_inset LatexCommand \label{sec:table float}
\end_inset
If you simply use the table button on the icon toolbar to create your table,
or the
\family sans
\shape up
\bar under
E
\bar default
dit
\shape default
\SpecialChar \menuseparator
\shape up
Ta
\bar under
b
\bar default
le
\shape default
\bar under
\SpecialChar \menuseparator
\shape up
I
\bar default
nsert
\protected_separator
Table
\family default
\shape default
menu item, the table will be positioned exactly where the cursor was located,
displayed on a separate line and centered.
Using a
\family sans
\shape up
Tabl
\bar under
e
\bar default
\protected_separator
Float
\family default
\shape default
or
\family sans
W
\bar under
i
\bar default
de
\protected_separator
Table
\protected_separator
Float
\family default
, from the
\family sans
\shape up
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
Floats
\family default
\shape default
menu, will enable LaTeX to place the table where it fits best, rather than
exactly where you insert it.
Float placement for table floats is similar to that for figure floats
\begin_inset LatexCommand \ref{sec:figurefloats}
\end_inset
, and is described in the section on float-placement for figures
\begin_inset LatexCommand \ref{sec:float-locn}
\end_inset
.
Table
\begin_inset LatexCommand \ref{table:a table float}
\end_inset
is an example of a table float, whose insertion point in LyX is at the
end of this sentence.
As with
\family sans
Figure
\protected_separator
Floats
\family default
, the difference between a
\family sans
Table
\protected_separator
Float
\family default
and a
\family sans
Wide
\protected_separator
Table
\protected_separator
Float
\family default
is that the wide version spans both columns in a two-column document.
\begin_float tab
\layout Caption
\begin_inset LatexCommand \label{table:a table float}
\end_inset
A table float.
\layout Standard
\align center \LyXTable
multicol5
3 3 0 0 -1 -1 -1 -1
1 1 0 0
1 0 0 0
1 1 0 0
8 1 0 "" ""
8 1 0 "" ""
8 1 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
1
\newline
2
\newline
3
\newline
Joe
\newline
Mary
\newline
Ted
\newline
\begin_inset Formula \( \int x^{2}dx \)
\end_inset
\newline
\begin_inset Formula \( \left[ \begin{array}{cc}
a & b\\
c & d
\end{array}\right] \)
\end_inset
\newline
\begin_inset Formula \( 1+1=2 \)
\end_inset
\end_float
\layout Subsubsection
Table Float Captions.
\layout Standard
When you open a table float the first thing you are prompted for is a caption.
To actually create the table, click on the table icon on the toolbar when
the cursor is in the float.
You can control whether the caption is above the table, or below.
If you insert a caption (which must be a single paragraph) immediately
after the word
\begin_inset Quotes eld
\end_inset
\series bold
Table:
\series default
\begin_inset Quotes erd
\end_inset
inside the float, and click on the table icon after the caption, the caption
will appear above the table, as in Table
\protected_separator
\begin_inset LatexCommand \ref{table: A table float}
\end_inset
.
If you first click on the icon to open the table popup, then write the
caption afterward, the caption will appear below the table, as in Table
\protected_separator
\begin_inset LatexCommand \ref{table:a table float with caption below}
\end_inset
.
\begin_float tab
\layout Standard
\align center \LyXTable
multicol5
3 3 0 0 -1 -1 -1 -1
1 1 0 0
1 0 0 0
1 1 0 0
8 1 0 "" ""
8 1 0 "" ""
8 1 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
1
\newline
2
\newline
3
\newline
4
\newline
5
\newline
6
\newline
7
\newline
8
\newline
9
\layout Caption
\begin_inset LatexCommand \label{table:a table float with caption below}
\end_inset
A second table float, with the caption below.
\end_float
You can also create a table float without a caption, by creating the table
as a displayed table (not within a float), highlighting the whole thing,
and using the
\family sans
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
Fl
\bar under
o
\bar default
ats\SpecialChar \menuseparator
Tabl
\bar under
e
\bar default
\protected_separator
Float
\family default
menu item.
This was done for Table
\protected_separator
\begin_inset LatexCommand \ref{table:captionless}
\end_inset
\begin_float tab
\layout Standard
\align center \LyXTable
multicol5
3 3 0 0 -1 -1 -1 -1
1 1 0 0
1 0 0 0
1 1 0 0
8 1 0 "" ""
8 1 0 "" ""
8 1 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
1
\newline
2
\newline
3
\newline
4
\newline
5
\newline
6
\newline
7
\newline
8
\newline
9
\layout Standard
\begin_inset LatexCommand \label{table:captionless}
\end_inset
\end_float
, which, since it has no caption, will not be numbered, even though the
reference is numbered.
It is not possible to place a caption with a table unless it is a table
float.
Note that labelling the tables automatically numbers them, and cross-references
(cf.
\protected_separator
\begin_inset LatexCommand \ref{sec:crossref}
\end_inset
) will display that number in the output.
\layout Subsubsection
Float Placement
\layout Standard
The techniques of how to control the placement of table floats is the same
as that for
\family sans
Figure
\protected_separator
Float
\family default
s.
See section
\protected_separator
\begin_inset LatexCommand \ref{sec:float-locn}
\end_inset
for details.
\layout Section
Table of Contents and other Listings
\layout Standard
\begin_inset LatexCommand \label{sec:toc}
\end_inset
One of the really nice features of LaTeX is the ease with which it lets
you create various
\begin_inset Quotes eld
\end_inset
Lists,
\begin_inset Quotes erd
\end_inset
such as a ToC (Table of Contents).
All you need to do is to use certain environments and insert a reference
at the place where you want the list to appear.
\layout Standard
If you are a LaTeX user or are used to an older version of LyX, you might
remember that LaTeX should be run several times to get things right.
Fortunately, this is not needed anymore.
LyX will make sure that LaTeX is run a sufficient number of times in order
for the lists to appear in your dvi--output.
\layout Subsection
The Table of Contents
\layout Standard
In order to get a Table of Contents (ToC), you need to do 5 things:
\layout Enumerate
Use a document--class that supports ToC (all but
\family typewriter
letter
\family default
).
\layout Enumerate
Use styles that are supported by the ToC function:
\family sans
Chapter
\family default
,
\family sans
(Sub...) Section
\family default
,
\family sans
(Sub...) Paragraph
\family default
.
Note that styles with a
\family sans
*
\family default
, like
\family sans
Section*
\family default
, will
\emph on
not
\emph default
appear in the ToC.
\layout Enumerate
Make sure you set the
\family sans
\bar under
S
\bar default
ection
\protected_separator
number
\protected_separator
depth
\family default
and
\family sans
\bar under
T
\bar default
able
\protected_separator
of
\protected_separator
contents
\family default
.
\family sans
\protected_separator
depth
\family default
in the
\family sans
Document
\protected_separator
Layout
\family default
popup to the appropriate value.
If, for example, you only want chapters and sections to appear in the ToC,
set the value to 3.
\layout Enumerate
Insert the ToC-- command at a place of your liking.
You'll find it under
\family sans
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
Lists
\protected_separator
&
\protected_separator
\bar under
T
\bar default
OC\SpecialChar \menuseparator
\bar under
T
\bar default
able
\protected_separator
of
\protected_separator
Contents
\family default
.
\layout Standard
But there is something else that you can do with a ToC.
Whether or not you've created a ToC in your text, you can invoke the function
\family sans
\bar under
E
\bar default
dit\SpecialChar \menuseparator
\bar under
T
\bar default
able
\protected_separator
of
\protected_separator
Contents
\family default
.
You will get a second window with a ToC that lets you navigate the text.
\layout Subsection
List of Figures, Tables and Algorithms
\layout Standard
\begin_inset LatexCommand \label{sec:ListsOf}
\end_inset
Lists of Figures (LoF), Lists of Tables (LoT) and Lists of Algorithms (LoA)
are very much like ToCs.
There are some slight differences, though, that you need to heed.
Although the following description is for Lists of Figures, the same procedure
applies to LoTs and LoAs.
\layout Enumerate
If you want you figures to appear in your LoF, you
\emph on
must
\emph default
use figure floats.
You can find them under
\family sans
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
Floats\SpecialChar \menuseparator
Figu
\bar under
r
\bar default
e
\protected_separator
Float
\family default
.
\layout Enumerate
Insert the LoF -- command at a place of your liking.
Select either
\family sans
List
\protected_separator
of
\protected_separator
\bar under
F
\bar default
igures
\family default
, from the
\family sans
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
Lists
\protected_separator
&
\protected_separator
\bar under
T
\bar default
OC
\family default
submenu.
\layout Enumerate
[
\emph on
Author's note: the astute reader might notice that there is no mention of
algorithms in this User's Guide.
This is because algorithm floats is a new feature that is not yet documented
-jml
\emph default
]
\layout Chapter
Mathematical Formulas
\layout Section
Basic Math Editing
\layout Standard
Editing mathematical expressions in LyX is now almost-completely WYSIWYM.
This is something that makes many old TeX users worried
\begin_float footnote
\layout Standard
\emph on
Author's Note: I'm one of them.
- dlj
\end_float
.
They like to be able to use the keyboard to enter things like
\family typewriter
$
\backslash
alpha$
\family default
(this gets, in ordinary TeX, an
\begin_inset Formula \( \alpha \)
\end_inset
in the final document), believing that it is faster than chasing around
menus for a symbol.
Here's a testimonial of one of those old TeX users,
\noun on
David Johnson:
\layout Quotation
I was finally convinced that the math-editor (Mathed) was the way to go
when I found that, with a few modifications, I could use it the same way
I was accustomed to writing TeX.
As an example, I created this
\begin_inset Formula \( \alpha \)
\end_inset
by typing the following keys: First type
\family typewriter
\family sans
M-c
\protected_separator
m
\family typewriter
\family default
to enter
\family typewriter
math-mode
\family default
, then type
\family typewriter
\backslash
alpha
\family sans
\family default
, then
\family sans
Space
\family default
and
\family sans
Esc
\family default
.
As soon as I typed that
\family sans
Space
\family default
the
\begin_inset Formula \( \alpha \)
\end_inset
was right there on the screen.
\layout Standard
The
\family sans
M-c
\protected_separator
m
\family default
sequence starts
\family typewriter
math-mode
\family default
, the
\family typewriter
\backslash
alpha
\family default
is of course the standard TeX code, and the
\family sans
Esc
\family default
leaves
\family typewriter
math-mode
\family default
.
It is a little slower getting in to
\family typewriter
math-mode
\family default
than with standard TeX (for this mode, maybe, at least), but the advantages:
\layout Itemize
You have immediate visual feedback to be sure your TeX was correct,
\layout Itemize
You have the real mathematical expression on the screen, correctly displayed,
to make sure your mathematics is correct (correctly written, at least),
\layout Itemize
All the new LaTeX fuss with special environments and such are taken care
of by LyX, not you,
\layout Itemize
You won't have to chase through the code trying to find that missing
\family sans
$
\family default
or extra
\family sans
{
\family default
any more.
\layout Itemize
If you don't remember the LaTeX name of a particular symbol, like
\begin_inset Formula \( \wp \)
\end_inset
, you can find it in the popups.
\layout Standard
-- these advantages mean that you will be faster writing mathematics with
LyX than with raw LaTeX.
\layout Subsection
Invoking Mathed
\layout Standard
There are several ways to invoke
\family roman
Mathed
\family typewriter
.
\family default
You can just click on the icon with
\begin_inset Formula \( \frac{a+b}{c} \)
\end_inset
on it.
That will open a little blue square, with a purple rectangle around it.
That blue square is the math-cursor position, and the rectangle indicates
that you are in math-mode.
There is also a choice on the
\family sans
\bar under
M
\bar default
ath
\family default
menu that does the same thing, or you can use a keyboard macro,
\family sans
M-c
\protected_separator
m
\family default
, or
\family sans
C-m
\family default
.
Clicking on the icon will list all the equivalent keyboard macros to start
Mathed.
Starting Mathed in either of these ways produces an in-line Mathed box.
To make it a displayed equation box, select
\family sans
\bar under
D
\bar default
isplay
\family default
from the
\family sans
\bar under
M
\bar default
ath
\family default
menu.
\layout Standard
If you are using
\family typewriter
math-mode
\family default
to simply type, say, a Greek letter,
\begin_inset Formula \( \alpha \)
\end_inset
, there is a special shortcut, just type
\family sans
M-m
\protected_separator
g
\protected_separator
a
\family default
to get
\begin_inset Formula \( \alpha \)
\end_inset
,
\family sans
M-m
\protected_separator
g
\protected_separator
b
\family default
to get
\begin_inset Formula \( \beta \)
\end_inset
,
\emph on
etc.
\layout Standard
You can also invoke Mathed from the
\family sans
Math
\protected_separator
Panel
\family default
popup, or
\family sans
Math
\protected_separator
Panel
\family default
for short.
The
\family sans
Math
\protected_separator
Panel
\family default
is incredibly useful, so you may want to open it and leave it somewhere
on the screen.
Select
\family sans
Math
\protected_separator
\bar under
P
\bar default
anel
\family default
from the
\family sans
\bar under
M
\bar default
ath
\family default
menu to open it.
Selecting anything from the
\family sans
Math
\protected_separator
Panel
\family default
will also start Mathed.
\layout Subsection
Navigating an Equation
\layout Standard
You can click on an existing Mathed equation (anything in blue text) and
you will automatically activate Mathed, and place the cursor near where
you clicked.
The best control over cursor position within an existing equation is achieved
with the arrow keys.
Mathed uses small squares to indicate places where something can be inserted,
since Mathed needs more than simple linear arrangement of symbols.
\layout Standard
The arrow keys can be used to navigate between text areas in any Mathed
structure.
Pressing an arrow key when at the edge of Mathed will leave Mathed, if
the arrow is pointing out of the Mathed box.
Pressing
\family sans
Space
\family default
will leave a fraction or other Mathed structure (a square root
\begin_inset Formula \( \sqrt{2} \)
\end_inset
, or parentheses
\begin_inset Formula \( \left( f\right) \)
\end_inset
, or a matrix
\begin_inset Formula \( \left[ \begin{array}{cc}
1 & 2\\
3 & 4
\end{array}\right] \)
\end_inset
), staying within Mathed.
Pressing
\family sans
Esc
\family default
will exit Mathed, placing the cursor to the right of the box.
Pressing
\family sans
Space
\family default
will also exit Mathed, but place the cursor one space beyond the box (creating
that space if it is not there.
\family sans
Tab
\family default
can be used to move horizontally in a Mathed structure, like the rows of
a matrix or the positions in a multiline equation.
\layout Standard
\family sans
Space
\family default
seems to do nothing in Mathed, since it does not in fact add a space between
characters, but it does exit a nested structure.
For that reason, you have to be careful about using
\family sans
Space
\family default
.
For example, if you want
\begin_inset Formula \( \sqrt{2x+1} \)
\end_inset
, type
\family typewriter
\backslash
sqrt
\family sans
\protected_separator
\family default
then
\family sans
Space
\family default
, then
\family sans
\protected_separator
\family typewriter
2x+1
\family default
, not
\family typewriter
\backslash
sqrt
\family sans
\protected_separator
Space
\protected_separator
\family typewriter
2x
\family sans
\protected_separator
Space
\protected_separator
\family typewriter
+
\family sans
\protected_separator
Space
\protected_separator
\family typewriter
1
\family default
, since in the latter case only the
\family typewriter
\begin_inset Formula \( 2x \)
\end_inset
\family default
will be under the square root sign,
\begin_inset Formula \( \sqrt{2x}+1 \)
\end_inset
.
For those who learned to space out expressions in this way, it takes a
little unlearning.
\layout Standard
Speaking of the
\family sans
Space
\family default
bar, you may want to create blank spaces, beyond the standard spacing that
LaTeX provides.
We don't recommend this as a matter of course, since the whole idea of
WYSIWYM is that you don't think about the typesetting, but the content.
However, there are situations where you will want to add spaces.
The first thing to do is to type
\family sans
C-Space
\family default
.
This generates a small space, and prints a small red underscore on the
screen:
\begin_inset Formula \( a\, b \)
\end_inset
.
The next trick is to change that space to different sizes.
\emph on
Before
\emph default
you move the cursor, after typing
\family sans
C-Space
\family default
, if you hit
\family sans
Space
\family default
again, you will change the size of the space, through a number of variable
sizes.
The last one in the list is blue, and is a negative space.
For example:
\begin_inset Formula \( a\quad b \)
\end_inset
, or
\begin_inset Formula \( a\! b \)
\end_inset
.
\layout Standard
You can leave many Mathed structures, like this matrix, partially filled
in, such as:
\begin_inset Formula
\[
\left( \begin{array}{ccc}
\lambda _{1} & & \\
& \ddots & \\
& & \lambda _{n}
\end{array}\right) .\]
\end_inset
If you leave a fraction only partially filled in, or a subscript with nothing
in it, the results will be unpredictable, but most objects don't mind.
\layout Subsection
Selecting Text
\layout Standard
You can select text within Mathed in two different ways.
Place the cursor at one end of the string of text you want, and press
\family sans
Shift-Arrow
\family default
to select text.
It will be highlighted as with regular text selection.
Alternately, you can select text with the mouse in the usual way.
That text can then be copied or cut by pressing the menubar icons, and
can then be pasted within any math inset (not outside of LyX, or even in
a plain text region in LyX, though).
Selected text from elsewhere in LyX cannot (yet) be pasted into a math
inset, nor can selections from outside of LyX be pasted into a math inset.
\layout Subsection
Exponents and Subscripts
\layout Standard
You can use the
\family sans
\bar under
M
\bar default
ath
\family default
menu to add in superscripts (
\family sans
\bar under
E
\bar default
xponent
\family default
on the menu) or subscripts (called
\family sans
\bar under
I
\bar default
ndex
\family default
), but the much easier way is to use the standard TeX method.
To get
\begin_inset Formula \( x^{2} \)
\end_inset
, type (in Mathed)
\family typewriter
x^2
\family default
then
\family sans
Space
\family default
.
The final
\family sans
Space
\family default
puts the cursor back down on the base line of the expression, instead of
the superscript.
If you type
\family typewriter
x^2y
\family default
, you will get
\begin_inset Formula \( x^{2y} \)
\end_inset
, to get
\begin_inset Formula \( x^{2}y \)
\end_inset
, type
\family typewriter
x^2
\family sans
\family default
then
\family sans
Space
\family default
then
\family sans
\protected_separator
\family typewriter
y
\family default
.
Subscripts are similar, to get
\begin_inset Formula \( a_{1} \)
\end_inset
, type (in Mathed)
\family typewriter
a_1
\family sans
\protected_separator
\family default
then
\family sans
Space
\family default
.
\layout Subsection
Fractions
\layout Standard
Create a fraction with either
\family typewriter
\backslash
frac
\family sans
\family default
(in Mathed) or using the fraction icon in the
\family sans
Math
\protected_separator
Panel
\family default
popup or the
\family sans
\bar under
M
\bar default
ath
\family default
menu item
\family sans
\bar under
F
\bar default
raction
\family default
.
You will be presented with an empty fraction, with two Mathed insertion
squares top and bottom.
The cursor moves immediately to the top of the fraction.
To move to the bottom, simply press
\family sans
Down
\family default
.
To move back up, press
\family sans
Up
\family default
.
Any math structure can be placed in a fraction, as this example shows:
\begin_inset Formula
\[
\left[ \frac{1}{\left( \begin{array}{cc}
2 & 3\\
4 & 5
\end{array}\right) }\right] \]
\end_inset
\layout Subsection
Sums and Integrals
\layout Standard
Sum
\begin_inset Formula \( \sum \)
\end_inset
and integral
\begin_inset Formula \( \int \)
\end_inset
signs are very often decorated with one or more sets of
\begin_inset Quotes eld
\end_inset
limits
\begin_inset Quotes erd
\end_inset
, which are placed in LyX (as in TeX) as superscripts and subscripts.
Sum will automatically place their
\begin_inset Quotes eld
\end_inset
limits
\begin_inset Quotes erd
\end_inset
over and under the symbol in displaystyle, but will move them to the side
when inlined, such as
\begin_inset Formula \( \sum _{n=0}^{\infty }\frac{1}{n!}=e \)
\end_inset
, versus
\begin_inset Formula
\[
\sum _{n=1}^{\infty }\frac{x^{n}}{n}=\ln \left( \frac{1}{1-x}\right) .\]
\end_inset
Integral signs, however, will not by default move the limits to directly
over and under the integral sign in displaystyle, as in
\begin_inset Formula \( \int _{a}^{x}f(t)dt:=F(x) \)
\end_inset
, versus
\begin_inset Formula
\[
\int _{-\infty }^{\infty }\frac{dx}{1+x^{2}}=\pi .\]
\end_inset
Both symbols will be automatically re-sized when placed in display mode.
In display mode , the placement of the limits (directly above and below,
or offset to the right from the sign) can be changed by placing the cursor
in front of the sign and hitting
\family sans
M-m l
\family default
.
Exactly what change occurs depends on the sign.
Certain other mathematical expressions have this feature as well, such
as
\begin_inset Formula
\[
\lim _{x\rightarrow \infty }f(x),\]
\end_inset
which will place the
\begin_inset Formula \( x\rightarrow \infty \)
\end_inset
underneath the
\begin_inset Quotes eld
\end_inset
lim
\begin_inset Quotes erd
\end_inset
in display mode, but not in inlined mode,
\begin_inset Formula \( \lim _{x\rightarrow \infty }f(x) \)
\end_inset
.
The
\begin_inset Formula \( \lim \)
\end_inset
, in red, has a special significance.
It is considered as a special object in LaTeX, so that it treats subscripts
that way.
You get it in LyX by typing
\family typewriter
\backslash
lim
\family default
in math-mode, or choosing from the
\begin_inset Quotes eld
\end_inset
functions
\begin_inset Quotes erd
\end_inset
menu in the
\family sans
Math Panel
\family default
popup.
Other special
\begin_inset Quotes eld
\end_inset
words
\begin_inset Quotes erd
\end_inset
are
\begin_inset Formula \( \sin \)
\end_inset
and most other trigonometric functions; described below, see
\begin_inset LatexCommand \ref{sec:math-functions}
\end_inset
.
\layout Subsection
The
\family sans
Math
\protected_separator
Panel
\family default
\layout Standard
\begin_inset LatexCommand \label{sec:math-panel}
\end_inset
The
\family sans
Math
\protected_separator
\bar under
P
\bar default
anel
\family default
popup has a more extensive list of symbols and structures.
As stated earlier, you can keep the
\family sans
Math
\protected_separator
Panel
\family default
open when writing mathematics.
That allows you to have easy access to the less trivial features of
\family typewriter
math-mode
\family default
.
\layout Standard
The first two icons in the
\family sans
Math Panel
\family default
, as indicated, produce square root,
\begin_inset Formula \( \sqrt{2} \)
\end_inset
, or fraction
\begin_inset Formula \( \frac{1}{2} \)
\end_inset
regions.
The third icon, with square brackets around an insertion square, pops up
the
\family sans
Delimiter
\family default
popup with choices for left and right large delimiters,
\begin_inset Formula \( \left\{ 3\right\rangle \)
\end_inset
.
These will adjust to fit whatever is placed inside them.
The fourth icon calls up the
\family sans
Decoration
\family default
popup, which gives choices for bars, arrows, tildes and braces, placed either
above or below the insertion point,
\begin_inset Formula \( \underbrace{\widehat{V}} \)
\end_inset
.
These also adjust to accommodate any Mathed structure.
The next icon pops up the
\family sans
Math space
\family default
panel, which allows the possible types of protected spaces available in
math mode
\begin_inset Formula \( 2\qquad 3 \)
\end_inset
.
Sixth is the Matrix popup, which has controls for the size of matrix created,
as well as alignment
\begin_inset Formula \( \left[ \begin{array}{clr}
1 & 2 & 3\\
45 & 67 & 89
\end{array}\right] \)
\end_inset
.
The braces around a matrix are added using the
\family sans
Delimiter
\family default
popup.
The last icon, if clicked while the cursor is in text mode, creates an
empty math-mode region:
\begin_inset Formula
\[
1+2=3.\]
\end_inset
It will be created in display-math mode.
Clicking this icon while in math-mode will toggle the math-insert between
inlined and display mode.
\layout Standard
It is possible to get an nth root symbol.
In the minibuffer, type
\family typewriter
math-insert root
\family default
.
This generates a root symbol with an extra box above the root sign.
Use
\family sans
Up
\family default
and
\family sans
Down
\family default
to move between the two boxes.
You may want to setup a keybinding for this symbol so that you don't need
to use the minibuffer.
(See
\emph on
Customization
\emph default
for details.)
\layout Standard
In addition, the
\family sans
Math
\protected_separator
Panel
\family default
has several submenus containing math symbols.
We'll outline how to use them in the next section.
\layout Subsection
Other Math Symbols
\layout Standard
Commonly-used symbols, and other menus, can be reached directly from the
\family sans
\bar under
M
\bar default
ath
\family default
menu, including
\family sans
\bar under
F
\bar default
raction,
\bar under
S
\bar default
quare
\protected_separator
root,
\bar under
E
\bar default
xponent,
\bar under
I
\bar default
ndex, S
\bar under
u
\bar default
m, In
\bar under
t
\bar default
egral,
\bar under
M
\bar default
ath
\protected_separator
Mode,
\family default
and
\family sans
Math
\protected_separator
\bar under
P
\bar default
anel...
\protected_separator
.
\family default
Most math symbols can be found in the
\family sans
Math
\protected_separator
Panel
\family default
popup under one of several categories,
\family sans
Greek
\family default
\begin_inset Formula \( \Gamma \rho \epsilon \epsilon \kappa \)
\end_inset
,
\family sans
operators
\family default
\begin_inset Formula \( \pm \times \)
\end_inset
,
\family sans
relations
\family default
\begin_inset Formula \( \leq \cong \)
\end_inset
,
\family sans
arrows
\family default
\begin_inset Formula \( \uparrow \Leftrightarrow \)
\end_inset
,
\family sans
large
\protected_separator
operators
\family default
\begin_inset Formula \( \sum \int \)
\end_inset
, and the dreaded
\family sans
miscellaneous
\family default
\emph on
, Misc
\emph default
.
If you know the standard LaTeX macro for a particular symbol you which
to use, you do not have to use these popups, but they will help for those
symbols whose LaTeX name you do not know.
For a symbol whose LaTeX macro you know, all you need to do is type it,
including the leading
\family typewriter
\backslash
\family default
that LaTeX uses, such as in
\family typewriter
\backslash
alpha
\family default
, and it will be converted automatically to the real symbol as soon as you
type a
\family sans
Space
\family default
, or other non-alphabetical symbol.
The text as type it appears in red, (the
\family typewriter
\backslash
\family default
will not appear) but will change to a blue symbol that tells you visually
that LyX understands what you wanted.
If Mathed is not able to convert the symbol as typed, it will remain in
red (this is called
\emph on
macro mode
\emph default
).
\layout Standard
Not all symbols available in LaTeX can (yet) be displayed WYSIWYM in LyX.
If you try a symbol whose LaTeX name you know, like
\family typewriter
\backslash
oint
\family default
for
\begin_inset Formula \( \oint \)
\end_inset
, when you finish typing that string, and then hit
\family sans
Space
\family default
(or a number, or another non-standard character), LyX will display the
symbol whose macro you typed if it can.
If it can't, it will leave the macro in red, such as
\begin_inset Formula \( A\hookrightarrow B \)
\end_inset
.
If LaTeX can handle that macro, it will print accordingly.
Some of the symbols accessible from the
\family sans
Math
\protected_separator
Panel
\family default
will display in this fashion, as will any that are defined in LaTeX but
not yet in the LyX menus.
This also allows you to define your own shortcut macros (put the command
string in the preamble (see
\begin_inset LatexCommand \ref{sec:preamble}
\end_inset
).
For example, the string:
\layout LyX-Code
\backslash
newcommand{
\backslash
a}{
\backslash
alpha}
\family sans
\layout Standard
in the preamble will allow you to use
\family typewriter
\backslash
a
\family sans
\family default
in Mathed instead of
\family typewriter
\backslash
alpha
\family sans
\family default
to generate
\begin_inset Formula \( \alpha \)
\end_inset
.
One caution, though, is that LyX will not concern itself with whether such
a macro is valid, and if not you will have error messages when you try
to preview or print (or run LaTeX).
For more details, see
\begin_inset LatexCommand \ref{sec:latexcodes}
\end_inset
.
\layout Subsection
Math functions
\layout Standard
\begin_inset LatexCommand \label{sec:math-functions}
\end_inset
The
\family sans
\bar under
M
\bar default
ath\SpecialChar \menuseparator
Math
\bar under
P
\bar default
anel...
\family default
menu contains a number of
\begin_inset Quotes eld
\end_inset
functions
\begin_inset Quotes erd
\end_inset
, such as
\begin_inset Formula \( \sin \)
\end_inset
,
\begin_inset Formula \( \lim \)
\end_inset
,
\emph on
etc
\emph default
.
(you can type them in a Mathed inset by typing
\family typewriter
\backslash
sin
\family default
(
\emph on
etc
\emph default
.).
Standard mathematical practice is that functions which are names, like
\begin_inset Formula \( \sin \)
\end_inset
, should not be italicized.
Entering just the letters
\begin_inset Formula \( sin \)
\end_inset
within Mathed will give italics, of course, so these special macros are
available.
they do more, however, to the final output than just change the typeface.
For example, the expression
\begin_inset Formula \( \sin t \)
\end_inset
will typeset with a little extra space between the n and the t.
For words which are more sophisticated mathematical objects, like
\begin_inset Formula \( \lim \)
\end_inset
, the macro changes the way that subscripts are placed, depending on whether
the math-inset is inlined or displayed:
\begin_inset Formula \( \lim _{x\rightarrow 0}f(x)=L \)
\end_inset
versus
\begin_inset Formula
\[
\lim _{x\rightarrow 0}f(x)=L.\]
\end_inset
These two expressions were typed the same way, but using the macro
\family typewriter
\backslash
lim
\family default
(or the menu choice) alters the appearance (actually, it is the inlined
version that is altered, to improve linespacing).
\layout Subsection
More symbols
\layout Standard
There are some mathematical symbols that are not accessible from plain LaTeX
(or LyX), but are fairly common in mathematical typesetting, such as the
old-German Fraktur font and the stylized
\begin_inset Quotes eld
\end_inset
blackboard bold
\begin_inset Quotes erd
\end_inset
fonts commonly used to denote the real or complex numbers, or the integers.
Adding these packages is now a menu item, in the
\family sans
\bar under
L
\bar default
ayout\SpecialChar \menuseparator
\bar under
D
\bar default
ocument...
\family default
popup there is a radio button marked
\family sans
Use AMS Math
\family default
.
Once activated, all AMS-LaTeX symbols and environments are available.
You will run into trouble if you include these packages from the preamble,
since LyX now defines a few of the macros used in these packages on its
own.
The AMS layouts include these packages automatically.
\layout Subsection
Accents
\layout Standard
In math mode you insert accented characters in the same way as in text mode.
This may depend on your keyboard, or the bindings file you use.
You can also use TeX macro equivalents, as macros.
That is, you can enter
\begin_inset Formula \( \hat{a} \)
\end_inset
to get the same effect if your keyboard does not have accents enabled.
This is entered by typing
\begin_inset Quotes eld
\end_inset
\family typewriter
\backslash
hat a
\family default
\begin_inset Quotes erd
\end_inset
in Mathed.
These are the equivalences between the text names and math-mode names for
the various accents:
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable
multicol5
11 3 0 0 -1 -1 -1 -1
1 1 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 1 0 0
8 1 0 "" ""
8 1 0 "" ""
8 1 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
text
\newline
math
\newline
example
\newline
circumflex
\newline
hat
\newline
\begin_inset Formula \( \hat{a} \)
\end_inset
\newline
grave
\newline
grave
\newline
\begin_inset Formula \( \grave{a} \)
\end_inset
\newline
acute
\newline
acute
\newline
\begin_inset Formula \( \acute{a} \)
\end_inset
\newline
umlaut
\newline
ddot
\newline
\begin_inset Formula \( \ddot{a} \)
\end_inset
\newline
tilde
\newline
tilde
\newline
\begin_inset Formula \( \tilde{a} \)
\end_inset
\newline
dot
\newline
dot
\newline
\begin_inset Formula \( \dot{a} \)
\end_inset
\newline
breve
\newline
breve
\newline
\begin_inset Formula \( \breve{a} \)
\end_inset
\newline
caron
\newline
check
\newline
\begin_inset Formula \( \check{a} \)
\end_inset
\newline
macron
\newline
bar
\newline
\begin_inset Formula \( \bar{a} \)
\end_inset
\newline
---
\newline
vec
\newline
\begin_inset Formula \( \vec{a} \)
\end_inset
\layout Section
Brackets and decorations
\layout Standard
There are several brackets available through LyX.
For most purposes, using just the keys
\family typewriter
[{]}()|
\backslash
<>
\family default
should suffice, but the effect, especially if you want to surround a large
structure, such as a matrix or a fraction, or if you have several layers
of brackets, is better using the
\family sans
Math
\protected_separator
Panel
\family default
's
\family sans
Delimiter
\family default
popup [see sec.
\begin_inset LatexCommand \ref{sec:math-panel}
\end_inset
].
For example, that's how you would construct the brackets around a standard
matrix such as :
\begin_inset Formula
\[
\left[ \begin{array}{cc}
1 & 2\\
3 & 4
\end{array}\right] ,\]
\end_inset
and to make it easier to see the layers of parentheses of an abomination
such as:
\begin_inset Formula
\[
\frac{1}{\left( 1+\left( \frac{1}{1+\left( \frac{1}{1+x}\right) }\right) \right) }\]
\end_inset
or:
\begin_inset Formula
\[
f\left( g\left( h\left( k\left( l\left( x\right) \right) \right) \right) \right) .\]
\end_inset
The parentheses, and other brackets, from that menu will automatically re-size
to accommodate the size of what is inside (This is done in straight LaTeX
by
\family typewriter
\backslash
left( blah
\backslash
right)
\family default
).
\layout Standard
It is very easy to construct the braces you want to use.
Click on the brace you want on the left side with the left mouse button,
the right side with the right button, and place them in the document by
clicking on the button displaying your choices.
If you want one side to not have a bracket, use the blank button.
It will appear in LyX with a dotted line, but nothing will print.
\layout Standard
If you decide after the fact to place parentheses (or other math structure,
like a square root, or other decoration) around some math structure, you
can do that by highlighting (selecting) the structure that is to go inside
the parentheses (that is done by holding the
\family sans
Shift
\family default
key down and moving the cursor with the arrow keys, or selecting with the
mouse).
Then, choose the appropriate brackets for left and right, and click on
\family sans
Apply
\family default
.
The parentheses will be drawn around the selected structure.
\layout Section
Arrays and Multi-line Equations
\layout Standard
Arrays, such as matrices, are easily entered in LyX.
In the
\family sans
Math
\protected_separator
Panel
\family default
there is a
\family sans
matrix
\family default
icon, which will open a popup for you to choose the number of rows/columns.
Here is an example:
\begin_inset Formula
\[
\left( \begin{array}{ccc}
1 & 2 & 3\\
4 & 5 & 6\\
7 & 8 & 9
\end{array}\right) .\]
\end_inset
The parentheses aren't automatic, but you can add them with the
\family sans
delimiter
\family default
menu.
Remember that you can add this after the fact, by highlighting the matrix
inside Mathed (Position the mouse on one side of the matrix, hold the
\family sans
Shift
\family default
key down, and hit the appropriate arrow key to move the cursor across the
matrix).
You can, when you construct the matrix, decide whether the columns (or
some of them) will be left-, right-, or center-justified.
That is that panel which appears as
\family typewriter
ccc
\family default
by default.
You should be careful about determining how many rows and columns you need.
You can add more rows to an existing matrix by hitting
\family sans
C-Enter
\family default
while in the matrix, and you can delete rows with
\family sans
M-e
\series medium
k
\family default
\series default
, but you can't add or delete columns, yet.
Here's another example, with different alignments on the three columns:
\begin_inset Formula
\[
\begin{array}{lcr}
this & this\, column & this\, column\\
column & has & has\, right\\
has\, left\, alignment & center\, alignment & alignment
\end{array}.\]
\end_inset
There are numerous other arrays used in LaTeX math-mode, particularly with
the AMS-LaTeX packages included, such as
\family typewriter
\backslash
cases
\family default
and commutative diagrams.
These are not yet supported in LyX (one such array, the
\family typewriter
\backslash
cases
\family default
environment, is now supported in development versions of LyX).
However, it is possible to build these structures from a matrix (which
is exactly what the
\family typewriter
\backslash
cases
\family default
macro is, anyway).
Here is a simple example of how LyX can display cases:
\begin_inset Formula
\[
f(x):=\left\{ \begin{array}{ll}
\frac{1}{q}, & \mathrm{if}\, x=\frac{p}{q}\, (\mathrm{in}\, \mathrm{lowest}\, \mathrm{terms})\\
0, & \mathrm{if}\, x\, \mathrm{is}\, \mathrm{irrational}
\end{array}\right. \]
\end_inset
This was constructed by first choosing delimiters, where the one on the
right is a blank delimiter, then choosing inside the delimiters a
\begin_inset Formula \( 2\times 2 \)
\end_inset
matrix, with both columns left-justified.
The Roman text setting will be explained later.
\layout Standard
Multi-line equations are very easy to construct in LyX.
The display-math mode of Mathed will automatically switch to an
\family typewriter
\series medium
eqnarray
\family default
\series default
format (LaTeX's multi-line displayed equation format) if, in the displayed-equa
tion box, you hit
\family sans
\series medium
C-E
\series default
nter
\family default
.
The best way to do this, if you decide you want a multi-line displayed
equation, is to insert a new line (with
\family sans
\series medium
C-Enter
\family default
\series default
) immediately.
Each line then has three regions, left, center, and right, which you can
move through using either the arrow keys, the mouse, or the
\family sans
\series medium
Tab
\family default
\series default
key.
Here is an example:
\begin_inset Formula
\begin{eqnarray*}
3 & = & 1+2\\
4+5 & = & 9.
\end{eqnarray*}
\end_inset
You can also turn an existing displayed formula into a multi-line formula
by hitting
\family sans
\series medium
C-Enter
\family default
\series default
while the cursor is anywhere on the original formula.
However, LyX will
\emph on
not
\emph default
try to decide where to break the formula up into three parts, but places
everything in the left side of the line.
To change the alignment points of the equation, place the cursor where
you want to start the middle part of the line, and hit
\family sans
C-Tab.
\family default
It then puts everything to the right of the cursor in the middle region
of the equation (which, by the way, is not typeset by LaTeX in display-math
size, so you should not put large expressions like fractions there).
Move to where you want the right side of the line to begin, and hit
\family sans
C-Tab
\family default
again.
The
\begin_inset Quotes eld
\end_inset
extra
\begin_inset Quotes erd
\end_inset
insertion points in the line will disappear.
\layout Standard
You can delete a line of a multi-line formula by placing the cursor on the
line and hitting
\family sans
M-e
\series medium
k
\family default
\series default
.
You create new lines with
\family sans
C-Enter
\family default
.
\layout Section
Equation Numbering and Labels
\layout Standard
\begin_inset LatexCommand \label{sec:math-label}
\end_inset
Equation numbering is very easy in LyX.
All it takes to change a displayed equation like:
\begin_inset Formula
\[
1+2=3\]
\end_inset
into the numbered equation :
\begin_inset Formula
\begin{equation}
\label{mathed:first-eqn}
1+2=3
\end{equation}
\end_inset
is to go to the
\family sans
\bar under
I
\bar default
nsert
\family default
menu, and select the
\family sans
\bar under
L
\bar default
abel...
\family default
option.
This opens a popup in which you must enter some string as the label.
There is no need to call it by a specific number, since LaTeX will take
care of re-numbering the equation.
Labels will not appear as such on the final output.
LaTeX will insert appropriate numbers for the equations.
The labels are used internally for cross-referencing.
You can turn on numbering without a specific label by entering
\family typewriter
math-number
\family default
in the minibuffer (the line below the main LyX window, which usually displays
information about the document.
Click on it, and the mini-buffer clears, allowing you to enter commands
such as these.) while the cursor is in the equation, such as:
\layout Standard
\begin_inset Formula
\begin{equation}
1+1=2.
\end{equation}
\end_inset
This behaves as a toggle.
Entering
\family typewriter
math-number
\family default
in the mini-buffer a second time removes numbering.
You can reference a labelled (not just numbered) equation, (cf.
(
\begin_inset LatexCommand \ref{mathed:first-eqn}
\end_inset
)) by using the
\family sans
Cross-Reference
\family default
popup, which you open using
\family sans
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
\bar under
C
\bar default
ross-Reference...
\family default
\protected_separator
.
Note that you should
\emph on
not
\emph default
use spaces in your labels, since they get deleted and cross-references will
no longer work.
This is a LyX bug, but one that can be dealt with.
\layout Standard
For numbered (or labelled) multi-line formulas, the default is that all
lines are numbered separately.
One you attach a label to make the equation numbered, all subsequent lines
receive a label of #.
That label can be changed to another so that you can refer to that line,
like (
\begin_inset LatexCommand \ref{mathed:third-eqn}
\end_inset
) below.
\begin_inset Formula
\begin{eqnarray}
1 & = & 3-2\label{mathed:second-equation} \\
2 & = & 4-2\\
4 & \leq & 7.
\end{eqnarray}
\end_inset
You can turn off numbering of a specific line by entering
\family typewriter
math-nonumber
\family default
in the minibuffer (below the main LyX window) while the cursor is on that
line of a multi-line numbered equation.
This also toggles.
Though it may seem odd, entering
\family typewriter
math-nonumber
\family default
again will turn the numbering back
\emph on
on
\emph default
for that line.
\begin_inset Formula
\begin{eqnarray}
1 & = & 4-3\label{mathed:fourth-eqn} \\
2 & = & 7-5\\
1 & = & e^{2\pi i}\nonumber \\
16 & \equiv & 2\, (mod\, 7)\label{mathed:fifth-eqn}
\end{eqnarray}
\end_inset
Note that the first equation in this set (
\begin_inset LatexCommand \ref{mathed:fourth-eqn}
\end_inset
) is labelled, the next is numbered but unlabelled, the third is unnumbered,
and the last (
\begin_inset LatexCommand \ref{mathed:fifth-eqn}
\end_inset
) is again labelled.
\layout Section
User defined macros in math mode
\layout Standard
LyX allows the user to define macros.
An user defined macro in math mode is not a red colored name that LyX didn't
know how to draw (formerly known as macro mode, now simply TeX mode).
A macro definition box appears on screen as a grayed button with the name
of the macro in blue (math color).
But if you click on it, it will appear as a normal math box to allow you
edit it.
Just try it:
\begin_inset FormulaMacro
\newcommand{\macro}{a+b}
\end_inset
\layout Standard
Now, to use this macro in other math boxes just type the name in TeX mode,
in this case
\family typewriter
\backslash
macro
\family default
, and it will be automatically expanded:
\begin_inset Formula \( c=\macro \)
\end_inset
.
As you can verify, the cursor can't go inside the macro, the whole macro
is like a single character, and the TeX generated code of this expression
is
\family typewriter
c =
\backslash
macro.
\layout Standard
However the cursor could go inside of some kind of macros, those that have
\emph on
arguments
\emph default
.
In a macro definition box an argument looks like a
\family typewriter
#
\family default
followed by the argument number:
\begin_inset FormulaMacro
\newcommand{\macrowarg}[1]{2+\sqrt{#1 }}
\end_inset
\layout Standard
Once expanded, this macro includes the usual empty rectangle to indicate
that you can insert there whatever you want:
\family typewriter
\backslash
macrowarg =
\begin_inset Formula \( \macrowarg{} \)
\end_inset
\family default
.
Example:
\begin_inset Formula \( b=\macrowarg{x-2} \)
\end_inset
.
\layout Standard
When exported to LaTeX, a macro definition will produce the command
\family typewriter
\backslash
newcommand.
\layout Subsection
Directions on using macros
\layout Subsubsection
How to create them
\layout Standard
To create a macro definition box use this syntax in the minibuffer:
\layout Standard
\family typewriter
math-macro <macro name> [number of arguments]
\layout Standard
Par example
\family typewriter
\backslash
macro
\family default
was created with
\begin_inset Quotes eld
\end_inset
\family typewriter
math-macro macro
\family default
\begin_inset Quotes erd
\end_inset
, and
\family typewriter
\backslash
macrowarg
\family default
was created with
\begin_inset Quotes eld
\end_inset
\family typewriter
math-macro macrowarg 1
\family default
\begin_inset Quotes erd
\end_inset
.
\layout Standard
To insert an argument mark (only inside a macro definition box) use this:
\layout Standard
\family typewriter
math-macro-arg <number>
\layout Standard
The argument mark in
\family typewriter
\backslash
macrowarg
\family default
was introduced with
\begin_inset Quotes eld
\end_inset
\family typewriter
math-macro-arg 1
\family default
\begin_inset Quotes erd
\end_inset
.
\layout Standard
You can use no more than 9 arguments, numbered from 1 to 9.
An argument can be repeated inside the macro definition box, but of course
can be edited only once.
A number can't be greater than the number of arguments originally allowed
for the macro.
\layout Subsubsection
How to navigate
\layout Description
With
\protected_separator
the
\protected_separator
arrow
\protected_separator
keys: Opening a macro form the left side will put the cursor in the first
argument, to move to the second argument use the TAB key.
Remember that pressing the Space bar will get the cursor out and at the
right side of the macro.
\layout Description
With
\protected_separator
the
\protected_separator
mouse: As usual, click on the desired argument box.
Sometimes this fails if the box is empty or too small.
\layout Standard
Currently the user can only define command macros, but internally it's possible
to define also environment macros.
\layout Standard
There are several predefined macros, mainly to allow AMS-LaTeX users to
use AMS macros in a WYSIWYM way, like
\family typewriter
\backslash
cases
\family default
and
\family typewriter
\backslash
binom
\family default
.
\begin_float footnote
\layout Standard
\emph on
LyX 1.0 note:
\family typewriter
\backslash
cases
\family default
are currently disabled because after some simplification and improving
of the macro stuff, the only valid arguments are subparagraphs (neither
tabs nor newlines).
Perhaps they will be again included
\emph default
\emph on
in a later version.
AAS
\end_float
\layout Section
Fine-Tuning
\layout Subsection
Typefaces
\layout Standard
You can enter various typefaces in Mathed, but (at the moment) you have
to use keyboard commands to set them.
Not all appear exactly WYSIWYM, and a few don't appear WYSIWYM at all.
The standard font for text is italic,
\begin_inset Formula \( text \)
\end_inset
, but for numbers the standard is Roman.
To set text in Roman font in math-mode, type
\family sans
M-c
\protected_separator
r
\family default
once in math-mode
\begin_inset Formula \( \mathrm{text} \)
\end_inset
.
To get bold,
\begin_inset Formula \( \mathbf{text} \)
\end_inset
, type
\family sans
M-c
\protected_separator
b
\family typewriter
\family default
in math-mode.
To get calligraphic font for capital letters (which looks like Helvetica
italics on-screen, but is fancier on the final output),
\begin_inset Formula \( \mathcal{TEXT} \)
\end_inset
, type
\family sans
M-c
\protected_separator
e
\family typewriter
\family default
in math-mode.
Here is a table with all the supported fonts:
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable
multicol5
6 3 0 0 -1 -1 -1 -1
1 1 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 1 0 0
8 1 0 "" ""
8 1 1 "" ""
8 0 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
Text-mode
\newline
Math
\newline
Mathed Keybinding
\newline
\series bold
Bold
\series default
\newline
\begin_inset Formula \( \mathbf{Bold} \)
\end_inset
\newline
\family sans
M-c
\protected_separator
b
\family default
\newline
\emph on
Emphasize
\emph default
\newline
\emph on
\begin_inset Formula \( \mathcal{CALLIGRAPHIC} \)
\end_inset
\emph default
\newline
\family sans
M-c
\protected_separator
e
\family default
\newline
---------
\newline
\begin_inset Formula \( \mathrm{Roman} \)
\end_inset
\newline
\family sans
M-c
\protected_separator
r
\family default
\newline
\family typewriter
Typewriter
\family default
\newline
\begin_inset Formula \( \mathtt{Typewriter} \)
\end_inset
\newline
\family sans
M-c
\protected_separator
p
\family default
\newline
Default
\newline
\begin_inset Formula \( Default \)
\end_inset
\newline
\family sans
M-c
\protected_separator
Space
\layout Standard
The keyboard command to switch to a particular text font is interpreted
in math-mode as indicated.
Math-mode does not support all characters in all fonts, and only letters
will be supported with these font styles; only capital letters for calligraphic
font.
\layout Standard
For any of these fonts, you have to be careful how you enter the text.
If there is text to the right of the entry point, the font reverts to that
style after one character.
To be able to type a string in a particular font, make sure there is a
protected-space to the right of the cursor.
Also, entering a protected-space will revert subsequent text to standard
font.
\layout Standard
It is possible (in AMS-LaTeX) to embolden (not italicize) numbers and special
symbols in math-mode.
However, LyX does not yet support this in WYSIWYM\SpecialChar \@.
It will print correctly,
though.
To get emboldened symbols, for example a bold
\begin_inset Formula \( \alpha \)
\end_inset
, enter
\family typewriter
\backslash
boldsymbol{
\backslash
alpha}
\family default
in Mathed.
The close-brace appears (in red) automatically when you type the opening
brace.
This works for all symbols, as well as numbers.
It is also possible to get Fraktur (traditional German) fonts by entering,
say,
\family typewriter
\backslash
mathfrak{g}
\family default
for a Fraktur
\begin_inset Formula \( g \)
\end_inset
, or the
\begin_inset Quotes eld
\end_inset
blackboard-bold
\begin_inset Quotes erd
\end_inset
double-line capitals with
\family typewriter
\backslash
mathbb{R}
\family default
.
These symbols will not appear (yet) WYSIWYM in LyX, and the AMS-LaTeX packages
(including
\family typewriter
amsfonts
\family default
) must be used.
Adding these packages is now a menu item, in the
\family sans
\bar under
L
\bar default
ayout\SpecialChar \menuseparator
\bar under
D
\bar default
ocument...
\family default
popup there is a radio button marked
\family sans
Use AMS Math
\family default
.
Once activated, all AMS-LaTeX symbols and environments are available.
\layout Standard
We do not have examples of these fonts in this Guide so that the Guide can
be previewed and printed without these packages, which some people would
not have available.
\layout Subsection
Math Text Mode
\layout Standard
Typefaces are useful for entering variable names in some given font, but
certainly not for anything else, and in particular not text.
For typing longer pieces of text, use math text mode, which is obtained
by typing
\family sans
M-m m
\family default
while already in math mode.
(The same command will get out of math text mode, too.) Math text mode appears
on the screen in black instead of blue.
You cannot enter punctuation or font changes in your text
\begin_float footnote
\layout Standard
Moreover, math text mode outputs its contents inside a
\family typewriter
\backslash
textrm{}
\family default
, whereas and
\family typewriter
\backslash
mbox
\family default
(or AMSLaTeX's
\backslash
\family typewriter
text
\family default
) might have been a better choice
\end_float
, but it works for simple text.
Here's an example:
\begin_inset Formula
\[
f(x)=\begin{array}{cc}
x & \textrm{if I say so}\\
-x & \textrm{otherwise}
\end{array}\]
\end_inset
\layout Subsection
Font Sizes
\layout Standard
There are four (relative) font sizes (or
\begin_inset Quotes eld
\end_inset
styles
\begin_inset Quotes erd
\end_inset
) used in math-mode, which are automatically chosen in most situations.
These are called
\emph on
textstyle
\emph default
,
\emph on
displaystyle
\emph default
,
\emph on
scriptstyle
\emph default
, and
\emph on
scriptscriptstyle
\emph default
.
For most characters, textstyle and displaystyle are actually the same size,
but fractions, superscripts and subscripts, and certain other effects,
are set larger or placed differently in displaystyle.
Except for some operators, which re-size themselves to accommodate various
situations, all text will be set if these various sizes as LaTeX thinks
is appropriate.
These choices can be over-ridden by setting the
\family typewriter
math-size
\family default
in the minibuffer.
For example, you can set
\begin_inset Formula \( \frac{1}{2} \)
\end_inset
normally (textstyle), or you can make it larger, which also changes the
linespacing, in displaystyle, by entering
\family typewriter
math-size displaystyle
\family default
in the minibuffer while the cursor is in the main line of the math-inset,
\begin_inset Formula \( \displaystyle \frac{1}{2} \)
\end_inset
.
Careful, though, if the cursor is on the denominator of that fraction,
only the numerator will be enlarged,
\begin_inset Formula \( \frac{1}{2} \)
\end_inset
! This reflects a LaTeX
\begin_inset Quotes eld
\end_inset
unintended feature
\begin_inset Quotes erd
\end_inset
\begin_float footnote
\layout Standard
That is, a bug.
\end_float
, not a LyX one.
These font-size changes are not as apparent in LyX as they are in the output.
Here are some text in the various styles:
\begin_inset Formula \( displaystyle \)
\end_inset
,
\begin_inset Formula \( \textstyle textstyle \)
\end_inset
,
\begin_inset Formula \( \scriptstyle scriptstyle \)
\end_inset
,
\begin_inset Formula \( \scriptscriptstyle scriptscriptstyle \)
\end_inset
.
\layout Standard
All these math-mode font sizes are relative, that is, if the whole math
inset and surrounding text are set in a particular size, all these sizes
will be adjusted.
Similarly, if the base font size of the document is changed, all fonts
will be adjusted to correspond.
\layout Standard
\family roman
\size largest
Here is a paragraph in
\begin_inset Quotes eld
\end_inset
largest
\begin_inset Quotes erd
\end_inset
font, with symbols:
\begin_inset Formula \( \alpha \)
\end_inset
.
\layout Standard
This applies to math-fonts in Titles,
\emph on
etc.
\emph default
as well.
\layout Chapter
More Tools
\layout Section
Cross-References
\layout Standard
\begin_inset LatexCommand \label{sec:crossref}
\end_inset
Those of you reading this manual online will see a grey box with text in
it, right before the beginning of this sentence.
This is a
\family sans
Label
\family default
.
Properly speaking, it is one half of a cross-reference.
The other half is the
\family sans
Reference
\family default
proper, and it looks like this:
\begin_inset LatexCommand \ref{sec:crossref}
\end_inset
.
Again, those of you reading the manual online will see a red box with red
text in it.
Those reading printed versions, however, will see a number --- in this
case, the number of this section.
There's also another variety of cross-reference:
\begin_inset LatexCommand \pageref{sec:crossref}
\end_inset
.
This is the page number containing the location of the label.
That's what cross-references do: they let you reference other parts of
your document.
You don't need to remember which section number was what anymore --- LyX
will do that for you! All you need to do is use a
\family sans
Label
\family default
to mark a section, figure, table, equation, etc., and then refer to it via
a
\family sans
Reference
\family default
.
\layout Standard
To insert a label, use
\family sans
\bar under
I
\bar default
nsert
\bar under
\SpecialChar \menuseparator
L
\bar default
abel
\family default
.
A box will appear where you can enter your label.
You can't change labels once you've created them [at least, not yet].
You'd have to delete the old label, make a new one, then remove all of
the old references to the now-defunct label and insert new references.
Yes, it's a pain, which is why you should choose label names carefully.
\layout Standard
To insert a reference, select
\family sans
\bar under
I
\bar default
nsert
\bar under
\SpecialChar \menuseparator
C
\bar default
ross
\protected_separator
Reference
\family default
.
The
\family sans
Insert
\protected_separator
Cross-Reference
\family default
popup appears with a list of labels.
Double-clicking on a list item inserts a reference into the text, as does
the two different
\family sans
\bar under
I
\bar default
nsert
\protected_separator
Reference
\family default
buttons.
Lastly, the
\family sans
\bar under
U
\bar default
pdate
\family default
button is there in case you decide to leave this popup open and add labels
in the meantime.
\layout Standard
Note that if you cut & paste text from another document that contains a
\family sans
Label
\family default
or
\family sans
Reference
\family default
, or if you delete a label in your text, LaTeX will complain:
\layout Quote
\family typewriter
LaTeX Warning: Reference `X' on page Y undefined on input line Z.
\newline
LaTeX Warning: There were undefined references.
\layout Standard
You'll also see two question marks in the output instead of the reference.
\layout Standard
There are a few more comments we need to make about the
\family sans
Labels
\family default
.
They always print the number of the section heading closest to them.
So --- if you want to put a label on a
\family sans
Chapter
\family default
, but a
\family sans
Section
\family default
heading immediately follows it, you need to put the
\family sans
Label
\family default
\emph on
into
\emph default
the
\family sans
Chapter
\family default
environment.
It doesn't matter where, and it will look weird on the LyX screen.
However, you need to do this if you want to label the
\family sans
Chapter
\family default
separately from the
\family sans
Section
\family default
.
The same goes for all other section headings.
If plain text follows a section heading you want to label, then and only
then can you put the
\family sans
Label
\family default
in the text without worrying.
You have been warned.
\layout Standard
Also, a
\family sans
Label
\family default
\emph on
only
\emph default
makes sense in
\emph on
numbered
\emph default
section headings and table and figure floats.
Bare figures and tables aren't numbered, so, like unnumbered section headings,
you can't really use a
\family sans
Label
\family default
on it.
\begin_float footnote
\layout Standard
Well, you
\emph on
can
\emph default
, but only if you use the
\family sans
Page
\protected_separator
number
\family default
reference.
The regular
\family sans
Reference
\family default
--- the one that refers to a section/table/figure number --- won't work,
because there's no numbered thingy to refer to! You could also use bare-
\family sans
Label
\family default
s as page markers, then refer back to them using the
\family sans
Page
\protected_separator
number
\family default
reference.
Once again, the regular
\family sans
Reference
\family default
won't work very well.
It will refer to something, but that something will typically be the number
of the previous numbered section heading.
\end_float
See sections
\begin_inset LatexCommand \ref{sec:figurefloats}
\end_inset
,
\begin_inset LatexCommand \ref{sec:table float}
\end_inset
, and
\begin_inset LatexCommand \ref{sec:math-label}
\end_inset
for details on using a
\family sans
Label
\family default
with figures, tables, and equations, respectively.
\layout Section
URLs (Uniform Resource Locators)
\layout Standard
It is often desirable to include long
\begin_inset Quotes eld
\end_inset
verbatim
\begin_inset Quotes erd
\end_inset
items in a document such as Web site URLs, e-mail addresses, etc.; these
things typically do not contain any spaces and are thus difficult to typeset
properly.
Such items will often fall on a line boundary if they cannot be split,
resulting in an overfull or underfull line depending on the circumstances.
You can use
\family sans
Insert\SpecialChar \menuseparator
\bar under
U
\bar default
RL
\family default
within LyX to enter a long URL and have it split gracefully (if necessary)
along automatically determined boundaries.
\layout Standard
At the point in the document where you want to enter the URL (or other address-l
ike entity) simply select
\family sans
Insert\SpecialChar \menuseparator
\bar under
U
\bar default
RL
\family default
; a popup will appear where you can enter the full URL (in the
\family sans
\bar under
U
\bar default
rl:
\family default
field).
In its simplest usage, that's all you need to do.
Click on the following gray box to see how LyX's homepage would be entered:
\begin_inset LatexCommand \url{http://www.lyx.org}
\end_inset
.
\layout Standard
If you would like to associate some definite phrase with the URL, enter
it into the
\family sans
\bar under
N
\bar default
ame
\family default
field of the popup; it will be typeset as plain text immediately before
the URL.
For example, I might say that you can find all things related to LaTeX
at
\begin_inset LatexCommand \url[CTAN]{http://ctan.tug.org}
\end_inset
.
On the printed page, the last sentence ends as
\begin_inset Quotes eld
\end_inset
all things related to LaTeX at CTAN
\family typewriter
http://ctan.tug.org
\family default
\begin_inset Quotes erd
\end_inset
.
\layout Standard
[
\emph on
Author's Note: I have no idea what the
\family sans
\emph default
\bar under
H
\bar default
TML Type
\family default
\emph on
button does in the popup.
It appears to make no difference in the exported LaTeX file nor is any
change apparent in the DVI file.
--- mer
\emph default
]
\layout Section
Manual Fine-Tuning
\layout Subsection
Extra Horizontal Space
\layout Standard
\begin_inset LatexCommand \label{sec:hspace}
\end_inset
\family sans
HFill
\family default
s are a special LyX feature for adding extra space in a uniform fashion.
An
\family sans
HFill
\family default
is actually a variable length space, whose length always equals the remaining
space between the left and right margins.
If there is more than one
\family sans
HFill
\family default
on a line, they divide the available space equally between themselves.
\layout Standard
Note: if you put an
\family sans
HFill
\family default
at the beginning of a line, and it's
\emph on
not
\emph default
the first line in a paragraph, LyX ignores it.
This prevents
\family sans
HFill
\family default
s from accidentally being wrapped onto a new line.
\layout Standard
\family sans
HFill
\family roman
s
\family default
can be inserted with
\family sans
\bar under
I
\bar default
nsert\SpecialChar \menuseparator
\bar under
S
\bar default
pecial
\protected_separator
Character\SpecialChar \menuseparator
\bar under
H
\bar default
Fill
\family default
.
Here a few examples what you can do with them:
\layout Quote
\noindent
This is on the left side
\hfill
This is on the right
\layout Quote
\noindent
Left
\hfill
Middle
\hfill
Right
\layout Quote
\noindent
Left
\hfill
1/3 Left
\hfill
\hfill
Right
\layout Standard
That was an example in the
\family sans
Quote
\family default
environment.
Here:
\hfill
:is one in a standard paragraph.
It may or may not be apparent in the printed text, but it
\emph on
is
\emph default
sitting in-between the two
\begin_inset Quotes eld
\end_inset
:
\begin_inset Quotes eld
\end_inset
.
\layout Standard
Remember that we said that an
\family sans
HFill
\family default
always fills the remaining space between the margins? There may be more
than one set of margins on a line.
Here's an example with the
\family sans
List
\family default
environment.
\layout List
\labelwidthstring MMMMMMM
one
\hfill
two :three
\hfill
four
\hfill
five
\hfill
six
\layout Standard
The
\begin_inset Quotes eld
\end_inset
:
\begin_inset Quotes eld
\end_inset
marks the beginning of the item.
[There is actually a
\begin_inset Quotes eld
\end_inset
hidden
\begin_inset Quotes erd
\end_inset
\family sans
HFill
\family default
inside of the label of the
\family sans
List
\family default
environment; it's put at the end of the label automagically.]
\family sans
HFill
\family default
s work similarly in other
\begin_inset Quotes eld
\end_inset
multimargin
\begin_inset Quotes erd
\end_inset
situations, like two-column mode.
\layout Subsection
Extra Vertical Space
\layout Standard
\begin_inset LatexCommand \label{sec:vertspace}
\end_inset
To add extra vertical space above or below a paragraph, use
\family sans
\bar under
L
\bar default
ayout\SpecialChar \menuseparator
\bar under
P
\bar default
aragraph
\family default
to open the
\family sans
Paragraph
\protected_separator
Layout
\family default
popup.
\layout Standard
We're not going to provide an example of a
\family sans
VFill
\family default
, as it's a waste of paper.
They work the same as any other type of filler, including
\family sans
HFill
\family default
s: they fill the remaining vertical space on a page with blank space.
If there are several
\family sans
VFill
\family default
s on a page, they divide the remaining vertical space equally between themselves.
You can therefore use
\family sans
VFill
\family default
s to center text on a page, or even place text 2/3 down a page, or 1/4,
and so on.
\layout Subsection
Changing Paragraph Alignment
\layout Standard
You can also change the paragraph alignment with the
\family sans
Paragraph
\protected_separator
Layout
\family default
popup.
There are four possibilities:
\layout Itemize
\family sans
\bar under
B
\bar default
lock
\layout Itemize
\family sans
\bar under
L
\bar default
eft
\layout Itemize
\family sans
\bar under
R
\bar default
ight
\layout Itemize
\family sans
\bar under
C
\bar default
enter
\layout Standard
The default in most cases is block alignment, in which the inter-word spacing
is variable and each line of a paragraph fills the region between the left
and right margins.
The other three alignments should be self-explanatory, and look like this:
\layout Standard
\align right
This paragraph is right aligned,
\layout Standard
\align center
this one is centered,
\layout Standard
\align left
this one is left aligned.
\layout Standard
In some paragraph environments, the default is something other than block
alignment.
\layout Subsection
Forcing Page Breaks
\layout Standard
\begin_inset LatexCommand \label{sec:pagebreak}
\end_inset
If you don't like the way LaTeX does the page breaks in your document, you
can force a pagebreak where you want one.
In general, this will
\emph on
not
\emph default
be necessary because LaTeX is good at pagebreaking, as was already mentioned
in section
\begin_inset LatexCommand \ref{sec:widows}
\end_inset
.
\layout Standard
So in general there is no need to use the option described below, and we
\emph on
strongly
\emph default
recommend
\emph on
not
\emph default
to use it until the text is
\emph on
really
\emph default
finished, and until you have checked in the preview to see if you
\emph on
really
\emph default
have to change the pagebreaking.
\emph on
Only
\emph default
in those cases, you can force a pagebreak above or below a paragraph in
the
\family sans
Paragraph
\protected_separator
Layout
\family default
popup by selecting
\family sans
Pagebreak-Ab
\bar under
o
\bar default
ve
\family default
or
\family sans
B
\bar under
e
\bar default
low
\family default
.
\layout Standard
You might want to use a pagebreak to ensure that a figure or table appears
at the top of a page.
This is, of course, the wrong way to do it.
LyX gives you a way of automatically ensuring that your figures and tables
appear at the top of a page [or the bottom, or on their own page] without
having to worry about what precedes or follows your figure or table.
See sections
\begin_inset LatexCommand \ref{sec:figures}
\end_inset
and
\begin_inset LatexCommand \ref{sec:tables}
\end_inset
and read about
\family sans
Floats
\family default
to learn more.
\layout Subsection
Other Tools
\layout Standard
\begin_inset LatexCommand \label{sec:protblank-lbreak-horline}
\end_inset
This section describes briefly how some features well known by the LaTeX
user can be generated with LyX.
\layout Itemize
The protected blank: It is used to tell LyX (and LaTeX) not to break the
line at that point.
This may be necessary to avoid unlucky linebreaks, like in:
\begin_deeper
\layout Quote
A good documentation should weight no more than 1
\newline
kg.
\layout Standard
Obviously, it would be a good thing to put a protected blank between
\begin_inset Quotes eld
\end_inset
1
\begin_inset Quotes erd
\end_inset
and
\begin_inset Quotes eld
\end_inset
kg
\begin_inset Quotes erd
\end_inset
.
A protected blank is set with
\family sans
Insert\SpecialChar \menuseparator
Special Character\SpecialChar \menuseparator
Protected Blank
\family default
or with
\family sans
C-Space.
\end_deeper
\layout Itemize
The linebreak: You can force linebreaks within a paragraph by selecting
\family sans
Insert\SpecialChar \menuseparator
Special Character\SpecialChar \menuseparator
Linebreak
\family default
or with
\family sans
C-Return.
\family default
You should, however, not use this to correct LaTeX's linebreaking, as LaTeX
is
\emph on
very
\emph default
good at linebreaking\SpecialChar \ldots{}
(see section
\begin_inset LatexCommand \ref{sec:pagebreak}
\end_inset
).
There are, however, a number of situations where it is necessary to actively
set a linebreak, e.g.
in a poem or for an Address (see sections
\begin_inset LatexCommand \ref{sec:quote}
\end_inset
,
\begin_inset LatexCommand \ref{sec:verse}
\end_inset
and
\begin_inset LatexCommand \ref{sec:adress_usage}
\end_inset
).
\layout Itemize
\line_bottom
Horizontal lines above or below a paragraph: These can be useful for headlines.
You get them in the
\family sans
Paragraph
\protected_separator
Layout
\family default
popup.
Here:
\begin_deeper
\begin_deeper
\layout Standard
is one.
\end_deeper
\end_deeper
\layout Section
Spellchecking
\layout Standard
\begin_inset LatexCommand \label{sec:spellchecking}
\end_inset
LyX itself has no built-in spell checker.
Rather it uses the external
\family typewriter
ispell
\family default
program as a backend
\begin_float footnote
\layout Standard
the latest version can be found at the ispell WWW page
\family typewriter
http://ficus-www.cs.ucla.edu/ficus-members/geoff/ispell.html
\end_float
or the newer and supposedly better
\family typewriter
aspell
\begin_float footnote
\layout Standard
\family typewriter
http://metalab.unc.edu/kevina/aspell/
\end_float
\family typewriter
.
\layout Standard
For installation notes and where to find dictionaries, see the
\family typewriter
ispell
\family default
documentation included with the
\family typewriter
ispell
\family default
distribution.
After installing
\family typewriter
ispell
\family default
you can use the menu entry
\family sans
\shape up
\bar under
S
\bar default
pellchecker...
\family default
\shape default
from the
\family sans
\shape up
\bar under
E
\bar default
dit
\family default
\shape default
menu (make sure that the
\family typewriter
\shape up
ispell
\family default
\shape default
binary is somewhere in your
\family typewriter
PATH
\family default
.
If you have version
\family typewriter
4.*
\family default
of
\family typewriter
ispell
\family default
, it may be a good idea to replace it with the current version,
\family typewriter
3.1.20
\family default
.
Version 4 was a short-lived GNU release of ispell, and had numerous problems.)
\layout Standard
To start spellchecking, select the item
\family sans
\shape up
\bar under
S
\bar default
pellchecker
\family default
\emph on
...
\emph default
from the
\family sans
\bar under
E
\bar default
dit
\family default
\shape default
menu.
Checking will start just after the current cursor position.
A popup window will appear showing any incorrect (or unknown) word found
by
\family typewriter
ispell
\family default
in the first line and allowing you to edit and replace it in a second line.
Whenever
\family typewriter
ispell
\family default
reports an unknown word, the word is highlighted and the view in your text
buffer is updated to make the word visible.
In the
\family sans
Spellchecker
\family default
popup, there is also a box showing
\begin_inset Quotes eld
\end_inset
near misses
\begin_inset Quotes erd
\end_inset
, if
\family typewriter
\shape up
ispell
\family default
\shape default
can find any.
Clicking to one of the near misses will copy the near miss into the replace
input field (double-click to invoke replace).
The buttons in the
\family sans
Spellchecker
\family default
popup are quite self-explanatory:
\layout Description
\family sans
\shape up
Start
\protected_separator
spellchecking
\family default
\shape default
begins to verify the spellings of words, beginning at the cursor position
in the document.
\layout Description
\family sans
Insert
\protected_separator
in
\protected_separator
personal
\protected_separator
dictionary
\family default
inserts the word in an ispell dictionary such that the word is recognized
forever and forever.
\layout Description
\family sans
\shape up
Accept
\protected_separator
word
\protected_separator
in
\protected_separator
this
\protected_separator
session
\family default
\shape default
accepts the word rejected by
\family typewriter
\shape up
ispell
\family default
\shape default
for the rest of this spellchecking session, but does not add the word to
your personal dictionary.
\layout Description
\family sans
\shape up
Ignore
\protected_separator
word
\family typewriter
\family default
\shape default
does not change the word caught by
\family typewriter
\shape up
ispell
\family default
\shape default
, but it will catch the word again if it appears later in the document.
\layout Description
\family sans
\shape up
Replace
\family default
\shape default
\protected_separator
\family sans
\shape up
word
\family default
\shape default
replaces the word by what you have typed to the replace input field.
\layout Description
\family sans
\shape up
Stop
\protected_separator
spellchecking
\family default
\shape default
stops the operation of
\family typewriter
ispell
\family default
, but does not close the spell\SpecialChar \-
check\SpecialChar \-
er popup.
Note that you can cancel spellchecking at any time, not only after an incorrect
word has been found.
\layout Description
\family sans
\shape up
Spellchecker
\protected_separator
Options...
\family default
\shape default
opens up another popup that allows you to alter the options fed to
\family typewriter
ispell
\family default
.
\layout Description
\family sans
\shape up
Close
\protected_separator
Spellchecker
\family default
\shape default
does what you might expect.
\layout Standard
Finally, there is a slider informing you about the progress of spell checking.
\layout Description
Note: If you want to spellcheck footnotes, margin notes, or captions in
table- and figure-floats, you
\emph on
must
\emph default
open them first.
This is easy to do with the
\family sans
Edit\SpecialChar \menuseparator
Floats
\protected_separator
&
\protected_separator
Insets\SpecialChar \menuseparator
Open
\protected_separator
All
\family default
commands.
\layout Subsection
Spellchecker Options
\layout Standard
\begin_inset LatexCommand \label{sec:spell_opt}
\end_inset
The following options can be set in the
\family sans
\bar under
S
\bar default
pellchecker
\protected_separator
Options
\family default
popup (which you can also access from the
\family sans
\bar under
O
\bar default
ptions
\family default
menu):
\layout Subsubsection
Dictionary
\layout Standard
By default, the dictionary file to use is determined by the language of
the document you're checking, which is set in the
\family sans
\shape up
\shape default
\bar under
L
\shape up
\bar default
ayout
\shape default
\SpecialChar \menuseparator
\bar under
D
\shape up
\bar default
ocument
\family default
\shape default
popup.
If you do not have a dictionary for the document language,
\family typewriter
\shape up
ispell
\family default
\shape default
will exit immediately after invocation.
There will be a message on your stderr saying something like:
\layout Quote
\family typewriter
Can't find file /usr/lib/ispell/xyz.hash
\layout Standard
and a popup window will inform you about the failure.
In this case, you can specify another dictionary file in the
\family sans
\bar under
S
\bar default
pellchecker
\protected_separator
\bar under
O
\bar default
ptions
\family default
popup, by typing in the name in the space provided, and checking the
\family sans
\bar under
U
\bar default
se
\protected_separator
alternate
\protected_separator
language..
\family default
.
box, or change the
\family sans
\shape up
Language
\family default
\shape default
option in the
\family sans
\bar under
D
\bar default
ocument
\protected_separator
Layout
\family default
popup (opened using
\family sans
\shape up
\bar under
L
\bar default
ayout
\shape default
\bar under
\SpecialChar \menuseparator
\shape up
D
\bar default
ocument)
\family default
\shape default
.
\layout Standard
A different solution is to make a link from say
\family typewriter
deutsch.(aff|hash)
\family default
to
\family typewriter
german.(aff|hash)
\family default
or whatever applies to your language.
This is because these ispell-files normally have the native language name
(
\begin_inset Quotes eld
\end_inset
deutsch
\begin_inset Quotes erd
\end_inset
) whereas
\family typewriter
ispell
\family default
, when started from lyx, searches for the English version of the name used
with the LaTeX babel package (
\begin_inset Quotes eld
\end_inset
german
\begin_inset Quotes erd
\end_inset
).
\layout Standard
You may also have problems if the font encoding is not correct for that
dictionary.
If you use a language with latin1 encoding and set the
\family sans
\bar under
E
\bar default
ncoding
\family default
option in the
\family sans
\bar under
D
\bar default
ocument
\protected_separator
Layout
\family default
popup to
\family sans
latin1
\family default
(or other than
\family sans
default
\family default
), you must have this option in your language-dictionary as well.
If your dictionary doesn't support the
\family sans
Encoding
\family default
you chose, you'll have an error like this on stderr:
\layout Standard
\family typewriter
ispell: unrecognized formatter type 'latin1'
\layout Standard
The spellchecker gives you an error that it couldn't start the
\family typewriter
ispell
\family default
process and that you probably have some problems with your dictionary file.
\layout Standard
There are four solutions to this problem.
The easiest is to try the
\family sans
Input
\protected_separator
Encoding
\protected_separator
switch
\protected_separator
to
\protected_separator
ispell
\family default
option.
If that does not help, you can set
\family sans
\bar under
E
\bar default
ncoding
\family default
to
\family sans
default
\family default
when calling the spellchecker (which is probably annoying).
The third is to add the
\family typewriter
latin1
\family default
option to your dictionary
\family typewriter
\emph on
<
\family default
language
\family typewriter
>
\emph default
.aff
\family default
file and recompile the dictionary (which probably isn't easy if you installed
the whole stuff with some distribution and don't have the language directory
of the
\family typewriter
ispell
\family default
sources).
Read the
\family typewriter
ispell
\family default
documentation for this task! The fourth is to send a message to your package-ma
intainer, or better yet to the maintainer of the dictionary file in question
and ask him to solve your problem.
\layout Subsubsection
Personal dictionary
\layout Standard
\family typewriter
ispell
\family default
uses a personal dictionary file where words not found in the main dictionary
can be saved so you don't get the same words reported every time you check
a document.
The name of this file is usually formed as
\family typewriter
$HOME/.ispell_
\family default
\emph on
dictionary
\family typewriter
\emph default
,
\family default
where
\emph on
dictionary
\emph default
is the name of the global dictionary used.
Often the file (for the default dictionary) is simply
\family typewriter
$HOME/.ispell_words
\family default
.
If you want to use another file as your personal dictionary, you can also
set this in the
\family sans
\bar under
S
\bar default
pellchecker
\protected_separator
Options
\family default
popup.
Note that the directory in which
\family typewriter
ispell
\family default
will put your file is your home directory, not the directory the file you're
editing is in! Specifying a filename which does not already exist will
result in an error message on stderr which you can ignore (
\family typewriter
ispell
\family default
will create the file at the end of your spell checking).
\layout Subsubsection
Further Options
\layout Standard
The
\family sans
\bar under
S
\bar default
pellchecker
\protected_separator
Options
\family default
popup has some additional options which are fairly self-explanatory:
\layout Itemize
\family sans
\bar under
T
\bar default
reat run-together words as legal
\family default
\newline
Keeps
\family sans
ispell
\family default
from reporting compound words as misspelled.
\layout Itemize
\family sans
Use alternate
\bar under
p
\bar default
ersonal dictionary
\newline
\family default
You can give a filename to a personal dictionary here.
\layout Itemize
\family sans
\bar under
E
\bar default
xtra characters allowed in words
\family default
\newline
Allows you to add nonstandard characters to what
\family typewriter
\shape up
ispell
\family default
\shape default
considers words, e.g.
German umlauts.
This should not normally be needed.
\layout Subsection
Problems
\layout Standard
If you can't spellcheck international characters, try the
\family sans
Input
\protected_separator
Encoding
\protected_separator
switch
\protected_separator
to
\protected_separator
ispell
\family default
option.
\layout Subsection
Limitations
\layout Standard
Even though your
\family typewriter
ispell
\family default
program may correctly check contractions, it doesn't seem to when used
through LyX.
In addition, it is not at all clear that the options to allow runtogether
words, or to include extra characters, or to allow extra affixes, work
as they are supposed to.
\layout Standard
Some users have expressed a wish to be able to globally change the spelling
of a particular word, rather than having to change the spelling separately
for each occurrence of the word.
That feature will be considered for later versions of LyX.
\layout Section
International Support
\layout Standard
This section describes how to use LyX with any language you want.
LyX comes with a default configuration which supports the English language
on a U.S.-style keyboard, with a standard U.S.
paper size and the spell checker set to U.S.
English.
You can change any or all of these settings as desired, and you can make
the changes apply to the current session only, or use them as your new
default configuration.
\layout Standard
If you have a keyboard suited to the language you are using (for example,
a german keyboard for writing in German), and you have correctly configured
your X environment, all you need to do for LyX is tell it your language,
the character encoding, and desired paper size.
Refer to
\begin_inset LatexCommand \ref{sec:langlay}
\end_inset
for more information.
\layout Standard
If, however, you have a U.S.-style keyboard and want to write in a different
language than English, you can use an alternate keymap.
For example, if you have a U.S.-style keyboard but want to write in Italian,
you should configure LyX to use an Italian keymap.
Refer to
\begin_inset LatexCommand \ref{sec:optkey}
\end_inset
for details.
\layout Standard
Finally, you may just want to change a few key mappings or create an entirely
different keymap (for Vulcan, for instance).
You may, for example, normally write in Italian on a U.S.
keyboard but want to include an occasional quotation in German.
In such a case, you can write your own keyboard mapping or modify an existing
one to support the characters you want.
\layout Standard
The details of how to customize LyX to your own language are
\emph on
way
\emph default
beyond the scope of this manual.
You can not only alter the keyboard layout, you can also change the names
of the menus buttons, etc., to reflect your language.
If you want to learn more about writing keymap files and tailoring LyX
to your native tongue, please see the
\emph on
Customization
\emph default
manual for details.
\layout Subsection
\family sans
\bar under
L
\bar default
ayout
\family default
Language Options
\layout Standard
\begin_inset LatexCommand \label{sec:langlay}
\end_inset
The
\family sans
Document
\protected_separator
Layout
\family default
popup lets you set
\family roman
the language and character encoding for your language.
\family default
Access this popup by selecting
\family sans
\bar under
L
\bar default
ayout\SpecialChar \menuseparator
\bar under
D
\bar default
ocument
\family default
.
\layout Standard
Choose your language by clicking on the arrow in t
\family roman
he
\family sans
Language
\family roman
\family default
combo
\family roman
box
\family default
of the
\family sans
Document
\protected_separator
Layout
\family default
popup.
The default is U.S.
English.
Scroll to find the language you want and then click on your choice.
The language name appears in the window.
\begin_float footnote
\layout Standard
In LaTeX terms, selecting a language other than default adds Babel support.
If you do not have Babel installed, refer to the different LaTeX distributions
for it.
\end_float
\layout Standard
The
\family sans
Enco
\bar under
d
\bar default
ing
\family default
box lets you choose the character encoding map you want to use.
The default is the
\family typewriter
ASCII
\family default
encoding which is typically sufficient for U.S.
English.
A superset of the
\family typewriter
ASCII
\family default
encoding is the
\family typewriter
Latin1
\family default
encoding, which includes the characters required by the various Western
European languages.
The third choice,
\family typewriter
Latin2
\family default
, is for support of Eastern European languages.
Click on the popup and then click on the encoding you want to use, and
it appears in the window.
(Refer to
\begin_inset LatexCommand \ref{sec:keytab}
\end_inset
for the character encodings.)
\layout Standard
To change the paper size, select
\family sans
\bar under
L
\bar default
ayout\SpecialChar \menuseparator
P
\bar under
a
\bar default
per
\family default
.
Then use the
\family sans
\bar under
P
\bar default
apersize
\family default
combobox to select a paper size.
The default is the U.S.
Letter paper size.
\layout Standard
To use any language, papersize, or encoding change you made, click on the
\family sans
OK
\family default
button.
Your new configuration will now be used as long as you are in the current
LyX session.
\layout Subsection
The
\family sans
\bar under
O
\bar default
ptions
\bar under
\SpecialChar \menuseparator
K
\bar default
eyboard
\family default
Keymap Configuration
\layout Standard
\begin_inset LatexCommand \label{sec:optkey}
\end_inset
Select
\family sans
\bar under
O
\bar default
ptions
\bar under
\SpecialChar \menuseparator
K
\bar default
eyboard
\family default
to open up the
\family sans
Key
\protected_separator
Mappings
\family default
popup.
This allows you to choose the keymap of your choice for your U.S.-style keyboard.
You can choose primary and secondary keyboard languages and then select
which one you want to use.
\layout Standard
Click on the down arrow for the
\family sans
Primary
\family default
combobox and choose the language keymap you want by clicking on it.
The name them appears in the
\family sans
Primary
\family default
window.
Do the same in the
\family sans
Secondary
\family default
window for a secondary language if you want one.
You can then select either your primary or secondary keymap in the
\family sans
Mapping
\family default
section of the menu, or select
\family sans
\shape up
No
\protected_separator
key
\protected_separator
mapping
\family default
\shape default
if you do not want to use an alternate keymap.
\layout Standard
The
\family sans
\shape up
C
\bar under
h
\bar default
aracter set
\family roman
window allows you to use different character sets if your language uses
more than one.
Greek, for example, uses two, and a Greek user can enter
\family typewriter
iso-8859-7
\family roman
in this window and the appropriate character map (a
\family typewriter
.cdef
\family sans
\family roman
file), if available, is loaded.
\layout Standard
Note that one of the choices for both primary and secondary keymaps is
\family sans
\shape up
\bar under
O
\bar default
ther
\family default
\shape default
.
You can use this to select a custom keymap which you've created yourself.
For example, current distributions of LyX provide
\family roman
an
\family typewriter
american-2
\family roman
keymap f
\family default
ile in the
\family typewriter
$LYX_DIR/kbd
\family default
directory.
This keymapping supports some accented characters for other languages in
addition to the U.S.
keymap.
To use the
\family typewriter
american-2
\family default
keymap, select the
\family sans
\bar under
O
\bar default
ptions
\bar under
\SpecialChar \menuseparator
K
\bar default
eyboard
\family default
menu, select
\family sans
other
\family default
in t
\family roman
he primary selec
\family default
tion box, enter the name of the k
\family roman
eymap (
\family typewriter
american-2
\family roman
) and cli
\family default
ck on
\family sans
\shape up
OK
\family default
\shape default
.
You should now be able to enter accent characters using the new keymap.
\layout Subsection
Character Tables
\layout Standard
\begin_inset LatexCommand \label{sec:keytab}
\end_inset
Here is a table with all the characters in the
\family typewriter
Latin1
\family default
character set.
You should be able to print all these characters directly from the keyboard
without using too many modifier keys (if your keyboard is set up correctly,
that is).
Note that you must set your font encoding (in the
\family sans
Enco
\bar under
d
\bar default
ing
\family default
combobox of the
\family sans
\bar under
L
\bar default
ayout\SpecialChar \menuseparator
\bar under
D
\bar default
ocument
\family default
popup) to
\family sans
latin1
\family default
to use this keyset, and to
\family sans
latin2
\family default
to use the
\family typewriter
Latin2
\family default
keyset.
\layout Standard
\added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable
multicol5
17 17 0 0 -1 -1 -1 -1
1 1 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 1 0 0
8 1 1 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 0 "" ""
8 1 1 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 0 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
0 8 1 1 0 0 0 "" ""
\newline
\size tiny
00
\newline
10
\newline
20
\newline
30
\newline
40
\newline
50
\newline
60
\newline
70
\newline
80
\newline
90
\newline
A0
\newline
B0
\newline
C0
\newline
D0
\newline
E0
\newline
F0
\size default
\newline
\size tiny
00
\size default
\newline
\newline
\newline
\newline
0
\newline
@
\newline
P
\newline
'
\newline
p
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\size tiny
01
\size default
\newline
\newline
\newline
!
\newline
1
\newline
A
\newline
Q
\newline
a
\newline
q
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\size tiny
02
\size default
\newline
\newline
\newline
\begin_inset Quotes eld
\end_inset
\newline
2
\newline
B
\newline
R
\newline
b
\newline
r
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\size tiny
03
\size default
\newline
\newline
\newline
#
\newline
3
\newline
C
\newline
S
\newline
c
\newline
s
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\size tiny
04
\size default
\newline
\newline
\newline
$
\newline
4
\newline
D
\newline
T
\newline
d
\newline
t
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\size tiny
05
\size default
\newline
\newline
\newline
%
\newline
5
\newline
E
\newline
U
\newline
e
\newline
u
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\size tiny
06
\size default
\newline
\newline
\newline
&
\newline
6
\newline
F
\newline
V
\newline
f
\newline
v
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\size tiny
07
\size default
\newline
\newline
\newline
`
\newline
7
\newline
G
\newline
W
\newline
g
\newline
w
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\size tiny
08
\size default
\newline
\newline
\newline
(
\newline
8
\newline
H
\newline
X
\newline
h
\newline
x
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\size tiny
09
\size default
\newline
\newline
\newline
)
\newline
9
\newline
I
\newline
Y
\newline
i
\newline
y
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\size tiny
0A
\size default
\newline
\newline
\newline
*
\newline
:
\newline
J
\newline
Z
\newline
j
\newline
z
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\size tiny
0B
\size default
\newline
\newline
\newline
+
\newline
;
\newline
K
\newline
[
\newline
k
\newline
{
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\size tiny
0C
\size default
\newline
\newline
\newline
,
\newline
<
\newline
L
\newline
\backslash
\newline
l
\newline
|
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\size tiny
0D
\size default
\newline
\newline
\newline
-
\newline
=
\newline
M
\newline
]
\newline
m
\newline
}
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\size tiny
0E
\size default
\newline
\newline
\newline
.
\newline
>
\newline
N
\newline
^
\newline
n
\newline
~
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\size tiny
0F
\size default
\newline
\newline
\newline
/
\newline
?
\newline
O
\newline
_
\newline
o
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\newline
\layout Standard
There are a few things you need to know about this table.
This manual is set up --- by hand, mind you --- to print all of these character
s.
That ain't the default.
Nowhere near, in fact.
Here are some of the details you'll need to bear in mind when using characters
from the
\family typewriter
Latin1
\family default
character set:
\layout Itemize
The characters at entries A2, A4, A5, A6 and AD -- the cent, the yen, the
generic-currency-symbol, the broken vertical bar, and the short dash --
are just plain missing in the default encodings.
We don't know where they are or why this is the case.
\layout Itemize
Even if you've selected
\family sans
latin1
\family default
in the
\family sans
Document
\protected_separator
Layout
\family default
popup, users who have only the
\family typewriter
OT1
\family default
-fonts for LaTeX [or who have the
\family typewriter
T1
\family default
-fonts but aren't using them] will still be missing a few characters: D0,
F0, DE, FE, AB, and BB -- the uppercase and lowercase eth and thorn, and
the french quotes -- won't show up.
\layout Itemize
Users of
\family typewriter
OT1
\family default
-fonts can, however, get the french quotes [characters AB and BB] if they
include the either the package
\family typewriter
umlaute.sty
\family default
or
\family typewriter
german.sty
\family default
in their documents.
\begin_float footnote
\layout Standard
This only holds when you want to input these quotes by yourself.
The automatic quote feature described in Section
\begin_inset LatexCommand \ref{sec:quotes}
\end_inset
, will generate automatically LaTeX code adapted to available fonts and
packages.
\end_float
\layout Standard
The following is a full list of all of the accented characters LyX can display
directly.
It includes not only the accented characters from the previous table, but
also the characters from
\family typewriter
ISO8859--2
\family default
through
\family typewriter
4
\family default
.
\layout Itemize
From
\family typewriter
ISO8859--1
\family default
:
\begin_deeper
\layout Standard
\hfill
diaeresis
\layout Standard
^
\hfill
circumflex
\layout Standard
`
\hfill
grave
\layout Standard
\hfill
acute
\layout Standard
~
\hfill
tilde
\layout Standard
\hfill
cedilla
\layout Standard
\hfill
macron
\begin_float footnote
\end_deeper
\layout Standard
The dead macron in usually not needed, as you will use a non--dead key for
this instead.
For example, S-M-minus, or if
\family typewriter
\shape up
.Xmodmap
\family default
\shape default
is correct, S-M-macron.
\end_float
\layout Itemize
From
\family typewriter
ISO8859--2
\family default
through
\family typewriter
4
\family default
:
\begin_deeper
\layout Standard
\i \^{H}
\i \^{J}
\i \^{h}
\i \^{\j}
\i \^{C}
\i \^{G}
\i \^{S}
\i \^{c}
\i \^{g}
\i \^{s}
\hfill
circumflex
\layout Standard
\i \'{S}
\i \'{Z}
\i \'{s}
\i \'{z}
\i \'{R}
\i \'{L}
\i \'{C}
\i \'{N}
\i \'{r}
\i \'{l}
\i \'{c}
\i \'{n}
\hfill
acute
\layout Standard
\i \~{I}
\i \~{\i}
\i \~{U}
\i \~{u}
\hfill
tilde
\layout Standard
\i \c{S}
\i \c{s}
\i \c{T}
\i \c{t}
\i \c{R}
\i \c{L}
\i \c{G}
\i \c{r}
\i \c{l}
\i \c{g}
\i \c{N}
\i \c{K}
\i \c{n}
\i \c{k}
\hfill
cedilla
\begin_float footnote
\end_deeper
\layout Standard
These characters might not look very nice on screen, but they will be just
fine when run through LaTeX and printed.
\end_float
\begin_deeper
\layout Standard
\i \={E}
\i \={e}
\i \={A}
\i \={I}
\i \={O}
\i \={U}
\i \={a}
\i \={\i}
\i \={o}
\i \={u}
\hfill
macron
\layout Standard
\i \H{O}
\i \H{U}
\i \H{o}
\i \H{u}
\hfill
hungarian umlaut
\end_deeper
\layout Standard
All the characters above are actively supported by TeX fonts.
In addition TeX allows diacritical marks on almost all characters .
This is also supported in LyX
\family roman
\shape up
, by
\family default
\shape default
selecting
\family sans
\shape up
\bar under
O
\shape default
\bar default
ptions\SpecialChar \menuseparator
\shape up
\bar under
L
\shape default
\bar default
aTeX
\family default
and checking the
\family sans
Allo
\bar under
w
\bar default
\protected_separator
accents
\protected_separator
on
\protected_separator
ALL
\protected_separator
chars
\bar under
\family default
\bar default
radio button
\family sans
.
\family default
Also make sure you're using the
\family typewriter
T1
\family default
font-encoding and have the package
\family typewriter
umlaute.sty
\family default
with the definition file
\family typewriter
iso.def
\family default
installed.
\layout Subsection
International Spellcheck Support
\layout Standard
LyX uses the
\family typewriter
ispell
\family default
spelling checker.
You should configure
\family typewriter
ispell
\family default
to work with your system if it does not already.
To get the appropriate language dictionary, refer to the
\family typewriter
Where
\family default
file included with the
\family typewriter
ispell
\family default
package.
Note that some dictionaries do not support the
\family typewriter
Latin1
\family default
encoding.
If you have selected the
\family typewriter
Latin1
\family default
encoding (in the
\family sans
Document
\protected_separator
Layout
\family default
popup) with one of these dictionaries, the spellchecker will not work for
some people.
Refer to section
\begin_inset LatexCommand \ref{sec:spellchecking}
\end_inset
for more details about international spellchecking.
\layout Chapter
LyX and LaTeX
\layout Section
How LyX Uses LaTeX
\layout Standard
\begin_inset LatexCommand \label{sec:lyxandlatex}
\end_inset
This chapter is for both TeX-nicians and the LaTeX-curious.
In it, we'll explain how LyX and LaTeX work together to produce printable
output.
This is the only place in any of the manuals where we assume you know something
about LaTeX.
\layout Standard
At one time, we called LyX a
\begin_inset Quotes eld
\end_inset
WYSIWYM frontend to LaTeX,
\begin_inset Quotes erd
\end_inset
but that's no longer true.
There are frontends to LaTeX out there.
They are basically editors with the ability to run LaTeX and mark any errors
in the file you're editing.
Although LyX
\emph on
is
\emph default
an editor, and it
\emph on
does
\emph default
run LaTeX, and it also marks errors in the file, it also does much, much
more.
Thanks to the WYSIWYM concept,
\begin_float footnote
\layout Standard
What You See Is What You Mean
\end_float
you don't need LaTeX to use LyX effectively.
LyX has also added a few extensions to LaTeX.
\begin_float footnote
\layout Standard
The Team did this for parsing/coding reasons.
The new macros allow LyX to more easily produce LaTeX code and ensure that
the resulting code is correct.
Nothing that you, the user, need worry about.
\end_float
Try the following sometime: select
\family sans
Export\SpecialChar \menuseparator
as
\protected_separator
LaTeX...
\family default
from the
\family sans
\bar under
F
\bar default
ile
\family default
menu, then look at the preamble of the resulting
\family typewriter
.tex
\family default
file.
You'll notice a variety of new macros defined specifically by LyX.
\begin_float footnote
\layout Standard
A little bit of history: at one time, all of these macros were in a
\family typewriter
lyx.sty
\family default
file.
The Team has since decided that
\family typewriter
.tex
\family default
files generated by LyX should be more portable.
So, now the macros are in the preamble.
\end_float
This is all transparent to the user, however.
\layout Standard
There are five commands that automatically invoke LaTeX.
They are:
\layout Itemize
\family sans
View
\protected_separator
\bar under
d
\bar default
vi
\layout Itemize
\family sans
\bar under
V
\bar default
iew
\protected_separator
PostScript
\layout Itemize
\family sans
\bar under
U
\bar default
pdate
\protected_separator
dvi
\layout Itemize
\family sans
Updat
\bar under
e
\bar default
\protected_separator
Postscript
\layout Itemize
\family sans
\bar under
P
\bar default
rint...
\layout Standard
All of these are in the
\family sans
\bar under
F
\bar default
ile
\family default
menu.
They will only invoke LaTeX if the file has changed since the last time
LaTeX was run.
\layout Standard
When you run LaTeX on the file you're editing, LyX performs these steps:
\layout Enumerate
Convert the document to LaTeX and save to a file with the extension
\family typewriter
.tex
\family default
in place of
\family typewriter
.lyx
\family default
.
\layout Enumerate
Run LaTeX on the
\family typewriter
.tex
\family default
file (maybe several times).
\layout Enumerate
If there are any errors, mark them in the document.
\layout Standard
If you've run LaTeX using
\family sans
View
\protected_separator
dvi
\family default
, LyX then executes
\family typewriter
xdvi
\family default
on the Dvi file.
If you've used
\family sans
View
\protected_separator
PostScript
\family default
or
\family sans
\bar under
P
\bar default
rint...
\family default
\protected_separator
, LyX performs two more steps:
\layout Itemize
Run
\family typewriter
dvips
\family default
to convert the Dvi file to PostScript:
\begin_deeper
\layout Itemize
For
\family sans
View
\protected_separator
PostScript
\family default
, the output file has the extension
\family typewriter
.ps_tmp
\layout Itemize
For
\family sans
\bar under
P
\bar default
rint...
\family default
\protected_separator
, the output file has the extension
\family typewriter
.ps
\family default
, as expected.
\end_deeper
\layout Itemize
Execute
\family typewriter
ghostview
\family default
or send the PostScript file to the printer.
\layout Section
\begin_inset Quotes eld
\end_inset
Help! LyX generated an unreadable
\family typewriter
.tex
\family default
file!
\begin_inset Quotes erd
\end_inset
\layout Standard
Die-hard LaTeX users will scream and howl this into the night, then declare
LyX useless, simply because they didn't RTFM.
\begin_float footnote
\layout Standard
Note from
\noun on
John Weiss
\noun default
: I know a certain faculty member who actually did complain to me that LyX
doesn't generate LaTeX files.
Ain't it funny how, sometimes, faculty are the worst at reading instructions?
\end_float
\layout Standard
We're going to set the record straight.
LyX produces two kinds of LaTeX files.
One is human readable.
The other is LyX readable.
Every time LyX executes LaTeX, it produces a LaTeX file that it can easily
scan for errors.
The resulting
\family typewriter
.tex
\family default
file is not human readable.
Don't even try to read it.
If you want a
\family typewriter
.tex
\family default
file that you can send to a colleague, select
\family sans
Export\SpecialChar \menuseparator
as
\protected_separator
LaTeX...
\family default
from the
\family sans
\bar under
F
\bar default
ile
\family default
menu.
\layout Standard
We'll say that again, specially separated for the particularly clue-impaired:
\layout Quote
\added_space_top 0.23cm \added_space_bottom 0.23cm
If you want a
\family typewriter
.tex
\family default
file that you can send to a colleague, select
\family sans
Export\SpecialChar \menuseparator
as
\protected_separator
LaTeX...
\family default
from the
\family sans
\bar under
F
\bar default
ile
\family default
menu.
\layout Section
Translating LaTeX files into LyX
\layout Standard
You can import a LaTeX file into LyX by using the
\family sans
\bar under
F
\bar default
ile\SpecialChar \menuseparator
Import\SpecialChar \menuseparator
LaTeX
\family default
command in LyX.
This will call a Perl script call
\family typewriter
reLyX
\family default
---which will create a file
\family typewriter
foo.lyx
\family default
from the file
\family typewriter
foo.tex
\family default
---and then open that file.
If the translation doesn't work, you can try calling
\family typewriter
reLyX
\family default
from the command line
\begin_float footnote
\layout Standard
When LyX is installed, a separate executable called
\family typewriter
reLyX
\family default
will be placed in the same folder as the
\family typewriter
lyx
\family default
executable (e.g.,
\family typewriter
/usr/local/bin/reLyX
\family default
).
\family typewriter
reLyX
\family default
requires Perl (version 5.002 as of this writing).
\end_float
, possibly using fancier options.
\layout Standard
\family typewriter
reLyX
\family default
will translate most legal LaTeX, but not everything.
It will leave things it doesn't understand in TeX mode, so after translating
a file with
\family typewriter
reLyX
\family default
, you can look for red text and hand-edit it to look right.
\layout Standard
\family typewriter
reLyX
\family default
has its own manpage, which you should read to find out about what LaTeX
isn't supported, bugs (and how to get around them), and how to use the
various options.
\layout Standard
\family typewriter
reLyX
\family default
is relatively new, and still under development.
The bad news is, there are still bugs and some missing features.
The good news is that these may have been fixed by the time you read this.
New versions of
\family typewriter
reLyX
\family default
(which can be installed without reinstalling LyX) will be made available
at the developers' web site
\begin_float footnote
\layout Standard
\family typewriter
http://www.devel.lyx.org
\end_float
as they are written.
\layout Standard
If you can't get
\family typewriter
reLyX
\family default
to work, or you just want to put a piece of LaTeX code into a LyX file,
see Section
\begin_inset LatexCommand \ref{sec:latexcodes}
\end_inset
.
\layout Section
Inserting LaTeX Code into LyX Documents
\layout Standard
\begin_inset LatexCommand \label{sec:latexcodes}
\end_inset
This is a rather important point: You can always insert LaTeX code into
any LyX document.
LyX simply cannot, and will probably never be able to, display every possible
LaTeX construction.
If ever you need to insert LaTeX commands into your LyX document, you have
two options:
\layout Description
Inline: Mark a block of text as LaTeX anywhere, anytime.
\begin_deeper
\layout Itemize
There are three ways to access this command:
\begin_deeper
\layout Itemize
Menu:
\family sans
\bar under
L
\bar default
ayout\SpecialChar \menuseparator
\bar under
T
\bar default
eX
\protected_separator
Style
\layout Itemize
Toolbar Button: The button with the red word
\begin_inset Quotes eld
\end_inset
TeX
\begin_inset Quotes erd
\end_inset
on it.
\layout Itemize
Keybinding:
\family sans
M-c
\protected_separator
t
\layout Standard
It works just like a character style.
You can toggle TeX Style on or off.
When on, everything you type will be in TeX mode.
You can also select a block of text and [for example] hit the TeX button
to mark it as TeX code.
\end_deeper
\layout Itemize
Best used for brief or small bits of LaTeX code.
\begin_deeper
\layout Standard
We've already encountered some of the uses of TeX Style in sections
\begin_inset LatexCommand \ref{sec:abbrev}
\end_inset
and
\begin_inset LatexCommand \ref{sec:ligatures}
\end_inset
.
\end_deeper
\end_deeper
\layout Description
\family sans
LaTeX
\family default
\protected_separator
Environment: We've already encountered this one, too, in section
\begin_inset LatexCommand \ref{sec:LaTeXlayout}
\end_inset
.
\begin_deeper
\layout Itemize
The
\family sans
LaTeX
\family default
paragraph environment is for large blocks of LaTeX code.
Using it is pretty simple if you follow a guideline or two:
\begin_deeper
\layout Itemize
Break lines using
\family sans
C-Return
\family default
.
A plain
\family sans
Return
\family default
will reset the paragraph environment to
\family sans
Standard
\family default
.
\layout Itemize
Don't begin lines with a
\family sans
Space
\family default
.
LyX has a bug that gags on such lines.
[I know, that means you can't indent your LaTeX code to make it look pretty.]
\layout Itemize
You
\emph on
CAN
\emph default
nest the
\family sans
LaTeX
\family default
environment inside of others.
For example, suppose you wanted to do the following:
\begin_deeper
\layout LyX-Code
\backslash
begin{itemize}
\newline
\backslash
item .....
\newline
.
\newline
.
\newline
.
\newline
%Your LaTeX Code to do something
\newline
%
\newline
.
\newline
.
\newline
.
\newline
\backslash
end{itemize}
\layout Standard
You can just nest a
\family sans
LaTeX
\family default
environment inside of an
\family sans
Itemize
\family default
environment to achieve the same thing.
\end_deeper
\end_deeper
\layout Itemize
Here's an example of code in the
\family sans
LaTeX
\family default
paragraph environment.
The code looks like this:
\begin_deeper
\layout LyX-Code
\backslash
begin{tabular}{ll}
\newline
\backslash
begin{minipage}{5cm}
\newline
This is an example for a minipage environment.
You
\newline
can put nearly everything in it, even (non-floating)
\newline
figures and tables.
\newline
\backslash
end{minipage}
\newline
&
\newline
\backslash
begin{minipage}{5cm}
\newline
\backslash
begin{verbatim}
\newline
\backslash
begin{minipage}{5cm}
\newline
This ...
\newline
\backslash
end{minipage}
\newline
\backslash
end{verbatim}
\newline
\backslash
end{minipage}
\newline
\backslash
end{tabular}
\layout Standard
What follows is the
\family sans
LaTeX
\family default
environment proper.
Those of you reading the manual online will only see a bunch of funky text
in red.
Those reading a printed version of the manuals will see the actual results:
\layout LaTeX
\backslash
begin{tabular}{ll}
\newline
\backslash
begin{minipage}{5cm}
\newline
This is an example for a minipage environment.
You can put nearly everything in it, even (non-floating) figures and tables.
\newline
\backslash
end{minipage}
\newline
&
\newline
\backslash
begin{minipage}{5cm}
\newline
\backslash
begin{verbatim}
\newline
\backslash
begin{minipage}{5cm}
\newline
This ...
\newline
\backslash
end{minipage}
\newline
\backslash
end{verbatim}
\newline
\backslash
end{minipage}
\newline
\backslash
end{tabular}
\end_deeper
\end_deeper
\layout Standard
In addition to these two methods, you can also create a separate file containing
some complex LaTeX structure.
You can then use either the
\family sans
TeX
\protected_separator
Style
\family default
or the
\family sans
LaTeX
\family default
paragraph environment to put the LaTeX command
\begin_inset Quotes eld
\end_inset
\family typewriter
\backslash
input{myfile}
\family default
\begin_inset Quotes erd
\end_inset
into your document.
LaTeX will then include the file
\begin_inset Quotes eld
\end_inset
\family typewriter
myfile.tex
\family default
\begin_inset Quotes erd
\end_inset
[note the addition of the
\begin_inset Quotes eld
\end_inset
\family typewriter
.tex
\family default
\begin_inset Quotes erd
\end_inset
suffix] into your document.
We recommend that you only do this if you have a
\family typewriter
.tex
\family default
file which you
\emph on
know
\emph default
works already.
Otherwise, you'll have a big job tracking down LaTeX errors\SpecialChar \ldots{}
\layout Standard
There are a few last notes to emphasize:
\layout Itemize
Inside of LyX, LaTeX code appears
\emph on
in red.
\layout Itemize
LyX
\emph on
does not
\emph default
check if your LaTeX code is correct.
\layout Itemize
Beware reinventing the wheel.
\layout Standard
That last note refers to two things.
First, LyX does have quite a few features tucked into it, and more are
coming.
Be sure to check the manuals to make sure that LyX doesn't have such-and-such
feature before you go off merrily coding LaTeX.
\begin_float footnote
\layout Standard
Note from
\noun on
John Weiss
\noun default
: I seem to do this an awful lot.
Sat down and merrily began coding something to print out labels, only to
learn that there were already 2 different LaTeX packages to do this.
Worse yet - I had them already!
\end_float
Second, there are numerous LaTeX packages out there to do all sorts of
things, from labels to envelopes to fancy multipage tables.
Check out a CTAN site for details (see Section
\begin_inset LatexCommand \ref{sec:ctan}
\end_inset
).
\layout Standard
If you do need to do some wild and fancy things within your document, be
sure to check out a good LaTeX book for assistance.
There are a number of them listed in the bibliography of this manual.
\layout Standard
There are a number of LaTeX commands which have to be placed before the
beginning of the actual text.
They go into the preamble, and this is explained in the next section.
\layout Section
LyX and the LaTeX Preamble
\layout Subsection
About the LaTeX Preamble
\layout Standard
\begin_inset LatexCommand \label{sec:preamble}
\end_inset
If you already know LaTeX, there is no need to explain here what the preamble
is good for.
If you don't, the following will give you some ideas --- we recommend again
that you consult a LaTeX book for further information.
In any case, you should read the points below, because they explain what
you can do and what you don't need to do in the LaTeX preamble of a LyX
document.
\layout Standard
The LaTeX preamble comes at the very beginning of a document,
\emph on
before
\emph default
the text.
It serves to:
\layout Itemize
declare the document class.
LyX already does this for you.
\begin_deeper
\layout Standard
If you're a seasoned LaTeX-nicians, and you have some custom document class
you want to use, check out the
\emph on
Customization Manual
\emph default
for info how to make LyX interface to it.
Be sure to submit your efforts to the LyX Team for inclusion in future
versions!
\end_deeper
\layout Itemize
declare the usage of packages.
LaTeX packages provide special commands, which are only available within
a document when the package has been declared in the preamble.
For example, the
\family typewriter
\family default
package
\family typewriter
indentfirst
\family default
forces all paragraphs to be indented.
There are other packages for labels, envelopes, margins, etc.
\layout Itemize
set counters, variables, lengths and widths.
There are several LaTeX counters and variables which
\emph on
must
\emph default
be set globally from within the preamble in order to have the desired effect.
[There are other variables which you can set and reset inside the document,
too.] Margins are a good example of something which must be set in the preamble.
Another example is the label format for lists.
You can actually set these just about anywhere, but it's best to do it
just once, inside the preamble.
\layout Itemize
declare user defined commands [with
\family typewriter
\backslash
newcommand
\family default
or
\family typewriter
\backslash
renewcommand
\family default
], mostly abbreviations for LaTeX commands which appear very often inside
a document.
Although the preamble is a good place to declare such commands, they
\emph on
can
\emph default
be declared anywhere else [but
\emph on
before
\emph default
they are used for the first time, of course\SpecialChar \ldots{}
].
This can be useful if there is a lot of raw LaTeX code in your document,
which normally should not be the case.
\layout Standard
LyX adds its own set of definitions to the preamble of the
\family typewriter
.tex
\family default
file it produces.
This makes LaTeX files generated by LyX portable.
\layout Subsection
Changing the Preamble
\layout Standard
The commands which LyX adds to the preamble of a LaTeX file are fixed; you
can't change them without patching LyX itself.
You can, however, add your own stuff to the preamble.
There are two ways to do this:
\layout Enumerate
Select
\family sans
\bar under
L
\bar default
aTeX
\protected_separator
preamble
\family default
from the
\family sans
\bar under
L
\bar default
ayout
\family default
menu.
This opens an editing popup in which you can put your favorite commands.
\begin_deeper
\layout Standard
The editing behavior of this popup is toolkit-dependent, so don't expect
the LyX keybindings to work in it.
\end_deeper
\layout Enumerate
Set this in your default template (see
\begin_inset LatexCommand \ref{sec:setup}
\end_inset
), so that it will be the default preamble for any file you create.
\layout Standard
LyX adds anything in the
\family sans
LaTeX
\protected_separator
preamble
\family default
popup to its own built-in preamble.
Before adding your own declarations in the preamble, you should make sure
that LyX doesn't already support what you want to do [remember what we
said about reinventing the wheel?].
Also
\emph on
make sure your preamble code is correct
\emph default
.
LyX doesn't check it.
\layout Subsection
Examples
\layout Standard
Here are some examples of what you can add to a preamble, and what they
do:
\layout Subsubsection
Example #1: Offsets
\layout Standard
There are two variables under LaTeX that control page position:
\family typewriter
\backslash
hoffset
\family default
and
\family typewriter
\backslash
voffset
\family default
.
Their names should be self-explanatory.
These variables are useful if you think for a moment about computer labels.
Sometimes, the size of a print medium and the area of the medium that you
can actually print on aren't the same.
This is where
\family typewriter
\backslash
hoffset
\family default
and
\family typewriter
\backslash
voffset
\family default
come in.
\layout Standard
The default values for
\family typewriter
\backslash
hoffset
\family default
and
\family typewriter
\backslash
voffset
\family default
are both 0 pt.,
\protected_separator
i.
\protected_separator
e.
\protected_separator
the page isn't shifted.
\layout Standard
Unfortunately, some DVI drivers always seem to shift the page.
We have no idea why, or why the sysadmin hasn't fixed such behavior.
If you're using LyX on a system that you don't personally maintain, and
your sysadmin is a doofus,
\family typewriter
\backslash
hoffset
\family default
and
\family typewriter
\backslash
voffset
\family default
can save the day.
Suppose you're left and top margins are always 0.5 inches too big.
You can add this to the preamble:
\layout LyX-Code
\backslash
setlength{
\backslash
hoffset}{-0.5 in}
\layout LyX-Code
\backslash
setlength{
\backslash
voffset}{-0.5 in}
\layout Standard
\SpecialChar \ldots{}
and your margins should now be correct.
\layout Subsubsection
Example #2: Labels
\layout Standard
Speaking of labels, suppose you wanted to print out a bunch of address labels.
There's a rather nice package, available at your nearest CTAN archive,
for printing sheets of labels, called
\family typewriter
labels.sty
\family default
.
Now, your system may not have this package installed by default.
We leave that up to you to check.
You'll also want to read the documentation for it; we're not going to do
that for you.
Since this is an example, however, we'll give you an example of how you
use this package.
\layout Standard
First, make sure you're using the
\family sans
article
\family default
document class.
Next, you need to put the following in your preamble:
\layout LyX-Code
\backslash
usepackage{labels}
\layout LyX-Code
\backslash
LabelCols=3
\layout LyX-Code
\backslash
LabelRows=7
\layout LyX-Code
\backslash
LeftBorder=8mm
\layout LyX-Code
\backslash
RightBorder=8mm
\layout LyX-Code
\backslash
TopBorder=9mm
\layout LyX-Code
\backslash
BottomBorder=2mm
\layout Standard
This sets things up for Avery label sheets, stock #5360.
You're now ready to print labels, but you'll need to insert LaTeX code,
placing the commands
\family typewriter
\backslash
begin{labels}
\family default
and
\family typewriter
\backslash
end{labels}
\family default
around each label text.
This and other special features of
\family typewriter
labels.sty
\family default
are explained in its documentation.
\layout Standard
Someday, someone may write a LyX layout file to support this package directly.
Maybe that someone is you.
\layout Subsubsection
Example #3: Paragraph Indentation
\layout Standard
Americans are trained to indent the first line of
\emph on
every
\emph default
paragraph.
As with all of their other weird quirks, most Americans will whine and
moan until they can have their way and indent the first line of all paragraphs.
\begin_float footnote
\layout Standard
Note from
\noun on
John Weiss
\noun default
: This was written by an American ---
\emph on
me
\emph default
! It's my perception of my fellow countrymen.
Tough if you don't like it.
Thpbpbpbpbpbpbpbp!
\end_float
\layout Standard
Of course, this behavior isn't standard typography.
In books, you typically only indent the first line of a paragraph
\emph on
if
\emph default
it follows another one.
The idea behind indenting the first line of a paragraph is to distinguish
neighboring paragraphs from one another.
If there is no previous paragraph, for example, it follows a figure, or
is the first paragraph in a section, then there is no special indentation.
\layout Standard
If you're a typical American, though, you don't care about such esoteric
things; you want your indentation! Add this to the preamble:
\layout LyX-Code
\backslash
usepackage{indentfirst}
\layout Standard
If your TeX distribution isn't a braindead one, you'll have this package,
and all of your paragraphs will get the indentation you think they deserve.
\layout Subsubsection
Example #4: This Document
\layout Standard
You can also check out the preamble of this document to get an idea of some
of the advanced things you can do.
You'll probably need to make the
\family sans
LaTeX
\protected_separator
preamble
\family default
popup full-screen to see most of it.
Also, there are more examples and an assortment of LaTeX
\begin_inset Quotes eld
\end_inset
dirty tricks
\begin_inset Quotes erd
\end_inset
given in the
\emph on
Extended Features
\emph default
manual.
\layout Section
LyX and LaTeX Errors
\layout Standard
When LyX calls LaTeX, it tells LaTeX to blithely ignore any errors and keep
going.
It then uses the log-file from the LaTeX run to do a post-mortem.
As we stated earlier in the chapter, LyX generates two kinds of
\family typewriter
.tex
\family default
files, one of which it uses to locate errors in the document.
If there was an error someplace, LyX will put a box with the word
\begin_inset Quotes eld
\end_inset
Error
\begin_inset Quotes erd
\end_inset
at the appropriate place in the document.
\begin_float footnote
\layout Standard
LyX will occasionally misguess where the error was.
This will typically happen with tables, figures, math, and the preamble.
\end_float
It will also display a message popup alerting you to the fact that there
were errors.
\layout Standard
You can navigate through the errors by using
\family sans
Go
\protected_separator
to
\protected_separator
\bar under
E
\bar default
rror
\family default
in the
\family sans
\bar under
E
\bar default
dit
\family default
menu.
You can
\begin_inset Quotes eld
\end_inset
open
\begin_inset Quotes erd
\end_inset
the error-boxes and view the error message LaTeX produced by clicking on
it.
\layout Standard
Some folks also like to look at the log file directly, accessible from
\family sans
\bar under
E
\bar default
dit\SpecialChar \menuseparator
\bar under
V
\bar default
iew LaTeX log file
\family default
.
There are some fairly common error messages an warnings.
We'll cover those here.
You should look at a good LaTeX book for a complete listing.
\layout Itemize
\begin_inset Quotes eld
\end_inset
\family typewriter
LaTeX Warning:
\family default
\begin_inset Quotes eld
\end_inset
\begin_deeper
\layout Standard
Anything beginning with these word is a warning message for the purpose
of
\begin_inset Quotes eld
\end_inset
debugging
\begin_inset Quotes erd
\end_inset
the LaTeX code itself.
You'll get messages like this if you added or changed cross-references
or bibliography entries, in which case, LaTeX is trying to tell you that
you need to make another run.
\layout Standard
You can by-and-large ignore these.
\end_deeper
\layout Itemize
\begin_inset Quotes eld
\end_inset
\family typewriter
LaTeX Font Warning:
\family default
\begin_inset Quotes erd
\end_inset
\begin_deeper
\layout Standard
Another warning message, this time about fonts which LaTeX couldn't find.
The rest of the message will often say something about a replacement font
that LaTeX used.
\layout Standard
You can safely ignore these.
\end_deeper
\layout Itemize
\begin_inset Quotes eld
\end_inset
\family typewriter
Overfull
\backslash
hbox
\family default
\begin_inset Quotes erd
\end_inset
\begin_deeper
\layout Standard
LaTeX absolutely
\emph on
loves
\emph default
to spew these out.
They are warning you about lines that were too long and run past the right
margin.
Almost always, this is unnoticeable in the final output.
Or, only one or two characters extend past the margin.
LaTeX seems to generate at least one of these messages for just about any
document you write.
\layout Standard
You can ignore these stupid messages.
Your eyes will tell you if there's a problem with something that's too
wide; just look at the output.
\end_deeper
\layout Itemize
\begin_inset Quotes eld
\end_inset
\family typewriter
Underfull
\backslash
hbox
\family default
\begin_inset Quotes erd
\end_inset
\begin_deeper
\layout Standard
Not quite as common as its cousin.
LaTeX seems to like to print lines that are a bit too wide as opposed to
ones that are a bit too narrow.
We have no idea why.
\layout Standard
You can ignore these, too.
\end_deeper
\layout Itemize
\begin_inset Quotes eld
\end_inset
\family typewriter
Overfull
\backslash
vbox
\family default
\begin_inset Quotes erd
\end_inset
and
\begin_inset Quotes eld
\end_inset
\family typewriter
Underfull
\backslash
vbox
\family default
\begin_inset Quotes erd
\end_inset
\begin_deeper
\layout Standard
Warnings about troubles breaking the page.
Once again, just look at the output.
Your eyes will tell you where something has gone wrong.
\end_deeper
\layout Itemize
\begin_inset Quotes eld
\end_inset
\family typewriter
LaTeX Error: File
\begin_inset Quotes els
\end_inset
Xxxx
\begin_inset Quotes ers
\end_inset
not found
\family default
\begin_inset Quotes erd
\end_inset
\begin_deeper
\layout Standard
The file
\begin_inset Quotes eld
\end_inset
Xxxx
\begin_inset Quotes erd
\end_inset
isn't installed on this system.
This usually appears because some package your document needs isn't installed.
If you didn't touch the preamble or didn't use the
\family typewriter
\backslash
usepackage{}
\family default
command, then one of the packages LyX tried to load is missing.
Use
\family sans
\bar under
H
\bar default
elp\SpecialChar \menuseparator
L
\bar under
a
\bar default
TeX Configuration
\family default
, to get a list of packages that LyX knows about.
This file is updated whenever you reconfigure LyX (using
\family sans
\bar under
O
\bar default
ptions
\bar under
\SpecialChar \menuseparator
R
\bar default
econfigure
\family default
) and tells you which packages have been detected and what they do.
\layout Standard
If you
\emph on
did
\emph default
use the
\family typewriter
\backslash
usepackage{}
\family default
command, and the package in question isn't installed, you'll need to install
it yourself.
\end_deeper
\layout Itemize
\begin_inset Quotes eld
\end_inset
\family typewriter
LaTeX Error: Unknown option
\family default
\begin_inset Quotes erd
\end_inset
\begin_deeper
\layout Standard
Error messages beginning with this are trying to tell you that you specified
a bad or undefined option to a package.
Check the package's documentation.
\end_deeper
\layout Itemize
\begin_inset Quotes eld
\end_inset
\family typewriter
Undefined control sequence
\family default
\begin_inset Quotes erd
\end_inset
\begin_deeper
\layout Standard
If you've inserted LaTeX code into your document, but made a typo, you'll
get one of these.
You may have forgotten to load a package.
In any case, this error message usually means that you used an undefined
command.
\end_deeper
\layout Standard
There are other error and warning messages.
Some are self-explanatory.
These are usually LaTeX messages.
Others are downright cryptic.
These are actually TeX error messages, and we really have
\emph on
no clue
\emph default
what they mean or how to decipher them.
\layout Standard
There's a general sequence you should follow if you get error messages:
\layout Enumerate
Look at the LaTeX code you inserted for typos.
\layout Enumerate
If there are no typos, check and see that you used the command(s) correctly.
\layout Enumerate
If you get a bunch of error boxes piled up at the very top of the document,
it means that there are errors in the preamble.
Start debugging your preamble.
\layout Enumerate
If you didn't add anything to the preamble and didn't add any LaTeX code
to the document, the first suspect is your LaTeX distribution itself.
Check for missing packages and install them.
\layout Enumerate
Okay, so there are no missing packages.
Did you use any of the fine-tuning options in LyX? Specifically, did you
\emph on
misuse
\emph default
any of them, like trying to manually insert lots of
\family sans
Protected
\protected_separator
Blank
\family default
s,
\family sans
Linebreak
\family default
s, or
\family sans
Pagebreak
\family default
s? Did you try to kludge something together with these instead of using
the appropriate paragraph environment?
\layout Enumerate
All right, you didn't use any of the fine-tuning options, you played by
the rules.
Did you try to pull a fancy maneuver? Did you do something funky inside
a table or an equation, like inserting a graphic into a table cell?
\layout Enumerate
Did you go overboard with the nesting? LyX [currently] doesn't check to
make sure you're in the limits for nesting environments.
If you nested a bunch of environments to the
\begin_inset Formula \( 17^{\mathrm{th}} \)
\end_inset
level, that's the problem.
\layout Enumerate
Okay, you didn't get any error messages, but your output looks whacked.
If you have a table or figure that's too wide or long for the page, you
need to:
\begin_deeper
\layout Enumerate
rescale the figure so it fits.
\layout Enumerate
trim down the table so it fits.
\layout Standard
If something else is wrong with the output, and you didn't try to pull anything
fancy or kludge the fine-tuning options, we're not sure what's wrong.
\end_deeper
\layout Standard
If all this doesn't help --- well, then
\emph on
perhaps
\emph default
you might have found a bug in LyX\SpecialChar \ldots{}
\layout Chapter
Credits
\layout Standard
The documentation is something of an exercise in stone-soup.
There are lots of hands that have contributed something to the pot.
\layout Standard
First, we need to give due credit to those who came before us.
They gave us the base upon which the new manuals are built, and some continue
to provide information:
\layout Itemize
\noun on
Matthias Ettrich
\noun default
wrote the original documentation, from which this manual is built, as well
as the introduction to this manual [or the
\begin_inset Quotes eld
\end_inset
LyX Manifesto,
\begin_inset Quotes erd
\end_inset
as some of us call it].
\begin_deeper
\layout Itemize
\noun on
Lars Gullik Bjnnes
\noun default
wrote several minidocs, including some of the information about international
support in LyX.
\layout Itemize
\noun on
Ivan Schreter
\noun default
also wrote a minidoc about international support, specifically about internatio
nal keyboard maps and customization.
\layout Itemize
\noun on
Pascal Andr
\noun default
originally documented the LinuxDoc SGML interface.
\layout Itemize
\noun on
Alejandro Aguilar Sierra
\noun default
originally documented math mode and provided the entries for the math functions
in
\family typewriter
Reference.lyx
\layout Itemize
Special thanks to the LyX Team
\protected_separator
\begin_inset LatexCommand \cite{lyxcredit}
\end_inset
for help and answers to questions.
\end_deeper
\layout Standard
Next, it's time to give credit to the
\begin_inset Quotes eld
\end_inset
LyX Documentation Team,
\begin_inset Quotes erd
\end_inset
all of the people who helped rewrite the old documentation into the form
it had after ver.
0.10:
\layout Itemize
\noun on
David Johnson
\noun default
:
\begin_deeper
\layout Itemize
Contributor to the FAQ and the old
\begin_inset Quotes eld
\end_inset
\family typewriter
HowDoI-.lyx
\family default
\begin_inset Quotes erd
\end_inset
[now defunct].
\layout Itemize
General editing assistance.
\layout Itemize
Documentation of:
\begin_deeper
\layout Itemize
math mode
\layout Itemize
tables
\layout Itemize
spellchecking
\layout Standard
\SpecialChar \ldots{}
in
\family typewriter
UserGuide.lyx
\end_deeper
\end_deeper
\layout Itemize
\noun on
Rich Fields
\noun default
:
\begin_deeper
\layout Itemize
Primary contributor to
\family typewriter
Reference.lyx
\layout Itemize
Documentation of the basic LyX interface in
\family typewriter
UserGuide.lyx
\end_deeper
\layout Itemize
\noun on
Paul Evans
\noun default
:
\begin_deeper
\layout Itemize
Maintainer of the FAQ and the old
\begin_inset Quotes eld
\end_inset
\family typewriter
HowDoI-.lyx
\family default
\begin_inset Quotes erd
\end_inset
[now defunct].
\layout Itemize
Documentation of LinuxDoc in
\family typewriter
UserGuide.lyx
\end_deeper
\layout Itemize
\noun on
Paul Russel:
\begin_deeper
\layout Itemize
Documentation of figures and imported graphics in
\family typewriter
UserGuide.lyx
\end_deeper
\layout Itemize
\noun on
John Raithel
\noun default
:
\begin_deeper
\layout Itemize
Documentation of internationalization features in
\family typewriter
UserGuide.lyx
\end_deeper
\layout Itemize
\noun on
Robin Socha:
\begin_deeper
\layout Itemize
Documentation of:
\begin_deeper
\layout Itemize
footnotes
\layout Itemize
margin notes
\layout Itemize
table of contents
\layout Itemize
cross-references
\layout Standard
\SpecialChar \ldots{}
in
\family typewriter
UserGuide.lyx
\end_deeper
\end_deeper
\layout Itemize
\noun on
Amir Karger
\begin_deeper
\layout Itemize
Primary contributor to
\family typewriter
Tutorial.lyx
\end_deeper
\layout Itemize
\noun on
Matthias Zenker:
\begin_deeper
\layout Itemize
Documentation of
\begin_deeper
\layout Itemize
manual fine-tuning
\layout Itemize
using LaTeX from within LyX
\layout Standard
\SpecialChar \ldots{}
in
\family typewriter
UserGuide.lyx
\end_deeper
\end_deeper
\layout Itemize
\noun on
John Weiss
\noun default
:
\begin_deeper
\layout Itemize
General organization and format of the documents.
\layout Itemize
Documentation of :
\begin_deeper
\layout Itemize
LyX setup
\layout Itemize
paragraph environments, document layout, nesting, typography notes, fonts
\layout Standard
\SpecialChar \ldots{}
with some minor changes to
\noun on
Matthias Ettrich
\noun default
's introduction section in
\family typewriter
UserGuide.lyx
\family default
.
\end_deeper
\layout Itemize
Also responsible for Introduction in
\family typewriter
Tutorial.lyx
\layout Itemize
Editor of the documents.
[from 6/96-fall 1997]
\end_deeper
\layout Standard
After fall of 1997, the LyX Team as a whole took over maintenance of the
documentation.
\layout Bibliography
\bibitem {lyxcredit}
The LyX source tree.
File: CREDITS.
\layout Bibliography
\bibitem {latexbook}
Leslie Lamport.
\emph on
LaTeX: A Document Preparation System.
\emph default
Addison-Wesley, second edition, 1994
\layout Bibliography
\bibitem {latexcompanion}
Michel Goossens, Frank Mittelbach and Alexander Samarin:
\emph on
The
\latex latex
\latex default
LaTeX Companion.
\emph default
Addison-Wesley, 1994
\layout Bibliography
\bibitem {latexguide}
A Guide to LaTeX2e, Kopka and Daly.
\layout Bibliography
\bibitem {texbook}
Donald E.
Knuth.
\emph on
The TeXbook
\the_end
|