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 23535 23536 23537 23538 23539 23540 23541 23542 23543 23544 23545 23546 23547 23548 23549 23550 23551 23552 23553 23554 23555 23556 23557 23558 23559 23560 23561 23562 23563 23564 23565 23566 23567 23568 23569 23570 23571 23572 23573 23574 23575 23576 23577 23578 23579 23580 23581 23582 23583 23584 23585 23586 23587 23588 23589 23590 23591 23592 23593 23594 23595 23596 23597 23598 23599 23600 23601 23602 23603 23604 23605 23606 23607 23608 23609 23610 23611 23612 23613 23614 23615 23616 23617 23618 23619 23620 23621 23622 23623 23624 23625 23626 23627 23628 23629 23630 23631 23632 23633 23634 23635 23636 23637 23638 23639 23640 23641 23642 23643 23644 23645 23646 23647 23648 23649 23650 23651 23652 23653 23654 23655 23656 23657 23658 23659 23660 23661 23662 23663 23664 23665 23666 23667 23668 23669 23670 23671 23672 23673 23674 23675 23676 23677 23678 23679 23680 23681 23682 23683 23684 23685 23686 23687 23688 23689 23690 23691 23692 23693 23694 23695 23696 23697 23698 23699 23700 23701 23702 23703 23704 23705 23706 23707 23708 23709 23710 23711 23712 23713 23714 23715 23716 23717 23718 23719 23720 23721 23722 23723 23724 23725 23726 23727 23728 23729 23730 23731 23732 23733 23734 23735 23736 23737 23738 23739 23740 23741 23742 23743 23744 23745 23746 23747 23748 23749 23750 23751 23752 23753 23754 23755 23756 23757 23758 23759 23760 23761 23762 23763 23764 23765 23766 23767 23768 23769 23770 23771 23772 23773 23774 23775 23776 23777 23778 23779 23780 23781 23782 23783 23784 23785 23786 23787 23788 23789 23790 23791 23792 23793 23794 23795 23796 23797 23798 23799 23800 23801 23802 23803 23804 23805 23806 23807 23808 23809 23810 23811 23812 23813 23814 23815 23816 23817 23818 23819 23820 23821 23822 23823 23824 23825 23826 23827 23828 23829 23830 23831 23832 23833 23834 23835 23836 23837 23838 23839 23840 23841 23842 23843 23844 23845 23846 23847 23848 23849 23850 23851 23852 23853 23854 23855 23856 23857 23858 23859 23860 23861 23862 23863 23864 23865 23866 23867 23868 23869 23870 23871 23872 23873 23874 23875 23876 23877 23878 23879 23880 23881 23882 23883 23884 23885 23886 23887 23888 23889 23890 23891 23892 23893 23894 23895 23896 23897 23898 23899 23900 23901 23902 23903 23904 23905 23906 23907 23908 23909 23910 23911 23912 23913 23914 23915 23916 23917 23918 23919 23920 23921 23922 23923 23924 23925 23926 23927 23928 23929 23930 23931 23932 23933 23934 23935 23936 23937 23938 23939 23940 23941 23942 23943 23944 23945 23946 23947 23948 23949 23950 23951 23952 23953 23954 23955 23956 23957 23958 23959 23960 23961 23962 23963 23964 23965 23966 23967 23968 23969 23970 23971 23972 23973 23974 23975 23976 23977 23978 23979 23980 23981 23982 23983 23984 23985 23986 23987 23988 23989 23990 23991 23992 23993 23994 23995 23996 23997 23998 23999 24000 24001 24002 24003 24004 24005 24006 24007 24008 24009 24010 24011 24012 24013 24014 24015 24016 24017 24018 24019 24020 24021 24022 24023 24024 24025 24026 24027 24028 24029 24030 24031 24032 24033 24034 24035 24036 24037 24038 24039 24040 24041 24042 24043 24044 24045 24046 24047 24048 24049 24050 24051 24052 24053 24054 24055 24056 24057 24058 24059 24060 24061 24062 24063 24064 24065 24066 24067 24068 24069 24070 24071 24072 24073 24074 24075 24076 24077 24078 24079 24080 24081 24082 24083 24084 24085 24086 24087 24088 24089 24090 24091 24092 24093 24094 24095 24096 24097 24098 24099 24100 24101 24102 24103 24104 24105 24106 24107 24108 24109 24110 24111 24112 24113 24114 24115 24116 24117 24118 24119 24120 24121 24122 24123 24124 24125 24126 24127 24128 24129 24130 24131 24132 24133 24134 24135 24136 24137 24138 24139 24140 24141 24142 24143 24144 24145 24146 24147 24148 24149 24150 24151 24152 24153 24154 24155 24156 24157 24158 24159 24160 24161 24162 24163 24164 24165 24166 24167 24168 24169 24170 24171 24172 24173 24174 24175 24176 24177 24178 24179 24180 24181 24182 24183 24184 24185 24186 24187 24188 24189 24190 24191 24192 24193 24194 24195 24196 24197 24198 24199 24200 24201 24202 24203 24204 24205 24206 24207 24208 24209 24210 24211 24212 24213 24214 24215 24216 24217 24218 24219 24220 24221 24222 24223 24224 24225 24226 24227 24228 24229 24230 24231 24232 24233 24234 24235 24236 24237 24238 24239 24240 24241 24242 24243 24244 24245 24246 24247 24248 24249 24250 24251 24252 24253 24254 24255 24256 24257 24258 24259 24260 24261 24262 24263 24264 24265 24266 24267 24268 24269 24270 24271 24272 24273 24274 24275 24276 24277 24278 24279 24280 24281 24282 24283 24284 24285 24286 24287 24288 24289 24290 24291 24292 24293 24294 24295 24296 24297 24298 24299 24300 24301 24302 24303 24304 24305 24306 24307 24308 24309 24310 24311 24312 24313 24314 24315 24316 24317 24318 24319 24320 24321 24322 24323 24324 24325 24326 24327 24328 24329 24330 24331 24332 24333 24334 24335 24336 24337 24338 24339 24340 24341 24342 24343 24344 24345 24346 24347 24348 24349 24350 24351 24352 24353 24354 24355 24356 24357 24358 24359 24360 24361 24362 24363 24364 24365 24366 24367 24368 24369 24370 24371 24372 24373 24374 24375 24376 24377 24378 24379 24380 24381 24382 24383 24384 24385 24386 24387 24388 24389 24390 24391 24392 24393 24394 24395 24396 24397 24398 24399 24400 24401 24402 24403 24404 24405 24406 24407 24408 24409 24410 24411 24412 24413 24414 24415 24416 24417 24418 24419 24420 24421 24422 24423 24424 24425 24426 24427 24428 24429 24430 24431 24432 24433 24434 24435 24436 24437 24438 24439 24440 24441 24442 24443 24444 24445 24446 24447 24448 24449 24450 24451 24452 24453 24454 24455 24456 24457 24458 24459 24460 24461 24462 24463 24464 24465 24466 24467 24468 24469 24470 24471 24472 24473 24474 24475 24476 24477 24478 24479 24480 24481 24482 24483 24484 24485 24486 24487 24488 24489 24490 24491 24492 24493 24494 24495 24496 24497 24498 24499 24500 24501 24502 24503 24504 24505 24506 24507 24508 24509 24510 24511 24512 24513 24514 24515 24516 24517 24518 24519 24520 24521 24522 24523 24524 24525 24526 24527 24528 24529 24530 24531 24532 24533 24534 24535 24536 24537 24538 24539 24540 24541 24542 24543 24544 24545 24546 24547 24548 24549 24550 24551 24552 24553 24554 24555 24556 24557 24558 24559 24560 24561 24562 24563 24564 24565 24566 24567 24568 24569 24570 24571 24572 24573 24574 24575 24576 24577 24578 24579 24580 24581 24582 24583 24584 24585 24586 24587 24588 24589 24590 24591 24592 24593 24594 24595 24596 24597 24598 24599 24600 24601 24602 24603 24604 24605 24606 24607 24608 24609 24610 24611 24612 24613 24614 24615 24616 24617 24618 24619 24620 24621 24622 24623 24624 24625 24626 24627 24628 24629 24630 24631 24632 24633 24634 24635 24636 24637 24638 24639 24640 24641 24642 24643 24644 24645 24646 24647 24648 24649 24650 24651 24652 24653 24654 24655 24656 24657 24658 24659 24660 24661 24662 24663 24664 24665 24666 24667 24668 24669 24670 24671 24672 24673 24674 24675 24676 24677 24678 24679 24680 24681 24682 24683 24684 24685 24686 24687 24688 24689 24690 24691 24692 24693 24694 24695 24696 24697 24698 24699 24700 24701 24702 24703 24704 24705 24706 24707 24708 24709 24710 24711 24712 24713 24714 24715 24716 24717 24718 24719 24720 24721 24722 24723 24724 24725 24726 24727 24728 24729 24730 24731 24732 24733 24734 24735 24736 24737 24738 24739 24740 24741 24742 24743 24744 24745 24746 24747 24748 24749 24750 24751 24752 24753 24754 24755 24756 24757 24758 24759 24760 24761 24762 24763 24764 24765 24766 24767 24768 24769 24770 24771 24772 24773 24774 24775 24776 24777 24778 24779 24780 24781 24782 24783 24784 24785 24786 24787 24788 24789 24790 24791 24792 24793 24794 24795 24796 24797 24798 24799 24800 24801 24802 24803 24804 24805 24806 24807 24808 24809 24810 24811 24812 24813 24814 24815 24816 24817 24818 24819 24820 24821 24822 24823 24824 24825 24826 24827 24828 24829 24830 24831 24832 24833 24834 24835 24836 24837 24838 24839 24840 24841 24842 24843 24844 24845 24846 24847 24848 24849 24850 24851 24852 24853 24854 24855 24856 24857 24858 24859 24860 24861 24862 24863 24864 24865 24866 24867 24868 24869 24870 24871 24872 24873 24874 24875 24876 24877 24878 24879 24880 24881 24882 24883 24884 24885 24886 24887 24888 24889 24890 24891 24892 24893 24894 24895 24896 24897 24898 24899 24900 24901 24902 24903 24904 24905 24906 24907 24908 24909 24910 24911 24912 24913 24914 24915 24916 24917 24918 24919 24920 24921 24922 24923 24924 24925 24926 24927 24928 24929 24930 24931 24932 24933 24934 24935 24936 24937 24938 24939 24940 24941 24942 24943 24944 24945 24946 24947 24948 24949 24950 24951 24952 24953 24954 24955 24956 24957 24958 24959 24960 24961 24962 24963 24964 24965 24966 24967 24968 24969 24970 24971 24972 24973 24974 24975 24976 24977 24978 24979 24980 24981 24982 24983 24984 24985 24986 24987 24988 24989 24990 24991 24992 24993 24994 24995 24996 24997 24998 24999 25000 25001 25002 25003 25004 25005 25006 25007 25008 25009 25010 25011 25012 25013 25014 25015 25016 25017 25018 25019 25020 25021 25022 25023 25024 25025 25026 25027 25028 25029 25030 25031 25032 25033 25034 25035 25036 25037 25038 25039 25040 25041 25042 25043 25044 25045 25046 25047 25048 25049 25050 25051 25052 25053 25054 25055 25056 25057 25058 25059 25060 25061 25062 25063 25064 25065 25066 25067 25068 25069 25070 25071 25072 25073 25074 25075 25076 25077 25078 25079 25080 25081 25082 25083 25084 25085 25086 25087 25088 25089 25090 25091 25092 25093 25094 25095 25096 25097 25098 25099 25100 25101 25102 25103 25104 25105 25106 25107 25108 25109 25110 25111 25112 25113 25114 25115 25116 25117 25118 25119 25120 25121 25122 25123 25124 25125 25126 25127 25128 25129 25130 25131 25132 25133 25134 25135 25136 25137 25138 25139 25140 25141 25142 25143 25144 25145 25146 25147 25148 25149 25150 25151 25152 25153 25154 25155 25156 25157 25158 25159 25160 25161 25162 25163 25164 25165 25166 25167 25168 25169 25170 25171 25172 25173 25174 25175 25176 25177 25178 25179 25180 25181 25182 25183 25184 25185 25186 25187 25188 25189 25190 25191 25192 25193 25194 25195 25196 25197 25198 25199 25200 25201 25202 25203 25204 25205 25206 25207 25208 25209 25210 25211 25212 25213 25214 25215 25216 25217 25218 25219 25220 25221 25222 25223 25224 25225 25226 25227 25228 25229 25230 25231 25232 25233 25234 25235 25236 25237 25238 25239 25240 25241 25242 25243 25244 25245 25246 25247 25248 25249 25250 25251 25252 25253 25254 25255 25256 25257 25258 25259 25260 25261 25262 25263 25264 25265 25266 25267 25268 25269 25270 25271 25272 25273 25274 25275 25276 25277 25278 25279 25280 25281 25282 25283 25284 25285 25286 25287 25288 25289 25290 25291 25292 25293 25294 25295 25296 25297 25298 25299 25300 25301 25302 25303 25304 25305 25306 25307 25308 25309 25310 25311 25312 25313 25314 25315 25316 25317 25318 25319 25320 25321 25322 25323 25324 25325 25326 25327 25328 25329 25330 25331 25332 25333 25334 25335 25336 25337 25338 25339 25340 25341 25342 25343 25344 25345 25346 25347 25348 25349 25350 25351 25352 25353 25354 25355 25356 25357 25358 25359 25360 25361 25362 25363 25364 25365 25366 25367 25368 25369 25370 25371 25372 25373 25374 25375 25376 25377 25378 25379 25380 25381 25382 25383 25384 25385 25386 25387 25388 25389 25390 25391 25392 25393 25394 25395 25396 25397 25398 25399 25400 25401 25402 25403 25404 25405 25406 25407 25408 25409 25410 25411 25412 25413 25414 25415 25416 25417 25418 25419 25420 25421 25422 25423 25424 25425 25426 25427 25428 25429 25430 25431 25432 25433 25434 25435 25436 25437 25438 25439 25440 25441 25442 25443 25444 25445 25446 25447 25448 25449 25450 25451 25452 25453 25454 25455 25456 25457 25458 25459 25460 25461 25462 25463 25464 25465 25466 25467 25468 25469 25470 25471 25472 25473 25474 25475 25476 25477 25478 25479 25480 25481 25482 25483 25484 25485 25486 25487 25488 25489 25490 25491 25492 25493 25494 25495 25496 25497 25498 25499 25500 25501 25502 25503 25504 25505 25506 25507 25508 25509 25510 25511 25512 25513 25514 25515 25516 25517 25518 25519 25520 25521 25522 25523 25524 25525 25526 25527 25528 25529 25530 25531 25532 25533 25534 25535 25536 25537 25538 25539 25540 25541 25542 25543 25544 25545 25546 25547 25548 25549 25550 25551 25552 25553 25554 25555 25556 25557 25558 25559 25560 25561 25562 25563 25564 25565 25566 25567 25568 25569 25570 25571 25572 25573 25574 25575 25576 25577 25578 25579 25580 25581 25582 25583 25584 25585 25586 25587 25588 25589 25590 25591 25592 25593 25594 25595 25596 25597 25598 25599 25600 25601 25602 25603 25604 25605 25606 25607 25608 25609 25610 25611 25612 25613 25614 25615 25616 25617 25618 25619 25620 25621 25622 25623 25624 25625 25626 25627 25628 25629 25630 25631 25632 25633 25634 25635 25636 25637 25638 25639 25640 25641 25642 25643 25644 25645 25646 25647 25648 25649 25650 25651 25652 25653 25654 25655 25656 25657 25658 25659 25660 25661 25662 25663 25664 25665 25666 25667 25668 25669 25670 25671 25672 25673 25674 25675 25676 25677 25678 25679 25680 25681 25682 25683 25684 25685 25686 25687 25688 25689 25690 25691 25692 25693 25694 25695 25696 25697 25698 25699 25700 25701 25702 25703 25704 25705 25706 25707 25708 25709 25710 25711 25712 25713 25714 25715 25716 25717 25718 25719 25720 25721 25722 25723 25724 25725 25726 25727 25728 25729 25730 25731 25732 25733 25734 25735 25736 25737 25738 25739 25740 25741 25742 25743 25744 25745 25746 25747 25748 25749 25750 25751 25752 25753 25754 25755 25756 25757 25758 25759 25760 25761 25762 25763 25764 25765 25766 25767 25768 25769 25770 25771 25772 25773 25774 25775 25776 25777 25778 25779 25780 25781 25782 25783 25784 25785 25786 25787 25788 25789 25790 25791 25792 25793 25794 25795 25796 25797 25798 25799 25800 25801 25802 25803 25804 25805 25806 25807 25808 25809 25810 25811 25812 25813 25814 25815 25816 25817 25818 25819 25820 25821 25822 25823 25824 25825 25826 25827 25828 25829 25830 25831 25832 25833 25834 25835 25836 25837 25838 25839 25840 25841 25842 25843 25844 25845 25846 25847 25848 25849 25850 25851 25852 25853 25854 25855 25856 25857 25858 25859 25860 25861 25862 25863 25864 25865 25866 25867 25868 25869 25870 25871 25872 25873 25874 25875 25876 25877 25878 25879 25880 25881 25882 25883 25884 25885 25886 25887 25888 25889 25890 25891 25892 25893 25894 25895 25896 25897 25898 25899 25900 25901 25902 25903 25904 25905 25906 25907 25908 25909 25910 25911 25912 25913 25914 25915 25916 25917 25918 25919 25920 25921 25922 25923 25924 25925 25926 25927 25928 25929 25930 25931 25932 25933 25934 25935 25936 25937 25938 25939 25940 25941 25942 25943 25944 25945 25946 25947 25948 25949 25950 25951 25952 25953 25954 25955 25956 25957 25958 25959 25960 25961 25962 25963 25964 25965 25966 25967 25968 25969 25970 25971 25972 25973 25974 25975 25976 25977 25978 25979 25980 25981 25982 25983 25984 25985 25986 25987 25988 25989 25990 25991 25992 25993 25994 25995 25996 25997 25998 25999 26000 26001 26002 26003 26004 26005 26006 26007 26008 26009 26010 26011 26012 26013 26014 26015 26016 26017 26018 26019 26020 26021 26022 26023 26024 26025 26026 26027 26028 26029 26030 26031 26032 26033 26034 26035 26036 26037 26038 26039 26040 26041 26042 26043 26044 26045 26046 26047 26048 26049 26050 26051 26052 26053 26054 26055 26056 26057 26058 26059 26060 26061 26062 26063 26064 26065 26066 26067 26068 26069 26070 26071 26072 26073 26074 26075 26076 26077 26078 26079 26080 26081 26082 26083 26084 26085 26086 26087 26088 26089 26090 26091 26092 26093 26094 26095 26096 26097 26098 26099 26100 26101 26102 26103 26104 26105 26106 26107 26108 26109 26110 26111 26112 26113 26114 26115 26116 26117 26118 26119 26120 26121 26122 26123 26124 26125 26126 26127 26128 26129 26130 26131 26132 26133 26134 26135 26136 26137 26138 26139 26140 26141 26142 26143 26144 26145 26146 26147 26148 26149 26150 26151 26152 26153 26154 26155 26156 26157 26158 26159 26160 26161 26162 26163 26164 26165 26166 26167 26168 26169 26170 26171 26172 26173 26174 26175 26176 26177 26178 26179 26180 26181 26182 26183 26184 26185 26186 26187 26188 26189 26190 26191 26192 26193 26194 26195 26196 26197 26198 26199 26200 26201 26202 26203 26204 26205 26206 26207 26208 26209 26210 26211 26212 26213 26214 26215 26216 26217 26218 26219 26220 26221 26222 26223 26224 26225 26226 26227 26228 26229 26230 26231 26232 26233 26234 26235 26236 26237 26238 26239 26240 26241 26242 26243 26244 26245 26246 26247 26248 26249 26250 26251 26252 26253 26254 26255 26256 26257 26258 26259 26260 26261 26262 26263 26264 26265 26266 26267 26268 26269 26270 26271 26272 26273 26274 26275 26276 26277 26278 26279 26280 26281 26282 26283 26284 26285 26286 26287 26288 26289 26290 26291 26292 26293 26294 26295 26296 26297 26298 26299 26300 26301 26302 26303 26304 26305 26306 26307 26308 26309 26310 26311 26312 26313 26314 26315 26316 26317 26318 26319 26320 26321 26322 26323 26324 26325 26326 26327 26328 26329 26330 26331 26332 26333 26334 26335 26336 26337 26338 26339 26340 26341 26342 26343 26344 26345 26346 26347 26348 26349 26350 26351 26352 26353 26354 26355 26356 26357 26358 26359 26360 26361 26362 26363 26364 26365 26366 26367 26368 26369 26370 26371 26372 26373 26374 26375 26376 26377 26378 26379 26380 26381 26382 26383 26384 26385 26386 26387 26388 26389 26390 26391 26392 26393 26394 26395 26396 26397 26398 26399 26400 26401 26402 26403 26404 26405 26406 26407 26408 26409 26410 26411 26412 26413 26414 26415 26416 26417 26418 26419 26420 26421 26422 26423 26424 26425 26426 26427 26428 26429 26430 26431 26432 26433 26434 26435 26436 26437 26438 26439 26440 26441 26442 26443 26444 26445 26446 26447 26448 26449 26450 26451 26452 26453 26454 26455 26456 26457 26458 26459 26460 26461 26462 26463 26464 26465 26466 26467 26468 26469 26470 26471 26472 26473 26474 26475 26476 26477 26478 26479 26480 26481 26482 26483 26484 26485 26486 26487 26488 26489 26490 26491 26492 26493 26494 26495 26496 26497 26498 26499 26500 26501 26502 26503 26504 26505 26506 26507 26508 26509 26510 26511 26512 26513 26514 26515 26516 26517 26518 26519 26520 26521 26522 26523 26524 26525 26526 26527 26528 26529 26530 26531 26532 26533 26534 26535 26536 26537 26538 26539 26540 26541 26542 26543 26544 26545 26546 26547 26548 26549 26550 26551 26552 26553 26554 26555 26556 26557 26558 26559 26560 26561 26562 26563 26564 26565 26566 26567 26568 26569 26570 26571 26572 26573 26574 26575 26576 26577 26578 26579 26580 26581 26582 26583 26584 26585 26586 26587 26588 26589 26590 26591 26592 26593 26594 26595 26596 26597 26598 26599 26600 26601 26602 26603 26604 26605 26606 26607 26608 26609 26610 26611 26612 26613 26614 26615 26616 26617 26618 26619 26620 26621 26622 26623 26624 26625 26626 26627 26628 26629 26630 26631 26632 26633 26634 26635 26636 26637 26638 26639 26640 26641 26642 26643 26644 26645 26646 26647 26648 26649 26650 26651 26652 26653 26654 26655 26656 26657 26658 26659 26660 26661 26662 26663 26664 26665 26666 26667 26668 26669 26670 26671 26672 26673 26674 26675 26676 26677 26678 26679 26680 26681 26682 26683 26684 26685 26686 26687 26688 26689 26690 26691 26692 26693 26694 26695 26696 26697 26698 26699 26700 26701 26702 26703 26704 26705 26706 26707 26708 26709 26710 26711 26712 26713 26714 26715 26716 26717 26718 26719 26720 26721 26722 26723 26724 26725 26726 26727 26728 26729 26730 26731 26732 26733 26734 26735 26736 26737 26738 26739 26740 26741 26742 26743 26744 26745 26746 26747 26748 26749 26750 26751 26752 26753 26754 26755 26756 26757 26758 26759 26760 26761 26762 26763 26764 26765 26766 26767 26768 26769 26770 26771 26772 26773 26774 26775 26776 26777 26778 26779 26780 26781 26782 26783 26784 26785 26786 26787 26788 26789 26790 26791 26792 26793 26794 26795 26796 26797 26798 26799 26800 26801 26802 26803 26804 26805 26806 26807 26808 26809 26810 26811 26812 26813 26814 26815 26816 26817 26818 26819 26820 26821 26822 26823 26824 26825 26826 26827 26828 26829 26830 26831 26832 26833 26834 26835 26836 26837 26838 26839 26840 26841 26842 26843 26844 26845 26846 26847 26848 26849 26850 26851 26852 26853 26854 26855 26856 26857 26858 26859 26860 26861 26862 26863 26864 26865 26866 26867 26868 26869 26870 26871 26872 26873 26874 26875 26876 26877 26878 26879 26880 26881 26882 26883 26884 26885 26886 26887 26888 26889 26890 26891 26892 26893 26894 26895 26896 26897 26898 26899 26900 26901 26902 26903 26904 26905 26906 26907 26908 26909 26910 26911 26912 26913 26914 26915 26916 26917 26918 26919 26920 26921 26922 26923 26924 26925 26926 26927 26928 26929 26930 26931 26932 26933 26934 26935 26936 26937 26938 26939 26940 26941 26942 26943 26944 26945 26946 26947 26948 26949 26950 26951 26952 26953 26954 26955 26956 26957 26958 26959 26960 26961 26962 26963 26964 26965 26966 26967 26968 26969 26970 26971 26972 26973 26974 26975 26976 26977 26978 26979 26980 26981 26982 26983 26984 26985 26986 26987 26988 26989 26990 26991 26992 26993 26994 26995 26996 26997 26998 26999 27000 27001 27002 27003 27004 27005 27006 27007 27008 27009 27010 27011 27012 27013 27014 27015 27016 27017 27018 27019 27020 27021 27022 27023 27024 27025 27026 27027 27028 27029 27030 27031 27032 27033 27034 27035 27036 27037 27038 27039 27040 27041 27042 27043 27044 27045 27046 27047 27048 27049 27050 27051 27052 27053 27054 27055 27056 27057 27058 27059 27060 27061 27062 27063 27064 27065 27066 27067 27068 27069 27070 27071 27072 27073 27074 27075 27076 27077 27078 27079 27080 27081 27082 27083 27084 27085 27086 27087 27088 27089 27090 27091 27092 27093 27094 27095 27096 27097 27098 27099 27100 27101 27102 27103 27104 27105 27106 27107 27108 27109 27110 27111 27112 27113 27114 27115 27116 27117 27118 27119 27120 27121 27122 27123 27124 27125 27126 27127 27128 27129 27130 27131 27132 27133 27134 27135 27136 27137 27138 27139 27140 27141 27142 27143 27144 27145 27146 27147 27148 27149 27150 27151 27152 27153 27154 27155 27156 27157 27158 27159 27160 27161 27162 27163 27164 27165 27166 27167 27168 27169 27170 27171 27172 27173 27174 27175 27176 27177 27178 27179 27180 27181 27182 27183 27184 27185 27186 27187 27188 27189 27190 27191 27192 27193 27194 27195 27196 27197 27198 27199 27200 27201 27202 27203 27204 27205 27206 27207 27208 27209 27210 27211 27212 27213 27214 27215 27216 27217 27218 27219 27220 27221 27222 27223 27224 27225 27226 27227 27228 27229 27230 27231 27232 27233 27234 27235 27236 27237 27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271 27272 27273 27274 27275 27276 27277 27278 27279 27280 27281 27282 27283 27284 27285 27286 27287 27288 27289 27290 27291 27292 27293 27294 27295 27296 27297 27298 27299 27300 27301 27302 27303 27304 27305 27306 27307 27308 27309 27310 27311 27312 27313 27314 27315 27316 27317 27318 27319 27320 27321 27322 27323 27324 27325 27326 27327 27328 27329 27330 27331 27332 27333 27334 27335 27336 27337 27338 27339 27340 27341 27342 27343 27344 27345 27346 27347 27348 27349 27350 27351 27352 27353 27354 27355 27356 27357 27358 27359 27360 27361 27362 27363 27364 27365 27366 27367 27368 27369 27370 27371 27372 27373 27374 27375 27376 27377 27378 27379 27380 27381 27382 27383 27384 27385 27386 27387 27388 27389 27390 27391 27392 27393 27394 27395 27396 27397 27398 27399 27400 27401 27402 27403 27404 27405 27406 27407 27408 27409 27410 27411 27412 27413 27414 27415 27416 27417 27418 27419 27420 27421 27422 27423 27424 27425 27426 27427 27428 27429 27430 27431 27432 27433 27434 27435 27436 27437 27438 27439 27440 27441 27442 27443 27444 27445 27446 27447 27448 27449 27450 27451 27452 27453 27454 27455 27456 27457 27458 27459 27460 27461 27462 27463 27464 27465 27466 27467 27468 27469 27470 27471 27472 27473 27474 27475 27476 27477 27478 27479 27480 27481 27482 27483 27484 27485 27486 27487 27488 27489 27490 27491 27492 27493 27494 27495 27496 27497 27498 27499 27500 27501 27502 27503 27504 27505 27506 27507 27508 27509 27510 27511 27512 27513 27514 27515 27516 27517 27518 27519 27520 27521 27522 27523 27524 27525 27526 27527 27528 27529 27530 27531 27532 27533 27534 27535 27536 27537 27538 27539 27540 27541 27542 27543 27544 27545 27546 27547 27548 27549 27550 27551 27552 27553 27554 27555 27556 27557 27558 27559 27560 27561 27562 27563 27564 27565 27566 27567 27568 27569 27570 27571 27572 27573 27574 27575 27576 27577 27578 27579 27580 27581 27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 27670 27671 27672 27673 27674 27675 27676 27677 27678 27679 27680 27681 27682 27683 27684 27685 27686 27687 27688 27689 27690 27691 27692 27693 27694 27695 27696 27697 27698 27699 27700 27701 27702 27703 27704 27705 27706 27707 27708 27709 27710 27711 27712 27713 27714 27715 27716 27717 27718 27719 27720 27721 27722 27723 27724 27725 27726 27727 27728 27729 27730 27731 27732 27733 27734 27735 27736 27737 27738 27739 27740 27741 27742 27743 27744 27745 27746 27747 27748 27749 27750 27751 27752 27753 27754 27755 27756 27757 27758 27759 27760 27761 27762 27763 27764 27765 27766 27767 27768 27769 27770 27771 27772 27773 27774 27775 27776 27777 27778 27779 27780 27781 27782 27783 27784 27785 27786 27787 27788 27789 27790 27791 27792 27793 27794 27795 27796 27797 27798 27799 27800 27801 27802 27803 27804 27805 27806 27807 27808 27809 27810 27811 27812 27813 27814 27815 27816 27817 27818 27819 27820 27821 27822 27823 27824 27825 27826 27827 27828 27829 27830 27831 27832 27833 27834 27835 27836 27837 27838 27839 27840 27841 27842 27843 27844 27845 27846 27847 27848 27849 27850 27851 27852 27853 27854 27855 27856 27857 27858 27859 27860 27861 27862 27863 27864 27865 27866 27867 27868 27869 27870 27871 27872 27873 27874 27875 27876 27877 27878 27879 27880 27881 27882 27883 27884 27885 27886 27887 27888 27889 27890 27891 27892 27893 27894 27895 27896 27897 27898 27899 27900 27901 27902 27903 27904 27905 27906 27907 27908 27909 27910 27911 27912 27913 27914 27915 27916 27917 27918 27919 27920 27921 27922 27923 27924 27925 27926 27927 27928 27929 27930 27931 27932 27933 27934 27935 27936 27937 27938 27939 27940 27941 27942 27943 27944 27945 27946 27947 27948 27949 27950 27951 27952 27953 27954 27955 27956 27957 27958 27959 27960 27961 27962 27963 27964 27965 27966 27967 27968 27969 27970 27971 27972 27973 27974 27975 27976 27977 27978 27979 27980 27981 27982 27983 27984 27985 27986 27987 27988 27989 27990 27991 27992 27993 27994 27995 27996 27997 27998 27999 28000 28001 28002 28003 28004 28005 28006 28007 28008 28009 28010 28011 28012 28013 28014 28015 28016 28017 28018 28019 28020 28021 28022 28023 28024 28025 28026 28027 28028 28029 28030 28031 28032 28033 28034 28035 28036 28037 28038 28039 28040 28041 28042 28043 28044 28045 28046 28047 28048 28049 28050 28051 28052 28053 28054 28055 28056 28057 28058 28059 28060 28061 28062 28063 28064 28065 28066 28067 28068 28069 28070 28071 28072 28073 28074 28075 28076 28077 28078 28079 28080 28081 28082 28083 28084 28085 28086 28087 28088 28089 28090 28091 28092 28093 28094 28095 28096 28097 28098 28099 28100 28101 28102 28103 28104 28105 28106 28107 28108 28109 28110 28111 28112 28113 28114 28115 28116 28117 28118 28119 28120 28121 28122 28123 28124 28125 28126 28127 28128 28129 28130 28131 28132 28133 28134 28135 28136 28137 28138 28139 28140 28141 28142 28143 28144 28145 28146 28147 28148 28149 28150 28151 28152 28153 28154 28155 28156 28157 28158 28159 28160 28161 28162 28163 28164 28165 28166 28167 28168 28169 28170 28171 28172 28173 28174 28175 28176 28177 28178 28179 28180 28181 28182 28183 28184 28185 28186 28187 28188 28189 28190 28191 28192 28193 28194 28195 28196 28197 28198 28199 28200 28201 28202 28203 28204 28205 28206 28207 28208 28209 28210 28211 28212 28213 28214 28215 28216 28217 28218 28219 28220 28221 28222 28223 28224 28225 28226 28227 28228 28229 28230 28231 28232 28233 28234 28235 28236 28237 28238 28239 28240 28241 28242 28243 28244 28245 28246 28247 28248 28249 28250 28251 28252 28253 28254 28255 28256 28257 28258 28259 28260 28261 28262 28263 28264 28265 28266 28267 28268 28269 28270 28271 28272 28273 28274 28275 28276 28277 28278 28279 28280 28281 28282 28283 28284 28285 28286 28287 28288 28289 28290 28291 28292 28293 28294 28295 28296 28297 28298 28299 28300 28301 28302 28303 28304 28305 28306 28307 28308 28309 28310 28311 28312 28313 28314 28315 28316 28317 28318 28319 28320 28321 28322 28323 28324 28325 28326 28327 28328 28329 28330 28331 28332 28333 28334 28335 28336 28337 28338 28339 28340 28341 28342 28343 28344 28345 28346 28347 28348 28349 28350 28351 28352 28353 28354 28355 28356 28357 28358 28359 28360 28361 28362 28363 28364 28365 28366 28367 28368 28369 28370 28371 28372 28373 28374 28375 28376 28377 28378 28379 28380 28381 28382 28383 28384 28385 28386 28387 28388 28389 28390 28391 28392 28393 28394 28395 28396 28397 28398 28399 28400 28401 28402 28403 28404 28405 28406 28407 28408 28409 28410 28411 28412 28413 28414 28415 28416 28417 28418 28419 28420 28421 28422 28423 28424 28425 28426 28427 28428 28429 28430 28431 28432 28433 28434 28435 28436 28437 28438 28439 28440 28441 28442 28443 28444 28445 28446 28447 28448 28449 28450 28451 28452 28453 28454 28455 28456 28457 28458 28459 28460 28461 28462 28463 28464 28465 28466 28467 28468 28469 28470 28471 28472 28473 28474 28475 28476 28477 28478 28479 28480 28481 28482 28483 28484 28485 28486 28487 28488 28489 28490 28491 28492 28493 28494 28495 28496 28497 28498 28499 28500 28501 28502 28503 28504 28505 28506 28507 28508 28509 28510 28511 28512 28513 28514 28515 28516 28517 28518 28519 28520 28521 28522 28523 28524 28525 28526 28527 28528 28529 28530 28531 28532 28533 28534 28535 28536 28537 28538 28539 28540 28541 28542 28543 28544 28545 28546 28547 28548 28549 28550 28551 28552 28553 28554 28555 28556 28557 28558 28559 28560 28561 28562 28563 28564 28565 28566 28567 28568 28569 28570 28571 28572 28573 28574 28575 28576 28577 28578 28579 28580 28581 28582 28583 28584 28585 28586 28587 28588 28589 28590 28591 28592 28593 28594 28595 28596 28597 28598 28599 28600 28601 28602 28603 28604 28605 28606 28607 28608 28609 28610 28611 28612 28613 28614 28615 28616 28617 28618 28619 28620 28621 28622 28623 28624 28625 28626 28627 28628 28629 28630 28631 28632 28633 28634 28635 28636 28637 28638 28639 28640 28641 28642 28643 28644 28645 28646 28647 28648 28649 28650 28651 28652 28653 28654 28655 28656 28657 28658 28659 28660 28661 28662 28663 28664 28665 28666 28667 28668 28669 28670 28671 28672 28673 28674 28675 28676 28677 28678 28679 28680 28681 28682 28683 28684 28685 28686 28687 28688 28689 28690 28691 28692 28693 28694 28695 28696 28697 28698 28699 28700 28701 28702 28703 28704 28705 28706 28707 28708 28709 28710 28711 28712 28713 28714 28715 28716 28717 28718 28719 28720 28721 28722 28723 28724 28725 28726 28727 28728 28729 28730 28731 28732 28733 28734 28735 28736 28737 28738 28739 28740 28741 28742 28743 28744 28745 28746 28747 28748 28749 28750 28751 28752 28753 28754 28755 28756 28757 28758 28759 28760 28761 28762 28763 28764 28765 28766 28767 28768 28769 28770 28771 28772 28773 28774 28775 28776 28777 28778 28779 28780 28781 28782 28783 28784 28785 28786 28787 28788 28789 28790 28791 28792 28793 28794 28795 28796 28797 28798 28799 28800 28801 28802 28803 28804 28805 28806 28807 28808 28809 28810 28811 28812 28813 28814 28815 28816 28817 28818 28819 28820 28821 28822 28823 28824 28825 28826 28827 28828 28829 28830 28831 28832 28833 28834 28835 28836 28837 28838 28839 28840 28841 28842 28843 28844 28845 28846 28847 28848 28849 28850 28851 28852 28853 28854 28855 28856 28857 28858 28859 28860 28861 28862 28863 28864 28865 28866 28867 28868 28869 28870 28871 28872 28873 28874 28875 28876 28877 28878 28879 28880 28881 28882 28883 28884 28885 28886 28887 28888 28889 28890 28891 28892 28893 28894 28895 28896 28897 28898 28899 28900 28901 28902 28903 28904 28905 28906 28907 28908 28909 28910 28911 28912 28913 28914 28915 28916 28917 28918 28919 28920 28921 28922 28923 28924 28925 28926 28927 28928 28929 28930 28931 28932 28933 28934 28935 28936 28937 28938 28939 28940 28941 28942 28943 28944 28945 28946 28947 28948 28949 28950 28951 28952 28953 28954 28955 28956 28957 28958 28959 28960 28961 28962 28963 28964 28965 28966 28967 28968 28969 28970 28971 28972 28973 28974 28975 28976 28977 28978 28979 28980 28981 28982 28983 28984 28985 28986 28987 28988 28989 28990 28991 28992 28993 28994 28995 28996 28997 28998 28999 29000 29001 29002 29003 29004 29005 29006 29007 29008 29009 29010 29011 29012 29013 29014 29015 29016 29017 29018 29019 29020 29021 29022 29023 29024 29025 29026 29027 29028 29029 29030 29031 29032 29033 29034 29035 29036 29037 29038 29039 29040 29041 29042 29043 29044 29045 29046 29047 29048 29049 29050 29051 29052 29053 29054 29055 29056 29057 29058 29059 29060 29061 29062 29063 29064 29065 29066 29067 29068 29069 29070 29071 29072 29073 29074 29075 29076 29077 29078 29079 29080 29081 29082 29083 29084 29085 29086 29087 29088 29089 29090 29091 29092 29093 29094 29095 29096 29097 29098 29099 29100 29101 29102 29103 29104 29105 29106 29107 29108 29109 29110 29111 29112 29113 29114 29115 29116 29117 29118 29119 29120 29121 29122 29123 29124 29125 29126 29127 29128 29129 29130 29131 29132 29133 29134 29135 29136 29137 29138 29139 29140 29141 29142 29143 29144 29145 29146 29147 29148 29149 29150 29151 29152 29153 29154 29155 29156 29157 29158 29159 29160 29161 29162 29163 29164 29165 29166 29167 29168 29169 29170 29171 29172 29173 29174 29175 29176 29177 29178 29179 29180 29181 29182 29183 29184 29185 29186 29187 29188 29189 29190 29191 29192 29193 29194 29195 29196 29197 29198 29199 29200 29201 29202 29203 29204 29205 29206 29207 29208 29209 29210 29211 29212 29213 29214 29215 29216 29217 29218 29219 29220 29221 29222 29223 29224 29225 29226 29227 29228 29229 29230 29231 29232 29233 29234 29235 29236 29237 29238 29239 29240 29241 29242 29243 29244 29245 29246 29247 29248 29249 29250 29251 29252 29253 29254 29255 29256 29257 29258 29259 29260 29261 29262 29263 29264 29265 29266 29267 29268 29269 29270 29271 29272 29273 29274 29275 29276 29277 29278 29279 29280 29281 29282 29283 29284 29285 29286 29287 29288 29289 29290 29291 29292 29293 29294 29295 29296 29297 29298 29299 29300 29301 29302 29303 29304 29305 29306 29307 29308 29309 29310 29311 29312 29313 29314 29315 29316 29317 29318 29319 29320 29321 29322 29323 29324 29325 29326 29327 29328 29329 29330 29331 29332 29333 29334 29335 29336 29337 29338 29339 29340 29341 29342 29343 29344 29345 29346 29347 29348 29349 29350 29351 29352 29353 29354 29355 29356 29357 29358 29359 29360 29361 29362 29363 29364 29365 29366 29367 29368 29369 29370 29371 29372 29373 29374 29375 29376 29377 29378 29379 29380 29381 29382 29383 29384 29385 29386 29387 29388 29389 29390 29391 29392 29393 29394 29395 29396 29397 29398 29399 29400 29401 29402 29403 29404 29405 29406 29407 29408 29409 29410 29411 29412 29413 29414 29415 29416 29417 29418 29419 29420 29421 29422 29423 29424 29425 29426 29427 29428 29429 29430 29431 29432 29433 29434 29435 29436 29437 29438 29439 29440 29441 29442 29443 29444 29445 29446 29447 29448 29449 29450 29451 29452 29453 29454 29455 29456 29457 29458 29459 29460 29461 29462 29463 29464 29465 29466 29467 29468 29469 29470 29471 29472 29473 29474 29475 29476 29477 29478 29479 29480 29481 29482 29483 29484 29485 29486 29487 29488 29489 29490 29491 29492 29493 29494 29495 29496 29497 29498 29499 29500 29501 29502 29503 29504 29505 29506 29507 29508 29509 29510 29511 29512 29513 29514 29515 29516 29517 29518 29519 29520 29521 29522 29523 29524 29525 29526 29527 29528 29529 29530 29531 29532 29533 29534 29535 29536 29537 29538 29539 29540 29541 29542 29543 29544 29545 29546 29547 29548 29549 29550 29551 29552 29553 29554 29555 29556 29557 29558 29559 29560 29561 29562 29563 29564 29565 29566 29567 29568 29569 29570 29571 29572 29573 29574 29575 29576 29577 29578 29579 29580 29581 29582 29583 29584 29585 29586 29587 29588 29589 29590 29591 29592 29593 29594 29595 29596 29597 29598 29599 29600 29601 29602 29603 29604 29605 29606 29607 29608 29609 29610 29611 29612 29613 29614 29615 29616 29617 29618 29619 29620 29621 29622 29623 29624 29625 29626 29627 29628 29629 29630 29631 29632 29633 29634 29635 29636 29637 29638 29639 29640 29641 29642 29643 29644 29645 29646 29647 29648 29649 29650 29651 29652 29653 29654 29655 29656 29657 29658 29659 29660 29661 29662 29663 29664 29665 29666 29667 29668 29669 29670 29671 29672 29673 29674 29675 29676 29677 29678 29679 29680 29681 29682 29683 29684 29685 29686 29687 29688 29689 29690 29691 29692 29693 29694 29695 29696 29697 29698 29699 29700 29701 29702 29703 29704 29705 29706 29707 29708 29709 29710 29711 29712 29713 29714 29715 29716 29717 29718 29719 29720 29721 29722 29723 29724 29725 29726 29727 29728 29729 29730 29731 29732 29733 29734 29735 29736 29737 29738 29739 29740 29741 29742 29743 29744 29745 29746 29747 29748 29749 29750 29751 29752 29753 29754 29755 29756 29757 29758 29759 29760 29761 29762 29763 29764 29765 29766 29767 29768 29769 29770 29771 29772 29773 29774 29775 29776 29777 29778 29779 29780 29781 29782 29783 29784 29785 29786 29787 29788 29789 29790 29791 29792 29793 29794 29795 29796 29797 29798 29799 29800 29801 29802 29803 29804 29805 29806 29807 29808 29809 29810 29811 29812 29813 29814 29815 29816 29817 29818 29819 29820 29821 29822 29823 29824 29825 29826 29827 29828 29829 29830 29831 29832 29833 29834 29835 29836 29837 29838 29839 29840 29841 29842 29843 29844 29845 29846 29847 29848 29849 29850 29851 29852 29853 29854 29855 29856 29857 29858 29859 29860 29861 29862 29863 29864 29865 29866 29867 29868 29869 29870 29871 29872 29873 29874 29875 29876 29877 29878 29879 29880 29881 29882 29883 29884 29885 29886 29887 29888 29889 29890 29891 29892 29893 29894 29895 29896 29897 29898 29899 29900 29901 29902 29903 29904 29905 29906 29907 29908 29909 29910 29911 29912 29913 29914 29915 29916 29917 29918 29919 29920 29921 29922 29923 29924 29925 29926 29927 29928 29929 29930 29931 29932 29933 29934 29935 29936 29937 29938 29939 29940 29941 29942 29943 29944 29945 29946 29947 29948 29949 29950 29951 29952 29953 29954 29955 29956 29957 29958 29959 29960 29961 29962 29963 29964 29965 29966 29967 29968 29969 29970 29971 29972 29973 29974 29975 29976 29977 29978 29979 29980 29981 29982 29983 29984 29985 29986 29987 29988 29989 29990 29991 29992 29993 29994 29995 29996 29997 29998 29999 30000 30001 30002 30003 30004 30005 30006 30007 30008 30009 30010 30011 30012 30013 30014 30015 30016 30017 30018 30019 30020 30021 30022 30023 30024 30025 30026 30027 30028 30029 30030 30031 30032 30033 30034 30035 30036 30037 30038 30039 30040 30041 30042 30043 30044 30045 30046 30047 30048 30049 30050 30051 30052 30053 30054 30055 30056 30057 30058 30059 30060 30061 30062 30063 30064 30065 30066 30067 30068 30069 30070 30071 30072 30073 30074 30075 30076 30077 30078 30079 30080 30081 30082 30083 30084 30085 30086 30087 30088 30089 30090 30091 30092 30093 30094 30095 30096 30097 30098 30099 30100 30101 30102 30103 30104 30105 30106 30107 30108 30109 30110 30111 30112 30113 30114 30115 30116 30117 30118 30119 30120 30121 30122 30123 30124 30125 30126 30127 30128 30129 30130 30131 30132 30133 30134 30135 30136 30137 30138 30139 30140 30141 30142 30143 30144 30145 30146 30147 30148 30149 30150 30151 30152 30153 30154 30155 30156 30157 30158 30159 30160 30161 30162 30163 30164 30165 30166 30167 30168 30169 30170 30171 30172 30173 30174 30175 30176 30177 30178 30179 30180 30181 30182 30183 30184 30185 30186 30187 30188 30189 30190 30191 30192 30193 30194 30195 30196 30197 30198 30199 30200 30201 30202 30203 30204 30205 30206 30207 30208 30209 30210 30211 30212 30213 30214 30215 30216 30217 30218 30219 30220 30221 30222 30223 30224 30225 30226 30227 30228 30229 30230 30231 30232 30233 30234 30235 30236 30237 30238 30239 30240 30241 30242 30243 30244 30245 30246 30247 30248 30249 30250 30251 30252 30253 30254 30255 30256 30257 30258 30259 30260 30261 30262 30263 30264 30265 30266 30267 30268 30269 30270 30271 30272 30273 30274 30275 30276 30277 30278 30279 30280 30281 30282 30283 30284 30285 30286 30287 30288 30289 30290 30291 30292 30293 30294 30295 30296 30297 30298 30299 30300 30301 30302 30303 30304 30305 30306 30307 30308 30309 30310 30311 30312 30313 30314 30315 30316 30317 30318 30319 30320 30321 30322 30323 30324 30325 30326 30327 30328 30329 30330 30331 30332 30333 30334 30335 30336 30337 30338 30339 30340 30341 30342 30343 30344 30345 30346 30347 30348 30349 30350 30351 30352 30353 30354 30355 30356 30357 30358 30359 30360 30361 30362 30363 30364 30365 30366 30367 30368 30369 30370 30371 30372 30373 30374 30375 30376 30377 30378 30379 30380 30381 30382 30383 30384 30385 30386 30387 30388 30389 30390 30391 30392 30393 30394 30395 30396 30397 30398 30399 30400 30401 30402 30403 30404 30405 30406 30407 30408 30409 30410 30411 30412 30413 30414 30415 30416 30417 30418 30419 30420 30421 30422 30423 30424 30425 30426 30427 30428 30429 30430 30431 30432 30433 30434 30435 30436 30437 30438 30439 30440 30441 30442 30443 30444 30445 30446 30447 30448 30449 30450 30451 30452 30453 30454 30455 30456 30457 30458 30459 30460 30461 30462 30463 30464 30465 30466 30467 30468 30469 30470 30471 30472 30473 30474 30475 30476 30477 30478 30479 30480 30481 30482 30483 30484 30485 30486 30487 30488 30489 30490 30491 30492 30493 30494 30495 30496 30497 30498 30499 30500 30501 30502 30503 30504 30505 30506 30507 30508 30509 30510 30511 30512 30513 30514 30515 30516 30517 30518 30519 30520 30521 30522 30523 30524 30525 30526 30527 30528 30529 30530 30531 30532 30533 30534 30535 30536 30537 30538 30539 30540 30541 30542 30543 30544 30545 30546 30547 30548 30549 30550 30551 30552 30553 30554 30555 30556 30557 30558 30559 30560 30561 30562 30563 30564 30565 30566 30567 30568 30569 30570 30571 30572 30573 30574 30575 30576 30577 30578 30579 30580 30581 30582 30583 30584 30585 30586 30587 30588 30589 30590 30591 30592 30593 30594 30595 30596 30597 30598 30599 30600 30601 30602 30603 30604 30605 30606 30607 30608 30609 30610 30611 30612 30613 30614 30615 30616 30617 30618 30619 30620 30621 30622 30623 30624 30625 30626 30627 30628 30629 30630 30631 30632 30633 30634 30635 30636 30637 30638 30639 30640 30641 30642 30643 30644 30645 30646 30647 30648 30649 30650 30651 30652 30653 30654 30655 30656 30657 30658 30659 30660 30661 30662 30663 30664 30665 30666 30667 30668 30669 30670 30671 30672 30673 30674 30675 30676 30677 30678 30679 30680 30681 30682 30683 30684 30685 30686 30687 30688 30689 30690 30691 30692 30693 30694 30695 30696 30697 30698 30699 30700 30701 30702 30703 30704 30705 30706 30707 30708 30709 30710 30711 30712 30713 30714 30715 30716 30717 30718 30719 30720 30721 30722 30723 30724 30725 30726 30727 30728 30729 30730 30731 30732 30733 30734 30735 30736 30737 30738 30739 30740 30741 30742 30743 30744 30745 30746 30747 30748 30749 30750 30751 30752 30753 30754 30755 30756 30757 30758 30759 30760 30761 30762 30763 30764 30765 30766 30767 30768 30769 30770 30771 30772 30773 30774 30775 30776 30777 30778 30779 30780 30781 30782 30783 30784 30785 30786 30787 30788 30789 30790 30791 30792 30793 30794 30795 30796 30797 30798 30799 30800 30801 30802 30803 30804 30805 30806 30807 30808 30809 30810 30811 30812 30813 30814 30815 30816 30817 30818 30819 30820 30821 30822 30823 30824 30825 30826 30827 30828 30829 30830 30831 30832 30833 30834 30835 30836 30837 30838 30839 30840 30841 30842 30843 30844 30845 30846 30847 30848 30849 30850 30851 30852 30853 30854 30855 30856 30857 30858 30859 30860 30861 30862 30863 30864 30865 30866 30867 30868 30869 30870 30871 30872 30873 30874 30875 30876 30877 30878 30879 30880 30881 30882 30883 30884 30885 30886 30887 30888 30889 30890 30891 30892 30893 30894 30895 30896 30897 30898 30899 30900 30901 30902 30903 30904 30905 30906 30907 30908 30909 30910 30911 30912 30913 30914 30915 30916 30917 30918 30919 30920 30921 30922 30923 30924 30925 30926 30927 30928 30929 30930 30931 30932 30933 30934 30935 30936 30937 30938 30939 30940 30941 30942 30943 30944 30945 30946 30947 30948 30949 30950 30951 30952 30953 30954 30955 30956 30957 30958 30959 30960 30961 30962 30963 30964 30965 30966 30967 30968 30969 30970 30971 30972 30973 30974 30975 30976 30977 30978 30979 30980 30981 30982 30983 30984 30985 30986 30987 30988 30989 30990 30991 30992 30993 30994 30995 30996 30997 30998 30999 31000 31001 31002 31003 31004 31005 31006 31007 31008 31009 31010 31011 31012 31013 31014 31015 31016 31017 31018 31019 31020 31021 31022 31023 31024 31025 31026 31027 31028 31029 31030 31031 31032 31033 31034 31035 31036 31037 31038 31039 31040 31041 31042 31043 31044 31045 31046 31047 31048 31049 31050 31051 31052 31053 31054 31055 31056 31057 31058 31059 31060 31061 31062 31063 31064 31065 31066 31067 31068 31069 31070 31071 31072 31073 31074 31075 31076 31077 31078 31079 31080 31081 31082 31083 31084 31085 31086 31087 31088 31089 31090 31091 31092 31093 31094 31095 31096 31097 31098 31099 31100 31101 31102 31103 31104 31105 31106 31107 31108 31109 31110 31111 31112 31113 31114 31115 31116 31117 31118 31119 31120 31121 31122 31123 31124 31125 31126 31127 31128 31129 31130 31131 31132 31133 31134 31135 31136 31137 31138 31139 31140 31141 31142 31143 31144 31145 31146 31147 31148 31149 31150 31151 31152 31153 31154 31155 31156 31157 31158 31159 31160 31161 31162 31163 31164 31165 31166 31167 31168 31169 31170 31171 31172 31173 31174 31175 31176 31177 31178 31179 31180 31181 31182 31183 31184 31185 31186 31187 31188 31189 31190 31191 31192 31193 31194 31195 31196 31197 31198 31199 31200 31201 31202 31203 31204 31205 31206 31207 31208 31209 31210 31211 31212 31213 31214 31215 31216 31217 31218 31219 31220 31221 31222 31223 31224 31225 31226 31227 31228 31229 31230 31231 31232 31233 31234 31235 31236 31237 31238 31239 31240 31241 31242 31243 31244 31245 31246 31247 31248 31249 31250 31251 31252 31253 31254 31255 31256 31257 31258 31259 31260 31261 31262 31263 31264 31265 31266 31267 31268 31269 31270 31271 31272 31273 31274 31275 31276 31277 31278 31279 31280 31281 31282 31283 31284 31285 31286 31287 31288 31289 31290 31291 31292 31293 31294 31295 31296 31297 31298 31299 31300 31301 31302 31303 31304 31305 31306 31307 31308 31309 31310 31311 31312 31313 31314 31315 31316 31317 31318 31319 31320 31321 31322 31323 31324 31325 31326 31327 31328 31329 31330 31331 31332 31333 31334 31335 31336 31337 31338 31339 31340 31341 31342 31343 31344 31345 31346 31347 31348 31349 31350 31351 31352 31353 31354 31355 31356 31357 31358 31359 31360 31361 31362 31363 31364 31365 31366 31367 31368 31369 31370 31371 31372 31373 31374 31375 31376 31377 31378 31379 31380 31381 31382 31383 31384 31385 31386 31387 31388 31389 31390 31391 31392 31393 31394 31395 31396 31397 31398 31399 31400 31401 31402 31403 31404 31405 31406 31407 31408 31409 31410 31411 31412 31413 31414 31415 31416 31417 31418 31419 31420 31421 31422 31423 31424 31425 31426 31427 31428 31429 31430 31431 31432 31433 31434 31435 31436 31437 31438 31439 31440 31441 31442 31443 31444 31445 31446 31447 31448 31449 31450 31451 31452 31453 31454 31455 31456 31457 31458 31459 31460 31461 31462 31463 31464 31465 31466 31467 31468 31469 31470 31471 31472 31473 31474 31475 31476 31477 31478 31479 31480 31481 31482 31483 31484 31485 31486 31487 31488 31489 31490 31491 31492 31493 31494 31495 31496 31497 31498 31499 31500 31501 31502 31503 31504 31505 31506 31507 31508 31509 31510 31511 31512 31513 31514 31515 31516 31517 31518 31519 31520 31521 31522 31523 31524 31525 31526 31527 31528 31529 31530 31531 31532 31533 31534 31535 31536 31537 31538 31539 31540 31541 31542 31543 31544 31545 31546 31547 31548 31549 31550 31551 31552 31553 31554 31555 31556 31557 31558 31559 31560 31561 31562 31563 31564 31565 31566 31567 31568 31569 31570 31571 31572 31573 31574 31575 31576 31577 31578 31579 31580 31581 31582 31583 31584 31585 31586 31587 31588 31589 31590 31591 31592 31593 31594 31595 31596 31597 31598 31599 31600 31601 31602 31603 31604 31605 31606 31607 31608 31609 31610 31611 31612 31613 31614 31615 31616 31617 31618 31619 31620 31621 31622 31623 31624 31625 31626 31627 31628 31629 31630 31631 31632 31633 31634 31635 31636 31637 31638 31639 31640 31641 31642 31643 31644 31645 31646 31647 31648 31649 31650 31651 31652 31653 31654 31655 31656 31657 31658 31659 31660 31661 31662 31663 31664 31665 31666 31667 31668 31669 31670 31671 31672 31673 31674 31675 31676 31677 31678 31679 31680 31681 31682 31683 31684 31685 31686 31687 31688 31689 31690 31691 31692 31693 31694 31695 31696 31697 31698 31699 31700 31701 31702 31703 31704 31705 31706 31707 31708 31709 31710 31711 31712 31713 31714 31715 31716 31717 31718 31719 31720 31721 31722 31723 31724 31725 31726 31727 31728 31729 31730 31731 31732 31733 31734 31735 31736 31737 31738 31739 31740 31741 31742 31743 31744 31745 31746 31747 31748 31749 31750 31751 31752 31753 31754 31755 31756 31757 31758 31759 31760 31761 31762 31763 31764 31765 31766 31767 31768 31769 31770 31771 31772 31773 31774 31775 31776 31777 31778 31779 31780 31781 31782 31783 31784 31785 31786 31787 31788 31789 31790 31791 31792 31793 31794 31795 31796 31797 31798 31799 31800 31801 31802 31803 31804 31805 31806 31807 31808 31809 31810 31811 31812 31813 31814 31815 31816 31817 31818 31819 31820 31821 31822 31823 31824 31825 31826 31827 31828 31829 31830 31831 31832 31833 31834 31835 31836 31837 31838 31839 31840 31841 31842 31843 31844 31845 31846 31847 31848 31849 31850 31851 31852 31853 31854 31855 31856 31857 31858 31859 31860 31861 31862 31863 31864 31865 31866 31867 31868 31869 31870 31871 31872 31873 31874 31875 31876 31877 31878 31879 31880 31881 31882 31883 31884 31885 31886 31887 31888 31889 31890 31891 31892 31893 31894 31895 31896 31897 31898 31899 31900 31901 31902 31903 31904 31905 31906 31907 31908 31909 31910 31911 31912 31913 31914 31915 31916 31917 31918 31919 31920 31921 31922 31923 31924 31925 31926 31927 31928 31929 31930 31931 31932 31933 31934 31935 31936 31937 31938 31939 31940 31941 31942 31943 31944 31945 31946 31947 31948 31949 31950 31951 31952 31953 31954 31955 31956 31957 31958 31959 31960 31961 31962 31963 31964 31965 31966 31967 31968 31969 31970 31971 31972 31973 31974 31975 31976 31977 31978 31979 31980 31981 31982 31983 31984 31985 31986 31987 31988 31989 31990 31991 31992 31993 31994 31995 31996 31997 31998 31999 32000 32001 32002 32003 32004 32005 32006 32007 32008 32009 32010 32011 32012 32013 32014 32015 32016 32017 32018 32019 32020 32021 32022 32023 32024 32025 32026 32027 32028 32029 32030 32031 32032 32033 32034 32035 32036 32037 32038 32039 32040 32041 32042 32043 32044 32045 32046 32047 32048 32049 32050 32051 32052 32053 32054 32055 32056 32057 32058 32059 32060 32061 32062 32063 32064 32065 32066 32067 32068 32069 32070 32071 32072 32073 32074 32075 32076 32077 32078 32079 32080 32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 32182 32183 32184 32185 32186 32187 32188 32189 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204 32205 32206 32207 32208 32209 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278 32279 32280 32281 32282 32283 32284 32285 32286 32287 32288 32289 32290 32291 32292 32293 32294 32295 32296 32297 32298 32299 32300 32301 32302 32303 32304 32305 32306 32307 32308 32309 32310 32311 32312 32313 32314 32315 32316 32317 32318 32319 32320 32321 32322 32323 32324 32325 32326 32327 32328 32329 32330 32331 32332 32333 32334 32335 32336 32337 32338 32339 32340 32341 32342 32343 32344 32345 32346 32347 32348 32349 32350 32351 32352 32353 32354 32355 32356 32357 32358 32359 32360 32361 32362 32363 32364 32365 32366 32367 32368 32369 32370 32371 32372 32373 32374 32375 32376 32377 32378 32379 32380 32381 32382 32383 32384 32385 32386 32387 32388 32389 32390 32391 32392 32393 32394 32395 32396 32397 32398 32399 32400 32401 32402 32403 32404 32405 32406 32407 32408 32409 32410 32411 32412 32413 32414 32415 32416 32417 32418 32419 32420 32421 32422 32423 32424 32425 32426 32427 32428 32429 32430 32431 32432 32433 32434 32435 32436 32437 32438 32439 32440 32441 32442 32443 32444 32445 32446 32447 32448 32449 32450 32451 32452 32453 32454 32455 32456 32457 32458 32459 32460 32461 32462 32463 32464 32465 32466 32467 32468 32469 32470 32471 32472 32473 32474 32475 32476 32477 32478 32479 32480 32481 32482 32483 32484 32485 32486 32487 32488 32489 32490 32491 32492 32493 32494 32495 32496 32497 32498 32499 32500 32501 32502 32503 32504 32505 32506 32507 32508 32509 32510 32511 32512 32513 32514 32515 32516 32517 32518 32519 32520 32521 32522 32523 32524 32525 32526 32527 32528 32529 32530 32531 32532 32533 32534 32535 32536 32537 32538 32539 32540 32541 32542 32543 32544 32545 32546 32547 32548 32549 32550 32551 32552 32553 32554 32555 32556 32557 32558 32559 32560 32561 32562 32563 32564 32565 32566 32567 32568 32569 32570 32571 32572 32573 32574 32575 32576 32577 32578 32579 32580 32581 32582 32583 32584 32585 32586 32587 32588 32589 32590 32591 32592 32593 32594 32595 32596 32597 32598 32599 32600 32601 32602 32603 32604 32605 32606 32607 32608 32609 32610 32611 32612 32613 32614 32615 32616 32617 32618 32619 32620 32621 32622 32623 32624 32625 32626 32627 32628 32629 32630 32631 32632 32633 32634 32635 32636 32637 32638 32639 32640 32641 32642 32643 32644 32645 32646 32647 32648 32649 32650 32651 32652 32653 32654 32655 32656 32657 32658 32659 32660 32661 32662 32663 32664 32665 32666 32667 32668 32669 32670 32671 32672 32673 32674 32675 32676 32677 32678 32679 32680 32681 32682 32683 32684 32685 32686 32687 32688 32689 32690 32691 32692 32693 32694 32695 32696 32697 32698 32699 32700 32701 32702 32703 32704 32705 32706 32707 32708 32709 32710 32711 32712 32713 32714 32715 32716 32717 32718 32719 32720 32721 32722 32723 32724 32725 32726 32727 32728 32729 32730 32731 32732 32733 32734 32735 32736 32737 32738 32739 32740 32741 32742 32743 32744 32745 32746 32747 32748 32749 32750 32751 32752 32753 32754 32755 32756 32757 32758 32759 32760 32761 32762 32763 32764 32765 32766 32767 32768 32769 32770 32771 32772 32773 32774 32775 32776 32777 32778 32779 32780 32781 32782 32783 32784 32785 32786 32787 32788 32789 32790 32791 32792 32793 32794 32795 32796 32797 32798 32799 32800 32801 32802 32803 32804 32805 32806 32807 32808 32809 32810 32811 32812 32813 32814 32815 32816 32817 32818 32819 32820 32821 32822 32823 32824 32825 32826 32827 32828 32829 32830 32831 32832 32833 32834 32835 32836 32837 32838 32839 32840 32841 32842 32843 32844 32845 32846 32847 32848 32849 32850 32851 32852 32853 32854 32855 32856 32857 32858 32859 32860 32861 32862 32863 32864 32865 32866 32867 32868 32869 32870 32871 32872 32873 32874 32875 32876 32877 32878 32879 32880 32881 32882 32883 32884 32885 32886 32887 32888 32889 32890 32891 32892 32893 32894 32895 32896 32897 32898 32899 32900 32901 32902 32903 32904 32905 32906 32907 32908 32909 32910 32911 32912 32913 32914 32915 32916 32917 32918 32919 32920 32921 32922 32923 32924 32925 32926 32927 32928 32929 32930 32931 32932 32933 32934 32935 32936 32937 32938 32939 32940 32941 32942 32943 32944 32945 32946 32947 32948 32949 32950 32951 32952 32953 32954 32955 32956 32957 32958 32959 32960 32961 32962 32963 32964 32965 32966 32967 32968 32969 32970 32971 32972 32973 32974 32975 32976 32977 32978 32979 32980 32981 32982 32983 32984 32985 32986 32987 32988 32989 32990 32991 32992 32993 32994 32995 32996 32997 32998 32999 33000 33001 33002 33003 33004 33005 33006 33007 33008 33009 33010 33011 33012 33013 33014 33015 33016 33017 33018 33019 33020 33021 33022 33023 33024 33025 33026 33027 33028 33029 33030 33031 33032 33033 33034 33035 33036 33037 33038 33039 33040 33041 33042 33043 33044 33045 33046 33047 33048 33049 33050 33051 33052 33053 33054 33055 33056 33057 33058 33059 33060 33061 33062 33063 33064 33065 33066 33067 33068 33069 33070 33071 33072 33073 33074 33075 33076 33077 33078 33079 33080 33081 33082 33083 33084 33085 33086 33087 33088 33089 33090 33091 33092 33093 33094 33095 33096 33097 33098 33099 33100 33101 33102 33103 33104 33105 33106 33107 33108 33109 33110 33111 33112 33113 33114 33115 33116 33117 33118 33119 33120 33121 33122 33123 33124 33125 33126 33127 33128 33129 33130 33131 33132 33133 33134 33135 33136 33137 33138 33139 33140 33141 33142 33143 33144 33145 33146 33147 33148 33149 33150 33151 33152 33153 33154 33155 33156 33157 33158 33159 33160 33161 33162 33163 33164 33165 33166 33167 33168 33169 33170 33171 33172 33173 33174 33175 33176 33177 33178 33179 33180 33181 33182 33183 33184 33185 33186 33187 33188 33189 33190 33191 33192 33193 33194 33195 33196 33197 33198 33199 33200 33201 33202 33203 33204 33205 33206 33207 33208 33209 33210 33211 33212 33213 33214 33215 33216 33217 33218 33219 33220 33221 33222 33223 33224 33225 33226 33227 33228 33229 33230 33231 33232 33233 33234 33235 33236 33237 33238 33239 33240 33241 33242 33243 33244 33245 33246 33247 33248 33249 33250 33251 33252 33253 33254 33255 33256 33257 33258 33259 33260 33261 33262 33263 33264 33265 33266 33267 33268 33269 33270 33271 33272 33273 33274 33275 33276 33277 33278 33279 33280 33281 33282 33283 33284 33285 33286 33287 33288 33289 33290 33291 33292 33293 33294 33295 33296 33297 33298 33299 33300 33301 33302 33303 33304 33305 33306 33307 33308 33309 33310 33311 33312 33313 33314 33315 33316 33317 33318 33319 33320 33321 33322 33323 33324 33325 33326 33327 33328 33329 33330 33331 33332 33333 33334 33335 33336 33337 33338 33339 33340 33341 33342 33343 33344 33345 33346 33347 33348 33349 33350 33351 33352 33353 33354 33355 33356 33357 33358 33359 33360 33361 33362 33363 33364 33365 33366 33367 33368 33369 33370 33371 33372 33373 33374 33375 33376 33377 33378 33379 33380 33381 33382 33383 33384 33385 33386 33387 33388 33389 33390 33391 33392 33393 33394 33395 33396 33397 33398 33399 33400 33401 33402 33403 33404 33405 33406 33407 33408 33409 33410 33411 33412 33413 33414 33415 33416 33417 33418 33419 33420 33421 33422 33423 33424 33425 33426 33427 33428 33429 33430 33431 33432 33433 33434 33435 33436 33437 33438 33439 33440 33441 33442 33443 33444 33445 33446 33447 33448 33449 33450 33451 33452 33453 33454 33455 33456 33457 33458 33459 33460 33461 33462 33463 33464 33465 33466 33467 33468 33469 33470 33471 33472 33473 33474 33475 33476 33477 33478 33479 33480 33481 33482 33483 33484 33485 33486 33487 33488 33489 33490 33491 33492 33493 33494 33495 33496 33497 33498 33499 33500 33501 33502 33503 33504 33505 33506 33507 33508 33509 33510 33511 33512 33513 33514 33515 33516 33517 33518 33519 33520 33521 33522 33523 33524 33525 33526 33527 33528 33529 33530 33531 33532 33533 33534 33535 33536 33537 33538 33539 33540 33541 33542 33543 33544 33545 33546 33547 33548 33549 33550 33551 33552 33553 33554 33555 33556 33557 33558 33559 33560 33561 33562 33563 33564 33565 33566 33567 33568 33569 33570 33571 33572 33573 33574 33575 33576 33577 33578 33579 33580 33581 33582 33583 33584 33585 33586 33587 33588 33589 33590 33591 33592 33593 33594 33595 33596 33597 33598 33599 33600 33601 33602 33603 33604 33605 33606 33607 33608 33609 33610 33611 33612 33613 33614 33615 33616 33617 33618 33619 33620 33621 33622 33623 33624 33625 33626 33627 33628 33629 33630 33631 33632 33633 33634 33635 33636 33637 33638 33639 33640 33641 33642 33643 33644 33645 33646 33647 33648 33649 33650 33651 33652 33653 33654 33655 33656 33657 33658 33659 33660 33661 33662 33663 33664 33665 33666 33667 33668 33669 33670 33671 33672 33673 33674 33675 33676 33677 33678 33679 33680 33681 33682 33683 33684 33685 33686 33687 33688 33689 33690 33691 33692 33693 33694 33695 33696 33697 33698 33699 33700 33701 33702 33703 33704 33705 33706 33707 33708 33709 33710 33711 33712 33713 33714 33715 33716 33717 33718 33719 33720 33721 33722 33723 33724 33725 33726 33727 33728 33729 33730 33731 33732 33733 33734 33735 33736 33737 33738 33739 33740 33741 33742 33743 33744 33745 33746 33747 33748 33749 33750 33751 33752 33753 33754 33755 33756 33757 33758 33759 33760 33761 33762 33763 33764 33765 33766 33767 33768 33769 33770 33771 33772 33773 33774 33775 33776 33777 33778 33779 33780 33781 33782 33783 33784 33785 33786 33787 33788 33789 33790 33791 33792 33793 33794 33795 33796 33797 33798 33799 33800 33801 33802 33803 33804 33805 33806 33807 33808 33809 33810 33811 33812 33813 33814 33815 33816 33817 33818 33819 33820 33821 33822 33823 33824 33825 33826 33827 33828 33829 33830 33831 33832 33833 33834 33835 33836 33837 33838 33839 33840 33841 33842 33843 33844 33845 33846 33847 33848 33849 33850 33851 33852 33853 33854 33855 33856 33857 33858 33859 33860 33861 33862 33863 33864 33865 33866 33867 33868 33869 33870 33871 33872 33873 33874 33875 33876 33877 33878 33879 33880 33881 33882 33883 33884 33885 33886 33887 33888 33889 33890 33891 33892 33893 33894 33895 33896 33897 33898 33899 33900 33901 33902 33903 33904 33905 33906 33907 33908 33909 33910 33911 33912 33913 33914 33915 33916 33917 33918 33919 33920 33921 33922 33923 33924 33925 33926 33927 33928 33929 33930 33931 33932 33933 33934 33935 33936 33937 33938 33939 33940 33941 33942 33943 33944 33945 33946 33947 33948 33949 33950 33951 33952 33953 33954 33955 33956 33957 33958 33959 33960 33961 33962 33963 33964 33965 33966 33967 33968 33969 33970 33971 33972 33973 33974 33975 33976 33977 33978 33979 33980 33981 33982 33983 33984 33985 33986 33987 33988 33989 33990 33991 33992 33993 33994 33995 33996 33997 33998 33999 34000 34001 34002 34003 34004 34005 34006 34007 34008 34009 34010 34011 34012 34013 34014 34015 34016 34017 34018 34019 34020 34021 34022 34023 34024 34025 34026 34027 34028 34029 34030 34031 34032 34033 34034 34035 34036 34037 34038 34039 34040 34041 34042 34043 34044 34045 34046 34047 34048 34049 34050 34051 34052 34053 34054 34055 34056 34057 34058 34059 34060 34061 34062 34063 34064 34065 34066 34067 34068 34069 34070 34071 34072 34073 34074 34075 34076 34077 34078 34079 34080 34081 34082 34083 34084 34085 34086 34087 34088 34089 34090 34091 34092 34093 34094 34095 34096 34097 34098 34099 34100 34101 34102 34103 34104 34105 34106 34107 34108 34109 34110 34111 34112 34113 34114 34115 34116 34117 34118 34119 34120 34121 34122 34123 34124 34125 34126 34127 34128 34129 34130 34131 34132 34133 34134 34135 34136 34137 34138 34139 34140 34141 34142 34143 34144 34145 34146 34147 34148 34149 34150 34151 34152 34153 34154 34155 34156 34157 34158 34159 34160 34161 34162 34163 34164 34165 34166 34167 34168 34169 34170 34171 34172 34173 34174 34175 34176 34177 34178 34179 34180 34181 34182 34183 34184 34185 34186 34187 34188 34189 34190 34191 34192 34193 34194 34195 34196 34197 34198 34199 34200 34201 34202 34203 34204 34205 34206 34207 34208 34209 34210 34211 34212 34213 34214 34215 34216 34217 34218 34219 34220 34221 34222 34223 34224 34225 34226 34227 34228 34229 34230 34231 34232 34233 34234 34235 34236 34237 34238 34239 34240 34241 34242 34243 34244 34245 34246 34247 34248 34249 34250 34251 34252 34253 34254 34255 34256 34257 34258 34259 34260 34261 34262 34263 34264 34265 34266 34267 34268 34269 34270 34271 34272 34273 34274 34275 34276 34277 34278 34279 34280 34281 34282 34283 34284 34285 34286 34287 34288 34289 34290 34291 34292 34293 34294 34295 34296 34297 34298 34299 34300 34301 34302 34303 34304 34305 34306 34307 34308 34309 34310 34311 34312 34313 34314 34315 34316 34317 34318 34319 34320 34321 34322 34323 34324 34325 34326 34327 34328 34329 34330 34331 34332 34333 34334 34335 34336 34337 34338 34339 34340 34341 34342 34343 34344 34345 34346 34347 34348 34349 34350 34351 34352 34353 34354 34355 34356 34357 34358 34359 34360 34361 34362 34363 34364 34365 34366 34367 34368 34369 34370 34371 34372 34373 34374 34375 34376 34377 34378 34379 34380 34381 34382 34383 34384 34385 34386 34387 34388 34389 34390 34391 34392 34393 34394 34395 34396 34397 34398 34399 34400 34401 34402 34403 34404 34405 34406 34407 34408 34409 34410 34411 34412 34413 34414 34415 34416 34417 34418 34419 34420 34421 34422 34423 34424 34425 34426 34427 34428 34429 34430 34431 34432 34433 34434 34435 34436 34437 34438 34439 34440 34441 34442 34443 34444 34445 34446 34447 34448 34449 34450 34451 34452 34453 34454 34455 34456 34457 34458 34459 34460 34461 34462 34463 34464 34465 34466 34467 34468 34469 34470 34471 34472 34473 34474 34475 34476 34477 34478 34479 34480 34481 34482 34483 34484 34485 34486 34487 34488 34489 34490 34491 34492 34493 34494 34495 34496 34497 34498 34499 34500 34501 34502 34503 34504 34505 34506 34507 34508 34509 34510 34511 34512 34513 34514 34515 34516 34517 34518 34519 34520 34521 34522 34523 34524 34525 34526 34527 34528 34529 34530 34531 34532 34533 34534 34535 34536 34537 34538 34539 34540 34541 34542 34543 34544 34545 34546 34547 34548 34549 34550 34551 34552 34553 34554 34555 34556 34557 34558 34559 34560 34561 34562 34563 34564 34565 34566 34567 34568 34569 34570 34571 34572 34573 34574 34575 34576 34577 34578 34579 34580 34581 34582 34583 34584 34585 34586 34587 34588 34589 34590 34591 34592 34593 34594 34595 34596 34597 34598 34599 34600 34601 34602 34603 34604 34605 34606 34607 34608 34609 34610 34611 34612 34613 34614 34615 34616 34617 34618 34619 34620 34621 34622 34623 34624 34625 34626 34627 34628 34629 34630 34631 34632 34633 34634 34635 34636 34637 34638 34639 34640 34641 34642 34643 34644 34645 34646 34647 34648 34649 34650 34651 34652 34653 34654 34655 34656 34657 34658 34659 34660 34661 34662 34663 34664 34665 34666 34667 34668 34669 34670 34671 34672 34673 34674 34675 34676 34677 34678 34679 34680 34681 34682 34683 34684 34685 34686 34687 34688 34689 34690 34691 34692 34693 34694 34695 34696 34697 34698 34699 34700 34701 34702 34703 34704 34705 34706 34707 34708 34709 34710 34711 34712 34713 34714 34715 34716 34717 34718 34719 34720 34721 34722 34723 34724 34725 34726 34727 34728 34729 34730 34731 34732 34733 34734 34735 34736 34737 34738 34739 34740 34741 34742 34743 34744 34745 34746 34747 34748 34749 34750 34751 34752 34753 34754 34755 34756 34757 34758 34759 34760 34761 34762 34763 34764 34765 34766 34767 34768 34769 34770 34771 34772 34773 34774 34775 34776 34777 34778 34779 34780 34781 34782 34783 34784 34785 34786 34787 34788 34789 34790 34791 34792 34793 34794 34795 34796 34797 34798 34799 34800 34801 34802 34803 34804 34805 34806 34807 34808 34809 34810 34811 34812 34813 34814 34815 34816 34817 34818 34819 34820 34821 34822 34823 34824 34825 34826 34827 34828 34829 34830 34831 34832 34833 34834 34835 34836 34837 34838 34839 34840 34841 34842 34843 34844 34845 34846 34847 34848 34849 34850 34851 34852 34853 34854 34855 34856 34857 34858 34859 34860 34861 34862 34863 34864 34865 34866 34867 34868 34869 34870 34871 34872 34873 34874 34875 34876 34877 34878 34879 34880 34881 34882 34883 34884 34885 34886 34887 34888 34889 34890 34891 34892 34893 34894 34895 34896 34897 34898 34899 34900 34901 34902 34903 34904 34905 34906 34907 34908 34909 34910 34911 34912 34913 34914 34915 34916 34917 34918 34919 34920 34921 34922 34923 34924 34925 34926 34927 34928 34929 34930 34931 34932 34933 34934 34935 34936 34937 34938 34939 34940 34941 34942 34943 34944 34945 34946 34947 34948 34949 34950 34951 34952 34953 34954 34955 34956 34957 34958 34959 34960 34961 34962 34963 34964 34965 34966 34967 34968 34969 34970 34971 34972 34973 34974 34975 34976 34977 34978 34979 34980 34981 34982 34983 34984 34985 34986 34987 34988 34989 34990 34991 34992 34993 34994 34995 34996 34997 34998 34999 35000 35001 35002 35003 35004 35005 35006 35007 35008 35009 35010 35011 35012 35013 35014 35015 35016 35017 35018 35019 35020 35021 35022 35023 35024 35025 35026 35027 35028 35029 35030 35031 35032 35033 35034 35035 35036 35037 35038 35039 35040 35041 35042 35043 35044 35045 35046 35047 35048 35049 35050 35051 35052 35053 35054 35055 35056 35057 35058 35059 35060 35061 35062 35063 35064 35065 35066 35067 35068 35069 35070 35071 35072 35073 35074 35075 35076 35077 35078 35079 35080 35081 35082 35083 35084 35085 35086 35087 35088 35089 35090 35091 35092 35093 35094 35095 35096 35097 35098 35099 35100 35101 35102 35103 35104 35105 35106 35107 35108 35109 35110 35111 35112 35113 35114 35115 35116 35117 35118 35119 35120 35121 35122 35123 35124 35125 35126 35127 35128 35129 35130 35131 35132 35133 35134 35135 35136 35137 35138 35139 35140 35141 35142 35143 35144 35145 35146 35147 35148 35149 35150 35151 35152 35153 35154 35155 35156 35157 35158 35159 35160 35161 35162 35163 35164 35165 35166 35167 35168 35169 35170 35171 35172 35173 35174 35175 35176 35177 35178 35179 35180 35181 35182 35183 35184 35185 35186 35187 35188 35189 35190 35191 35192 35193 35194 35195 35196 35197 35198 35199 35200 35201 35202 35203 35204 35205 35206 35207 35208 35209 35210 35211 35212 35213 35214 35215 35216 35217 35218 35219 35220 35221 35222 35223 35224 35225 35226 35227 35228 35229 35230 35231 35232 35233 35234 35235 35236 35237 35238 35239 35240 35241 35242 35243 35244 35245 35246 35247 35248 35249 35250 35251 35252 35253 35254 35255 35256 35257 35258 35259 35260 35261 35262 35263 35264 35265 35266 35267 35268 35269 35270 35271 35272 35273 35274 35275 35276 35277 35278 35279 35280 35281 35282 35283 35284 35285 35286 35287 35288 35289 35290 35291 35292 35293 35294 35295 35296 35297 35298 35299 35300 35301 35302 35303 35304 35305 35306 35307 35308 35309 35310 35311 35312 35313 35314 35315 35316 35317 35318 35319 35320 35321 35322 35323 35324 35325 35326 35327 35328 35329 35330 35331 35332 35333 35334 35335 35336 35337 35338 35339 35340 35341 35342 35343 35344 35345 35346 35347 35348 35349 35350 35351 35352 35353 35354 35355 35356 35357 35358 35359 35360 35361 35362 35363 35364 35365 35366 35367 35368 35369 35370 35371 35372 35373 35374 35375 35376 35377 35378 35379 35380 35381 35382 35383 35384 35385 35386 35387 35388 35389 35390 35391 35392 35393 35394 35395 35396 35397 35398 35399 35400 35401 35402 35403 35404 35405 35406 35407 35408 35409 35410 35411 35412 35413 35414 35415 35416 35417 35418 35419 35420 35421 35422 35423 35424 35425 35426 35427 35428 35429 35430 35431 35432 35433 35434 35435 35436 35437 35438 35439 35440 35441 35442 35443 35444 35445 35446 35447 35448 35449 35450 35451 35452 35453 35454 35455 35456 35457 35458 35459 35460 35461 35462 35463 35464 35465 35466 35467 35468 35469 35470 35471 35472 35473 35474 35475 35476 35477 35478 35479 35480 35481 35482 35483 35484 35485 35486 35487 35488 35489 35490 35491 35492 35493 35494 35495 35496 35497 35498 35499 35500 35501 35502 35503 35504 35505 35506 35507 35508 35509 35510 35511 35512 35513 35514 35515 35516 35517 35518 35519 35520 35521 35522 35523 35524 35525 35526 35527 35528 35529 35530 35531 35532 35533 35534 35535 35536 35537 35538 35539 35540 35541 35542 35543 35544 35545 35546 35547 35548 35549 35550 35551 35552 35553 35554 35555 35556 35557 35558 35559 35560 35561 35562 35563 35564 35565 35566 35567 35568 35569 35570 35571 35572 35573 35574 35575 35576 35577 35578 35579 35580 35581 35582 35583 35584 35585 35586 35587 35588 35589 35590 35591 35592 35593 35594 35595 35596 35597 35598 35599 35600 35601 35602 35603 35604 35605 35606 35607 35608 35609 35610 35611 35612 35613 35614 35615 35616 35617 35618 35619 35620 35621 35622 35623 35624 35625 35626 35627 35628 35629 35630 35631 35632 35633 35634 35635 35636 35637 35638 35639 35640 35641 35642 35643 35644 35645 35646 35647 35648 35649 35650 35651 35652 35653 35654 35655 35656 35657 35658 35659 35660 35661 35662 35663 35664 35665 35666 35667 35668 35669 35670 35671 35672 35673 35674 35675 35676 35677 35678 35679 35680 35681 35682 35683 35684 35685 35686 35687 35688 35689 35690 35691 35692 35693 35694 35695 35696 35697 35698 35699 35700 35701 35702 35703 35704 35705 35706 35707 35708 35709 35710 35711 35712 35713 35714 35715 35716 35717 35718 35719 35720 35721 35722 35723 35724 35725 35726 35727 35728 35729 35730 35731 35732 35733 35734 35735 35736 35737 35738 35739 35740 35741 35742 35743 35744 35745 35746 35747 35748 35749 35750 35751 35752 35753 35754 35755 35756 35757 35758 35759 35760 35761 35762 35763 35764 35765 35766 35767 35768 35769 35770 35771 35772 35773 35774 35775 35776 35777 35778 35779 35780 35781 35782 35783 35784 35785 35786 35787 35788 35789 35790 35791 35792 35793 35794 35795 35796 35797 35798 35799 35800 35801 35802 35803 35804 35805 35806 35807 35808 35809 35810 35811 35812 35813 35814 35815 35816 35817 35818 35819 35820 35821 35822 35823 35824 35825 35826 35827 35828 35829 35830 35831 35832 35833 35834 35835 35836 35837 35838 35839 35840 35841 35842 35843 35844 35845 35846 35847 35848 35849 35850 35851 35852 35853 35854 35855 35856 35857 35858 35859 35860 35861 35862 35863 35864 35865 35866 35867 35868 35869 35870 35871 35872 35873 35874 35875 35876 35877 35878 35879 35880 35881 35882 35883 35884 35885 35886 35887 35888 35889 35890 35891 35892 35893 35894 35895 35896 35897 35898 35899 35900 35901 35902 35903 35904 35905 35906 35907 35908 35909 35910 35911 35912 35913 35914 35915 35916 35917 35918 35919 35920 35921 35922 35923 35924 35925 35926 35927 35928 35929 35930 35931 35932 35933 35934 35935 35936 35937 35938 35939 35940 35941 35942 35943 35944 35945 35946 35947 35948 35949 35950 35951 35952 35953 35954 35955 35956 35957 35958 35959 35960 35961 35962 35963 35964 35965 35966 35967 35968 35969 35970 35971 35972 35973 35974 35975 35976 35977 35978 35979 35980 35981 35982 35983 35984 35985 35986 35987 35988 35989 35990 35991 35992 35993 35994 35995 35996 35997 35998 35999 36000 36001 36002 36003 36004 36005 36006 36007 36008 36009 36010 36011 36012 36013 36014 36015 36016 36017 36018 36019 36020 36021 36022 36023 36024 36025 36026 36027 36028 36029 36030 36031 36032 36033 36034 36035 36036 36037 36038 36039 36040 36041 36042 36043 36044 36045 36046 36047 36048 36049 36050 36051 36052 36053 36054 36055 36056 36057 36058 36059 36060 36061 36062 36063 36064 36065 36066 36067 36068 36069 36070 36071 36072 36073 36074 36075 36076 36077 36078 36079 36080 36081 36082 36083 36084 36085 36086 36087 36088 36089 36090 36091 36092 36093 36094 36095 36096 36097 36098 36099 36100 36101 36102 36103 36104 36105 36106 36107 36108 36109 36110 36111 36112 36113 36114 36115 36116 36117 36118 36119 36120 36121 36122 36123 36124 36125 36126 36127 36128 36129 36130 36131 36132 36133 36134 36135 36136 36137 36138 36139 36140 36141 36142 36143 36144 36145 36146 36147 36148 36149 36150 36151 36152 36153 36154 36155 36156 36157 36158 36159 36160 36161 36162 36163 36164 36165 36166 36167 36168 36169 36170 36171 36172 36173 36174 36175 36176 36177 36178 36179 36180 36181 36182 36183 36184 36185 36186 36187 36188 36189 36190 36191 36192 36193 36194 36195 36196 36197 36198 36199 36200 36201 36202 36203 36204 36205 36206 36207 36208 36209 36210 36211 36212 36213 36214 36215 36216 36217 36218 36219 36220 36221 36222 36223 36224 36225 36226 36227 36228 36229 36230 36231 36232 36233 36234 36235 36236 36237 36238 36239 36240 36241 36242 36243 36244 36245 36246 36247 36248 36249 36250 36251 36252 36253 36254 36255 36256 36257 36258 36259 36260 36261 36262 36263 36264 36265 36266 36267 36268 36269 36270 36271 36272 36273 36274 36275 36276 36277 36278 36279 36280 36281 36282 36283 36284 36285 36286 36287 36288 36289 36290 36291 36292 36293 36294 36295 36296 36297 36298 36299 36300 36301 36302 36303 36304 36305 36306 36307 36308 36309 36310 36311 36312 36313 36314 36315 36316 36317 36318 36319 36320 36321 36322 36323 36324 36325 36326 36327 36328 36329 36330 36331 36332 36333 36334 36335 36336 36337 36338 36339 36340 36341 36342 36343 36344 36345 36346 36347 36348 36349 36350 36351 36352 36353 36354 36355 36356 36357 36358 36359 36360 36361 36362 36363 36364 36365 36366 36367 36368 36369 36370 36371 36372 36373 36374 36375 36376 36377 36378 36379 36380 36381 36382 36383 36384 36385 36386 36387 36388 36389 36390 36391 36392 36393 36394 36395 36396 36397 36398 36399 36400 36401 36402 36403 36404 36405 36406 36407 36408 36409 36410 36411 36412 36413 36414 36415 36416 36417 36418 36419 36420 36421 36422 36423 36424 36425 36426 36427 36428 36429 36430 36431 36432 36433 36434 36435 36436 36437 36438 36439 36440 36441 36442 36443 36444 36445 36446 36447 36448 36449 36450 36451 36452 36453 36454 36455 36456 36457 36458 36459 36460 36461 36462 36463 36464 36465 36466 36467 36468 36469 36470 36471 36472 36473 36474 36475 36476 36477 36478 36479 36480 36481 36482 36483 36484 36485 36486 36487 36488 36489 36490 36491 36492 36493 36494 36495 36496 36497 36498 36499 36500 36501 36502 36503 36504 36505 36506 36507 36508 36509 36510 36511 36512 36513 36514 36515 36516 36517 36518 36519 36520 36521 36522 36523 36524 36525 36526 36527 36528 36529 36530 36531 36532 36533 36534 36535 36536 36537 36538 36539 36540 36541 36542 36543 36544 36545 36546 36547 36548 36549 36550 36551 36552 36553 36554 36555 36556 36557 36558 36559 36560 36561 36562 36563 36564 36565 36566 36567 36568 36569 36570 36571 36572 36573 36574 36575 36576 36577 36578 36579 36580 36581 36582 36583 36584 36585 36586 36587 36588 36589 36590 36591 36592 36593 36594 36595 36596 36597 36598 36599 36600 36601 36602 36603 36604 36605 36606 36607 36608 36609 36610 36611 36612 36613 36614 36615 36616 36617 36618 36619 36620 36621 36622 36623 36624 36625 36626 36627 36628 36629 36630 36631 36632 36633 36634 36635 36636 36637 36638 36639 36640 36641 36642 36643 36644 36645 36646 36647 36648 36649 36650 36651 36652 36653 36654 36655 36656 36657 36658 36659 36660 36661 36662 36663 36664 36665 36666 36667 36668 36669 36670 36671 36672 36673 36674 36675 36676 36677 36678 36679 36680 36681 36682 36683 36684 36685 36686 36687 36688 36689 36690 36691 36692 36693 36694 36695 36696 36697 36698 36699 36700 36701 36702 36703 36704 36705 36706 36707 36708 36709 36710 36711 36712 36713 36714 36715 36716 36717 36718 36719 36720 36721 36722 36723 36724 36725 36726 36727 36728 36729 36730 36731 36732 36733 36734 36735 36736 36737 36738 36739 36740 36741 36742 36743 36744 36745 36746 36747 36748 36749 36750 36751 36752 36753 36754 36755 36756 36757 36758 36759 36760 36761 36762 36763 36764 36765 36766 36767 36768 36769 36770 36771 36772 36773 36774 36775 36776 36777 36778 36779 36780 36781 36782 36783 36784 36785 36786 36787 36788 36789 36790 36791 36792 36793 36794 36795 36796 36797 36798 36799 36800 36801 36802 36803 36804 36805 36806 36807 36808 36809 36810 36811 36812 36813 36814 36815 36816 36817 36818 36819 36820 36821 36822 36823 36824 36825 36826 36827 36828 36829 36830 36831 36832 36833 36834 36835 36836 36837 36838 36839 36840 36841 36842 36843 36844 36845 36846 36847 36848 36849 36850 36851 36852 36853 36854 36855 36856 36857 36858 36859 36860 36861 36862 36863 36864 36865 36866 36867 36868 36869 36870 36871 36872 36873 36874 36875 36876 36877 36878 36879 36880 36881 36882 36883 36884 36885 36886 36887 36888 36889 36890 36891 36892 36893 36894 36895 36896 36897 36898 36899 36900 36901 36902 36903 36904 36905 36906 36907 36908 36909 36910 36911 36912 36913 36914 36915 36916 36917 36918 36919 36920 36921 36922 36923 36924 36925 36926 36927 36928 36929 36930 36931 36932 36933 36934 36935 36936 36937 36938 36939 36940 36941 36942 36943 36944 36945 36946 36947 36948 36949 36950 36951 36952 36953 36954 36955 36956 36957 36958 36959 36960 36961 36962 36963 36964 36965 36966 36967 36968 36969 36970 36971 36972 36973 36974 36975 36976 36977 36978 36979 36980 36981 36982 36983 36984 36985 36986 36987 36988 36989 36990 36991 36992 36993 36994 36995 36996 36997 36998 36999 37000 37001 37002 37003 37004 37005 37006 37007 37008 37009 37010 37011 37012 37013 37014 37015 37016 37017 37018 37019 37020 37021 37022 37023 37024 37025 37026 37027 37028 37029 37030 37031 37032 37033 37034 37035 37036 37037 37038 37039 37040 37041 37042 37043 37044 37045 37046 37047 37048 37049 37050 37051 37052 37053 37054 37055 37056 37057 37058 37059 37060 37061 37062 37063 37064 37065 37066 37067 37068 37069 37070 37071 37072 37073 37074 37075 37076 37077 37078 37079 37080 37081 37082 37083 37084 37085 37086 37087 37088 37089 37090 37091 37092 37093 37094 37095 37096 37097 37098 37099 37100 37101 37102 37103 37104 37105 37106 37107 37108 37109 37110 37111 37112 37113 37114 37115 37116 37117 37118 37119 37120 37121 37122 37123 37124 37125 37126 37127 37128 37129 37130 37131 37132 37133 37134 37135 37136 37137 37138 37139 37140 37141 37142 37143 37144 37145 37146 37147 37148 37149 37150 37151 37152 37153 37154 37155 37156 37157 37158 37159 37160 37161 37162 37163 37164 37165 37166 37167 37168 37169 37170 37171 37172 37173 37174 37175 37176 37177 37178 37179 37180 37181 37182 37183 37184 37185 37186 37187 37188 37189 37190 37191 37192 37193 37194 37195 37196 37197 37198 37199 37200 37201 37202 37203 37204 37205 37206 37207 37208 37209 37210 37211 37212 37213 37214 37215 37216 37217 37218 37219 37220 37221 37222 37223 37224 37225 37226 37227 37228 37229 37230 37231 37232 37233 37234 37235 37236 37237 37238 37239 37240 37241 37242 37243 37244 37245 37246 37247 37248 37249 37250 37251 37252 37253 37254 37255 37256 37257 37258 37259 37260 37261 37262 37263 37264 37265 37266 37267 37268 37269 37270 37271 37272 37273 37274 37275 37276 37277 37278 37279 37280 37281 37282 37283 37284 37285 37286 37287 37288 37289 37290 37291 37292 37293 37294 37295 37296 37297 37298 37299 37300 37301 37302 37303 37304 37305 37306 37307 37308 37309 37310 37311 37312 37313 37314 37315 37316 37317 37318 37319 37320 37321 37322 37323 37324 37325 37326 37327 37328 37329 37330 37331 37332 37333 37334 37335 37336 37337 37338 37339 37340 37341 37342 37343 37344 37345 37346 37347 37348 37349 37350 37351 37352 37353 37354 37355 37356 37357 37358 37359 37360 37361 37362 37363 37364 37365 37366 37367 37368 37369 37370 37371 37372 37373 37374 37375 37376 37377 37378 37379 37380 37381 37382 37383 37384 37385 37386 37387 37388 37389 37390 37391 37392 37393 37394 37395 37396 37397 37398 37399 37400 37401 37402 37403 37404 37405 37406 37407 37408 37409 37410 37411 37412 37413 37414 37415 37416 37417 37418 37419 37420 37421 37422 37423 37424 37425 37426 37427 37428 37429 37430 37431 37432 37433 37434 37435 37436 37437 37438 37439 37440 37441 37442 37443 37444 37445 37446 37447 37448 37449 37450 37451 37452 37453 37454 37455 37456 37457 37458 37459 37460 37461 37462 37463 37464 37465 37466 37467 37468 37469 37470 37471 37472 37473 37474 37475 37476 37477 37478 37479 37480 37481 37482 37483 37484 37485 37486 37487 37488 37489 37490 37491 37492 37493 37494 37495 37496 37497 37498 37499 37500 37501 37502 37503 37504 37505 37506 37507 37508 37509 37510 37511 37512 37513 37514 37515 37516 37517 37518 37519 37520 37521 37522 37523 37524 37525 37526 37527 37528 37529 37530 37531 37532 37533 37534 37535 37536 37537 37538 37539 37540 37541 37542 37543 37544 37545 37546 37547 37548 37549 37550 37551 37552 37553 37554 37555 37556 37557 37558 37559 37560 37561 37562 37563 37564 37565 37566 37567 37568 37569 37570 37571 37572 37573 37574 37575 37576 37577 37578 37579 37580 37581 37582 37583 37584 37585 37586 37587 37588 37589 37590 37591 37592 37593 37594 37595 37596 37597 37598 37599 37600 37601 37602 37603 37604 37605 37606 37607 37608 37609 37610 37611 37612 37613 37614 37615 37616 37617 37618 37619 37620 37621 37622 37623 37624 37625 37626 37627 37628 37629 37630 37631 37632 37633 37634 37635 37636 37637 37638 37639 37640 37641 37642 37643 37644 37645 37646 37647 37648 37649 37650 37651 37652 37653 37654 37655 37656 37657 37658 37659 37660 37661 37662 37663 37664 37665 37666 37667 37668 37669 37670 37671 37672 37673 37674 37675 37676 37677 37678 37679 37680 37681 37682 37683 37684 37685 37686 37687 37688 37689 37690 37691 37692 37693 37694 37695 37696 37697 37698 37699 37700 37701 37702 37703 37704 37705 37706 37707 37708 37709 37710 37711 37712 37713 37714 37715 37716 37717 37718 37719 37720 37721 37722 37723 37724 37725 37726 37727 37728 37729 37730 37731 37732 37733 37734 37735 37736 37737 37738 37739 37740 37741 37742 37743 37744 37745 37746 37747 37748 37749 37750 37751 37752 37753 37754 37755 37756 37757 37758 37759 37760 37761 37762 37763 37764 37765 37766 37767 37768 37769 37770 37771 37772 37773 37774 37775 37776 37777 37778 37779 37780 37781 37782 37783 37784 37785 37786 37787 37788 37789 37790 37791 37792 37793 37794 37795 37796 37797 37798 37799 37800 37801 37802 37803 37804 37805 37806 37807 37808 37809 37810 37811 37812 37813 37814 37815 37816 37817 37818 37819 37820 37821 37822 37823 37824 37825 37826 37827 37828 37829 37830 37831 37832 37833 37834 37835 37836 37837 37838 37839 37840 37841 37842 37843 37844 37845 37846 37847 37848 37849 37850 37851 37852 37853 37854 37855 37856 37857 37858 37859 37860 37861 37862 37863 37864 37865 37866 37867 37868 37869 37870 37871 37872 37873 37874 37875 37876 37877 37878 37879 37880 37881 37882 37883 37884 37885 37886 37887 37888 37889 37890 37891 37892 37893 37894 37895 37896 37897 37898 37899 37900 37901 37902 37903 37904 37905 37906 37907 37908 37909 37910 37911 37912 37913 37914 37915 37916 37917 37918 37919 37920 37921 37922 37923 37924 37925 37926 37927 37928 37929 37930 37931 37932 37933 37934 37935 37936 37937 37938 37939 37940 37941 37942 37943 37944 37945 37946 37947 37948 37949 37950 37951 37952 37953 37954 37955 37956 37957 37958 37959 37960 37961 37962 37963 37964 37965 37966 37967 37968 37969 37970 37971 37972 37973 37974 37975 37976 37977 37978 37979 37980 37981 37982 37983 37984 37985 37986 37987 37988 37989 37990 37991 37992 37993 37994 37995 37996 37997 37998 37999 38000 38001 38002 38003 38004 38005 38006 38007 38008 38009 38010 38011 38012 38013 38014 38015 38016 38017 38018 38019 38020 38021 38022 38023 38024 38025 38026 38027 38028 38029 38030 38031 38032 38033 38034 38035 38036 38037 38038 38039 38040 38041 38042 38043 38044 38045 38046 38047 38048 38049 38050 38051 38052 38053 38054 38055 38056 38057 38058 38059 38060 38061 38062 38063 38064 38065 38066 38067 38068 38069 38070 38071 38072 38073 38074 38075 38076 38077 38078 38079 38080 38081 38082 38083 38084 38085 38086 38087 38088 38089 38090 38091 38092 38093 38094 38095 38096 38097 38098 38099 38100 38101 38102 38103 38104 38105 38106 38107 38108 38109 38110 38111 38112 38113 38114 38115 38116 38117 38118 38119 38120 38121 38122 38123 38124 38125 38126 38127 38128 38129 38130 38131 38132 38133 38134 38135 38136 38137 38138 38139 38140 38141 38142 38143 38144 38145 38146 38147 38148 38149 38150 38151 38152 38153 38154 38155 38156 38157 38158 38159 38160 38161 38162 38163 38164 38165 38166 38167 38168 38169 38170 38171 38172 38173 38174 38175 38176 38177 38178 38179 38180 38181 38182 38183 38184 38185 38186 38187 38188 38189 38190 38191 38192 38193 38194 38195 38196 38197 38198 38199 38200 38201 38202 38203 38204 38205 38206 38207 38208 38209 38210 38211 38212 38213 38214 38215 38216 38217 38218 38219 38220 38221 38222 38223 38224 38225 38226 38227 38228 38229 38230 38231 38232 38233 38234 38235 38236 38237 38238 38239 38240 38241 38242 38243 38244 38245 38246 38247 38248 38249 38250 38251 38252 38253 38254 38255 38256 38257 38258 38259 38260 38261 38262 38263 38264 38265 38266 38267 38268 38269 38270 38271 38272 38273 38274 38275 38276 38277 38278 38279 38280 38281 38282 38283 38284 38285 38286 38287 38288 38289 38290 38291 38292 38293 38294 38295 38296 38297 38298 38299 38300 38301 38302 38303 38304 38305 38306 38307 38308 38309 38310 38311 38312 38313 38314 38315 38316 38317 38318 38319 38320 38321 38322 38323 38324 38325 38326 38327 38328 38329 38330 38331 38332 38333 38334 38335 38336 38337 38338 38339 38340 38341 38342 38343 38344 38345 38346 38347 38348 38349 38350 38351 38352 38353 38354 38355 38356 38357 38358 38359 38360 38361 38362 38363 38364 38365 38366 38367 38368 38369 38370 38371 38372 38373 38374 38375 38376 38377 38378 38379 38380 38381 38382 38383 38384 38385 38386 38387 38388 38389 38390 38391 38392 38393 38394 38395 38396 38397 38398 38399 38400 38401 38402 38403 38404 38405 38406 38407 38408 38409 38410 38411 38412 38413 38414 38415 38416 38417 38418 38419 38420 38421 38422 38423 38424 38425 38426 38427 38428 38429 38430 38431 38432 38433 38434 38435 38436 38437 38438 38439 38440 38441 38442 38443 38444 38445 38446 38447 38448 38449 38450 38451 38452 38453 38454 38455 38456 38457 38458 38459 38460 38461 38462 38463 38464 38465 38466 38467 38468 38469 38470 38471 38472 38473 38474 38475 38476 38477 38478 38479 38480 38481 38482 38483 38484 38485 38486 38487 38488 38489 38490 38491 38492 38493 38494 38495 38496 38497 38498 38499 38500 38501 38502 38503 38504 38505 38506 38507 38508 38509 38510 38511 38512 38513 38514 38515 38516 38517 38518 38519 38520 38521 38522 38523 38524 38525 38526 38527 38528 38529 38530 38531 38532 38533 38534 38535 38536 38537 38538 38539 38540 38541 38542 38543 38544 38545 38546 38547 38548 38549 38550 38551 38552 38553 38554 38555 38556 38557 38558 38559 38560 38561 38562 38563 38564 38565 38566 38567 38568 38569 38570 38571 38572 38573 38574 38575 38576 38577 38578 38579 38580 38581 38582 38583 38584 38585 38586 38587 38588 38589 38590 38591 38592 38593 38594 38595 38596 38597 38598 38599 38600 38601 38602 38603 38604 38605 38606 38607 38608 38609 38610 38611 38612 38613 38614 38615 38616 38617 38618 38619 38620 38621 38622 38623 38624 38625 38626 38627 38628 38629 38630 38631 38632 38633 38634 38635 38636 38637 38638 38639 38640 38641 38642 38643 38644 38645 38646 38647 38648 38649 38650 38651 38652 38653 38654 38655 38656 38657 38658 38659 38660 38661 38662 38663 38664 38665 38666 38667 38668 38669 38670 38671 38672 38673 38674 38675 38676 38677 38678 38679 38680 38681 38682 38683 38684 38685 38686 38687 38688 38689 38690 38691 38692 38693 38694 38695 38696 38697 38698 38699 38700 38701 38702 38703 38704 38705 38706 38707 38708 38709 38710 38711 38712 38713 38714 38715 38716 38717 38718 38719 38720 38721 38722 38723 38724 38725 38726 38727 38728 38729 38730 38731 38732 38733 38734 38735 38736 38737 38738 38739 38740 38741 38742 38743 38744 38745 38746 38747 38748 38749 38750 38751 38752 38753 38754 38755 38756 38757 38758 38759 38760 38761 38762 38763 38764 38765 38766 38767 38768 38769 38770 38771 38772 38773 38774 38775 38776 38777 38778 38779 38780 38781 38782 38783 38784 38785 38786 38787 38788 38789 38790 38791 38792 38793 38794 38795 38796 38797 38798 38799 38800 38801 38802 38803 38804 38805 38806 38807 38808 38809 38810 38811 38812 38813 38814 38815 38816 38817 38818 38819 38820 38821 38822 38823 38824 38825 38826 38827 38828 38829 38830 38831 38832 38833 38834 38835 38836 38837 38838 38839 38840 38841 38842 38843 38844 38845 38846 38847 38848 38849 38850 38851 38852 38853 38854 38855 38856 38857 38858 38859 38860 38861 38862 38863 38864 38865 38866 38867 38868 38869 38870 38871 38872 38873 38874 38875 38876 38877 38878 38879 38880 38881 38882 38883 38884 38885 38886 38887 38888 38889 38890 38891 38892 38893 38894 38895 38896 38897 38898 38899 38900 38901 38902 38903 38904 38905 38906 38907 38908 38909 38910 38911 38912 38913 38914 38915 38916 38917 38918 38919 38920 38921 38922 38923 38924 38925 38926 38927 38928 38929 38930 38931 38932 38933 38934 38935 38936 38937 38938 38939 38940 38941 38942 38943 38944 38945 38946 38947 38948 38949 38950 38951 38952 38953 38954 38955 38956 38957 38958 38959 38960 38961 38962 38963 38964 38965 38966 38967 38968 38969 38970 38971 38972 38973 38974 38975 38976 38977 38978 38979 38980 38981 38982 38983 38984 38985 38986 38987 38988 38989 38990 38991 38992 38993 38994 38995 38996 38997 38998 38999 39000 39001 39002 39003 39004 39005 39006 39007 39008 39009 39010 39011 39012 39013 39014 39015 39016 39017 39018 39019 39020 39021 39022 39023 39024 39025 39026 39027 39028 39029 39030 39031 39032 39033 39034 39035 39036 39037 39038 39039 39040 39041 39042 39043 39044 39045 39046 39047 39048 39049 39050 39051 39052 39053 39054 39055 39056 39057 39058 39059 39060 39061 39062 39063 39064 39065 39066 39067 39068 39069 39070 39071 39072 39073 39074 39075 39076 39077 39078 39079 39080 39081 39082 39083 39084 39085 39086 39087 39088 39089 39090 39091 39092 39093 39094 39095 39096 39097 39098 39099 39100 39101 39102 39103 39104 39105 39106 39107 39108 39109 39110 39111 39112 39113 39114 39115 39116 39117 39118 39119 39120 39121 39122 39123 39124 39125 39126 39127 39128 39129 39130 39131 39132 39133 39134 39135 39136 39137 39138 39139 39140 39141 39142 39143 39144 39145 39146 39147 39148 39149 39150 39151 39152 39153 39154 39155 39156 39157 39158 39159 39160 39161 39162 39163 39164 39165 39166 39167 39168 39169 39170 39171 39172 39173 39174 39175 39176 39177 39178 39179 39180 39181 39182 39183 39184 39185 39186 39187 39188 39189 39190 39191 39192 39193 39194 39195 39196 39197 39198 39199 39200 39201 39202 39203 39204 39205 39206 39207 39208 39209 39210 39211 39212 39213 39214 39215 39216 39217 39218 39219 39220 39221 39222 39223 39224 39225 39226 39227 39228 39229 39230 39231 39232 39233 39234 39235 39236 39237 39238 39239 39240 39241 39242 39243 39244 39245 39246 39247 39248 39249 39250 39251 39252 39253 39254 39255 39256 39257 39258 39259 39260 39261 39262 39263 39264 39265 39266 39267 39268 39269 39270 39271 39272 39273 39274 39275 39276 39277 39278 39279 39280 39281 39282 39283 39284 39285 39286 39287 39288 39289 39290 39291 39292 39293 39294 39295 39296 39297 39298 39299 39300 39301 39302 39303 39304 39305 39306 39307 39308 39309 39310 39311 39312 39313 39314 39315 39316 39317 39318 39319 39320 39321 39322 39323 39324 39325 39326 39327 39328 39329 39330 39331 39332 39333 39334 39335 39336 39337 39338 39339 39340 39341 39342 39343 39344 39345 39346 39347 39348 39349 39350 39351 39352 39353 39354 39355 39356 39357 39358 39359 39360 39361 39362 39363 39364 39365 39366 39367 39368 39369 39370 39371 39372 39373 39374 39375 39376 39377 39378 39379 39380 39381 39382 39383 39384 39385 39386 39387 39388 39389 39390 39391 39392 39393 39394 39395 39396 39397 39398 39399 39400 39401 39402 39403 39404 39405 39406 39407 39408 39409 39410 39411 39412 39413 39414 39415 39416 39417 39418 39419 39420 39421 39422 39423 39424 39425 39426 39427 39428 39429 39430 39431 39432 39433 39434 39435 39436 39437 39438 39439 39440 39441 39442 39443 39444 39445 39446 39447 39448 39449 39450 39451 39452 39453 39454 39455 39456 39457 39458 39459 39460 39461 39462 39463 39464 39465 39466 39467 39468 39469 39470 39471 39472 39473 39474 39475 39476 39477 39478 39479 39480 39481 39482 39483 39484 39485 39486 39487 39488 39489 39490 39491 39492 39493 39494 39495 39496 39497 39498 39499 39500 39501 39502 39503 39504 39505 39506 39507 39508 39509 39510 39511 39512 39513 39514 39515 39516 39517 39518 39519 39520 39521 39522 39523 39524 39525 39526 39527 39528 39529 39530 39531 39532 39533 39534 39535 39536 39537 39538 39539 39540 39541 39542 39543 39544 39545 39546 39547 39548 39549 39550 39551 39552 39553 39554 39555 39556 39557 39558 39559 39560 39561 39562 39563 39564 39565 39566 39567 39568 39569 39570 39571 39572 39573 39574 39575 39576 39577 39578 39579 39580 39581 39582 39583 39584 39585 39586 39587 39588 39589 39590 39591 39592 39593 39594 39595 39596 39597 39598 39599 39600 39601 39602 39603 39604 39605 39606 39607 39608 39609 39610 39611 39612 39613 39614 39615 39616 39617 39618 39619 39620 39621 39622 39623 39624 39625 39626 39627 39628 39629 39630 39631 39632 39633 39634 39635 39636 39637 39638 39639 39640 39641 39642 39643 39644 39645 39646 39647 39648 39649 39650 39651 39652 39653 39654 39655 39656 39657 39658 39659 39660 39661 39662 39663 39664 39665 39666 39667 39668 39669 39670 39671 39672 39673 39674 39675 39676 39677 39678 39679 39680 39681 39682 39683 39684 39685 39686 39687 39688 39689 39690 39691 39692 39693 39694 39695 39696 39697 39698 39699 39700 39701 39702 39703 39704 39705 39706 39707 39708 39709 39710 39711 39712 39713 39714 39715 39716 39717 39718 39719 39720 39721 39722 39723 39724 39725 39726 39727 39728 39729 39730 39731 39732 39733 39734 39735 39736 39737 39738 39739 39740 39741 39742 39743 39744 39745 39746 39747 39748 39749 39750 39751 39752 39753 39754 39755 39756 39757 39758 39759 39760 39761 39762 39763 39764 39765 39766 39767 39768 39769 39770 39771 39772 39773 39774 39775 39776 39777 39778 39779 39780 39781 39782 39783 39784 39785 39786 39787 39788 39789 39790 39791 39792 39793 39794 39795 39796 39797 39798 39799 39800 39801 39802 39803 39804 39805 39806 39807 39808 39809 39810 39811 39812 39813 39814 39815 39816 39817 39818 39819 39820 39821 39822 39823 39824 39825 39826 39827 39828 39829 39830 39831 39832 39833 39834 39835 39836 39837 39838 39839 39840 39841 39842 39843 39844 39845 39846 39847 39848 39849 39850 39851 39852 39853 39854 39855 39856 39857 39858 39859 39860 39861 39862 39863 39864 39865 39866 39867 39868 39869 39870 39871 39872 39873 39874 39875 39876 39877 39878 39879 39880 39881 39882 39883 39884 39885 39886 39887 39888 39889 39890 39891 39892 39893 39894 39895 39896 39897 39898 39899 39900 39901 39902 39903 39904 39905 39906 39907 39908 39909 39910 39911 39912 39913 39914 39915 39916 39917 39918 39919 39920 39921 39922 39923 39924 39925 39926 39927 39928 39929 39930 39931 39932 39933 39934 39935 39936 39937 39938 39939 39940 39941 39942 39943 39944 39945 39946 39947 39948 39949 39950 39951 39952 39953 39954 39955 39956 39957 39958 39959 39960 39961 39962 39963 39964 39965 39966 39967 39968 39969 39970 39971 39972 39973 39974 39975 39976 39977 39978 39979 39980 39981 39982 39983 39984 39985 39986 39987 39988 39989 39990 39991 39992 39993 39994 39995 39996 39997 39998 39999 40000 40001 40002 40003 40004 40005 40006 40007 40008 40009 40010 40011 40012 40013 40014 40015 40016 40017 40018 40019 40020 40021 40022 40023 40024 40025 40026 40027 40028 40029 40030 40031 40032 40033 40034 40035 40036 40037 40038 40039 40040 40041 40042 40043 40044 40045 40046 40047 40048 40049 40050 40051 40052 40053 40054 40055 40056 40057 40058 40059 40060 40061 40062 40063 40064 40065 40066 40067 40068 40069 40070 40071 40072 40073 40074 40075 40076 40077 40078 40079 40080 40081 40082 40083 40084 40085 40086 40087 40088 40089 40090 40091 40092 40093 40094 40095 40096 40097 40098 40099 40100 40101 40102 40103 40104 40105 40106 40107 40108 40109 40110 40111 40112 40113 40114 40115 40116 40117 40118 40119 40120 40121 40122 40123 40124 40125 40126 40127 40128 40129 40130 40131 40132 40133 40134 40135 40136 40137 40138 40139 40140 40141 40142 40143 40144 40145 40146 40147 40148 40149 40150 40151 40152 40153 40154 40155 40156 40157 40158 40159 40160 40161 40162 40163 40164 40165 40166 40167 40168 40169 40170 40171 40172 40173 40174 40175 40176 40177 40178 40179 40180 40181 40182 40183 40184 40185 40186 40187 40188 40189 40190 40191 40192 40193 40194 40195 40196 40197 40198 40199 40200 40201 40202 40203 40204 40205 40206 40207 40208 40209 40210 40211 40212 40213 40214 40215 40216 40217 40218 40219 40220 40221 40222 40223 40224 40225 40226 40227 40228 40229 40230 40231 40232 40233 40234 40235 40236 40237 40238 40239 40240 40241 40242 40243 40244 40245 40246 40247 40248 40249 40250 40251 40252 40253 40254 40255 40256 40257 40258 40259 40260 40261 40262 40263 40264 40265 40266 40267 40268 40269 40270 40271 40272 40273 40274 40275 40276 40277 40278 40279 40280 40281 40282 40283 40284 40285 40286 40287 40288 40289 40290 40291 40292 40293 40294 40295 40296 40297 40298 40299 40300 40301 40302 40303 40304 40305 40306 40307 40308 40309 40310 40311 40312 40313 40314 40315 40316 40317 40318 40319 40320 40321 40322 40323 40324 40325 40326 40327 40328 40329 40330 40331 40332 40333 40334 40335 40336 40337 40338 40339 40340 40341 40342 40343 40344 40345 40346 40347 40348 40349 40350 40351 40352 40353 40354 40355 40356 40357 40358 40359 40360 40361 40362 40363 40364 40365 40366 40367 40368 40369 40370 40371 40372 40373 40374 40375 40376 40377 40378 40379 40380 40381 40382 40383 40384 40385 40386 40387 40388 40389 40390 40391 40392 40393 40394 40395 40396 40397 40398 40399 40400 40401 40402 40403 40404 40405 40406 40407 40408 40409 40410 40411 40412 40413 40414 40415 40416 40417 40418 40419 40420 40421 40422 40423 40424 40425 40426 40427 40428 40429 40430 40431 40432 40433 40434 40435 40436 40437 40438 40439 40440 40441 40442 40443 40444 40445 40446 40447 40448 40449 40450 40451 40452 40453 40454 40455 40456 40457 40458 40459 40460 40461 40462 40463 40464 40465 40466 40467 40468 40469 40470 40471 40472 40473 40474 40475 40476 40477 40478 40479 40480 40481 40482 40483 40484 40485 40486 40487 40488 40489 40490 40491 40492 40493 40494 40495 40496 40497 40498 40499 40500 40501 40502 40503 40504 40505 40506 40507 40508 40509 40510 40511 40512 40513 40514 40515 40516 40517 40518 40519 40520 40521 40522 40523 40524 40525 40526 40527 40528 40529 40530 40531 40532 40533 40534 40535 40536 40537 40538 40539 40540 40541 40542 40543 40544 40545 40546 40547 40548 40549 40550 40551 40552 40553 40554 40555 40556 40557 40558 40559 40560 40561 40562 40563 40564 40565 40566 40567 40568 40569 40570 40571 40572 40573 40574 40575 40576 40577 40578 40579 40580 40581 40582 40583 40584 40585 40586 40587 40588 40589 40590 40591 40592 40593 40594 40595 40596 40597 40598 40599 40600 40601 40602 40603 40604 40605 40606 40607 40608 40609 40610 40611 40612 40613 40614 40615 40616 40617 40618 40619 40620 40621 40622 40623 40624 40625 40626 40627 40628 40629 40630 40631 40632 40633 40634 40635 40636 40637 40638 40639 40640 40641 40642 40643 40644 40645 40646 40647 40648 40649 40650 40651 40652 40653 40654 40655 40656 40657 40658 40659 40660 40661 40662 40663 40664 40665 40666 40667 40668 40669 40670 40671 40672 40673 40674 40675 40676 40677 40678 40679 40680 40681 40682 40683 40684 40685 40686 40687 40688 40689 40690 40691 40692 40693 40694 40695 40696 40697 40698 40699 40700 40701 40702 40703 40704 40705 40706 40707 40708 40709 40710 40711 40712 40713 40714 40715 40716 40717 40718 40719 40720 40721 40722 40723 40724 40725 40726 40727 40728 40729 40730 40731 40732 40733 40734 40735 40736 40737 40738 40739 40740 40741 40742 40743 40744 40745 40746 40747 40748 40749 40750 40751 40752 40753 40754 40755 40756 40757 40758 40759 40760 40761 40762 40763 40764 40765 40766 40767 40768 40769 40770 40771 40772 40773 40774 40775 40776 40777 40778 40779 40780 40781 40782 40783 40784 40785 40786 40787 40788 40789 40790 40791 40792 40793 40794 40795 40796 40797 40798 40799 40800 40801 40802 40803 40804 40805 40806 40807 40808 40809 40810 40811 40812 40813 40814 40815 40816 40817 40818 40819 40820 40821 40822 40823 40824 40825 40826 40827 40828 40829 40830 40831 40832 40833 40834 40835 40836 40837 40838 40839 40840 40841 40842 40843 40844 40845 40846 40847 40848 40849 40850 40851 40852 40853 40854 40855 40856 40857 40858 40859 40860 40861 40862 40863 40864 40865 40866 40867 40868 40869 40870 40871 40872 40873 40874 40875 40876 40877 40878 40879 40880 40881 40882 40883 40884 40885 40886 40887 40888 40889 40890 40891 40892 40893 40894 40895 40896 40897 40898 40899 40900 40901 40902 40903 40904 40905 40906 40907 40908 40909 40910 40911 40912 40913 40914 40915 40916 40917 40918 40919 40920 40921 40922 40923 40924 40925 40926 40927 40928 40929 40930 40931 40932 40933 40934 40935 40936 40937 40938 40939 40940 40941 40942 40943 40944 40945 40946 40947 40948 40949 40950 40951 40952 40953 40954 40955 40956 40957 40958 40959 40960 40961 40962 40963 40964 40965 40966 40967 40968 40969 40970 40971 40972 40973 40974 40975 40976 40977 40978 40979 40980 40981 40982 40983 40984 40985 40986 40987 40988 40989 40990 40991 40992 40993 40994 40995 40996 40997 40998 40999 41000 41001 41002 41003 41004 41005 41006 41007 41008 41009 41010 41011 41012 41013 41014 41015 41016 41017 41018 41019 41020 41021 41022 41023 41024 41025 41026 41027 41028 41029 41030 41031 41032 41033 41034 41035 41036 41037 41038 41039 41040 41041 41042 41043 41044 41045 41046 41047 41048 41049 41050 41051 41052 41053 41054 41055 41056 41057 41058 41059 41060 41061 41062 41063 41064 41065 41066 41067 41068 41069 41070 41071 41072 41073 41074 41075 41076 41077 41078 41079 41080 41081 41082 41083 41084 41085 41086 41087 41088 41089 41090 41091 41092 41093 41094 41095 41096 41097 41098 41099 41100 41101 41102 41103 41104 41105 41106 41107 41108 41109 41110 41111 41112 41113 41114 41115 41116 41117 41118 41119 41120 41121 41122 41123 41124 41125 41126 41127 41128 41129 41130 41131 41132 41133 41134 41135 41136 41137 41138 41139 41140 41141 41142 41143 41144 41145 41146 41147 41148 41149 41150 41151 41152 41153 41154 41155 41156 41157 41158 41159 41160 41161 41162 41163 41164 41165 41166 41167 41168 41169 41170 41171 41172 41173 41174 41175 41176 41177 41178 41179 41180 41181 41182 41183 41184 41185 41186 41187 41188 41189 41190 41191 41192 41193 41194 41195 41196 41197 41198 41199 41200 41201 41202 41203 41204 41205 41206 41207 41208 41209 41210 41211 41212 41213 41214 41215 41216 41217 41218 41219 41220 41221 41222 41223 41224 41225 41226 41227 41228 41229 41230 41231 41232 41233 41234 41235 41236 41237 41238 41239 41240 41241 41242 41243 41244 41245 41246 41247 41248 41249 41250 41251 41252 41253 41254 41255 41256 41257 41258 41259 41260 41261 41262 41263 41264 41265 41266 41267 41268 41269 41270 41271 41272 41273 41274 41275 41276 41277 41278 41279 41280 41281 41282 41283 41284 41285 41286 41287 41288 41289 41290 41291 41292 41293 41294 41295 41296 41297 41298 41299 41300 41301 41302 41303 41304 41305 41306 41307 41308 41309 41310 41311 41312 41313 41314 41315 41316 41317 41318 41319 41320 41321 41322 41323 41324 41325 41326 41327 41328 41329 41330 41331 41332 41333 41334 41335 41336 41337 41338 41339 41340 41341 41342 41343 41344 41345 41346 41347 41348 41349 41350 41351 41352 41353 41354 41355 41356 41357 41358 41359 41360 41361 41362 41363 41364 41365 41366 41367 41368 41369 41370 41371 41372 41373 41374 41375 41376 41377 41378 41379 41380 41381 41382 41383 41384 41385 41386 41387 41388 41389 41390 41391 41392 41393 41394 41395 41396 41397 41398 41399 41400 41401 41402 41403 41404 41405 41406 41407 41408 41409 41410 41411 41412 41413 41414 41415 41416 41417 41418 41419 41420 41421 41422 41423 41424 41425 41426 41427 41428 41429 41430 41431 41432 41433 41434 41435 41436 41437 41438 41439 41440 41441 41442 41443 41444 41445 41446 41447 41448 41449 41450 41451 41452 41453 41454 41455 41456 41457 41458 41459 41460 41461 41462 41463 41464 41465 41466 41467 41468 41469 41470 41471 41472 41473 41474 41475 41476 41477 41478 41479 41480 41481 41482 41483 41484 41485 41486 41487 41488 41489 41490 41491 41492 41493 41494 41495 41496 41497 41498 41499 41500 41501 41502 41503 41504 41505 41506 41507 41508 41509 41510 41511 41512 41513 41514 41515 41516 41517 41518 41519 41520 41521 41522 41523 41524 41525 41526 41527 41528 41529 41530 41531 41532 41533 41534 41535 41536 41537 41538 41539 41540 41541 41542 41543 41544 41545 41546 41547 41548 41549 41550 41551 41552 41553 41554 41555 41556 41557 41558 41559 41560 41561 41562 41563 41564 41565 41566 41567 41568 41569 41570 41571 41572 41573 41574 41575 41576 41577 41578 41579 41580 41581 41582 41583 41584 41585 41586 41587 41588 41589 41590 41591 41592 41593 41594 41595 41596 41597 41598 41599 41600 41601 41602 41603 41604 41605 41606 41607 41608 41609 41610 41611 41612 41613 41614 41615 41616 41617 41618 41619 41620 41621 41622 41623 41624 41625 41626 41627 41628 41629 41630 41631 41632 41633 41634 41635 41636 41637 41638 41639 41640 41641 41642 41643 41644 41645 41646 41647 41648 41649 41650 41651 41652 41653 41654 41655 41656 41657 41658 41659 41660 41661 41662 41663 41664 41665 41666 41667 41668 41669 41670 41671 41672 41673 41674 41675 41676 41677 41678 41679 41680 41681 41682 41683 41684 41685 41686 41687 41688 41689 41690 41691 41692 41693 41694 41695 41696 41697 41698 41699 41700 41701 41702 41703 41704 41705 41706 41707 41708 41709 41710 41711 41712 41713 41714 41715 41716 41717 41718 41719 41720 41721 41722 41723 41724 41725 41726 41727 41728 41729 41730 41731 41732 41733 41734 41735 41736 41737 41738 41739 41740 41741 41742 41743 41744 41745 41746 41747 41748 41749 41750 41751 41752 41753 41754 41755 41756 41757 41758 41759 41760 41761 41762 41763 41764 41765 41766 41767 41768 41769 41770 41771 41772 41773 41774 41775 41776 41777 41778 41779 41780 41781 41782 41783 41784 41785 41786 41787 41788 41789 41790 41791 41792 41793 41794 41795 41796 41797 41798 41799 41800 41801 41802 41803 41804 41805 41806 41807 41808 41809 41810 41811 41812 41813 41814 41815 41816 41817 41818 41819 41820 41821 41822 41823 41824 41825 41826 41827 41828 41829 41830 41831 41832 41833 41834 41835 41836 41837 41838 41839 41840 41841 41842 41843 41844 41845 41846 41847 41848 41849 41850 41851 41852 41853 41854 41855 41856 41857 41858 41859 41860 41861 41862 41863 41864 41865 41866 41867 41868 41869 41870 41871 41872 41873 41874 41875 41876 41877 41878 41879 41880 41881 41882 41883 41884 41885 41886 41887 41888 41889 41890 41891 41892 41893 41894 41895 41896 41897 41898 41899 41900 41901 41902 41903 41904 41905 41906 41907 41908 41909 41910 41911 41912 41913 41914 41915 41916 41917 41918 41919 41920 41921 41922 41923 41924 41925 41926 41927 41928 41929 41930 41931 41932 41933 41934 41935 41936 41937 41938 41939 41940 41941 41942 41943 41944 41945 41946 41947 41948 41949 41950 41951 41952 41953 41954 41955 41956 41957 41958 41959 41960 41961 41962 41963 41964 41965 41966 41967 41968 41969 41970 41971 41972 41973 41974 41975 41976 41977 41978 41979 41980 41981 41982 41983 41984 41985 41986 41987 41988 41989 41990 41991 41992 41993 41994 41995 41996 41997 41998 41999 42000 42001 42002 42003 42004 42005 42006 42007 42008 42009 42010 42011 42012 42013 42014 42015 42016 42017 42018 42019 42020 42021 42022 42023 42024 42025 42026 42027 42028 42029 42030 42031 42032 42033 42034 42035 42036 42037 42038 42039 42040 42041 42042 42043 42044 42045 42046 42047 42048 42049 42050 42051 42052 42053 42054 42055 42056 42057 42058 42059 42060 42061 42062 42063 42064 42065 42066 42067 42068 42069 42070 42071 42072 42073 42074 42075 42076 42077 42078 42079 42080 42081 42082 42083 42084 42085 42086 42087 42088 42089 42090 42091 42092 42093 42094 42095 42096 42097 42098 42099 42100 42101 42102 42103 42104 42105 42106 42107 42108 42109 42110 42111 42112 42113 42114 42115 42116 42117 42118 42119 42120 42121 42122 42123 42124 42125 42126 42127 42128 42129 42130 42131 42132 42133 42134 42135 42136 42137 42138 42139 42140 42141 42142 42143 42144 42145 42146 42147 42148 42149 42150 42151 42152 42153 42154 42155 42156 42157 42158 42159 42160 42161 42162 42163 42164 42165 42166 42167 42168 42169 42170 42171 42172 42173 42174 42175 42176 42177 42178 42179 42180 42181 42182 42183 42184 42185 42186 42187 42188 42189 42190 42191 42192 42193 42194 42195 42196 42197 42198 42199 42200 42201 42202 42203 42204 42205 42206 42207 42208 42209 42210 42211 42212 42213 42214 42215 42216 42217 42218 42219 42220 42221 42222 42223 42224 42225 42226 42227 42228 42229 42230 42231 42232 42233 42234 42235 42236 42237 42238 42239 42240 42241 42242 42243 42244 42245 42246 42247 42248 42249 42250 42251 42252 42253 42254 42255 42256 42257 42258 42259 42260 42261 42262 42263 42264 42265 42266 42267 42268 42269 42270 42271 42272 42273 42274 42275 42276 42277 42278 42279 42280 42281 42282 42283 42284 42285 42286 42287 42288 42289 42290 42291 42292 42293 42294 42295 42296 42297 42298 42299 42300 42301 42302 42303 42304 42305 42306 42307 42308 42309 42310 42311 42312 42313 42314 42315 42316 42317 42318 42319 42320 42321 42322 42323 42324 42325 42326 42327 42328 42329 42330 42331 42332 42333 42334 42335 42336 42337 42338 42339 42340 42341 42342 42343 42344 42345 42346 42347 42348 42349 42350 42351 42352 42353 42354 42355 42356 42357 42358 42359 42360 42361 42362 42363 42364 42365 42366 42367 42368 42369 42370 42371 42372 42373 42374 42375 42376 42377 42378 42379 42380 42381 42382 42383 42384 42385 42386 42387 42388 42389 42390 42391 42392 42393 42394 42395 42396 42397 42398 42399 42400 42401 42402 42403 42404 42405 42406 42407 42408 42409 42410 42411 42412 42413 42414 42415 42416 42417 42418 42419 42420 42421 42422 42423 42424 42425 42426 42427 42428 42429 42430 42431 42432 42433 42434 42435 42436 42437 42438 42439 42440 42441 42442 42443 42444 42445 42446 42447 42448 42449 42450 42451 42452 42453 42454 42455 42456 42457 42458 42459 42460 42461 42462 42463 42464 42465 42466 42467 42468 42469 42470 42471 42472 42473 42474 42475 42476 42477 42478 42479 42480 42481 42482 42483 42484 42485 42486 42487 42488 42489 42490 42491 42492 42493 42494 42495 42496 42497 42498 42499 42500 42501 42502 42503 42504 42505 42506 42507 42508 42509 42510 42511 42512 42513 42514 42515 42516 42517 42518 42519 42520 42521 42522 42523 42524 42525 42526 42527 42528 42529 42530 42531 42532 42533 42534 42535 42536 42537 42538 42539 42540 42541 42542 42543 42544 42545 42546 42547 42548 42549 42550 42551 42552 42553 42554 42555 42556 42557 42558 42559 42560 42561 42562 42563 42564 42565 42566 42567 42568 42569 42570 42571 42572 42573 42574 42575 42576 42577 42578 42579 42580 42581 42582 42583 42584 42585 42586 42587 42588 42589 42590 42591 42592 42593 42594 42595 42596 42597 42598 42599 42600 42601 42602 42603 42604 42605 42606 42607 42608 42609 42610 42611 42612 42613 42614 42615 42616 42617 42618 42619 42620 42621 42622 42623 42624 42625 42626 42627 42628 42629 42630 42631 42632 42633 42634 42635 42636 42637 42638 42639 42640 42641 42642 42643 42644 42645 42646 42647 42648 42649 42650 42651 42652 42653 42654 42655 42656 42657 42658 42659 42660 42661 42662 42663 42664 42665 42666 42667 42668 42669 42670 42671 42672 42673 42674 42675 42676 42677 42678 42679 42680 42681 42682 42683 42684 42685 42686 42687 42688 42689 42690 42691 42692 42693 42694 42695 42696 42697 42698 42699 42700 42701 42702 42703 42704 42705 42706 42707 42708 42709 42710 42711 42712 42713 42714 42715 42716 42717 42718 42719 42720 42721 42722 42723 42724 42725 42726 42727 42728 42729 42730 42731 42732 42733 42734 42735 42736 42737 42738 42739 42740 42741 42742 42743 42744 42745 42746 42747 42748 42749 42750 42751 42752 42753 42754 42755 42756 42757 42758 42759 42760 42761 42762 42763 42764 42765 42766 42767 42768 42769 42770 42771 42772 42773 42774 42775 42776 42777 42778 42779 42780 42781 42782 42783 42784 42785 42786 42787 42788 42789 42790 42791 42792 42793 42794 42795 42796 42797 42798 42799 42800 42801 42802 42803 42804 42805 42806 42807 42808 42809 42810 42811 42812 42813 42814 42815 42816 42817 42818 42819 42820 42821 42822 42823 42824 42825 42826 42827 42828 42829 42830 42831 42832 42833 42834 42835 42836 42837 42838 42839 42840 42841 42842 42843 42844 42845 42846 42847 42848 42849 42850 42851 42852 42853 42854 42855 42856 42857 42858 42859 42860 42861 42862 42863 42864 42865 42866 42867 42868 42869 42870 42871 42872 42873 42874 42875 42876 42877 42878 42879 42880 42881 42882 42883 42884 42885 42886 42887 42888 42889 42890 42891 42892 42893 42894 42895 42896 42897 42898 42899 42900 42901 42902 42903 42904 42905 42906 42907 42908 42909 42910 42911 42912 42913 42914 42915 42916 42917 42918 42919 42920 42921 42922 42923 42924 42925 42926 42927 42928 42929 42930 42931 42932 42933 42934 42935 42936 42937 42938 42939 42940 42941 42942 42943 42944 42945 42946 42947 42948 42949 42950 42951 42952 42953 42954 42955 42956 42957 42958 42959 42960 42961 42962 42963 42964 42965 42966 42967 42968 42969 42970 42971 42972 42973 42974 42975 42976 42977 42978 42979 42980 42981 42982 42983 42984 42985 42986 42987 42988 42989 42990 42991 42992 42993 42994 42995 42996 42997 42998 42999 43000 43001 43002 43003 43004 43005 43006 43007 43008 43009 43010 43011 43012 43013 43014 43015 43016 43017 43018 43019 43020 43021 43022 43023 43024 43025 43026 43027 43028 43029 43030 43031 43032 43033 43034 43035 43036 43037 43038 43039 43040 43041 43042 43043 43044 43045 43046 43047 43048 43049 43050 43051 43052 43053 43054 43055 43056 43057 43058 43059 43060 43061 43062 43063 43064 43065 43066 43067 43068 43069 43070 43071 43072 43073 43074 43075 43076 43077 43078 43079 43080 43081 43082 43083 43084 43085 43086 43087 43088 43089 43090 43091 43092 43093 43094 43095 43096 43097 43098 43099 43100 43101 43102 43103 43104 43105 43106 43107 43108 43109 43110 43111 43112 43113 43114 43115 43116 43117 43118 43119 43120 43121 43122 43123 43124 43125 43126 43127 43128 43129 43130 43131 43132 43133 43134 43135 43136 43137 43138 43139 43140 43141 43142 43143 43144 43145 43146 43147 43148 43149 43150 43151 43152 43153 43154 43155 43156 43157 43158 43159 43160 43161 43162 43163 43164 43165 43166 43167 43168 43169 43170 43171 43172 43173 43174 43175 43176 43177 43178 43179 43180 43181 43182 43183 43184 43185 43186 43187 43188 43189 43190 43191 43192 43193 43194 43195 43196 43197 43198 43199 43200 43201 43202 43203 43204 43205 43206 43207 43208 43209 43210 43211 43212 43213 43214 43215 43216 43217 43218 43219 43220 43221 43222 43223 43224 43225 43226 43227 43228 43229 43230 43231 43232 43233 43234 43235 43236 43237 43238 43239 43240 43241 43242 43243 43244 43245 43246 43247 43248 43249 43250 43251 43252 43253 43254 43255 43256 43257 43258 43259 43260 43261 43262 43263 43264 43265 43266 43267 43268 43269 43270 43271 43272 43273 43274 43275 43276 43277 43278 43279 43280 43281 43282 43283 43284 43285 43286 43287 43288 43289 43290 43291 43292 43293 43294 43295 43296 43297 43298 43299 43300 43301 43302 43303 43304 43305 43306 43307 43308 43309 43310 43311 43312 43313 43314 43315 43316 43317 43318 43319 43320 43321 43322 43323 43324 43325 43326 43327 43328 43329 43330 43331 43332 43333 43334 43335 43336 43337 43338 43339 43340 43341 43342 43343 43344 43345 43346 43347 43348 43349 43350 43351 43352 43353 43354 43355 43356 43357 43358 43359 43360 43361 43362 43363 43364 43365 43366 43367 43368 43369 43370 43371 43372 43373 43374 43375 43376 43377 43378 43379 43380 43381 43382 43383 43384 43385 43386 43387 43388 43389 43390 43391 43392 43393 43394 43395 43396 43397 43398 43399 43400 43401 43402 43403 43404 43405 43406 43407 43408 43409 43410 43411 43412 43413 43414 43415 43416 43417 43418 43419 43420 43421 43422 43423 43424 43425 43426 43427 43428 43429 43430 43431 43432 43433 43434 43435 43436 43437 43438 43439 43440 43441 43442 43443 43444 43445 43446 43447 43448 43449 43450 43451 43452 43453 43454 43455 43456 43457 43458 43459 43460 43461 43462 43463 43464 43465 43466 43467 43468 43469 43470 43471 43472 43473 43474 43475 43476 43477 43478 43479 43480 43481 43482 43483 43484 43485 43486 43487 43488 43489 43490 43491 43492 43493 43494 43495 43496 43497 43498 43499 43500 43501 43502 43503 43504 43505 43506 43507 43508 43509 43510 43511 43512 43513 43514 43515 43516 43517 43518 43519 43520 43521 43522 43523 43524 43525 43526 43527 43528 43529 43530 43531 43532 43533 43534 43535 43536 43537 43538 43539 43540 43541 43542 43543 43544 43545 43546 43547 43548 43549 43550 43551 43552 43553 43554 43555 43556 43557 43558 43559 43560 43561 43562 43563 43564 43565 43566 43567 43568 43569 43570 43571 43572 43573 43574 43575 43576 43577 43578 43579 43580 43581 43582 43583 43584 43585 43586 43587 43588 43589 43590 43591 43592 43593 43594 43595 43596 43597 43598 43599 43600 43601 43602 43603 43604 43605 43606 43607 43608 43609 43610 43611 43612 43613 43614 43615 43616 43617 43618 43619 43620 43621 43622 43623 43624 43625 43626 43627 43628 43629 43630 43631 43632 43633 43634 43635 43636 43637 43638 43639 43640 43641 43642 43643 43644 43645 43646 43647 43648 43649 43650 43651 43652 43653 43654 43655 43656 43657 43658 43659 43660 43661 43662 43663 43664 43665 43666 43667 43668 43669 43670 43671 43672 43673 43674 43675 43676 43677 43678 43679 43680 43681 43682 43683 43684 43685 43686 43687 43688 43689 43690 43691 43692 43693 43694 43695 43696 43697 43698 43699 43700 43701 43702 43703 43704 43705 43706 43707 43708 43709 43710 43711 43712 43713 43714 43715 43716 43717 43718 43719 43720 43721 43722 43723 43724 43725 43726 43727 43728 43729 43730 43731 43732 43733 43734 43735 43736 43737 43738 43739 43740 43741 43742 43743 43744 43745 43746 43747 43748 43749 43750 43751 43752 43753 43754 43755 43756 43757 43758 43759 43760 43761 43762 43763 43764 43765 43766 43767 43768 43769 43770 43771 43772 43773 43774 43775 43776 43777 43778 43779 43780 43781 43782 43783 43784 43785 43786 43787 43788 43789 43790 43791 43792 43793 43794 43795 43796 43797 43798 43799 43800 43801 43802 43803 43804 43805 43806 43807 43808 43809 43810 43811 43812 43813 43814 43815 43816 43817 43818 43819 43820 43821 43822 43823 43824 43825 43826 43827 43828 43829 43830 43831 43832 43833 43834 43835 43836 43837 43838 43839 43840 43841 43842 43843 43844 43845 43846 43847 43848 43849 43850 43851 43852 43853 43854 43855 43856 43857 43858 43859 43860 43861 43862 43863 43864 43865 43866 43867 43868 43869 43870 43871 43872 43873 43874 43875 43876 43877 43878 43879 43880 43881 43882 43883 43884 43885 43886 43887 43888 43889 43890 43891 43892 43893 43894 43895 43896 43897 43898 43899 43900 43901 43902 43903 43904 43905 43906 43907 43908 43909 43910 43911 43912 43913 43914 43915 43916 43917 43918 43919 43920 43921 43922 43923 43924 43925 43926 43927 43928 43929 43930 43931 43932 43933 43934 43935 43936 43937 43938 43939 43940 43941 43942 43943 43944 43945 43946 43947 43948 43949 43950 43951 43952 43953 43954 43955 43956 43957 43958 43959 43960 43961 43962 43963 43964 43965 43966 43967 43968 43969 43970 43971 43972 43973 43974 43975 43976 43977 43978 43979 43980 43981 43982 43983 43984 43985 43986 43987 43988 43989 43990 43991 43992 43993 43994 43995 43996 43997 43998 43999 44000 44001 44002 44003 44004 44005 44006 44007 44008 44009 44010 44011 44012 44013 44014 44015 44016 44017 44018 44019 44020 44021 44022 44023 44024 44025 44026 44027 44028 44029 44030 44031 44032 44033 44034 44035 44036 44037 44038 44039 44040 44041 44042 44043 44044 44045 44046 44047 44048 44049 44050 44051 44052 44053 44054 44055 44056 44057 44058 44059 44060 44061 44062 44063 44064 44065 44066 44067 44068 44069 44070 44071 44072 44073 44074 44075 44076 44077 44078 44079 44080 44081 44082 44083 44084 44085 44086 44087 44088 44089 44090 44091 44092 44093 44094 44095 44096 44097 44098 44099 44100 44101 44102 44103 44104 44105 44106 44107 44108 44109 44110 44111 44112 44113 44114 44115 44116 44117 44118 44119 44120 44121 44122 44123 44124 44125 44126 44127 44128 44129 44130 44131 44132 44133 44134 44135 44136 44137 44138 44139 44140 44141 44142 44143 44144 44145 44146 44147 44148 44149 44150 44151 44152 44153 44154 44155 44156 44157 44158 44159 44160 44161 44162 44163 44164 44165 44166 44167 44168 44169 44170 44171 44172 44173 44174 44175 44176 44177 44178 44179 44180 44181 44182 44183 44184 44185 44186 44187 44188 44189 44190 44191 44192 44193 44194 44195 44196 44197 44198 44199 44200 44201 44202 44203 44204 44205 44206 44207 44208 44209 44210 44211 44212 44213 44214 44215 44216 44217 44218 44219 44220 44221 44222 44223 44224 44225 44226 44227 44228 44229 44230 44231 44232 44233 44234 44235 44236 44237 44238 44239 44240 44241 44242 44243 44244 44245 44246 44247 44248 44249 44250 44251 44252 44253 44254 44255 44256 44257 44258 44259 44260 44261 44262 44263 44264 44265 44266 44267 44268 44269 44270 44271 44272 44273 44274 44275 44276 44277 44278 44279 44280 44281 44282 44283 44284 44285 44286 44287 44288 44289 44290 44291 44292 44293 44294 44295 44296 44297 44298 44299 44300 44301 44302 44303 44304 44305 44306 44307 44308 44309 44310 44311 44312 44313 44314 44315 44316 44317 44318 44319 44320 44321 44322 44323 44324 44325 44326 44327 44328 44329 44330 44331 44332 44333 44334 44335 44336 44337 44338 44339 44340 44341 44342 44343 44344 44345 44346 44347 44348 44349 44350 44351 44352 44353 44354 44355 44356 44357 44358 44359 44360 44361 44362 44363 44364 44365 44366 44367 44368 44369 44370 44371 44372 44373 44374 44375 44376 44377 44378 44379 44380 44381 44382 44383 44384 44385 44386 44387 44388 44389 44390 44391 44392 44393 44394 44395 44396 44397 44398 44399 44400 44401 44402 44403 44404 44405 44406 44407 44408 44409 44410 44411 44412 44413 44414 44415 44416 44417 44418 44419 44420 44421 44422 44423 44424 44425 44426 44427 44428 44429 44430 44431 44432 44433 44434 44435 44436 44437 44438 44439 44440 44441 44442 44443 44444 44445 44446 44447 44448 44449 44450 44451 44452 44453 44454 44455 44456 44457 44458 44459 44460 44461 44462 44463 44464 44465 44466 44467 44468 44469 44470 44471 44472 44473 44474 44475 44476 44477 44478 44479 44480 44481 44482 44483 44484 44485 44486 44487 44488 44489 44490 44491 44492 44493 44494 44495 44496 44497 44498 44499 44500 44501 44502 44503 44504 44505 44506 44507 44508 44509 44510 44511 44512 44513 44514 44515 44516 44517 44518 44519 44520 44521 44522 44523 44524 44525 44526 44527 44528 44529 44530 44531 44532 44533 44534 44535 44536 44537 44538 44539 44540 44541 44542 44543 44544 44545 44546 44547 44548 44549 44550 44551 44552 44553 44554 44555 44556 44557 44558 44559 44560 44561 44562 44563 44564 44565 44566 44567 44568 44569 44570 44571 44572 44573 44574 44575 44576 44577 44578 44579 44580 44581 44582 44583 44584 44585 44586 44587 44588 44589 44590 44591 44592 44593 44594 44595 44596 44597 44598 44599 44600 44601 44602 44603 44604 44605 44606 44607 44608 44609 44610 44611 44612 44613 44614 44615 44616 44617 44618 44619 44620 44621 44622 44623 44624 44625 44626 44627 44628 44629 44630 44631 44632 44633 44634 44635 44636 44637 44638 44639 44640 44641 44642 44643 44644 44645 44646 44647 44648 44649 44650 44651 44652 44653 44654 44655 44656 44657 44658 44659 44660 44661 44662 44663 44664 44665 44666 44667 44668 44669 44670 44671 44672 44673 44674 44675 44676 44677 44678 44679 44680 44681 44682 44683 44684 44685 44686 44687 44688 44689 44690 44691 44692 44693 44694 44695 44696 44697 44698 44699 44700 44701 44702 44703 44704 44705 44706 44707 44708 44709 44710 44711 44712 44713 44714 44715 44716 44717 44718 44719 44720 44721 44722 44723 44724 44725 44726 44727 44728 44729 44730 44731 44732 44733 44734 44735 44736 44737 44738 44739 44740 44741 44742 44743 44744 44745 44746 44747 44748 44749 44750 44751 44752 44753 44754 44755 44756 44757 44758 44759 44760 44761 44762 44763 44764 44765 44766 44767 44768 44769 44770 44771 44772 44773 44774 44775 44776 44777 44778 44779 44780 44781 44782 44783 44784 44785 44786 44787 44788 44789 44790 44791 44792 44793 44794 44795 44796 44797 44798 44799 44800 44801 44802 44803 44804 44805 44806 44807 44808 44809 44810 44811 44812 44813 44814 44815 44816 44817 44818 44819 44820 44821 44822 44823 44824 44825 44826 44827 44828 44829 44830 44831 44832 44833 44834 44835 44836 44837 44838 44839 44840 44841 44842 44843 44844 44845 44846 44847 44848 44849 44850 44851 44852 44853 44854 44855 44856 44857 44858 44859 44860 44861 44862 44863 44864 44865 44866 44867 44868 44869 44870 44871 44872 44873 44874 44875 44876 44877 44878 44879 44880 44881 44882 44883 44884 44885 44886 44887 44888 44889 44890 44891 44892 44893 44894 44895 44896 44897 44898 44899 44900 44901 44902 44903 44904 44905 44906 44907 44908 44909 44910 44911 44912 44913 44914 44915 44916 44917 44918 44919 44920 44921 44922 44923 44924 44925 44926 44927 44928 44929 44930 44931 44932 44933 44934 44935 44936 44937 44938 44939 44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 44962 44963 44964 44965 44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 44988 44989 44990 44991 44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 45014 45015 45016 45017 45018 45019 45020 45021 45022 45023 45024 45025 45026 45027 45028 45029 45030 45031 45032 45033 45034 45035 45036 45037 45038 45039 45040 45041 45042 45043 45044 45045 45046 45047 45048 45049 45050 45051 45052 45053 45054 45055 45056 45057 45058 45059 45060 45061 45062 45063 45064 45065 45066 45067 45068 45069 45070 45071 45072 45073 45074 45075 45076 45077 45078 45079 45080 45081 45082 45083 45084 45085 45086 45087 45088 45089 45090 45091 45092 45093 45094 45095 45096 45097 45098 45099 45100 45101 45102 45103 45104 45105 45106 45107 45108 45109 45110 45111 45112 45113 45114 45115 45116 45117 45118 45119 45120 45121 45122 45123 45124 45125 45126 45127 45128 45129 45130 45131 45132 45133 45134 45135 45136 45137 45138 45139 45140 45141 45142 45143 45144 45145 45146 45147 45148 45149 45150 45151 45152 45153 45154 45155 45156 45157 45158 45159 45160 45161 45162 45163 45164 45165 45166 45167 45168 45169 45170 45171 45172 45173 45174 45175 45176 45177 45178 45179 45180 45181 45182 45183 45184 45185 45186 45187 45188 45189 45190 45191 45192 45193 45194 45195 45196 45197 45198 45199 45200 45201 45202 45203 45204 45205 45206 45207 45208 45209 45210 45211 45212 45213 45214 45215 45216 45217 45218 45219 45220 45221 45222 45223 45224 45225 45226 45227 45228 45229 45230 45231 45232 45233 45234 45235 45236 45237 45238 45239 45240 45241 45242 45243 45244 45245 45246 45247 45248 45249 45250 45251 45252 45253 45254 45255 45256 45257 45258 45259 45260 45261 45262 45263 45264 45265 45266 45267 45268 45269 45270 45271 45272 45273 45274 45275 45276 45277 45278 45279 45280 45281 45282 45283 45284 45285 45286 45287 45288 45289 45290 45291 45292 45293 45294 45295 45296 45297 45298 45299 45300 45301 45302 45303 45304 45305 45306 45307 45308 45309 45310 45311 45312 45313 45314 45315 45316 45317 45318 45319 45320 45321 45322 45323 45324 45325 45326 45327 45328 45329 45330 45331 45332 45333 45334 45335 45336 45337 45338 45339 45340 45341 45342 45343 45344 45345 45346 45347 45348 45349 45350 45351 45352 45353 45354 45355 45356 45357 45358 45359 45360 45361 45362 45363 45364 45365 45366 45367 45368 45369 45370 45371 45372 45373 45374 45375 45376 45377 45378 45379 45380 45381 45382 45383 45384 45385 45386 45387 45388 45389 45390 45391 45392 45393 45394 45395 45396 45397 45398 45399 45400 45401 45402 45403 45404 45405 45406 45407 45408 45409 45410 45411 45412 45413 45414 45415 45416 45417 45418 45419 45420 45421 45422 45423 45424 45425 45426 45427 45428 45429 45430 45431 45432 45433 45434 45435 45436 45437 45438 45439 45440 45441 45442 45443 45444 45445 45446 45447 45448 45449 45450 45451 45452 45453 45454 45455 45456 45457 45458 45459 45460 45461 45462 45463 45464 45465 45466 45467 45468 45469 45470 45471 45472 45473 45474 45475 45476 45477 45478 45479 45480 45481 45482 45483 45484 45485 45486 45487 45488 45489 45490 45491 45492 45493 45494 45495 45496 45497 45498 45499 45500 45501 45502 45503 45504 45505 45506 45507 45508 45509 45510 45511 45512 45513 45514 45515 45516 45517 45518 45519 45520 45521 45522 45523 45524 45525 45526 45527 45528 45529 45530 45531 45532 45533 45534 45535 45536 45537 45538 45539 45540 45541 45542 45543 45544 45545 45546 45547 45548 45549 45550 45551 45552 45553 45554 45555 45556 45557 45558 45559 45560 45561 45562 45563 45564 45565 45566 45567 45568 45569 45570 45571 45572 45573 45574 45575 45576 45577 45578 45579 45580 45581 45582 45583 45584 45585 45586 45587 45588 45589 45590 45591 45592 45593 45594 45595 45596 45597 45598 45599 45600 45601 45602 45603 45604 45605 45606 45607 45608 45609 45610 45611 45612 45613 45614 45615 45616 45617 45618 45619 45620 45621 45622 45623 45624 45625 45626 45627 45628 45629 45630 45631 45632 45633 45634 45635 45636 45637 45638 45639 45640 45641 45642 45643 45644 45645 45646 45647 45648 45649 45650 45651 45652 45653 45654 45655 45656 45657 45658 45659 45660 45661 45662 45663 45664 45665 45666 45667 45668 45669 45670 45671 45672 45673 45674 45675 45676 45677 45678 45679 45680 45681 45682 45683 45684 45685 45686 45687 45688 45689 45690 45691 45692 45693 45694 45695 45696 45697 45698 45699 45700 45701 45702 45703 45704 45705 45706 45707 45708 45709 45710 45711 45712 45713 45714 45715 45716 45717 45718 45719 45720 45721 45722 45723 45724 45725 45726 45727 45728 45729 45730 45731 45732 45733 45734 45735 45736 45737 45738 45739 45740 45741 45742 45743 45744 45745 45746 45747 45748 45749 45750 45751 45752 45753 45754 45755 45756 45757 45758 45759 45760 45761 45762 45763 45764 45765 45766 45767 45768 45769 45770 45771 45772 45773 45774 45775 45776 45777 45778 45779 45780 45781 45782 45783 45784 45785 45786 45787 45788 45789 45790 45791 45792 45793 45794 45795 45796 45797 45798 45799 45800 45801 45802 45803 45804 45805 45806 45807 45808 45809 45810 45811 45812 45813 45814 45815 45816 45817 45818 45819 45820 45821 45822 45823 45824 45825 45826 45827 45828 45829 45830 45831 45832 45833 45834 45835 45836 45837 45838 45839 45840 45841 45842 45843 45844 45845 45846 45847 45848 45849 45850 45851 45852 45853 45854 45855 45856 45857 45858 45859 45860 45861 45862 45863 45864 45865 45866 45867 45868 45869 45870 45871 45872 45873 45874 45875 45876 45877 45878 45879 45880 45881 45882 45883 45884 45885 45886 45887 45888 45889 45890 45891 45892 45893 45894 45895 45896 45897 45898 45899 45900 45901 45902 45903 45904 45905 45906 45907 45908 45909 45910 45911 45912 45913 45914 45915 45916 45917 45918 45919 45920 45921 45922 45923 45924 45925 45926 45927 45928 45929 45930 45931 45932 45933 45934 45935 45936 45937 45938 45939 45940 45941 45942 45943 45944 45945 45946 45947 45948 45949 45950 45951 45952 45953 45954 45955 45956 45957 45958 45959 45960 45961 45962 45963 45964 45965 45966 45967 45968 45969 45970 45971 45972 45973 45974 45975 45976 45977 45978 45979 45980 45981 45982 45983 45984 45985 45986 45987 45988 45989 45990 45991 45992 45993 45994 45995 45996 45997 45998 45999 46000 46001 46002 46003 46004 46005 46006 46007 46008 46009 46010 46011 46012 46013 46014 46015 46016 46017 46018 46019 46020 46021 46022 46023 46024 46025 46026 46027 46028 46029 46030 46031 46032 46033 46034 46035 46036 46037 46038 46039 46040 46041 46042 46043 46044 46045 46046 46047 46048 46049 46050 46051 46052 46053 46054 46055 46056 46057 46058 46059 46060 46061 46062 46063 46064 46065 46066 46067 46068 46069 46070 46071 46072 46073 46074 46075 46076 46077 46078 46079 46080 46081 46082 46083 46084 46085 46086 46087 46088 46089 46090 46091 46092 46093 46094 46095 46096 46097 46098 46099 46100 46101 46102 46103 46104 46105 46106 46107 46108 46109 46110 46111 46112 46113 46114 46115 46116 46117 46118 46119 46120 46121 46122 46123 46124 46125 46126 46127 46128 46129 46130 46131 46132 46133 46134 46135 46136 46137 46138 46139 46140 46141 46142 46143 46144 46145 46146 46147 46148 46149 46150 46151 46152 46153 46154 46155 46156 46157 46158 46159 46160 46161 46162 46163 46164 46165 46166 46167 46168 46169 46170 46171 46172 46173 46174 46175 46176 46177 46178 46179 46180 46181 46182 46183 46184 46185 46186 46187 46188 46189 46190 46191 46192 46193 46194 46195 46196 46197 46198 46199 46200 46201 46202 46203 46204 46205 46206 46207 46208 46209 46210 46211 46212 46213 46214 46215 46216 46217 46218 46219 46220 46221 46222 46223 46224 46225 46226 46227 46228 46229 46230 46231 46232 46233 46234 46235 46236 46237 46238 46239 46240 46241 46242 46243 46244 46245 46246 46247 46248 46249 46250 46251 46252 46253 46254 46255 46256 46257 46258 46259 46260 46261 46262 46263 46264 46265 46266 46267 46268 46269 46270 46271 46272 46273 46274 46275 46276 46277 46278 46279 46280 46281 46282 46283 46284 46285 46286 46287 46288 46289 46290 46291 46292 46293 46294 46295 46296 46297 46298 46299 46300 46301 46302 46303 46304 46305 46306 46307 46308 46309 46310 46311 46312 46313 46314 46315 46316 46317 46318 46319 46320 46321 46322 46323 46324 46325 46326 46327 46328 46329 46330 46331 46332 46333 46334 46335 46336 46337 46338 46339 46340 46341 46342 46343 46344 46345 46346 46347 46348 46349 46350 46351 46352 46353 46354 46355 46356 46357 46358 46359 46360 46361 46362 46363 46364 46365 46366 46367 46368 46369 46370 46371 46372 46373 46374 46375 46376 46377 46378 46379 46380 46381 46382 46383 46384 46385 46386 46387 46388 46389 46390 46391 46392 46393 46394 46395 46396 46397 46398 46399 46400 46401 46402 46403 46404 46405 46406 46407 46408 46409 46410 46411 46412 46413 46414 46415 46416 46417 46418 46419 46420 46421 46422 46423 46424 46425 46426 46427 46428 46429 46430 46431 46432 46433 46434 46435 46436 46437 46438 46439 46440 46441 46442 46443 46444 46445 46446 46447 46448 46449 46450 46451 46452 46453 46454 46455 46456 46457 46458 46459 46460 46461 46462 46463 46464 46465 46466 46467 46468 46469 46470 46471 46472 46473 46474 46475 46476 46477 46478 46479 46480 46481 46482 46483 46484 46485 46486 46487 46488 46489 46490 46491 46492 46493 46494 46495 46496 46497 46498 46499 46500 46501 46502 46503 46504 46505 46506 46507 46508 46509 46510 46511 46512 46513 46514 46515 46516 46517 46518 46519 46520 46521 46522 46523 46524 46525 46526 46527 46528 46529 46530 46531 46532 46533 46534 46535 46536 46537 46538 46539 46540 46541 46542 46543 46544 46545 46546 46547 46548 46549 46550 46551 46552 46553 46554 46555 46556 46557 46558 46559 46560 46561 46562 46563 46564 46565 46566 46567 46568 46569 46570 46571 46572 46573 46574 46575 46576 46577 46578 46579 46580 46581 46582 46583 46584 46585 46586 46587 46588 46589 46590 46591 46592 46593 46594 46595 46596 46597 46598 46599 46600 46601 46602 46603 46604 46605 46606 46607 46608 46609 46610 46611 46612 46613 46614 46615 46616 46617 46618 46619 46620 46621 46622 46623 46624 46625 46626 46627 46628 46629 46630 46631 46632 46633 46634 46635 46636 46637 46638 46639 46640 46641 46642 46643 46644 46645 46646 46647 46648 46649 46650 46651 46652 46653 46654 46655 46656 46657 46658 46659 46660 46661 46662 46663 46664 46665 46666 46667 46668 46669 46670 46671 46672 46673 46674 46675 46676 46677 46678 46679 46680 46681 46682 46683 46684 46685 46686 46687 46688 46689 46690 46691 46692 46693 46694 46695 46696 46697 46698 46699 46700 46701 46702 46703 46704 46705 46706 46707 46708 46709 46710 46711 46712 46713 46714 46715 46716 46717 46718 46719 46720 46721 46722 46723 46724 46725 46726 46727 46728 46729 46730 46731 46732 46733 46734 46735 46736 46737 46738 46739 46740 46741 46742 46743 46744 46745 46746 46747 46748 46749 46750 46751 46752 46753 46754 46755
|
% This document takes a *long* time to compile from scratch. See
% notes below.
%
% arara: lualatex if missing("glstex")
% arara: bib2gls: { group: on, packages: [ mfirstuc-english ] } if missing("glstex")
% arara: lualatex: { shell: yes }
% arara: bib2gls: { group: on, packages: [ mfirstuc-english ] }
% arara: lualatex
% arara: lualatex if found("log", "Rerun to get")
%
% This manual creates example documents on the fly in the
% directory created by the following line:
\directlua{os.execute("mkdir -p glossaries-extra-manual-examples")}
% If the above doesn't work, you'll have to create the directory
% manually.
% If the shell escape is enabled the example documents will be
% automatically built with arara. If you already have the example .tex and
% .pdf files in the above directory, the shell escape isn't
% required. You'll need to run pdfcrop on the example pdf files if
% you don't have the *-crop.pdf files. If you only have the .tex
% files in the examples directory, then you need to run arara on
% each .tex file (which will call pdfcrop where applicable).
%
% This document requires glossaries-extra v1.49, bib2gls v3.0
% and nlctuserguide.sty. Some of the example documents require
% glossaries v4.50 and mfirstuc v2.08. If they haven't already
% been uploaded to CTAN, they will be shortly.
\documentclass[titlepage=false,oneside,
fontsize=12pt,captions=tableheading]{scrbook}
%\usepackage[autooneside=false]{scrlayer-scrpage}
\usepackage{relsize}
\usepackage{mfirstuc-english}
\usepackage[
deephierarchy,
numberedsection,
abbreviations,
%debug=showwrgloss,novref,
%showtargets=annoteleft
]{nlctuserguide}
\hypersetup{pdfauthor={Nicola Talbot},
pdftitle={glossaries-extra manual},
bookmarksdepth=5}
\renewcommand*{\thispackagename}{glossaries-extra}
\renewcommand{\cmdnotefmt}[1]{}
\renewcommand*{\summarynotefmt}[1]{{\small(#1)}}
\appto\terminaldesc{. See also
\qt{\dickimawhref{latex/buildglossaries}{Incorporating
makeglossaries or makeglossaries-lite or bib2gls into the document
build}}}
\newfontfamily\noto{Noto Serif}
\newcommand{\textnoto}[1]{{\noto #1}}
\providecommand{\eth}{\char"00F0}
\providecommand{\Eth}{\char"00D0}
\providecommand{\thorn}{\char"00FE}
\providecommand{\Thorn}{\char"00DE}
\providecommand{\wynn}{\char"01BF}
\providecommand{\Wynn}{\char"01F7}
\newcommand{\insularg}{\textnoto{\char"1D79}}
\newcommand{\InsularG}{\textnoto{\char"A77D}}
\providecommand{\longs}{\char"017F}
\providecommand{\Schwa}{\char"018F}
\providecommand{\schwa}{\char"0259}
\newcommand{\attr}{\idxc{categoryattribute}{attribute}}
\newcommand{\attrs}{\idxc{categoryattribute}{attributes}}
\newcommand{\location}{\idxc{entrylocation}{location}}
\newcommand{\locations}{\idxc{entrylocation}{locations}}
\newcommand{\encap}[2][]{{\let\csfmt\csfmtcolourfont\gls[#1]{#2}}}
\newcommand{\indexed}{\idxc{indexing}{indexed}}
\newcommand{\recorded}{\idxc{indexing}{recorded}}
\newcommand{\record}{\idxc{indexing}{record}}
\newcommand{\records}{\idxc{indexing}{records}}
\newcommand{\atentry}[1]{\texorpdfstring{\code{@#1}}{@#1}}
\newcommand{\thecounter}[1]{\glslink{thecounter}{\csfmt{the\-#1}}}
\newcommand{\theHcounter}[1]{\glslink{theHcounter}{\csfmt{the\-H\-#1}}}
\newcommand{\thecountername}{\glslink{thecounter}{\csfmt{the\-\meta{counter-name}}}}
\newcommand{\theHcountername}{\glslink{theHcounter}{\csfmt{the\-\meta{counter-name}}}}
\newcommand{\recordcounterfield}[1]{%
\glslink{opt.glosfield.recordcount.counter}{\csoptfmt{record\-count\dfullstop#1}}}
\newcommand{\recordcounterlocationfield}[2]{%
\glslink{opt.glosfield.recordcount.counter.location}{\csoptfmt{record\-count\dfullstop#1\dfullstop#2}}}
\MFUhyphentrue
\setabbreviationstyle[termacronym]{short-sm-desc}
\glsxtrnewgls{opt.printgloss.}{\printglossopt}
\newcommand{\printglossoptval}[2]{\optval{printgloss.#1}{#2}}
\newcommand{\printglossoptvalm}[2]{\optval{printgloss.#1}{\marg{#2}}}
\glsxtrnewgls{opt.printunsrttab.}{\glstableopt}
\newcommand{\glstableoptval}[2]{\optval{printunsrttab.#1}{#2}}
\newcommand{\glstableoptvalm}[2]{\optval{printunsrttab.#1}{\marg{#2}}}
\glsxtrnewgls{optval.printunsrttab.block-style.}{\glstableblockstyle}
\newcommand{\glstableblockstyledef}[1]{\optionvaldef{printunsrttab.block-style}{#1}}
\glsxtrnewgls{opt.glsopt.}{\glsopt}
\newcommand{\glsoptval}[2]{\optval{glsopt.#1}{#2}}
\glsxtrnewgls{opt.mglsopt.}{\mglsopt}
\newcommand{\mglsoptval}[2]{\optval{mglsopt.#1}{#2}}
\newcommand{\mglsoptvalm}[2]{\optvalm{mglsopt.#1}{#2}}
\glsxtrnewgls{opt.gloskey.}{\gloskey}
\newcommand{\gloskeyval}[2]{\optval{gloskey.#1}{\marg{#2}}}
\glsxtrnewgls{opt.glosfield.}{\glosfield}
\newcommand{\glosfielddisp}[3][]{\glsdisp[#1]{opt.glosfield.#2}{\csoptfmt{#3}}}
\glsxtrnewgls{opt.cat.}{\cat}
\glsxtrnewgls{opt.catattr.}{\catattr}
\glsxtrnewgls{opt.resource.}{\resourceopt}
\newcommand{\resourceoptval}[2]{\optval{resource.#1}{#2}}
\newcommand{\resourceoptvalm}[2]{\optval{resource.#1}{\marg{#2}}}
\glsxtrnewgls{opt.glostyle.}{\glostyle}
\glsxtrnewgls{opt.abbrstyle.}{\abbrstyle}
\glsxtrnewgls{opt.acrstyle.}{\acrstyle}
\newcommand*{\abbrstyledef}[1]{\optiondef{abbrstyle.#1}}
\defsemanticcmd[style1]{\fieldfmt}{\texttt}{}
\defsemanticcmd[style2]{\entryfmt}{\texttt}{}
\newcommand*{\atentryfmt}[1]{\entryfmt{@#1}}
\defsemanticcmd{\acrstylefmt}{\textsf}{}
\defsemanticcmd[style3]{\abbrstylefmt}{\textsf}{}
\defsemanticcmd{\glostylefmt}{\textsf}{}
\defsemanticcmd[style4]{\catattrfmt}{\textsf}{}
\newcommand*{\catfmt}{\csoptfmt}
\newcommand{\hierarchical}{\glslink{hierarchicallevel}{hierarchical}}
\renewcommand{\nlctuserguidecustomentryaliases}{%
glossarystyle=index,
abbreviationstyle=index,
acronymstyle=index,
}
\appto{\nlctexampledisablecmds}{%
\letcs{\opt}{@firstofone}%
\letcs{\cat}{@firstofone}%
\letcs{\catattr}{@firstofone}%
\letcs{\resourceopt}{@firstofone}%
\letcs{\abbrstyle}{@firstofone}%
\letcs{\glostyle}{@firstofone}%
\letcs{\glsopt}{@firstofone}%
\letcs{\mglsopt}{@firstofone}%
\letcs{\gloskey}{@firstofone}%
\letcs{\glosfield}{@firstofone}%
\letcs{\printglossopt}{@firstofone}%
\let\resourceoptval\keyeqvalue
\let\resourceoptvalm\keyeqvaluem
\let\optval\keyeqvalue
\let\opteqvalref\keyeqvalue
\let\gloskeyval\keyeqvaluem
\let\glsoptval\keyeqvaluem
\let\mglsoptval\keyeqvaluem
\let\printglossoptval\keyeqvalue
\let\printglossoptvalm\keyeqvaluem
}
\newcommand{\genabbrvstyleexamplecode}[6]{%
\gls{setabbreviationstyle}\allowbreak\marg{\abbrstyle{#2}}
#6\gls{newabbreviation}#4\marg{ex}\marg{#3}\marg{long form}
\cbeg{document}
First: \gls{gls}\marg{ex}[-insert]. Next: \gls{gls}\marg{ex}[-insert].
Full: \gls{glsxtrfull}\marg{ex}[-insert].
First plural: \gls{glspl}\oarg{prereset}\marg{ex}[-insert].\newline
\gls{printunsrtglossaries}\newline
\cend{document}
}
\newcommand{\genabbrvstyleexampleresult}[6]{%
\createexample*[fontsize={20},title={The \optfmt{#2} abbreviation style},
description={Example document demonstrating the #2 abbreviation style},
label={ex:abbrvstyle#2},#1]
{%
#5\cmd{usepackage}\oarg{T1}\marg{fontenc}^^J%
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}^^J%
\cmd{usepackage}\marg{glossaries-extra}^^J%
#6\gls{setabbreviationstyle}\marg{#2}^^J%
\gls{newabbreviation}#4\marg{ex}\marg{#3}\marg{long form}
}
{%
First: \gls{gls}\marg{ex}[-insert]. Next: \gls{gls}\marg{ex}[-insert].^^J%
Full: \gls{glsxtrfull}\marg{ex}[-insert].
First plural: \gls{glspl}\oarg{prereset}\marg{ex}[-insert].^^J%
\gls{printunsrtglossaries}
}
}
\newcommand{\genabbrvstyleexampleside}[6]{%
\begin{coderesult}
\genabbrvstyleexamplecode{#1}{#2}{#3}{#4}{#5}{#6}%
\tcblower
\genabbrvstyleexampleresult{#1}{#2}{#3}{#4}{#5}{#6}%
\end{coderesult}%
}
\newcommand{\genabbrvstyleexamplestack}[6]{%
\begin{codebox}
\genabbrvstyleexamplecode{#1}{#2}{#3}{#4}{#5}{#6}%
\end{codebox}
\begin{resultbox}
\genabbrvstyleexampleresult{fontsize={11},#1}{#2}{#3}{#4}{#5}{#6}%
\end{resultbox}%
}
\newcommand*{\abbrvstyleexampleucfn}[2][]{%
\genabbrvstyleexampleside{#1}{#2}{SHRT FM}{}{}{}%
}
\newcommand*{\abbrvstyleexampleucdescfn}[2][]{%
\genabbrvstyleexampleside{#1}{#2}{SHRT FM}%
{\oarg{\gloskeyval{description}{sample description}}\newline}%
{}{}%
}
\newcommand*{\abbrvstyleexamplelcfn}[2][]{%
\genabbrvstyleexampleside{#1}{#2}{shrt fm}{}{}{}%
}
\newcommand*{\abbrvstyleexamplelcdescfn}[2][]{%
\genabbrvstyleexampleside{#1}{#2}{shrt fm}%
{\oarg{\gloskeyval{description}{sample description}}\newline}%
{}{}%
}
\newcommand*{\abbrvstyleexamplesmfn}[2][]{%
\genabbrvstyleexampleside{#1}{#2}{SHRT FM}{}%
{^^J\cmd{usepackage}\marg{relsize}}{}%
}
\newcommand*{\abbrvstyleexamplesmdescfn}[2][]{%
\genabbrvstyleexampleside{#1}{#2}{SHRT FM}%
{\oarg{\gloskeyval{description}{sample description}}\newline}%
{^^J\cmd{usepackage}\marg{relsize}}{}%
}
\newcommand*{\abbrvstyleexampleuc}[2][]{%
\genabbrvstyleexamplestack{#1}{#2}{SHRT FM}{}{}{}%
}
\newcommand*{\abbrvstyleexamplelc}[2][]{%
\genabbrvstyleexamplestack{#1}{#2}{shrt fm}{}{}{}%
}
\newcommand*{\abbrvstyleexamplesm}[2][]{%
\genabbrvstyleexamplestack{#1}{#2}{SHRT FM}{}%
{^^J\cmd{usepackage}\marg{relsize}}{}%
}
\newcommand*{\abbrvstyleexampleucdesc}[2][]{%
\genabbrvstyleexamplestack{#1}{#2}{SHRT FM}%
{\oarg{\gloskeyval{description}{sample description}}\newline}%
{}{}%
}
\newcommand*{\abbrvstyleexamplelcdesc}[2][]{%
\genabbrvstyleexamplestack{#1}{#2}{shrt fm}%
{\oarg{\gloskeyval{description}{sample description}}\newline}%
{}{}%
}
\newcommand*{\abbrvstyleexamplesmdesc}[2][]{%
\genabbrvstyleexamplestack{#1}{#2}{SHRT FM}%
{\oarg{\gloskeyval{description}{sample description}}\newline}%
{^^J\cmd{usepackage}\marg{relsize}}{}%
}
\newcommand*{\abbrvstyleexamplelcuser}[2][]{%
\genabbrvstyleexamplestack{#1}{#2}{shrt fm}%
{\oarg{\gloskeyval{user1}{extra info}}}%
{}{}%
}
\newcommand*{\abbrvstyleexampleucuser}[2][]{%
\genabbrvstyleexamplestack{#1}{#2}{SHRT FM}%
{\oarg{\gloskeyval{user1}{extra info}}}%
{}{}%
}
\newcommand*{\abbrvstyleexamplelcuserdesc}[2][]{%
\genabbrvstyleexamplestack{#1}{#2}{shrt fm}%
{\oarg{\gloskeyval{description}{sample description},\newline
\gloskeyval{user1}{extra info}}}{}{}%
}
\newcommand*{\abbrvstyleexampleucuserdesc}[2][]{%
\genabbrvstyleexamplestack{#1}{#2}{SHRT FM}%
{\oarg{\gloskeyval{description}{sample description},\newline
\gloskeyval{user1}{extra info}}}{}{}%
}
\newcommand*{\abbrvstyleexampleuchyp}[2][]{%
\genabbrvstyleexamplestack{#1}{#2}{SHRT FM}%
{}%
{}{\gls{glssetcategoryattributes}\marg{\cat{abbreviation}}\marg{\catattr{markwords},\catattr{markshortwords}}\marg{true}\newline}%
}
\newcommand*{\abbrvstyleexampleuchypdesc}[2][]{%
\genabbrvstyleexamplestack{#1}{#2}{SHRT FM}%
{\oarg{\gloskeyval{description}{sample description}}\newline}%
{}%
{%
\gls{glssetcategoryattributes}\marg{\cat{abbreviation}}\marg{\catattr{markwords},\catattr{markshortwords}}\marg{true}\newline
}%
}
\newcommand{\summaryentryglossarystyle}[1]{%
{%
\renewcommand*{\glostylefmt}[1]{\texttt{##1}}%
\genericsummaryentryoption{#1}%
}%
}
\newcommand{\summaryentryabbreviationstyle}[1]{%
{%
\renewcommand*{\abbrstylefmt}[1]{\texttt{##1}}%
\genericsummaryentryoption{#1}%
}%
}
\renewcommand{\nlctuserguideletterrules}{%
\glsxtrGeneralLatinAtoGrules
\string<glo,Glo,GLO\string<gls,Gls,GLS\string<glsxtr,Glsxtr,GlsXtr,GLSxtr,GLSXTR
\glsxtrGeneralLatinHtoMrules
\glsxtrGeneralLatinNtoZrules
}
\nlctuserguidegls[selection=all]
{
\gmod{star}{\common\name{\texttt{*} (modifier)}\field{text}{*}
\field{see}{GlsXtrSetStarModifier}}%
\gmod{plus}{\common\name{\texttt{+} (modifier)}\field{text}{+}
\field{see}{GlsXtrSetPlusModifier}}%
\gmod{alt-mod}{\common\name{\meta{alt-mod} (modifier)}\field{text}{\meta{alt-mod}}
\field{see}{GlsXtrSetAltModifier}}%
\def\gcmdspa#1#2{\glsbibwriteentry{command}{#1}{\field{name}{\csfmt{#1}}\field{modifiers}{star,plus,alt-mod}#2}}%
\def\gprintglossopt#1#2{%
\glsbibwriteentry{commandoption}{opt.printgloss.#1}{%
\field{name}{\csoptfmt{#1}}\parent{idx.printglossopt}#2}}%
\def\gprintunsrttableopt#1#2{%
\glsbibwriteentry{commandoption}{opt.printunsrttab.#1}{%
\parent{printunsrttable}%
\field{name}{\csoptfmt{#1}}#2}}%
\def\gtableblockstyle#1#2{%
\glsbibwriteentry{commandoption}{optval.printunsrttab.block-style.#1}{%
\parent{opt.printunsrttab.block-style}%
\field{name}{\optfmt{#1}}#2}}%
\def\gglsopt#1#2{%
\glsbibwriteentry{commandoption}{opt.glsopt.#1}{%
\field{name}{\csoptfmt{#1}}\parent{idx.glsopt}#2}}%
\def\gmglsopt#1#2{%
\glsbibwriteentry{commandoption}{opt.mglsopt.#1}{%
\field{name}{\csoptfmt{#1}}\parent{idx.mglsopt}#2}}%
\def\ggloskey#1#2{%
\glsbibwriteentry{commandoption}{opt.gloskey.#1}{%
\field{name}{\csoptfmt{#1}}\parent{idx.gloskey}#2}}%
\def\gglosfield#1#2{%
\glsbibwriteentry{commandoption}{opt.glosfield.#1}{%
\field{name}{\csoptfmt{#1}}\parent{idx.glosfield}#2}}%
\def\gcat#1#2{%
\glsbibwriteentry{optionvalue}{opt.cat.#1}{%
\field{name}{\catfmt{#1}}\parent{idx.category}#2}}%
\def\gcatattr#1#2{%
\glsbibwriteentry{optionvalue}{opt.catattr.#1}{%
\field{name}{\csoptfmt{#1}}\parent{idx.categoryattribute}#2}}%
\def\gglosty#1#2{\glsbibwriteentry{glossarystyle}{opt.glostyle.#1}%
{\field{name}{\glostylefmt{#1}}\parent{idx.glossarystyle}#2}}%
\def\gabbrsty#1#2{\glsbibwriteentry{abbreviationstyle}{opt.abbrstyle.#1}%
{\field{name}{\abbrstylefmt{#1}}\parent{idx.abbrvstyle}#2}}%
\def\gabbrstyalias#1#2{\gabbrsty{#1}{\field{alias}{opt.abbrstyle.#2}}}%
\def\gdepabbrsty#1#2{\gabbrsty{#1}{\deprecated\field{alias}{opt.abbrstyle.#2}}}%
\def\gacrsty#1#2{\glsbibwriteentry{acronymstyle}{opt.acrstyle.#1}%
{\field{name}{\acrstylefmt{#1}}\parent{idx.acronymstyle}#2}}%
\def\gresourceopt#1#2{%
\glsbibwriteentry{commandoption}{opt.resource.#1}{%
\field{name}{\csoptfmt{#1}}\parent{idx.resourceopt}#2}}%
% sample files:
\gidx{samplefile}{\name{sample files}\field{text}{sample file}}%
\gfile{sample.tex}{}% file: sample.tex
\gfile{sample\dhyphen abbr\dhyphen styles.tex}{}% file: sample-abbr-styles.tex
\gfile{sample\dhyphen mixture.tex}{}% file: sample-mixture.tex
\gfile{sample\dhyphen name\dhyphen font.tex}{}% file: sample-name-font.tex
\gfile{sample\dhyphen abbrv.tex}{}% file: sample-abbrv.tex
\gfile{sample\dhyphen acronym.tex}{}% file: sample-acronym.tex
\gfile{sample\dhyphen acronym\dhyphen desc.tex}{}% file: sample-acronym-desc.tex
\gfile{sample\dhyphen crossref.tex}{}% file: sample-crossref.tex
\gfile{sample\dhyphen indexhook.tex}{}% file: sample-indexhook.tex
\gfile{sample\dhyphen footnote.tex}{}% file: sample-footnote.tex
\gfile{sample\dhyphen undef.tex}{}% file: sample-undef.tex
\gfile{sample\dhyphen mixed\dhyphen abbrv\dhyphen styles.tex}{}% file: sample-mixed-abbrv-styles.tex
\gfile{sample\dhyphen initialisms.tex}{}% file: sample-initialisms.tex
\gfile{sample\dhyphen postdot.tex}{}% file: sample-postdot.tex
\gfile{sample\dhyphen postlink.tex}{}% file: sample-postlink.tex
\gfile{sample\dhyphen header.tex}{}% file: sample-header.tex
\gfile{sample\dhyphen autoindex.tex}{}% file: sample-autoindex.tex
\gfile{sample\dhyphen autoindex\dhyphen hyp.tex}{}% file: sample-autoindex-hyp.tex
\gfile{sample\dhyphen nested.tex}{}% file: sample-nested.tex
\gfile{sample\dhyphen entrycount.tex}{}% file: sample-entrycount.tex
\gfile{sample\dhyphen unitentrycount.tex}{}% file: sample-unitentrycount.tex
\gfile{sample\dhyphen onelink.tex}{}% file: sample-onelink.tex
\gfile{sample\dhyphen linkcount.tex}{}% file: sample-linkcount.tex
\gfile{sample\dhyphen pages.tex}{}% file: sample-pages.tex
\gfile{sample\dhyphen altmodifier.tex}{}% file: sample-altmodifier.tex
\gfile{sample\dhyphen mixedsort.tex}{}% file: sample-mixedsort.tex
\gfile{sample\dhyphen external.tex}{}% file: sample-external.tex
\gfile{sample\dhyphen fmt.tex}{}% file: sample-fmt.tex
\gfile{sample\dhyphen alias.tex}{}% file: sample-alias.tex
\gfile{sample\dhyphen alttree.tex}{}% file: sample-alttree.tex
\gfile{sample\dhyphen alttree\dhyphen sym.tex}{}% file: sample-alttree-sym.tex
\gfile{sample\dhyphen alttree\dhyphen marginpar.tex}{}% file: sample-alttree-marginpar.tex
\gfile{sample\dhyphen onthefly.tex}{}% file: sample-onthefly.tex
\gfile{sample\dhyphen onthefly\dhyphen xetex.tex}{}% file: sample-onthefly-xetex.tex
\gfile{sample\dhyphen onthefly\dhyphen utf8.tex}{}% file: sample-onthefly-utf8.tex
\gfile{sample\dhyphen accsupp.tex}{}% file: sample-accsupp.tex
\gfile{sample\dhyphen prefix.tex}{}% file: sample-prefix.tex
\gfile{sample\dhyphen suppl.tex}{}% file: sample-suppl.tex
\gfile{sample\dhyphen suppl\dhyphen main.tex}{}% file: sample-suppl-main.tex
\gfile{sample\dhyphen suppl\dhyphen hyp.tex}{}% file: sample-suppl-hyp.tex
\gfile{sample\dhyphen suppl\dhyphen main\dhyphen hyp.tex}{}% file: sample-suppl-main-hyp.tex
% example files with dummy entries for testing
% example-glossaries-xr.tex
\gfile{example\dhyphen glossaries\dhyphen xr.tex}%
{\providedby{\sty{glossaries-extra} v1.16+}}%
% example-glossaries-xr.bib
\gfile{example\dhyphen glossaries\dhyphen xr.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-symbolsnames.bib
\gfile{example\dhyphen glossaries\dhyphen symbolsnames.bib}%
{\providedby{\sty{glossaries-extra} v1.39+}}%
% example-glossaries-acronym-desc.bib
\gfile{example\dhyphen glossaries\dhyphen acronym\dhyphen desc.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-longchild.bib
\gfile{example\dhyphen glossaries\dhyphen longchild.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-acronyms-lang.bib
\gfile{example\dhyphen glossaries\dhyphen acronyms\dhyphen lang.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-long.bib
\gfile{example\dhyphen glossaries\dhyphen long.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-acronym.bib
\gfile{example\dhyphen glossaries\dhyphen acronym.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-multipar.bib
\gfile{example\dhyphen glossaries\dhyphen multipar.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-brief.bib
\gfile{example\dhyphen glossaries\dhyphen brief.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-parent.bib
\gfile{example\dhyphen glossaries\dhyphen parent.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-childmultipar.bib
\gfile{example\dhyphen glossaries\dhyphen childmultipar.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-symbolnames.bib
\gfile{example\dhyphen glossaries\dhyphen symbolnames.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-childnoname.bib
\gfile{example\dhyphen glossaries\dhyphen childnoname.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-symbols.bib
\gfile{example\dhyphen glossaries\dhyphen symbols.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-cite.bib
\gfile{example\dhyphen glossaries\dhyphen cite.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-url.bib
\gfile{example\dhyphen glossaries\dhyphen url.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-images.bib
\gfile{example\dhyphen glossaries\dhyphen images.bib}%
{\providedby{\sty{glossaries-extra} v1.19+}}%
% example-glossaries-user.bib
\gfile{example\dhyphen glossaries\dhyphen user.bib}%
{\providedby{\sty{glossaries-extra} v1.50+}}%
% packages:
\gpkg{glossaries}% glossaries.sty
{%
\common
\syntax{\meta{options}}%
\note{automatically loaded with
\code{\csfmt{usepackage}\marg{glossaries-extra}}}
\desc{base package. When loaded implicitly with
\sty{glossaries-extra}, any relevant options will be passed to the
base \sty{glossaries} package}
}
\gpkg{glossaries\dhyphen extra}% glossaries-extra.sty
{%
\common
\syntax{\meta{options}}%
\desc{extension package that loads \sty{glossaries}, provides
additional commands, and modifies some of the base
\sty{glossaries} commands to integrate them with the new
commands or to make them more flexible}
}
\gpkg{glossaries\dhyphen extra\dhyphen stylemods}% glossaries-extra-stylemods.sty
{%
\syntax{\meta{options}}%
\note{or \code{\csfmt{usepackage}[\optval{stylemods}{\meta{options}}]\marg{glossaries-extra}}}
\desc{modifies the \idxpl{glossarystyle} supplied with the base \sty{glossaries}
package to make them more flexible and to integrate support
for features provided by \sty{glossaries-extra} or \app{bib2gls}}
}
% glossaries-extra-bib2gls.sty
\gpkg{glossaries\dhyphen extra\dhyphen bib2gls}%
{%
\note{automatically loaded with
\code{\csfmt{usepackage}[\opt{record}]\marg{glossaries-extra}}
or
\code{\csfmt{usepackage}[\opteqvalref{record}{nameref}]\marg{glossaries-extra}}}%
\desc{provides additional commands that may be used with
\app{bib2gls}}
}
% glossaries-prefix.sty
\gpkg{glossaries\dhyphen prefix}%
{%
\syntax{\meta{options}}%
\note{automatically loaded with
\code{\csfmt{usepackage}[\opt{prefix}]\marg{glossaries-extra}}}
\desc{provides additional keys and commands to associated
prefixes with \idx{glossary} entries. If loaded on its own, it will
automatically load \sty{glossaries} with the given options}
}
% glossaries-accsupp.sty
\gpkg{glossaries\dhyphen accsupp}%
{%
\syntax{\meta{options}}%
\note{automatically loaded with
\code{\csfmt{usepackage}[\opt{accsupp}]\marg{glossaries-extra}}}
\desc{provides additional keys and commands to make it easier to
integrate accessibility support into \idx{glossary} entry definitions.
If loaded on its own, it will automatically load \sty{glossaries}
with the given options}
}
% glossaries-hypernav.sty
\gpkg{glossary\dhyphen hypernav}%
{%
\note{automatically loaded with \code{\csfmt{usepackage}\marg{glossaries}}}
\desc{provides support for \idxpl{glossarystyle}, such as \glostyle{listhypergroup}}
}
% glossaries-list.sty
\gpkg{glossary\dhyphen list}%
{%
\note{automatically loaded with \code{\csfmt{usepackage}\marg{glossaries}}}
\desc{provides list-like \idxpl{glossarystyle}, such as
\glostyle{list}. These styles are patched by \sty{glossaries-extra-stylemods}}
}
% glossaries-tree.sty
\gpkg{glossary\dhyphen tree}%
{%
\note{automatically loaded with \code{\csfmt{usepackage}\marg{glossaries}}}
\desc{provides \hierarchical\ index or tree-like \idxpl{glossarystyle}, such as
\glostyle{index} and \glostyle{tree}.
These styles are patched by \sty{glossaries-extra-stylemods}}
}
% glossaries-mcols.sty
\gpkg{glossary\dhyphen mcols}%
{%
\note{load explicitly or with
\code{\csfmt{usepackage}[\opt{stylemods}\dequals mcols]\marg{glossaries-extra}}}
\desc{provides multicolumn \hierarchical\ index and tree-like
\idxpl{glossarystyle},
such as \glostyle{mcolindex} and \glostyle{mcoltree}. This package
automatically loads \sty{glossary-tree} and \sty{multicol}.
These styles are patched by \sty{glossaries-extra-stylemods}}
}
% glossaries-inline.sty
\gpkg{glossary\dhyphen inline}%
{%
\note{load explicitly or with
\code{\csfmt{usepackage}[\optval{stylemods}{inline}]\marg{glossaries-extra}}}
\desc{provides the \glostyle{inline} \idx{glossarystyle}.
This style is patched by \sty{glossaries-extra-stylemods}}
}
% glossaries-long.sty
\gpkg{glossary\dhyphen long}%
{%
\note{automatically loaded with \code{\csfmt{usepackage}\marg{glossaries}}}
\desc{provides tabular-like \idxpl{glossarystyle}, such as
\glostyle{long} that use the \sty{longtable} package.
These styles are patched by \sty{glossaries-extra-stylemods}}
}
% glossaries-longbooktabs.sty
\gpkg{glossary\dhyphen longbooktabs}%
{%
\note{load explicitly or with
\code{\csfmt{usepackage}[\optval{stylemods}{longbooktabs}]\marg{glossaries-extra}}}
\desc{provides tabular-like \idxpl{glossarystyle}, such as
\glostyle{long\dhyphen booktabs} that use the \sty{longtable} package with
the \sty{booktabs} package to provide horizontal rules.
These styles are patched by \sty{glossaries-extra-stylemods}}
}
% glossaries-longragged.sty
\gpkg{glossary\dhyphen longragged}%
{%
\note{load explicitly or with
\code{\csfmt{usepackage}[\optval{stylemods}{longragged}]\marg{glossaries-extra}}}
\desc{provides tabular-like \idxpl{glossarystyle}, such as
\glostyle{longragged} that use the \sty{longtable} package with
the \sty{array} package to left-justify the description column.
These styles are patched by \sty{glossaries-extra-stylemods}}
}
% glossaries-super.sty
\gpkg{glossary\dhyphen super}%
{%
\note{automatically loaded with \code{\csfmt{usepackage}\marg{glossaries}}}
\desc{provides tabular-like \idxpl{glossarystyle}, such as
\glostyle{super} that use the \sty{supertabular} package.
These styles are patched by \sty{glossaries-extra-stylemods}}
}
% glossaries-superragged.sty
\gpkg{glossary\dhyphen superragged}%
{%
\note{load explicitly or with
\code{\csfmt{usepackage}[\optval{stylemods}{superragged}]\marg{glossaries-extra}}}
\desc{provides tabular-like \idxpl{glossarystyle}, such as
\glostyle{superragged} that use the \sty{supertabular} package with
the \sty{array} package to left-justify the description column.
These styles are patched by \sty{glossaries-extra-stylemods}}
}
% glossaries-bookindex.sty
\gpkg{glossary\dhyphen bookindex}%
{%
\note{load explicitly or with
\code{\csfmt{usepackage}[\optval{stylemods}{bookindex}]\marg{glossaries-extra}}}
\desc{provides the \glostyle{bookindex} \idx{glossarystyle}, which
doesn't show descriptions. This package is distributed with
\sty{glossaries-extra}}
}
% glossaries-longextra.sty
\gpkg{glossary\dhyphen longextra}%
{%
\note{load explicitly or with
\code{\csfmt{usepackage}[\optval{stylemods}{longextra}]\marg{glossaries-extra}}}
\desc{provides more flexible tabular-like \idxpl{glossarystyle}, such
as \glostyle{long-name-desc}. This package is distributed with
\sty{glossaries-extra} and automatically loads
\sty{glossary-longbooktabs}}
}
% glossaries-topic.sty
\gpkg{glossary\dhyphen topic}%
{%
\note{load explicitly or with
\code{\csfmt{usepackage}[\optval{stylemods}{topic}]\marg{glossaries-extra}}}
\desc{provides the \hierarchical\ \glostyle{topic} and \glostyle{topicmcols}
\idxpl{glossarystyle}. This package is distributed with
\sty{glossaries-extra} and automatically loads \sty{multicol}}
}
% glossaries-table.sty
\gpkg{glossary\dhyphen table}%
{%
\note{load explicitly or with
\code{\csfmt{usepackage}[\optval{stylemods}{table}]\marg{glossaries-extra}}}
\desc{provides \gls{printunsrttable} and its custom style.
This package is distributed with
\sty{glossaries-extra} and automatically loads
\sty{glossary-longbooktabs}}
}
% OTHER PACKAGES:
\gpkg{long\-table}{}% longtable.sty
\gpkg{super\-tabular}{}% supertabular.sty
\gpkg{array}{}% array.sty
\gpkg{book\-tabs}{}% booktabs.sty
\gpkg{multi\-col}{}% multicol.sty
\gpkg{babel}{}% babel.sty
\gpkg{poly\-glossia}{}% polyglossia.sty
\gpkg{translator}{}% translator.sty
\gcls{memoir}{}% memoir.cls
\gcls{beamer}{}% beamer.cls
\gpkg{hyper\-ref}{}% hyperref.sty
\gpkg{get\-title\-string}{}% gettitlestring
\gpkg{name\-ref}{}% nameref
\gpkg{ams\-math}{}% amsmath.sty
\gpkg{etool\-box}{}% etoolbox.sty
\gpkg{soul}{}% soul.sty
\gpkg{input\-enc}{}% inputenc.sty
\gpkg{font\-enc}{}% fontenc.sty
\gpkg{rel\-size}{}% relsize.sty
\gpkg{acc\-supp}{}% accsupp.sty
\gpkg{text\-case}{}% textcase.sty
\gpkg{up\-greek}{}% upgreek.sty
\gpkg{title\-string}{}% titlestring.sty
\gpkg{xfor}{}% xfor.sty
\gpkg{fancy\-hdr}{}% fancyhdr.sty
% mfirstuc package
\gpkg{mfirst\-uc}{}% mfirstuc.sty
% \makefirstuc
\gcmd{make\-first\-uc}%
{%
\syntax{\margm{text}}
\providedby{\sty{mfirstuc}}
\desc{robust command that converts the first character of \meta{text} to
\idx{uppercase}\glsadd{idx.sentencecase} unless \meta{text}
starts with a command, in which case it will attempt to apply
the \idx{casechange} to the first character of the first
argument following the command, if the command is followed by a
group. As from \sty{mfirstuc} v2.08, this command internally
uses \gls{MFUsentencecase} to perform the actual case-change.
See the \sty{mfirstuc} documentation for further details, either:
\texdocref{mfirstuc} or visit \ctanpkg{mfirstuc}}
}
% \MFUsentencecase
\gcmd{MFU\-sentence\-case}%
{%
\syntax{\margm{text}}
\providedby{\sty{mfirstuc} v2.08+}
\desc{fully expands \meta{text} and converts the first letter to
\idx{uppercase}\glsadd{idx.sentencecase}. Unlike
\gls{makefirstuc}, this command is expandable, but only
recognises commands identified as exclusions. See the
\sty{mfirstuc} documentation for further details. This command
is provided by \sty{glossaries-extra} v1.49+ if an old version
of \sty{mfirstuc} is detected}
}
% \glsmakefirstuc
\gcmd{gls\-make\-first\-uc}%
{%
\syntax{\margm{text}}
\providedby{\sty{mfirstuc} v1.05+}
\desc{used by \gls{makefirstuc} to perform the actual
case-change. As from \sty{mfirstuc} v2.08+ this just uses
\gls{MFUsentencecase}}
}
% \MFUexcl
\gcmd{MFU\-excl}
{
\providedby{\sty{mfirstuc} v2.08+}
\syntax{\margm{cs}}%
\desc{locally identifies \meta{cs} as an exclusion command,
which will be recognised by both \gls{makefirstuc} and
\gls{MFUsentencecase}}
\field{seealso}{MFUblocker,MFUaddmap}
}
% \MFUblocker
\gcmd{MFU\-blocker}
{
\providedby{\sty{mfirstuc} v2.08+}
\syntax{\margm{cs}}%
\desc{locally identifies \meta{cs} as a blocker command for
\gls{makefirstuc} and an exclusion for \gls{MFUsentencecase}
(which doesn't support blockers)}
\field{seealso}{MFUexcl,MFUaddmap}
}
% \MFUaddmap
\gcmd{MFU\-add\-map}
{
\providedby{\sty{mfirstuc} v2.08+}
\syntax{\margm{cs1}\margm{cs2}}%
\desc{identifies a mapping from the command \meta{cs1} to
command \meta{cs2} for \gls{makefirstuc} and also identifies
\meta{cs2} as a blocker. Mappings and blockers aren't supported
by \gls{MFUsentencecase}, so both \meta{cs1} and \meta{cs2} are
identified as exclusions for \gls{MFUsentencecase}}
\field{seealso}{MFUexcl,MFUblocker}
}
% \glsmfuexcl
\gcmd{gls\-mfu\-excl}
{
\providedby{\sty{glossaries} v4.50+ \& \sty{glossaries-extra} v1.49+}
\syntax{\margm{cs}}%
\desc{if \sty{mfirstuc} v2.08+ is installed, this will use
\gls+{MFUexcl}, otherwise it will implement something similar.
See \sectionref{sec:firstuc} for further details}
}
% \glsmfublocker
\gcmd{gls\-mfu\-block\-er}
{
\providedby{\sty{glossaries} v4.50+ \& \sty{glossaries-extra} v1.49+}
\syntax{\margm{cs}}%
\desc{if \sty{mfirstuc} v2.08+ is installed, this will use
\gls+{MFUblocker}, otherwise it will use \gls{glsmfuexcl} instead.
See \sectionref{sec:firstuc} for further details}
}
% \glsmfuaddmap
\gcmd{gls\-mfu\-add\-map}
{
\providedby{\sty{glossaries} v4.50+ \& \sty{glossaries-extra} v1.49+}
\syntax{\margm{cs1}\margm{cs2}}%
\desc{if \sty{mfirstuc} v2.08+ is installed, this will use
\gls+{MFUaddmap}, otherwise it will use \gls{glsmfuexcl} instead.
See \sectionref{sec:firstuc} for further details}
}
% \glssentencecase
\gcmd{gls\-sentence\-case}
{
\providedby{\sty{glossaries} v4.50+ \& \sty{glossaries-extra} v1.49+}
\syntax{\margm{text}}
\desc{used by \idx{sentencecase} commands, such as \gls{Gls}, to
perform the case change. This is simply defined to use
\gls{makefirstuc}}
}
% \capitalisewords
\gcmd{capitalise\-words}%
{%
\providedby{\sty{mfirstuc} v1.06+}
\syntax{\margm{text}}
\desc{converts \meta{text} to \idx{titlecase}. Limitations
apply, see the \sty{mfirstuc} documentation for further details, either:
\texdocref{mfirstuc} or visit \ctanpkg{mfirstuc}}
}
% \capitalisefmtwords
\gcmd{capitalise\-fmt\-words}%
{%
\providedby{\sty{mfirstuc} v2.03+}
\syntax{\margm{text}}
\desc{converts \meta{text} to \idx{titlecase}, where \meta{text}
may contain text-block commands. The starred form only permits a
text-block command at the start of the argument. Limitations
apply, see the \sty{mfirstuc} documentation for further details, either:
\texdocref{mfirstuc} or visit \ctanpkg{mfirstuc}}
}
% \xcapitalisefmtwords
\gcmd{xcapitalise\-fmt\-words}%
{%
\providedby{\sty{mfirstuc} v2.03+}
\syntax{\margm{text}}
\desc{passes the argument to \gls{capitalisefmtwords} but with the
first token in \meta{text} expanded. The starred version uses
the starred version of \gls{capitalisefmtwords}}
}
% \mfirstucMakeUppercase
\gcmd{mfirst\-uc\-Make\-Upper\-case}
{
\providedby{\sty{mfirstuc}}
\syntax{\margm{text}}
\desc{this command was used by \gls{makefirstuc} to convert its argument to
\idx{allcaps} and was redefined by \sty{glossaries} to use
\gls{MakeTextUppercase}, but with \sty{mfirstuc} v2.08+ and
\sty{glossaries} v4.50+ this command is instead defined
to use the \LaTeX3 \idx{allcaps} command, which is expandable.
This command is no longer used by \gls{makefirstuc} (which instead uses
\gls{MFUsentencecase}) or by \sty{glossaries} v4.50+ (which now
uses \gls{glsuppercase} for \idx{allcaps} commands such as \gls{GLS})}
}
% \MFUsaveatend
\gcmd{MFU\-save\-at\-end}
{
\providedby{\sty{mfirstuc} v2.08+}
\desc{saves the list of exclusions, blockers
and mappings to the \ext{aux} file (if required by some
external tool, such as \app{bib2gls}) at the end of the document.
This command sets itself to \cmd{relax} so it
doesn't repeat the action if used multiple times, but it can
be overridden by \gls{MFUsave}}
}
% \MFUsave
\gcmd{MFU\-save}
{
\providedby{\sty{mfirstuc} v2.08+}
\desc{saves the list of exclusions, blockers
and mappings to the \ext{aux} file (if required by some
external tool, such as \app{bib2gls}).
This command sets itself to \cmd{relax} so it
doesn't repeat the action if used multiple times, and
counteracts any use of \gls{MFUsaveatend}}
}
% \glslowercase
\gcmd{gls\-lower\-case}
{
\providedby{\sty{glossaries} v4.50+}
\syntax{\margm{text}}
\desc{converts \meta{text} to \idx{lowercase}}
}
% \glsuppercase
\gcmd{gls\-upper\-case}
{
\providedby{\sty{glossaries} v4.50+}
\syntax{\margm{text}}
\desc{converts \meta{text} to \idx{uppercase}}
}
\gpkg{datatool}{}% datatool.sty
\gpkg{datatool\dhyphen base}{}% datatool-base.sty
% \DTLformatlist
\gcmd{DTL\-format\-list}
{
\providedby{\sty{datatool-base} v2.28+}
\syntax{\margm{csv-list}}
\desc{formats the comma-separated list \meta{csv-list}.
One-level expansion is performed on \meta{csv-list}. See the
\sty{datatool} documentation for further details, either:
\texdocref{datatool} or visit \ctanpkg{datatool}}
}
% \DTLifinlist
\gcmd{DTL\-if\-in\-list}
{
\providedby{\sty{datatool-base}}
\syntax{\margm{element}\margm{csv-list}\margm{true}\margm{false}}
\desc{does \meta{true} if \meta{element} is contained in the comma-separated
list \meta{csv-list}, otherwise does \meta{false}.
One-level expansion is performed on \meta{csv-list}, but not on
\meta{element}. See the \sty{datatool} documentation for further
details, either:
\texdocref{datatool} or visit \ctanpkg{datatool}}
}
\gpkg{track\-lang}{}% tracklang.sty
% \CurrentTrackedLanguage
\gcmd{Current\-Tracked\-Language}
{
\providedby{\sty{tracklang}}
\syntax{placeholder for use in \ext{ldf} files, expands to the
current language label}
}
% \CurrentTrackedDialect
\gcmd{Current\-Tracked\-Dialect}
{
\providedby{\sty{tracklang}}
\syntax{placeholder for use in \ext{ldf} files, expands to the
current dialect label}
}
% applications:
\gapp{make\-index}% makeidnex
{%
\common
\syntax{\meta{options} \meta{\idx{indexing} file}}%
\desc{a general purpose \idx{indexingapp}}%
}
\gapp{xindy}%
{%
\common
\syntax{\meta{options} \meta{\idx{indexing} file}}%
\desc{a flexible \idx{indexingapp} with multilingual support
written in Perl}
}
\gapp{texindy}%
{%
\syntax{\meta{options} \meta{\idx{indexing} file}}%
\desc{runs \app{xindy} with modules set up for input written in
\app{makeindex}['s] syntax}
}
\gapp{make\-glos\-saries}% makeglossaries
{%
\syntax{\meta{options} \meta{aux-file}}%
\desc{A custom designed Perl script interface
to \app+{xindy} and \app+{makeindex} provided with the \sty{glossaries}
package}
}
\gapp{make\-glos\-saries\dhyphen lite}% makeglossaries-lite
{%
\syntax{\meta{options} \meta{aux-file}}%
\desc{A custom designed Lua script interface
to \app+{xindy} and \app+{makeindex} provided with the \sty{glossaries}
package. This is a cut-down alternative to the Perl
\app{makeglossaries} script. If you have Perl installed, use the
Perl script instead}
}
\gapp{make\-glos\-saries\-gui}% makeglossariesgui
{%
\syntax{\meta{options} \meta{aux-file}}%
\desc{A Java \gls{gui} alternative to \app{makeglossaries} that
also provides diagnostic tools. Available separately on
\CTANpkg{makeglossariesgui}}
}
\gapp{bib2gls}%
{%
\common
\syntax{\meta{options} \meta{aux-file}}%
\desc{an \idx{indexingapp} that combines two functions in
one: (1) fetches entry definition from a \ext+{bib} file
based on information provided in the \ext+{aux} file (similar
to \BibTeX); (2) hierarchically sorts and collates location
lists (similar to \app{makeindex} and \app{xindy}).
This application is designed for use with \sty{glossaries-extra}
and can't be used with just the base \sty{glossaries} package.
Available separately on \CTANpkg{bib2gls}}
}
\gapp{con\-vert\-gls2bib}% convertgls2bib
{%
\syntax{\meta{options} \meta{tex-file} \meta{bib-file}}%
\desc{An application provided with \app{bib2gls} that
converts \ext+{tex} files containing entry definitions to
\ext+{bib} files suitable for use with \app{bib2gls}.
This application is designed for files that just contain entry
definitions, but it can work on a complete document file.
However, there will be a lot of \qt{undefined command} warnings as
\app{convertgls2bib} only has a limited set of known commands. You
can limit it so that it only parses the preamble with the
\switch{preamble-only} switch (requires at least \app{bib2gls}
v2.0)}
}
\gapp{xindex}{}
\gapp{arara}{}
% switches
% --preamble-only
\glongswitch{preamble\dhyphen only}{\inapp{convertgls2bib}}
% --index-conversion
\glongswitch{index\dhyphen conversion}{\inapp{convertgls2bib}}
% -i
\gshortswitch{i}{\inapp{bib2gls}\field{alias}{switch.index-conversion}}
% --group
\glongswitch{group}{\inapp{bib2gls}}
% -g
\gshortswitch{g}{\inapp{bib2gls}\field{alias}{switch.group}}
% --no-group
\glongswitch{no\dhyphen group}{\inapp{bib2gls}}
% --log-file
\glongswitch{log\dhyphen file}{\inapp{bib2gls}}
% -t
\gshortswitch{t}{\inapp{bib2gls}\field{alias}{switch.log-file}}
% --record-count
\glongswitch{record\dhyphen count}{\inapp{bib2gls}}
% --record-count-rule
\glongswitch{record\dhyphen count\dhyphen rule}{\inapp{bib2gls}}
% --record-count-unit
\glongswitch{record\dhyphen count\dhyphen unit}{\inapp{bib2gls}}
% --merge-nameref-on
\glongswitch{merge\dhyphen nameref\dhyphen on}{\inapp{bib2gls}}
% COMMANDS: ABBREVIATIONS
% \newabbreviation
\gcmd{new\-ab\-bre\-vi\-a\-tion}%
{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\margm{short}\margm{long}}
\desc{defines a new entry that represents an abbreviation.
This internally uses \gls{newglossaryentry} and any provided
\meta{options} (\idxpl{gloskey}) will be appended. The
\gloskey{category} is set to \cat{abbreviation} by default, but
may be overridden in \meta{options}. The
appropriate style should be set before the abbreviation is
defined with \gls{setabbreviationstyle}}
}
% \newacronym
\gcmd{new\-acronym}%
{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\margm{short}\margm{long}}
\desc{this command is provided by the base \sty{glossaries}
package but is redefined by \sty{glossaries-extra} to use
\gls{newabbreviation} with the \gloskey{category} key set to
\cat{acronym}. The
appropriate style should be set before the abbreviation is
defined with
\code{\gls{setabbreviationstyle}\oarg{acronym}\margm{style}}.
You can override the \gloskey{category} in \meta{options} but
remember to change the optional argument of
\gls{setabbreviationstyle} to match}
}%
% \GlsXtrEnableInitialTagging
\gcmds{Gls\-Xtr\-Enable\-Initial\-Tagging}%
{
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{categories}\margm{cs}}
\desc{robustly defines the command \meta{cs} to accept a single
argument, which is a letter (or letters) that needs to be
tagged. The unstarred version triggers an error if \meta{cs} is
already defined. The unstarred version will redefine \meta{cs} if
it already exists}
}
% \glsxtrtagfont
\gcmd{gls\-xtr\-tag\-font}%
{
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{text}}
\desc{used by the tagging command defined with \gls{GlsXtrEnableInitialTagging}}
}
% \GlsXtrDefineAbbreviationShortcuts
\gcmd{Gls\-Xtr\-Define\-Abbreviation\-Shortcuts}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{used by \opteqvalref{shortcuts}{abbreviations} and
\opteqvalref{shortcuts}{all}. This
command redefines itself to do nothing because it can only be
used once}
}
% \GlsXtrDefineAcronymShortcuts
\gcmd{Gls\-Xtr\-Define\-Acronym\-Shortcuts}
{
\providedby{\sty{glossaries-extra} v1.17+}
\desc{used by \opteqvalref{shortcuts}{ac} and
\opteqvalref{shortcuts}{acother}. This
command redefines itself to do nothing because it can only be
used once}
}
% \GlsXtrDefineOtherShortcuts
\gcmd{Gls\-Xtr\-Define\-Other\-Shortcuts}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{used by \opteqvalref{shortcuts}{other} and
\opteqvalref{shortcuts}{all}. This
command redefines itself to do nothing because it can only be
used once}
}
% COMMANDS: ABBREVIATION STYLES
% \setabbreviationstyle
\gcmd{set\-ab\-bre\-vi\-a\-tion\-style}%
{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{category}\margm{style-name}}
\desc{sets the current \idx{abbrvstyle} to \meta{style-name}
for the category identified by \meta{category}. If the
optional argument is omitted, \cat{abbreviation} is assumed}
}
% \setacronymstyle
\gcmd{set\-acronym\-style}%
{%
\providedby{\sty{glossaries} v4.02+}
\syntax{\margm{acronym-style-name}}
\banned
\desc{sets the style for the base \sty{glossaries} package's
acronym mechanism. These styles are not compatible with
\sty{glossaries-extra}, which redefines \gls{newacronym}
to use \gls{newabbreviation}. Use:
\begin{compactcodebox}
\gls{setabbreviationstyle}\oarg{acronym}\margm{abbreviation-style-name}
\end{compactcodebox}
with the closest matching \idx{abbrvstyle} instead}
}
% \RestoreAcronyms
\gcmd{Restore\-Acronyms}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{restores \gls{newacronym} to the base \sty{glossaries}
mechanism. Not recommended}
}
% \MakeAcronymsAbbreviations
\gcmd{Make\-Acronyms\-Ab\-bre\-vi\-a\-tions}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{counteracts \gls{RestoreAcronyms}. Not recommended}
}
% \newacronymstyle
\gcmd{new\-acronym\-style}%
{
\providedby{\sty{glossaries} v4.02+}
\syntax{\margm{name}\margm{format def}\margm{display defs}}
\banned
\desc{defines an acronym style for use with the base
\sty{glossaries} package's acronym mechanism. These styles are not
compatible with \sty{glossaries-extra}. Use
\gls{newabbreviationstyle} instead}
}
% \glsabspace
\gcmd{gls\-ab\-space}%
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{label}}
\desc{as \gls{glsacspace} but includes \idx{innerformatting}.
Unlike \gls{glsacspace}, this command is robust}
}
% \glsacspace
\gcmd{gls\-ac\-space}%
{
\providedby{\sty{glossaries} v4.16+}
\syntax{\margm{label}}
\desc{uses a non-breakable space if the short form is less than
\gls{glsacspacemax} otherwise uses \csfmt{space}. This command
is provided by \sty{glossaries} but has a hard-coded maximum of 3em.
This command is redefined by \sty{glossaries-extra} to use
\gls{glsacspacemax}}
}
% \glsacspacemax
\gcmd{gls\-ac\-space\-max}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{expands to the maximum value used by \gls{glsacspace}.
This is a macro not a register. The default is \code{3em}}
}
% \firstacronymfont
\gcmd{first\-acronym\-font}
{
\providedby{\sty{glossaries} v1.14+}
\syntax{\margm{text}}
\desc{used to encapsulate the acronym short form on
\idx{firstuse} by the base \sty{glossaries} package. This is
redefined by \sty{glossaries-extra} to use \gls{glsfirstabbrvfont}}
}
% \acronymfont
\gcmd{acronym\-font}
{
\providedby{\sty{glossaries} v1.0+}
\syntax{\margm{text}}
\desc{used to encapsulate the acronym short form on
\idx{subsequentuse} by the base \sty{glossaries} package. This is
redefined by \sty{glossaries-extra} to use \gls{glsabbrvfont}}
}
% \newabbreviationstyle
\gcmd{new\-ab\-bre\-vi\-a\-tion\-style}%
{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{style-name}\margm{setup}\margm{display definitions}}
\desc{defines an abbreviation style, which can be set with
\gls{setabbreviationstyle}}
}
% \renewabbreviationstyle
\gcmd{re\-new\-ab\-bre\-vi\-a\-tion\-style}%
{%
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{style-name}\margm{setup}\margm{display definitions}}
\desc{redefines an abbreviation style}
\field{seealso}{newabbreviationstyle}
}
% \letabbreviationstyle
\gcmd{let\-ab\-bre\-vi\-a\-tion\-style}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{new style}\margm{existing style}}
\desc{defines a synonym for an existing abbreviation style}
}
% \ExtraCustomAbbreviationFields
\gcmd{Extra\-Custom\-Ab\-bre\-vi\-a\-tion\-Fields}
{
\providedby{\sty{glossaries-extra} v1.31+}
\desc{expands to additional fields that need to be set with \gls{newabbreviation}}
}
% \glsxtrnewabbrevpresetkeyhook
\gcmd{gls\-xtr\-new\-ab\-brev\-preset\-key\-hook}
{
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{options}\margm{label}\margm{short}}
\desc{hook provided to adjust initialisation within
\gls{newabbreviation}}
}
% \newabbreviationhook
\gcmd{new\-ab\-bre\-vi\-a\-tion\-hook}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{hook provided within \gls{newabbreviation} just before the entry is defined}
}
% \CustomAbbreviationFields
\gcmd{Custom\-Ab\-bre\-vi\-a\-tion\-Fields}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{expands to the default field definitions for the entry}
}
% \GlsXtrPostNewAbbreviation
\gcmd{Gls\-Xtr\-Post\-New\-Ab\-bre\-vi\-a\-tion}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{a hook that's performed after the entry has been defined}
}
% \glsxtrsetcomplexstyle
\gcmd{gls\-xtr\-set\-complex\-style}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{n}}
\desc{indicates that the entry given by \meta{entry-label} uses a
complex abbreviation style. The second argument \meta{n} should
be numeric, which indicates why it doesn't work with the
variations of \gls{glsfirst}: 1 (all caps doesn't work), 2 (all caps and insert
doesn't work), 3 (insert doesn't work)}
}
% \glscategorylabel
\gcmd{gls\-cat\-e\-gory\-label}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{expands to the category label of the abbreviation that is
in the process of being defined by \gls{newabbreviation}. Maybe used
in the style hooks (but take care to expand this command, if
necessary)}
}
% \glsxtrorgkeylist
\gcmd{gls\-xtr\-org\-key\-list}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{expands to the original option list as it was supplied to
\gls{newabbreviation}}
}
% \glsxtrorgshort
\gcmd{gls\-xtr\-org\-short}
{
\providedby{\sty{glossaries-extra} v1.17+}
\desc{expands to the original short form as it was supplied to
\gls{newabbreviation}}
}
% \glsxtrorglong
\gcmd{gls\-xtr\-org\-long}
{
\providedby{\sty{glossaries-extra} v1.17+}
\desc{expands to the original long form as it was supplied to
\gls{newabbreviation}}
}
% \glskeylisttok
\gcmd{gls\-key\-list\-tok}
{
\providedby{\sty{glossaries}}
\desc{a token register that stores the options passed to
\gls{newabbreviation}}
}
% \glslabeltok
\gcmd{gls\-label\-tok}
{
\providedby{\sty{glossaries}}
\desc{a token register that stores the entry's label}
}
% \glsshorttok
\gcmd{gls\-short\-tok}
{
\providedby{\sty{glossaries}}
\desc{a token register that stores the short form (which may
have been modified after being passed to \gls{newabbreviation})}
}
% \glsshortpltok
\gcmd{gls\-short\-pl\-tok}
{
%\providedby{\sty{glossaries-extra} v0.3+}
\desc{a token register that stores the short plural form (which may
have been modified after being passed to \gls{newabbreviation})}
}
% \glslongtok
\gcmd{gls\-long\-tok}
{
\providedby{\sty{glossaries}}
\desc{a token register that stores the long form (which may
have been modified after being passed to \gls{newabbreviation})}
}
% \glslongpltok
\gcmd{gls\-long\-pl\-tok}
{
%\providedby{\sty{glossaries-extra} v0.3+}
\desc{a token register that stores the long plural form (which may
have been modified after being passed to \gls{newabbreviation})}
}
% \glsxtrword
\gcmd{gls\-xtr\-word}%
{%
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{word}}
\desc{used to mark each word by the \catattr{markwords}
and \catattr{markshortwords} attributes}
}
% \glsxtrwordsep
\gcmd{gls\-xtr\-word\-sep}%
{%
\providedby{\sty{glossaries-extra} v1.17+}
\desc{used to mark word separator space by the \catattr{markwords}
and \catattr{markshortwords} attributes}
}
% \glsxtrwordsephyphen
\gcmd{gls\-xtr\-word\-sep\-hyphen}%
{%
\providedby{\sty{glossaries-extra} v1.49+}
\desc{used to mark compound word separator hyphen by the \catattr{markwords}
and \catattr{markshortwords} attributes}
}
% \glsxtrsubsequentfmt
\gcmd{gls\-xtr\-sub\-sequent\-fmt}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{used by \gls{glsxtrgenabbrvfmt} to display the subsequent
singular form (defined by the abbreviation style)}
}
% \glsxtrsubsequentplfmt
\gcmd{gls\-xtr\-sub\-sequent\-pl\-fmt}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{used by \gls{glsxtrgenabbrvfmt} to display the subsequent
plural form (defined by the abbreviation style)}
}
% \Glsxtrsubsequentfmt
\gcmd{Gls\-xtr\-sub\-sequent\-fmt}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{used by \gls{glsxtrgenabbrvfmt} to display the
\idx{sentencecase} subsequent
singular form (defined by the abbreviation style)}
}
% \Glsxtrsubsequentplfmt
\gcmd{Gls\-xtr\-sub\-sequent\-pl\-fmt}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{used by \gls{glsxtrgenabbrvfmt} to display the
\idx{sentencecase} subsequent
plural form (defined by the abbreviation style)}
}
% \GLSxtrsubsequentfmt
\gcmd{GLS\-xtr\-sub\-sequent\-fmt}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{used by \gls{glsxtrgenabbrvfmt} to display the
\idx{allcaps} subsequent
singular form (defined by the abbreviation style)}
}
% \GLSxtrsubsequentplfmt
\gcmd{GLS\-xtr\-sub\-sequent\-pl\-fmt}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{used by \gls{glsxtrgenabbrvfmt} to display the
\idx{allcaps} subsequent
plural form (defined by the abbreviation style)}
}
% \glsxtrdefaultsubsequentfmt
\gcmd{gls\-xtr\-default\-sub\-sequent\-fmt}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{the default subsequent format style that only shows the
short form and insert (with support for \glsopt{innertextformat})}
}
% \glsxtrdefaultsubsequentplfmt
\gcmd{gls\-xtr\-default\-sub\-sequent\-pl\-fmt}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{the default subsequent plural format style that only shows the
short form and insert (with support for \glsopt{innertextformat})}
}
% \Glsxtrdefaultsubsequentfmt
\gcmd{Gls\-xtr\-default\-sub\-sequent\-fmt}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{the default \idx{sentencecase} subsequent format style that only shows the
short form and insert (with support for \glsopt{innertextformat})}
}
% \Glsxtrdefaultsubsequentplfmt
\gcmd{Gls\-xtr\-default\-sub\-sequent\-pl\-fmt}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{the default \idx{sentencecase} subsequent plural format style that only shows the
short form and insert (with support for \glsopt{innertextformat})}
}
% \GLSxtrdefaultsubsequentfmt
\gcmd{GLS\-xtr\-default\-sub\-sequent\-fmt}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{the default \idx{allcaps} subsequent format style that only shows the
short form and insert (with support for \glsopt{innertextformat})}
}
% \GLSxtrdefaultsubsequentplfmt
\gcmd{GLS\-xtr\-default\-sub\-sequent\-pl\-fmt}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{the default \idx{allcaps} subsequent plural format style that only shows the
short form and insert (with support for \glsopt{innertextformat})}
}
% \glsxtrfullformat
\gcmd{gls\-xtr\-full\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{the singular \idx{displayfullform} (defined by the abbreviation style)}
}
% \glsxtrfullplformat
\gcmd{gls\-xtr\-full\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{the plural \idx{displayfullform} (defined by the abbreviation style)}
}
% \Glsxtrfullformat
\gcmd{Gls\-xtr\-full\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{the \idx{sentencecase} singular \idx{displayfullform} (defined by the abbreviation style)}
}
% \Glsxtrfullplformat
\gcmd{Gls\-xtr\-full\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{the \idx{sentencecase} plural \idx{displayfullform} (defined by the abbreviation style)}
}
% \GLSxtrfullformat
\gcmd{GLS\-xtr\-full\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{the \idx{allcaps} singular \idx{displayfullform} (defined by the abbreviation style)}
}
% \GLSxtrfullplformat
\gcmd{GLS\-xtr\-full\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{the \idx{allcaps} plural \idx{displayfullform} (defined by the abbreviation style)}
}
% \glsxtrinlinefullformat
\gcmd{gls\-xtr\-in\-line\-full\-format}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{used by \gls{glsxtrfull} to display the \idx{inlinefullform}
form (defined by the abbreviation style)}
}
% \Glsxtrinlinefullformat
\gcmd{Gls\-xtr\-in\-line\-full\-format}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{used by \gls{Glsxtrfull} to display the \idx{sentencecase} \idx{inlinefullform}
form (defined by the abbreviation style)}
}
% \GLSxtrinlinefullformat
\gcmd{GLS\-xtr\-in\-line\-full\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{used by \gls{GLSxtrfull} to display the \idx{allcaps} \idx{inlinefullform}
form (defined by the abbreviation style)}
}
% \glsxtrinlinefullplformat
\gcmd{gls\-xtr\-in\-line\-full\-pl\-format}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{used by \gls{glsxtrfullpl} to display the plural \idx{inlinefullform}
form (defined by the abbreviation style)}
}
% \Glsxtrinlinefullplformat
\gcmd{Gls\-xtr\-in\-line\-full\-pl\-format}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{used by \gls{Glsxtrfullpl} to display the plural \idx{sentencecase} \idx{inlinefullform}
form (defined by the abbreviation style)}
}
% \GLSxtrinlinefullplformat
\gcmd{GLS\-xtr\-in\-line\-full\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{used by \gls{GLSxtrfullpl} to display the plural \idx{allcaps} \idx{inlinefullform}
form (defined by the abbreviation style)}
}
% \glsfirstabbrvfont
\gcmd{gls\-first\-abbrv\-font}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{text}}
\desc{font formatting command for the short form on \idx{firstuse}, initialised by
the abbreviation style}
}
% \glsabbrvfont
\gcmd{gls\-abbrv\-font}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{text}}
\desc{font formatting command for the short form, initialised by
the abbreviation style}
}
% \glsxtrrevert
\gcmd{gls\-xtr\-revert}{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}}
\desc{style-sensitive abbreviation command designed to
counteract any font change applied by the style}
}
% \glsxtrdefaultrevert
\gcmd{gls\-xtr\-default\-revert}{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}}
\desc{the default definition of \gls{glsxtrrevert}. Simply does
\meta{text}}
}
% \glsxtrscrevert
\gcmd{gls\-xtr\-sc\-revert}{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}}
\desc{the definition of \gls{glsxtrrevert} used by the \idx{smallcaps} (\qt{sc})
\idxpl{abbrvstyle}. Uses \gls{glstextup}}
}
% \glsxtrscuserrevert
\gcmd{gls\-xtr\-sc\-user\-revert}{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}}
\desc{the definition of \gls{glsxtrrevert} used by
styles like \abbrstyle{long-postshort-sc-user}. Uses \gls{glsxtrscrevert}}
}
% \glsxtrsconlyrevert
\gcmd{gls\-xtr\-sc\-only\-revert}{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}}
\desc{the definition of \gls{glsxtrrevert} used by
styles like \abbrstyle{long-only-short-sc-only}. Uses \gls{glsxtrscrevert}}
}
% \glsxtrsmrevert
\gcmd{gls\-xtr\-sm\-revert}{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}}
\desc{the definition of \gls{glsxtrrevert} used by the smaller (\qt{sm})
\idxpl{abbrvstyle}. Uses \gls{textlarger}}
}
% \glsxtremrevert
\gcmd{gls\-xtr\-em\-revert}{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}}
\desc{the definition of \gls{glsxtrrevert} used by the emphasized (\qt{em})
\idxpl{abbrvstyle}. Uses \gls{textup}}
}
% \glsinnerfmtabbrvfont
\gcmd{gls\-inner\-fmt\-abbrv\-font}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}}
\desc{robust command that applies both \gls{glsabbrvfont} and
\gls{glsxtrgenentrytextfmt} to \meta{text}}
}
% \glsfirstlongfont
\gcmd{gls\-first\-long\-font}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{text}}
\desc{font formatting command for the long form on \idx{firstuse}, initialised by
the abbreviation style}
}
% \glslongfont
\gcmd{gls\-long\-font}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{text}}
\desc{font formatting command for the long form, initialised by
the abbreviation style}
}
% \glsxtrlongformat
\gcmd{gls\-xtr\-long\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{encapsulates the \gloskey{long} field for the given entry
with \meta{fmt-cs}. The \meta{insert} argument is the insertion
material supplied in the final optional argument of the
\idx{glslike} or \idx{glstextlike} commands. The
\gls{ifglsxtrinsertinside}, \idx{innerformatting},
and accessibility settings are supported}
}
% \Glsxtrlongformat
\gcmd{Gls\-xtr\-long\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrlongformat} but \idx{sentencecase}}
}
% \GLSxtrlongformat
\gcmd{GLS\-xtr\-long\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrlongformat} but \idx{sentencecase}}
}
% \glsxtrlongplformat
\gcmd{gls\-xtr\-long\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrlongformat} but for the \gloskey{longplural} field}
}
% \Glsxtrlongplformat
\gcmd{Gls\-xtr\-long\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrlongplformat} but \idx{sentencecase}}
}
% \GLSxtrlongplformat
\gcmd{GLS\-xtr\-long\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrlongplformat} but \idx{allcaps}}
}
% \glsxtrlongformatgrp
\gcmd{gls\-xtr\-long\-format\-grp}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrlongformat} but adds grouping around \meta{insert}
(with the \idx{innerformatting} inside the group)}
}
% \Glsxtrlongformatgrp
\gcmd{Gls\-xtr\-long\-format\-grp}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrlongformatgrp} but \idx{sentencecase}}
}
% \GLSxtrlongformatgrp
\gcmd{GLS\-xtr\-long\-format\-grp}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrlongformatgrp} but \idx{allcaps}}
}
% \glsxtrlongplformatgrp
\gcmd{gls\-xtr\-long\-pl\-format\-grp}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrlongplformat} but adds grouping around \meta{insert}
(with the \idx{innerformatting} inside the group)}
}
% \Glsxtrlongplformatgrp
\gcmd{Gls\-xtr\-long\-pl\-format\-grp}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrlongplformatgrp} but \idx{sentencecase}}
}
% \GLSxtrlongplformatgrp
\gcmd{GLS\-xtr\-long\-pl\-format\-grp}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrlongplformatgrp} but \idx{allcaps}}
}
% \glsxtrshortformat
\gcmd{gls\-xtr\-short\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{encapsulates the \gloskey{short} field for the given entry
with \meta{fmt-cs}. The \meta{insert} argument is the insertion
material supplied in the final optional argument of the
\idx{glslike} or \idx{glstextlike} commands. The
\gls{ifglsxtrinsertinside}, \idx{innerformatting},
and accessibility settings are supported}
}
% \Glsxtrshortformat
\gcmd{Gls\-xtr\-short\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrshortformat} but \idx{sentencecase}}
}
% \GLSxtrshortformat
\gcmd{GLS\-xtr\-short\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrshortformat} but \idx{allcaps}}
}
% \glsxtrshortplformat
\gcmd{gls\-xtr\-short\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrshortformat} but for the \gloskey{shortplural} field}
}
% \Glsxtrshortplformat
\gcmd{Gls\-xtr\-short\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrshortplformat} but \idx{sentencecase}}
}
% \GLSxtrshortplformat
\gcmd{GLS\-xtr\-short\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrshortplformat} but \idx{allcaps}}
}
% \glsxtrshortformatgrp
\gcmd{gls\-xtr\-short\-format\-grp}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrshortformat} but adds grouping around \meta{insert}
(with the \idx{innerformatting} inside the group)}
}
% \Glsxtrshortformatgrp
\gcmd{Gls\-xtr\-short\-format\-grp}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrshortformatgrp} but \idx{sentencecase}}
}
% \GLSxtrshortformatgrp
\gcmd{GLS\-xtr\-short\-format\-grp}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrshortformatgrp} but \idx{allcaps}}
}
% \glsxtrshortplformatgrp
\gcmd{gls\-xtr\-short\-pl\-format\-grp}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrshortplformat} but adds grouping around \meta{insert}
(with the \idx{innerformatting} inside the group)}
}
% \Glsxtrshortplformatgrp
\gcmd{Gls\-xtr\-short\-pl\-format\-grp}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrshortplformatgrp} but \idx{sentencecase}}
}
% \GLSxtrshortplformatgrp
\gcmd{GLS\-xtr\-short\-pl\-format\-grp}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{fmt-cs}}
\desc{as \gls{glsxtrshortplformatgrp} but \idx{allcaps}}
}
% \glsxtrlongshortformat
\gcmd{gls\-xtr\-long\-short\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{formats the long form with \gls{glsxtrlongformat} and the
short form in parentheses with \gls{glsxtrshortformat}}
}
% \Glsxtrlongshortformat
\gcmd{Gls\-xtr\-long\-short\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtrlongshortformat} but \idx{sentencecase}}
}
% \GLSxtrlongshortformat
\gcmd{GLS\-xtr\-long\-short\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtrlongshortformat} but \idx{allcaps}}
}
% \glsxtrlongshortplformat
\gcmd{gls\-xtr\-long\-short\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtrlongshortformat} but for the plurals}
}
% \Glsxtrlongshortplformat
\gcmd{Gls\-xtr\-long\-short\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtrlongshortplformat} but \idx{sentencecase}}
}
% \GLSxtrlongshortplformat
\gcmd{GLS\-xtr\-long\-short\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtrlongshortplformat} but \idx{allcaps}}
}
% \glsxtrshortlongformat
\gcmd{gls\-xtr\-short\-long\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{formats the short form with \gls{glsxtrshortformat} and the
long form in parentheses with \gls{glsxtrlongformat}}
}
% \Glsxtrshortlongformat
\gcmd{Gls\-xtr\-short\-long\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtrshortlongformat} but \idx{sentencecase}}
}
% \GLSxtrshortlongformat
\gcmd{GLS\-xtr\-short\-long\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtrshortlongformat} but \idx{allcaps}}
}
% \glsxtrshortlongplformat
\gcmd{gls\-xtr\-short\-long\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtrshortlongformat} but for the plurals}
}
% \Glsxtrshortlongplformat
\gcmd{Gls\-xtr\-short\-long\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtrshortlongplformat} but \idx{sentencecase}}
}
% \GLSxtrshortlongplformat
\gcmd{GLS\-xtr\-short\-long\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtrshortlongplformat} but \idx{allcaps}}
}
% \glsxtrAccSuppAbbrSetNoLongAttrs
\gcmd{gls\-xtr\-Acc\-Supp\-Abbr\-Set\-No\-Long\-Attrs}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{category}}
\desc{initialised accessibility support for the \gloskey{name},
\gloskey{first}, \gloskey{firstplural}, \gloskey{text} and \gloskey{plural}
fields (if enabled with
\opt{accsupp}). This command is provided for abbreviation styles
where the \gloskey{name}, \gloskey{first} and \gloskey{text} are
just the formatted abbreviation}
}
% \glsxtrAccSuppAbbrSetFirstLongAttrs
\gcmd{gls\-xtr\-Acc\-Supp\-Abbr\-Set\-First\-Long\-Attrs}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{category}}
\desc{initialised accessibility support for the \gloskey{name},
\gloskey{text} and \gloskey{plural} fields (if enabled with
\opt{accsupp}). This command is provided for abbreviation styles
where the \gloskey{name} and \gloskey{text} are just the
formatted abbreviation}
}
% \glsxtrAccSuppAbbrSetTextShortAttrs
\gcmd{gls\-xtr\-Acc\-Supp\-Abbr\-Set\-Text\-Short\-Attrs}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{category}}
\desc{initialised accessibility support for the
\gloskey{text} and \gloskey{plural} fields (if enabled with
\opt{accsupp}). This command is provided for abbreviation styles
where the \gloskey{text} is just the
formatted abbreviation}
}
% \glsxtrAccSuppAbbrSetNameShortAttrs
\gcmd{gls\-xtr\-Acc\-Supp\-Abbr\-Set\-Name\-Short\-Attrs}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{category}}
\desc{initialised accessibility support for the
\gloskey{name} field (if enabled with
\opt{accsupp}). This command is provided for abbreviation styles
where only the \gloskey{name} is just the
formatted abbreviation}
}
% \glsxtrAccSuppAbbrSetNameLongAttrs
\gcmd{gls\-xtr\-Acc\-Supp\-Abbr\-Set\-Name\-Long\-Attrs}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{category}}
\desc{initialised accessibility support for the
\gloskey{first}, \gloskey{firstplural}, \gloskey{text} and \gloskey{plural}
fields (if enabled with
\opt{accsupp}). This command is provided for abbreviation styles
where the \gloskey{first} and \gloskey{text} are
just the formatted abbreviation}
}
% \glsxtrprovideaccsuppcmd
\gcmd{gls\-xtr\-provide\-acc\-supp\-cmd}
{
\providedby{\sty{glossaries-extra} v1.42+}
\note{requires \opt{accsupp}}
\syntax{\margm{category}\margm{field}}
\desc{defines \gls{glsxtrcategoryfieldaccsupp} to
\gls{glsshortaccsupp}, if not already defined}
}
% COMMANDS: ABBREVIATION STYLE USER COMMANDS
% \ifglsxtrinsertinside
\gcond{if\-gls\-xtr\-insert\-inside}
{
\providedby{\sty{glossaries-extra} v1.02}
\initvalcs{iffalse}
\desc{a conditional used by the predefined abbreviation styles to determine
whether the \meta{insert} part should go inside or outside of the style's font
formatting commands}
}
% \glsxtrinsertinsidetrue
\gcmd{gls\-xtr\-insert\-inside\-true}
{
\providedby{\sty{glossaries-extra} v1.02}
\desc{sets the \gls{ifglsxtrinsertinside} to true}
}
% \glsxtrinsertinsidefalse
\gcmd{gls\-xtr\-insert\-inside\-false}
{
\providedby{\sty{glossaries-extra} v1.02}
\desc{sets the \gls{ifglsxtrinsertinside} conditional to false}
}
% \glsxtrfullsep
\gcmd{gls\-xtr\-full\-sep}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{entry-label}}
\desc{Separator used by the parenthetical \idx{inlinefullform}
and also for some \idxpl{displayfullform}}
}
% \glsxtrparen
\gcmd{gls\-xtr\-paren}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{text}}
\desc{used to encapsulate \meta{text} in parentheses}
}
% \glsxtrlongshortname
\gcmd{gls\-xtr\-long\-short\-name}
{
\providedby{\sty{glossaries-extra} v1.25+}
\desc{expands to the name value for \abbrstyle{long-short} styles}
}
% \glsxtrlongshortdescsort
\gcmd{gls\-xtr\-long\-short\-desc\-sort}
{
\providedby{\sty{glossaries-extra} v1.04+}
\desc{expands to the sort value for \abbrstyle{long-short-desc} styles}
}
% \glsxtrlongshortdescname
\gcmd{gls\-xtr\-long\-short\-desc\-name}
{
\providedby{\sty{glossaries-extra} v1.17+}
\desc{expands to the name value for \abbrstyle{long-short-desc} styles}
}
% \glsxtrshortlongname
\gcmd{gls\-xtr\-short\-long\-name}
{
\providedby{\sty{glossaries-extra} v1.25+}
\desc{expands to the name value for \abbrstyle{short-long} styles}
}
% \glsxtrshortlongdescsort
\gcmd{gls\-xtr\-short\-long\-desc\-sort}
{
\providedby{\sty{glossaries-extra} v1.17+}
\desc{expands to the sort value for \abbrstyle{short-long-desc} styles}
}
% \glsxtrshortlongdescname
\gcmd{gls\-xtr\-short\-long\-desc\-name}
{
\providedby{\sty{glossaries-extra} v1.17+}
\desc{expands to the name value for \abbrstyle{short-long-desc} styles}
}
% \glsxtrshortnolongname
\gcmd{gls\-xtr\-short\-no\-long\-name}
{
\providedby{\sty{glossaries-extra} v1.25+}
\desc{expands to the name value for \abbrstyle{short-nolong} styles}
}
% \glsxtrlonghyphenshortsort
\gcmd{gls\-xtr\-long\-hyphen\-short\-sort}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{expands to the sort value for the \abbrstyle{long-hyphen-short-hyphen}
styles}
}
% \glsxtrshorthyphenlongsort
\gcmd{gls\-xtr\-short\-hyphen\-long\-sort}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{expands to the sort value for the \abbrstyle{short-hyphen-long-hyphen}
styles}
}
% \glsxtrlonghyphennoshortdescsort
\gcmd{gls\-xtr\-long\-hyphen\-no\-short\-desc\-sort}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{expands to the sort value for the \abbrstyle{long-hyphen-noshort-desc-noreg}
styles}
}
% \glsxtrlonghyphennoshortsort
\gcmd{gls\-xtr\-long\-hyphen\-no\-short\-sort}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{expands to the sort value for the \abbrstyle{long-hyphen-noshort-noreg}
styles}
}
% \glsxtruserparen
\gcmd{gls\-xtr\-user\-paren}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{text}\margm{entry-label}}
\desc{used by the \qt{user} abbreviation styles, such as
\abbrstyle{long-short-user}, to insert the
space separator (\gls{glsxtrfullsep}) followed by the parenthetical
material (\gls{glsxtrparen}) consisting of \meta{text} and, if set,
the value of the field given by \gls{glsxtruserfield}, separated by
\gls{glsxtruserparensep}}
\field{seealso}{GLSxtruserparen,glsxtruserparensep,glsxtruserfieldfmt}
}
% \GLSxtruserparen
\gcmd{GLS\-xtr\-user\-paren}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}\margm{entry-label}}
\desc{as \gls{glsxtruserparen} but the value of the field given
by \gls{glsxtruserfield} is converted to \idx{allcaps}. The
\meta{text} argument should already be in \idx{allcaps}}
}
% \glsxtruserparensep
\gcmd{gls\-xtr\-user\-paren\-sep}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{the separator used in the parenthetical content of
\gls{glsxtruserparen} and \gls{GLSxtruserparen}}
}
% \glsxtruserfieldfmt
\gcmd{gls\-xtr\-user\-field\-fmt}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}}
\desc{used to format the value of the field given by
\gls{glsxtruserfield} within \gls{glsxtruserparen} and \gls{GLSxtruserparen}}
}
% \glsxtruserfield
\gcmd{gls\-xtr\-user\-field}
{
\providedby{\sty{glossaries-extra} v1.04+}
\desc{expands to the \idxc{internalfieldlabel}{internal label}
of the field used to store additional information for the
\qt{user} abbreviation styles, such as \abbrstyle{long-short-user}}
}
% \glsxtruserlongshortformat
\gcmd{gls\-xtr\-user\-long\-short\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{used by styles like \abbrstyle{long-short-user} to format
the long and short form}
}
% \Glsxtruserlongshortformat
\gcmd{Gls\-xtr\-user\-long\-short\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtruserlongshortformat} but \idx{sentencecase}}
}
% \GLSxtruserlongshortformat
\gcmd{GLS\-xtr\-user\-long\-short\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtruserlongshortformat} but \idx{allcaps}}
}
% \glsxtruserlongshortplformat
\gcmd{gls\-xtr\-user\-long\-short\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{used by styles like \abbrstyle{long-short-user} to format
the plural long and plural short form}
}
% \Glsxtruserlongshortplformat
\gcmd{Gls\-xtr\-user\-long\-short\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtruserlongshortplformat} but \idx{sentencecase}}
}
% \GLSxtruserlongshortplformat
\gcmd{GLS\-xtr\-user\-long\-short\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtruserlongshortplformat} but \idx{allcaps}}
}
% \glsxtrusershortlongformat
\gcmd{gls\-xtr\-user\-short\-long\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{used by styles like \abbrstyle{short-long-user} to format
the short and long form}
}
% \Glsxtrusershortlongformat
\gcmd{Gls\-xtr\-user\-short\-long\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtrusershortlongformat} but \idx{sentencecase}}
}
% \GLSxtrusershortlongformat
\gcmd{GLS\-xtr\-user\-short\-long\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtrusershortlongformat} but \idx{allcaps}}
}
% \glsxtrusershortlongplformat
\gcmd{gls\-xtr\-user\-short\-long\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{used by styles like \abbrstyle{short-long-user} to format
the plural short and plural long form}
}
% \Glsxtrusershortlongplformat
\gcmd{Gls\-xtr\-user\-short\-long\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtrusershortlongplformat} but \idx{sentencecase}}
}
% \GLSxtrusershortlongplformat
\gcmd{GLS\-xtr\-user\-short\-long\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}\margm{long-fmt-cs}\margm{short-fmt-cs}}
\desc{as \gls{glsxtrusershortlongplformat} but \idx{allcaps}}
}
% \glsxtrusershortformat
\gcmd{gls\-xtr\-user\-short\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{fmt-cs}}
\desc{formats the singular short form in parentheses
(with \gls{glsxtruserparen}) in styles like \abbrstyle{long-short-user}}
}
% \GLSxtrusershortformat
\gcmd{GLS\-xtr\-user\-short\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{fmt-cs}}
\desc{as \gls{glsxtrusershortformat} but \idx{allcaps}}
}
% \glsxtrusershortplformat
\gcmd{gls\-xtr\-user\-short\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{fmt-cs}}
\desc{formats the plural short form in parentheses
(with \gls{glsxtruserparen}) in styles like \abbrstyle{long-short-user}}
}
% \GLSxtrusershortplformat
\gcmd{GLS\-xtr\-user\-short\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{fmt-cs}}
\desc{as \gls{glsxtrusershortplformat} but \idx{allcaps}}
}
% \glsxtrpostusershortformat
\gcmd{gls\-xtr\-post\-user\-short\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{fmt-cs}}
\desc{formats the short form in parentheses
(with \gls{glsxtruserparen}) in styles like \abbrstyle{long-postshort-user}}
}
% \glsxtruserlongformat
\gcmd{gls\-xtr\-user\-long\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{fmt-cs}}
\desc{formats the singular long form in parentheses
(with \gls{glsxtruserparen}) in styles like \abbrstyle{short-long-user}}
}
% \glsxtruserlongplformat
\gcmd{gls\-xtr\-user\-long\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{fmt-cs}}
\desc{formats the plural long form in parentheses
(with \gls{glsxtruserparen}) in styles like \abbrstyle{short-long-user}}
}
% \GLSxtruserlongformat
\gcmd{GLS\-xtr\-user\-long\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{fmt-cs}}
\desc{as \gls{glsxtruserlongformat} but \idx{allcaps}}
}
% \GLSxtruserlongplformat
\gcmd{GLS\-xtr\-user\-long\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{fmt-cs}}
\desc{as \gls{glsxtruserlongplformat} but \idx{allcaps}}
}
% \glsxtrpostuserlongformat
\gcmd{gls\-xtr\-post\-user\-long\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{fmt-cs}}
\desc{formats the long form in parentheses
(with \gls{glsxtruserparen}) in styles like \abbrstyle{short-postlong-user}}
}
% \glsxtrfootnotelongformat
\gcmd{gls\-xtr\-foot\-note\-long\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{fmt-cs}}
\desc{used in the footnote text to format the singular long form}
}
% \glsxtrfootnotelongplformat
\gcmd{gls\-xtr\-foot\-note\-long\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{fmt-cs}}
\desc{used in the footnote text to format the plural long form}
}
% \glsxtrpostfootnotelongformat
\gcmd{gls\-xtr\-post\-foot\-note\-long\-format}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{fmt-cs}}
\desc{used in the footnote text to format the long form
for styles like \abbrstyle{short-postfootnote}}
}
% \glsabbrvdefaultfont
\gcmd{gls\-abbrv\-default\-font}
{
%\providedby{\sty{glossaries-extra} v0.3+}
\syntax{\margm{text}}
\desc{formatting command for the short form
used by the abbreviation styles that don't apply a font change
by default}
}
% \glsfirstabbrvdefaultfont
\gcmd{gls\-first\-abbrv\-default\-font}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{text}}
\desc{formatting command for the short form on \idx{firstuse}
used by the abbreviation styles that don't apply a font change
by default}
}
% \glsfirstinnerfmtabbrvfont
\gcmd{gls\-first\-inner\-fmt\-abbrv\-font}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}}
\desc{applies both \gls{glsfirstabbrvfont} and
\gls{glsxtrgenentrytextfmt} to \meta{text}}
}
% \glsfirstxpabbrvfont
\gcmd{gls\-first\-xp\-abbrv\-font}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}\margm{category}}
\desc{if the \catattr{markshortwords} attribute is set for the
given category, this encapsulates \meta{text} with
\gls{glsfirstabbrvfont} otherwise with
\gls{glsfirstinnerfmtabbrvfont}. This command has to expand, so
protect any content that shouldn't expand}
}
% \glsxpabbrvfont
\gcmd{gls\-xp\-abbrv\-font}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}\margm{category}}
\desc{if the \catattr{markshortwords} attribute is set for the
given category, this encapsulates \meta{text} with
\gls{glsabbrvfont} otherwise with
\gls{glsinnerfmtabbrvfont}. This command has to expand, so
protect any content that shouldn't expand}
}
% \glsfirstlongdefaultfont
\gcmd{gls\-first\-long\-default\-font}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{text}}
\desc{formatting command for the long form on \idx{firstuse}
used by the abbreviation styles that don't apply a font change
by default}
}
% \glslongdefaultfont
\gcmd{gls\-long\-default\-font}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{text}}
\desc{formatting command for the long form
used by the abbreviation styles that don't apply a font change
by default}
}
% \glslongfootnotefont
\gcmd{gls\-long\-foot\-note\-font}
{
\providedby{\sty{glossaries-extra} v1.05+}
\syntax{\margm{text}}
\desc{formatting command for the long form
used by the footnote abbreviation styles}
}
% \glsfirstlongfootnotefont
\gcmd{gls\-first\-long\-foot\-note\-font}
{
\providedby{\sty{glossaries-extra} v1.05+}
\syntax{\margm{text}}
\desc{formatting command for the \idx{firstuse} long form
used by the footnote abbreviation styles}
}
% \glsxtrabbrvfootnote
\gcmd{gls\-xtr\-abbrv\-foot\-note}
{
\providedby{\sty{glossaries-extra} v1.07+}
\syntax{\margm{entry-label}\margm{text}}
\desc{command that produces the footnote for the footnote
abbreviation styles, such as \abbrstyle{short-footnote}
and \abbrstyle{short-postfootnote}}
}
% \glsxtrpostabbrvfootnote
\gcmd{gls\-xtr\-post\-abbrv\-foot\-note}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{fmt-code}}
\desc{command used in the \idx{postlinkhook} for styles like
\abbrstyle{short-postfootnote}}
}
% \xpglsxtrpostabbrvfootnote
\gcmd{xp\-gls\-xtr\-post\-abbrv\-foot\-note}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{expands to the footnote code required for styles like
\abbrstyle{short-postfootnote}}
}
% \glsxtrfootnotename
\gcmd{gls\-xtr\-foot\-note\-name}
{
\providedby{\sty{glossaries-extra} v1.25+}
\desc{expands to the name value for styles like \abbrstyle{short-footnote}}
}
% \glsxtrfootnotedescname
\gcmd{gls\-xtr\-foot\-note\-desc\-name}
{
\providedby{\sty{glossaries-extra} v1.42+}
\desc{expands to the name value for styles like
\abbrstyle{short-footnote-desc}}
}
% \glsxtrfootnotedescsort
\gcmd{gls\-xtr\-foot\-note\-desc\-sort}
{
\providedby{\sty{glossaries-extra} v1.42+}
\desc{expands to the sort value for styles like
\abbrstyle{short-footnote-desc}}
}
% \glsxtrshortdescname
\gcmd{gls\-xtr\-short\-desc\-name}
{
\providedby{\sty{glossaries-extra} v1.17+}
\desc{expands to the name value for styles like
\abbrstyle{short-nolong-desc}}
}
% \glsxtrlongnoshortdescname
\gcmd{gls\-xtr\-long\-no\-short\-desc\-name}
{
\providedby{\sty{glossaries-extra} v1.25+}
\desc{expands to the name value for styles like
\abbrstyle{long-noshort-desc}}
}
% \glsxtrlongnoshortname
\gcmd{gls\-xtr\-long\-no\-short\-name}
{
\providedby{\sty{glossaries-extra} v1.25+}
\desc{expands to the name value for styles like \abbrstyle{long-noshort}}
}
% \glsxtrscfont
\gcmd{gls\-xtr\-sc\-font}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{text}}
\desc{maintained for backwards-compatibility used to typeset
\meta{text} in small capitals (\gls{textsc}) for the \qt{sc}
abbreviation styles}
}
% \glsxtrfirstscfont
\gcmd{gls\-xtr\-first\-sc\-font}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{text}}
\desc{maintained for backwards-compatibility used to typeset
\meta{text} in small capitals (\gls{textsc}) for the \qt{sc}
abbreviation styles on \idx{firstuse}}
}
% \glsabbrvscfont
\gcmd{gls\-abbrv\-sc\-font}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{text}}
\desc{short form font used by the \idx{smallcaps} \qt{sc} abbreviation styles}
}
% \glsfirstabbrvscfont
\gcmd{gls\-first\-abbrv\-sc\-font}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{text}}
\desc{short form font used by the \idx{smallcaps} \qt{sc} abbreviation
styles on \idx{firstuse}}
}
% \glsabbrvscuserfont
\gcmd{gls\-abbrv\-sc\-user\-font}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{text}}
\desc{short form font used by the \idx{smallcaps} \qt{sc-user} abbreviation styles}
}
% \glsfirstabbrvscuserfont
\gcmd{gls\-first\-abbrv\-sc\-user\-font}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{text}}
\desc{short form font used by the \idx{smallcaps} \qt{sc-user} abbreviation
styles on \idx{firstuse}}
}
% \glstextup
\gcmd{gls\-text\-up}
{
\providedby{\sty{glossaries} v3.09a+}
\syntax{\margm{text}}
\desc{counteracts the effect of \gls{textsc}}
}
% \glsxtrsmfont
\gcmd{gls\-xtr\-sm\-font}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{text}}
\desc{maintained for backwards-compatibility used to typeset
\meta{text} in a smaller font (\gls{textsmaller}) for the \qt{sm}
abbreviation styles}
}
% \glsxtrfirstsmfont
\gcmd{gls\-xtr\-first\-sm\-font}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{text}}
\desc{maintained for backwards-compatibility used to typeset
\meta{text} in a smaller font (\gls{textsmaller}) for the \qt{sm}
abbreviation styles on \idx{firstuse}}
}
% \glsabbrvsmfont
\gcmd{gls\-abbrv\-sm\-font}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{text}}
\desc{short form font used by the \qt{sm} abbreviation styles}
}
% \glsfirstabbrvsmfont
\gcmd{gls\-first\-abbrv\-sm\-font}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{text}}
\desc{short form font used by the \qt{sm} abbreviation styles on \idx{firstuse}}
}
% \glsabbrvemfont
\gcmd{gls\-abbrv\-em\-font}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{text}}
\desc{short form font used by the \qt{em} abbreviation styles}
}
% \glsfirstabbrvemfont
\gcmd{gls\-first\-abbrv\-em\-font}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{text}}
\desc{short form font used by the \qt{em} abbreviation styles on \idx{firstuse}}
}
% \glslongemfont
\gcmd{gls\-long\-em\-font}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{text}}
\desc{long form font used by the \qt{em} abbreviation styles}
}
% \glsfirstlongemfont
\gcmd{gls\-first\-long\-em\-font}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{text}}
\desc{long form font used by the \qt{em} abbreviation styles on \idx{firstuse}}
}
% \glsabbrvuserfont
\gcmd{gls\-abbrv\-user\-font}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{text}}
\desc{short form font used by the \qt{user} abbreviation styles}
}
% \glsfirstabbrvuserfont
\gcmd{gls\-first\-abbrv\-user\-font}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{text}}
\desc{short form font used by the \qt{user} abbreviation styles on \idx{firstuse}}
}
% \glslonguserfont
\gcmd{gls\-long\-user\-font}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{text}}
\desc{long form font used by the \qt{user} abbreviation styles}
}
% \glsfirstlonguserfont
\gcmd{gls\-first\-long\-user\-font}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{text}}
\desc{long form font used by the \qt{user} abbreviation styles on \idx{firstuse}}
}
% \glsuserdescription
\gcmd{gls\-user\-description}
{
\providedby{\sty{glossaries-extra} v1.30+}
\syntax{\margm{text}\margm{entry-label}}
\desc{description encapsulator for styles like
\abbrstyle{long-short-user}}
}
% \glsxtrlongshortscusername
\gcmd{gls\-xtr\-long\-short\-sc\-user\-name}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{expands to the value for the \gloskey{name} key for
styles like \abbrstyle{long-postshort-sc-user}}
}
% \glsxtrlongshortuserdescname
\gcmd{gls\-xtr\-long\-short\-user\-desc\-name}
{
\providedby{\sty{glossaries-extra} v1.25+}
\desc{expands to the value for the \gloskey{name} key for
styles like \abbrstyle{long-short-user-desc}}
}
% \glsxtrlongshortscuserdescname
\gcmd{gls\-xtr\-long\-short\-sc\-user\-desc\-name}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{expands to the value for the \gloskey{name} key for
styles like \abbrstyle{long-postshort-sc-user-desc}}
}
% \glsxtrshortlonguserdescname
\gcmd{gls\-xtr\-short\-long\-user\-desc\-name}
{
\providedby{\sty{glossaries-extra} v1.25+}
\desc{expands to the value for the \gloskey{name} key for
styles like \abbrstyle{short-long-user-desc}}
}
% \glsxtrifhyphenstart
\gcmd{gls\-xtr\-if\-hyphen\-start}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{text}\margm{true}\margm{false}}
\desc{if \meta{text} starts with a hyphen this does \meta{true}
otherwise it does \meta{false}}
}
% \glsxtrlonghyphenshort
\gcmd{gls\-xtr\-long\-hyphen\-short}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{entry-label}\margm{long}\margm{short}\margm{insert}}
\desc{formats the long and short form according to the
\abbrstyle{long-hyphen-short-hyphen} style}
}
% \GLSxtrlonghyphenshort
\gcmd{GLS\-xtr\-long\-hyphen\-short}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{long}\margm{short}\margm{insert}}
\desc{as \gls{glsxtrlonghyphenshort} but converts \meta{insert}
to \idx{allcaps}. The \meta{long} and \meta{short} arguments
should be supplied as \idx{allcaps}}
}
% \glsxtrlonghyphennoshort
\gcmd{gls\-xtr\-long\-hyphen\-noshort}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{entry-label}\margm{long}\margm{insert}}
\desc{formats the long form according to the
\abbrstyle{long-hyphen-noshort-desc-noreg} style}
}
% \GLSxtrlonghyphennoshort
\gcmd{GLS\-xtr\-long\-hyphen\-noshort}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{long}\margm{insert}}
\desc{as \gls{glsxtrlonghyphennoshort} but converts
\meta{insert} to \idx{allcaps} The \meta{long} argument
should be supplied as \idx{allcaps}}
}
% \glsxtrlonghyphen
\gcmd{gls\-xtr\-long\-hyphen}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{entry-label}\margm{long}\margm{insert}}
\desc{formats the long form according to the
\abbrstyle{long-hyphen-postshort-hyphen} style}
}
% \xpglsxtrposthyphenshort
\gcmd{xp\-gls\-xtr\-post\-hyphen\-short}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{used within the \idx{postlinkhook} for the
\abbrstyle{long-hyphen-postshort-hyphen} style on
\idx{firstuse}. This expands the placeholder commands and uses
either \gls{glsxtrposthyphenshort} or \gls{GLSxtrposthyphenshort}}
}
% \glsxtrposthyphenshort
\gcmd{gls\-xtr\-post\-hyphen\-short}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{used within the \idx{postlinkhook} to format the short form according to the
\abbrstyle{long-hyphen-postshort-hyphen} style on \idx{firstuse}}
}
% \GLSxtrposthyphenshort
\gcmd{GLS\-xtr\-post\-hyphen\-short}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{as \gls{glsxtrposthyphenshort} but \idx{allcaps}}
}
% \glsxtrposthyphenshortpl
\gcmd{gls\-xtr\-post\-hyphen\-short\-pl}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{as \gls{glsxtrposthyphenshort} but plural}
}
% \GLSxtrposthyphenshortpl
\gcmd{GLS\-xtr\-post\-hyphen\-short\-pl}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{as \gls{glsxtrposthyphenshortpl} but \idx{allcaps}}
}
% \glsxtrposthyphensubsequent
\gcmd{gls\-xtr\-post\-hyphen\-sub\-sequent}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{used within the \idx{postlinkhook} to format the insert according to the
\abbrstyle{long-hyphen-postshort-hyphen} style on
\idx{subsequentuse}}
}
% \GLSxtrposthyphensubsequent
\gcmd{GLS\-xtr\-post\-hyphen\-sub\-sequent}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{as \gls{glsxtrposthyphensubsequent} but \idx{allcaps}}
}
% \xpglsxtrposthyphensubsequent
\gcmd{xp\-gls\-xtr\-post\-hyphen\-subsequent}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{used within the \idx{postlinkhook} for the
\abbrstyle{long-hyphen-postshort-hyphen} style on
\idx{subsequentuse}. This expands the placeholder commands and uses
either \gls{glsxtrposthyphensubsequent} or
\gls{GLSxtrposthyphensubsequent}}
}
% \glsxtrshorthyphenlong
\gcmd{gls\-xtr\-short\-hyphen\-long}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{entry-label}\margm{short}\margm{long}\margm{insert}}
\desc{formats the short and long form according to the
\abbrstyle{short-hyphen-long-hyphen} style}
}
% \GLSxtrshorthyphenlong
\gcmd{GLS\-xtr\-short\-hyphen\-long}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{short}\margm{long}\margm{insert}}
\desc{as \gls{glsxtrshorthyphenlong} but \meta{insert} is
converted to \idx{allcaps}}
}
% \glsxtrshorthyphen
\gcmd{gls\-xtr\-short\-hyphen}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{short}\margm{entry-label}\margm{insert}}
\desc{formats the short form according to the
\abbrstyle{short-hyphen-postlong-hyphen} style}
}
% \glsxtrposthyphenlong
\gcmd{gls\-xtr\-post\-hyphen\-long}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{used within the \idx{postlinkhook} to format the long form according to the
\abbrstyle{short-hyphen-postlong-hyphen} style on \idx{firstuse}}
}
% \GLSxtrposthyphenlong
\gcmd{GLS\-xtr\-post\-hyphen\-long}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{as \gls{glsxtrposthyphenlong} but \idx{allcaps}}
}
% \xpglsxtrposthyphenlong
\gcmd{xp\-gls\-xtr\-post\-hyphen\-long}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{used within the \idx{postlinkhook} for the
\abbrstyle{short-hyphen-postlong-hyphen} style on
\idx{firstuse}. This expands the placeholder commands and uses
either \gls{glsxtrposthyphenlong} or \gls{GLSxtrposthyphenlong}}
}
% \glsxtrposthyphenlongpl
\gcmd{gls\-xtr\-post\-hyphen\-long\-pl}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{as \gls{glsxtrposthyphenlong} but shows the plural}
}
% \GLSxtrposthyphenlongpl
\gcmd{GLS\-xtr\-post\-hyphen\-long\-pl}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{as \gls{glsxtrposthyphenlongpl} but \idx{allcaps}}
}
% \glsabbrvhyphenfont
\gcmd{gls\-abbrv\-hyphen\-font}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{text}}
\desc{short form font used by the \qt{hyphen} abbreviation styles}
}
% \glsfirstabbrvhyphenfont
\gcmd{gls\-first\-abbrv\-hyphen\-font}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{text}}
\desc{short form font used by the \qt{hyphen} abbreviation
styles on \idx{firstuse}}
}
% \glslonghyphenfont
\gcmd{gls\-long\-hyphen\-font}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{text}}
\desc{long form font used by the \qt{hyphen} abbreviation styles}
}
% \glsfirstlonghyphenfont
\gcmd{gls\-first\-long\-hyphen\-font}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{text}}
\desc{long form font used by the \qt{hyphen} abbreviation
styles on \idx{firstuse}}
}
% \glsabbrvonlyfont
\gcmd{gls\-abbrv\-only\-font}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{text}}
\desc{short form font used by the \qt{only} abbreviation styles}
}
% \glsfirstabbrvonlyfont
\gcmd{gls\-first\-abbrv\-only\-font}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{text}}
\desc{short form font used by the \qt{only} abbreviation
styles on \idx{firstuse}}
}
% \glslongonlyfont
\gcmd{gls\-long\-only\-font}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{text}}
\desc{long form font used by the \qt{only} abbreviation styles}
}
% \glsfirstlongonlyfont
\gcmd{gls\-first\-long\-only\-font}
{
\providedby{\sty{glossaries-extra} v1.17+}
\syntax{\margm{text}}
\desc{long form font used by the \qt{only} abbreviation
styles on \idx{firstuse}}
}
% \glsxtronlyname
\gcmd{gls\-xtr\-only\-name}
{
\providedby{\sty{glossaries-extra} v1.25+}
\desc{expands to the name value for styles like
\abbrstyle{long-only-short-only}}
}
% \glsxtronlydescname
\gcmd{gls\-xtr\-only\-desc\-name}
{
\providedby{\sty{glossaries-extra} v1.17+}
\desc{expands to the name value for styles like
\abbrstyle{long-only-short-only-desc}}
}
% \glsxtronlydescsort
\gcmd{gls\-xtr\-only\-desc\-sort}
{
\providedby{\sty{glossaries-extra} v1.17+}
\desc{expands to the name value for styles like
\abbrstyle{long-only-short-only-desc}}
}
% \glsabbrvsconlyfont
\gcmd{gls\-abbrv\-sc\-only\-font}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{text}}
\desc{short form font used by the \qt{sc-only} styles, such as
\abbrstyle{long-only-short-sc-only}}
}
% \glsfirstabbrvsconlyfont
\gcmd{gls\-first\-abbrv\-sc\-only\-font}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{text}}
\desc{short form font used by the \qt{sc-only} abbreviation
styles on \idx{firstuse}}
}
% \glsxtrsconlyname
\gcmd{gls\-xtr\-sc\-only\-name}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{expands to the name value for styles like
\abbrstyle{long-only-short-sc-only}}
}
% \glsxtrsconlydescsort
\gcmd{gls\-xtr\-sc\-only\-desc\-sort}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{expands to the sort value for styles like
\abbrstyle{long-only-short-sc-only-desc}}
}
% \glsxtrsconlydescname
\gcmd{gls\-xtr\-sc\-only\-desc\-name}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{expands to the name value for styles like
\abbrstyle{long-only-short-sc-only-desc}}
}
% \glsfirstinnerfmtlongfont
\gcmd{gls\-first\-inner\-fmt\-long\-font}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}}
\desc{applies both \gls{glsfirstlongfont} and
\gls{glsxtrgenentrytextfmt} to \meta{text}}
}
% \glsinnerfmtlongfont
\gcmd{gls\-inner\-fmt\-long\-font}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}}
\desc{applies both \gls{glslongfont} and
\gls{glsxtrgenentrytextfmt} to \meta{text}}
}
% \glsfirstxplongfont
\gcmd{gls\-first\-xp\-long\-font}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{category}\margm{text}}
\desc{if the \catattr{markwords} attribute is set for the
given category, this encapsulates \meta{text} with
\gls{glsfirstlongfont} otherwise with
\gls{glsinnerfmtlongfont}. This command has to expand, so
protect any content that shouldn't expand}
}
% \glsxplongfont
\gcmd{gls\-xp\-long\-font}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{category}\margm{text}}
\desc{if the \catattr{markwords} attribute is set for the
given category, this encapsulates \meta{text} with
\gls{glslongfont} otherwise with
\gls{glsinnerfmtlongfont}. This command has to expand, so
protect any content that shouldn't expand}
}
% \glsxtr<category><field>accsupp
\gcmdmetameta{gls\-xtr}{category}{}{field}{acc\-supp}
{%
\note{user defined}
\desc{expands to the accessibility support command for the given
\idx{internalfieldlabel} and category, which is used by \gls{glsfieldaccsupp}}
}
% \glsfieldaccsupp
\gcmd{gls\-field\-acc\-supp}
{
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\margm{replacement}\margm{content}\margm{field}\margm{entry-label}}
\desc{if \sty{glossaries-extra} has been loaded, this command
will first check for the existence of the command
\gls{glsxtrcategoryfieldaccsupp}. If that command doesn't
exist or if \sty{glossaries-extra} hasn't been loaded, it then
checks for the existence of \csmetafmt{gls}{field}{accsupp} (for
example, \gls{glsshortaccsupp}).
Failing that it will use \gls{glsaccsupp}. Whichever command is
found first, \code{\meta{cs}\margm{replacement}\margm{content}}
is performed.}
}
% \glsaccsupp
\gcmd{gls\-acc\-supp}
{
\providedby{\sty{glossaries-accsupp}}
\syntax{\margm{replacement}\margm{content}}
\desc{applies \meta{replacement} as the ActualText for
\meta{content} using \gls{glsaccessibility}}
}
% \glsshortaccsupp
\gcmd{gls\-short\-acc\-supp}
{
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\margm{replacement}\margm{content}}
\desc{applies \meta{replacement} as the expansion (E) attribute for
\meta{content} using \gls{glsaccessibility}}
}
% \glsaccessibility
\gcmd{gls\-ac\-ces\-si\-bil\-ity}
{
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\oargm{options}\margm{PDF element}\margm{value}\margm{content}}
\desc{applies \meta{value} as the accessibility attribute
\meta{PDF element} for the given \meta{content}. This
internally uses the accessibility support provided by \sty{accsupp}}
}
%
% ABBREVIATION STYLES
\gidxpl{abbrvstyle}%
{%
\common
\field{text}{abbreviation style}%
\desc{abbreviations defined using \gls{newabbreviation} will
follow the style associated with the entry's category. If there
is no style associated with the entry's category, the style for
the \cat{abbreviation} category is used (the default is
\abbrstyle{long-short}). Note that
\sty{glossaries-extra} redefines \gls{newacronym} to use
\gls{newabbreviation} with \code{\gloskey{category}\dequals\cat{acronym}}
so any entry defined with \gls{newacronym} will use the
abbreviation style for the \cat{acronym} category (the
default is \abbrstyle{short-nolong})}
}
% long-short
\gabbrsty{long\dhyphen short}%
{%
\desc{an \idx{abbrvstyle} that shows the long form followed by the
short form on \idx{firstuse}. If the \meta{insert} argument is
used with the \idx{glslike} or \idx{glstextlike} commands, it will
be placed after the long form on \idx{firstuse}. On
\idx{subsequentuse}, only the short form is shown (followed by
\meta{insert}, if provided). This style sets the
\catattr{regular} attribute to \code{false} (which means that
the \idx{glslike} commands won't use the
\gloskey{first}\slash\gloskey{firstplural} or
\gloskey{text}\slash\gloskey{plural} values)}
}
% long-short-desc
\gabbrsty{long\dhyphen short\dhyphen desc}%
{%
\desc{as \abbrstyle{long-short} but the \gloskey{description}
must be supplied in \meta{options}}
}
% short-long
\gabbrsty{short\dhyphen long}%
{%
\desc{an \idx{abbrvstyle} that shows the short form followed by the
long form on \idx{firstuse}. If the \meta{insert} argument is
used with the \idx{glslike} or \idx{glstextlike} commands, it will
be placed after the short form on \idx{firstuse}. On
\idx{subsequentuse}, only the short form is shown (followed by
\meta{insert}, if provided). This style sets the
\catattr{regular} attribute to \code{false} (which means that
the \idx{glslike} commands won't use the
\gloskey{first}\slash\gloskey{firstplural} or
\gloskey{text}\slash\gloskey{plural} values)}
}
% short-long-desc
\gabbrsty{short\dhyphen long\dhyphen desc}%
{%
\desc{as \abbrstyle{short-long} but the \gloskey{description}
must be supplied in \meta{options}}
}
% short-nolong
\gabbrsty{short\dhyphen nolong}%
{%
\desc{an \idx{abbrvstyle} that only shows the short form on
\idx{firstuse} and \idx{subsequentuse}. The long form won't be
showed unless you use a command like \gls{glsxtrlong}. The full
form will only be shown with commands like \gls{glsxtrfull}.
This style sets the \catattr{regular} attribute to \code{true}}
}
% short
\gabbrstyalias{short}{short-nolong}
% short-nolong-desc
\gabbrsty{short\dhyphen nolong\dhyphen desc}%
{%
\desc{as \abbrstyle{short-nolong} but the \gloskey{description}
must be supplied in \meta{options}}
}
% short-desc
\gabbrstyalias{short\dhyphen desc}{short-nolong-desc}
% short-nolong-noreg
\gabbrsty{short\dhyphen nolong\dhyphen noreg}%
{%
\desc{as \abbrstyle{short-nolong} but it will set the
\catattr{regular} attribute to \code{false}}
}
% short-nolong-desc-noreg
\gabbrsty{short\dhyphen nolong\dhyphen desc\dhyphen noreg}%
{%
\desc{as \abbrstyle{short-nolong-desc} but it will set the
\catattr{regular} attribute to \code{false}}
}
% short-sc-nolong
\gabbrsty{short\dhyphen sc\dhyphen nolong}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-nolong} but
formats the short form in a small caps font (\gls{textsc}).
The short form should therefore be in lowercase}
}
% short-sc
\gabbrstyalias{short\dhyphen sc}{short-sc-nolong}
% short-sc-nolong-desc
\gabbrsty{short\dhyphen sc\dhyphen nolong\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-nolong-desc} but
formats the short form in a small caps font (\gls{textsc}).
The short form should therefore be in lowercase}
}
% short-sc-desc
\gabbrstyalias{short\dhyphen sc\dhyphen desc}{short-sc-nolong-desc}
% nolong-short
\gabbrsty{nolong\dhyphen short}%
{%
\desc{as \abbrstyle{short-nolong} but the \idx{inlinefullform}
shows the long form followed by the short form in parentheses}
}
% nolong-short-noreg
\gabbrsty{nolong\dhyphen short\dhyphen noreg}%
{%
\desc{as \abbrstyle{nolong-short} but it will set the
\catattr{regular} attribute to \code{false}}
}
% nolong-short-sc
\gabbrsty{nolong\dhyphen short\dhyphen sc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{nolong-short} but
formats the short form in a small caps font (\gls{textsc}).
The short form should therefore be in lowercase}
}
% long-noshort
\gabbrsty{long\dhyphen noshort}%
{%
\desc{an \idx{abbrvstyle} that only shows the long form on
\idx{firstuse} and \idx{subsequentuse}. The short form won't be
showed unless you use a command like \gls{glsxtrshort}. The full
form will only be shown with commands like \gls{glsxtrfull}.
This style sets the \catattr{regular} attribute to \code{true}}
}
% long
\gabbrstyalias{long}{long-noshort}
% long-noshort-desc
\gabbrsty{long\dhyphen noshort\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} that only shows the long form on
\idx{firstuse} and \idx{subsequentuse}. The short form won't be
showed unless you use a command like \gls{glsxtrshort}. The
\gloskey{description} key must be supplied. The full
form will only be shown with commands like \gls{glsxtrfull}.
This style sets the \catattr{regular} attribute to \code{true}}
}
% long-desc
\gabbrstyalias{long-desc}{long-noshort-desc}
% long-noshort-desc-noreg
\gabbrsty{long\dhyphen noshort\dhyphen desc\dhyphen noreg}%
{%
\desc{as \abbrstyle{long-noshort-desc} but it will set the
\catattr{regular} attribute to \code{false}}
}
% long-noshort-noreg
\gabbrsty{long\dhyphen noshort\dhyphen noreg}%
{%
\desc{as \abbrstyle{long-noshort} but it will set the
\catattr{regular} attribute to \code{false}}
}
% long-noshort-sc
\gabbrsty{long\dhyphen noshort\dhyphen sc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-noshort} but
formats the short form in a small caps font (\gls{textsc}).
The short form should therefore be in lowercase}
}
% long-noshort-sc-desc
\gabbrsty{long\dhyphen noshort\dhyphen sc\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-noshort-desc} but
formats the short form in a small caps font (\gls{textsc}).
The short form should therefore be in lowercase}
}
% long-short-sc
\gabbrsty{long\dhyphen short\dhyphen sc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-short} but
formats the short form in a small caps font (\gls{textsc}).
The short form should therefore be in lowercase}
}
% long-short-sc-desc
\gabbrsty{long\dhyphen short\dhyphen sc\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-short-desc} but
formats the short form in a small caps font (\gls{textsc}).
The short form should therefore be in lowercase}
}
% short-sc-long
\gabbrsty{short\dhyphen sc\dhyphen long}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-long} but
formats the short form in a small caps font (\gls{textsc}).
The short form should therefore be in lowercase}
}
% short-sc-long-desc
\gabbrsty{short\dhyphen sc\dhyphen long\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-long-desc} but
formats the short form in a small caps font (\gls{textsc}).
The short form should therefore be in lowercase}
}
% long-short-sm
\gabbrsty{long\dhyphen short\dhyphen sm}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-short} but
formats the short form in a smaller font (\gls{textsmaller}).
The \sty{relsize} package is must be loaded}
}
% long-short-sm-desc
\gabbrsty{long\dhyphen short\dhyphen sm\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-short-desc} but
formats the short form in a smaller font (\gls{textsmaller}).
The \sty{relsize} package is must be loaded}
}
% long-short-em
\gabbrsty{long\dhyphen short\dhyphen em}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-short} but
formats the short form in an emphasized font (\gls{emph})}
}
% long-short-em-desc
\gabbrsty{long\dhyphen short\dhyphen em\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-short-desc} but
formats the short form in an emphasized font (\gls{emph})}
}
% long-em-short-em
\gabbrsty{long\dhyphen em\dhyphen short\dhyphen em}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-short} but
formats both the long and short form in an emphasized font (\gls{emph})}
}
% long-em-short-em-desc
\gabbrsty{long\dhyphen em\dhyphen short\dhyphen em\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-short-desc} but
formats both the long and short form in an emphasized font (\gls{emph})}
}
% short-sm-long
\gabbrsty{short\dhyphen sm\dhyphen long}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-long} but
formats the short form in a smaller font (\gls{textsmaller}).
The \sty{relsize} package is must be loaded}
}
% short-sm-long-desc
\gabbrsty{short\dhyphen sm\dhyphen long\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-long-desc} but
formats the short form in a smaller font (\gls{textsmaller}).
The \sty{relsize} package is must be loaded}
}
% short-sm-nolong
\gabbrsty{short\dhyphen sm\dhyphen nolong}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-nolong} but
formats the short form in a smaller font (\gls{textsmaller}).
The \sty{relsize} package is must be loaded}
}
% short-sm
\gabbrstyalias{short\dhyphen sm}{short-sm-nolong}
% short-sm-nolong-desc
\gabbrsty{short\dhyphen sm\dhyphen nolong\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-nolong-desc} but
formats the short form in a smaller font (\gls{textsmaller}).
The \sty{relsize} package is must be loaded}
}
% short-sm-desc
\gabbrstyalias{short\dhyphen sm\dhyphen desc}{short-sm-nolong-desc}
% nolong-short-sm
\gabbrsty{nolong\dhyphen short\dhyphen sm}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{nolong-short} but
formats the short form in a smaller font (\gls{textsmaller}).
The \sty{relsize} package is must be loaded}
}
% long-noshort-sm
\gabbrsty{long\dhyphen noshort\dhyphen sm}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-noshort} but
formats the short form in a smaller font (\gls{textsmaller}).
The \sty{relsize} package is must be loaded}
}
% long-noshort-sm-desc
\gabbrsty{long\dhyphen noshort\dhyphen sm\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-noshort-desc} but
formats the short form in a smaller font (\gls{textsmaller}).
The \sty{relsize} package is must be loaded}
}
% short-em-long
\gabbrsty{short\dhyphen em\dhyphen long}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-long} but
formats the short form in an emphasized font (\gls{emph})}
}
% short-em-long-desc
\gabbrsty{short\dhyphen em\dhyphen long\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-long-desc} but
formats the short form in an emphasized font (\gls{emph})}
}
% short-em-long-em
\gabbrsty{short\dhyphen em\dhyphen long\dhyphen em}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-long} but
formats both the long and short form in an emphasized font (\gls{emph})}
}
% short-em-long-em-desc
\gabbrsty{short\dhyphen em\dhyphen long\dhyphen em\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-long-desc} but
formats both the long and short form in an emphasized font (\gls{emph})}
}
% short-em-nolong
\gabbrsty{short\dhyphen em\dhyphen nolong}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-nolong} but
formats the short form in an emphasized font (\gls{emph})}
}
% short-em
\gabbrstyalias{short\dhyphen em}{short-em-nolong}
% short-em-nolong-desc
\gabbrsty{short\dhyphen em\dhyphen nolong\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-nolong-desc} but
formats the short form in an emphasized font (\gls{emph})}
}
% short-em-desc
\gabbrstyalias{short\dhyphen em\dhyphen desc}{short-em-nolong-desc}
% nolong-short-em
\gabbrsty{nolong\dhyphen short\dhyphen em}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{nolong-short} but
formats the short form in an emphasized font (\gls{emph})}
}
% long-noshort-em
\gabbrsty{long\dhyphen noshort\dhyphen em}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-noshort} but
formats the short form in an emphasized font (\gls{emph})}
}
% long-noshort-em-desc
\gabbrsty{long\dhyphen noshort\dhyphen em\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-noshort-desc} but
formats the short form in an emphasized font (\gls{emph})}
}
% long-em-noshort-em
\gabbrsty{long\dhyphen em\dhyphen noshort\dhyphen em}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-noshort} but
formats both the long and short form in an emphasized font (\gls{emph})}
}
% long-em-noshort-em-desc
\gabbrsty{long\dhyphen em\dhyphen noshort\dhyphen em\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-noshort-desc} but
formats both the long and short form in an emphasized font (\gls{emph})}
}
% long-em-noshort-em-noreg
\gabbrsty{long\dhyphen em\dhyphen noshort\dhyphen em\dhyphen noreg}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-em-noshort-em} but
sets the \catattr{regular} attribute to \code{false}}
}
% long-em-noshort-em-desc-noreg
\gabbrsty{long\dhyphen em\dhyphen noshort\dhyphen em\dhyphen desc\dhyphen noreg}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-em-noshort-em-desc} but
sets the \catattr{regular} attribute to \code{false}}
}
% short-footnote
\gabbrsty{short\dhyphen footnote}%
{%
\desc{an \idx{abbrvstyle} that shows the short form with the
long form as a footnote on \idx{firstuse}. If the \meta{insert} argument is
used with the \idx{glslike} or \idx{glstextlike} commands, it will
be placed after the short form, before the footnote marker, on \idx{firstuse}. On
\idx{subsequentuse}, only the short form is shown (followed by
\meta{insert}, if provided). The \idx{inlinefullform} shows the
short form followed by the long form in parentheses. This style sets the
\catattr{regular} attribute to \code{false} (which means that
the \idx{glslike} commands won't use the
\gloskey{first}\slash\gloskey{firstplural} or
\gloskey{text}\slash\gloskey{plural} values). This style also
sets the \catattr{nohyperfirst} attribute to \code{true} to
avoid nesting the footnote marker link. If you want hyperlinks
on \idx{firstuse}, use the \abbrstyle{short-postfootnote} style
instead}
}
% footnote
\gabbrstyalias{footnote}{short-footnote}
% short-footnote-desc
\gabbrsty{short\dhyphen footnote\dhyphen desc}%
{%
\desc{as \abbrstyle{short-footnote} but the \gloskey{description}
must be supplied in \meta{options}}
}
% footnote-desc
\gabbrstyalias{footnote\dhyphen desc}{short-footnote-desc}
% short-postfootnote
\gabbrsty{short\dhyphen postfootnote}%
{%
\desc{similar to \abbrstyle{short-footnote} but the footnote is
placed in the \idx{postlinkhook}}
}
% postfootnote
\gabbrstyalias{postfootnote}{short-postfootnote}
% short-postfootnote-desc
\gabbrsty{short\dhyphen postfootnote\dhyphen desc}%
{%
\desc{as \abbrstyle{short-postfootnote} but the \gloskey{description}
must be supplied in \meta{options}}
}
% postfootnote-desc
\gabbrstyalias{postfootnote\dhyphen desc}{short-postfootnote-desc}
% short-sc-footnote
\gabbrsty{short\dhyphen sc\dhyphen footnote}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-footnote} but
formats the short form in a small caps font (\gls{textsc}).
The short form should therefore be in lowercase}
}
% short-sc-footnote-desc
\gabbrsty{short\dhyphen sc\dhyphen footnote\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-footnote-desc} but
formats the short form in a small caps font (\gls{textsc}).
The short form should therefore be in lowercase}
}
% short-sc-postfootnote
\gabbrsty{short\dhyphen sc\dhyphen postfootnote}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-postfootnote} but
formats the short form in a small caps font (\gls{textsc}).
The short form should therefore be in lowercase}
}
% short-sc-postfootnote-desc
\gabbrsty{short\dhyphen sc\dhyphen postfootnote\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-postfootnote-desc} but
formats the short form in a small caps font (\gls{textsc}).
The short form should therefore be in lowercase}
}
% short-sm-footnote
\gabbrsty{short\dhyphen sm\dhyphen footnote}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-footnote} but
formats the short form in a smaller font (\gls{textsmaller}).
The \sty{relsize} package is must be loaded}
}
% short-sm-footnote-desc
\gabbrsty{short\dhyphen sm\dhyphen footnote\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-footnote-desc} but
formats the short form in a smaller font (\gls{textsmaller}).
The \sty{relsize} package is must be loaded}
}
% short-sm-postfootnote
\gabbrsty{short\dhyphen sm\dhyphen postfootnote}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-postfootnote} but
formats the short form in a smaller font (\gls{textsmaller}).
The \sty{relsize} package is must be loaded}
}
% short-sm-postfootnote-desc
\gabbrsty{short\dhyphen sm\dhyphen postfootnote\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-postfootnote-desc} but
formats the short form in a smaller font (\gls{textsmaller}).
The \sty{relsize} package is must be loaded}
}
% short-em-footnote
\gabbrsty{short\dhyphen em\dhyphen footnote}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-footnote} but
formats the short form in an emphasized font (\gls{emph})}
}
% short-em-footnote-desc
\gabbrsty{short\dhyphen em\dhyphen footnote\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-footnote-desc} but
formats the short form in an emphasized font (\gls{emph})}
}
% short-em-postfootnote
\gabbrsty{short\dhyphen em\dhyphen postfootnote}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-postfootnote} but
formats the short form in an emphasized font (\gls{emph})}
}
% short-em-postfootnote-desc
\gabbrsty{short\dhyphen em\dhyphen postfootnote\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-postfootnote-desc} but
formats the short form in an emphasized font (\gls{emph})}
}
% long-short-user
\gabbrsty{long\dhyphen short\dhyphen user}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-short} but
includes the value of the field identified by
\gls{glsxtruserfield} (if set) in the parenthetical content}
}
% long-postshort-user
\gabbrsty{long\dhyphen postshort\dhyphen user}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-short-user} but
the parenthetical content is placed in the \idx{postlinkhook}}
}
% long-short-user-desc
\gabbrsty{long\dhyphen short\dhyphen user\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-short-user} but
the description must be supplied}
}
% long-postshort-user-desc
\gabbrsty{long\dhyphen postshort\dhyphen user\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-postshort-user} but
the description must be supplied}
}
% long-postshort-sc-user
\gabbrsty{long\dhyphen postshort\dhyphen sc\dhyphen user}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-postshort-user} but
formats the short form in a small caps font (\gls{textsc}).
The short form should therefore be in lowercase}
}
% long-postshort-sc-user-desc
\gabbrsty{long\dhyphen postshort\dhyphen sc\dhyphen user\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-postshort-sc-user} but
the description must be supplied}
}
% short-postlong-user
\gabbrsty{short\dhyphen postlong\dhyphen user}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-long} but
includes the value of the field identified by
\gls{glsxtruserfield} (if set) in the parenthetical content,
which is placed in the \idx{postlinkhook}}
}
% short-postlong-user-desc
\gabbrsty{short\dhyphen postlong\dhyphen user\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-postlong-user} but
the description must be supplied}
}
% short-long-user
\gabbrsty{short\dhyphen long\dhyphen user}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-long} but
includes the value of the field identified by
\gls{glsxtruserfield} (if set) in the parenthetical content}
}
% short-long-user-desc
\gabbrsty{short\dhyphen long\dhyphen user\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-long-user} but
the description must be supplied}
}
% long-hyphen-short-hyphen
\gabbrsty{long\dhyphen hyphen\dhyphen short\dhyphen hyphen}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-short} but
checks if the inserted material starts with a hyphen (use with
\catattr{markwords} or \catattr{markshortwords} attributes)}
}
% long-hyphen-postshort-hyphen
\gabbrsty{long\dhyphen hyphen\dhyphen postshort\dhyphen hyphen}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-hyphen-short-hyphen} but
places the insert and parenthetical material in the \idx{postlinkhook}}
}
% long-hyphen-short-hyphen-desc
\gabbrsty{long\dhyphen hyphen\dhyphen short\dhyphen hyphen\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-hyphen-short-hyphen} but
the description must be supplied}
}
% long-hyphen-postshort-hyphen-desc
\gabbrsty{long\dhyphen hyphen\dhyphen postshort\dhyphen hyphen\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-hyphen-short-hyphen-desc} but
places the insert and parenthetical material in the \idx{postlinkhook}}
}
% long-hyphen-noshort-desc-noreg
\gabbrsty{long\dhyphen hyphen\dhyphen noshort\dhyphen desc\dhyphen noreg}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-noshort-desc} but
checks if the inserted material starts with a hyphen (use with
\catattr{markwords} attribute)}
}
% long-hyphen-noshort-noreg
\gabbrsty{long\dhyphen hyphen\dhyphen noshort\dhyphen noreg}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{long-hyphen-short-hyphen} but
doesn't show the short form on \idx{firstuse}}
}
% short-hyphen-long-hyphen
\gabbrsty{short\dhyphen hyphen\dhyphen long\dhyphen hyphen}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-long} but
checks if the inserted material starts with a hyphen (use with
\catattr{markwords} or \catattr{markshortwords} attributes)}
}
% short-hyphen-long-hyphen-desc
\gabbrsty{short\dhyphen hyphen\dhyphen long\dhyphen hyphen\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-hyphen-long-hyphen} but
the description must be supplied}
}
% short-hyphen-postlong-hyphen
\gabbrsty{short\dhyphen hyphen\dhyphen postlong\dhyphen hyphen}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-hyphen-long-hyphen} but
the insert and parenthetical material are placed in the \idx{postlinkhook}}
}
% short-hyphen-postlong-hyphen-desc
\gabbrsty{short\dhyphen hyphen\dhyphen postlong\dhyphen hyphen\dhyphen desc}%
{%
\desc{an \idx{abbrvstyle} like \abbrstyle{short-hyphen-long-hyphen-desc} but
the insert and parenthetical material are placed in the \idx{postlinkhook}}
}
% long-only-short-only
\gabbrsty{long\dhyphen only\dhyphen short\dhyphen only}
{
\desc{an \idx{abbrvstyle} that only shows the long form on
\idx{firstuse} and only shows the short form on \idx{subsequentuse}}
}
% long-only-short-only-desc
\gabbrsty{long\dhyphen only\dhyphen short\dhyphen only\dhyphen desc}
{
\desc{an \idx{abbrvstyle} like \abbrstyle{long-only-short-only}
but the description must be supplied}
}
% long-only-short-sc-only
\gabbrsty{long\dhyphen only\dhyphen short\dhyphen sc\dhyphen only}
{
\desc{an \idx{abbrvstyle} like \abbrstyle{long-only-short-only}
but uses \idx{smallcaps} for the short form}
}
% long-only-short-sc-only-desc
\gabbrsty{long\dhyphen only\dhyphen short\dhyphen sc\dhyphen only\dhyphen desc}
{
\desc{an \idx{abbrvstyle} like \abbrstyle{long-only-short-sc-only}
but the description must be supplied}
}
% long-sc
\gdepabbrsty{long\dhyphen sc}{long-noshort-sc}
% long-desc-sc
\gdepabbrsty{long\dhyphen desc\dhyphen sc}{long-noshort-sc-desc}
% footnote-sc
\gdepabbrsty{footnote\dhyphen sc}{short-sc-footnote}
% postfootnote-sc
\gdepabbrsty{postfootnote\dhyphen sc}{short-sc-postfootnote}
% long-sm
\gdepabbrsty{long\dhyphen sm}{long-noshort-sm}
% long-desc-sm
\gdepabbrsty{long\dhyphen desc\dhyphen sm}{long-noshort-sm-desc}
% footnote-sm
\gdepabbrsty{footnote\dhyphen sm}{short-sm-footnote}
% postfootnote-sm
\gdepabbrsty{postfootnote\dhyphen sm}{short-sm-postfootnote}
% long-em
\gdepabbrsty{long\dhyphen em}{long-noshort-em}
% long-desc-em
\gdepabbrsty{long\dhyphen desc\dhyphen em}{long-noshort-em-desc}
% footnote-em
\gdepabbrsty{footnote\dhyphen em}{short-em-footnote}
% postfootnote-em
\gdepabbrsty{postfootnote\dhyphen em}{short-em-postfootnote}
% base acronym styles
\gidx{acronymstyle}{\name{acronym (base) style}%
\field{text}{acronym style}
}
\gacrsty{long\dhyphen short}{}
\gacrsty{long\dhyphen sc\dhyphen short}{}
\gacrsty{long\dhyphen sm\dhyphen short}{}
\gacrsty{long\dhyphen sp\dhyphen short}{}
\gacrsty{short\dhyphen long}{}
\gacrsty{sc\dhyphen short\dhyphen long}{}
\gacrsty{sm\dhyphen short\dhyphen long}{}
\gacrsty{long\dhyphen short\dhyphen desc}{}
\gacrsty{long\dhyphen sc\dhyphen short\dhyphen desc}{}
\gacrsty{long\dhyphen sm\dhyphen short\dhyphen desc}{}
\gacrsty{long\dhyphen sp\dhyphen short\dhyphen desc}{}
\gacrsty{short\dhyphen long\dhyphen desc}{}
\gacrsty{sc\dhyphen short\dhyphen long\dhyphen desc}{}
\gacrsty{sm\dhyphen short\dhyphen long\dhyphen desc}{}
\gacrsty{dua}{}
\gacrsty{dua\dhyphen desc}{}
\gacrsty{footnote}{}
\gacrsty{footnote\dhyphen sc}{}
\gacrsty{footnote\dhyphen sm}{}
\gacrsty{footnote\dhyphen desc}{}
\gacrsty{footnote\dhyphen sc\dhyphen desc}{}
\gacrsty{footnote\dhyphen sm\dhyphen desc}{}
% GLOSSARY STYLES:
% \setglossarystyle
\gcmd{set\-glossary\-style}%
{%
\providedby{\sty{glossaries} v3.08a+}%
\syntax{\margm{style-name}}
\desc{set the current \idx{glossarystyle} to \meta{style-name}.
Redefined by \sty{glossaries-extra} to include \gls{glsxtrpreglossarystyle}}
}
% \glsxtrpreglossarystyle
\gcmd{gls\-xtr\-pre\-glossary\-style}
{
\providedby{\sty{glossaries-extra} v1.49+}%
\desc{hook performed by \gls{setglossarystyle} to initialise
default definitions of style commands}
}
\gidxpl{glossarystyle}%
{%
\common
\field{text}{glossary style}%
\desc{the default style may be set with \gls{setglossarystyle}
or use:
\begin{compactcodebox}
\csfmt{usepackage}[\optval{stylemods}{\meta{name}},\optval{style}{\meta{style-name}}]\marg{glossaries-extra}
\end{compactcodebox}
where the style is provided by package \styfmt{glossary-\meta{name}}.
The default style can be overridden for individual \idxpl{glossary}
with the \printglossopt{style} option. For a summary of all
available styles, see \gallerypage{glossaries-styles}{Gallery:
Predefined Styles}}
}
% glossary style: inline
\gglosty{inline}%
{%
\providedby{\sty{glossary-inline}}%
\desc{a compact style with all entries listed in the
same paragraph and no \idxpl{group}, locations or symbols}
}
% glossary style: list
\gglosty{list}%
{%
\providedby{\sty{glossary-list}}%
\desc{this style uses the \env{description} environment
and places the entry name in the optional argument of
\gls{item}. Symbols and sub-entry names are not shown}
}
% glossary style: listgroup
\gglosty{list\-group}%
{%
\providedby{\sty{glossary-list}}%
\desc{as \glostyle{list} but has headers at the start of each
\idx{group}}
}
% glossary style: listhypergroup
\gglosty{list\-hyper\-group}%
{%
\providedby{\sty{glossary-list}}%
\desc{as \glostyle{listgroup} but has a row at the start with
hyperlinks to each \idx{group}}
}
% glossary style: altlist
\gglosty{alt\-list}%
{%
\providedby{\sty{glossary-list}}%
\desc{as \glostyle{list} but starts the description on a new line}
}
% glossary style: listdotted
\gglosty{list\-dotted}%
{%
\providedby{\sty{glossary-list}}%
\desc{a \glostyle{list}-like style that has a dotted leader
between the name and description. The \idx{locationlist} isn't shown}
}
% glossary style: long
\gglosty{long}%
{%
\providedby{\sty{glossary-long}}%
\desc{this style uses the \env{longtable} environment
(provided by the \sty{longtable} package). Symbols and
sub-entry names are not shown}
}
% glossary style: longheader
\gglosty{longheader}%
{%
\providedby{\sty{glossary-long}}%
\desc{this style uses the \env{longtable} environment
(provided by the \sty{longtable} package) with a header row. Symbols and
sub-entry names are not shown}
}
% glossary style: long-name-desc
\gglosty{long\dhyphen name\dhyphen desc}%
{%
\providedby{\sty{glossary-longextra} v1.37+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with two columns: the
name and the description}
}
% glossary style: long-desc-name
\gglosty{long\dhyphen desc\dhyphen name}%
{%
\providedby{\sty{glossary-longextra} v1.37+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with two columns: the
description and the name}
}
% glossary style: long-name-desc-loc
\gglosty{long\dhyphen name\dhyphen desc\dhyphen loc}%
{%
\providedby{\sty{glossary-longextra} v1.37+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with three columns: the
name, description and \idx{locationlist}}
}
% glossary style: long-loc-desc-name
\gglosty{long\dhyphen loc\dhyphen desc\dhyphen name}%
{%
\providedby{\sty{glossary-longextra} v1.37+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with three columns: the
\idx{locationlist}, description and name}
}
% glossary style: long-name-desc-sym
\gglosty{long\dhyphen name\dhyphen desc\dhyphen sym}%
{%
\providedby{\sty{glossary-longextra} v1.37+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with three columns: the
name, description and symbol}
}
% glossary style: long-name-desc-sym-loc
\gglosty{long\dhyphen name\dhyphen desc\dhyphen sym\dhyphen loc}%
{%
\providedby{\sty{glossary-longextra} v1.37+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with four columns: the
name, description, symbol and \idx{locationlist}}
}
% glossary style: long-name-sym-desc
\gglosty{long\dhyphen name\dhyphen sym\dhyphen desc}%
{%
\providedby{\sty{glossary-longextra} v1.37+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with three columns: the
name, symbol and description}
}
% glossary style: long-name-sym-desc-loc
\gglosty{long\dhyphen name\dhyphen sym\dhyphen desc\dhyphen loc}%
{%
\providedby{\sty{glossary-longextra} v1.37+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with four columns: the
name, symbol, description and \idx{locationlist}}
}
% glossary style: long-sym-desc-name
\gglosty{long\dhyphen sym\dhyphen desc\dhyphen name}%
{%
\providedby{\sty{glossary-longextra} v1.37+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with three columns: the
symbol, description and name}
}
% glossary style: long-loc-sym-desc-name
\gglosty{long\dhyphen loc\dhyphen sym\dhyphen desc\dhyphen name}%
{%
\providedby{\sty{glossary-longextra} v1.37+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with four columns: the
\idx{locationlist}, symbol, description and name}
}
% glossary style: long-desc-sym-name
\gglosty{long\dhyphen desc\dhyphen sym\dhyphen name}%
{%
\providedby{\sty{glossary-longextra} v1.37+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with three columns: the
description, symbol and name}
}
% glossary style: long-loc-desc-sym-name
\gglosty{long\dhyphen loc\dhyphen desc\dhyphen sym\dhyphen name}%
{%
\providedby{\sty{glossary-longextra} v1.37+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with four columns: the
\idx{locationlist}, description, symbol and name}
}
% glossary style: long-sym-desc
\gglosty{long\dhyphen sym\dhyphen desc}%
{%
\providedby{\sty{glossary-longextra} v1.49+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with two columns: the
symbol and the description}
}
% glossary style: long-desc-sym
\gglosty{long\dhyphen desc\dhyphen sym}%
{%
\providedby{\sty{glossary-longextra} v1.49+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with two columns: the
description and the symbol}
}
% glossary style: abbr-short-long
\gglosty{abbr\dhyphen short\dhyphen long}%
{%
\providedby{\sty{glossary-longextra} v1.49+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with two columns: the
short form and the long form}
}
% glossary style: abbr-long-short
\gglosty{abbr\dhyphen long\dhyphen short}%
{%
\providedby{\sty{glossary-longextra} v1.49+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with two columns: the
long form and the short form}
}
% glossary style: long-name-custom1
\gglosty{long\dhyphen name\dhyphen custom1}%
{%
\providedby{\sty{glossary-longextra} v1.50+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with two columns: the
name and the custom 1 field}
}
% glossary style: long-name-custom2
\gglosty{long\dhyphen name\dhyphen custom2}%
{%
\providedby{\sty{glossary-longextra} v1.50+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with three columns: the
name, custom 1 field and custom 2 field}
}
% glossary style: long-name-custom3
\gglosty{long\dhyphen name\dhyphen custom3}%
{%
\providedby{\sty{glossary-longextra} v1.50+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with four columns: the
name, custom 1 field, custom 2 field and custom 3 field}
}
% glossary style: long-name-custom1-desc
\gglosty{long\dhyphen name\dhyphen custom1\dhyphen desc}%
{%
\providedby{\sty{glossary-longextra} v1.50+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with three columns: the
name, the custom 1 field and the description}
}
% glossary style: long-name-custom2-desc
\gglosty{long\dhyphen name\dhyphen custom2\dhyphen desc}%
{%
\providedby{\sty{glossary-longextra} v1.50+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with four columns: the
name, the custom 1 field, the custom 2 field and the description}
}
% glossary style: long-name-custom3-desc
\gglosty{long\dhyphen name\dhyphen custom3\dhyphen desc}%
{%
\providedby{\sty{glossary-longextra} v1.50+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with five columns: the
name, the custom 1 field, the custom 2 field, the custom 3
field and the description}
}
% glossary style: long-custom1-name
\gglosty{long\dhyphen custom1\dhyphen name}%
{%
\providedby{\sty{glossary-longextra} v1.50+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with two columns: the
custom 1 field and the name}
}
% glossary style: long-custom2-name
\gglosty{long\dhyphen custom2\dhyphen name}%
{%
\providedby{\sty{glossary-longextra} v1.50+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with three columns:
the custom 1 field, custom 2 field, and the name}
}
% glossary style: long-custom3-name
\gglosty{long\dhyphen custom3\dhyphen name}%
{%
\providedby{\sty{glossary-longextra} v1.50+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with four columns: the
custom 1 field, custom 2 field, custom 3 field, and the name}
}
% glossary style: long-desc-custom1-name
\gglosty{long\dhyphen desc\dhyphen custom1\dhyphen name}%
{%
\providedby{\sty{glossary-longextra} v1.50+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with three columns: the
description, the custom 1 field and the name}
}
% glossary style: long-desc-custom2-name
\gglosty{long\dhyphen desc\dhyphen custom2\dhyphen name}%
{%
\providedby{\sty{glossary-longextra} v1.50+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with four columns: the
description, the custom 1 field, the custom 2 field and the name}
}
% glossary style: long-desc-custom3-name
\gglosty{long\dhyphen desc\dhyphen custom3\dhyphen name}%
{%
\providedby{\sty{glossary-longextra} v1.50+}%
\desc{this style displays the \idx{glossary} in a table for
(either \env{longtable} or \env{tabular}) with five columns: the
description, the custom 1 field, the custom 2 field, the custom 3
field and the name}
}
% glossary style: long-booktabs
\gglosty{long\dhyphen booktabs}
{%
\providedby{\sty{glossary-longbooktabs} v4.21+}%
\desc{this style displays the \idx{glossary} using
\env{longtable} and horizontal rules from the \sty{booktabs} package}
}
% glossary style: longragged
\gglosty{longragged}
{%
\providedby{\sty{glossary-longragged}}%
\desc{this style displays the \idx{glossary} using
\env{longtable} with ragged right paragraph formatting for the
description column}
}
% glossary style: super
\gglosty{super}
{%
\providedby{\sty{glossary-super}}%
\desc{this style displays the \idx{glossary} using
\env{supertabular}}
}
% glossary style: superragged
\gglosty{superragged}
{%
\providedby{\sty{glossary-superragged}}%
\desc{this style displays the \idx{glossary} using
\env{supertabular} with ragged right paragraph formatting for the
description column}
}
% glossary style: topic
\gglosty{topic}
{
\providedby{\sty{glossary-topic}}%
\desc{this style is designed for hierarchical glossaries where
the top-level entry represents a topic}
}
% glossary style: topicmcols
\gglosty{topicmcols}
{
\providedby{\sty{glossary-topic}}%
\desc{similar to \glostyle{topic} but the sub-entries are placed
in a \env{multicols} environment}
}
% glossary style: table
\gglosty{table}
{
\providedby{\sty{glossary-table}}%
\desc{this style is specific to \gls{printunsrttable}}
}
% glossary style: bookindex
\gglosty{bookindex}%
{%
\providedby{\sty{glossary-bookindex}}%
\desc{this style is designed for indexes. Symbols and
descriptions are not shown. Since descriptions aren't shown,
there's no \gls{postdeschook}}
}
% glossary style: index
\gglosty{index}%
{
\providedby{\sty{glossary-tree}}%
\desc{a hierarchical style that supports up to level~2, similar to normal indexes, but
symbols and descriptions are shown}
}
% glossary style: tree
\gglosty{tree}%
{
\providedby{\sty{glossary-tree}}%
\desc{a hierarchical style that supports unlimited levels
(although a deep hierarchy may not fit the available line width)
with that shows symbols and descriptions}
}
% glossary style: treegroup
\gglosty{tree\-group}%
{
\providedby{\sty{glossary-tree}}%
\desc{as \glostyle{tree} but has headers at the start of each
\idx{group}}
}
% glossary style: treehypergroup
\gglosty{tree\-hyper\-group}%
{%
\providedby{\sty{glossary-tree}}%
\desc{as \glostyle{treegroup} but has a row at the start with
hyperlinks to each \idx{group}}
}
% glossary style: indexgroup
\gglosty{index\-group}%
{
\providedby{\sty{glossary-tree}}%
\desc{as \glostyle{index} but has headers at the start of each
\idx{group}}
}
% glossary style: alttree
\gglosty{alt\-tree}%
{
\providedby{\sty{glossary-tree}}%
\desc{like \glostyle{tree} but the width of the widest name must
be supplied (using a command like \gls{glssetwidest})}
}
% glossary style: alttreegroup
\gglosty{alt\-tree\-group}%
{
\providedby{\sty{glossary-tree}}%
\desc{as \glostyle{alttree} but has headers at the start of each
\idx{group}}
}
% glossary style: treenoname
\gglosty{tree\-no\-name}%
{
\providedby{\sty{glossary-tree}}%
\desc{like \glostyle{tree} but the child entries don't have their
name shown}
}
% glossary style: mcolindex
\gglosty{mcol\-index}%
{
\providedby{\sty{glossary-mcols}}%
\desc{as \glostyle{index} but puts the content inside a
\env{multicols} environment}
}
% glossary style: mcolindexgroup
\gglosty{mcol\-index\-group}%
{
\providedby{\sty{glossary-mcols}}%
\desc{as \glostyle{mcolindex} but has headers at the start of each
\idx{group}}
}
% glossary style: mcoltree
\gglosty{mcol\-tree}%
{
\providedby{\sty{glossary-mcols}}%
\desc{as \glostyle{tree} but puts the content inside a
\env{multicols} environment}
}
% PACKAGE OPTIONS
% package option prefix
\gstyopt{prefix}
{%
\inpackage{glossaries-extra}
\desc{loads \sty{glossaries-prefix}}
}
% package option accsupp
\gstyopt{accsupp}
{%
\inpackage{glossaries-extra}
\desc{loads \sty{glossaries-accsupp}}
}
% package option style
\gstyopt{style}%
{%
\inpackage{glossaries}%
\syntax{\meta{style-name}}
\desc{sets the default \idx{glossarystyle} to \meta{style-name}}%
}
% package option nostyles
\gstyopt{nostyles}%
{%
\inpackage{glossaries}%
\desc{don't load the default set of predefined styles. Note that
if \sty{glossaries} is loaded before \sty{glossaries-extra},
then this option should be passed directly to \sty{glossaries}
not \sty{glossaries-extra} otherwise it will be too late to
implement}%
}
% package option nolist
\gstyopt{nolist}%
{%
\inpackage{glossaries}%
\desc{don't load \sty{glossary-list}, which is normally loaded
automatically. Note that if \sty{glossaries} is loaded before
\sty{glossaries-extra},
then this option should be passed directly to \sty{glossaries}
not \sty{glossaries-extra} otherwise it will be too late to
implement}%
}
% package option nolong
\gstyopt{nolong}%
{%
\inpackage{glossaries}%
\desc{don't load \sty{glossary-long}, which is normally loaded
automatically. Note that if \sty{glossaries} is loaded before
\sty{glossaries-extra},
then this option should be passed directly to \sty{glossaries}
not \sty{glossaries-extra} otherwise it will be too late to
implement}%
}
% package option nosuper
\gstyopt{nosuper}%
{%
\inpackage{glossaries}%
\desc{don't load \sty{glossary-super}, which is normally loaded
automatically. Note that if \sty{glossaries} is loaded before
\sty{glossaries-extra},
then this option should be passed directly to \sty{glossaries}
not \sty{glossaries-extra} otherwise it will be too late to
implement}%
}
% package option notree
\gstyopt{notree}%
{%
\inpackage{glossaries}%
\desc{don't load \sty{glossary-tree}, which is normally loaded
automatically. Note that if \sty{glossaries} is loaded before
\sty{glossaries-extra},
then this option should be passed directly to \sty{glossaries}
not \sty{glossaries-extra} otherwise it will be too late to
implement}%
}
% package option stylemods
\gstyopt{stylemods}
{%
\inpackage{glossaries-extra}
\syntax{\meta{value}}
\defval{default}
\desc{loads \sty{glossaries-extra-stylemods} with the given
options. If \opteqvalref{stylemods}{default} then no options are
passed to \sty{glossaries-extra-stylemods}}
}
% package option stylemods values
% stylemods=default
\goptval{stylemods}{default}{\desc{load
\sty{glossaries-extra-stylemods} with no options (patches any
predefined styles that have been loaded)}%
}
% stylemods=all
\goptval{stylemods}{all}%
{%
\desc{load \sty{glossaries-extra-stylemods} with all predefined styles}%
}
% stylemods=<list>
\goptmetaval{stylemods}{list}%
{%
\desc{load \sty{glossaries-extra-stylemods} with all the listed styles}%
}
\gstyopt{all}%
{%
\inpackage{glossaries-extra-stylemods}%
\desc{load all predefined styles}%
}
\gstyopt{name}%
{%
\name{{}\meta{name}}%
\inpackage{glossaries-extra-stylemods}%
\desc{load package \styfmt{glossary-\meta{name}}}%
}
% package option section
\gstyopt{section}
{
\inpackage{glossaries}%
\syntax{\meta{value}}
\defval{section}
\desc{indicates which section heading command to use for the
\idx{glossary}. The value may be one of the standard sectioning
command's control sequence name (without the leading backslash),
such as \code{chapter} or \code{section}}
}
% package option sort
\gstyopt{sort}%
{%
\inpackage{glossaries}%
\syntax{\meta{value}}
\initval{standard}
\desc{indicates how the \gloskey{sort} key should automatically
be assigned if not explicitly provided (for \gls{makeglossaries}
and \gls{makenoidxglossaries} only)}
}
\goptval{sort}{none}%
{%
\providedby{\sty{glossaries} v4.30+}
\desc{don't process the \gloskey{sort} key. Use this option
if no \idx{indexing} is required for a slightly faster build}%
}
\goptval{sort}{clear}%
{%
\providedby{\sty{glossaries} v4.50+}
\desc{sets the \gloskey{sort} key to an empty value. Use this option if no
\idx{indexing} is required for a slightly faster build}%
}%
\goptval{sort}{standard}%
{%
\desc{use the value of the \gloskey{name} key as the default for the
\gloskey{sort} key and implement the \gls{glsprestandardsort} hook}%
}
\goptval{sort}{def}%
{%
\desc{use the (zero-padded) order of definition as the default for the
\gloskey{sort} key}%
}
\goptval{sort}{use}%
{%
\desc{use the (zero-padded) order of use as the default for the
\gloskey{sort} key}%
}
% package option sanitizesort
\gstyopt{sanitize\-sort}%
{%
\inpackage{glossaries}%
\syntax{\meta{boolean}}
\initvalvaries
\defval{true}
\desc{indicates whether the default sort value should be sanitized
(only applicable with \opteqvalref{sort}{standard})}
}
% package option debug (base)
\glsbibwriteentry{packageoption}{opt.base.debug}%
{%
\providedby{\sty{glossaries} v4.24+}%
\field{name}{{}\styoptfmt{debug}}%
\initval{false}%
\syntax{\meta{value}}
\inpackage{glossaries}
\note{modified by \sty{glossaries-extra}['s] \opt{debug} option}
\desc{adds markers to the document for debugging purposes}
}
% package option debug
\gstyopt{debug}%
{%
\syntax{\meta{value}}
\defval{true}%
\initval{false}%
\inpackage{glossaries-extra}
\desc{provides debugging information. Some options are also
available with just the base \sty{glossaries} package}
}
% package option debug values
\goptval{debug}{true}%
{%
\providedby{\sty{glossaries} v4.24+}%
\desc{writes \code{wrglossary(\meta{type})(\meta{\idx{indexing} info})}
to the \ext+{log} file if there is an attempt to index an entry
before the associated \idx{indexing} file has been opened (\app{makeindex}
and \app{xindy} only). With \sty{glossaries-extra}, this setting will
also display the label of any undefined entries that are
referenced in the document}
}
\goptval{debug}{false}%
{%
\providedby{\sty{glossaries} v4.24+}%
\desc{disable debugging actions}
}
\goptval{debug}{showtargets}%
{%
\providedby{\sty{glossaries} v4.24+}%
\desc{implements \optval{debug}{true} and also shows target
markers in the document}%
\field{seealso}{opt.showtargets}
}
\goptval{debug}{showaccsupp}%
{%
\providedby{\sty{glossaries} v4.45+}%
\desc{implements \optval{debug}{true} and also shows accessibility information
in the document}
}
\goptval{debug}{showwrgloss}%
{%
\providedby{\sty{glossaries-extra} v1.21+}%
\desc{implements \optval{debug}{true} and also shows a marker
in the document whenever the entry is \indexed\ and (if used
with \opt{indexcounter}) will mark where the \ctr{wrglossary}
counter is incremented}
}
\goptval{debug}{all}%
{%
\providedby{\sty{glossaries-extra} v1.21+}%
\desc{implements all debugging options}
}
% package option showtargets
\gstyopt{show\-targets}%
{%
\inpackage{glossaries-extra}
\providedby{\sty{glossaries-extra} v1.48+}%
\syntax{\meta{value}}
\desc{implements \opteqvalref{debug}{showtargets}}
}
\goptval{showtargets}{left}%
{%
\desc{a marker is placed to the left of the link/target and
a marginal note is used in outer mode}
}
\goptval{showtargets}{right}%
{%
\desc{a marker is placed to the right of the link/target and
a marginal note is used in outer mode}
}
\goptval{showtargets}{innerleft}%
{%
\desc{a marker and annotation are placed to the left of the
link/target in all modes}
}
\goptval{showtargets}{innerright}%
{%
\desc{a marker and annotation are placed to the left of the
link/target in all modes}
}
\goptval{showtargets}{annoteleft}%
{%
\desc{markers are placed on either side of the
link/target with the annotation on the left in all modes}
}
\goptval{showtargets}{annoteright}%
{%
\desc{markers are placed on either side of the
link/target with the annotation on the right in all modes}
}
% package option undefaction
\gstyopt{undef\-action}%
{%
\syntax{\meta{value}}
\initval{error}
\inpackage{glossaries-extra}
\desc{indicates whether to trigger an error or warning if an
unknown entry label is referenced}
}
\goptval{undefaction}{error}%
{%
\desc{trigger an error if an unknown entry label is referenced}
}
\goptval{undefaction}{warn}%
{%
\desc{trigger a warning if an unknown entry label is referenced}
}
% package option makeindex
\gstyopt{makeindex}
{
\inpackage{glossaries}
\desc{indicates that the \idx{indexing} should be performed by
\app+{makeindex} (default)}
}
% package option xindy
\gstyopt{xindy}
{
\syntax{\margm{options}}
\inpackage{glossaries}
\desc{indicates that the \idx{indexing} should be performed by \app+{xindy}}
}
% package option hyperfirst
\gstyopt{hyper\-first}%
{%
\syntax{\meta{boolean}}
\initval{true}
\defval{true}
\inpackage{glossaries}
\desc{indicates whether or not to use hyperlinks on
\idx{firstuse} (if hyperlinks are supported)}
}
% package option indexonlyfirst
\gstyopt{index\-only\-first}%
{%
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\inpackage{glossaries}
\desc{indicates whether or not to only \idxc{indexing}{index}
the \idx{firstuse}}
}
% package option indexcrossrefs
\gstyopt{index\-cross\-refs}%
{%
\syntax{\meta{boolean}}
\initvalvaries
\defval{true}
\inpackage{glossaries-extra}
\desc{indicates whether or not to enable automatic \idx{indexing} of
cross-referenced entries}
}
\goptval{indexcrossrefs}{true}%
{%
\desc{enables automatic \idx{indexing} of cross-referenced entries}
}
\goptval{indexcrossrefs}{false}%
{%
\desc{disables automatic \idx{indexing} of cross-referenced entries}
}
% package option autoseeindex
\gstyopt{auto\-see\-index}%
{%
\syntax{\meta{boolean}}
\initval{true}
\defval{true}
\inpackage{glossaries-extra}
\desc{indicates whether or not to enable automatic \idx{indexing} of
\gloskey{see} and \gloskey{seealso} fields}
}
\goptval{autoseeindex}{true}%
{%
\desc{enables automatic \idx{indexing} of \gloskey{see} and \gloskey{seealso} fields}
}
\goptval{autoseeindex}{false}%
{%
\desc{disables automatic \idx{indexing} of \gloskey{see} and \gloskey{seealso} fields}
}
% package option seenoindex
\gstyopt{see\-no\-index}%
{%
\syntax{\meta{value}}
\initval{error}
\inpackage{glossaries}
\desc{indicates what to do if the \gloskey{see} key is used
before the associated \idx{indexing} files have been opened by
\gls{makeglossaries}}
}
\goptval{seenoindex}{error}%
{%
\desc{triggers an error if the \gloskey{see} key is used before
\gls{makeglossaries}}
}
\goptval{seenoindex}{warn}%
{%
\desc{triggers a warning if the \gloskey{see} key is used before
\gls{makeglossaries}}
}
\goptval{seenoindex}{ignore}%
{%
\desc{does nothing if the \gloskey{see} key is used before
\gls{makeglossaries}}
}
% package option record
\gstyopt{record}%
{%
\common
\syntax{\meta{value}}
\initval{off}
\defval{only}
\inpackage{glossaries-extra}
\desc{indicates whether or not \app{bib2gls} is being used (in
which case entry \idx{indexing} is performed by adding \app{bib2gls}
\records\ in the \ext{aux} file)}
}
% package option record=off
\goptval{record}{off}%
{%
\desc{entry \idx{indexing} is performed as per the base \sty{glossaries} package, using
either \gls{makeglossaries} or \gls{makenoidxglossaries}}
}
% package option record=only
\goptval{record}{only}%
{%
\desc{entry \idx{indexing} is performed by adding \app{bib2gls}
\records\ in the \ext{aux} file. Glossaries should be displayed with the \idx{unsrtfam}}
}
% package option record=nameref
\goptval{record}{name\-ref}%
{%
\desc{entry \idx{indexing} is performed by adding \app{bib2gls}
nameref \records\ in the \ext{aux} file. Glossaries should be displayed with the \idx{unsrtfam}}
}
% package option record=hybrid
\goptval{record}{hybrid}%
{%
\desc{performs a mixture of \app{bib2gls} \records\ in the
\ext{aux} file (to select entries from a \ext{bib} file)
and \app+{makeindex}\slash\app+{xindy}
\idx{indexing} in their associated files. The actual sorting and
collation is performed by the \idx{indexingapp}, so
\resourceoptval{sort}{none} and
\resourceoptval{save-locations}{false}
should be used in \gls{GlsXtrLoadResources} (because it's
redundant to make \app{bib2gls} sort and collate as well).
This setting should be used with
\gls{makeglossaries} before \gls{GlsXtrLoadResources} and
\idxpl{glossary} should be displayed with \gls{printglossary} (or
\gls{printglossaries}). There's little point in using this
setting unless you have a custom \app{xindy} module that you can't
convert to an equivalent set of \app{bib2gls} options}
}
% package option record=alsoindex
\goptval{record}{also\-index}%
{%
\deprecated
\field{alias}{optval.record.hybrid}
}
% package option bibglsaux
\gstyopt{bib\-gls\-aux}%
{%
\inpackage{glossaries-extra}
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \app{bib2gls} v3.0+}
\initvalempty
\syntax{\meta{basename}}
\desc{if set, an additional \ext+{aux} file called
\metafilefmt{}{basename}{.aux} will be created in which to
store the \app{bib2gls} records. This file will be skipped by
\LaTeX\ when the main \ext{aux} file is input but will be read
by \app{bib2gls}}
}
% package option numberedsection
\gstyopt{numbered\-section}
{
\syntax{\meta{value}}
\initval{false}
\defval{nolabel}
\inpackage{glossaries}
\desc{indicates whether or not \idx{glossary} section headers will be numbered
and also if they should automatically be labelled}
}
% package option savenumberlist
\gstyopt{save\-number\-list}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\inpackage{glossaries}
\desc{if true, patches the \idx{locationlist} encapsulator to
save the \idx{locationlist}. With \app{bib2gls}, use the
\resourceopt{save-locations} resource option}
}
% package option equations
\gstyopt{equations}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\inpackage{glossaries-extra}
\desc{automatically switch the \idx{locationcounter} to
\ctr{equation} when inside a numbered equation environment}
}
% package option floats
\gstyopt{floats}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\inpackage{glossaries-extra}
\desc{automatically switch the \idx{locationcounter} to
the corresponding counter when inside a floating environment}
}
% package option indexcounter
\gstyopt{index\-counter}
{
\inpackage{glossaries-extra}
\desc{defines the index counter \ctr{wrglossary} and implements
\optval{counter}{wrglossary}}
}
% counter wrglossary
\gctr{wr\-glossary}
{
\providedby{\sty{glossaries-extra}}
\desc{a counter that is incremented every time an entry is \indexed}
}
% package option counter
\gstyopt{counter}%
{%
\inpackage{glossaries}%
\syntax{\meta{counter-name}}
\initval{page}
\desc{sets the default \idx{locationcounter}}%
}
% package option nonumberlist
\gstyopt{no\-number\-list}%
{
\inpackage{glossaries}
\desc{set no \glspl{locationlist} as the default for all
\idxpl{glossary}. May be overridden for individual \idxpl{glossary} with
\printglossoptval{nonumberlist}{true}}
}
% package option entrycounter
\gstyopt{entry\-counter}%
{
\inpackage{glossaries}
\desc{enables the entry counter for top-level entries}
}
% package option subentrycounter
\gstyopt{sub\-entry\-counter}%
{
\inpackage{glossaries}
\desc{enables the entry counter for level~1 entries}
}
% package option writeglslabels
\gstyopt{write\-gls\-labels}%
{
\inpackage{glossaries}
\desc{creates a file called \csfmt{jobname}\filefmt{.}\ext+{glslabels}
that contains all defined entry labels (for the benefit of
autocompletion tools)}
}
% package option writeglslabelnames
\gstyopt{write\-gls\-label\-names}%
{
\inpackage{glossaries}
\desc{creates a file called \csfmt{jobname}\filefmt{.}\ext+{glslabels}
that contains all defined entry labels and names (for the benefit of
autocompletion tools)}
}
% package option nomain
\gstyopt{nomain}%
{%
\inpackage{glossaries}%
\desc{prevents the definition of the \code{main} \idx{glossary}. You
will need to define another \idx{glossary} to use instead. For
example, with the \opt{acronyms} package option}%
}
% package option acronymlists
\gstyopt{acronym\-lists}%
{
\inpackage{glossaries}
\syntax{\margm{label-list}}
\banned
\desc{identifies the \idxpl{glossary} that contain acronyms
(defined with the base \sty{glossaries} packages acronym mechanism)}
}
% package option shortcuts
\gstyopt{shortcuts}%
{
\inpackage{glossaries-extra}
\syntax{\margm{value}}
\initval{none}
\desc{defines various shortcut commands (boolean only with just
the base \sty{glossaries} package)}
}
% package option shortcuts=none
\goptval{shortcuts}{none}%
{%
\desc{don't define any shortcut commands}
}
% package option shortcuts=all
\goptval{shortcuts}{all}%
{%
\desc{implements \optval{shortcuts}{ac},
\optval{shortcuts}{abbreviations}, \optval{shortcuts}{other}}
}
% package option shortcuts=acother
\goptval{shortcuts}{acother}%
{%
\desc{implements \optval{shortcuts}{ac} and \optval{shortcuts}{other}}
}
% package option shortcuts=abother
\goptval{shortcuts}{abother}%
{%
\desc{implements \optval{shortcuts}{abbreviations} and \optval{shortcuts}{other}}
}
% package option shortcuts=true
\goptval{shortcuts}{true}%
{%
\field{alias}{optval.shortcuts.all}
}
% package option shortcuts=false
\goptval{shortcuts}{false}%
{%
\field{alias}{optval.shortcuts.all}
}
% package option shortcuts=ac
\goptval{shortcuts}{ac}%
{%
\desc{implements the acronym shortcuts that are compatible with
\gls{newabbreviation}}
}
% package option shortcuts=abbreviations
\goptval{shortcuts}{abbreviations}%
{%
\desc{implements the abbreviation shortcuts}
}
% package option shortcuts=abbr
\goptval{shortcuts}{abbr}%
{%
\field{alias}{optval.shortcuts.abbreviations}
}
% package option shortcuts=other
\goptval{shortcuts}{other}%
{%
\desc{implements the shortcuts \gls{newentry}, \gls{newsym} and
\gls{newnum}}
}
% package option shortcuts=acronyms
\goptval{shortcuts}{acronyms}%
{%
\desc{implements the acronym shortcuts. Don't use this option
unless you have reverted \gls{newacronym} back to the base
\sty{glossaries} package's acronym mechanism}
}
% package option shortcuts=acro
\goptval{shortcuts}{acro}%
{%
\field{alias}{optval.shortcuts.acronyms}
}
% package option acronyms
\gstyopt{acronyms}%
{
\inpackage{glossaries}
\desc{provides a new \idx{glossary} with the label \code{acronym},
redefines \gls{acronymtype} to \code{acronym}, and provides
\gls{printacronyms}}
}
% package option acronym
\gstyopt{acronym}%
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\inpackage{glossaries}
\desc{if true, provides a new \idx{glossary} with the label
\code{acronym} and title given by \gls{acronymname},
redefines \gls{acronymtype} to \code{acronym}, and provides
\gls{printacronyms}}
}
% package option abbreviations
\gstyopt{abbreviations}%
{
\inpackage{glossaries-extra}
\desc{provides a new \idx{glossary} with the label
\code{abbreviations} and title given by \gls{abbreviationsname},
redefines \gls{glsxtrabbrvtype} to \code{abbreviations},
redefines \gls{acronymtype} to \gls{glsxtrabbrvtype} (unless
the \opt{acronym} or \opt{acronyms} option has been used), and provides
\gls{printabbreviations}}
}
% package option symbols
\gstyopt{symbols}%
{
\inpackage{glossaries}
\desc{provides a new \idx{glossary} with the label \code{symbols} and
the title \gls{glssymbolsgroupname}, and provides
\gls{printsymbols}. With \sty{glossaries-extra}, this additionally
defines \gls{glsxtrnewsymbol}}
}
% package option numbers
\gstyopt{numbers}%
{
\inpackage{glossaries}
\desc{provides a new \idx{glossary} with the label \code{numbers} and
the title \gls{glsnumbersgroupname}, and provides \gls{printnumbers}.
With \sty{glossaries-extra}, this additionally
defines \gls{glsxtrnewnumber}}
}
% package option index
\gstyopt{index}%
{
\inpackage{glossaries}
\desc{provides a new \idx{glossary} with the label \code{index} and
the title \gls{indexname}, and provides \gls{printindex} and
\gls{newterm}}
}
% package option nomissingglstext
\gstyopt{no\-missing\-gls\-text}%
{%
\inpackage{glossaries-extra}
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{determines whether or not to display warning text if the
external \idx{glossary} file hasn't been generated due to an
incomplete build}
}
% package option nopostdot
\gstyopt{nopostdot}%
{%
\inpackage{glossaries}
\syntax{\meta{boolean}}
\initval{true}
\defval{true}
\desc{if true, suppresses the automatic insertion of a
\idx{fullstop} after each entry's description in the \idx{glossary}
(for styles that support this). The default is
\optval{nopostdot}{true} for \sty{glossaries-extra} and
\optval{nopostdot}{false} for just \sty{glossaries}}
\field{seealso}{opt.postdot,opt.postpunc}
}
% package option postdot
\gstyopt{postdot}%
{%
\inpackage{glossaries-extra}
\providedby{\sty{glossaries-extra} v1.12+}%
\desc{a shortcut for \optval{nopostdot}{false}}
\field{seealso}{opt.nopostdot,opt.postpunc}
}
% package option postpunc
\gstyopt{postpunc}%
{%
\inpackage{glossaries-extra}
\providedby{\sty{glossaries-extra} v1.21+}%
\syntax{\meta{value}}
\desc{an alternative to \opt{postdot}, this can be used to
insert a different punctuation character after the description}
}
% package option postpunc values
\goptval{postpunc}{dot}%
{%
\desc{equivalent to \opt{postdot} or \optval{nopostdot}{false}}
}
\goptval{postpunc}{comma}%
{%
\desc{inserts a comma after the description}
}
\goptval{postpunc}{none}%
{%
\desc{switches off automatic post-description punctuation insertion}
}
\goptval{postpunc}{other}%
{%
\name{{}\meta{punctuation}}
\desc{inserts \meta{punctuation} after the description}
}
% package option nowarn
\gstyopt{no\-warn}%
{%
\inpackage{glossaries}
\desc{suppresses warnings}
}
% package option noredefwarn
\gstyopt{noredefwarn}%
{%
\inpackage{glossaries}
\desc{suppresses a warning if \env{theglossary} or
\gls{printglossary} have already been defined (which indicates
that the document class or another package also provides a mechanism
for creating a \idx{glossary} that could potentially conflict with
\sty{glossaries}). This option is automatically implemented with
\sty{glossaries-extra}}
}
% package option translate
\gstyopt{translate}%
{%
\inpackage{glossaries}
\syntax{\meta{value}}
\initval{babel}
\desc{indicates how multilingual support should be provided, if
applicable}
}
% package option translate values
\goptval{translate}{babel}%
{%
\desc{uses \sty{babel}['s] language hooks to implement
multilingual support (default for \sty{glossaries-extra} if
\sty{babel} has been detected)}
}
\goptval{translate}{true}%
{%
\desc{uses \sty{translator}['s] language hooks to implement
multilingual support (default for \sty{glossaries} if a
language package has been detected)}
}
\goptval{translate}{false}%
{%
\desc{don't implement multilingual support (default if no
language package has been detected)}
}
% package option notranslate
\gstyopt{notranslate}%
{%
\inpackage{glossaries}
\desc{equivalent to \optval{translate}{false}}
}
% package option nogroupskip
\gstyopt{nogroupskip}%
{%
\inpackage{glossaries}
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{if true, suppress the gap between letter \idxpl{group} in the
\idxpl{glossary} by default}
}
% package option toc
\gstyopt{toc}%
{%
\inpackage{glossaries}
\syntax{\meta{boolean}}
\initval{true}
\defval{true}
\desc{if true, each \idx{glossary} will be automatically added to the
table of contents. The default is \optval{toc}{false} with
\sty{glossaries} and \optval{toc}{true} with \sty{glossaries-extra}}
}
% package option docdef
\gstyopt{docdef}%
{%
\inpackage{glossaries-extra}
\syntax{\meta{value}}
\initval{false}
\defval{true}
\desc{determines whether or not \gls{newglossaryentry} is
permitted in the \env{document} environment}
}
\goptval{docdef}{false}%
{%
\desc{don't allow \gls{newglossaryentry} in the \env{document}
environment}
}
\goptval{docdef}{true}%
{%
\desc{allow \gls{newglossaryentry} in the \env{document}
environment if the base \sty{glossaries} package would allow it}
}
\goptval{docdef}{restricted}%
{%
\desc{allow \gls{newglossaryentry} in the \env{document}
environment, but only before any \idxpl{glossary}}
}
\goptval{docdef}{atom}%
{%
\desc{as \optfmt{restricted} but creates the \ext{glsdefs} file
for atom's autocomplete support}
}
% package option automake
\gstyopt{auto\-make}%
{%
\inpackage{glossaries}
\syntax{\meta{value}}
\initval{false}
\defval{true}
\desc{indicates whether or not to attempt to use \TeX's shell
escape to run an \idx{indexingapp}}
}
% package option mfirstuc
\gstyopt{mfirstuc}
{
\inpackage{glossaries}
\providedby{\sty{glossaries} v4.50+}
\initval{unexpanded}
\desc{implements the \optfmt{expanded} and \optfmt{unexpanded}
options provided by \sty{mfirstuc}}
}
% COMMANDS
% COMMANDS: OPTIONS
% \setupglossaries
\gcmd{set\-up\-glos\-saries}%
{%
\providedby{\sty{glossaries} v3.11a+}
\syntax{\margm{options}}
\desc{change allowed options that are defined by the base
\sty{glossaries} package. Note that some options can only be
passed as package options. To change options defined or modified
by the \sty{glossaries-extra} package, use
\gls{glossariesextrasetup}}
}
% \glossariesextrasetup
\gcmd{glos\-saries\-extra\-setup}%
{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{options}}
\desc{change allowed options that are defined or modified by the
\sty{glossaries-extra} package. Note that some options can only be
passed as package options}
}
% \glsindexingsetting
\gcmd{gls\-index\-ing\-setting}
{
\providedby{\sty{glossaries} v4.50+ \& \sty{glossaries-extra} v1.49+}
\desc{indicates what \idx{indexing} option has been chosen}
}
% \glsxtrsetbibglsaux
\gcmd{gls\-xtr\-set\-bib\-gls\-aux}
{
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \app{bib2gls} v3.0+}
\syntax{\margm{basename}}
\desc{as the \opt{bibglsaux} option}
}
% COMMANDS: DEBUGGING
% \glsshowtargetinner
\gcmd{gls\-show\-target\-inner}%
{%
\providedby{\sty{glossaries} v4.50+}
\syntax{\margm{target-name}}
\desc{formats the target name for inner and maths mode when
\opteqvalref{debug}{showtargets} is enabled}
}
% \glsshowtargetouter
\gcmd{gls\-show\-target\-outer}%
{%
\providedby{\sty{glossaries} v4.50+}
\syntax{\margm{target-name}}
\desc{formats the target name for outer mode when
\opteqvalref{debug}{showtargets} is enabled. This places a
marker (\gls{glsshowtargetsymbol}) in the text and
\meta{target-name} in the margin}
}
% \glsshowtarget
\gcmd{gls\-show\-target}%
{%
\providedby{\sty{glossaries} v4.32+}
\syntax{\margm{target-name}}
\desc{formats the target name when
\opteqvalref{debug}{showtargets} is enabled using either
\gls{glsshowtargetinner} or \gls{glsshowtargetouter}, depending
on the current mode}
}
% \glsshowtargetfont
\gcmd{gls\-show\-target\-font}%
{%
\providedby{\sty{glossaries} v4.45+}
\desc{font declaration used by debugging annotations}
}
% \glsshowtargetfonttext
\gcmd{gls\-show\-target\-font\-text}%
{%
\providedby{\sty{glossaries} v4.50+}
\syntax{\margm{text}}
\desc{text-block command that checks for math mode and switches
to the font given by the \gls{glsshowtargetfont} declaration}
}
% \glsshowtargetsymbol
\gcmd{gls\-show\-target\-symbol}%
{%
\providedby{\sty{glossaries} v4.45+}
\desc{marker (\glsshowtargetsymbol) used in debugging annotations}
}
% \glsxtrwrglossmark
\gcmd{gls\-xtr\-wr\-gloss\-mark}%
{%
\providedby{\sty{glossaries-extra} v1.21+}
\desc{marker (\glsxtrwrglossmark) used to mark write operations
with \opteqvalref{debug}{showwrgloss}}
}
% \glsxtrwrglosscountermark
\gcmd{gls\-xtr\-wr\-gloss\-counter\-mark}%
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{number}}
\desc{used to mark where the \ctr{wrglossary} counter is
incrememented with \opteqvalref{debug}{showwrgloss}}
}
% \glsxtrshowtargetouter
\gcmd{gls\-xtr\-show\-target\-outer}%
{%
\syntax{\margm{target-name}}
\providedby{\sty{glossaries-extra} v1.48+}
\desc{used in outer mode for debugging, this defaults to
\gls{glsshowtargetouter} but is changed by the
\opt{showtargets} options}
}
% \glsxtrshowtargetinner
\gcmd{gls\-xtr\-show\-target\-inner}%
{%
\syntax{\margm{target-name}}
\providedby{\sty{glossaries-extra} v1.48+}
\desc{used in inner mode for debugging, this defaults to
\gls{glsshowtargetinner} but is changed by the
\opt{showtargets} options}
}
% \glsshowtargetinnersymleft
\gcmd{gls\-show\-target\-inner\-sym\-left}%
{%
\syntax{\marg{name}}
\providedby{\sty{glossaries-extra} v1.48+}
\desc{shows the left inner annotation followed by the left
marker symbol \gls{glsxtrshowtargetsymbolleft}}
}
% \glsshowtargetinnersymright
\gcmd{gls\-show\-target\-inner\-sym\-right}%
{%
\syntax{\marg{name}}
\providedby{\sty{glossaries-extra} v1.48+}
\desc{shows the right marker symbol
\gls{glsxtrshowtargetsymbolright} followed by the right inner annotation}
}
% \glsxtrshowtargetsymbolleft
\gcmd{gls\-xtr\-show\-target\-symbol\-left}%
{%
\providedby{\sty{glossaries-extra} v1.48+}
\desc{the left marker debugging symbol~(\glsxtrshowtargetsymbolleft)}
}
% \glsxtrshowtargetsymbolright
\gcmd{gls\-xtr\-show\-target\-symbol\-right}%
{%
\providedby{\sty{glossaries-extra} v1.48+}
\desc{the right marker debugging symbol~(\glsxtrshowtargetsymbolright)}
}
% COMMANDS: INDEXING INITIALISATION
% \glsprestandardsort
\gcmd{gls\-pre\-standard\-sort}
{
\providedby{\sty{glossaries} v3.13a+}
\syntax{\margm{sort cs}\margm{type}\margm{entry-label}}
\desc{hook used with \opteqvalref{sort}{standard} to adjust the
default sort value (with \gls{makeglossaries} or
\gls{makenoidxglossaries} only)}
}
% \makeglossaries
\gcmd{make\-glossaries}%
{%
\providedby{\sty{glossaries}}
\syntax{\oargm{types}}
\desc{opens the associated \idx{glossary} files that need to be
processed by \app+{makeindex} or \app+{xindy}. The optional
argument is only available with \sty{glossaries-extra} and is
used for a hybrid approach. All \idxpl{glossary} (or each \idx{glossary}
identified in \meta{types}) should be displayed with
\gls{printglossary}. If the optional argument is present, any
\idxpl{glossary} not identified in \meta{types} should be displayed with
\gls{printnoidxglossary}}
}
% \makenoidxglossaries
\gcmd{make\-noidx\-glossaries}%
{%
\providedby{\sty{glossaries} v4.04+}
\desc{sets up all non-\idxpl{ignoredglossary} so that they can be displayed
with \gls{printnoidxglossary}}
}
% COMMANDS: GLOSSARIES
% \glsdefaulttype
\gcmd{gls\-default\-type}%
{%
\providedby{\sty{glossaries}}
\initval{main}%
\desc{expands to the label of the default \idx{glossary}, which is
normally \code{main} but if \opt{nomain} is used, it will be the
label of the first \idx{glossary} to be defined}
}%
% \acronymtype
\gcmd{acronym\-type}%
{%
\providedby{\sty{glossaries}}
\initvalcs{glsdefaulttype}%
\desc{expands to the label of the default acronym \idx{glossary}. The
\opt{acronym} or \opt{acronyms} package option will redefine
this to \code{acronym}. The \opt{abbreviations} package option
will redefine this to \gls{glsxtrabbrvtype} if
\opt{acronyms}\slash\opt{acronym} isn't used}
}%
% \glsxtrabbrvtype
\gcmd{gls\-xtr\-abbrv\-type}%
{%
\initvalcs{glsdefaulttype}%
\providedby{\sty{glossaries-extra}}
\desc{expands to the label of the default abbreviation \idx{glossary}. The
\opt{abbreviations} package option will redefine
this to \code{abbreviations}}
}%
% \newglossary
\gcmd{new\-glos\-sary}%
{%
\providedby{\sty{glossaries}}
\syntax{\oargm{log-ext}\margm{glossary-label}\margm{in-ext}\margm{out-ext}\margm{title}\oargm{counter}}
\desc{defines a \idx{glossary} identified by \meta{glossary-label} (which can
be referenced by the \gloskey{type} key when defining an entry).
The \meta{title} will be used when displaying the \idx{glossary}
(using commands like \gls{printglossary}), but this title can be
overridden by the \printglossopt{title} option. The optional
\meta{counter} indicates which \idxc{locationcounter}{counter} should be used by default
for the \location\ when \idx{indexing} any entries that have been assigned to this
\idx{glossary}. (This can be overridden by the \glsopt{counter}
option.) The other arguments are file extensions for use with
\app{makeindex} or \app{xindy}. These arguments aren't relevant
for other \idx{indexing} options (in which case, you may prefer to use
\gls{newglossary*})}
}
% \newglossary*
\gcmd{new\-glos\-sary*}%
{%
\providedby{\sty{glossaries} v4.08+}
\syntax{\margm{glossary-label}\margm{title}\oargm{counter}}
\desc{a shortcut that supplies file extensions based on the
\idx{glossary} label:\begin{compactcodebox}%
\gls{newglossary}\oarg{\meta{glossary-label}-glg}\margm{glossary-label}\marg{\meta{glossary-label}-gls}\margm{\meta{glossary-label}-glo}\margm{title}\oargm{counter}%
\end{compactcodebox}\glsxtrnopostpunc
}
}
% \newignoredglossary
\gcmd{new\-ignored\-glos\-sary}%
{%
\providedby{\sty{glossaries} v4.08+}
\syntax{\margm{glossary-label}}
\desc{defines a \idx{glossary} that should be ignored by iterative
commands, such as \gls{printglossaries}. This \idx{glossary} has no
associated \idx{indexing} files and has hyperlinks disabled. You can
use an \idx{ignoredglossary} for common terms or abbreviations that don't need to be
included in any listing (but you may want these terms defined
as entries to allow automated formatting with the \idx{glslike}
commands). An \idx{ignoredglossary} can't be displayed with
\gls{printglossary} but may be displayed with the \idx{unsrtfam}, such as
\gls{printunsrtglossary}}
}
% \newignoredglossary*
\gcmd{new\-ignored\-glos\-sary*}%
{%
\providedby{\sty{glossaries-extra} v1.11+}
\syntax{\margm{glossary-label}}
\desc{this is like the unstarred \gls{newignoredglossary} but
doesn't disable hyperlinks. You will need to ensure that the
hypertargets are defined. For example, with
\gls{printunsrtglossary} or through \idxpl{standaloneentry}}
}
% \provideignoredglossary
\gcmds{provide\-ignored\-glos\-sary}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{glossary-label}}
\desc{as \gls{newignoredglossary} but does nothing if the
\idx{glossary} has already been defined}
}
% \ifglossaryexists
\gcmds{if\-glos\-sary\-exists}
{
\providedby{\sty{glossaries}}
\syntax{\margm{glossary-type}\margm{true}\margm{false}}
\desc{if the \idx{glossary} given by \meta{glossary-type} exists,
this does \meta{true}, otherwise it does \meta{false}. The
unstarred form treats \idxpl{ignoredglossary} as non-existent. The
starred form (v4.46+) will do \meta{true} if \meta{glossary-type} matches
an ignored glossary}
\field{seealso}{doifglossarynoexistsordo,glsxtrifemptyglossary}
}
% \doifglossarynoexistsordo
\gcmd{do\-if\-glos\-sary\-no\-exists\-or\-do}
{
\providedby{\sty{glossaries} v4.19+}
\syntax{\margm{glossary-type}\margm{true}\margm{false}}
\desc{if the \idx{glossary} given by \meta{glossary-type} doesn't
exist, this does \meta{true}, otherwise it generates an error
and does \meta{false}. This uses the starred form of
\gls{ifglossaryexists} to test for existence}
\field{seealso}{ifglossaryexists,glsxtrifemptyglossary}
}
% \glsxtrifemptyglossary
\gcmd{gls\-xtr\-if\-empty\-glos\-sary}
{
%\providedby{\sty{glossaries-extra} v0.4+}
\syntax{\margm{glossary-type}\margm{true}\margm{false}}
\desc{does \meta{true} if the glossary identified by
\meta{glossary-type} is empty, otherwise does \meta{false}.
If the \idx{glossary} doesn't exist, this does \meta{true} and
will either generate an error (\opteqvalref{undefaction}{error})
or a warning (\opteqvalref{undefaction}{warn}). This command
considers \idxpl{ignoredglossary} as existing}
\field{seealso}{ifglossaryexists,GlsXtrIfInGlossary}
}
% \GlsXtrIfInGlossary
\gcmd{Gls\-Xtr\-If\-In\-Glossary}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{glossary-type}\margm{true}\margm{false}}
\desc{does \meta{true} if the entry given by \meta{entry-label}
is in the internal list of the \idx{glossary} identified by
\meta{glossary-type}, otherwise it does \meta{false}. If the
\idx{glossary} doesn't exist, this does \meta{false} and
will either generate an error (\opteqvalref{undefaction}{error})
or a warning (\opteqvalref{undefaction}{warn}). This command
considers \idxpl{ignoredglossary} as existing}
\field{seealso}{ifglossaryexists,glsxtrifemptyglossary}
}
% \glsxtrcopytoglossary
\gcmds{gls\-xtr\-copy\-to\-glos\-sary}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{glossary-type}}
\desc{copies the entry to the internal \idx{glossary} list for
the given \idx{glossary}. The starred version performs a global
change. The unstarred version can be localised. Only for use with
the \idx{unsrtfam}}
}
% \glsxtrgroupfield
\gcmd{gls\-xtr\-group\-field}
{
\providedby{\sty{glossaries-extra} v1.21+}
\initval{group}
\desc{expands to the \idx{internalfieldlabel} used to store the
group label (requires \opt{record})}
}
% \glsautoprefix
\gcmd{gls\-auto\-prefix}
{
\providedby{\sty{glossaries} v1.14+}
\desc{expands to the prefix for the label used by
\optval{numberedsection}{autolabel} and \optval{numberedsection}{nameref}}
}
% \glsxtrsetglossarylabel
\gcmd{gls\-xtr\-set\-glos\-sary\-label}
{
\providedby{\sty{glossaries-extra} v1.39+}
\syntax{\margm{label}}
\desc{sets the label to add (using
\code{\gls{label}\margm{label}}) after the \idx{glossary} section
heading}
}
% COMMANDS: GLOSSARY STYLES
% \ifglsnogroupskip
\gcond{if\-gls\-no\-group\-skip}
{
\providedby{\sty{glossaries} v3.03+}
\initvalcs{iffalse}
\desc{conditional set by the \opt{nogroupskip} option}
}
% \glossentryname
\gcmd{gloss\-entry\-name}
{%
\providedby{\sty{glossaries} v3.08a+}
\syntax{\margm{entry-label}}
\desc{used by \idx{glossary} styles to display the entry's name}
}
% \Glossentryname
\gcmd{Gloss\-entry\-name}
{%
\providedby{\sty{glossaries} v3.08a+}
\syntax{\margm{entry-label}}
\desc{as \gls{glossentryname} but \idx{sentencecase}}
}
% \glossentrynameother
\gcmd{gloss\-entry\-name\-other}
{%
\providedby{\sty{glossaries-extra} v1.22+}
\syntax{\margm{entry-label}\margm{field-label}}
\desc{behaves like \gls{glossentryname} but uses the given field
(identified by its \idxc{internalfieldlabel}{internal label})
instead of \gloskey{name}}
}
% \glossentrysymbol
\gcmd{gloss\-entry\-symbol}
{%
\providedby{\sty{glossaries} v3.08a+}
\syntax{\margm{entry-label}}
\desc{used by \idx{glossary} styles to display the entry's symbol}
}
% \Glossentrysymbol
\gcmd{Gloss\-entry\-symbol}
{%
\providedby{\sty{glossaries} v3.08a+}
\syntax{\margm{entry-label}}
\desc{as \gls{glossentrysymbol} but \idx{sentencecase}}
}
% \glsentrypdfsymbol
\gcmd{gls\-entry\-pdf\-symbol}
{%
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{used when \gls{glossentrysymbol} occurs in a PDF bookmark}
}
% \glossentrydesc
\gcmd{gloss\-entry\-desc}
{%
\providedby{\sty{glossaries} v3.08a+}
\syntax{\margm{entry-label}}
\desc{used by \idx{glossary} styles to display the entry's
description}
}
% \Glossentrydesc
\gcmd{Gloss\-entry\-desc}
{%
\providedby{\sty{glossaries} v3.08a+}
\syntax{\margm{entry-label}}
\desc{as \gls{glossentrydesc} but \idx{sentencecase}}
}
% \GlsXtrFormatLocationList
\gcmd{Gls\-Xtr\-Format\-Location\-List}
{
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{location list}}
\desc{used by \gls{glossaryentrynumbers} to encapsulate the entire
\idx{locationlist} in the
\idx{glossary}}
}
% \glossaryentrynumbers
\gcmd{glos\-sary\-entry\-numbers}
{
\providedby{\sty{glossaries}}
\syntax{\margm{location list}}
\desc{used within the \idx{glossary} to encapsulate the
\idx{locationlist} (redefined by the \opt{nonumberlist} option)}
}
% \GlsXtrEnablePreLocationTag
\gcmd{Gls\-Xtr\-Enable\-Pre\-Location\-Tag}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{page tag}\margm{pages tag}}
\desc{enables the \idx{locationlist} tag}
}
% \glsnoidxdisplayloc
\gcmd{gls\-no\-idx\-display\-loc}
{
\providedby{\sty{glossaries} v4.04+}
\syntax{\margm{prefix}\margm{counter}\margm{format}\margm{location}}
\desc{used to display a location in the location list}
}
% \glsxtrdisplaysingleloc
\gcmd{gls\-xtr\-display\-single\-loc}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{format}\margm{location}}
\desc{used to display a single location}
}
% \glsxtrdisplaystartloc
\gcmd{gls\-xtr\-display\-start\-loc}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{format}\margm{location}}
\desc{used to display a start location from an explicit range}
}
% \glsxtrdisplayendloc
\gcmd{gls\-xtr\-display\-end\-loc}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{format}\margm{location}}
\desc{used to display an end location from an explicit range}
}
% \glsxtrlocrangefmt
\gcmd{gls\-xtr\-loc\-range\-fmt}
{
\providedby{\sty{glossaries-extra} v1.12+}
\desc{expands to the range format (set by \gls{glsxtrdisplaystartloc})}
}
% \glsxtrdisplayendlochook
\gcmd{gls\-xtr\-display\-end\-loc\-hook}
{
\providedby{\sty{glossaries-extra} v1.12+}
\desc{hook used by \gls{glsxtrdisplayendloc}}
}
% theglossary environment
\genv{the\-glossary}%
{%
\providedby{\sty{glossaries}}
\desc{redefined by \idxpl{glossarystyle} to set up the way the
\idx{glossary} is displayed. For example, to start and end the
\env{description} environment for the \glostyle{list} styles}
}
% \glsnumberformat
\gcmd{gls\-number\-format}%
{%
\providedby{\sty{glossaries}}
\syntax{\margm{location(s)}}
\desc{the default \idxc{locationencap}{format} for \idxpl{entrylocation}. If
hyperlinks are defined, this will use \gls{glshypernumber}
otherwise it will simply display its argument, which may be a
single \location, or locations delimited by \gls{delimR} or
\gls{delimN}}
}
% \delimR
\gcmd{delimR}%
{%
\providedby{\sty{glossaries}}
\desc{used between the start and end of a \location\ range}
}
% \delimN
\gcmd{delimN}%
{%
\providedby{\sty{glossaries}}
\desc{used as a separator between \locations}
}
% \glshypernumber
\gcmd{gls\-hyper\-number}%
{%
\providedby{\sty{glossaries}}
\syntax{\margm{location(s)}}
\desc{this will encapsulate each location with a hyperlink, if
supported. This may be used as a \idx{locationencap}.
The argument may be a single location or locations
delimited by \gls{delimR} or \gls{delimN}. This command should
not be used outside of \idxpl{locationlist} as it
requires additional information in order to correctly form the
hyperlinks}
}
% \hyperbf
\gcmd{hyper\-bf}
{
\providedby{\sty{glossaries}}
\syntax{\margm{location(s)}}
\desc{if hyperlinks are supported this does
\code{\cmd{textbf}\marg{\gls{glshypernumber}\margm{location(s)}}} otherwise it just
does \code{\cmd{textbf}\margm{location(s)}}}
}
% \glstarget
\gcmd{gls\-target}%
{%
\providedby{\sty{glossaries} v1.18+}
\syntax{\margm{entry-label}\margm{text}}
\desc{used by \idxpl{glossarystyle} to create a hypertarget (if enabled) for
the entry (identified by \meta{entry-label}). The \meta{text} is usually
\gls{glossentryname}\margm{entry-label}, but it can be something
else}
}
% \setentrycounter
\gcmd{set\-entry\-counter}
{
\providedby{\sty{glossaries}}
\syntax{\oargm{prefix}\margm{counter}}
\desc{used to set the \idx{locationcounter} and prefix required
for \gls{glshypernumber}}
}
% \glsentryitem
\gcmd{gls\-entry\-item}
{
\providedby{\sty{glossaries} v3.0+}
\syntax{\margm{entry-label}}
\desc{does nothing if \optval{entrycounter}{false},
otherwise increments and displays the associated counter}
}
% \glssubentryitem
\gcmd{gls\-sub\-entry\-item}
{
\providedby{\sty{glossaries} v3.0+}
\syntax{\margm{entry-label}}
\desc{does nothing if \optval{subentrycounter}{false},
otherwise increments and displays the associated counter}
}
% \glsentrycounterlabel
\gcmd{gls\-entry\-counter\-label}
{
\providedby{\sty{glossaries} v3.0+}
\desc{used by \gls{glsentryitem} to display the entry counter label}
}
% \theglossaryentry
\gcmd{the\-glossary\-entry}
{
\providedby{\sty{glossaries} v3.0+}
\desc{the value of the \ctr{glossaryentry} counter}
}
% counter glossaryentry
\gctr{glossary\-entry}
{
\providedby{\sty{glossaries} v3.0+}
\desc{the counter associated with the \opt{entrycounter} package option}
}
% \glsnamefont
\gcmd{gls\-name\-font}
{
\providedby{\sty{glossaries}}
\syntax{\margm{text}}
\desc{used by \gls{glossentryname} to apply a font change to the
\gloskey{name}, unless (with \sty{glossaries-extra}) the
\catattr{glossnamefont} attribute has been set}
}
% \glsxtrpostname<category>
\gcmdmeta{gls\-xtr\-post\-name}{cat\-e\-gory}{}{%
\providedby{\sty{glossaries-extra} v1.04+}%
\desc{the \gls{postnamehook} associated with the category
identified by the label \meta{category}}
}
% \glsxtrpostnamehook
\gcmd{gls\-xtr\-post\-name\-hook}{%
%\providedby{\sty{glossaries-extra} v0.5.3+}%
\syntax{\margm{entry-label}}
\desc{a hook that's performed within \gls{glossentryname}
and \gls{glossentrynameother} after the entry name is
displayed. This hook implements auto-indexing (see
\sectionref{sec:autoindex}), then the general hook
\gls{glsextrapostnamehook} and finally the
\gls{glsxtrpostnamecategory} hook}
}
% \glsextrapostnamehook
\gcmd{gls\-extra\-post\-name\-hook}{%
\providedby{\sty{glossaries-extra} v1.25+}%
\syntax{\margm{entry-label}}
\desc{a general purpose hook that's performed within \gls{glsxtrpostnamehook}}
}
% \glsdefpostname
\gcmd{gls\-def\-post\-name}{%
\providedby{\sty{glossaries-extra} v1.31+}%
\syntax{\margm{category}\margm{definition}}
\desc{defines \idx{postnamehook} associated with the category
identified by the label \meta{category}. This simply (re)defines
\gls{glsxtrpostnamecategory} for the given \meta{category} to
\meta{definition}}
}
% \glspostdescription
\gcmd{gls\-post\-de\-scrip\-tion}%
{%
\providedby{\sty{glossaries}}
\desc{a hook that is usually placed after the description in
\idxpl{glossarystyle}. Some of the styles provided with the
\sty{glossaries} package don't use this hook. The
\sty{glossaries-extra-stylemods} redefines those styles to
include the hook. The default definition of this command
tests for the \opt{nopostdot} option, but the \opt{postpunc}
option redefines the command to implement the chosen punctuation}
}
% \glsxtrpostdescription
\gcmd{gls\-xtr\-post\-de\-scrip\-tion}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{an additional hook used within \gls{glspostdescription}
that implements the \idx{catpostdeschook}}
}
% \glsxtrpostdesc<category>
\gcmdmeta{gls\-xtr\-post\-desc}{cat\-e\-gory}{}{%
\providedby{\sty{glossaries-extra}}
\desc{the \gls{postdeschook} associated with the category
identified by the label \meta{category}}
}
% \glsdefpostdesc
\gcmd{gls\-def\-post\-desc}{%
\providedby{\sty{glossaries-extra} v1.31+}
\syntax{\margm{category}\margm{definition}}
\desc{defines \idx{postdeschook} associated with the category
identified by the label \meta{category}. This simply (re)defines
\gls{glsxtrpostdesccategory} for the given \meta{category} to
\meta{definition}}
}
% \glsxtrpostdescgeneral
\gcmd{gls\-xtr\-post\-desc\-general}%
{%
\initvalempty
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{the default post-description hook for the \cat{general} category}
}
% \glsxtrpostdescsymbol
\gcmd{gls\-xtr\-post\-desc\-symbol}%
{%
\initvalempty
%\providedby{\sty{glossaries-extra} v1.0+}
\note{requires \code{\csfmt{usepackage}\oarg{\opt{symbols}}\marg{glossaries-extra}}}
\desc{the default \gls{postdeschook} for the \cat{symbol} category}
}
% \glsxtrpostdescnumber
\gcmd{gls\-xtr\-post\-desc\-number}%
{%
\initvalempty
%\providedby{\sty{glossaries-extra} v1.0+}
\note{requires \code{\csfmt{usepackage}\oarg{\opt{numbers}}\marg{glossaries-extra}}}
\desc{the default post-description hook for the \cat{number} category}
}
% \glsxtrpostdescindex
\gcmd{gls\-xtr\-post\-desc\-index}%
{%
\initvalempty
%\providedby{\sty{glossaries-extra} v1.0+}
\note{requires \code{\csfmt{usepackage}\oarg{\opt{index}}\marg{glossaries-extra}}}
\desc{the default post-description hook for the \cat{index} category}
}
% \glsxtrpostdescterm
\gcmd{gls\-xtr\-post\-desc\-term}%
{%
\initvalempty
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{the default post-description hook for the \catfmt{term} category
(which isn't used by \sty{glossaries-extra})}
}
% \glsxtrpostdescacronym
\gcmd{gls\-xtr\-post\-desc\-acronym}%
{%
\initvalempty
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{the default post-description hook for the \cat{acronym} category}
}
% \glsxtrpostdescabbreviation
\gcmd{gls\-xtr\-post\-desc\-ab\-bre\-vi\-a\-tion}%
{%
\initvalempty
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{the default post-description hook for the \cat{abbreviation} category}
}
% \glsxtrrestorepostpunc
\gcmd{glsxtrrestorepostpunc}
{
\providedby{\sty{glossaries-extra} v1.23+}
\desc{used in the \gloskey{description} to counteract the use of
\gls{glsxtrnopostpunc}. Does nothing outside of the \idx{glossary}}
}
% \glsxtrnopostpunc
\gcmd{gls\-xtr\-no\-post\-punc}
{%
\providedby{\sty{glossaries-extra} v1.22+}
\desc{when placed at the end of the \gloskey{description}, this
switches off the post-description punctuation (inserted
automatically via options such as \opt{postdot}) but doesn't
suppress the \idx{postdeschook}. Does nothing outside of the
\idx{glossary}}
\field{seealso}{nopostdesc}
}
% \nopostdesc
\gcmd{no\-post\-desc}
{%
\providedby{\sty{glossaries} v1.17+}
\desc{when placed at the end of the \gloskey{description}, this
switches off the \idx{postdeschook} (including the
post-description punctuation). Does nothing outside of the
\idx{glossary}}
\field{seealso}{glsxtrnopostpunc}
}
% \glscurrententrylabel
\gcmd{gls\-current\-entry\-label}
{
\providedby{\sty{glossaries} v3.02+}
\desc{assigned at the start of each entry item within the
glossary. This command may be used by glossary hooks, such
as the \idx{postdeschook}, to reference the current entry}
}
% COMMANDS: longextra
% \glslongextraNameFmt
\gcmd{gls\-long\-extra\-Name\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.37+}
\syntax{\margm{entry-label}}
\desc{used by the \sty{glossary-longextra} styles to add the
hypertarget (if supported) and display a top-level entry's name}
}
% \glslongextraSubNameFmt
\gcmd{gls\-long\-extra\-Sub\-Name\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.37+}
\syntax{\margm{level}\margm{entry-label}}
\desc{used by the \sty{glossary-longextra} styles to add the
hypertarget (if supported) for child-entries. The name isn't
shown by default}
}
% \glslongextraDescFmt
\gcmd{gls\-long\-extra\-Desc\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.37+}
\syntax{\margm{entry-label}}
\desc{used by the \sty{glossary-longextra} styles to display a
top-level entry's description and \idx{postdeschook}}
}
% \glslongextraSubDescFmt
\gcmd{gls\-long\-extra\-Sub\-Desc\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.37+}
\syntax{\margm{level}\margm{entry-label}}
\desc{used by the \sty{glossary-longextra} styles to display a
child entry's description and \idx{postdeschook}}
}
% \glslongextraSymbolFmt
\gcmd{gls\-long\-extra\-Symbol\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.37+}
\syntax{\margm{entry-label}}
\desc{used by the \sty{glossary-longextra} styles to display a
top-level entry's symbol}
}
% \glslongextraSubSymbolFmt
\gcmd{gls\-long\-extra\-Sub\-Symbol\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.37+}
\syntax{\margm{level}\margm{entry-label}}
\desc{used by the \sty{glossary-longextra} styles to display a
child entry's symbol}
}
% \glslongextraSymbolTargetFmt
\gcmd{gls\-long\-extra\-Symbol\-Target\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.49+}
\syntax{\margm{entry-label}}
\desc{adds the hypertarget (if supported) and displays the
symbol for top-level entries}
}
% \glslongextraSubSymbolTargetFmt
\gcmd{gls\-long\-extra\-Sub\-Symbol\-Target\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.49+}
\syntax{\margm{level}\margm{entry-label}}
\desc{adds the hypertarget (if supported) and displays the
symbol for child entries}
}
% \glslongextraSymbolOrName
\gcmd{gls\-long\-extra\-Symbol\-Or\-Name}
{
\providedby{\sty{glossary-longextra} v1.49+}
\syntax{\margm{entry-label}}
\desc{adds the hypertarget (if supported) and displays the
symbol if set or the name otherwise for top-level entries}
}
% \glslongextraSubSymbolOrName
\gcmd{gls\-long\-extra\-Sub\-Symbol\-Or\-Name}
{
\providedby{\sty{glossary-longextra} v1.49+}
\syntax{\margm{level}\margm{entry-label}}
\desc{adds the hypertarget (if supported) and displays the
symbol if set or the name otherwise for child entries}
}
% \glslongextraLocationFmt
\gcmd{gls\-long\-extra\-Location\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.37+}
\syntax{\margm{entry-label}\margm{location list}}
\desc{used by the \sty{glossary-longextra} styles to display a
top-level entry's \idx{locationlist}}
}
% \glslongextraSubLocationFmt
\gcmd{gls\-long\-extra\-Sub\-Location\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.37+}
\syntax{\margm{level}\margm{entry-label}\margm{location list}}
\desc{used by the \sty{glossary-longextra} styles to display a
child entry's \idx{locationlist}}
}
% \glslongextraHeaderFmt
\gcmd{gls\-long\-extra\-Header\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.37+}
\syntax{\margm{text}}
\desc{used to format the column headers}
}
% \ifGlsLongExtraUseTabular
\gcond{if\-Gls\-Long\-Extra\-Use\-Tabular}
{
\providedby{\sty{glossary-longextra} v1.37+}
\initvalcs{iffalse}
\desc{conditional that determines whether or not to use
\env{tabular} instead of \env{longtable}. If this conditional is
changed, it must be changed before the style is set}
}
% \GlsLongExtraUseTabulartrue
\gcmd{Gls\-Long\-Extra\-Use\-Tabular\-true}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{sets \gls{ifGlsLongExtraUseTabular} to true (if this
setting is required, the style must be set after this command)}
}
% \GlsLongExtraUseTabularfalse
\gcmd{Gls\-Long\-Extra\-Use\-Tabular\-false}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{sets \gls{ifGlsLongExtraUseTabular} to false (if this
setting is required, the style must be set after this command)}
}
% \glslongextraTabularVAlign
\gcmd{gls\-long\-extra\-Tabular\-V\-Align}
{
\providedby{\sty{glossary-longextra} v1.37+}
\initval{c}
\desc{only for use with the \env{tabular} setting, this should
expand to the \env{tabular} environment's vertical alignment
specifier}
}
% \glslongextraNameAlign
\gcmd{gls\-long\-extra\-Name\-Align}
{
\providedby{\sty{glossary-longextra} v1.37+}
\initval{l}
\desc{the horizontal alignment for the name column}
}
% \glslongextraSymbolAlign
\gcmd{gls\-long\-extra\-Symbol\-Align}
{
\providedby{\sty{glossary-longextra} v1.37+}
\initval{c}
\desc{the horizontal alignment for the symbol column}
}
% \glslongextraSymbolNameAlign
\gcmd{gls\-long\-extra\-Symbol\-Name\-Align}
{
\providedby{\sty{glossary-longextra} v1.49+}
\initval{l}
\desc{the horizontal alignment for the symbol column when it's
being used instead of the name}
}
% \glslongextraDescAlign
\gcmd{gls\-long\-extra\-Desc\-Align}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{the horizontal alignment for the description column}
}
% \glslongextraLocationAlign
\gcmd{gls\-long\-extra\-Location\-Align}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{the horizontal alignment for the \idx{locationlist} column}
}
% \glslongextraGroupHeading
\gcmd{gls\-long\-extra\-Group\-Head\-ing}
{
\providedby{\sty{glossary-longextra} v1.37+}
\syntax{\margm{number columns}\margm{group-label}}
\desc{formats the top-level \idx{group} heading}
}
% \glslongextraSubGroupHeading
\gcmd{gls\-long\-extra\-Sub\-Group\-Head\-ing}
{
\providedby{\sty{glossary-longextra} v1.49+}
\syntax{\margm{number columns}\margm{prev group
level}\margm{group level}\margm{parent-entry-label}\margm{group-label}}
\desc{formats the sub-\idx{group} heading, if supported}
}
% \glslongextraNameDescHeader
\gcmd{gls\-long\-extra\-Name\-Desc\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{sets the header and footer for the \glostyle{long-name-desc}
style with \env{longtable}}
}
% \glslongextraNameDescTabularHeader
\gcmd{gls\-long\-extra\-Name\-Desc\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the header for the \glostyle{long-name-desc} style}
}
% \glslongextraNameDescTabularFooter
\gcmd{gls\-long\-extra\-Name\-Desc\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the footer for the \glostyle{long-name-desc} style}
}
% \glslongextraNameDescLocationHeader
\gcmd{gls\-long\-extra\-Name\-Desc\-Location\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{sets the header and footer for the \glostyle{long-name-desc-loc}
style with \env{longtable}}
}
% \glslongextraNameDescLocationTabularHeader
\gcmd{gls\-long\-extra\-Name\-Desc\-Location\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the header for the \glostyle{long-name-desc-loc} style}
}
% \glslongextraNameDescLocationTabularFooter
\gcmd{gls\-long\-extra\-Name\-Desc\-Location\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the footer for the \glostyle{long-name-desc-loc} style}
}
% \glslongextraDescNameHeader
\gcmd{gls\-long\-extra\-Desc\-Name\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{sets the header and footer for the \glostyle{long-desc-name}
style with \env{longtable}}
}
% \glslongextraDescNameTabularHeader
\gcmd{gls\-long\-extra\-Desc\-Name\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the header for the \glostyle{long-desc-name} style}
}
% \glslongextraDescNameTabularFooter
\gcmd{gls\-long\-extra\-Desc\-Name\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the footer for the \glostyle{long-desc-name} style}
}
% \glslongextraLocationDescNameHeader
\gcmd{gls\-long\-extra\-Location\-Desc\-Name\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{sets the header and footer for the \glostyle{long-loc-desc-name}
style with \env{longtable}}
}
% \glslongextraLocationDescNameTabularHeader
\gcmd{gls\-long\-extra\-Location\-Desc\-Name\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the header for the \glostyle{long-loc-desc-name} style}
}
% \glslongextraLocationDescNameTabularFooter
\gcmd{gls\-long\-extra\-Location\-Desc\-Name\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the footer for the \glostyle{long-loc-desc-name} style}
}
% \glslongextraNameDescSymHeader
\gcmd{gls\-long\-extra\-Name\-Desc\-Sym\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{sets the header and footer for the \glostyle{long-name-desc-sym}
style with \env{longtable}}
}
% \glslongextraNameDescSymTabularHeader
\gcmd{gls\-long\-extra\-Name\-Desc\-Sym\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the header for the \glostyle{long-name-desc-sym} style}
}
% \glslongextraNameDescSymTabularFooter
\gcmd{gls\-long\-extra\-Name\-Desc\-Sym\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the footer for the \glostyle{long-name-desc-sym} style}
}
% \glslongextraNameDescSymLocationHeader
\gcmd{gls\-long\-extra\-Name\-Desc\-Sym\-Location\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{sets the header and footer for the \glostyle{long-name-desc-sym-loc}
style with \env{longtable}}
}
% \glslongextraNameDescSymLocationTabularHeader
\gcmd{gls\-long\-extra\-Name\-Desc\-Sym\-Location\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the header for the \glostyle{long-name-desc-sym-loc} style}
}
% \glslongextraNameDescSymLocationTabularFooter
\gcmd{gls\-long\-extra\-Name\-Desc\-Sym\-Location\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the footer for the \glostyle{long-name-desc-sym-loc} style}
}
% \glslongextraNameSymDescHeader
\gcmd{gls\-long\-extra\-Name\-Sym\-Desc\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{sets the header and footer for the \glostyle{long-name-sym-desc}
style with \env{longtable}}
}
% \glslongextraNameSymDescTabularHeader
\gcmd{gls\-long\-extra\-Name\-Sym\-Desc\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the header for the \glostyle{long-name-sym-desc} style}
}
% \glslongextraNameSymDescTabularFooter
\gcmd{gls\-long\-extra\-Name\-Sym\-Desc\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the footer for the \glostyle{long-name-sym-desc} style}
}
% \glslongextraNameSymDescLocationHeader
\gcmd{gls\-long\-extra\-Name\-Sym\-Desc\-Location\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{sets the header and footer for the \glostyle{long-name-sym-desc-loc}
style with \env{longtable}}
}
% \glslongextraNameSymDescLocationTabularHeader
\gcmd{gls\-long\-extra\-Name\-Sym\-Desc\-Location\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the header for the \glostyle{long-name-sym-desc-loc} style}
}
% \glslongextraNameSymDescLocationTabularFooter
\gcmd{gls\-long\-extra\-Name\-Sym\-Desc\-Location\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the footer for the \glostyle{long-name-sym-desc-loc} style}
}
% \glslongextraSymDescNameHeader
\gcmd{gls\-long\-extra\-Sym\-Desc\-Name\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{sets the header and footer for the \glostyle{long-sym-desc-name}
style with \env{longtable}}
}
% \glslongextraSymDescNameTabularHeader
\gcmd{gls\-long\-extra\-Sym\-Desc\-Name\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the header for the \glostyle{long-sym-desc-name} style}
}
% \glslongextraSymDescNameTabularFooter
\gcmd{gls\-long\-extra\-Sym\-Desc\-Name\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the footer for the \glostyle{long-sym-desc-name} style}
}
% \glslongextraLocationSymDescNameHeader
\gcmd{gls\-long\-extra\-Location\-Sym\-Desc\-Name\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{sets the header and footer for the \glostyle{long-loc-sym-desc-name}
style with \env{longtable}}
}
% \glslongextraLocationSymDescNameTabularHeader
\gcmd{gls\-long\-extra\-Location\-Sym\-Desc\-Name\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the header for the \glostyle{long-loc-sym-desc-name} style}
}
% \glslongextraLocationSymDescNameTabularFooter
\gcmd{gls\-long\-extra\-Location\-Sym\-Desc\-Name\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the footer for the \glostyle{long-loc-sym-desc-name} style}
}
% \glslongextraDescSymNameHeader
\gcmd{gls\-long\-extra\-Desc\-Sym\-Name\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{sets the header and footer for the \glostyle{long-desc-sym-name}
style with \env{longtable}}
}
% \glslongextraDescSymNameTabularHeader
\gcmd{gls\-long\-extra\-Desc\-Sym\-Name\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the header for the \glostyle{long-desc-sym-name} style}
}
% \glslongextraDescSymNameTabularFooter
\gcmd{gls\-long\-extra\-Desc\-Sym\-Name\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the footer for the \glostyle{long-desc-sym-name} style}
}
% \glslongextraLocationDescSymNameHeader
\gcmd{gls\-long\-extra\-Location\-Desc\-Sym\-Name\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{sets the header and footer for the \glostyle{long-loc-desc-sym-name}
style with \env{longtable}}
}
% \glslongextraLocationDescSymNameTabularHeader
\gcmd{gls\-long\-extra\-Location\-Desc\-Sym\-Name\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the header for the \glostyle{long-loc-desc-sym-name} style}
}
% \glslongextraLocationDescSymNameTabularFooter
\gcmd{gls\-long\-extra\-Location\-Desc\-Sym\-Name\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{displays the footer for the \glostyle{long-loc-desc-sym-name} style}
}
% \glslongextraDescSymHeader
\gcmd{gls\-long\-extra\-Desc\-Sym\-Header}
{
\providedby{\sty{glossary-longextra} v1.49+}
\desc{sets the header and footer for the \glostyle{long-desc-sym}
style with \env{longtable}}
}
% \glslongextraDescSymTabularHeader
\gcmd{gls\-long\-extra\-Desc\-Sym\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.49+}
\desc{displays the header for the \glostyle{long-desc-sym} style}
}
% \glslongextraDescSymTabularFooter
\gcmd{gls\-long\-extra\-Desc\-Sym\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.49+}
\desc{displays the footer for the \glostyle{long-desc-sym} style}
}
% \glslongextraSymDescHeader
\gcmd{gls\-long\-extra\-Sym\-Desc\-Header}
{
\providedby{\sty{glossary-longextra} v1.49+}
\desc{sets the header and footer for the \glostyle{long-sym-desc}
style with \env{longtable}}
}
% \glslongextraSymDescTabularHeader
\gcmd{gls\-long\-extra\-Sym\-Desc\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.49+}
\desc{displays the header for the \glostyle{long-sym-desc} style}
}
% \glslongextraSymDescTabularFooter
\gcmd{gls\-long\-extra\-Sym\-Desc\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.49+}
\desc{displays the footer for the \glostyle{long-sym-desc} style}
}
% \glslongextraShortLongTabularHeader
\gcmd{gls\-long\-extra\-Short\-Long\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.49+}
\desc{displays the header for the \glostyle{abbr-short-long} style}
}
% \glslongextraShortLongTabularFooter
\gcmd{gls\-long\-extra\-Short\-Long\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.49+}
\desc{displays the footer for the \glostyle{abbr-short-long} style}
}
% \glslongextraShortLongHeader
\gcmd{gls\-long\-extra\-Short\-Long\-Header}
{
\providedby{\sty{glossary-longextra} v1.49+}
\desc{sets the header and footer for the \glostyle{abbr-short-long}
style with \env{longtable}}
}
% \glslongextraLongShortTabularHeader
\gcmd{gls\-long\-extra\-Long\-Short\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.49+}
\desc{displays the header for the \glostyle{abbr-short-long} style}
}
% \glslongextraLongShortTabularFooter
\gcmd{gls\-long\-extra\-Long\-Short\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.49+}
\desc{displays the footer for the \glostyle{abbr-short-long} style}
}
% \glslongextraLongShortHeader
\gcmd{gls\-long\-extra\-Long\-Short\-Header}
{
\providedby{\sty{glossary-longextra} v1.49+}
\desc{sets the header and footer for the \glostyle{abbr-short-long}
style with \env{longtable}}
}
% \glslongextraShortNoNameSetDescWidth
\gcmd{gls\-long\-extra\-Short\-No\-Name\-Set\-Desc\-Width}
{
\providedby{\sty{glossary-longextra} v1.49+}
\desc{sets the value of \gls{glsdescwidth} for the
\glostyle{abbr-long-short} and \glostyle{abbr-short-long}
styles}
}
% \glslongextraShortHeader
\gcmd{gls\-long\-extra\-Short\-Head\-er}
{
\providedby{\sty{glossary-longextra} v1.49+}
\initvalcs{entryname}
\desc{the short column header for the
\glostyle{abbr-long-short} and \glostyle{abbr-short-long}
styles}
}
% \glslongextraLongHeader
\gcmd{gls\-long\-extra\-Long\-Head\-er}
{
\providedby{\sty{glossary-longextra} v1.49+}
\initvalcs{descriptionname}
\desc{the long column header for the
\glostyle{abbr-long-short} and \glostyle{abbr-short-long}
styles}
}
% \glslongextraShortTargetFmt
\gcmd{gls\-long\-extra\-Short\-Target\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the formatting, including the target, for the short form in the
\glostyle{abbr-long-short} and \glostyle{abbr-short-long}
styles}
}
% \glslongextraLongFmt
\gcmd{gls\-long\-extra\-Long\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the formatting for the long form in the
\glostyle{abbr-long-short} and \glostyle{abbr-short-long}
styles}
}
% \glslongextraSubShortTargetFmt
\gcmd{gls\-long\-extra\-Sub\-Short\-Target\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.49+}
\syntax{\margm{level}\margm{entry-label}}
\desc{the formatting, including the target, for child entry short forms in the
\glostyle{abbr-long-short} and \glostyle{abbr-short-long}
styles}
}
% \glslongextraSubLongFmt
\gcmd{gls\-long\-extra\-Sub\-Long\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.49+}
\syntax{\margm{level}\margm{entry-label}}
\desc{the formatting for child entry long forms in the
\glostyle{abbr-long-short} and \glostyle{abbr-short-long}
styles}
}
% \glslongextraSetWidest
\gcmd{gls\-long\-extra\-Set\-Widest}
{
\providedby{\sty{glossary-longextra} v1.37+}
\syntax{\margm{widest-name}}
\desc{identifies \meta{widest-name} as the widest top-level name}
}
% \glslongextraUpdateWidest
\gcmd{gls\-long\-extra\-Update\-Widest}
{
\providedby{\sty{glossary-longextra} v1.37+}
\syntax{\margm{name}}
\desc{if \meta{name} is wider than the current widest name, it
will be set as the new widest name}
}
% \glslongextraUpdateWidestChild
\gcmd{gls\-long\-extra\-Update\-Widest\-Child}
{
\providedby{\sty{glossary-longextra} v1.37+}
\syntax{\margm{level}\margm{name}}
\desc{as \gls{glslongextraUpdateWidest} but for child entries.
Does nothing by default}
}
% \glslongextraSetDescWidth
\gcmd{gls\-long\-extra\-Set\-Desc\-Width}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{computes the value of \gls{glsdescwidth} according to the
widest name for styles that only show the name and description}
}
% \glslongextraSymSetDescWidth
\gcmd{gls\-long\-extra\-Sym\-Set\-Desc\-Width}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{computes the value of \gls{glsdescwidth} according to the
widest name for styles that only show the name, symbol and description}
}
% \glslongextraSymNoNameSetDescWidth
\gcmd{gls\-long\-extra\-Sym\-No\-Name\-Set\-Desc\-Width}
{
\providedby{\sty{glossary-longextra} v1.49+}
\desc{computes the value of \gls{glsdescwidth} according to the
widest name for styles that only show the symbol and description}
}
% \glslongextraLocSetDescWidth
\gcmd{gls\-long\-extra\-Loc\-Set\-Desc\-Width}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{computes the value of \gls{glsdescwidth} according to the
widest name for styles that only show the name, \idx{locationlist} and description}
}
% \glslongextraSymLocSetDescWidth
\gcmd{gls\-long\-extra\-Sym\-Loc\-Set\-Desc\-Width}
{
\providedby{\sty{glossary-longextra} v1.37+}
\desc{computes the value of \gls{glsdescwidth} according to the
widest name for styles that show the name, symbol, \idx{locationlist} and description}
}
% \glslongextraCustomIField
\gcmd{gls\-long\-extra\-Custom\-I\-Field}
{
\providedby{\sty{glossary-longextra} v1.50+}
\initval{\glosfield{useri}}
\desc{expands to the \idx{internalfieldname} of the first custom field}
}
% \glslongextraCustomIIField
\gcmd{gls\-long\-extra\-Custom\-II\-Field}
{
\providedby{\sty{glossary-longextra} v1.50+}
\initval{\glosfield{userii}}
\desc{expands to the \idx{internalfieldname} of the second custom field}
}
% \glslongextraCustomIIIField
\gcmd{gls\-long\-extra\-Custom\-III\-Field}
{
\providedby{\sty{glossary-longextra} v1.50+}
\initval{\glosfield{useriii}}
\desc{expands to the \idx{internalfieldname} of the third custom field}
}
% \glslongextraCustomIHeader
\gcmd{gls\-long\-extra\-Custom\-I\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{expands to the header name of the first custom column}
}
% \glslongextraCustomIIHeader
\gcmd{gls\-long\-extra\-Custom\-II\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{expands to the header name of the second custom column}
}
% \glslongextraCustomIIIHeader
\gcmd{gls\-long\-extra\-Custom\-III\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{expands to the header name of the third custom column}
}
% \glslongextraCustomIFmt
\gcmd{gls\-long\-extra\-Custom\-I\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.50+}
\syntax{\margm{entry-label}}
\desc{the format of the first custom entry}
}
% \glslongextraCustomIIFmt
\gcmd{gls\-long\-extra\-Custom\-II\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.50+}
\syntax{\margm{entry-label}}
\desc{the format of the second custom entry}
}
% \glslongextraCustomIIIFmt
\gcmd{gls\-long\-extra\-Custom\-III\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.50+}
\syntax{\margm{entry-label}}
\desc{the format of the third custom entry}
}
% \glslongextraSubCustomIFmt
\gcmd{gls\-long\-extra\-Sub\-Custom\-I\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.50+}
\syntax{\margm{level}\margm{entry-label}}
\desc{the format of the first custom sub-entry}
}
% \glslongextraSubCustomIIFmt
\gcmd{gls\-long\-extra\-Sub\-Custom\-II\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.50+}
\syntax{\margm{level}\margm{entry-label}}
\desc{the format of the second custom sub-entry}
}
% \glslongextraSubCustomIIIFmt
\gcmd{gls\-long\-extra\-Sub\-Custom\-III\-Fmt}
{
\providedby{\sty{glossary-longextra} v1.50+}
\syntax{\margm{level}\margm{entry-label}}
\desc{the format of the third custom sub-entry}
}
% \glslongextraCustomIAlign
\gcmd{gls\-long\-extra\-Custom\-I\-Align}
{
\providedby{\sty{glossary-longextra} v1.50+}
\initval{l}
\desc{expands to the column alignment for the first custom field}
}
% \glslongextraCustomIIAlign
\gcmd{gls\-long\-extra\-Custom\-II\-Align}
{
\providedby{\sty{glossary-longextra} v1.50+}
\initval{l}
\desc{expands to the column alignment for the second custom field}
}
% \glslongextraCustomIIIAlign
\gcmd{gls\-long\-extra\-Custom\-III\-Align}
{
\providedby{\sty{glossary-longextra} v1.50+}
\initval{l}
\desc{expands to the column alignment for the third custom field}
}
% \glslongextraCustomTabularFooter
\gcmd{gls\-long\-extra\-Custom\-Tabular\-Footer}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the footer for the custom styles}
}
% \glslongextraNameCustomIHeader
\gcmd{gls\-long\-extra\-Name\-Custom\-I\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \env{longtable} \glostyle{long-name-custom1} style}
}
% \glslongextraNameCustomITabularHeader
\gcmd{gls\-long\-extra\-Name\-Custom\-I\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \glostyle{long-name-custom1} style}
}
% \glslongextraNameCustomIIHeader
\gcmd{gls\-long\-extra\-Name\-Custom\-II\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \env{longtable} \glostyle{long-name-custom2} style}
}
% \glslongextraNameCustomIITabularHeader
\gcmd{gls\-long\-extra\-Name\-Custom\-II\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \glostyle{long-name-custom2} style}
}
% \glslongextraNameCustomIIIHeader
\gcmd{gls\-long\-extra\-Name\-Custom\-III\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \env{longtable} \glostyle{long-name-custom3} style}
}
% \glslongextraNameCustomIIITabularHeader
\gcmd{gls\-long\-extra\-Name\-Custom\-III\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \glostyle{long-name-custom3} style}
}
% \glslongextraCustomINameHeader
\gcmd{gls\-long\-extra\-Custom\-I\-Name\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \env{longtable} \glostyle{long-custom1-name} style}
}
% \glslongextraCustomINameTabularHeader
\gcmd{gls\-long\-extra\-Custom\-I\-Name\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \glostyle{long-custom1-name} style}
}
% \glslongextraCustomIINameHeader
\gcmd{gls\-long\-extra\-Custom\-II\-Name\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \env{longtable} \glostyle{long-custom2-name} style}
}
% \glslongextraCustomIINameTabularHeader
\gcmd{gls\-long\-extra\-Custom\-II\-Name\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \glostyle{long-custom2-name} style}
}
% \glslongextraCustomIIINameHeader
\gcmd{gls\-long\-extra\-Custom\-III\-Name\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \env{longtable} \glostyle{long-custom3-name} style}
}
% \glslongextraCustomIIINameTabularHeader
\gcmd{gls\-long\-extra\-Custom\-III\-Name\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \glostyle{long-custom3-name} style}
}
% \glslongextraCustomISetDescWidth
\gcmd{gls\-long\-extra\-Custom\-I\-Set\-Desc\-Width}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{used to set the length \gls{glsdescwidth} for
\glostyle{long-name-custom1-desc} style}
}
% \glslongextraCustomIISetDescWidth
\gcmd{gls\-long\-extra\-Custom\-II\-Set\-Desc\-Width}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{used to set the length \gls{glsdescwidth} for
\glostyle{long-name-custom2-desc} style}
}
% \glslongextraCustomIIISetDescWidth
\gcmd{gls\-long\-extra\-Custom\-III\-Set\-Desc\-Width}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{used to set the length \gls{glsdescwidth} for
\glostyle{long-name-custom3-desc} style}
}
% \glslongextraNameCustomIDescHeader
\gcmd{gls\-long\-extra\-Name\-Custom\-I\-Desc\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \env{longtable} \glostyle{long-name-custom1-desc} style}
}
% \glslongextraNameCustomIDescTabularHeader
\gcmd{gls\-long\-extra\-Name\-Custom\-I\-Desc\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \glostyle{long-name-custom1-desc} style}
}
% \glslongextraNameCustomIIDescHeader
\gcmd{gls\-long\-extra\-Name\-Custom\-II\-Desc\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \env{longtable} \glostyle{long-name-custom2-desc} style}
}
% \glslongextraNameCustomIIDescTabularHeader
\gcmd{gls\-long\-extra\-Name\-Custom\-II\-Desc\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \glostyle{long-name-custom2-desc} style}
}
% \glslongextraNameCustomIIIDescHeader
\gcmd{gls\-long\-extra\-Name\-Custom\-III\-Desc\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \env{longtable} \glostyle{long-name-custom3-desc} style}
}
% \glslongextraNameCustomIIIDescTabularHeader
\gcmd{gls\-long\-extra\-Name\-Custom\-III\-Desc\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \glostyle{long-name-custom3-desc} style}
}
% \glslongextraDescCustomINameHeader
\gcmd{gls\-long\-extra\-Desc\-Custom\-I\-Name\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \env{longtable} \glostyle{long-desc-custom1-name} style}
}
% \glslongextraDescCustomINameTabularHeader
\gcmd{gls\-long\-extra\-Desc\-Custom\-I\-Name\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \glostyle{long-desc-custom1-name} style}
}
% \glslongextraDescCustomIINameHeader
\gcmd{gls\-long\-extra\-Desc\-Custom\-II\-Name\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \env{longtable} \glostyle{long-desc-custom2-name} style}
}
% \glslongextraDescCustomIINameTabularHeader
\gcmd{gls\-long\-extra\-Desc\-Custom\-II\-Name\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \glostyle{long-desc-custom2-name} style}
}
% \glslongextraDescCustomIIINameHeader
\gcmd{gls\-long\-extra\-Desc\-Custom\-III\-Name\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \env{longtable} \glostyle{long-desc-custom3-name} style}
}
% \glslongextraDescCustomIIINameTabularHeader
\gcmd{gls\-long\-extra\-Desc\-Custom\-III\-Name\-Tabular\-Header}
{
\providedby{\sty{glossary-longextra} v1.50+}
\desc{the header for the \glostyle{long-desc-custom3-name} style}
}
% COMMANDS: bookindex
% \glsxtrbookindexname
\gcmd{gls\-xtr\-book\-index\-name}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{entry-label}}
\desc{used by the \glostyle{bookindex} style to display a
top-level entry's name}
}
% \glsxtrbookindexsubname
\gcmd{gls\-xtr\-book\-index\-sub\-name}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{entry-label}}
\desc{used by the \glostyle{bookindex} style to display a
child entry's name}
}
% \glsxtrbookindexpregroupskip
\gcmd{gls\-xtr\-book\-index\-pre\-group\-skip}
{
\providedby{\sty{glossary-bookindex} v1.49+}
\syntax{\margm{skip}}
\desc{used by the \glostyle{bookindex} style insert \meta{skip}
after a \idx{group} header}
}
% \glsxtrbookindexcols
\gcmd{gls\-xtr\-book\-index\-cols}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\initval{2}
\desc{expands to the number of columns for the \glostyle{bookindex} style}
}
% \glsxtrbookindexformatsubheader
\gcmd{gls\-xtr\-book\-index\-format\-sub\-header}
{
\providedby{\sty{glossary-bookindex} v1.49+}
\syntax{\margm{previous level}\margm{level}\margm{parent-label}\margm{group-label}\margm{title}}
\desc{formats the sub-group header}
}
% \glsxtrbookindexcolspread
\gcmd{gls\-xtr\-book\-index\-col\-spread}
{
\providedby{\sty{glossary-bookindex} v1.12+}
\desc{if not empty this should expand to the option argument for
\env{multicols}}
}
% \glsxtrbookindexmulticolsenv
\gcmd{gls\-xtr\-book\-index\-multi\-cols\-env}
{
\providedby{\sty{glossary-bookindex} v1.25+}
\desc{expands to the name of the \env{multicols} environment to use}
}
% \glsxtrbookindexprelocation
\gcmd{gls\-xtr\-book\-index\-pre\-lo\-ca\-tion}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{entry-label}}
\desc{used by the \glostyle{bookindex} style to display
a separator before top-level \idxpl{locationlist}}
}
% \glsxtrbookindexsubprelocation
\gcmd{gls\-xtr\-book\-index\-sub\-pre\-lo\-ca\-tion}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{entry-label}}
\desc{used by the \glostyle{bookindex} style to display
a separator before child \idxpl{locationlist}}
}
% \glsxtrbookindexlocation
\gcmd{gls\-xtr\-book\-index\-lo\-ca\-tion}
{
\providedby{\sty{glossary-bookindex} v1.39+}
\syntax{\margm{entry-label}\margm{location list}}
\desc{used by the \glostyle{bookindex} style to display
top-level \idxpl{locationlist}}
}
% \glsxtrbookindexsublocation
\gcmd{gls\-xtr\-book\-index\-sub\-lo\-ca\-tion}
{
\providedby{\sty{glossary-bookindex} v1.39+}
\syntax{\margm{entry-label}\margm{location list}}
\desc{used by the \glostyle{bookindex} style to display
child \idxpl{locationlist}}
}
% \glsxtrbookindexparentchildsep
\gcmd{gls\-xtr\-book\-index\-parent\-child\-sep}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\desc{used by the \glostyle{bookindex} style to separate
a top-level parent and child entry}
}
% \glsxtrbookindexparentsubchildsep
\gcmd{gls\-xtr\-book\-index\-parent\-sub\-child\-sep}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\desc{used by the \glostyle{bookindex} style to separate
a sub-level parent and child entry}
}
% \glsxtrbookindexbetween
\gcmd{gls\-xtr\-book\-index\-between}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{entry1-label}\margm{entry2-label}}
\desc{used by the \glostyle{bookindex} style between two
entries where \meta{entry1-label} is the last top-level entry
and \meta{entry2-label} is the next entry, which is a top-level
entry}
}
% \glsxtrbookindexsubbetween
\gcmd{gls\-xtr\-book\-index\-sub\-between}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{entry1-label}\margm{entry2-label}}
\desc{as \gls{glsxtrbookindexbetween} but for level~1 entries}
}
% \glsxtrbookindexsubsubbetween
\gcmd{gls\-xtr\-book\-index\-sub\-sub\-between}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{entry1-label}\margm{entry2-label}}
\desc{as \gls{glsxtrbookindexbetween} but for level~2 entries}
}
% \glsxtrbookindexatendgroup
\gcmd{gls\-xtr\-book\-index\-at\-end\-group}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{entry-label}}
\desc{used by the \glostyle{bookindex} style at the end of a
letter group (where the last top-level entry is given by \meta{entry-label})}
}
% \glsxtrbookindexsubatendgroup
\gcmd{gls\-xtr\-book\-index\-sub\-at\-end\-group}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{entry-label}}
\desc{used by the \glostyle{bookindex} style at the end of a
letter group (where the last level~1 entry is given by \meta{entry-label})}
}
% \glsxtrbookindexsubsubatendgroup
\gcmd{gls\-xtr\-book\-index\-sub\-sub\-at\-end\-group}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{entry-label}}
\desc{used by the \glostyle{bookindex} style at the end of a
letter group (where the last level~2 entry is given by \meta{entry-label})}
}
% \glsxtrbookindexbookmark
\gcmd{gls\-xtr\-book\-index\-bookmark}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{group-title}\margm{bookmark-name}}
\desc{adds a bookmark with \gls{pdfbookmark}, if supported}
}
% \glsxtrbookindexformatheader
\gcmd{gls\-xtr\-book\-index\-format\-header}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{group-title}}
\desc{used by the \glostyle{bookindex} style to format a \idx{group} header}
}
% \glsxtrbookindexmarkentry
\gcmd{gls\-xtr\-book\-index\-mark\-entry}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{entry-label}}
\desc{used by the \glostyle{bookindex} style to mark an entry in
the \ext{aux} file}
}
% \glsxtrbookindexfirstmarkfmt
\gcmd{gls\-xtr\-book\-index\-first\-mark\-fmt}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{entry-label}}
\desc{used by the \glostyle{bookindex} style to format the first mark}
}
% \glsxtrbookindexfirstmark
\gcmd{gls\-xtr\-book\-index\-first\-mark}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{entry-label}}
\desc{used by the \glostyle{bookindex} style to obtain the first mark
and, if found, format it with \gls{glsxtrbookindexfirstmarkfmt}}
}
% \glsxtrbookindexlastmarkfmt
\gcmd{gls\-xtr\-book\-index\-last\-mark\-fmt}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{entry-label}}
\desc{used by the \glostyle{bookindex} style to format the last mark}
}
% \glsxtrbookindexlastmark
\gcmd{gls\-xtr\-book\-index\-last\-mark}
{
\providedby{\sty{glossary-bookindex} v1.21+}
\syntax{\margm{entry-label}}
\desc{used by the \glostyle{bookindex} style to obtain the last mark
and, if found, format it with \gls{glsxtrbookindexlastmarkfmt}}
}
% COMMANDS: topic
% \glstopicGroupHeading
\gcmd{gls\-topic\-Group\-Heading}
{
\providedby{\sty{glossary-topic} v1.40+}
\syntax{\margm{group-label}}
\desc{used to format the top-level group headings, if required}
}
% \glstopicSubGroupHeading
\gcmd{gls\-topic\-Sub\-Group\-Heading}
{
\providedby{\sty{glossary-topic} v1.49+}
\syntax{\margm{prev group level}\margm{group level}\margm{parent entry}\margm{group-label}}
\desc{used to format the sub-group headings, if supported}
}
% \glstopicItem
\gcmd{gls\-topic\-Item}
{
\providedby{\sty{glossary-topic} v1.40+}
\syntax{\margm{entry-label}\margm{location list}}
\desc{used to format top-level entries}
}
% \glstopicSubItem
\gcmd{gls\-topic\-Sub\-Item}
{
\providedby{\sty{glossary-topic} v1.40+}
\syntax{\margm{level}\margm{entry-label}\margm{location list}}
\desc{used to format child entries}
}
% \glstopicSubItemSep
\gcmd{gls\-topic\-Sub\-Item\-Sep}
{
\providedby{\sty{glossary-topic} v1.40+}
\desc{horizontal separator used after child names}
}
% \glstopicSubItemBox
\gcmd{gls\-topic\-Sub\-Item\-Box}
{
\providedby{\sty{glossary-topic} v1.40+}
\syntax{\margm{level}\margm{text}}
\desc{horizontal box used for child name if a widest name has
been provided}
}
% \glstopicSubNameFont
\gcmd{gls\-topic\-Sub\-Name\-Font}
{
\providedby{\sty{glossary-topic} v1.40+}
\syntax{\margm{text}}
\desc{font command to apply to the child entry name}
}
% \glstopicSubPreLocSep
\gcmd{gls\-topic\-Sub\-Pre\-Loc\-Sep}
{
\providedby{\sty{glossary-topic} v1.41+}
\desc{separator before the child \idxpl{locationlist}}
}
% \glstopicSubLoc
\gcmd{gls\-topic\-Sub\-Loc}
{
\providedby{\sty{glossary-topic} v1.41+}
\syntax{\margm{entry-label}\margm{location list}}
\desc{formats the child \idxpl{locationlist}}
}
% \glstopicPreSkip
\gcmd{gls\-topic\-Pre\-Skip}
{
\providedby{\sty{glossary-topic} v1.40+}
\desc{vertical space inserted before a top-level entry}
}
% \glstopicMidSkip
\gcmd{gls\-topic\-Mid\-Skip}
{
\providedby{\sty{glossary-topic} v1.40+}
\desc{vertical space inserted before the description for a top-level entry}
}
% \glstopicPostSkip
\gcmd{gls\-topic\-Post\-Skip}
{
\providedby{\sty{glossary-topic} v1.40+}
\desc{vertical space inserted after the description for a top-level entry}
}
% \glstopicMarker
\gcmd{gls\-topic\-Marker}
{
\providedby{\sty{glossary-topic} v1.40+}
\syntax{\margm{entry-label}}
\desc{hook inserted before a top-level entry}
}
% \glstopicTitleFont
\gcmd{gls\-topic\-Title\-Font}
{
\providedby{\sty{glossary-topic} v1.40+}
\syntax{\margm{text}}
\desc{font command to apply to the top-level entry title}
}
% \glstopicTitle
\gcmd{gls\-topic\-Title}
{
\providedby{\sty{glossary-topic} v1.40+}
\syntax{\margm{entry-label}}
\desc{used to format the name and (if provided) symbol for the top-level entry title}
}
% \glstopicDesc
\gcmd{gls\-topic\-Desc}
{
\providedby{\sty{glossary-topic} v1.40+}
\syntax{\margm{entry-label}}
\desc{used to format the top-level description}
}
% \glstopicLoc
\gcmd{gls\-topic\-Loc}
{
\providedby{\sty{glossary-topic} v1.40+}
\syntax{\margm{entry-label}\margm{location list}}
\desc{used to format the top-level \idx{locationlist}}
}
% \glstopicParIndent
\gcmd{gls\-topic\-Par\-Indent}
{
\providedby{\sty{glossary-topic} v1.40+}
\desc{length register used for the top-level paragraph indent}
}
% \glstopicSubIndent
\gcmd{gls\-topic\-Sub\-Indent}
{
\providedby{\sty{glossary-topic} v1.40+}
\desc{length register used for the child indent}
}
% \glstopicSubItemParIndent
\gcmd{gls\-topic\-Sub\-Item\-Par\-Indent}
{
\providedby{\sty{glossary-topic} v1.46+}
\desc{length register used for the child paragraph indent}
}
% \glstopicInit
\gcmd{gls\-topic\-Init}
{
\providedby{\sty{glossary-topic} v1.40+}
\desc{initialisation hook}
}
% \glstopicAssignSubIndent
\gcmd{gls\-topic\-Assign\-Sub\-Indent}
{
\providedby{\sty{glossary-topic} v1.40+}
\syntax{\margm{level}}
\desc{used to set the indentation for sub-levels}
}
% \glstopicAssignWidest
\gcmd{gls\-topic\-Assign\-Widest}
{
\providedby{\sty{glossary-topic} v1.40+}
\syntax{\margm{level}}
\desc{used by \gls{glstopicAssignSubIndent} to calculate the
width of the widest name for the given level}
}
% \glstopicCols
\gcmd{gls\-topic\-Cols}
{
\providedby{\sty{glossary-topic} v1.40+}
\desc{expands to the number of columns for \glostyle{topicmcols}}
}
% \glstopicColsEnv
\gcmd{gls\-topic\-Cols\-Env}
{
\providedby{\sty{glossary-topic} v1.40+}
\desc{expands to the \env{multicols} environment name to use
for \glostyle{topicmcols}}
}
% COMMANDS: table
% \printunsrttable
\gcmd{print\-unsrt\-table}
{
\providedby{\sty{glossary-table} v1.49+}
\syntax{\oargm{options}}
\desc{internally uses \gls{printunsrtglossary} with the
\glostyle{table} style}
}
% \glstablesetstyle
\gcmd{gls\-table\-set\-style}
{
\providedby{\sty{glossary-table} v1.49+}
\syntax{\margm{style-name}}
\desc{sets the default block style}
}
% \glstablenewline
\gcmd{gls\-table\-new\-line}
{
\providedby{\sty{glossary-table} v1.50+}
\desc{used to start a new row}
}
% \glstablecaption
\gcmd{gls\-table\-caption}
{
\providedby{\sty{glossary-table} v1.49+}
\syntax{\margm{lot title}\margm{title}\margm{label code}}
\desc{produces the caption for the first page of the table}
}
% \glstablenextcaption
\gcmd{gls\-table\-next\-caption}
{
\providedby{\sty{glossary-table} v1.49+}
\syntax{\margm{lot title}\margm{title}}
\desc{produces the caption for following pages of the table}
}
% \glstablepostnextcaption
\gcmd{gls\-table\-post\-next\-caption}
{
\providedby{\sty{glossary-table} v1.49+}
\initval{\textvisiblespace Cont./}
\desc{appended to the caption in \gls{glstablenextcaption}}
}
% \glstableiffilter
\gcmd{gls\-table\-if\-filter}
{
\providedby{\sty{glossary-table} v1.49+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{internally used by the custom handler in \gls{printunsrttable}
to perform additional filtering. This command should do \meta{true} if the
entry identified by \meta{entry-label} should be filtered and
\meta{false} otherwise}
}
% \glstableiffilterchild
\gcmd{gls\-table\-if\-filter\-child}
{
\providedby{\sty{glossary-table} v1.50+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{internally used by \gls{glstableChildEntries} to filter
child entries. This command should do \meta{true} if the child
entry identified by \meta{entry-label} should be filtered and
\meta{false} otherwise}
}
% \glstableblocksubentrysep
\gcmd{gls\-table\-block\-sub\-entry\-sep}
{
\providedby{\sty{glossary-table} v1.49+}
\desc{separator used by \gls{glstableChildEntries} between child
entries}
}
% \glstableblocksubentry
\gcmd{gls\-table\-block\-sub\-entry}
{
\providedby{\sty{glossary-table} v1.49+}
\syntax{\margm{entry-label}}
\desc{displays the child entry identified by \meta{entry-label}.
This command is redefined by block styles}
}
% glstablesubentries ENVIRONMENT
\genv{gls\-table\-sub\-entries}
{
\providedby{\sty{glossary-table} v1.49+}
\desc{encapsulates the child list}
}
% \glstablesubentryalign
\gcmd{gls\-table\-sub\-entry\-align}
{
\providedby{\sty{glossary-table} v1.50+}
\desc{expands to the column alignment used by \env{glstablesubentries}}
}
% \glstableleftalign
\gcmd{gls\-table\-left\-align}
{
\providedby{\sty{glossary-table} v1.49+}
\syntax{\margm{width}}
\desc{expands to \code{l} or \code{p\margm{width}}
or \code{>{\cmd{protect}\cmd{raggedright}p\margm{width}}},
depending on the \glstableopt{par} setting}
}
% \glstablerightalign
\gcmd{gls\-table\-right\-align}
{
\providedby{\sty{glossary-table} v1.49+}
\syntax{\margm{width}}
\desc{expands to \code{r} or \code{p\margm{width}}
or \code{>{\cmd{protect}\cmd{raggedleft}p\margm{width}}},
depending on the \glstableopt{par} setting}
}
% \glstablecenteralign
\gcmd{gls\-table\-center\-align}
{
\providedby{\sty{glossary-table} v1.49+}
\syntax{\margm{width}}
\desc{expands to \code{c} or \code{p\margm{width}}
or \code{>{\cmd{protect}\cmd{centering}p\margm{width}}},
depending on the \glstableopt{par} setting}
}
% \glstablenamecolalign
\gcmd{gls\-table\-name\-col\-align}
{
\providedby{\sty{glossary-table} v1.49+}
\desc{expands to the alignment of the name column}
}
% \glstabledesccolalign
\gcmd{gls\-table\-desc\-col\-align}
{
\providedby{\sty{glossary-table} v1.49+}
\desc{expands to the alignment of the description column}
}
% \glstableothercolalign
\gcmd{gls\-table\-other\-col\-align}
{
\providedby{\sty{glossary-table} v1.49+}
\desc{expands to the alignment of the other column}
}
% \glstablesymbolcolalign
\gcmd{gls\-table\-symbol\-col\-align}
{
\providedby{\sty{glossary-table} v1.49+}
\desc{expands to the alignment of the symbol column}
}
% \glstablenamewidth
\gcmd{gls\-table\-name\-width}
{
\providedby{\sty{glossary-table} v1.49+}
\desc{length register used for the width of the name column with
\glstableoptval{par}{justified} or \glstableoptval{par}{ragged}.
Set by the block style}
}
% \glstabledescwidth
\gcmd{gls\-table\-desc\-width}
{
\providedby{\sty{glossary-table} v1.49+}
\desc{length register used for the width of the description column with
\glstableoptval{par}{justified} or \glstableoptval{par}{ragged}.
Set by the block style}
}
% \glstablesymbolwidth
\gcmd{gls\-table\-symbol\-width}
{
\providedby{\sty{glossary-table} v1.49+}
\desc{length register used for the width of the symbol column with
\glstableoptval{par}{justified} or \glstableoptval{par}{ragged}.
Set by the block style}
}
% \glstableotherwidth
\gcmd{gls\-table\-other\-width}
{
\providedby{\sty{glossary-table} v1.50+}
\desc{length register used for the width of the other column with
\glstableoptval{par}{justified} or \glstableoptval{par}{ragged}.
Set by the block style}
}
% \glstableblockwidth
\gcmd{gls\-table\-block\-width}
{
\providedby{\sty{glossary-table} v1.49+}
\desc{length register used for the width of each block with
\glstableoptval{par}{justified} or \glstableoptval{par}{ragged}.
Set by the block style}
}
% \glstablepostpreambleskip
\gcmd{gls\-table\-post\-pre\-amble\-skip}
{
\providedby{\sty{glossary-table} v1.50+}
\initval{5pt}
\desc{length register that specifies the vertical skip after
the preamble}
}
% \glstableprepostambleskip
\gcmd{gls\-table\-pre\-post\-amble\-skip}
{
\providedby{\sty{glossary-table} v1.50+}
\initval{5pt}
\desc{length register that specifies the vertical skip before
the postamble}
}
% \glstableNameFmt
\gcmd{gls\-table\-Name\-Fmt}
{
\providedby{\sty{glossary-table} v1.50+}
\syntax{\margm{text}}
\desc{formatting applied to the name}
}
% \glstableSubNameFmt
\gcmd{gls\-table\-Sub\-Name\-Fmt}
{
\providedby{\sty{glossary-table} v1.50+}
\syntax{\margm{text}}
\desc{formatting applied to the child name}
}
% \glstableSymbolFmt
\gcmd{gls\-table\-Symbol\-Fmt}
{
\providedby{\sty{glossary-table} v1.50+}
\syntax{\margm{text}}
\desc{formatting applied to the symbol}
}
% \glstableSubSymbolFmt
\gcmd{gls\-table\-Sub\-Symbol\-Fmt}
{
\providedby{\sty{glossary-table} v1.50+}
\syntax{\margm{text}}
\desc{formatting applied to the child symbol}
}
% \glstableDescFmt
\gcmd{gls\-table\-Desc\-Fmt}
{
\providedby{\sty{glossary-table} v1.50+}
\syntax{\margm{text}}
\desc{formatting applied to the description}
}
% \glstableSubDescFmt
\gcmd{gls\-table\-Sub\-Desc\-Fmt}
{
\providedby{\sty{glossary-table} v1.50+}
\syntax{\margm{text}}
\desc{formatting applied to the child description}
}
% \glstableotherfield
\gcmd{gls\-table\-other\-field}
{
\providedby{\sty{glossary-table} v1.49+}
\initvalempty
\desc{expands to the \idx{internalfieldlabel} of the other field}
}
% \glstableOtherFmt
\gcmd{gls\-table\-Other\-Fmt}
{
\providedby{\sty{glossary-table} v1.50+}
\syntax{\margm{text}}
\desc{formatting applied to the other field}
}
% \glstableSubOtherFmt
\gcmd{gls\-table\-Sub\-Other\-Fmt}
{
\providedby{\sty{glossary-table} v1.50+}
\syntax{\margm{text}}
\desc{formatting applied to the other field}
}
% \glstableOther
\gcmd{gls\-table\-Other}
{
\providedby{\sty{glossary-table} v1.50+}
\syntax{\margm{entry-label}}
\desc{used to display the other field}
}
% \glstableSubOther
\gcmd{gls\-table\-Sub\-Other}
{
\providedby{\sty{glossary-table} v1.50+}
\syntax{\margm{entry-label}}
\desc{used to display the sub-entry other field}
}
% \glstableifhasotherfield
\gcmd{gls\-table\-if\-has\-other\-field}
{
\providedby{\sty{glossary-table} v1.50+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{expands to \meta{true} if the other field is non-void for
the given entry otherwise expands to \meta{false}}
}
% \glstablenameheader
\gcmd{gls\-table\-name\-header}
{
\providedby{\sty{glossary-table} v1.49+}
\desc{header for the name column}
}
% \glstabledescheader
\gcmd{gls\-table\-desc\-header}
{
\providedby{\sty{glossary-table} v1.49+}
\desc{header for the description column}
}
% \glstablesymbolheader
\gcmd{gls\-table\-symbol\-header}
{
\providedby{\sty{glossary-table} v1.49+}
\desc{header for the symbol column}
}
% \glstableotherheader
\gcmd{gls\-table\-other\-header}
{
\providedby{\sty{glossary-table} v1.49+}
\desc{header for the other column}
}
% \glstableHeaderFmt
\gcmd{gls\-table\-Header\-Fmt}
{
\providedby{\sty{glossary-table} v1.49+}
\syntax{\margm{text}}
\desc{formats the header}
}
% \glstableChildEntries
\gcmd{gls\-table\-Child\-Entries}
{
\providedby{\sty{glossary-table} v1.49+}
\syntax{\margm{entry-label}}
\desc{iterates over the \glosfield{childlist} field and formats
each child entry in the list for use in the block styles. Does
nothing if the list is empty}
}
% \glstablePreChildren
\gcmd{glstablePreChildren}
{
\providedby{\sty{glossary-table} v1.49+}
\desc{code performed by \gls{glstableChildEntries} before the child list}
}
% \printunsrttable OPTIONS
\gprintunsrttableopt{blocks}%
{%
\syntax{\meta{n}}
\initval{2}
\desc{number of blocks per row}
}
\gprintunsrttableopt{caption}%
{%
\providedby{\sty{glossary-table} v1.50+}
\syntax{\meta{boolean}}
\initval{true}
\defval{true}
\desc{include a caption}
}
\gprintunsrttableopt{header}%
{%
\syntax{\meta{boolean}}
\initval{true}
\defval{true}
\desc{include header row}
}
\gprintunsrttableopt{rules}%
{%
\syntax{\meta{boolean}}
\initval{true}
\defval{true}
\desc{include horizontal rules}
}
\gprintunsrttableopt{blocksep}%
{%
\syntax{\meta{alignment spec}}
\initval{|}
\desc{between block table alignment specifier}
}
\gprintunsrttableopt{par}%
{%
\syntax{\meta{value}}
\initval{false}
\desc{indicates whether or not to use a paragraph column
specifier}
}
\gprintunsrttableopt{block-style}%
{%
\syntax{\meta{value}}
\initval{name-desc}
\desc{indicates the block style}
}
\gprintunsrttableopt{other}%
{%
\syntax{\meta{field-label}}
\initvalempty
\desc{indicates the other field to use}
}
\gprintunsrttableopt{init}%
{%
\syntax{\margm{code}}
\initvalempty
\desc{initialisation code}
}
% \printunsrttable BLOCK STYLES
% name-desc
\gtableblockstyle{name\dhyphen desc}%
{\providedby{\sty{glossary-table} v1.49+}}
% name
\gtableblockstyle{name}%
{\providedby{\sty{glossary-table} v1.49+}}
% name-symbol
\gtableblockstyle{name\dhyphen symbol}%
{\providedby{\sty{glossary-table} v1.49+}}
% desc-name
\gtableblockstyle{desc\dhyphen name}%
{\providedby{\sty{glossary-table} v1.49+}}
% symbol-name
\gtableblockstyle{symbol\dhyphen name}%
{\providedby{\sty{glossary-table} v1.49+}}
% name-symbol-desc
\gtableblockstyle{name\dhyphen symbol\dhyphen desc}%
{\providedby{\sty{glossary-table} v1.49+}}
% name-desc-symbol
\gtableblockstyle{name\dhyphen desc\dhyphen symbol}%
{\providedby{\sty{glossary-table} v1.49+}}
% name-other
\gtableblockstyle{name\dhyphen other}%
{\providedby{\sty{glossary-table} v1.49+}}
% symbol-other
\gtableblockstyle{symbol\dhyphen other}%
{\providedby{\sty{glossary-table} v1.49+}}
% other-name
\gtableblockstyle{other\dhyphen name}%
{\providedby{\sty{glossary-table} v1.49+}}
% other-symbol
\gtableblockstyle{other\dhyphen symbol}%
{\providedby{\sty{glossary-table} v1.49+}}
% name-symbol-other-desc
\gtableblockstyle{name\dhyphen symbol\dhyphen other\dhyphen desc}%
{\providedby{\sty{glossary-table} v1.50+}}
% name-other-symbol-desc
\gtableblockstyle{name\dhyphen other\dhyphen symbol\dhyphen desc}%
{\providedby{\sty{glossary-table} v1.50+}}
% desc-symbol-other-name
\gtableblockstyle{desc\dhyphen symbol\dhyphen other\dhyphen name}%
{\providedby{\sty{glossary-table} v1.50+}}
% desc-other-symbol-name
\gtableblockstyle{desc\dhyphen other\dhyphen symbol\dhyphen name}%
{\providedby{\sty{glossary-table} v1.50+}}
% name-other-desc
\gtableblockstyle{name\dhyphen other\dhyphen desc}%
{\providedby{\sty{glossary-table} v1.50+}}
% desc-other-name
\gtableblockstyle{desc\dhyphen other\dhyphen name}%
{\providedby{\sty{glossary-table} v1.50+}}
% COMMANDS: long
% \glsdescwidth
\gcmd{gls\-desc\-width}
{
\providedby{\sty{glossary-long} \& \sty{glossary-super}}
\desc{a length register used to set the width of the description
column for \env{tabular}-like styles}
}
% \glspagelistwidth
\gcmd{gls\-page\-list\-width}
{
\providedby{\sty{glossary-long} \& \sty{glossary-super}}
\desc{a length register used to set the width of the
\idx{locationlist} column for \env{tabular}-like styles}
}
% COMMANDS: longbooktabs style
% \glspatchLToutput
\gcmd{gls\-patch\-LT\-output}
{
\providedby{\sty{glossary-longbooktabs} v4.21+}
\desc{applies a patch to \env{longtable} to check for instances
of the group skip occurring at a page break}
}
% \glspenaltygroupskip
\gcmd{gls\-penalty\-group\-skip}
{
\providedby{\sty{glossary-longbooktabs} v4.21+}
\desc{the definition of \gls{glsgroupskip} with
\optval{nogroupskip}{false} for the \sty{glossary-longbooktabs}
styles}
}
% COMMANDS: tree
% \glstreepredesc
\gcmd{gls\-tree\-pre\-desc}
{
\providedby{\sty{glossary-tree} v4.26+}
\desc{space inserted before top-level descriptions}
}
% \glstreechildpredesc
\gcmd{gls\-tree\-child\-pre\-desc}
{
\providedby{\sty{glossary-tree} v4.26+}
\desc{space inserted before child descriptions}
}
% \glstreenamefmt
\gcmd{gls\-tree\-name\-fmt}
{
\providedby{\sty{glossary-tree} v4.08+}
\syntax{\margm{text}}
\desc{used to format the name for the \glostyle{tree} and
\glostyle{index} styles}
}
% \glstreegroupheaderfmt
\gcmd{gls\-tree\-group\-header\-fmt}
{
\providedby{\sty{glossary-tree} v4.22+}
\syntax{\margm{text}}
\desc{used to format the \idx{group} title for the \glostyle{treegroup} and
\glostyle{indexgroup} styles}
}
% \glstreenavigationfmt
\gcmd{gls\-tree\-navigation\-fmt}
{
\providedby{\sty{glossary-tree} v4.22+}
\syntax{\margm{text}}
\desc{used to format the navigation element for styles like \glostyle{treehypergroup}}
}
% \glstreeitem
\gcmd{gls\-tree\-item}
{
\providedby{\sty{glossary-tree} v4.26+}
\desc{used to indent the top-level entries for the \glostyle{index} styles}
}
% \glstreesubitem
\gcmd{gls\-tree\-sub\-item}
{
\providedby{\sty{glossary-tree} v4.26+}
\desc{used to indent the level~1 entries for the \glostyle{index} styles}
}
% \glstreesubsubitem
\gcmd{gls\-tree\-sub\-sub\-item}
{
\providedby{\sty{glossary-tree} v4.26+}
\desc{used to indent the level~2 entries for the \glostyle{index} styles}
}
% COMMANDS: list style
% \glslistdottedwidth
\gcmd{glslistdottedwidth}
{
\providedby{\sty{glossary-list}}
\desc{a length register used by \glostyle{listdotted}}
}
% \glslistinit
\gcmd{gls\-list\-init}
{%
\providedby{\sty{glossary-list} v4.48+}
\desc{used to disable problematic commands at the start the
\glostyle{list} styles to provide better integration with
\sty{gettitlestring}}
}
% \glslistexpandedname
\gcmd{gls\-list\-expanded\-name}
{%
\providedby{\sty{glossary-list} v4.48+}
\syntax{\margm{entry-label}}
\desc{used by \gls{glslistinit} to provide better integration with
\sty{gettitlestring}}
}
% COMMANDS: inline style
% \glsinlinedescformat
\gcmd{gls\-in\-line\-desc\-format}
{
\providedby{\sty{glossary-inline} v3.03+}
\syntax{\margm{description}\margm{symbol}\margm{location list}}
\desc{formats the description, symbol and \idx{locationlist} for
top-level entries}
}
% \glsinlinesubdescformat
\gcmd{gls\-in\-line\-sub\-desc\-format}
{
\providedby{\sty{glossary-inline} v3.03+}
\syntax{\margm{description}\margm{symbol}\margm{location list}}
\desc{formats the description, symbol and \idx{locationlist} for
child entries}
}
% \glspostinline
\gcmd{gls\-post\-in\-line}
{%
\providedby{\sty{glossary-inline} v3.03+}
\desc{used at the end of the \env{theglossary} environment}
}
% \glspostinlinedescformat
\gcmd{gls\-post\-in\-line\-desc\-format}
{%
\providedby{\sty{glossary-inline} v3.03+}
\syntax{\margm{description}\margm{symbol}\margm{location list}}
\desc{formats the top-level entry's description, symbol and \idx{locationlist}}
}
% \glspostinlinesubdescformat
\gcmd{gls\-post\-in\-line\-sub\-desc\-format}
{%
\providedby{\sty{glossary-inline} v3.03+}
\syntax{\margm{description}\margm{symbol}\margm{location list}}
\desc{formats the child entry's description, symbol and \idx{locationlist}}
}
% COMMANDS: STYLE MODIFICATIONS
% \glsxtrprelocation
\gcmd{gls\-xtr\-pre\-location}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.21+}
\initvalcs{space}
\desc{used before the \idx{locationlist} in the predefined
styles provided by \sty{glossaries-extra} or modified by
\sty{glossaries-extra-stylemods}}
}
% \glslistprelocation
\gcmd{gls\-list\-pre\-location}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.21+}
\initvalcs{glsxtrprelocation}
\desc{used before the top-level entry \idx{locationlist}
for the \glostyle{list} styles}
}
% \glslistchildprelocation
\gcmd{gls\-list\-child\-pre\-location}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.21+}
\initvalcs{glslistprelocation}
\desc{used before the child entry \idx{locationlist}
for the \glostyle{list} styles}
}
% \glslistchildpostlocation
\gcmd{gls\-list\-child\-post\-location}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.21+}
\initval{.}
\desc{used after the child entry \idx{locationlist}
for the \glostyle{list} styles}
}
% \glslistdesc
\gcmd{gls\-list\-desc}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.31+}
\syntax{\margm{entry-label}}
\desc{used to display the description for the \glostyle{list} styles}
}
% \glslistgroupskip
\gcmd{gls\-list\-group\-skip}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.31+}
\desc{used for the group skip in the \glostyle{list} styles}
}
% \glslistitem
\gcmd{gls\-list\-item}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.47+}
\syntax{\margm{entry-label}}
\desc{used to display the top-level entry item in the \glostyle{list} styles}
}
% \glsaltlistitem
\gcmd{gls\-alt\-list\-item}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.47+}
\syntax{\margm{entry-label}}
\desc{used to display the top-level entry item in the \glostyle{altlist} styles}
}
% \glslistgroupheaderitem
\gcmd{gls\-list\-group\-header\-item}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.47+}
\syntax{\margm{group-label}\margm{header code}}
\desc{used to display the \idx{group} headings in the \glostyle{listgroup} styles}
}
% \glslistgroupafterheader
\gcmd{gls\-list\-group\-after\-header}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.47+}
\desc{used after \idx{group} headings in the \glostyle{listgroup} styles}
}
% \glstreedefaultnamefmt
\gcmd{gls\-tree\-default\-name\-fmt}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.31+}
\syntax{\margm{text}}
\desc{used as the default name format for the \glostyle{tree}
and \glostyle{index} styles}
}
% \glstreePreHeader
\gcmd{gls\-tree\-Pre\-Header}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.41+}
\syntax{\margm{group-label}\margm{group-title}}
\desc{pre \idx{group} header hook the \glostyle{treegroup}
and \glostyle{indexgroup} styles}
}
% \glstreeSubPreHeader
\gcmd{gls\-tree\-Sub\-Pre\-Header}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.49+}
\syntax{\margm{previous group level}\margm{level}\margm{parent label}\margm{group label}\margm{group title}}
\desc{pre sub-\idx{group} header hook the \glostyle{treegroup}
and \glostyle{indexgroup} styles}
}
% \glstreeprelocation
\gcmd{gls\-tree\-pre\-location}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.21+}
\initvalcs{glsxtrprelocation}
\desc{used before the top-level entry \idx{locationlist}
for the \glostyle{tree} and \glostyle{index} styles}
}
% \glstreechildprelocation
\gcmd{gls\-tree\-child\-pre\-location}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.21+}
\initvalcs{glstreeprelocation}
\desc{used before the child entry \idx{locationlist}
for the \glostyle{tree} and \glostyle{index} styles}
}
% \glstreegroupskip
\gcmd{gls\-tree\-group\-skip}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.41+}
\desc{group skip for the \glostyle{tree} and \glostyle{index} styles}
}
% \glstreegroupheaderskip
\gcmd{gls\-tree\-group\-header\-skip}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.42+}
\desc{after group header skip for the \glostyle{treegroup} and
\glostyle{indexgroup} styles}
}
% \glsindexsubgroupitem
\gcmd{gls\-index\-sub\-group\-item}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.49+}
\syntax{\margm{previous group level}\margm{level}\margm{parent
label}\margm{group label}\margm{group title}}
\desc{used to format sub-\idx{group} headers for the
\glostyle{indexgroup} styles}
}
% \glsxtrtreepredesc
\gcmd{gls\-xtr\-tree\-pre\-desc}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.46+}
\initvalcs{glstreepredesc}
\desc{inserted before the top-level descriptions for the \glostyle{tree} styles}
}
% \glsxtrtreechildpredesc
\gcmd{gls\-xtr\-tree\-child\-pre\-desc}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.46+}
\initvalcs{glstreechildpredesc}
\desc{inserted before the child descriptions for the \glostyle{tree} styles}
}
% \glstreedesc
\gcmd{gls\-tree\-desc}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.31+}
\syntax{\margm{entry-label}}
\desc{displays the given top-level entry's description with pre and post hooks for the \glostyle{tree} styles}
}
% \glstreechilddesc
\gcmd{gls\-tree\-child\-desc}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.31+}
\syntax{\margm{entry-label}}
\desc{displays the given child entry's description with pre and post hooks for the \glostyle{tree} styles}
}
% \glstreeDescLoc
\gcmd{gls\-tree\-Desc\-Loc}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.41+}
\syntax{\margm{entry-label}\margm{location list}}
\desc{formats the top-level description (if set) and \idx{locationlist} for the \glostyle{tree} styles}
}
% \glstreeChildDescLoc
\gcmd{gls\-tree\-Child\-Desc\-Loc}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.41+}
\syntax{\margm{entry-label}\margm{location list}}
\desc{formats the child description (if set) and \idx{locationlist} for the \glostyle{tree} styles}
}
% \glstreeNoDescSymbolPreLocation
\gcmd{gls\-tree\-No\-Desc\-Symbol\-Pre\-Location}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.42+}
\desc{inserted before the \idx{locationlist} when there's no
description or symbol for the \glostyle{tree} styles}
}
% \glstreesymbol
\gcmd{gls\-tree\-symbol}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.31+}
\syntax{\margm{entry-label}}
\desc{displays the top-level symbol in parentheses, if set, for the \glostyle{tree} styles}
}
% \glstreechildsymbol
\gcmd{gls\-tree\-child\-symbol}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.31+}
\syntax{\margm{entry-label}}
\desc{displays the top-level symbol in parentheses, if set, for the \glostyle{tree} styles}
}
% \glstreesubgroupitem
\gcmd{gls\-tree\-sub\-group\-item}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.49+}
\syntax{\marg{previous group level}\marg{level}\marg{parent label}\marg{group label}\marg{group title}}
\desc{used to display the sub-group header in the \glostyle{treegroup} styles}
}
% \glstreenonamedesc
\gcmd{gls\-tree\-no\-name\-desc}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.31+}
\syntax{\margm{entry-label}}
\desc{displays the given top-level entry's description with pre
and post hooks for the \glostyle{treenoname} styles}
}
% \glstreenonamesymbol
\gcmd{gls\-tree\-no\-name\-symbol}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.31+}
\syntax{\margm{entry-label}}
\desc{displays the given top-level entry's symbol in parentheses for
the \glostyle{treenoname} styles}
}
% \glstreenonameDescLoc
\gcmd{gls\-tree\-no\-name\-Desc\-Loc}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.45+}
\syntax{\margm{entry-label}}
\desc{displays the given top-level entry's description and
\idx{locationlist} for the \glostyle{treenoname} styles}
}
% \glstreenonamechilddesc
\gcmd{gls\-tree\-no\-name\-child\-desc}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.31+}
\syntax{\margm{entry-label}}
\desc{displays the given child entry's description and
post hook for the \glostyle{treenoname} styles}
}
% \glstreenonameChildDescLoc
\gcmd{gls\-tree\-no\-name\-Child\-Desc\-Loc}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.45+}
\syntax{\margm{entry-label}}
\desc{displays the given child entry's description and
\idx{locationlist} for the \glostyle{treenoname} styles}
}
% \glsalttreepredesc
\gcmd{gls\-alt\-tree\-pre\-desc}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.46+}
\desc{inserted before the top-level descriptions for the \glostyle{alttree} styles}
}
% \glsalttreechildpredesc
\gcmd{gls\-alt\-tree\-child\-pre\-desc}
{%
\providedby{\sty{glossaries-extra-stylemods} v1.46+}
\desc{inserted before the child descriptions for the \glostyle{alttree} styles}
}
% \glssetwidest
\gcmd{gls\-set\-widest}
{
\providedby{\sty{glossary-tree}}
\syntax{\oargm{level}\margm{name}}
\desc{indicates that \meta{name} is the widest name for the
given \idx{hierarchicallevel}}
}
% \gglssetwidest
\gcmd{ggls\-set\-widest}
{
\providedby{\sty{glossaries-extra-stylemods} v1.21+}
\syntax{\oargm{level}\margm{name}}
\desc{as \gls{glssetwidest} but global}
}
% \eglssetwidest
\gcmd{egls\-set\-widest}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\oargm{level}\margm{name}}
\desc{as \gls{glssetwidest} but expands \meta{text}}
}
% \xglssetwidest
\gcmd{xgls\-set\-widest}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\oargm{level}\margm{name}}
\desc{as \gls{eglssetwidest} but global}
}
% \glsupdatewidest
\gcmd{gls\-update\-widest}
{
\providedby{\sty{glossaries-extra-stylemods} v1.23+}
\syntax{\oargm{level}\margm{name}}
\desc{similar to \gls{glssetwidest} but only if \meta{name} is
wider than the current widest value for the given
\idx{hierarchicallevel}}
}
% \gglsupdatewidest
\gcmd{ggls\-update\-widest}
{
\providedby{\sty{glossaries-extra-stylemods} v1.23+}
\syntax{\oargm{level}\margm{name}}
\desc{as \gls{glsupdatewidest} but global}
}
% \eglsupdatewidest
\gcmd{egls\-update\-widest}
{
\providedby{\sty{glossaries-extra-stylemods} v1.23+}
\syntax{\oargm{level}\margm{name}}
\desc{as \gls{glsupdatewidest} but expands \meta{name}}
}
% \xglsupdatewidest
\gcmd{xgls\-update\-widest}
{
\providedby{\sty{glossaries-extra-stylemods} v1.23+}
\syntax{\oargm{level}\margm{name}}
\desc{as \gls{eglsupdatewidest} but global}
}
% \glsgetwidestname
\gcmd{gls\-get\-widest\-name}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\desc{expands to the widest top-level name}
}
% \glsgetwidestsubname
\gcmd{gls\-get\-widest\-sub\-name}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\margm{level}}
\desc{expands to the widest name for the given
\idx{hierarchicallevel} or to the widest top-level name, if no
widest name set for \meta{level}}
}
% \glsfindwidesttoplevelname
\gcmd{gls\-find\-widest\-top\-level\-name}
{
\providedby{\sty{glossary-tree} v4.22+}
\syntax{\oargm{glossary labels}}
\desc{finds and sets the widest name for all top-level entries
in the given \idxpl{glossary}. If the optional argument is
omitted, the list of all non-\idxpl{ignoredglossary} is assumed}
}
% \glsFindWidestTopLevelName
\gcmd{gls\-Find\-Widest\-Top\-Level\-Name}
{
\providedby{\sty{glossaries-extra-stylemods}}% v1.0+
\desc{a synonym for \gls{glsfindwidesttoplevelname}}
}
% \glsFindWidestUsedTopLevelName
\gcmd{gls\-Find\-Widest\-Used\-Top\-Level\-Name}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\oargm{glossary labels}}
\desc{finds and sets the widest name for all top-level entries
that have been marked as \idxc{firstuseflag}{used} in the given \idxpl{glossary}}
}
% \glsFindWidestUsedAnyName
\gcmd{gls\-Find\-Widest\-Used\-Any\-Name}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\oargm{glossary labels}}
\desc{finds and sets the widest name for all entries
that have been marked as \idxc{firstuseflag}{used} in the given \idxpl{glossary}}
}
% \glsFindWidestAnyName
\gcmd{gls\-Find\-Widest\-Any\-Name}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\oargm{glossary labels}}
\desc{finds and sets the widest name for all entries
in the given \idxpl{glossary}}
}
% \glsFindWidestUsedLevelTwo
\gcmd{gls\-Find\-Widest\-Used\-Level\-Two}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\oargm{glossary labels}}
\desc{finds and sets the widest name for all entries
that have been marked as \idxc{firstuseflag}{used} with
\idx{hierarchicallevel} less than or equal to 2 in the given \idxpl{glossary}}
}
% \glsFindWidestLevelTwo
\gcmd{gls\-Find\-Widest\-Level\-Two}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\oargm{glossary labels}}
\desc{finds and sets the widest name for all entries with
\idx{hierarchicallevel} less than or equal to 2 in the given \idxpl{glossary}}
}
% \glsFindWidestUsedAnyNameSymbol
\gcmd{gls\-Find\-Widest\-Used\-Any\-Name\-Symbol}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\oargm{glossary labels}\margm{register}}
\desc{like \gls{glsFindWidestUsedAnyName} but also also measures the
symbol. The length of the widest symbol is stored in
\meta{register} which should be a length register}
}
% \glsFindWidestAnyNameSymbol
\gcmd{gls\-Find\-Widest\-Any\-Name\-Symbol}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\oargm{glossary labels}\margm{register}}
\desc{like \gls{glsFindWidestAnyName} but also also measures the
symbol. The length of the widest symbol is stored in
\meta{register} which should be a length register}
}
% \glsFindWidestUsedAnyNameSymbolLocation
\gcmd{gls\-Find\-Widest\-Used\-Any\-Name\-Symbol\-Location}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\oargm{glossary labels}\margm{register1}\margm{register2}}
\desc{like \gls{glsFindWidestUsedAnyNameSymbol} but also also measures the
\idx{locationlist}. The length of the widest symbol is stored in
\meta{register1} and the length of the widest location is
stored in \meta{register2}, which should both be length registers}
}
% \glsFindWidestAnyNameSymbolLocation
\gcmd{gls\-Find\-Widest\-Any\-Name\-Symbol\-Location}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\oargm{glossary labels}\margm{register1}\margm{register2}}
\desc{like \gls{glsFindWidestAnyNameSymbol} but also also measures the
\idx{locationlist}. The length of the widest symbol is stored in
\meta{register1} and the length of the widest location is
stored in \meta{register2}, which should both be length registers}
}
% \glsFindWidestUsedAnyNameLocation
\gcmd{gls\-Find\-Widest\-Used\-Any\-Name\-Location}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\oargm{glossary labels}\margm{register}}
\desc{like \gls{glsFindWidestUsedAnyName} but also also measures the
\idx{locationlist}. The length of the widest location is
stored in \meta{register}, which should be a length register}
}
% \glsFindWidestAnyNameLocation
\gcmd{gls\-Find\-Widest\-Any\-Name\-Location}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\oargm{glossary labels}\margm{register}}
\desc{like \gls{glsFindWidestAnyName} but also also measures the
\idx{locationlist}. The length of the widest location is
stored in \meta{register}, which should be a length register}
}
% \glsxtralttreeSymbolDescLocation
\gcmd{gls\-xtr\-alt\-tree\-Symbol\-Desc\-Location}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\margm{entry-label}\margm{location list}}
\desc{formats the symbol, description and location for top-level entries
for the \glostyle{alttree}-like styles}
}
% \glsxtralttreeSubSymbolDescLocation
\gcmd{gls\-xtr\-alt\-tree\-Sub\-Symbol\-Desc\-Location}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\syntax{\margm{entry-label}\margm{location list}}
\desc{formats the symbol, description and location for child entries
for the \glostyle{alttree}-like styles}
}
% \glsxtralttreeInit
\gcmd{gls\-xtr\-alt\-tree\-Init}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\desc{initialisation code performed by the \glostyle{alttree}-like styles}
}
% \glsxtrAltTreeIndent
\gcmd{gls\-xtr\-Alt\-Tree\-Indent}
{
\providedby{\sty{glossaries-extra-stylemods} v1.05+}
\desc{length register for the subsequent paragraph indentation for
the \glostyle{alttree}-like styles}
}
% COMMANDS: DISPLAYING GLOSSARIES
% \glossarysection
\gcmd{glossary\-section}
{
\providedby{\sty{glossaries}}
\syntax{\oargm{toc-title}\margm{title}}
\desc{occurs at the start of a \idx{glossary} (except with
\gls{printunsrtinnerglossary}). This will typically be defined
to use a sectioning command, such as \gls{section} or
\gls{chapter}. The default definition follows the \opt{section}
and \opt{numberedsection} options}
}
% \glossarytitle
\gcmd{glossary\-title}
{
\providedby{\sty{glossaries}}
\desc{initialised by the \csfmt{print\ldots glossary} set of
commands (such as \gls{printglossary}) to the current
\idx{glossary}['s] title}
}
% \glossarytoctitle
\gcmd{glossary\-toc\-title}
{
\providedby{\sty{glossaries}}
\desc{initialised by the \csfmt{print\ldots glossary} set of
commands (such as \gls{printglossary}) to the current
\idx{glossary}['s] table of contents title}
}
% \glossaryheader
\gcmd{glossary\-header}
{
\providedby{\sty{glossaries}}
\desc{inserted after \code{\cbeg{\env{theglossary}}}. This
command should be redefined by the \idx{glossarystyle}}
}
% \glossentry
\gcmd{gloss\-entry}
{
\providedby{\sty{glossaries} v3.08+}
\syntax{\margm{entry label}\margm{location list}}
\desc{used to format a top-level entry. This
command should be redefined by the \idx{glossarystyle}}
}
% \subglossentry
\gcmd{sub\-gloss\-entry}
{
\providedby{\sty{glossaries} v3.08+}
\syntax{\margm{level}\margm{entry label}\margm{location list}}
\desc{used to format a child entry. This
command should be redefined by the \idx{glossarystyle}}
}
% \glsresetentrylist
\gcmd{gls\-reset\-entry\-list}
{
\providedby{\sty{glossaries}}
\desc{inserted into the \idx{glossary} code to counteract the
effect of \gls{glsnonextpages}}
}
% \glsnonextpages
\gcmd{gls\-no\-next\-pages}
{
\providedby{\sty{glossaries} v1.17+}
\desc{designed for use with \app{makeindex} and \app{xindy},
this may be placed in an entry's description to suppress the
entry's \idx{locationlist}}
}
% \glsnextpages
\gcmd{gls\-next\-pages}
{
\providedby{\sty{glossaries} v3.0+}
\desc{designed for use with \app{makeindex} and \app{xindy},
this may be placed in an entry's description to override
\opt{nonumberlist}}
}
% \glsgroupskip
\gcmd{gls\-group\-skip}
{
\providedby{\sty{glossaries}}
\desc{inserted before each \idx{group} heading (except the
first) in a \idx{glossary} (unless \printglossoptval{groups}{false}).
This command is defined by \idxpl{glossarystyle} as appropriate.
Most of the predefined styles define this command to check the
\opt{nogroupskip} option}
}
% \glsgroupheading
\gcmd{gls\-group\-head\-ing}%
{%
\providedby{\sty{glossaries}}
\syntax{\margm{group-label}}
\desc{inserted at the start of each \idx{group} in a \idx{glossary}
(unless \printglossoptval{groups}{false}) to display the
\idx{group}['s] heading, if applicable, using the title
associated with \meta{group-label} or, if no title provided,
just \meta{group-label}.
This command is defined by \idxpl{glossarystyle} as appropriate}
}
% \glssubgroupheading
\gcmd{gls\-sub\-group\-head\-ing}%
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{previous level}\margm{level}\margm{parent-label}\margm{group-label}}
\desc{used to format sub-\idx{group} headings. Only applicable
with the \idx{unsrtfam}. This command won't occur in
\idxpl{glossary} that use \gls{printglossary} or
\gls{printnoidxglossary}}
}
% \glossarypostamble
\gcmd{glossary\-postamble}%
{%
\providedby{\sty{glossaries}}
\desc{used at the end of the \idx{glossary}}
}
% \glossarypreamble
\gcmd{glossary\-preamble}%
{%
\providedby{\sty{glossaries}}
\desc{used at the start of the \idx{glossary}. This will be
locally redefined to the preamble associated with
the current glossary, if one has been set}
\field{seealso}{setglossarypreamble}
}
% \setglossarypreamble
\gcmd{set\-glossary\-preamble}%
{%
\providedby{\sty{glossaries} v3.07+}
\syntax{\oargm{type}\margm{text}}
\desc{globally sets the preamble for the glossary identified by
\meta{type} to \meta{text}. If \meta{type} is omitted,
\gls{glsdefaulttype} is assumed}
}
% \apptoglossarypreamble
\gcmd{app\-to\-glossary\-preamble}%
{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\oargm{type}\margm{text}}
\desc{appends (locally) \meta{text} to the preamble for the glossary identified by
\meta{type}. If \meta{type} is omitted,
\gls{glsdefaulttype} is assumed}
}
% \pretoglossarypreamble
\gcmd{pre\-to\-glossary\-preamble}%
{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\oargm{type}\margm{text}}
\desc{prepends (locally) \meta{text} to the preamble for the glossary identified by
\meta{type}. If \meta{type} is omitted,
\gls{glsdefaulttype} is assumed}
}
% \printglossaries
\gcmd{print\-glossaries}%
{%
\providedby{\sty{glossaries}}
\desc{iterates over all non-\idxpl{ignoredglossary} and does
\code{\gls{printglossary}\oarg{\printglossoptval{type}{\meta{type}}}}
for each \idx{glossary}}
}
% \printnoidxglossaries
\gcmd{print\-noidx\-glossaries}%
{%
\providedby{\sty{glossaries} v4.04+}
\desc{iterates over all non-\idxpl{ignoredglossary} and does
\code{\gls{printnoidxglossary}\oarg{\printglossoptval{type}{\meta{type}}}}
for each \idx{glossary}}
}
% \printunsrtglossaries
\gcmd{print\-unsrt\-glossaries}%
{%
\providedby{\sty{glossaries-extra} v1.08+}
\desc{iterates over all non-\idxpl{ignoredglossary} and does
\code{\gls{printunsrtglossary}\oarg{\printglossoptval{type}{\meta{type}}}}
for each \idx{glossary}}
}
% \printglossary
\gcmd{print\-glossary}%
{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}}
\desc{displays the \idx{glossary} by inputting a file created by
\app+{makeindex} or \app+{xindy}. Must be used with
\gls{makeglossaries} and either \app{makeindex} or \app{xindy}}
}%
% \printacronyms
\gcmd{print\-acronyms}%
{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}}
\note{requires the \opt{acronyms} package option}
\desc{shortcut for
\code{\gls{printglossary}\oarg{\printglossoptval{type}{\gls{acronymtype}}}}}
}%
% \printunsrtacronyms
\gcmd{print\-unsrt\-acronyms}%
{%
\providedby{\sty{glossaries-extra-bib2gls} v1.40+}
\syntax{\oargm{options}}
\note{requires \code{\csfmt{usepackage}\oarg{\opt{acronyms},\opt{record}}\marg{glossaries-extra}}}
\desc{shortcut for
\code{\gls{printunsrtglossary}\oarg{\printglossoptval{type}{\gls{acronymtype}}}}}
}%
% \printabbreviations
\gcmd{print\-ab\-bre\-vi\-a\-tions}%
{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}}
\note{requires \code{\csfmt{usepackage}\oarg{\opt{abbreviations}}\marg{glossaries-extra}}}
\desc{shortcut for
\code{\gls{printglossary}\oarg{\printglossoptval{type}{\gls{glsxtrabbrvtype}}}}}
}%
% \printunsrtabbreviations
\gcmd{print\-unsrt\-ab\-bre\-vi\-a\-tions}%
{%
\providedby{\sty{glossaries-extra-bib2gls} v1.40+}
\syntax{\oargm{options}}
\note{requires \code{\csfmt{usepackage}\oarg{\opt{abbreviations},\opt{record}}\marg{glossaries-extra}}}
\desc{shortcut for
\code{\gls{printunsrtglossary}\oarg{\printglossoptval{type}{\gls{glsxtrabbrvtype}}}}}
}%
% \printsymbols
\gcmd{print\-symbols}%
{%
\providedby{\sty{glossaries} v4.02+}
\syntax{\oargm{options}}
\note{requires the \opt{symbols} package option}
\desc{shortcut for
\code{\gls{printglossary}\oarg{\printglossoptval{type}{symbols}}}}
}%
% \printunsrtsymbols
\gcmd{print\-unsrt\-symbols}%
{%
\providedby{\sty{glossaries-extra-bib2gls} v1.40+}
\syntax{\oargm{options}}
\note{requires \code{\csfmt{usepackage}\oarg{\opt{symbols},\opt{record}}\marg{glossaries-extra}}}
\desc{shortcut for
\code{\gls{printunsrtglossary}\oarg{\printglossoptval{type}{symbols}}}}
}%
% \printnumbers
\gcmd{print\-numbers}%
{%
\providedby{\sty{glossaries} v4.02+}
\syntax{\oargm{options}}
\note{requires the \opt{numbers} package option}
\desc{shortcut for
\code{\gls{printglossary}\oarg{\printglossoptval{type}{numbers}}}}
}%
% \printunsrtnumbers
\gcmd{print\-unsrt\-numbers}%
{%
\providedby{\sty{glossaries-extra-bib2gls} v1.40+}
\syntax{\oargm{options}}
\note{requires \code{\csfmt{usepackage}\oarg{\opt{numbers},\opt{record}}\marg{glossaries-extra}}}
\desc{shortcut provided by the \opt{numbers} package option combined
with \sty{glossaries-extra-bib2gls} that simply does
\code{\gls{printunsrtglossary}\oarg{\printglossoptval{type}{numbers}}}}
}%
% \printindex
\gcmd{print\-index}%
{%
\syntax{\oargm{options} v4.02+}
\note{requires the \opt{index} package option}
\desc{shortcut provided by the \opt{index} package option that simply does
\code{\gls{printglossary}\oarg{\printglossoptval{type}{index}}}}
}%
% \printunsrtindex
\gcmd{print\-unsrt\-index}%
{%
\providedby{\sty{glossaries-extra-bib2gls} v1.40+}
\syntax{\oargm{options}}
\note{requires \code{\csfmt{usepackage}\oarg{\opt{index},\opt{record}}\marg{glossaries-extra}}}
\desc{shortcut provided by the \opt{index} package option combined
with \sty{glossaries-extra-bib2gls} that simply does
\code{\gls{printunsrtglossary}\oarg{\printglossoptval{type}{index}}}}
}%
% \printnoidxglossary
\gcmd{print\-noidx\-glossary}%
{%
\providedby{\sty{glossaries} v4.04+}
\syntax{\oargm{options}}
\desc{displays the \idx{glossary} by obtaining the \idx{indexing} information from
the \ext+{aux} file and using \TeX\ to sort and collate. Must be used with
\gls{makenoidxglossaries} or with the \idxpl{glossary} not identified
in the optional argument of \gls{makeglossaries} when using the
hybrid method. This method can be very slow and has limitations}
}%
% \printunsrtglossary
\gcmd{print\-unsrt\-glossary}%
{%
\providedby{\sty{glossaries-extra} v1.08+}
\syntax{\oargm{options}}
\desc{displays the \idx{glossary} by iterating over all entries
associated with the given \idx{glossary} (in the order in which they
were added to the \idx{glossary}). \Idx{group} headers will only be
inserted if the \gloskey{group} key has been defined and has
been set (typically with the \opt{record} option and
\app{bib2gls}). \Idxpl{locationlist} will only be shown if the
\gloskey{location} or \glosfield{loclist} fields have been set
(typically by \app{bib2gls})}
}%
% \printunsrtglossary*
\gcmd{print\-unsrt\-glossary*}%
{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\oargm{options}\margm{init-code}}
\desc{does \code{\marg{\meta{init-code}\gls{printunsrtglossary}\oargm{options}}}
which localises \meta{init-code}}
}
% \printunsrtglossaryunit
\gcmd{print\-unsrt\-glossary\-unit}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\oargm{options}\margm{counter-name}}
\desc{provided for use with \gls{GlsXtrRecordCounter} to display
a glossary with \gls{printunsrtglossary*} that filters entries that
don't have a match for the current \meta{counter-name} value}
}
% \printunsrtglossaryunitsetup
\gcmd{print\-unsrt\-glossary\-unit\-set\-up}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{counter-name}}
\desc{sets up the filtering used by \gls{printunsrtglossaryunit}}
}
% \printunsrtglossaryunitpostskip
\gcmd{print\-unsrt\-glossary\-unit\-post\-skip}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{the vertical space at the end of the \idx{glossary} appended
by \gls{printunsrtglossaryunit}}
}
% \printunsrtinnerglossary
\gcmd{print\-unsrt\-inner\-glossary}%
{%
\providedby{\sty{glossaries-extra} v1.44+}
\syntax{\oargm{options}\margm{pre-code}\margm{post-code}}
\desc{similar to \gls{printunsrtglossary} but doesn't contain
the code that starts and ends the \idx{glossary} (such as
beginning and ending the \env{theglossary} environment), so
this command needs to be
either placed inside \env{printunsrtglossarywrap} or in the
\gls{printunsrtglossary} entry handler \gls{printunsrtglossaryhandler}}
}%
% \glsxtrnoidxgroups
\gcmd{gls\-xtr\-no\-idx\-groups}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{makes the group titling mechanism used with the
\idx{unsrtfam} use the same method as for
\gls{printnoidxglossary} (\idx{ascii} only). This command can't
be used with \gls{makeglossaries} or with \opt{record}}
}
% \printunsrtglossaryentryprocesshook
\gcmd{print\-unsrt\-glossary\-entry\-process\-hook}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}}
\desc{hook used within the \idx{unsrtfam} while the
\idx{glossary} is being constructed}
}
% \printunsrtglossaryskipentry
\gcmd{print\-unsrt\-glossary\-skip\-entry}
{
\providedby{\sty{glossaries-extra} v1.21+}
\desc{may be used within
\gls{printunsrtglossaryentryprocesshook} to skip the current entry}
}
% \printunsrtglossarypreentryprocesshook
\gcmd{print\-unsrt\-glossary\-pre\-entry\-process\-hook}
{
\providedby{\sty{glossaries-extra} v1.50+}
\syntax{\margm{internal cs}}
\desc{hook used within the \idx{unsrtfam} while the
\idx{glossary} is being constructed before the entry line has
been added}
}
% \printunsrtglossarypostentryprocesshook
\gcmd{print\-unsrt\-glossary\-post\-entry\-process\-hook}
{
\providedby{\sty{glossaries-extra} v1.50+}
\syntax{\margm{internal cs}}
\desc{hook used within the \idx{unsrtfam} while the
\idx{glossary} is being constructed after the entry line has
been added}
}
% \printunsrtglossarygrouphook
\gcmd{print\-unsrt\-glossary\-group\-hook}
{
\providedby{\sty{glossaries-extra} v1.50+}
\syntax{\margm{internal cs}}
\desc{hook used within the \idx{unsrtfam} while the
\idx{group} header is being constructed}
}
% \printunsrtglossarypostbegin
\gcmd{print\-unsrt\-glossary\-post\-begin}
{
\providedby{\sty{glossaries-extra} v1.50+}
\syntax{\margm{internal cs}}
\desc{hook used within the \idx{unsrtfam} while the
\idx{glossary} is being constructed just after
\code{\cbeg{theglossary}} is added}
}
% \printunsrtglossarypreend
\gcmd{print\-unsrt\-glossary\-pre\-end}
{
\providedby{\sty{glossaries-extra} v1.50+}
\syntax{\margm{internal cs}}
\desc{hook used within the \idx{unsrtfam} while the
\idx{glossary} is being constructed just before
\code{\cend{theglossary}} is added}
}
% \glscurrenttoplevelentry
\gcmd{gls\-current\-top\-level\-entry}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{may be used within
\gls{printunsrtglossaryentryprocesshook} to reference the most
recent top level entry label (allowing for \printglossopt{flatten} and \printglossopt{leveloffset})}
}
% \glscurrentrootentry
\gcmd{gls\-current\-root\-entry}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{may be used within
\gls{printunsrtglossaryentryprocesshook} to reference the most
recent top level entry label (allowing for \printglossopt{flatten}
but not \printglossopt{leveloffset})}
}
% \currentglossary
\gcmd{current\-glossary}
{
\providedby{\sty{glossaries} v3.0+}
\desc{defined by the \csfmt{print\ldots glossary} commands to
the current \idx{glossary} label}
}
% \printunsrtglossarypredoglossary
\gcmd{print\-unsrt\-glossary\-pre\-do\-glossary}
{
\providedby{\sty{glossaries-extra} v1.21+}
\desc{hook performed by the \idx{unsrtfam} just before the
\idx{glossary} body is displayed}
}
% \@glsxtr@doglossary
\gcmd{@gls\-xtr\-@do\-glossary}
{
\providedby{\sty{glossaries-extra} v1.08+}
\desc{internal command used within the construction of the
\idx{glossary} code by the \idx{unsrtfam}. Should not be used
or modified but \gls{printunsrtglossarypredoglossary} can be
defined to show the definition of this command for debugging
purposes}
}
% \printunsrtglossaryhandler
\gcmd{print\-unsrt\-glossary\-handler}
{
\providedby{\sty{glossaries-extra} v1.16+}
\syntax{\margm{entry-label}}
\desc{used within the \idx{unsrtfam} to process the current entry}
}
% \glsxtrunsrtdo
\gcmd{gls\-xtr\-unsrt\-do}%
{%
\syntax{\margm{entry-label}}
\providedby{\sty{glossaries-extra} v1.12+}
\desc{used by the \idx{unsrtfam},
this displays the \idx{glossary} entry according to the current
\idx{glossarystyle} (taking the \idx{hierarchicallevel} into account,
which may have been adjusted by \printglossopt{leveloffset} or
\printglossopt{flatten})}
}
% \GlsXtrLocationField
\gcmd{Gls\-Xtr\-Location\-Field}
{
\providedby{\sty{glossaries-extra} v1.37+}
\initval{location}
\desc{expands to the \idx{internalfieldlabel} used to obtain the
formatted \idx{locationlist} for the \idx{unsrtfam}}
}
% \glsxtriflabelinlist
\gcmd{gls\-xtr\-if\-label\-in\-list}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{label}\margm{label-list}\margm{true}\margm{false}}
\desc{does \meta{true} if the given label is in the given comma-separated
list of labels, otherwise does \meta{false}. The label and list are fully
expanded}
}
% prinunsrtglossarywrap environment
\genv{print\-unsrt\-glossary\-wrap}%
{%
\providedby{\sty{glossaries-extra} v1.44+}
\syntax{\oargm{options}}
\desc{sets up the start and end of the \idx{glossary} (including
beginning and ending the \env{theglossary} environment). Use
\gls{printunsrtinnerglossary} within the body for each block of
entries}
}%
% print*glossary options
\gidx{printglossopt}{\name{print [unsrt|noidx] glossary options}%
\field{text}{print glossary option}%
\desc{most (but not all) of these options can be used in the optional argument
of all the print \idx{glossary} commands: \gls{printglossary}, \gls{printnoidxglossary},
\gls{printunsrtglossary} and \gls{printunsrtinnerglossary}.
Some may be used in the optional argument of
the \env{printunsrtglossarywrap} environment}
}
% printgloss type
\gprintglossopt{type}{%
\syntax{\meta{\idx{glossary}-label}}
\defval{\gls{glsdefaulttype}}%
\desc{identifies the \idx{glossary} to display}}
% printgloss sort
\gprintglossopt{sort}{%
\syntax{\meta{method}}
\desc{only available with \gls{printnoidxglossary}, this
indicates how the \idx{glossary} should be ordered}}
% printgloss title
\gprintglossopt{title}{%
\syntax{\meta{text}}
\desc{sets the glossary title (overriding the default)}}
% printgloss toctitle
\gprintglossopt{toc\-title}{%
\syntax{\meta{text}}
\desc{sets the glossary toc title (overriding the default)}}
% printgloss target
\gprintglossopt{target}{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\meta{boolean}}
\initval{true}%
\defval{true}%
\desc{if true, each entry in the \idx{glossary} should have a
hypertarget created, if supported by the \idx{glossarystyle} and if
hyperlinks are enabled}
}
% printgloss targetnameprefix
\gprintglossopt{target\-name\-prefix}{%
\providedby{\sty{glossaries-extra} v1.20+}
\syntax{\meta{prefix}}
\desc{inserts \meta{prefix} at the start of the hypertarget names}}
% printgloss prefix
\gprintglossopt{prefix}{%
\providedby{\sty{glossaries-extra} v1.31+}
\syntax{\meta{prefix}}
\desc{redefines \gls{glolinkprefix} to \meta{prefix}}}
% printgloss label
\gprintglossopt{label}{%
\providedby{\sty{glossaries-extra} v1.39+}
\syntax{\meta{label}}
\desc{adds \code{\gls{label}\margm{label}} to the start of the
\idx{glossary} (after the title). Not available with
\gls{printunsrtinnerglossary}}
}
% printgloss preamble
\gprintglossopt{preamble}{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\meta{text}}
\desc{redefines \gls{glossarypreamble} to \meta{text}}
}
% printgloss postamble
\gprintglossopt{postamble}{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\meta{text}}
\desc{redefines \gls{glossarypostamble} to \meta{text}}
}
% printgloss nonumberlist
\gprintglossopt{no\-number\-list}{%
\syntax{\meta{boolean}}
\initval{false}%
\defval{true}%
\desc{suppress the \gls{locationlist}. Note that
\printglossoptval{nonumberlist}{false}
will have no effect with the \resourceoptval{save-locations}{false}
\idx{resourceopt} as there won't be any \glspl{locationlist} to
display}
}
% printgloss nogroupskip
\gprintglossopt{no\-group\-skip}{%
\syntax{\meta{boolean}}
\initval{false}%
\defval{true}%
\desc{suppress the gap implemented by some \idxpl{glossarystyle}
between \idxpl{group}}
}
% printgloss numberedsection
\gprintglossopt{numbered\-section}{%
\syntax{\meta{value}}
\initval{false}%
\defval{nolabel}%
\desc{indicates whether or not \idx{glossary} section headers will be numbered
and also if they should automatically be labelled.
The \opt{numberedsection} package option will change the default
setting to match}
}
% printgloss style
\gprintglossopt{style}{%
\syntax{\meta{style-name}}
\desc{use the \meta{style-name} \idx{glossarystyle}}
}
% printgloss leveloffset
\gprintglossopt{level\-offset}{%
\providedby{\sty{glossaries-extra} v1.44+}
\syntax{\meta{offset}}
\initval{0}%
\desc{set or increment the \gls{hierarchicallevel} offset. If
\meta{offset} starts with \code{++} then the current offset is
incremented by the given amount otherwise the current offset is
set to \meta{offset}. For example, an entry with a normal
\gls{hierarchicallevel} of 1 will be treated as though it has
\gls{hierarchicallevel} $1+\meta{offset}$. This option is only available for the
\idx{unsrtfam} and the \env{printunsrtglossarywrap}
environment}%
}
% printgloss groups
\gprintglossopt{groups}{%
\providedby{\sty{glossaries-extra} v1.44+}
\syntax{\meta{boolean}}
\initval{true}%
\defval{true}%
\desc{enables \idx{group} formation. This option is only available for the
\idx{unsrtfam} and the \env{printunsrtglossarywrap}
environment. Note that no \idxpl{group} will be formed when
invoking \app{bib2gls} with the default \switch{no-group}, regardless of
this setting}
}
% printgloss flatten
\gprintglossopt{flatten}{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\meta{boolean}}
\initval{false}%
\defval{true}%
\desc{if true, treats all entries as though they have the same
hierarchical level (the value of \printglossopt{leveloffset}).
This option is only available for the
\idx{unsrtfam} and the \env{printunsrtglossarywrap}
environment}
}
% printgloss nopostdot
\gprintglossopt{no\-post\-dot}{%
\providedby{\sty{glossaries} v4.08+}
\syntax{\meta{boolean}}
\initval{false}%
\defval{true}%
\desc{suppress the post-description punctuation}
}
% printgloss entrycounter
\gprintglossopt{entry\-counter}{%
\providedby{\sty{glossaries} v4.08+}
\syntax{\meta{boolean}}
\initval{false}%
\defval{true}%
\desc{if true, enable the entry counter}
}
% printgloss subentrycounter
\gprintglossopt{sub\-entry\-counter}{%
\providedby{\sty{glossaries} v4.08+}
\syntax{\meta{boolean}}
\initval{false}%
\defval{true}%
\desc{if true, enable the sub-entry counter}
}
% \ifglsxtrprintglossflatten
\gcond{if\-gls\-xtr\-print\-gloss\-flatten}
{
\providedby{\sty{glossaries-extra} v1.49+}
\initvalcs{iffalse}
\desc{conditional set by the \printglossopt{flatten} option}
}
% \glsxtraddgroup
\gcmd{gls\-xtr\-add\-group}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{code}}
\desc{used by the \idx{unsrtfam} to perform \meta{code} if the
entry identified by \meta{entry-label} should have support for
\idxpl{group}}
}
% \glscurrententrylevel
\gcmd{gls\-current\-entry\-level}
{
\providedby{\sty{glossaries-extra} v1.44+}
\desc{defined within the \idx{unsrtfam} to the current
\idx{hierarchicallevel} (taking \printglossopt{leveloffset} into
account)}
}
% \glsxtrsetgrouptitle
\gcmd{gls\-xtr\-set\-group\-title}
{
\providedby{\sty{glossaries-extra} v1.14+}
\syntax{\margm{group-label}\margm{group-title}}
\desc{globally assigns the given title \meta{group-title} to the
\idx{group} identified by \meta{group-label}}
}
% \glsxtrlocalsetgrouptitle
\gcmd{gls\-xtr\-local\-set\-group\-title}
{
\providedby{\sty{glossaries-extra} v1.24+}
\syntax{\margm{group-label}\margm{group-title}}
\desc{locally assigns the given title \meta{group-title} to the
\idx{group} identified by \meta{group-label}}
}
% \glsxtrgetgrouptitle
\gcmd{gls\-xtr\-get\-group\-title}
{
\providedby{\sty{glossaries-extra} v1.14+}
\syntax{\margm{group-label}\margm{cs}}
\desc{obtains the title corresponding to the \idx{group}
identified by \meta{group-label} and stores the result in the
control sequence \meta{cs}}
}
% \glsxtrdetoklocation
\gcmd{gls\-xtr\-de\-tok\-location}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{location}}
\desc{just expands to \meta{location} by default but may be
redefined to help protect awkward characters}
}
% \glsdisplaynumberlist
\gcmd{gls\-display\-number\-list}
{
\providedby{\sty{glossaries} v3.02+}
\syntax{\margm{entry-label}}
\desc{formats the \idx{locationlist} for the given entry.
Redefined by \sty{glossaries-extra-bib2gls} to obtain the
\idx{locationlist} from the \gloskey{location} field}
}
% \glsentrynumberlist
\gcmd{gls\-entry\-number\-list}
{
\providedby{\sty{glossaries} v3.02+}
\syntax{\margm{entry-label}}
\desc{displays the \idx{locationlist} for the given entry.
Redefined by \sty{glossaries-extra-bib2gls} to obtain the
\idx{locationlist} from the \gloskey{location} field}
}
% COMMANDS: STANDALONE
% \glsxtrglossentry
\gcmd{gls\-xtr\-gloss\-entry}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}}
\desc{used for standalone entries to display the name with
\gls{glossentryname}, with appropriate hooks}
}
% \GlsXtrStandaloneGlossaryType
\gcmd{Gls\-Xtr\-Stand\-alone\-Glossary\-Type}
{
\providedby{\sty{glossaries-extra} v1.21+}
\desc{expands to the \idx{glossary} type for standalone entries}
}
% \GlsXtrStandaloneSubEntryItem
\gcmd{Gls\-Xtr\-Stand\-alone\-Sub\-Entry\-Item}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}}
\desc{used to display standalone entries that have the
\gloskey{parent} field set}
}
% \GlsXtrStandaloneEntryName
\gcmd{Gls\-Xtr\-Stand\-alone\-Entry\-Name}
{
\providedby{\sty{glossaries-extra} v1.37+}
\syntax{\margm{entry-label}}
\desc{used to display the standalone entry name and create the
associated hypertarget, if supported}
}
% \GlsXtrStandaloneEntryPdfName
\gcmd{Gls\-Xtr\-Stand\-alone\-Entry\-Pdf\-Name}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{used by \gls{glsxtrglossentry} for the PDF bookmark}
}
% \GlsXtrStandaloneEntryHeadName
\gcmd{Gls\-Xtr\-Stand\-alone\-Entry\-Head\-Name}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{used by \gls{glsxtrglossentry} for the header and toc}
}
% \GlsXtrStandaloneEntryOther
\gcmd{Gls\-Xtr\-Stand\-alone\-Entry\-Other}
{
\providedby{\sty{glossaries-extra} v1.37+}
\syntax{\margm{entry-label}\margm{field-label}}
\desc{as \gls{GlsXtrStandaloneEntryName} but where the text is
obtained from the given field instead of \gloskey{name}}
}
% \GlsXtrStandaloneEntryPdfOther
\gcmd{Gls\-Xtr\-Stand\-alone\-Entry\-Pdf\-Other}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{field-label}}
\desc{used by \gls{glsxtrglossentryother} for the PDF bookmark}
}
% \GlsXtrStandaloneEntryHeadOther
\gcmd{Gls\-Xtr\-Stand\-alone\-Entry\-Head\-Other}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{field-label}}
\desc{used by \gls{glsxtrglossentryother} for the header and toc}
}
% \glsxtractivatenopost
\gcmd{gls\-xtr\-activate\-no\-post}
{
\providedby{\sty{glossaries-extra} v1.22+}
\desc{activates \gls{nopostdesc} and \gls{glsxtrnopostpunc}}
}
% \glsxtrglossentryother
\gcmd{gls\-xtr\-gloss\-entry\-other}
{
\providedby{\sty{glossaries-extra} v1.22+}
\syntax{\margm{header}\margm{entry-label}\margm{field-label}}
\desc{like \gls{glsxtrglossentry} but uses the given field
instead of \gloskey{name}}
}
% COMMANDS: DEFINING ENTRIES
% \glsnoexpandfields
\gcmd{gls\-no\-expand\-fields}
{
\providedby{\sty{glossaries} v3.08a+}
\desc{don't expand field values when defining entries, except
for those that explicitly have expansion enabled with
\gls{glssetexpandfield}}
}
% \glsexpandfields
\gcmd{gls\-expand\-fields}
{
\providedby{\sty{glossaries} v3.08a+}
\desc{expand field values when defining entries, except
for those that explicitly have expansion disabled with
\gls{glssetnoexpandfield}}
}
% \glssetnoexpandfield
\gcmd{gls\-set\-no\-expand\-field}
{
\providedby{\sty{glossaries} v3.13a+}
\syntax{\margm{field}}
\desc{don't expand the value of the field identified by its
\idx{internalfieldlabel} when defining entries (overrides \gls{glsexpandfields})}
}
% \glssetexpandfield
\gcmd{gls\-set\-expand\-field}
{
\providedby{\sty{glossaries} v3.13a+}
\syntax{\margm{field}}
\desc{expand the value of the field identified by its
\idx{internalfieldlabel} when defining entries (overrides \gls{glsnoexpandfields})}
}
% \ifglsentryexists
\gcmd{if\-gls\-entry\-exists}
{
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the entry given by \meta{entry-label}
exists, otherwise does \meta{false}}
\field{seealso}{glsdoifexistsordo,glsdoifexists,glsdoifnoexists}
}
% \glsdoifexistsordo
\gcmd{gls\-do\-if\-exists\-or\-do}
{
\providedby{\sty{glossaries} v4.19+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{similar to \gls{ifglsentryexists}, this does \meta{true} if the entry
given by \meta{entry-label}
exists. If the entry doesn't it exist, this does \meta{false}
and generates an error (\opteqvalref{undefaction}{error}) or a warning
(\opteqvalref{undefaction}{warn}). The unknown marker
\idx{unknowntag} will be placed before the \meta{false} code}
\field{seealso}{ifglsentryexists,glsdoifexists,glsdoifnoexists}
}
% \glsdoifexists
\gcmd{gls\-do\-if\-exists}
{
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}\margm{code}}
\desc{does \meta{code} if the entry given by \meta{entry-label}
exists. If the entry doesn't exist, this will either generate
an error (\opteqvalref{undefaction}{error}) or a warning
(\opteqvalref{undefaction}{warn}) and, within the document
environment, it will insert the unknown marker \idx{unknowntag}}
\field{seealso}{ifglsentryexists,glsdoifexistsordo,glsdoifnoexists}
}
% \glsdoifexistsorwarn
\gcmd{gls\-do\-if\-exists\-or\-warn}
{
\providedby{\sty{glossaries} v4.03+}
\syntax{\margm{entry-label}\margm{code}}
\desc{like \gls{glsdoifexists}, but always warns (no error) if
the entry doesn't exist, regardless of the \opt{undefaction}
setting, and doesn't show the unknown marker}
}
% \glsdoifnoexists
\gcmd{gls\-do\-if\-no\-exists}
{
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}\margm{code}}
\desc{does \meta{code} if the entry given by \meta{entry-label}
does not exist. If the entry does exist, this will either generate
an error (\opteqvalref{undefaction}{error}) or a warning
(\opteqvalref{undefaction}{warn})}
\field{seealso}{ifglsentryexists,glsdoifexistsordo,glsdoifexists}
}
% \loadglsentries
\gcmd{load\-gls\-entries}
{
\providedby{\sty{glossaries}}%
\syntax{\oargm{type}\margm{filename}}
\desc{locally assigns \gls{glsdefaulttype} to \meta{type} and
inputs \meta{filename}. If the optional argument is omitted,
the default glossary is assumed. Note that if any entries with
\meta{filename} have the \gloskey{type} key set (including
implicitly in commands like \gls{newabbreviation}), then this will
override the type given in the optional argument}
}
% \newglossaryentry
\gcmd{new\-glossary\-entry}%
{%
\providedby{\sty{glossaries}}%
\syntax{\margm{entry-label}\margm{key=value list}}
\desc{defines a new \idx{glossary} entry with the given label. The
second argument is a comma-separated list of \idxpl{gloskey}}
}
% \longnewglossaryentry
\gcmd{long\-new\-glossary\-entry}%
{%
\providedby{\sty{glossaries} v3.11a}%
\syntax{\margm{entry-label}\margm{key=value list}\margm{description}}
\desc{defines a new \idx{glossary} entry with the given label. The
second argument is a comma-separated list of \idxpl{gloskey}.
The third argument is the description, which may include
paragraph breaks}
}
% \longnewglossaryentry*
\gcmd{long\-new\-glossary\-entry*}%
{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{key=value list}\margm{description}}
\desc{like the unstarred \gls{longnewglossaryentry} but doesn't
add the \gls{glsxtrpostlongdescription} hook}
}%
% \glsxtrpostlongdescription
\gcmd{gls\-xtr\-post\-long\-descrip\-tion}%
{%
\providedby{\sty{glossaries-extra} v1.12+}
\desc{hook added to the end of the \gloskey{description} field
by the unstarred version of \gls{longnewglossaryentry}}
}%
% \newterm
\gcmd{new\-term}%
{%
\providedby{\sty{glossaries} v4.02+}
\syntax{\oargm{key=value list}\margm{entry-label}}
\note{requires \opt{index} package option}
\desc{defines a new \idx{glossary} entry with the given label,
\gloskey{type} set to \code{index}, the \gloskey{name}
set to \meta{entry-label} and the \gloskey{description}
set to \gls{nopostdesc}. The
optional argument is a comma-separated list of \idxpl{gloskey},
which can be used to override the defaults}
}
% \glsxtrnewsymbol
\gcmd{gls\-xtr\-new\-symbol}%
{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{key=value list}\margm{entry-label}\margm{sym}}
\note{requires \code{\csfmt{usepackage}\oarg{\opt{symbols}}\marg{glossaries-extra}}}
\desc{defines a new \idx{glossary} entry with the given label,
\gloskey{type} set to \code{symbols}, the \gloskey{category} set
to \code{symbol}, the \gloskey{name} set to \meta{sym} and the \gloskey{sort}
set to \meta{entry-label}. The optional argument is a comma-separated list of \idxpl{gloskey},
which can be used to override the defaults}
}
% \glsxtrnewnumber
\gcmd{gls\-xtr\-new\-number}%
{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{key=value list}\margm{entry-label}\margm{num}}
\note{requires \code{\csfmt{usepackage}\oarg{\opt{numbers}}\marg{glossaries-extra}}}
\desc{defines a new \idx{glossary} entry with the given label,
\gloskey{type} set to \code{numbers}, the \gloskey{category} set
to \code{number}, the \gloskey{name} set to \meta{num} and the \gloskey{sort}
set to \meta{entry-label}. The optional argument is a comma-separated list of \idxpl{gloskey},
which can be used to override the defaults}
}
% \newentry
\gcmd{new\-entry}%
{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{entry-label}\margm{options}}
\desc{a synonym for \gls{newglossaryentry} defined by the
\opteqvalref{shortcuts}{other} package option}
}
% \newsym
\gcmd{new\-sym}%
{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{key=value list}\margm{entry-label}\margm{sym}}
\desc{a synonym for \gls{glsxtrnewsymbol} defined by the
\opteqvalref{shortcuts}{other} package option (provided
the \opt{symbols} option is also used)}
}
% \newnum
\gcmd{new\-num}%
{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{key=value list}\margm{entry-label}\margm{num}}
\desc{a synonym for \gls{glsxtrnewnumber} defined by the
\opteqvalref{shortcuts}{other} package option (provided
the \opt{numbers} option is also used)}
}
% \newabbr
\gcmd{new\-abbr}%
{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\margm{short}\margm{long}}
\desc{a synonym for \gls{newabbreviation} defined by the
\opteqvalref{shortcuts}{abbreviations} or
\opteqvalref{shortcuts}{ac} package option}
}
% \glsaddkey
\gcmd{gls\-add\-key}
{
\providedby{\sty{glossaries} v3.12a}
\syntax{\margm{key}\margm{default value}\margm{no link cs}\margm{no link ucfirst
cs}\margm{link cs}\margm{link ucfirst cs}\margm{link allcaps cs}}
\desc{defines a new \idx{gloskey} with the given default value
and commands that are analogous to \gls{glsentrytext} (\meta{no
link cs}), \gls{Glsentrytext} (\meta{no link ucfirst cs}),
\gls{glstext} (\meta{link cs}), \gls{Glstext} (\meta{link ucfirst cs}),
\gls{GLStext} (\meta{link allcaps cs}). The starred version switches on field
expansion for the given key}
\field{seealso}{glsaddstoragekey,glsxtrprovidestoragekey}
}
% \glsaddstoragekey
\gcmd{gls\-add\-storage\-key}
{%
\providedby{\sty{glossaries} v4.16}
\syntax{\margm{key}\margm{default value}\margm{no link cs}}
\desc{provides a new \idx{gloskey} with a default value and a
command for simply accessing the value (without indexing
or hyperlinks). The starred version switches on field
expansion for the given key}
\field{seealso}{glsaddkey,glsxtrprovidestoragekey}
}
% \glsxtrprovidestoragekey
\gcmds{gls\-xtr\-provide\-storage\-key}
{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{key}\margm{default value}\margm{no link cs}}
\desc{like \gls{glsaddstoragekey} but does nothing if the key
has already been defined}
}
% \glsxtrifkeydefined
\gcmd{gls\-xtr\-if\-key\-defined}
{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{key}\margm{true}\margm{false}}
\desc{tests if the given \meta{key} has been defined as a
\idx{gloskey}. Does \meta{true} if the key has been defined,
otherwise does false}
}
% \newglossaryentry (glossentry) keys
\gidxpl{gloskey}{%
\common
\field{text}{glossary entry key}
\desc{these are options that can be passed to commands that
define entries, such as \gls{newglossaryentry} or
\gls{newabbreviation}}
}
% glossentry name
\ggloskey{name}%
{%
\syntax{\margm{text}}
\desc{the entry's name, as displayed in the \idx{glossary}. This
typically isn't used outside of the \idx{glossary} (the \gloskey{text} and
\gloskey{plural} keys are used instead). However, if there is a
need to specifically display the entry name,
use \gls{glsname} (if \idx{indexing} and hyperlinks
are required) or \gls{glsentryname}. Glossary styles should use
\gls{glossentryname}, which uses \gls{glsentryname} and
incorporates the \idxpl{postnamehook} and related \attrs}
}
% glossentry description
\ggloskey{description}%
{%
\syntax{\margm{text}}
\desc{the entry's description, as displayed in the \idx{glossary}. If
required in the text, use \gls{glsdesc} (if \idx{indexing} and hyperlinks
are required) or \gls{glsentrydesc}. Glossary styles should use
\gls{glossentrydesc} and \gls{glspostdescription} to
incorporate the \idx{postdeschook}}
}
% glossentry descriptionplural
\ggloskey{description\-plural}%
{%
\syntax{\margm{text}}
\desc{the plural form of the entry's description, if applicable.
If omitted, this is set to the same value as the
\gloskey{description}, since descriptions tend not to be a singular
entity}
}
% glossentry type
\ggloskey{type}%
{%
\syntax{\meta{\idx{glossary}-label}}
\initvalcs{glsdefaulttype}%
\desc{assigns the entry to the \idx{glossary} identified by
\meta{\idx{glossary}-label}}
}
% glossentry parent
\ggloskey{parent}%
{%
\syntax{\meta{parent-label}}
\desc{the label of the entry's parent (from which the entry's
\idx{hierarchicallevel} is obtained)}
}
% glossentry category
\ggloskey{category}%
{%
\syntax{\meta{category-label}}%
\initval{general}%
\providedby{\sty{glossaries-extra}}
\desc{the entry's \idx{category} (must be a simple label)}
}
% glossentry sort
\ggloskey{sort}%
{%
\syntax{\meta{value}}
\initval{\meta{entry name}}
\desc{specifies the value to use for sorting (overrides the
default). This key is usually required for \app+{xindy} if the
\gloskey{name} key only contains commands (for example, the
entry is a symbol), but explicitly using this key in other
contexts can break certain sort methods.
\gallerypage{bib2gls-sorting}{Don't use the \gloskey{sort} field
with \app{bib2gls}}}
}
% glossentry text
\ggloskey{text}%
{%
\syntax{\margm{text}}
\desc{the entry's text, as displayed on \idx{subsequentuse} of
\idx{glslike} commands. If omitted, this value is assumed to be
the same as the \gloskey{name} key}
}
% glossentry plural
\ggloskey{plural}%
{%
\syntax{\margm{text}}
\desc{the entry's plural form, as displayed on \idx{subsequentuse} of
plural \idx{glslike} commands, such as \gls{glspl}. This should
be the appropriate plural form of the value provided by the
\gloskey{text} key. If omitted, this value is assumed to be the
value of the \gloskey{text} key with \gls{glspluralsuffix}
appended}
}
% glossentry symbol
\ggloskey{symbol}%
{%
\initvalcs{relax}
\syntax{\margm{symbol}}
\desc{the entry's associated symbol (optional), which can be
displayed with \gls{glssymbol} (if \idx{indexing} and hyperlinks are
required) or with \gls{glsentrysymbol}}
}
% glossentry symbolplural
\ggloskey{symbol\-plural}%
{%
\syntax{\margm{symbol plural}}
\desc{The plural form of the \gloskey{symbol}, if applicable,
which can be displayed with \gls{glssymbolplural} (if \idx{indexing}
and hyperlinks are required) or with \gls{glsentrysymbolplural}.
If omitted, this value is set to the same as the
\gloskey{symbol} key (since symbols usually don't have a plural
form)}
}
% glossentry first
\ggloskey{first}%
{%
\syntax{\margm{first}}
\desc{the entry's text, as displayed on \idx{firstuse} of
\idx{glslike} commands. Note that using an \idx{abbrvstyle}
or \glspl{postlinkhook} is a more flexible approach. If omitted,
this value is assumed to be the same as the \gloskey{text} key}
}
% glossentry firstplural
\ggloskey{first\-plural}%
{%
\syntax{\margm{text}}
\desc{the entry's plural form, as displayed on \idx{firstuse} of
plural \idx{glslike} commands, such as \gls{glspl}. If this key
is omitted, then the value will either be the same as the
\gloskey{plural} field, if the \gloskey{first} key wasn't used, or
the value will be taken from the \gloskey{first} key with
\gls{glspluralsuffix} appended}
}
% glossentry short
\ggloskey{short}%
{%
\syntax{\margm{short-form}}
\desc{a \idx{field} that is set by \gls{newabbreviation}
(and \gls{newacronym}) to the entry's short (abbreviated) form. It
typically shouldn't be used explicitly with
\gls{newglossaryentry} as \gls{newabbreviation}
makes other modifications to ensure that when the entry is
referenced with the \idx{glslike} commands, it will obey the
appropriate \idx{abbrvstyle}. If you are using \app{bib2gls}
then this field should be used in the \ext{bib} file when
defining abbreviations}
}
% glossentry shortplural
\ggloskey{short\-plural}%
{%
\syntax{\margm{short-form}}
\desc{as \gloskey{short} but the plural form. The default is
obtained by appending the abbreviation plural suffix, but this
behaviour can be altered by \idxpl{categoryattribute}. See
\sectionref{sec:abbreviations} for further details}
}
% glossentry long
\ggloskey{long}%
{%
\syntax{\margm{long-form}}
\desc{a \idx{field} that is set by \gls{newabbreviation} to
the entry's long (unabbreviated) form. It
typically shouldn't be used explicitly with
\gls{newglossaryentry} as \gls{newabbreviation}
makes other modifications to ensure that when the entry is
referenced with the \idx{glslike} commands, it will obey the
appropriate \idx{abbrvstyle}. If you are using \app{bib2gls}
then this field should be used in the \ext{bib} file when
defining abbreviations}
}
% glossentry longplural
\ggloskey{long\-plural}%
{%
\syntax{\margm{long-form}}
\desc{as \gloskey{long} but the plural form}
}
% glossentry user1
\ggloskey{user1}%
{%
\syntax{\margm{text}}
\desc{a generic field, which can be
displayed with \gls{glsuseri} (if \idx{indexing} and hyperlinks are
required) or with \gls{glsentryuseri}}
}
% glossentry user2
\ggloskey{user2}%
{%
\syntax{\margm{text}}
\desc{a generic field, which can be
displayed with \gls{glsuserii} (if \idx{indexing} and hyperlinks are
required) or with \gls{glsentryuserii}}
}
% glossentry user3
\ggloskey{user3}%
{%
\syntax{\margm{text}}
\desc{a generic field, which can be
displayed with \gls{glsuseriii} (if \idx{indexing} and hyperlinks are
required) or with \gls{glsentryuseriii}}
}
% glossentry user4
\ggloskey{user4}%
{%
\syntax{\margm{text}}
\desc{a generic field, which can be
displayed with \gls{glsuseriv} (if \idx{indexing} and hyperlinks are
required) or with \gls{glsentryuseriv}}
}
% glossentry user5
\ggloskey{user5}%
{%
\syntax{\margm{text}}
\desc{a generic field, which can be
displayed with \gls{glsuserv} (if \idx{indexing} and hyperlinks are
required) or with \gls{glsentryuserv}}
}
% glossentry user6
\ggloskey{user6}%
{%
\syntax{\margm{text}}
\desc{a generic field, which can be
displayed with \gls{glsuservi} (if \idx{indexing} and hyperlinks are
required) or with \gls{glsentryuservi}}
}
% glossentry counter
\ggloskey{counter}%
{%
\syntax{\margm{counter-name}}
\desc{if set, the value indicates the \idx{locationcounter} to use
by default when \idx{indexing} this entry (overrides the
counter associated with the \idx{glossary} or the \opt{counter}
package option)}
}
% glossentry see
\ggloskey{see}%
{%
\syntax{\marg{\oargm{tag}\meta{xr-list}}}
\desc{with the base \sty{glossaries} package this simply
triggers an automatic cross-reference with \gls{glssee}. The
\sty{glossaries-extra} package additionally saves the value.
Use \opteqvalref{autoseeindex}{false} to prevent the automatic
cross-reference. The \meta{tag} defaults to \gls{seename} and
\meta{xr-list} should be a comma-separated list of entries that
have already been defined}
}
% glossentry seealso
\ggloskey{see\-also}%
{%
\providedby{\sty{glossaries-extra}}
\syntax{\margm{xr-list}}
\desc{behaves in a similar manner to
\gloskeyval{see}{\oarg{\gls{seealsoname}}\meta{xr-list}}}
}
% glossentry alias
\ggloskey{alias}%
{%
\providedby{\sty{glossaries-extra}}
\syntax{\margm{xr-label}}
\desc{behaves in a similar manner to
\gloskeyval{see}{\oarg{\gls{seealsoname}}\meta{xr-label}} but also
sets up aliasing which makes the \idx{linktext} hyperlink to
\meta{xr-label} instead}
}
% glossentry group
\ggloskey{group}%
{%
\providedby{\sty{glossaries-extra}}
\syntax{\margm{group-label}}
\desc{the \idx{group} label that identifies which \idx{group} the
entry belongs to. This key is only available with the
\opteqvalref{record}{only} and \opteqvalref{record}{nameref} options,
and is set by \app{bib2gls}, if invoked with \switch{group} or \switch{g}.
This is an \idxc{bib2glsinternalfield}{internal key} assigned by
\app{bib2gls} as a by-product of sorting.
Explicit use without reference to the order of entries can result in
fragmented groups. The corresponding title can be set with
\gls{glsxtrsetgrouptitle}, although this is more commonly done
implicitly within the \ext{glstex} file}
}
% glossentry location
\ggloskey{location}%
{%
\providedby{\sty{glossaries-extra}}
\syntax{\margm{location-list}}
\desc{the formatted \idx{locationlist} used by the \idx{unsrtfam}. This key
is only available with the \opt{record} option and is set by \app{bib2gls}
unless \resourceopt{save-locations}{false} is set}
}
% ACCESSIBILITY KEYS
% glossentry access
\ggloskey{access}%
{%
\note{requires \opt{accsupp}}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{name} field.
This field will be automatically set by
\gls{newabbreviation}, if not provided and the
\catattr{nameshortaccess} attribute is set. See \sectionref{sec:accessabbr}}
}
% glossentry textaccess
\ggloskey{text\-access}%
{%
\note{requires \opt{accsupp}}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{text} field.
This field will be automatically set by
\gls{newabbreviation}, if not provided and the
\catattr{textshortaccess} attribute is set. See \sectionref{sec:accessabbr}}
}
% glossentry pluralaccess
\ggloskey{plural\-access}%
{%
\note{requires \opt{accsupp}}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{plural} field.
This field will be automatically set by
\gls{newabbreviation}, if not provided and the
\catattr{textshortaccess} attribute is set. See \sectionref{sec:accessabbr}}
}
% glossentry firstaccess
\ggloskey{first\-access}%
{%
\note{requires \opt{accsupp}}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{first} field.
This field will be automatically set by
\gls{newabbreviation}, if not provided and the
\catattr{firstshortaccess} attribute is set. See \sectionref{sec:accessabbr}}
}
% glossentry firstpluralaccess
\ggloskey{first\-plural\-access}%
{%
\note{requires \opt{accsupp}}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{firstplural} field.
This field will be automatically set by
\gls{newabbreviation}, if not provided and the
\catattr{firstshortaccess} attribute is set. See \sectionref{sec:accessabbr}}
}
% glossentry shortaccess
\ggloskey{short\-access}%
{%
\note{requires \opt{accsupp}}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{short}
field. This field will be automatically set by
\gls{newabbreviation}, if not provided. See \sectionref{sec:accessabbr}}
}
% glossentry shortpluralaccess
\ggloskey{short\-plural\-access}%
{%
\note{requires \opt{accsupp}}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{shortplural} field. This field will be automatically set by
\gls{newabbreviation}, if not provided. See \sectionref{sec:accessabbr}}
}
% glossentry longaccess
\ggloskey{long\-access}%
{%
\note{requires \opt{accsupp}}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{long} field}
}
% glossentry longpluralaccess
\ggloskey{long\-plural\-access}%
{%
\note{requires \opt{accsupp}}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{longplural} field}
}
% glossentry descriptionaccess
\ggloskey{description\-access}%
{%
\note{requires \opt{accsupp}}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{description} field}
}
% glossentry descriptionpluralaccess
\ggloskey{description\-plural\-access}%
{%
\note{requires \opt{accsupp}}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{descriptionplural} field}
}
% glossentry symbolaccess
\ggloskey{symbol\-access}%
{%
\note{requires \opt{accsupp}}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{symbol} field}
}
% glossentry symbolpluralaccess
\ggloskey{symbol\-plural\-access}%
{%
\note{requires \opt{accsupp}}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{symbolplural} field}
}
% glossentry user1access
\ggloskey{user1\-access}%
{%
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{user1} field}
}
% glossentry user2access
\ggloskey{user2\-access}%
{%
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{user2} field}
}
% glossentry user3access
\ggloskey{user3\-access}%
{%
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{user3} field}
}
% glossentry user4access
\ggloskey{user4\-access}%
{%
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{user4} field}
}
% glossentry user5access
\ggloskey{user5\-access}%
{%
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{user5} field}
}
% glossentry user6access
\ggloskey{user6\-access}%
{%
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\margm{text}}
\desc{accessibility text corresponding to the \gloskey{user6} field}
}
% PREFIX KEYS
% glossentry prefix
\ggloskey{prefix}%
{%
\providedby{\sty{glossaries-prefix} v3.14a+}
\syntax{\margm{text}}
\desc{the \idx{subsequentuse} singular prefix}
}
% glossentry prefixplural
\ggloskey{prefix\-plural}%
{%
\providedby{\sty{glossaries-prefix} v3.14a+}
\syntax{\margm{text}}
\desc{the \idx{subsequentuse} plural prefix}
}
% glossentry prefixfirst
\ggloskey{prefix\-first}%
{%
\providedby{\sty{glossaries-prefix} v3.14a+}
\syntax{\margm{text}}
\desc{the \idx{firstuse} singular prefix}
}
% glossentry prefixfirstplural
\ggloskey{prefix\-first\-plural}%
{%
\providedby{\sty{glossaries-prefix} v3.14a+}
\syntax{\margm{text}}
\desc{the \idx{firstuse} plural prefix}
}
% COMMANDS: FIELDS
\gidxpl{glosfield}{%
\common
\field{text}{glossary entry field}
\desc{these are internal fields that don't have a corresponding
\idxc{gloskey}{key}}
}
\gidx{internalfieldname}{\name{internal field name}\field{alias}{idx.glosfield}}
% field loclist
\gglosfield{loc\-list}%
{%
\providedby{\sty{glossaries} v4.04+}
\syntax{\margm{\sty{etoolbox} list}}
\desc{used by \gls{printnoidxglossary} to provide the locations.
The value is an \sty{etoolbox} list of individual locations
which are obtained from the \ext+{aux} file. This field will also
be used by the \idx{unsrtfam} if \gloskey{location} isn't set}
}
% field indexcounter
\gglosfield{index\-counter}%
{%
\syntax{\margm{target-name}}
\desc{used with the \opt{indexcounter} package option and the
\resourceopt{save-index-counter} resource option. The value is
set to the hyperlink target of the first \ctr{wrglossary} \location\
or the first instance for a specific \idx{locationencap}}
}
% field childcount
\gglosfield{child\-count}%
{%
\syntax{\margm{number}}
\desc{used with the \resourceopt{save-child-count} resource
option to store the entry's child count}
}
% field childlist
\gglosfield{child\-list}%
{%
\syntax{\margm{entry-label-list}}
\desc{used with the \resourceopt{save-child-count} resource
option to store the entry's children as an \sty{etoolbox}
internal list}
}
% field recordcount
\gglosfield{record\-count}%
{%
\syntax{\margm{number}}
\desc{used with the \switch{record-count} switch to store the
total number of \records\ for the associated entry}
}
% field record.<counter>
\gglosfield{record.counter}%
{%
\name{\csoptfmt{record\dfullstop\meta{counter}}}
\syntax{\margm{location}}
\desc{used with \gls{GlsXtrRecordCounter} to store an
\sty{etoolbox} internal list of locations (without encap) corresponding to the
given counter}
}
% field recordcount.<counter>
\gglosfield{record\-count.counter}%
{%
\name{\csoptfmt{record\-count\dfullstop\meta{counter}}}
\syntax{\margm{number}}
\desc{used with the \switch{record-count} switch to store the
total number of \records\ with the \idx{locationcounter} \meta{counter}
for the associated entry}
}
% field recordcount.<counter>.<location>
\gglosfield{record\-count.counter.location}%
{%
\name{\csoptfmt{record\-count\dfullstop\meta{counter}\dfullstop\meta{location}}}
\syntax{\margm{number}}
\desc{used with the \switch{record-count-unit} switch to store the
total number of \records\ with the \idx{locationcounter}
\meta{counter} set to \meta{location} for the associated entry}
}
% field secondarygroup
\gglosfield{sec\-ondary\-group}
{
\syntax{\margm{group-label}}
\desc{used by \app{bib2gls} to store the \idx{group} label
obtained from the secondary sort}
}
% internal field useri
\gglosfield{useri}
{
\desc{corresponds to \gloskey{user1} key}
}
% internal field userii
\gglosfield{userii}
{
\desc{corresponds to \gloskey{user2} key}
}
% internal field useriii
\gglosfield{useriii}
{
\desc{corresponds to \gloskey{user3} key}
}
% \glscategory
\gcmd{gls\-category}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{entry-label}}
\desc{expands to the entry's category}
}
% \glsfieldxdef
\gcmd{gls\-field\-xdef}
{
\providedby{\sty{glossaries} v4.16+}
\syntax{\margm{entry-label}\margm{field}\margm{value}}
\desc{as \gls{glsfieldedef} but does a global assignment}
}
% \glsfieldedef
\gcmd{gls\-field\-edef}
{
\providedby{\sty{glossaries} v4.16+}
\syntax{\margm{entry-label}\margm{field}\margm{value}}
\desc{locally assigns the full expansion of \meta{value} to the given \idx{field}
(identified by the \idx{internalfieldlabel} \meta{field}) for the entry identified by
\meta{entry-label}. Produces an error (or warning with
\opteqvalref{undefaction}{warn}) if the entry or field doesn't
exist. Note that this doesn't update any associated fields}
}
% \glsfieldgdef
\gcmd{gls\-field\-gdef}
{
\providedby{\sty{glossaries} v4.16+}
\syntax{\margm{entry-label}\margm{field}\margm{value}}
\desc{as \gls{glsfielddef} but does a global assignment}
}
% \glsfielddef
\gcmd{gls\-field\-def}
{
\providedby{\sty{glossaries} v4.16+}
\syntax{\margm{entry-label}\margm{field}\margm{value}}
\desc{locally assigns the \meta{value} to the given \idx{field}
(identified by the \idx{internalfieldlabel} \meta{field}) for the entry identified by
\meta{entry-label}. Produces an error (or warning with
\opteqvalref{undefaction}{warn}) if the entry or field doesn't
exist. Note that this doesn't update any associated fields}
}
% \glsxtrdeffield
\gcmd{gls\-xtr\-def\-field}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field-label}\margm{value}}
\desc{like \gls{GlsXtrSetField} but doesn't perform any
existence checks}
}
% \glsxtredeffield
\gcmd{gls\-xtr\-edef\-field}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field-label}\margm{value}}
\desc{like \gls{glsxtrdeffield} but (protected) expands
\meta{value}}
}
% \glsxtrapptocsvfield
\gcmd{gls\-xtr\-app\-to\-csv\-field}
{
\providedby{\sty{glossaries-extra} v1.47+}
\syntax{\margm{entry-label}\margm{field-label}\margm{element}}
\desc{For use with fields that should contain comma-separated
lists, this will append a command followed by \meta{element} to
the field value. If the field isn't defined, this command will
behave like \gls{glsxtrdeffield}. No existence check is performed}
}
% \glsxtrsetfieldifexists
\gcmd{gls\-xtr\-set\-field\-if\-exists}
{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field-label}\margm{code}}
\desc{used by commands like \gls{GlsXtrSetField} to check if
the entry exists before assigning a value to the field. The
\meta{code} part is the assignment code, which is only done if
the required condition is met. This can be redefined if the
condition needs to be altered}
}
% \glsxtrfieldlistadd
\gcmd{gls\-xtr\-field\-list\-add}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field}\margm{value}}
\desc{appends \meta{value} to the given field using
\sty{etoolbox}['s] \gls{listcsadd}}
}
% \glsxtrfieldlistgadd
\gcmd{gls\-xtr\-field\-list\-gadd}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field}\margm{value}}
\desc{appends \meta{value} to the given field using
\sty{etoolbox}['s] \gls{listcsgadd}}
}
% \glsxtrfieldlisteadd
\gcmd{gls\-xtr\-field\-list\-eadd}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field}\margm{value}}
\desc{appends \meta{value} to the given field using
\sty{etoolbox}['s] \gls{listcseadd}}
}
% \glsxtrfieldlistxadd
\gcmd{gls\-xtr\-field\-list\-xadd}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field}\margm{value}}
\desc{appends \meta{value} to the given field using
\sty{etoolbox}['s] \gls{listcsxadd}}
}
% \glsxtrfieldformatlist
\gcmd{gls\-xtr\-field\-format\-list}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}\margm{field-label}}
\desc{formats the value of the given field, which should be
an \sty{etoolbox} internal list, using the same list handler
macro as \sty{datatool}['s] \gls{DTLformatlist}}
}
% \glsxtrfielddolistloop
\gcmd{gls\-xtr\-field\-do\-list\-loop}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field}}
\desc{iterates over the given field's value using
\sty{etoolbox}['s] \gls{dolistcsloop}}
}
% \glsxtrfieldforlistloop
\gcmd{gls\-xtr\-field\-for\-list\-loop}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field}\margm{handler-cs}}
\desc{iterates over the given field's value using
\sty{etoolbox}['s] \gls{forlistcsloop}}
}
% \glsxtrfieldifinlist
\gcmd{gls\-xtr\-field\-if\-in\-list}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field}\margm{item}\margm{true}\margm{false}}
\desc{uses \sty{etoolbox}['s] \gls{ifinlistcs} to determine if
\meta{item} is in the list stored in the given field}
}
% \glsxtrfieldxifinlist
\gcmd{gls\-xtr\-field\-x\-if\-in\-list}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field}\margm{item}\margm{true}\margm{false}}
\desc{uses \sty{etoolbox}['s] \gls{xifinlistcs} to determine if
\meta{item} is in the list stored in the given field}
}
% \GlsXtrSetField
\gcmd{Gls\-Xtr\-Set\-Field}%
{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field-label}\margm{value}}
\desc{assigns \meta{value} to the field identified by its
\idxc{internalfieldlabel}{internal label} \meta{field-label}
for the entry identified by \meta{entry-label}. An error (or
warning with \opteqvalref{undefaction}{warn}) occurs
if the entry hasn't been defined}
}
% \gGlsXtrSetField
\gcmd{gGls\-Xtr\-Set\-Field}%
{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field-label}\margm{value}}
\desc{as \gls{GlsXtrSetField} but globally assigns the value}
}
% \eGlsXtrSetField
\gcmd{eGls\-Xtr\-Set\-Field}%
{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field-label}\margm{value}}
\desc{as \gls{GlsXtrSetField} but expands the value}
}
% \xGlsXtrSetField
\gcmd{xGls\-Xtr\-Set\-Field}%
{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field-label}\margm{value}}
\desc{as \gls{GlsXtrSetField} but expands the value and uses a
global assignment}
}
% \GlsXtrLetField
\gcmd{Gls\-Xtr\-Let\-Field}%
{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field-label}\margm{cs}}
\desc{like \gls{GlsXtrSetField} but internally uses
(\sty{etoolbox}['s]) \gls{cslet} instead of \gls{csdef}}
}
% \csGlsXtrLetField
\gcmd{cs\-Gls\-Xtr\-Let\-Field}%
{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field-label}\margm{cs-name}}
\desc{like \gls{GlsXtrLetField} but internally uses
(\sty{etoolbox}['s]) \gls{csletcs} instead of \gls{cslet}}
}
% \GlsXtrLetFieldToField
\gcmd{Gls\-Xtr\-Let\-Field\-To\-Field}%
{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry1-label}\margm{field1-label}\margm{entry2-label}\margm{field2-label}}
\desc{assigns the \idx{field} identified by its
\idxc{internalfieldlabel}{internal label} \meta{field1-label}
for the entry identified by \meta{entry1-label} to the
value of the \idx{field} identified by \meta{field2-label} for the
entry identified by \meta{entry2-label}}
}
% \GlsXtrIfFieldUndef
\gcmd{Gls\-Xtr\-If\-Field\-Undef}
{
\providedby{\sty{glossaries-extra} v1.23+}
\syntax{\margm{field-label}\margm{entry-label}\margm{true}\margm{false}}
\desc{expandable command that tests if the given \idx{field} (identified by its
\idxc{internalfieldlabel}{internal label}) is undefined for the
entry given by \meta{entry-label}. Internally uses \sty{etoolbox}['s]
\gls{ifcsundef} command. Unlike \gls{glsxtrifhasfield} there is no
grouping or starred version}
\field{seealso}{ifglsfieldvoid}
}
% \glsxtrifhasfield
\gcmds{gls\-xtr\-if\-has\-field}
{
\providedby{\sty{glossaries-extra} v1.19+}
\syntax{\margm{field-label}\margm{entry-label}\margm{true}\margm{false}}
\desc{tests if the \idx{field} identified by its
\idxc{internalfieldlabel}{internal label} \meta{field-label} for the entry
given by \meta{entry-label} is defined and is not empty. This is like
\gls{ifglshasfield} but doesn't produce a warning if the entry or field
doesn't exist. This sets \gls{glscurrentfieldvalue} to the field value and
does \meta{true} if its defined and not empty, otherwise it does
\meta{false}. The unstarred version adds implicit grouping to
make nesting easier. The starred version doesn't (to make
assignments easier)}
}
% \ifglsfieldeq
\gcmd{if\-gls\-field\-eq}
{
\providedby{\sty{glossaries} v4.16+}
\syntax{\margm{entry-label}\margm{field-label}\margm{string}\margm{true}\margm{false}}
\desc{tests if the value of the given field is equal to the
given string using \sty{etoolbox}['s] \gls{ifcsstring}.
Triggers an error if the given field (identified by its
\idx{internalfieldlabel}) hasn't been defined. Uses
\gls{glsdoifexists}}
}
% \ifglsfielddefeq
\gcmd{if\-gls\-field\-def\-eq}
{
\providedby{\sty{glossaries} v4.16+}
\syntax{\margm{entry-label}\margm{field-label}\margm{cs}\margm{true}\margm{false}}
\desc{tests if the value of the given field is equal to the
replacement text of the given command \meta{cs} using \sty{etoolbox}['s]
\csfmt{ifdefstrequal}.
Triggers an error if the given field (identified by its
\idx{internalfieldlabel}) hasn't been defined. Uses
\gls{glsdoifexists}}
}
% \ifglsfieldcseq
\gcmd{if\-gls\-field\-cs\-eq}
{
\providedby{\sty{glossaries} v4.16+}
\syntax{\margm{entry-label}\margm{field-label}\margm{cs-name}\margm{true}\margm{false}}
\desc{tests if the value of the given field is equal to the
replacement text of the command given by the control sequence
name \meta{cs-name} using \sty{etoolbox}['s] \csfmt{ifcsstrequal}.
Triggers an error if the given field (identified by its
\idx{internalfieldlabel}) hasn't been defined. Uses
\gls{glsdoifexists}}
}
% \glsfieldfetch
\gcmd{gls\-field\-fetch}
{
\providedby{\sty{glossaries} v4.16+}
\syntax{\margm{entry-label}\margm{field-label}\margm{cs}}
\desc{fetches the value of the given field for the given entry and stores it in
the command \meta{cs}. Triggers an error if the given field (identified by its
\idx{internalfieldlabel}) hasn't been defined. Uses
\gls{glsdoifexists}}
}
% \glsunexpandedfieldvalue
\gcmd{gls\-un\-expanded\-field\-value}
{
\providedby{\sty{glossaries} v4.48+}
\syntax{\margm{entry-label}\margm{field-label}}
\desc{for use in expandable contexts where the field value is
required but the contents should not be expanded. The field
should be identified by its \idx{internalfieldlabel}. Expands
to nothing with no error or warning if the entry or field aren't defined}
}
% \GlsXtrIfFieldCmpNum
\gcmds{Gls\-Xtr\-If\-Field\-Cmp\-Num}
{
\providedby{\sty{glossaries-extra} v1.31+}
\syntax{\margm{field-label}\margm{entry-label}\margm{op}\margm{number}\margm{true}\margm{false}}
\desc{compares the (numeric) value of the \idx{field} identified by its
\idxc{internalfieldlabel}{internal label}
\meta{field-label} for the entry identified by
\meta{entry-label} with \meta{number} where \meta{op} is
the comparison operator (\code{=}, \code{<} or \code{>}). The
unstarred version adds implicit grouping. The starred version
doesn't}
}
% \GlsXtrIfFieldEqNum
\gcmds{Gls\-Xtr\-If\-Field\-Eq\-Num}
{
\providedby{\sty{glossaries-extra} v1.31+}
\syntax{\margm{field-label}\margm{entry-label}\margm{number}\margm{true}\margm{false}}
\desc{a shortcut that uses \gls{GlsXtrIfFieldCmpNum} with
\meta{op} set to \code{=}. The
unstarred version adds implicit grouping. The starred version
doesn't}
}
% \GlsXtrIfFieldNonZero
\gcmds{Gls\-Xtr\-If\-Field\-Non\-Zero}
{
\providedby{\sty{glossaries-extra} v1.31+}
\syntax{\margm{field-label}\margm{entry-label}\margm{true}\margm{false}}
\desc{a shortcut that uses \gls{GlsXtrIfFieldCmpNum} to test if
the (numeric) value of the \idx{field} identified by its
\idxc{internalfieldlabel}{internal label}
\meta{field-label} for the entry identified by
\meta{entry-label} is non-zero. An empty or undefined field is
treated as 0. The unstarred version adds implicit grouping. The starred version
doesn't. The value can be referenced within \meta{true} (where
it will be 0) or within \meta{false} using \gls{glscurrentfieldvalue}}
}
% \GlsXtrIfFieldEqStr
\gcmds{Gls\-Xtr\-If\-Field\-Eq\-Str}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{field-label}\margm{entry-label}\margm{value}\margm{true}\margm{false}}
\desc{tests if the entry given by \meta{entry-label} has the
\idx{field} identified by its \idxc{internalfieldlabel}{internal label}
\meta{field-label} set to \meta{value}. This internally uses
\gls{glsxtrifhasfield} and compares \gls{glscurrentfieldvalue}
to \meta{value} using \sty{etoolbox}['s] \gls{ifdefstring}. The
unstarred version adds implicit grouping. The starred version
doesn't}
}
% \GlsXtrIfFieldEqXpStr
\gcmds{Gls\-Xtr\-If\-Field\-Eq\-Xp\-Str}
{
\providedby{\sty{glossaries-extra} v1.31+}
\syntax{\margm{field-label}\margm{entry-label}\margm{value}\margm{true}\margm{false}}
\desc{like \gls{GlsXtrIfFieldEqStr} but first (protected) expands
\meta{value}}
}
% \GlsXtrIfXpFieldEqXpStr
\gcmds{Gls\-Xtr\-If\-Xp\-Field\-Eq\-Xp\-Str}
{
\providedby{\sty{glossaries-extra} v1.31+}
\syntax{\margm{field-label}\margm{entry-label}\margm{value}\margm{true}\margm{false}}
\desc{like \gls{GlsXtrIfFieldEqStr} but first (protected) expands
both the field value and the supplied \meta{value}}
}
% \glsxtrforcsvfield
\gcmds{gls\-xtr\-for\-csv\-field}
{
\providedby{\sty{glossaries-extra} v1.24+}
\syntax{\margm{entry-label}\margm{field-label}\margm{handler cs}}
\desc{iterates over the comma-separated list stored in the given \idx{field}
(identified by its \idxc{internalfieldlabel}{internal label})
for the entry identified by \meta{entry-label} and performs
\code{\meta{handler cs}\margm{element}} for each element of the
list. This command uses \gls{glsxtrifhasfield} so the complete
list can be obtained with \gls{glscurrentfieldvalue}. The
unstarred version adds implicit grouping. The starred version
doesn't}
}
% \glsxtrendfor
\gcmd{glsxtrendfor}
{
\providedby{\sty{glossaries-extra} v1.24+}
\desc{when used within \gls{glsxtrforcsvfield} signifies that
the loop should break at the end of the current iteration}
}
% \glsxtrfieldformatcsvlist
\gcmd{gls\-xtr\-field\-format\-csv\-list}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}\margm{field-label}}
\desc{formats the comma-separated list stored in the given \idx{field}
(identified by its \idxc{internalfieldlabel}{internal label})
for the entry identified by \meta{entry-label} using \sty{datatool-base}['s]
\gls{DTLformatlist}.
This command uses \gls{glsxtrifhasfield} so the complete
list can be obtained with \gls{glscurrentfieldvalue}.
This adds implicit grouping. There is no starred version}
}
% \GlsXtrIfFieldValueInCsvList
\gcmds{Gls\-Xtr\-If\-Field\-Value\-In\-Csv\-List}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}\margm{field-label}\margm{csv-list}\margm{true}\margm{false}}
\desc{tests if the value stored in the given \idx{field}
(identified by its \idxc{internalfieldlabel}{internal label})
for the entry identified by \meta{entry-label} is contained in
the comma-separated list \meta{csv-list} using
\gls{DTLifinlist} (provided by \sty{datatool-base}, which is
automatically loaded by the \sty{glossaries} package).
One level expansion is performed on \meta{csv-list}.
This command uses \gls{glsxtrifhasfield} so the field value
can be obtained with \gls{glscurrentfieldvalue}.
The unstarred version adds implicit grouping. The starred version doesn't}
}
% \GlsXtrIfValueInFieldCsvList
\gcmds{Gls\-Xtr\-If\-Value\-In\-Field\-Csv\-List}
{
\providedby{\sty{glossaries-extra} v1.47+}
\syntax{\margm{entry-label}\margm{field-label}\margm{value}\margm{true}\margm{false}}
\desc{tests if the given value (\meta{value}) is contained in
the comma-separated list stored in the given \idx{field}
(identified by its \idxc{internalfieldlabel}{internal label})
for the entry identified by \meta{entry-label} using
\gls{DTLifinlist} (provided by \sty{datatool-base}, which is
automatically loaded by the \sty{glossaries} package).
No expansion is performed on \meta{value}.
This command uses \gls{glsxtrifhasfield} so the complete
list can be obtained with \gls{glscurrentfieldvalue}.
The unstarred version adds implicit grouping. The starred version doesn't}
}
% \xGlsXtrIfValueInFieldCsvList
\gcmds{xGls\-Xtr\-If\-Value\-In\-Field\-Csv\-List}
{
\providedby{\sty{glossaries-extra} v1.47+}
\syntax{\margm{entry-label}\margm{field-label}\margm{value}\margm{true}\margm{false}}
\desc{as \gls{GlsXtrIfValueInFieldCsvList} but fully expands
\meta{value}}
}
% \glsxtrusefield
\gcmd{gls\-xtr\-use\-field}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field-label}}
\desc{expands to the value of the given \idx{field}
(identified by its \idxc{internalfieldlabel}{internal label}
\meta{field-label}) for the entry given by
\meta{entry-label}. Expands to \gls{relax} if the entry or field are undefined}
}
% \Glsxtrusefield
\gcmd{Gls\-xtr\-use\-field}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{field-label}}
\desc{as \gls{glsxtrusefield} but uses \idx{sentencecase}}
}
% \GLSxtrusefield
\gcmd{GLS\-xtr\-use\-field}
{
\providedby{\sty{glossaries-extra} v1.37+}
\syntax{\margm{entry-label}\margm{field-label}}
\desc{as \gls{glsxtrusefield} but converts the field value
to \idx{allcaps}}
}
% \glsxtrfieldtitlecase
\gcmd{gls\-xtr\-field\-title\-case}
{
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{entry-label}\margm{field-label}}
\desc{as \gls{glsxtrusefield} but converts the field value
to \idx{titlecase}}
}
% \glsxtrfieldtitlecasecs
\gcmd{gls\-xtr\-field\-title\-case\-cs}
{
\providedby{\sty{glossaries-extra} v1.07+}
\syntax{\margm{content}}
\desc{converts \meta{content} to \idx{titlecase} (expanding the
first token once). Uses \gls{glscapitalisewords}, if defined,
otherwise uses \gls{capitalisewords}}
}
% \glscapitalisewords
\gcmd{gls\-capitalise\-words}
{
\providedby{\sty{glossaries} v4.48+}
\syntax{\margm{content}}
\desc{just does \gls{capitalisewords} but may be redefined to
use \gls{capitalisefmtwords}, if required}
}
% \glsentrytitlecase
\gcmd{gls\-entry\-title\-case}
{
\providedby{\sty{glossaries} v4.22+}
\syntax{\margm{entry-label}\margm{field-label}}
\desc{applies \idx{titlecase} to the value supplied in the given
field (which is obtained with \gls{glsfieldfetch})}
}
% \glsletentryfield
\gcmd{gls\-let\-entry\-field}
{
\providedby{\sty{glossaries} v4.07+}
\syntax{\margm{cs}\margm{entry-label}\margm{field-label}}
\desc{fetches the value of the given \idx{field}
(identified by its \idxc{internalfieldlabel}{internal label}
\meta{field-label}) for the entry given by
\meta{entry-label} and stores it in the command \meta{cs}}
}
% \glsxtrentryparentname
\gcmd{gls\-xtr\-entry\-parent\-name}
{
\providedby{\sty{glossaries-extra} v1.39+}
\syntax{\margm{entry-name}}
\desc{expands to the \gloskey{name} field of the given entry's
parent or does nothing if the entry doesn't have the
\gloskey{parent} field set or isn't defined}
}
% COMMANDS: FORMATTING HOOKS
% \glsexclapplyinnerfmtfield
\gcmd{gls\-excl\-apply\-inner\-fmt\-field}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{internal-field}}
\desc{locally adds the field given by its \idx{internalfieldlabel}
\meta{internal-field} to the \idx{innerformatting} exclusion list
for the entry identified by \meta{entry-label}. This typically
means that the field value already contains the \idx{innerformatting}}
}
% \glsifapplyinnerfmtfield
\gcmd{gls\-if\-apply\-inner\-fmt\-field}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{internal-field}\margm{true}\margm{false}}
\desc{tests if the field given by its \idx{internalfieldlabel}
\meta{internal-field} has been added to the \idx{innerformatting}
exclusion list for the entry identified by \meta{entry-label}}
\field{seealso}{glsexclapplyinnerfmtfield}
}
% \glsxtrattrentrytextfmt
\gcmd{gls\-xtr\-attr\-entry\-text\-fmt}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}}
\desc{applies the command obtained from the control sequence
name supplied in the \catattr{innertextformat} attribute for
the category assigned to the entry given by \gls{glslabel}. This command isn't
used by default as it should rarely be needed an increases
complexity}
}
% \glsxtrgenentrytextfmt
\gcmd{gls\-xtr\-gen\-entry\-text\-fmt}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{redefined by the \idx{glslike} and \idx{glstextlike} hooks
to set up the \idx{innerformatting}.
Initialised to \gls{glsxtrdefaultentrytextfmt}}
}
% \glsxtrdefaultentrytextfmt
\gcmd{gls\-xtr\-default\-entry\-text\-fmt}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{text}}
\desc{default \idx{innerformatting}. Initialised to just do \meta{text}}
}
% \glsfmtfield
\gcmd{gls\-fmt\-field}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}\margm{internal-field}}
\desc{applies the formatting command \meta{cs} (which takes one
argument) to the entry's field value identified by the given
\idx{internalfieldlabel}, including \meta{insert} appended. Used
by the \idx{innerformatting} commands.
Note that \gls{glsfmtfield} should not be robust as it needs to
expand if it's inside a case-changing command}
}
% \Glsfmtfield
\gcmd{Gls\-fmt\-field}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}\margm{internal-field}}
\desc{as \gls{glsfmtfield} but uses \gls{makefirstuc} to change
the field value to \idx{sentencecase}}
}
% \GLSfmtfield
\gcmd{GLS\-fmt\-field}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}\margm{internal-field}}
\desc{as \gls{glsfmtfield} but changes the field value to \idx{allcaps}}
}
% \glsfmtinsert
\gcmd{gls\-fmt\-insert}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{a shortcut that applies \gls{glsxtrgenentrytextfmt} to
\gls{glsinsert} if \gls{glsinsert} isn't empty}
}
% \GLSfmtinsert
\gcmd{GLS\-fmt\-insert}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{as \gls{glsfmtinsert} but converts to \idx{allcaps}}
}
% \glsxtrsaveinsert
\gcmd{gls\-xtr\-save\-insert}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{implemented at the start of all the \idx{glstextlike}
commands (except the \idx{inlinefullform} commands like \gls{glsxtrfull})
to save the \gls{glsinsert} placeholder. By default, this sets
\gls{glsinsert} to empty}
}
% \glsxtrfullsaveinsert
\gcmd{gls\-xtr\-full\-save\-insert}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{implemented at the start of all the \idx{inlinefullform} commands
like \gls{glsxtrfull} to save the \gls{glsinsert} placeholder.
By default, this just does \gls{glsxtrsaveinsert}}
}
% \glsxtrsetlongfirstuse
\gcmd{gls\-xtr\-set\-long\-first\-use}
{
\providedby{\sty{glossaries} v1.49+}
\syntax{\margm{entry-label}}
\desc{implemented by the \gls{glsxtrlong} set of commands to
assign \gls{glsxtrifwasfirstuse}}
}
% \glsxtrsetupfulldefs
\gcmd{gls\-xtr\-set\-up\-full\-defs}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{hook used by \gls{glsxtrfull} (and case-changing and
plural variations)}
}
% COMMANDS: REFERENCING ENTRIES
% \gls
\gcmdspa{gls}{%
\common
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced depends on whether or not this is the \idx{firstuse}
and whether or not the \catattr{regular} attribute has been set.
The \meta{insert} argument may be inserted at the end of the
\idx{linktext} or may be inserted at a different point (for
example, after the long form on \idx{firstuse} for some abbreviation
styles. For the first optional argument, see \idxpl{glsopt}}
}
% \Gls
\gcmdspa{Gls}{%
\common
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{gls} but converts the first character of the
\idx{linktext} to \idx{uppercase}\glsadd{idx.sentencecase} (for
the start of a sentence) using \gls{makefirstuc}}
}
% \GLS
\gcmdspa{GLS}{%
\common
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{gls} but converts the \idx{linktext} to \idx{allcaps}}
}
% \glspl
\gcmdspa{glspl}{%
\common
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{gls} but uses the relevant plural form}
}
% \Glspl
\gcmdspa{Glspl}{%
\common
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glspl} but converts the first character of the
\idx{linktext} to \idx{uppercase}\glsadd{idx.sentencecase} (for
the start of a sentence) using \gls{makefirstuc}}
}
% \GLSpl
\gcmdspa{GLSpl}{%
\common
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glspl} but converts the \idx{linktext} to \idx{allcaps}}
}
% \glsdisp
\gcmdspa{gls\-disp}{%
\providedby{\sty{glossaries} v1.19+}
\syntax{\oargm{options}\margm{entry-label}\margm{text}}
\desc{references the entry identified by \meta{entry-label} with the
given \meta{text} as the \idx{linktext}. This command unsets the
\idx{firstuseflag} (use \gls{glslink} instead, if the
\idx{firstuseflag} should not be altered).
This command is considered a \idx{glslike} command.
For the first optional argument, see \idxpl{glsopt}}
}
% \Glsdisp
\gcmdspa{Gls\-disp}{%
\providedby{\sty{glossaries} v4.50+}
\syntax{\oargm{options}\margm{entry-label}\margm{text}}
\desc{as \gls{glsdisp} but sets the \idx{linktext} to
\code{\gls{glssentencecase}\margm{text}}. This is provided to
allow a \idx{sentencecase} mapping in the event that \gls{glsdisp}
occurs at the start of content that has automated case-changing}
}
% \glslink
\gcmdspa{gls\-link}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\margm{text}}
\desc{references the entry identified by \meta{entry-label} with the
given \meta{text} as the \idx{linktext}. This command does not
alter or depend on the \idx{firstuseflag} (use \gls{glsdisp} instead, if the
\idx{firstuseflag} needs to be unset).
This command is considered a \idx{glstextlike} command.
For the first optional argument, see \idxpl{glsopt}}
}
% \Glslink
\gcmdspa{Gls\-link}{%
\providedby{\sty{glossaries} v4.50+}
\syntax{\oargm{options}\margm{entry-label}\margm{text}}
\desc{as \gls{glslink} but sets the \idx{linktext} to
\code{\gls{glssentencecase}\margm{text}}. This is provided to
allow a \idx{sentencecase} mapping in the event that \gls{glslink}
occurs at the start of content that has automated case-changing}
}
% \glstext
\gcmdspa{gls\-text}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{text} value.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. If you have defined the entry with
\gls{newabbreviation} use \gls{glsxtrshort} for the short form or
\code{\gls{gls}\oarg{\glsopt{preunset}}}, as some
abbreviation styles are too complicated to work with \gls{glstext}.
For the first optional argument, see \idxpl{glsopt}}
}
% \Glstext
\gcmdspa{Gls\-text}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glstext} but converts the first character of the
\idx{linktext} to \idx{uppercase}\glsadd{idx.sentencecase} (for
the start of a sentence) using \gls{makefirstuc}.
If you have defined the entry with
\gls{newabbreviation} use \gls{Glsxtrshort} or
\code{\gls{Gls}\oarg{\glsopt{preunset}}} instead}
}
% \GLStext
\gcmdspa{GLS\-text}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glstext} but converts the \idx{linktext} to \idx{allcaps}.
If you have defined the entry with
\gls{newabbreviation} use \gls{GLSxtrshort} or
\code{\gls{GLS}\oarg{\glsopt{preunset}}} instead}
}
% \glsplural
\gcmdspa{gls\-plural}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{plural} value.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. If you have defined the entry with
\gls{newabbreviation} use \gls{glsxtrshortpl} for the short form or
\code{\gls{gls}\oarg{\glsopt{preunset}}}, as some
abbreviation styles are too complicated to work with \gls{glsplural}.
For the first optional argument, see \idxpl{glsopt}}
}
% \Glsplural
\gcmdspa{Gls\-plural}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsplural} but converts the first character of the
\idx{linktext} to \idx{uppercase}\glsadd{idx.sentencecase} (for
the start of a sentence) using \gls{makefirstuc}.
If you have defined the entry with
\gls{newabbreviation} use \gls{Glsxtrshortpl} or
\code{\gls{Glspl}\oarg{\glsopt{preunset}}} instead}
}
% \GLSplural
\gcmdspa{GLS\-plural}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsplural} but converts the \idx{linktext} to \idx{allcaps}.
If you have defined the entry with
\gls{newabbreviation} use \gls{GLSxtrshortpl} or
\code{\gls{GLSpl}\oarg{\glsopt{preunset}}} instead}
}
% \glsfirst
\gcmdspa{gls\-first}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{first} value.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. If you have defined the entry with
\gls{newabbreviation} use \gls{glsxtrfull}
for the full form or \gls{glsxtrlong} for the long form or use
\code{\gls{gls}\oarg{\glsopt{prereset}}}, as some
abbreviation styles are too complicated to work with \gls{glsfirst}.
For the first optional argument, see \idxpl{glsopt}}
}
% \Glsfirst
\gcmdspa{Gls\-first}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsfirst} but converts the first character of the
\idx{linktext} to \idx{uppercase}\glsadd{idx.sentencecase} (for
the start of a sentence) using \gls{makefirstuc}.
If you have defined the entry with
\gls{newabbreviation} use \gls{Glsxtrfull} or
\code{\gls{Gls}\oarg{\glsopt{prereset}}} instead}
}
% \GLSfirst
\gcmdspa{GLS\-first}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsfirst} but converts the \idx{linktext} to \idx{allcaps}.
If you have defined the entry with
\gls{newabbreviation} use \gls{GLSxtrfull} or
\code{\gls{GLS}\oarg{\glsopt{prereset}}} instead}
}
% \glsfirstplural
\gcmdspa{gls\-first\-plural}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{firstplural} value.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. If you have defined the entry with
\gls{newabbreviation} use \gls{glsxtrfullpl}
for the full form or \gls{glsxtrlongpl} for the long form or use
\code{\gls{glspl}\oarg{\glsopt{prereset}}}, as some
abbreviation styles are too complicated to work with \gls{glsfirstplural}.
For the first optional argument, see \idxpl{glsopt}}
}
% \Glsfirstplural
\gcmdspa{Gls\-first\-plural}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsfirstplural} but converts the first character of the
\idx{linktext} to \idx{uppercase}\glsadd{idx.sentencecase} (for
the start of a sentence) using \gls{makefirstuc}.
If you have defined the entry with
\gls{newabbreviation} use \gls{Glsxtrfullpl} or
\code{\gls{Glspl}\oarg{\glsopt{prereset}}} instead}
}
% \GLSfirstplural
\gcmdspa{GLS\-first\-plural}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsfirstplural} but converts the \idx{linktext} to \idx{allcaps}.
If you have defined the entry with
\gls{newabbreviation} use \gls{GLSxtrfullpl} or
\code{\gls{GLSpl}\oarg{\glsopt{prereset}}} instead}
}
% \glsxtrshort
\gcmdspa{gls\-xtr\-short}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{short} value, formatted
according to the \idx{abbrvstyle} associated with the entry's \idx{category}.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. For the first optional argument, see \idxpl{glsopt}}
}
% \Glsxtrshort
\gcmdspa{Gls\-xtr\-short}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrshort} but converts the first character of the
\idx{linktext} to \idx{uppercase}\glsadd{idx.sentencecase} (for
the start of a sentence) using \gls{makefirstuc}}
}
% \GLSxtrshort
\gcmdspa{GLS\-xtr\-short}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrshort} but converts the \idx{linktext} to \idx{allcaps}}
}
% \glsxtrshortpl
\gcmdspa{gls\-xtr\-shortpl}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{shortplural} value, formatted
according to the \idx{abbrvstyle} associated with the entry's \idx{category}.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. For the first optional argument, see \idxpl{glsopt}}
}
% \Glsxtrshortpl
\gcmdspa{Gls\-xtr\-shortpl}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrshortpl} but converts the first character of the
\idx{linktext} to \idx{uppercase}\glsadd{idx.sentencecase} (for
the start of a sentence) using \gls{makefirstuc}}
}
% \GLSxtrshortpl
\gcmdspa{GLS\-xtr\-shortpl}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrshort} but converts the \idx{linktext} to \idx{allcaps}}
}
% \glsxtrlong
\gcmdspa{gls\-xtr\-long}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{long} value, formatted
according to the \idx{abbrvstyle} associated with the entry's \idx{category}.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. For the first optional argument, see \idxpl{glsopt}}
}
% \Glsxtrlong
\gcmdspa{Gls\-xtr\-long}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrlong} but converts the first character of the
\idx{linktext} to \idx{uppercase}\glsadd{idx.sentencecase} (for
the start of a sentence) using \gls{makefirstuc}}
}
% \GLSxtrlong
\gcmdspa{GLS\-xtr\-long}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrlong} but converts the \idx{linktext} to \idx{allcaps}}
}
% \glsxtrlongpl
\gcmdspa{gls\-xtr\-long\-pl}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{longplural} value, formatted
according to the \idx{abbrvstyle} associated with the entry's \idx{category}.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. For the first optional argument, see \idxpl{glsopt}}
}
% \Glsxtrlongpl
\gcmdspa{Gls\-xtr\-long\-pl}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrlongpl} but converts the first character of the
\idx{linktext} to \idx{uppercase}\glsadd{idx.sentencecase} (for
the start of a sentence) using \gls{makefirstuc}}
}
% \GLSxtrlongpl
\gcmdspa{GLS\-xtr\-long\-pl}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrlongpl} but converts the \idx{linktext} to \idx{allcaps}}
}
% \glsxtrfull
\gcmdspa{gls\-xtr\-full}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{short} and \gloskey{long} values, formatted
according to the \idx{abbrvstyle} associated with the entry's \idx{category}.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. The format produced by this command may not
match the format produced by the \idx{firstuse} of
\code{\gls{gls}\margm{entry-label}}, depending on the abbreviation
style. For the first optional argument, see \idxpl{glsopt}}
}
% \Glsxtrfull
\gcmdspa{Gls\-xtr\-full}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrfull} but converts the first character of the
\idx{linktext} to \idx{uppercase}\glsadd{idx.sentencecase} (for
the start of a sentence) using \gls{makefirstuc}}
}
% \GLSxtrfull
\gcmdspa{GLS\-xtr\-full}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrfull} but converts the \idx{linktext} to \idx{allcaps}}
}
% \glsxtrfullpl
\gcmdspa{gls\-xtr\-fullpl}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{shortplural} and
\gloskey{longplural} values, formatted
according to the \idx{abbrvstyle} associated with the entry's \idx{category}.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. The format produced by this command may not
match the format produced by the \idx{firstuse} of
\code{\gls{glspl}\margm{entry-label}}, depending on the abbreviation
style. For the first optional argument, see \idxpl{glsopt}}
}
% \Glsxtrfullpl
\gcmdspa{Gls\-xtr\-fullpl}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrfullpl} but converts the first character of the
\idx{linktext} to \idx{uppercase}\glsadd{idx.sentencecase} (for
the start of a sentence) using \gls{makefirstuc}}
}
% \GLSxtrfullpl
\gcmdspa{GLS\-xtr\-fullpl}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrfullpl} but converts the \idx{linktext} to \idx{allcaps}}
}
% \glsname
\gcmdspa{gls\-name}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{name} value.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. For the first optional argument, see \idxpl{glsopt}.
Use \gls{glossentryname} within custom glossary styles
instead of this command}
}
% \Glsname
\gcmdspa{Gls\-name}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsname} but converts the \idx{linktext} to
\idx{sentencecase}. Use \gls{Glossentryname} within custom glossary styles
instead of this command}
}
% \GLSname
\gcmdspa{GLS\-name}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsname} but converts the \idx{linktext} to
\idx{allcaps}. This command is incompatible with some
abbreviation styles}
}
% \glsdesc
\gcmdspa{gls\-desc}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{description} value.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. For the first optional argument, see
\idxpl{glsopt}. Use \gls{glossentrydesc} within custom glossary styles
instead of this command}
}
% \Glsdesc
\gcmdspa{Gls\-desc}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsdesc} but converts the
\idx{linktext} to \idx{sentencecase}. Use
\gls{Glossentrydesc} within custom glossary styles
instead of this command}
}
% \GLSdesc
\gcmdspa{GLS\-desc}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsdesc} but converts the \idx{linktext} to
\idx{allcaps}}
}
% \glsdescplural
\gcmdspa{gls\-desc\-plural}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsdesc} but for the \gloskey{descriptionplural} field}
}
% \glssymbol
\gcmdspa{gls\-symbol}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{symbol} value.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. For the first optional argument, see
\idxpl{glsopt}. Use \gls{glossentrysymbol} within custom glossary styles
instead of this command}
}
% \Glssymbol
\gcmdspa{Gls\-symbol}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glssymbol} but converts the
\idx{linktext} to \idx{sentencecase}. Use
\gls{Glossentrysymbol} within custom glossary styles
instead of this command}
}
% \GLSsymbol
\gcmdspa{GLS\-symbol}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glssymbol} but converts the \idx{linktext} to
\idx{allcaps}}
}
% \glssymbolplural
\gcmdspa{gls\-symbol\-plural}{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glssymbol} but for the \gloskey{symbolplural} field}
}
% \glsuseri
\gcmdspa{gls\-useri}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{user1} value.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. For the first optional argument, see
\idxpl{glsopt}}
}
% \Glsuseri
\gcmdspa{Gls\-useri}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsuseri} but converts the
\idx{linktext} to \idx{sentencecase}}
}
% \GLSuseri
\gcmdspa{GLS\-useri}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsuseri} but converts the \idx{linktext} to
\idx{allcaps}}
}
% \glsuserii
\gcmdspa{gls\-userii}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{user2} value.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. For the first optional argument, see
\idxpl{glsopt}}
}
% \Glsuserii
\gcmdspa{Gls\-userii}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsuserii} but converts the
\idx{linktext} to \idx{sentencecase}}
}
% \GLSuserii
\gcmdspa{GLS\-userii}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsuserii} but converts the \idx{linktext} to
\idx{allcaps}}
}
% \glsuseriii
\gcmdspa{gls\-useriii}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{user3} value.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. For the first optional argument, see
\idxpl{glsopt}}
}
% \Glsuseriii
\gcmdspa{Gls\-useriii}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsuseriii} but converts the
\idx{linktext} to \idx{sentencecase}}
}
% \GLSuseriii
\gcmdspa{GLS\-useriii}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsuseriii} but converts the \idx{linktext} to
\idx{allcaps}}
}
% \glsuseriv
\gcmdspa{gls\-useriv}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{user4} value.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. For the first optional argument, see
\idxpl{glsopt}}
}
% \Glsuseriv
\gcmdspa{Gls\-useriv}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsuseriv} but converts the
\idx{linktext} to \idx{sentencecase}}
}
% \GLSuseriv
\gcmdspa{GLS\-useriv}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsuseriv} but converts the \idx{linktext} to
\idx{allcaps}}
}
% \glsuserv
\gcmdspa{gls\-userv}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{user5} value.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. For the first optional argument, see
\idxpl{glsopt}}
}
% \Glsuserv
\gcmdspa{Gls\-userv}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsuserv} but converts the
\idx{linktext} to \idx{sentencecase}}
}
% \GLSuserv
\gcmdspa{GLS\-userv}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsuserv} but converts the \idx{linktext} to
\idx{allcaps}}
}
% \glsuservi
\gcmdspa{gls\-uservi}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{references the entry identified by \meta{entry-label}. The text
produced is obtained from the \gloskey{user6} value.
The \meta{insert} argument will be inserted at the end of the
\idx{linktext}. This command does not alter or depend on the
\idx{firstuseflag}. For the first optional argument, see
\idxpl{glsopt}}
}
% \Glsuservi
\gcmdspa{Gls\-uservi}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsuservi} but converts the
\idx{linktext} to \idx{sentencecase}}
}
% \GLSuservi
\gcmdspa{GLS\-uservi}{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsuservi} but converts the \idx{linktext} to
\idx{allcaps}}
}
% \glshyperlink
\gcmd{gls\-hyper\-link}
{
\providedby{\sty{glossaries} v1.17+}
\syntax{\oargm{text}\margm{entry-label}}
\desc{creates a hyperlink to the given entry with the hyperlink
text provided in the optional argument. If omitted, the default is
\code{\gls{glsentrytext}\margm{entry-label}}}
}
% \acrshort
\gcmdspa{acr\-short}{%
\banned
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{displays the short form of an acronym. Only for use with
the base \sty{glossaries} package's acronym mechanism. This
command is not compatible with \gls{newabbreviation}}
}
% \acrshortpl
\gcmdspa{acr\-shortpl}{%
\banned
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{displays the plural short form of an acronym. Only for use with
the base \sty{glossaries} package's acronym mechanism. This
command is not compatible with \gls{newabbreviation}}
}
% \Acrshort
\gcmdspa{Acr\-short}{%
\banned
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{acrshort} but \idx{sentencecase}}
}
% \Acrshortpl
\gcmdspa{Acr\-shortpl}{%
\banned
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{acrshort} but \idx{sentencecase}}
}
% \acrlong
\gcmdspa{acr\-long}{%
\banned
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{displays the long form of an acronym. Only for use with
the base \sty{glossaries} package's acronym mechanism. This
command is not compatible with \gls{newabbreviation}}
}
% \acrlongpl
\gcmdspa{acr\-longpl}{%
\banned
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{displays the plural long form of an acronym. Only for use with
the base \sty{glossaries} package's acronym mechanism. This
command is not compatible with \gls{newabbreviation}}
}
% \Acrlong
\gcmdspa{Acr\-long}{%
\banned
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{acrlong} but \idx{sentencecase}}
}
% \Acrlongpl
\gcmdspa{Acr\-longpl}{%
\banned
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{acrlong} but \idx{sentencecase}}
}
% \acrfull
\gcmdspa{acr\-full}{%
\banned
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{displays the full form of an acronym. Only for use with
the base \sty{glossaries} package's acronym mechanism. This
command is not compatible with \gls{newabbreviation}}
}
% \acrfullpl
\gcmdspa{acr\-fullpl}{%
\banned
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{displays the plural full form of an acronym. Only for use with
the base \sty{glossaries} package's acronym mechanism. This
command is not compatible with \gls{newabbreviation}}
}
% \Acrfull
\gcmdspa{Acr\-full}{%
\banned
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{acrfull} but \idx{sentencecase}}
}
% \Acrfullpl
\gcmdspa{Acr\-full\-pl}{%
\banned
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{acrfullpl} but \idx{sentencecase}}
}
% \ac
\gcmdspa{ac}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{cgls} or \gls{gls} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
% \Ac
\gcmdspa{Ac}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{cGls} or \gls{Gls} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
% \AC
\gcmdspa{AC}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{cGLS} defined by the
\opteqvalref{shortcuts}{ac} package option}
}
% \acp
\gcmdspa{acp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{cglspl} or \gls{glspl} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
% \Acp
\gcmdspa{Acp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{cGlspl} or \gls{glspl} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
% \ACP
\gcmdspa{ACP}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{cGLSpl} defined by the
\opteqvalref{shortcuts}{ac} package option}
}
% \acs
\gcmdspa{acs}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{glsxtrshort} or \gls{acrshort} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
% \Acs
\gcmdspa{Acs}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{Glsxtrshort} or \gls{Acrshort} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
\gcmdspa{ACS}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{GLSxtrshort} defined by the
\opteqvalref{shortcuts}{ac} package option}
}
% \acsp
\gcmdspa{acsp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{glsxtrshortpl} or \gls{acrshortpl} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
% \Acsp
\gcmdspa{Acsp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{Glsxtrshortpl} or \gls{Acrshortpl} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
% \ACSP
\gcmdspa{ACSP}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{GLSxtrshortpl} defined by the
\opteqvalref{shortcuts}{ac} package option}
}
% \acl
\gcmdspa{acl}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{glsxtrlong} or \gls{acrlong} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
% \aclp
\gcmdspa{aclp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{glsxtrlongpl} or \gls{acrlongpl} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
% \Acl
\gcmdspa{Acl}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{Glsxtrlong} or \gls{Acrlong} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
% \ACL
\gcmdspa{ACL}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{GLSxtrlong} defined by the
\opteqvalref{shortcuts}{ac} package option}
}
% \Aclp
\gcmdspa{Aclp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{Glsxtrlongpl} or \gls{Acrlongpl} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
% \ACLP
\gcmdspa{ACLP}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{GLSxtrlongpl} defined by the
\opteqvalref{shortcuts}{ac} package option}
}
% \acf
\gcmdspa{acf}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{glsxtrfull} or \gls{acrfull} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
% \acfp
\gcmdspa{acfp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{glsxtrfullpl} or \gls{acrfullpl} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
% \Acf
\gcmdspa{Acf}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{Glsxtrfull} or \gls{Acrfull} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
% \ACF
\gcmdspa{ACF}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{GLSxtrfull} defined by the
\opteqvalref{shortcuts}{ac} package option}
}
% \Acfp
\gcmdspa{Acfp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{Glsxtrfullpl} or \gls{Acrfullpl} defined by the
\opteqvalref{shortcuts}{ac} or \opteqvalref{shortcuts}{acronyms} package
option, respectively}
}
% \ACFP
\gcmdspa{ACFP}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{GLSxtrfullpl} defined by the
\opteqvalref{shortcuts}{ac} package option}
}
% \ab
\gcmdspa{ab}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{cgls} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \Ab
\gcmdspa{Ab}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{cGls} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \AB
\gcmdspa{AB}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{cGLS} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \abp
\gcmdspa{abp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{cglspl} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \Abp
\gcmdspa{Abp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{cGlspl} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \ABP
\gcmdspa{ABP}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{cGLSpl} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \as
\gcmdspa{as}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{glsxtrshort} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \As
\gcmdspa{As}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{Glsxtrshort} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \AS
\gcmdspa{AS}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{GLSxtrshort} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \asp
\gcmdspa{asp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{glsxtrshortpl} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \Asp
\gcmdspa{Asp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{Glsxtrshortpl} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \ASP
\gcmdspa{ASP}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{GLSxtrshortpl} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \al
\gcmdspa{al}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{glsxtrlong} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \Al
\gcmdspa{Al}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{Glsxtrlong} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \AL
\gcmdspa{AL}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{GLSxtrlong} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \alp
\gcmdspa{alp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{glsxtrlongpl} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \Alp
\gcmdspa{Alp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{Glsxtrlongpl} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \ALP
\gcmdspa{ALP}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{GLSxtrlongpl} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \af
\gcmdspa{af}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{glsxtrfull} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \Af
\gcmdspa{Af}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{Glsxtrfull} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \AF
\gcmdspa{AF}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{Glsxtrfull} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \afp
\gcmdspa{afp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{glsxtrfullpl} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \Afp
\gcmdspa{Afp}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{Glsxtrfullpl} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \AFP
\gcmdspa{AFP}%
{%
\syntax{\margm{options}\margm{entry-label}\margm{inset}}
\desc{a synonym for \gls{GLSxtrfullpl} defined by the
\opteqvalref{shortcuts}{abbreviations} package option}
}
% \glsentrytype
\gcmd{gls\-entry\-type}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{type} key.
Does nothing if the entry hasn't been defined}
}
% \glsentryname
\gcmd{gls\-entry\-name}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{name} key.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{name} key doesn't
contain any fragile commands}
}
% \Glsentryname
\gcmd{Gls\-entry\-name}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{partially robust command that displays the value of the
\gloskey{name} \idx{field} with \idx{sentencecase} applied.
As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \glsentryparent
\gcmd{gls\-entry\-parent}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{expands to the value of the \gloskey{parent} \idx{field}.
Expands to nothing if the \gloskey{parent} \idx{field} hasn't been set
and expands to \gls{relax} if the entry hasn't been defined}
}
% \glsentrytext
\gcmd{gls\-entry\-text}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{text} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{text} \idx{field} doesn't
contain any fragile commands}
}
% \Glsentrytext
\gcmd{Gls\-entry\-text}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{partially robust command that displays the value of the
\gloskey{text} \idx{field} with \idx{sentencecase} applied.
As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \glsentryplural
\gcmd{gls\-entry\-plural}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{plural} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{plural} \idx{field} doesn't
contain any fragile commands}
}
% \Glsentryplural
\gcmd{Gls\-entry\-plural}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{partially robust command that displays the value of the
\gloskey{plural} \idx{field} with \idx{sentencecase} applied.
As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \glsentryfirst
\gcmd{gls\-entry\-first}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{first} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{first} \idx{field} doesn't
contain any fragile commands}
}
% \Glsentryfirst
\gcmd{Gls\-entry\-first}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{partially robust command that displays the value of the
\gloskey{first} \idx{field} with the first letter converted to
\idx{uppercase}. As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \glsentryfirstplural
\gcmd{gls\-entry\-first\-plural}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{firstplural} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{firstplural} \idx{field} doesn't
contain any fragile commands}
}
% \Glsentryfirstplural
\gcmd{Gls\-entry\-first\-plural}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{partially robust command that displays the value of the
\gloskey{firstplural} \idx{field} with \idx{sentencecase}
applied. As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \glsentrydesc
\gcmd{gls\-entry\-desc}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{description} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{description} \idx{field} doesn't
contain any fragile commands}
}
% \Glsentrydesc
\gcmd{Gls\-entry\-desc}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{partially robust command that displays the value of the
\gloskey{description} \idx{field} with \idx{sentencecase}
applied. As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \glsentrydescplural
\gcmd{gls\-entry\-desc\-plural}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{descriptionplural}
\idx{field}. Does nothing if the entry hasn't been defined.
May be used in expandable contexts provided that the
\gloskey{descriptionplural} \idx{field} doesn't contain any fragile commands}
}
% \glsentryshort
\gcmd{gls\-entry\-short}
{%
\providedby{\sty{glossaries} v3.0+}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{short} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{short} \idx{field} doesn't
contain any fragile commands}
}
% \glsentryshortpl
\gcmd{gls\-entry\-short\-pl}
{%
\providedby{\sty{glossaries} v3.0+}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{shortplural} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{shortplural} \idx{field} doesn't
contain any fragile commands}
}
% \glsentrylong
\gcmd{gls\-entry\-long}
{%
\providedby{\sty{glossaries} v3.0+}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{long} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{long} \idx{field} doesn't
contain any fragile commands}
}
% \glsentrylongpl
\gcmd{gls\-entry\-long\-pl}
{%
\providedby{\sty{glossaries} v3.0+}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{longplural} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{longplural} \idx{field} doesn't
contain any fragile commands}
}
% \Glsentryshort
\gcmd{Gls\-entry\-short}
{%
\providedby{\sty{glossaries} v3.0+}
\syntax{\margm{entry-label}}
\desc{displays the value of the \gloskey{short} \idx{field} with
\idx{sentencecase} applied.
Does nothing if the entry hasn't been defined.
As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \Glsentrylong
\gcmd{Gls\-entry\-long}
{%
\providedby{\sty{glossaries} v3.0+}
\syntax{\margm{entry-label}}
\desc{displays the value of the \gloskey{long} \idx{field} with
\idx{sentencecase} applied.
Does nothing if the entry hasn't been defined.
As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \Glsentryshortpl
\gcmd{Gls\-entry\-short\-pl}
{%
\providedby{\sty{glossaries} v3.0+}
\syntax{\margm{entry-label}}
\desc{displays the value of the \gloskey{shortplural} \idx{field} with
\idx{sentencecase} applied.
Does nothing if the entry hasn't been defined. As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \Glsentrylong
\gcmd{Gls\-entry\-long\-pl}
{%
\providedby{\sty{glossaries} v3.0+}
\syntax{\margm{entry-label}}
\desc{displays the value of the \gloskey{longplural} \idx{field} with
\idx{sentencecase} applied.
Does nothing if the entry hasn't been defined. As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \glsentrysymbol
\gcmd{gls\-entry\-symbol}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{symbol} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{symbol} \idx{field} doesn't
contain any fragile commands}
}
% \Glsentrysymbol
\gcmd{Gls\-entry\-symbol}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{partially robust command that displays the value of the
\gloskey{symbol} \idx{field} with \idx{sentencecase} applied.
As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \glsentrysymbolplural
\gcmd{gls\-entry\-symbol\-plural}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{symbolplural} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{symbolplural} \idx{field} doesn't
contain any fragile commands}
}
% \glsentryuseri
\gcmd{gls\-entry\-useri}
{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{user1} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{user1} \idx{field} doesn't
contain any fragile commands}
}
% \Glsentryuseri
\gcmd{Gls\-entry\-useri}
{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\margm{entry-label}}
\desc{partially robust command that displays the value of the
\gloskey{user1} \idx{field} with \idx{sentencecase} applied.
As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \glsentryuserii
\gcmd{gls\-entry\-user\-ii}
{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{user2} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{user2} \idx{field} doesn't
contain any fragile commands}
}
% \Glsentryuserii
\gcmd{Gls\-entry\-user\-ii}
{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\margm{entry-label}}
\desc{partially robust command that displays the value of the
\gloskey{user2} \idx{field} with \idx{sentencecase} applied.
As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \glsentryuseriii
\gcmd{gls\-entry\-user\-iii}
{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{user3} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{user3} \idx{field} doesn't
contain any fragile commands}
}
% \Glsentryuseriii
\gcmd{Gls\-entry\-user\-iii}
{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\margm{entry-label}}
\desc{partially robust command that displays the value of the
\gloskey{user3} \idx{field} with \idx{sentencecase} applied.
As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \glsentryuseriv
\gcmd{gls\-entry\-user\-iv}
{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{user4} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{user4} \idx{field} doesn't
contain any fragile commands}
}
% \Glsentryuseriv
\gcmd{Gls\-entry\-user\-iv}
{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\margm{entry-label}}
\desc{partially robust command that displays the value of the
\gloskey{user4} \idx{field} with \idx{sentencecase} applied.
As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \glsentryuserv
\gcmd{gls\-entry\-user\-v}
{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{user5} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{user5} \idx{field} doesn't
contain any fragile commands}
}
% \Glsentryuserv
\gcmd{Gls\-entry\-user\-v}
{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\margm{entry-label}}
\desc{partially robust command that displays the value of the
\gloskey{user5} \idx{field} with \idx{sentencecase} applied.
As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \glsentryuservi
\gcmd{gls\-entry\-user\-vi}
{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\margm{entry-label}}
\desc{simply expands to the value of the \gloskey{user6} \idx{field}.
Does nothing if the entry hasn't been defined. May be used in
expandable contexts provided that the \gloskey{user6} \idx{field} doesn't
contain any fragile commands}
}
% \Glsentryuservi
\gcmd{Gls\-entry\-user\-vi}
{%
\providedby{\sty{glossaries} v2.04+}
\syntax{\margm{entry-label}}
\desc{partially robust command that displays the value of the
\gloskey{user6} \idx{field} with \idx{sentencecase} applied.
As from \sty{glossaries} v4.50, this command
can expand in PDF bookmarks. Outside of PDF bookmarks it will
expand to a robust internal command}
}
% \glsxtrhiername
\gcmd{gls\-xtr\-hier\-name}
{
\providedby{\sty{glossaries-extra} v1.37+}
\syntax{\margm{entry-label}}
\desc{displays the entry's hierarchical name}
}
% \Glsxtrhiername
\gcmd{Gls\-xtr\-hier\-name}
{
\providedby{\sty{glossaries-extra} v1.37+}
\syntax{\margm{entry-label}}
\desc{displays the entry's hierarchical name using
\idx{sentencecase}}
}
% \GlsXtrhiername
\gcmd{Gls\-Xtr\-hier\-name}
{
\providedby{\sty{glossaries-extra} v1.37+}
\syntax{\margm{entry-label}}
\desc{displays the entry's hierarchical name where each element
name has its first character converted to \idx{uppercase}}
}
% \GLSxtrhiername
\gcmd{GLS\-xtr\-hier\-name}
{
\providedby{\sty{glossaries-extra} v1.37+}
\syntax{\margm{entry-label}}
\desc{displays the entry's hierarchical name where the first
name is converted to \idx{uppercase}}
}
% \GLSXTRhiername
\gcmd{GLS\-XTR\-hier\-name}
{
\providedby{\sty{glossaries-extra} v1.37+}
\syntax{\margm{entry-label}}
\desc{displays the entry's hierarchical name where each
name is converted to \idx{uppercase}}
}
% \glsxtrhiernamesep
\gcmd{gls\-xtr\-hier\-name\-sep}
{
\providedby{\sty{glossaries-extra} v1.37+}
\desc{separator used by commands like \gls{glsxtrhiername}}
}
% \GlsXtrForeignText
\gcmd{Gls\-Xtr\-Foreign\-Text}
{%
\providedby{\sty{glossaries-extra} v1.32+}
\syntax{\margm{entry-label}\margm{text}}
\desc{If the entry given by \meta{entry-label} has the field identified by
\gls{GlsXtrForeignTextField} then \meta{text} will be
encapsulated according to the language tag stored in that
field (using \sty{tracklang}['s] interface)}
}
% \GlsXtrForeignTextField
\gcmd{Gls\-Xtr\-Foreign\-Text\-Field}
{%
\providedby{\sty{glossaries-extra} v1.32+}
\desc{expands to the \idx{internalfieldlabel} used by
\gls{GlsXtrForeignText}}
}
% \glsxtrfmt
\gcmd{gls\-xtr\-fmt}{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\oargm{options}\margm{entry-label}\margm{text}}
\desc{behaves like
\code{\gls{glslink}\oargm{options}\margm{entry-label}\marg{\cmd{\meta{csname}}\margm{text}\meta{insert}}}
where the control sequence name \meta{csname} is obtained from the
field given by \gls{GlsXtrFmtField}. The actual format of the
\idx{linktext} is governed by \gls{glsxtrfmtdisplay}}
}
% \glsxtrfmt*
\gcmd{gls\-xtr\-fmt*}{%
\providedby{\sty{glossaries-extra} v1.23+}
\syntax{\oargm{options}\margm{entry-label}\margm{text}\oargm{insert}}
\desc{as the unstarred version \gls{glsxtrfmt} but accepts the
final \meta{insert} option}
}
% \Glsxtrfmt
\gcmd{Gls\-xtr\-fmt}{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\oargm{options}\margm{entry-label}\margm{text}}
\desc{as \gls{glsxtrfmt} but applies a \idx{sentencecase} change
to \meta{text}}
}
% \Glsxtrfmt*
\gcmd{Gls\-xtr\-fmt*}{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\oargm{options}\margm{entry-label}\margm{text}\oargm{insert}}
\desc{as \gls{glsxtrfmt*} but applies a \idx{sentencecase} change
to \meta{text}}
}
% \glsxtrfmtdisplay
\gcmd{gls\-xtr\-fmt\-display}{%
\providedby{\sty{glossaries-extra} v1.23+}
\syntax{\margm{csname}\margm{text}\margm{insert}}
\desc{formats the \idx{linktext} used in \gls{glsxtrfmt}}
}
% \GlsXtrFmtDefaultOptions
\gcmd{Gls\-Xtr\-Fmt\-Default\-Options}
{%
\providedby{\sty{glossaries-extra} v1.12+}
\initval{noindex}
\desc{expands to the default options for \gls{glsxtrfmt}}
}
% \GlsXtrFmtField
\gcmd{Gls\-Xtr\-Fmt\-Field}{%
\providedby{\sty{glossaries-extra} v1.12+}
\initval{useri}
\desc{expands to the name of the \idxc{internalfieldlabel} used by \gls{glsxtrfmt}}
}
% \glsxtrentryfmt
\gcmd{gls\-xtr\-entry\-fmt}{%
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{text}}
\desc{does \code{\cmd{\meta{csname}}\margm{text}}
where the control sequence name \meta{csname} is obtained from the
field given by \gls{GlsXtrFmtField}. If \sty{hyperref} has been loaded and
this command will expand to \gls{glsxtrpdfentryfmt}\margm{entry-label}\margm{text}
in a PDF bookmark}
}
% \Glsxtrentryfmt
\gcmd{Gls\-xtr\-entry\-fmt}{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{text}}
\desc{as \gls{glsxtrentryfmt} but converts \meta{text} to
\idx{sentencecase}}
}
% \glsxtrpdfentryfmt
\gcmd{gls\-xtr\-pdf\-entry\-fmt}{%
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}\margm{text}}
\desc{just does \meta{text}}
}
% \Glsxtrpdfentryfmt
\gcmd{Gls\-xtr\-pdf\-entry\-fmt}{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{text}}
\desc{does \code{\gls{MFUsentencecase}\margm{text}}}
}
% \setupglslink
\gcmd{setup\-gls\-link}%
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{options}}
\desc{set the default \idxpl{glsopt}}
\field{seealso}{setupglsadd}
}
% \setupglsadd
\gcmd{setup\-gls\-add}%
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{options}}
\desc{set the default options for \gls{glsadd}}
\field{seealso}{setupglslink}
}
% all \gls... options
\gidx{glsopt}{\name{{}\csfmt{gls}-like and {}\csfmt{glstext}-like options}%
\common
\field{text}{\csfmt{glslink} option}%
\desc{most (but not all) of these options can be used in the optional argument
of all the \idx{glslike}, \idx{glstextlike} and \gls{glsadd} commands}
}
% format
\gglsopt{format}%
{%
\common
\providedby{\sty{glossaries}}
\syntax{\meta{cs-name}}
\desc{the control sequence name (without the leading backslash)
that should be used to \idxc{locationencap}{encapsulate} the \idx{entrylocation}}%
}%
% counter
\gglsopt{counter}%
{%
\providedby{\sty{glossaries}}
\syntax{\meta{counter-name}}
\desc{the \idx{locationcounter}}%
}%
% local
\gglsopt{local}%
{%
\providedby{\sty{glossaries} v3.04+}
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{if true use \gls{glslocalunset} to unset the
\idx{firstuseflag}, otherwise use \gls{glsunset} (only applies
to \idx{glslike} commands)}%
}%
% postunset
\gglsopt{post\-unset}%
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\meta{value}}
\initval{global}
\defval{global}
\desc{determines whether or not to unset the \idx{firstuseflag}
after the \idx{linktext}. The value may be one of:
\code{global}, \code{local} or \code{none}
(only applies to \idx{glslike} commands)}%
}%
% prefix
\gglsopt{prefix}%
{%
\providedby{\sty{glossaries-extra} v1.31+}
\syntax{\meta{link-prefix}}
\desc{the prefix to use for the entry's hyperlink target}%
}%
% textformat
\gglsopt{text\-format}%
{%
\providedby{\sty{glossaries-extra} v1.30+}
\syntax{\meta{csname}}
\desc{the name of the control sequence to use instead of \gls{glstextformat}
to encapsulate the \idx{linktext}}%
}%
% innertextformat
\gglsopt{inner\-text\-format}%
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\meta{csname}}
\initval{glsxtrdefaultentrytextfmt}%
\desc{the name of the control sequence to use for the \idx{innerformatting}}%
}%
% hyperoutside
\gglsopt{hyper\-outside}%
{%
\providedby{\sty{glossaries-extra} v1.21+}
\initval{true}
\defval{true}
\syntax{\meta{boolean}}
\desc{determines whether the hyperlink should be inside or outside of \gls{glstextformat}}%
}%
% wrgloss
\gglsopt{wr\-gloss}%
{%
\providedby{\sty{glossaries-extra} v1.14+}
\initval{before}
\syntax{\meta{position}}
\desc{determines whether to do the \idx{indexing} before or after the
\idx{linktext}. Allowed values: \optfmt{before} and \optfmt{after}}%
}%
% noindex
\gglsopt{no\-index}%
{%
\providedby{\sty{glossaries-extra}}
\initval{false}
\defval{true}
\syntax{\meta{boolean}}
\desc{if \optfmt{true} this option will suppress \idx{indexing}.
If you are using \app{bib2gls}, you may want to consider using
\glsoptval{format}{glsignore} to prevent a \location\ but
ensure that the entry is selected}%
}%
% hyper
\gglsopt{hyper}%
{%
\providedby{\sty{glossaries}}
\initval{true}
\defval{true}
\syntax{\meta{boolean}}
\desc{determines whether or not the \idx{linktext} should have a
hyperlink (provided hyperlinks are supported)}%
}%
% thevalue
\gglsopt{the\-value}%
{%
\providedby{\sty{glossaries-extra} v1.19+}
\syntax{\meta{location}}
\desc{set the \location\ to this value instead of obtaining it from the
\idx{locationcounter}}%
}%
% theHvalue
\gglsopt{the\-H\-value}%
{%
\providedby{\sty{glossaries-extra} v1.19+}
\syntax{\meta{the-H-value}}
\desc{set the hyper \location\ to this value instead of obtaining it
from \gls{theHcounter}}%
}%
% types
\gglsopt{types}%
{
\providedby{\sty{glossaries}}
\syntax{\margm{glossary list}}
\desc{only available with \gls{glsaddall}, the value is the
list of glossaries to iterate over}
}
% prereset
\gglsopt{pre\-reset}%
{%
\providedby{\sty{glossaries-extra} v1.49+}
\initval{none}
\defval{local}
\syntax{\meta{value}}
\desc{determines whether or not to reset the entry before the
\idx{linktext}. Allowed values: \optfmt{none} (no reset),
\optfmt{local} (localise the reset) and \optfmt{global}}%
}%
% preunset
\gglsopt{pre\-unset}%
{%
\providedby{\sty{glossaries-extra} v1.49+}
\initval{none}
\defval{local}
\syntax{\meta{value}}
\desc{determines whether or not to unset the entry before the
\idx{linktext}. Allowed values: \optfmt{none} (no unset),
\optfmt{local} (localise the unset) and \optfmt{global}}%
}%
% \glolinkprefix
\gcmd{glo\-link\-prefix}
{
\providedby{\sty{glossaries}}
\initval{glo:}
\desc{expands to the default prefix for the entry's hypertarget anchor
in the glossary}
}
% \glstextformat
\gcmd{gls\-text\-format}
{
\providedby{\sty{glossaries} v1.04+}
\syntax{\margm{text}}
\desc{the default outer text formatting command used by the
\idx{glslike} and \idx{glstextlike} commands}
}
% \glsrefentry
\gcmd{gls\-ref\-entry}
{%
\providedby{\sty{glossaries} v3.0+}
\syntax{\margm{entry-label}}
\desc{references (using \gls{ref}) the entry counter or sub-counter (if
\opt{entrycounter} or \opt{subentrycounter} options are set)
otherwise just does \gls{gls}\margm{entry-label}}
}
% \glsxtrpageref
\gcmd{gls\-xtr\-page\-ref}
{%
\providedby{\sty{glossaries-extra} v1.11+}
\syntax{\margm{entry-label}}
\desc{as \gls{glsrefentry} but uses \gls{pageref} instead of
\gls{ref}. As with \gls{glsrefentry}, this will use \gls{gls}
instead if the corresponding entry counter is disabled}
}
% \glsxtrp
\gcmd{gls\-xtrp}
{
\providedby{\sty{glossaries-extra} v1.07+}
\syntax{\margm{field}\margm{entry-label}}
\desc{for use in headings and captions (instead of the
\gls{glslike} or \gls{glstextlike} commands). This command is
designed to expand to the field value if used in a PDF
bookmark and can also expand to a more appropriate command if
it ends up in the page header. Note that there's no option
argument. Options should be set beforehand using
\gls{glsxtrsetpopts}, which is done automatically in the
glossary with \gls{glossxtrsetpopts}}
}
% \Glsxtrp
\gcmd{Gls\-xtrp}
{
\providedby{\sty{glossaries-extra} v1.07+}
\syntax{\margm{field}\margm{entry-label}}
\desc{as \gls{glsxtrp} but converts the first letter to
uppercase (but not in the PDF bookmark)}
}
% \GLSxtrp
\gcmd{GLS\-xtrp}
{
\providedby{\sty{glossaries-extra} v1.07+}
\syntax{\margm{field}\margm{entry-label}}
\desc{as \gls{glsxtrp} but converts to
uppercase (but not in the PDF bookmark)}
}
% \glsps
\gcmd{gls\-ps}
{
\providedby{\sty{glossaries-extra} v1.07+}
\syntax{\margm{entry-label}}
\desc{shortcut for \code{\gls{glsxtrp}\marg{short}\margm{entry-label}}}
}
% \glspt
\gcmd{gls\-pt}
{%
\providedby{\sty{glossaries-extra} v1.07+}
\syntax{\margm{entry-label}}
\desc{shortcut for \code{\gls{glsxtrp}\marg{text}\margm{entry-label}}}
}
% \glsxtrsetpopts
\gcmd{gls\-xtr\-set\-p\-opts}
{%
\providedby{\sty{glossaries-extra} v1.07+}
\syntax{\margm{options}}
\desc{sets the options that \gls{glsxtrp} (and case-change
variants) pass to the relevant \gls{glstextlike} command}
}
% \glossxtrsetpopts
\gcmd{gloss\-xtr\-set\-p\-opts}
{
\providedby{\sty{glossaries-extra} v1.07+}
\desc{used at the start of each glossary to set the current
options for the \gls{glsxtrp} set of commands (with
\gls{glsxtrsetpopts})}
}
% \glsxtridentifyglslike
\gcmd{gls\-xtr\-identify\-gls\-like}
{
\providedby{\sty{glossaries-extra} v1.37+}
\syntax{\margm{label-prefix}\margm{cs}}
\desc{used to inform \app{bib2gls} to include the given command
when it searches for dependencies}
}
% \glsxtraddlabelprefix
\gcmd{gls\-xtr\-add\-label\-prefix}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\margm{label-prefix}}
\desc{appends \meta{label-prefix} to the list of known labels}
}
% \glsxtrprependlabelprefix
\gcmd{gls\-xtr\-prepend\-label\-prefix}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\margm{label-prefix}}
\desc{prepends \meta{label-prefix} to the list of known labels}
}
% \glsxtrclearlabelprefixes
\gcmd{gls\-xtr\-clear\-label\-prefixes}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\desc{clears the list of known prefixes}
\field{seealso}{glsxtraddlabelprefix,glsxtrprependlabelprefix}
}
% \glsxtrifinlabelprefixlist
\gcmd{glsxtrifinlabelprefixlist}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\margm{label-prefix}\margm{true}\margm{false}}
\desc{does \meta{true} if \meta{label-prefix} has been
identified as a label prefix}
\field{seealso}{glsxtraddlabelprefix,glsxtrprependlabelprefix}
}
% \ifGlsXtrPrefixLabelFallbackLast
\gcond{if\-Gls\-Xtr\-Prefix\-Label\-Fallback\-Last}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\initvalcs{iftrue}
\desc{conditional that determines whether or not to use the
last label prefix as the default}
}
% \GlsXtrPrefixLabelFallbackLasttrue
\gcmd{Gls\-Xtr\-Prefix\-Label\-Fallback\-Last\-true}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{sets the \gls{ifGlsXtrPrefixLabelFallbackLast} conditional to true}
}
% \GlsXtrPrefixLabelFallbackLastfalse
\gcmd{Gls\-Xtr\-Prefix\-Label\-Fallback\-Last\-false}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{sets the \gls{ifGlsXtrPrefixLabelFallbackLast} conditional to false}
}
% \dgls
\gcmdspa{dgls}{%
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{does \code{\gls{gls}\oargm{options}\marg{\meta{prefix}\marg{entry-label}}\oargm{insert}}
for the first prefix in the prefix list that matches a defined entry}
\field{seealso}{glsxtraddlabelprefix,glsxtrprependlabelprefix}
}
% \dGls
\gcmdspa{dGls}{%
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{dgls} but uses \gls{Gls}}
\field{seealso}{glsxtraddlabelprefix,glsxtrprependlabelprefix}
}
% \dGLS
\gcmdspa{dGLS}{%
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{dgls} but uses \gls{GLS}}
\field{seealso}{glsxtraddlabelprefix,glsxtrprependlabelprefix}
}
% \dglspl
\gcmdspa{dgls\-pl}{%
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{dgls} but uses \gls{glspl}}
\field{seealso}{glsxtraddlabelprefix,glsxtrprependlabelprefix}
}
% \dGlspl
\gcmdspa{dGls\-pl}{%
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{dgls} but uses \gls{Glspl}}
\field{seealso}{glsxtraddlabelprefix,glsxtrprependlabelprefix}
}
% \dGLSpl
\gcmdspa{dGLS\-pl}{%
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{dgls} but uses \gls{GLSpl}}
\field{seealso}{glsxtraddlabelprefix,glsxtrprependlabelprefix}
}
% \dglslink
\gcmdspa{dgls\-link}{%
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\oargm{options}\margm{entry-label}\margm{text}}
\desc{as \gls{dgls} but uses \gls{glslink}}
\field{seealso}{glsxtraddlabelprefix,glsxtrprependlabelprefix}
}
% \dGlslink
\gcmdspa{dGls\-link}{%
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\syntax{\oargm{options}\margm{entry-label}\margm{text}}
\desc{as \gls{dglslink} but applies \idx{sentencecase}}
\field{seealso}{glsxtraddlabelprefix,glsxtrprependlabelprefix}
}
% \dglsdisp
\gcmdspa{dgls\-disp}{%
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\oargm{options}\margm{entry-label}\margm{text}}
\desc{as \gls{dgls} but uses \gls{glsdisp}}
\field{seealso}{glsxtraddlabelprefix,glsxtrprependlabelprefix}
}
% \dGlsdisp
\gcmdspa{dGls\-disp}{%
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\syntax{\oargm{options}\margm{entry-label}\margm{text}}
\desc{as \gls{dglsdisp} but applies \idx{sentencecase}}
\field{seealso}{glsxtraddlabelprefix,glsxtrprependlabelprefix}
}
% \dglsfield
\gcmdspa{dgls\-field}{%
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\syntax{\oargm{options}\margm{entry-label}\margm{field-label}\margm{text}}
\desc{as \gls{dgls} but selects the first matching label that
has an entry with the field set}
\field{seealso}{glsxtraddlabelprefix,glsxtrprependlabelprefix}
}
% \dGlsfield
\gcmdspa{dGls\-field}{%
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\syntax{\oargm{options}\margm{entry-label}\margm{field-label}\margm{text}}
\desc{as \gls{dglsfield} but applies \idx{sentencecase}}
\field{seealso}{glsxtraddlabelprefix,glsxtrprependlabelprefix}
}
% \dGLSfield
\gcmdspa{dGLS\-field}{%
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\syntax{\oargm{options}\margm{entry-label}\margm{field-label}\margm{text}}
\desc{as \gls{dglsfield} but \idx{allcaps}}
\field{seealso}{glsxtraddlabelprefix,glsxtrprependlabelprefix}
}
% \dglsfieldcurrentfieldlabel
\gcmd{dgls\-field\-current\-field\-label}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{set by the \gls{dglsfield} family of commands to the given
\meta{field-label}}
}
% \dglsfieldfallbackfieldlabel
\gcmd{dgls\-field\-fallback\-field\-label}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\initvalopt{gloskey}{text}
\desc{expands to the fallback field to use for the
\gls{dglsfield} family of commands}
}
% \dglsfieldactualfieldlabel
\gcmd{dgls\-field\-actual\-field\-label}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{set by the \gls{dglsfield} family of commands to the
actual field used. This will either be the requested field or
the fallback field}
}
% \newdglsfield
\gcmd{new\-d\-gls\-field}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\syntax{\oargm{default-options}\margm{field}\margm{cs}}
\desc{defines the command
\meta{cs}\oargm{options}\margm{entry-label} to behave like
\code{\gls{dglsfield}\oarg{\meta{default-options},\meta{options}}\margm{entry-label}\margm{field}}}
}
% \newdglsfieldlike
\gcmd{new\-d\-gls\-field\-like}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\syntax{\oargm{default-options}\margm{field}\margm{cs}\margm{Cs}\margm{CS}}
\desc{similar to \gls{newdglsfield} but also defines
\idx{sentencecase} (\meta{Cs}) and \idx{allcaps} (\meta{CS}) commands
with mappings}
}
% \glsxtrnewgls
\gcmd{gls\-xtr\-new\-gls}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\oargm{default-options}\margm{prefix}\margm{cs}}
\desc{defines the command
\meta{cs}\oargm{options}\margm{entry-label} to behave like
\code{\gls{gls}\oarg{\meta{default-options},\meta{options}}\marg{\meta{prefix}\meta{entry-label}}}}
}
% \glsxtrnewglslike
\gcmd{gls\-xtr\-new\-gls\-like}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\oargm{default-options}\margm{prefix}\margm{\gls{gls}-like
cs}\margm{\gls{glspl}-like cs}\margm{\gls{Gls}-like cs}\margm{\gls{Glspl}-like cs}}
\desc{like \gls{glsxtrnewgls} but provides plural and
\idx{sentencecase} commands as well}
}
% \glsxtrnewGLSlike
\gcmd{gls\-xtr\-new\-GLS\-like}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\oargm{default-options}\margm{prefix}\margm{\gls{GLS}-like
cs}\margm{\gls{GLSpl}-like cs}}
\desc{like \gls{glsxtrnewgls} but provides \idx+{allcaps} commands}
}
% \glsxtrnewrgls
\gcmd{gls\-xtr\-new\-rgls}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\oargm{default-options}\margm{prefix}\margm{cs}}
\desc{like \gls{glsxtrnewgls} but uses \gls{rgls}}
}
% \glsxtrnewrglslike
\gcmd{gls\-xtr\-new\-rgls\-like}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\oargm{default-options}\margm{prefix}\margm{\gls{rgls}-like
cs}\margm{\gls{rglspl}-like cs}\margm{\gls{rGls}-like
cs}\margm{\gls{rGlspl}-like cs}}
\desc{like \gls{glsxtrnewrgls} but provides plural and
\idx{sentencecase} commands as well}
}
% \glsxtrnewrGLSlike
\gcmd{gls\-xtr\-new\-rGLS\-like}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\oargm{default-options}\margm{prefix}\margm{\gls{rGLS}-like
cs}\margm{\gls{rGLSpl}-like cs}}
\desc{like \gls{glsxtrnewrgls} but provides \idx+{allcaps} commands}
}
% \glsxtrnewglslink
\gcmd{gls\-xtr\-new\-gls\-link}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\oargm{default-options}\margm{prefix}\margm{cs}}
\desc{defines the command \code{\meta{cs}\oargm{options}\margm{label}\margm{text}} to behave like
\code{\gls{glslink}\oarg{\meta{default-options},\meta{options}}\marg{\meta{prefix}\meta{label}}\margm{text}}}
}
% \glsxtrnewglsdisp
\gcmd{gls\-xtr\-new\-gls\-disp}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\oargm{default-options}\margm{prefix}\margm{cs}}
\desc{defines the command \code{\meta{cs}\oargm{options}\margm{label}\margm{text}} to behave like
\code{\gls{glsdisp}\oarg{\meta{default-options},\meta{options}}\marg{\meta{prefix}\meta{label}}\margm{text}}}
}
% \GlsXtrRecordCounter
\gcmd{Gls\-Xtr\-Record\-Counter}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{counter-name}}
\desc{activates recording for the given counter}
\note{preamble only}
}
% \glsxtr@counterrecord
\gcmd{gls\-xtr\-@\-counter\-record}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}\margm{counter}\margm{value}}
\desc{an \ext{aux} file command used with \gls{GlsXtrRecordCounter}
to append \meta{value} to the \glosfield{record.counter} field.
Also implements \gls{glsxtrAddCounterRecordHook}}
}
% \glsxtrAddCounterRecordHook
\gcmd{gls\-xtr\-Add\-Counter\-Record\-Hook}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{counter}\margm{value}}
\desc{user-level hook used by \gls{glsxtr@counterrecord}. If
this command is redefined, it must be done so in the preamble before
the \ext{aux} file is input}
}
% \glsxtrsupphypernumber
\gcmd{gls\-xtr\-supp\-hyper\-number}
{
\providedby{\sty{glossaries-extra} v1.14+}
\syntax{\margm{location}}
\desc{used to hyperlink to a location in an external document if
the \catattr{externallocation} attribute has been set. This will
define \gls{glsxtrsupplocationurl} to the location provided by the
attribute or to empty if the attribute isn't set}
}
% \glsxtrsupplocationurl
\gcmd{gls\-xtr\-supp\-lo\-ca\-tion\-url}
{
\providedby{\sty{glossaries-extra} v1.14+}
\desc{defined by \gls{glsxtrsupphypernumber} to the external
location or empty if not provided}
}
% COMMANDS: ENTRY COUNTING
% \ifglsresetcurrcount
\gcond{if\-gls\-re\-set\-curr\-count}
{
\providedby{\sty{glossaries-extra} v1.49+}
\initvalcs{iffalse}
\desc{conditional that determines whether or not to reset the
entry counter to 0 when the \idx{firstuseflag} is reset}
}
% \glsresetcurrcounttrue
\gcmd{gls\-re\-set\-curr\-count\-true}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{sets \gls{ifglsresetcurrcount} to true}
}
% \glsresetcurrcountfalse
\gcmd{gls\-re\-set\-curr\-count\-false}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{sets \gls{ifglsresetcurrcount} to false}
}
% \glsenableentrycount
\gcmd{gls\-enable\-entry\-count}
{
\providedby{\sty{glossaries} v4.14+}
\desc{enables entry counting}
}
% \glsenableentryunitcount
\gcmd{gls\-enable\-entry\-unit\-count}
{
%\providedby{\sty{glossaries-extra} v0.5.4+}
\desc{enables entry unit counting}
}
% \glsentrycurrcount
\gcmd{gls\-entry\-curr\-count}
{
\syntax{\margm{entry-label}}
\providedby{\sty{glossaries} v4.14+}
\desc{expands to the current entry count running total or 0 if
not available (needs to be enabled with
\gls{glsenableentrycount} or \gls{glsenableentryunitcount}).
With unit entry counting, this
expands to the total for the current unit}
}
% \glsentryprevcount
\gcmd{gls\-entry\-prev\-count}
{
\syntax{\margm{entry-label}}
\providedby{\sty{glossaries} v4.14+}
\desc{expands to the final entry count total from the previous
\LaTeX\ run or if 0 if not available (needs to be enabled with
\gls{glsenableentrycount} or \gls{glsenableentryunitcount}).
With unit entry counting, this
expands to the total for the current unit}
}
% \glsentryprevtotalcount
\gcmd{gls\-entry\-prev\-total\-count}
{
\providedby{\sty{glossaries} v4.14+}
\syntax{\margm{entry-label}}
\desc{expands to the final entry count total from the previous
\LaTeX\ run or if 0 if not available (needs to be enabled with
\gls{glsenableentryunitcount})}
}
% \glsentryprevmaxcount
\gcmd{gls\-entry\-prev\-max\-count}
{
\providedby{\sty{glossaries} v4.14+}
\syntax{\margm{entry-label}}
\desc{expands to the maximum entry unit count total from the previous
\LaTeX\ run or if 0 if not available (needs to be enabled with
\gls{glsenableentryunitcount})}
}
% \cgls
\gcmdspa{cgls}
{
\providedby{\sty{glossaries} v4.14+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{like \gls{gls} but hooks into the entry counting mechanism}
\field{seealso}{glsenableentrycount,cglsformat}
}
% \cglspl
\gcmdspa{cglspl}
{
\providedby{\sty{glossaries} v4.14+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{like \gls{glspl} but hooks into the entry counting mechanism}
\field{seealso}{glsenableentrycount,cglsplformat}
}
% \cGls
\gcmdspa{cGls}
{
\providedby{\sty{glossaries} v4.14+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{like \gls{Gls} but hooks into the entry counting mechanism}
\field{seealso}{glsenableentrycount,cGlsformat}
}
% \cGlspl
\gcmdspa{cGlspl}
{
\providedby{\sty{glossaries} v4.14+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{like \gls{Glspl} but hooks into the entry counting mechanism}
\field{seealso}{glsenableentrycount,cGlsplformat}
}
% \cglsformat
\gcmd{cgls\-format}
{
\providedby{\sty{glossaries} v4.14+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{format used by \gls{cgls} if the entry was not used more
than the given trigger value on the previous run}
}
% \cglsplformat
\gcmd{cgls\-pl\-format}
{
\providedby{\sty{glossaries} v4.14+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{format used by \gls{cglspl} if the entry was not used more
than the given trigger value on the previous run}
}
% \cGlsformat
\gcmd{cGls\-format}
{
\providedby{\sty{glossaries} v4.14+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{format used by \gls{cGls} if the entry was not used more
than the given trigger value on the previous run}
}
% \cGlsplformat
\gcmd{cGls\-pl\-format}
{
\providedby{\sty{glossaries} v4.14+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{format used by \gls{cGlspl} if the entry was not used more
than the given trigger value on the previous run}
}
% \cGLS
\gcmdspa{cGLS}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{like \gls{GLS} but hooks into the entry counting mechanism}
\field{seealso}{glsenableentrycount,cGLSformat}
}
% \cGLSpl
\gcmdspa{cGLSpl}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{like \gls{GLSpl} but hooks into the entry counting mechanism}
\field{seealso}{glsenableentrycount,cGLSplformat}
}
% \cGLSformat
\gcmd{cGLS\-format}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{format used by \gls{cGLS} if the entry was not used more
than the given trigger value on the previous run}
}
% \cGLSplformat
\gcmd{cGLS\-pl\-format}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{format used by \gls{cGLSpl} if the entry was not used more
than the given trigger value on the previous run}
}
% \glsxtrifcounttrigger
\gcmd{gls\-xtr\-if\-count\-trigger}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the entry's total use count at the end
of the previous run exceeds the trigger value assigned to the
entry's category, otherwise does \meta{false}}
}
% \GlsXtrEnableEntryCounting
\gcmd{Gls\-Xtr\-Enable\-Entry\-Count\-ing}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{category-list}\margm{trigger-value}}
\desc{enables entry counting for the given list of categories
with the given trigger value (which must be an integer)}
}
% \GlsXtrEnableEntryUnitCounting
\gcmd{Gls\-Xtr\-Enable\-Entry\-Unit\-Count\-ing}
{
%\providedby{\sty{glossaries-extra} v0.5.4+}
\syntax{\margm{category-list}\margm{trigger-value}\margm{counter}}
\desc{enables unit entry counting for the given list of categories
with the given trigger value (which must be an integer) and the
associated counter}
}
% \GlsXtrStartUnsetBuffering
\gcmds{Gls\-Xtr\-Start\-Unset\-Buffering}
{
\providedby{\sty{glossaries-extra} v1.30+}
\desc{enables unset buffering. The starred version doesn't check
for duplicates}
\field{seealso}{GlsXtrStopUnsetBuffering,GlsXtrDiscardUnsetBuffering}
}
% \GlsXtrStopUnsetBuffering
\gcmds{Gls\-Xtr\-Stop\-Unset\-Buffering}
{
\providedby{\sty{glossaries-extra} v1.30+}
\desc{stops buffering. The starred version performs a global unset}
\field{seealso}{GlsXtrStartUnsetBuffering,GlsXtrDiscardUnsetBuffering,GlsXtrForUnsetBufferedList}
}
% \GlsXtrDiscardUnsetBuffering
\gcmd{Gls\-Xtr\-Discard\-Unset\-Buffering}
{
\providedby{\sty{glossaries-extra} v1.42+}
\desc{discards the pending buffer and restores \gls{glsunset}}
\field{seealso}{GlsXtrStartUnsetBuffering,GlsXtrStopUnsetBuffering}
}
% \GlsXtrForUnsetBufferedList
\gcmd{Gls\-Xtr\-For\-Unset\-Buffered\-List}
{
\providedby{\sty{glossaries-extra} v1.31+}
\syntax{\margm{handler-cs}}
\desc{iterates over the labels stored in the current buffer}
}
% \GlsXtrClearUnsetBuffer
\gcmd{Gls\-Xtr\-Clear\-Unset\-Buffer}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{locally clears the buffer, but doesn't stop buffering}
}
% \GlsXtrUnsetBufferEnableRepeatLocal
\gcmd{Gls\-Xtr\-Unset\-Buffer\-Enable\-Repeat\-Local}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{allows repeat entries within the buffering code to be
locally unset before the \idx{linktext}}
\field{seealso}{GlsXtrResetLocalBuffer}
}
% \GlsXtrResetLocalBuffer
\gcmd{Gls\-Xtr\-Reset\-Local\-Buffer}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{if local unset for repeat entries has been enabled with
\gls{GlsXtrUnsetBufferEnableRepeatLocal}, this will locally
reset all entries that are in the buffer that hadn't been
marked as used before the function was enabled}
\field{seealso}{GlsXtrUnsetBufferEnableRepeatLocal}
}
% \GlsXtrUnsetBufferDisableRepeatLocal
\gcmd{Gls\-Xtr\-Un\-set\-Buffer\-Disable\-Repeat\-Local}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{disables GlsXtrUnsetBufferEnableRepeatLocal}
}
% \glsxtrpostlocalunset
\gcmd{gls\-xtr\-post\-local\-unset}
{
%\providedby{\sty{glossaries-extra} v0.5.4+}
\syntax{\margm{entry-label}}
\desc{hook performed by \gls{glslocalunset}. This hook is
modified by \gls{glsenableentrycount} and \gls{glsenableentryunitcount}}
}
% \glsxtrpostunset
\gcmd{gls\-xtr\-post\-unset}
{
%\providedby{\sty{glossaries-extra} v0.5.4+}
\syntax{\margm{entry-label}}
\desc{hook performed by \gls{glsunset}. This hook is
modified by \gls{glsenableentrycount} and \gls{glsenableentryunitcount}}
}
% \glsxtrpostlocalreset
\gcmd{gls\-xtr\-post\-local\-reset}
{
%\providedby{\sty{glossaries-extra} v0.5.4+}
\syntax{\margm{entry-label}}
\desc{hook performed by \gls{glslocalreset}. This hook is
modified by \gls{glsenableentrycount} and \gls{glsenableentryunitcount}}
}
% \glsxtrpostreset
\gcmd{gls\-xtr\-post\-reset}
{
%\providedby{\sty{glossaries-extra} v0.5.4+}
\syntax{\margm{entry-label}}
\desc{hook performed by \gls{glsreset}. This hook is
modified by \gls{glsenableentrycount} and \gls{glsenableentryunitcount}}
}
% \GlsXtrEnableLinkCounting
\gcmd{Gls\-Xtr\-Enable\-Link\-Count\-ing}
{
\providedby{\sty{glossaries-extra} v1.26+}
\syntax{\oargm{parent counter}\margm{categories}}
\desc{enables link counting for the given categories}
\note{preamble only}
}
% \glsxtrinclinkcounter
\gcmd{gls\-xtr\-inc\-link\-counter}
{
\providedby{\sty{glossaries-extra} v1.26+}
\syntax{\margm{counter}}
\desc{increments the link counter with \gls{stepcounter}}
}
% \GlsXtrLinkCounterValue
\gcmd{Gls\-Xtr\-Link\-Counter\-Value}
{
\providedby{\sty{glossaries-extra} v1.26+}
\syntax{\margm{entry-label}}
\desc{expands to the internal link count register associated
with the given register or 0 if it hasn't been defined}
}
% \GlsXtrTheLinkCounter
\gcmd{Gls\-Xtr\-The\-Link\-Counter}
{
\providedby{\sty{glossaries-extra} v1.26+}
\syntax{\margm{entry-label}}
\desc{expands to the value of the link counter associated
with the given entry or 0 if it hasn't been defined}
}
% \GlsXtrIfLinkCounterDef
\gcmd{Gls\-Xtr\-If\-Link\-Counter\-Def}
{
\providedby{\sty{glossaries-extra} v1.26+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{expands to \meta{true} if the link counter associated
with the given entry has been defined, otherwise expands to \meta{false}}
}
% \GlsXtrLinkCounterName
\gcmd{Gls\-Xtr\-Link\-Counter\-Name}
{
\providedby{\sty{glossaries-extra} v1.26+}
\syntax{\margm{entry-label}}
\desc{expands to the name of the link counter associated with the given entry
(no check for existence)}
}
% COMMANDS: MULTI-ENTRY
% \multiglossaryentry
\gcmd{multi\-glossary\-entry}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{main-label}\margm{entry-label-list}}
\desc{defines a multi-entry set with the label
\meta{multi-label}, consisting of the entries whose labels are
listed in \meta{entry-label-list}, where the main entry (which must be
present in \meta{entry-label-list}) is identified by \meta{main-label}
(or the final element in \meta{entry-label-list}, if \meta{main-label} is
omitted)}
}
% \providemultiglossaryentry
\gcmd{provide\-multi\-glossary\-entry}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{main-label}\margm{entry-label-list}}
\desc{as \gls{multiglossaryentry} but does nothing if a
multi-entry set has already been defined with the given label}
}
% \ifmultiglossaryentryglobal
\gcond{if\-multi\-glossary\-entry\-global}
{
\providedby{\sty{glossaries-extra} v1.48+}
\initvalcs{iffalse}
\desc{if true, subsequent multi-entry definitions will be global}
}
% \multiglossaryentryglobaltrue
\gcmd{multi\-glossary\-entry\-global\-true}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{sets \gls{ifmultiglossaryentryglobal} to true}
}
% \multiglossaryentryglobalfalse
\gcmd{multi\-glossary\-entry\-global\-false}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{sets \gls{ifmultiglossaryentryglobal} to false}
}
% \mglsSetOptions
\gcmd{mgls\-Set\-Options}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}\margm{new-options}}
\desc{locally sets the options associated with the given
multi-entry}
}
% \mglsAddOptions
\gcmd{mgls\-Add\-Options}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}\margm{new-options}}
\desc{locally appends to the options associated with the given
multi-entry}
}
% \GlsXtrMglsOrGls
\gcmd{GlsXtrMglsOrGls}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{mgls cs}\margm{gls cs}\meta{modifier}\oargm{options}\margm{label}\oargm{insert}}
\desc{if \meta{label} matches a defined multi-entry, this will
do \meta{mgls cls} otherwise it will do \meta{gls cs}. The
\meta{modifier} (\code{*} or \code{+} or the token identified
with \gls{GlsXtrSetAltModifier}) may be omitted}
}
% \multiglossaryentrysetup
\gcmd{multi\-glossary\-entry\-set\-up}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{options}}
\desc{specifies a general set of options to apply to all multi-entries}
}
% \mglsdefcategoryprefix
\gcmd{mgls\-def\-category\-prefix}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{category-label}\margm{definition}}
\desc{defines the prefix for the given multi-entry category}
}
% \mglshascategoryprefix
\gcmd{mgls\-has\-category\-prefix}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{category-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the given multi-entry category has a
prefix set otherwise does \meta{false}}
}
% \mglsusecategoryprefix
\gcmd{mgls\-use\-category\-prefix}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{category-label}}
\desc{expands to the prefix assigned to the given multi-entry
category or does nothing if no prefix assigned}
}
% \mglsdefcategorysuffix
\gcmd{mgls\-def\-category\-suffix}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{category-label}\margm{definition}}
\desc{defines the suffix for the given multi-entry category}
}
% \mglsprefix
\gcmd{mgls\-prefix}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{code used to typeset the multi-entry prefix}
}
% \mglshascategorysuffix
\gcmd{mgls\-has\-category\-suffix}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{category-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the given multi-entry category has a
suffix set otherwise does \meta{false}}
}
% \mglsusecategorysuffix
\gcmd{mgls\-use\-category\-suffix}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{category-label}}
\desc{expands to the suffix assigned to the given multi-entry
category or does nothing if no suffix assigned}
}
% \mglssuffix
\gcmd{mgls\-suffix}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{code used to typeset the multi-entry suffix}
}
% \glscombinedsep
\gcmd{gls\-combined\-sep}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{prev label}\margm{next label}}
\desc{separator used between elements of a multi-entry set where
both elements have been marked as used}
}
% \glscombinedfirstsep
\gcmd{gls\-combined\-first\-sep}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{prev label}\margm{next label}}
\desc{separator used between elements of a multi-entry set where
only the next element have been marked as used}
}
% \glscombinedsepfirst
\gcmd{gls\-combined\-sep\-first}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{prev label}\margm{next label}}
\desc{separator used between elements of a multi-entry set where
only the previous element have been marked as used}
}
% \glscombinedfirstsepfirst
\gcmd{gls\-combined\-first\-sep\-first}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{prev label}\margm{next label}}
\desc{separator used between elements of a multi-entry set where
neither the previous nor the next element has been marked as used}
}
% \glssetcombinedsepabbrvnbsp
\gcmd{gls\-set\-combined\-sep\-abbrv\-nbsp}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{defines the multi-entry separators to use a
\idx{nbsp} for abbreviations}
}
% \glssetcombinedsepabbrvnone
\gcmd{gls\-set\-combined\-sep\-abbrv\-none}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{defines the multi-entry separators to use no
separator for abbreviations}
}
% \glssetcombinedsepnarrow
\gcmd{gls\-set\-combined\-sep\-narrow}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{width}\margm{narrow-sep}}
\desc{defines the multi-entry separators to use
\meta{narrow-sep} if the width of associated field values is less
than \meta{width}}
}
% \mglselementprehook
\gcmd{mgls\-element\-pre\-hook}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{hook performed before each (non-skipped) element in a
multi-entry set}
}
% \mglselementposthook
\gcmd{mgls\-element\-post\-hook}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{hook performed after each (non-skipped) element in a
multi-entry set}
}
% \mglscurrentmultilabel
\gcmd{mgls\-current\-multi\-label}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{placeholder command for use in multi-entry hooks, this
expands to the multi-entry label}
}
% \mglscurrentmainlabel
\gcmd{mgls\-current\-main\-label}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{placeholder command for use in multi-entry hooks, this
expands to the label of the main element}
}
% \mglscurrentlist
\gcmd{mgls\-current\-list}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{placeholder command for use in multi-entry hooks, this
expands to the complete comma-separated list of elements}
}
% \mglscurrentoptions
\gcmd{mgls\-current\-options}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{placeholder command for use in multi-entry hooks, this
expands to the options used when the multi-entry was defined}
}
% \mglscurrentcategory
\gcmd{mgls\-current\-category}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{placeholder command for use in multi-entry hooks, this
expands to the multi-entry category current in effect}
}
% \glsxtrcurrentmglscsname
\gcmd{gls\-xtr\-current\-mgls\-cs\-name}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{placeholder command for use in multi-entry hooks, this
expands to the control sequence name of the calling command}
}
% \mglscurrentlabel
\gcmd{mgls\-current\-label}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{placeholder command for use in multi-entry hooks, this
expands to the current element label}
}
% \mglselementindex
\gcmd{mgls\-element\-index}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{a count register used in multi-entry hooks, this
is set to the element index}
}
% \mglscurrentprefix
\gcmd{mgls\-current\-prefix}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{placeholder command for use in multi-entry hooks, this
expands to the current prefix}
}
% \mglscurrentsuffix
\gcmd{mgls\-current\-suffix}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{placeholder command for use in multi-entry hooks, this
expands to the current suffix}
}
% \mglsisfirstuse
\gcmd{mgls\-is\-first\-use}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{true}\margm{false}}
\desc{for use in multi-entry hooks, this expands to \meta{true}
if this is the first use otherwise expands to \meta{false}}
}
% \mglsiflast
\gcmd{mgls\-if\-last}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{true}\margm{false}}
\desc{for use in multi-entry hooks, this expands to \meta{true}
if this is the last iteration otherwise expands to \meta{false}}
}
% \mglslastmultilabel
\gcmd{mgls\-last\-multi\-label}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{for use in multi-entry suffix and post-link hooks, this expands to the
multi-entry label}
}
% \mglslastcategory
\gcmd{mgls\-last\-category}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{for use in multi-entry suffix and post-link hooks, this expands to the
multi-entry category or nothing, if no category assigned}
}
% \mglswasfirstuse
\gcmd{mgls\-was\-first\-use}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{true}\margm{false}}
\desc{for use in multi-entry suffix and post-link hooks, this expands to the
\meta{true} if this was the first use of the multi-entry,
otherwise to \meta{false}}
}
% \mglslastelementlabel
\gcmd{mgls\-last\-element\-label}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{for use in multi-entry suffix and post-link hooks, this expands to the
label of the last non-skipped element}
}
% \mglsiflastelementskipped
\gcmd{mgls\-if\-last\-element\-skipped}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{true}\margm{false}}
\desc{for use in multi-entry suffix and post-link hooks, this expands to the
\meta{true} if the last element was skipped,
otherwise to \meta{false}}
}
% \mglsiflastelementwasfirstuse
\gcmd{mgls\-if\-last\-element\-was\-first\-use}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{true}\margm{false}}
\desc{for use in multi-entry suffix and post-link hooks, this expands to the
\meta{true} if the last element was used for the first time,
otherwise to \meta{false}}
}
% \mglsiflastelementwasplural
\gcmd{mgls\-if\-last\-element\-was\-plural}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{true}\margm{false}}
\desc{for use in multi-entry suffix and post-link hooks, this expands to the
\meta{true} if the last element had the plural form displayed,
otherwise to \meta{false}}
}
% \mglsiflastelementcapscase
\gcmd{mgls\-if\-last\-element\-caps\-case}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{no-change}\margm{firstuc}\margm{all caps}}
\desc{for use in multi-entry suffix and post-link hooks, this expands to the
\meta{no-change} if the last element had no case-change applied,
to \meta{firstuc} if the last element had \idx+{sentencecase}
applied or to \meta{all caps} if the last element had \idx+{allcaps}
applied}
}
% \mglslastmainlabel
\gcmd{mgls\-last\-main\-label}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{for use in multi-entry suffix and post-link hooks, this expands to the
label of the main element that was just referenced}
}
% \mglsiflastmainskipped
\gcmd{mgls\-if\-last\-main\-skipped}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{true}\margm{false}}
\desc{for use in multi-entry suffix and post-link hooks, this expands to the
\meta{true} if the main element from the multi-entry just
referenced was skipped, otherwise to \meta{false}}
}
% \mglsiflastmainwasfirstuse
\gcmd{mgls\-if\-last\-main\-was\-first\-use}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{true}\margm{false}}
\desc{for use in multi-entry suffix and post-link hooks, this expands to the
\meta{true} if the main element from the multi-entry just
referenced was used for the first time, otherwise to \meta{false}}
}
% \mglsiflastmainwasplural
\gcmd{mgls\-if\-last\-main\-was\-plural}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{true}\margm{false}}
\desc{for use in multi-entry suffix and post-link hooks, this expands to the
\meta{true} if the main element from the multi-entry just
referenced had the plural form shown, otherwise to \meta{false}}
}
% \mglsiflastmaincapscase
\gcmd{mgls\-if\-last\-main\-caps\-case}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{no-change}\margm{firstuc}\margm{all caps}}
\desc{for use in multi-entry suffix and post-link hooks, this expands to the
\meta{no-change} if the main element from the multi-entry just
referenced had no case-change applied,
to \meta{firstuc} if the last element had \idx+{sentencecase}
applied or to \meta{all caps} if the last element had \idx+{allcaps}
applied}
}
% \mglscustompostlinkhook
\gcmd{mgls\-custom\-post\-link\-hook}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{hook used with the \mglsoptval{mpostlinkelement}{custom} option}
}
% \mglslastelementpostlinkhook
\gcmd{mgls\-last\-element\-post\-link\-hook}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{hook used with the \mglsoptval{mpostlinkelement}{last} option}
}
% \mglslastmainpostlinkhook
\gcmd{mgls\-last\-main\-post\-link\-hook}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{hook used with the \mglsoptval{mpostlinkelement}{main} option}
}
% \ifmglsused
\gcmd{if\-mgls\-used}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the given multi-entry has been marked
as used, otherwise does \meta{false}}
}
% \mglsunset
\gcmd{mgls\-unset}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}}
\desc{globally unsets the first use flag for the given multi-entry}
}
% \mglsreset
\gcmd{mgls\-reset}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}}
\desc{globally resets the first use flag for the given multi-entry}
}
% \mglslocalunset
\gcmd{mgls\-local\-unset}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}}
\desc{locally unsets the first use flag for the given multi-entry}
}
% \mglslocalreset
\gcmd{mgls\-local\-reset}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}}
\desc{locally resets the first use flag for the given multi-entry}
}
% \mglsunsetall
\gcmd{mgls\-unset\-all}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{unsets the first use flag for all multi-entries}
}
% \mglsresetall
\gcmd{mgls\-reset\-all}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{resets the first use flag for all multi-entries}
}
% \mglsSetMain
\gcmd{mgls\-Set\-Main}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}\margm{new-main-label}}
\desc{locally changes the main element for the given multi-entry}
}
% \mgls
\gcmdspa{mgls}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{references a multi-entry identified by the given
\meta{multi-label}}
}
% \mglspl
\gcmdspa{mgls\-pl}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses the plural form for each element}
}
% \mglsmainpl
\gcmdspa{mgls\-main\-pl}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses the plural form for the main element}
}
% \Mgls
\gcmdspa{Mgls}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{Gls} for the first element}
}
% \MGls
\gcmdspa{MGls}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{Gls} for all elements}
}
% \Mglspl
\gcmdspa{Mglspl}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{Glspl} for the first element
and \gls{glspl} for the remaining elements}
}
% \Mglsmainpl
\gcmdspa{Mglsmainpl}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} uses \idx{sentencecase} for the first
element and the plural form for the main element}
}
% \MGlspl
\gcmdspa{MGls\-pl}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{Glspl} for each element}
}
% \MGlsmainpl
\gcmdspa{MGls\-main\-pl}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{Glspl} for the main entry and
\gls{Gls} for the others}
}
% \MGLS
\gcmdspa{MGLS}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{GLS} for each element}
}
% \MGLSpl
\gcmdspa{MGLS\-pl}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{GLSpl} for each element}
}
% \MGLSmainpl
\gcmdspa{MGLS\-main\-pl}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{GLSpl} for the main element
and \gls{GLS} for the others}
}
% \mglsshort
\gcmdspa{mgls\-short}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{glsxtrshort} for any elements
that have the \gloskey{short} field set and \gls{glstext} otherwise}
}
% \mglslong
\gcmdspa{mgls\-long}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{glsxtrlong} for any elements
that have the \gloskey{long} field set and \gls{glstext} otherwise}
}
% \mglsfull
\gcmdspa{mgls\-full}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{glsxtrfull} for any elements
that have the \gloskey{short} field set and \gls{glsfirst} otherwise}
}
% \Mglsshort
\gcmdspa{Mgls\-short}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mglsshort} but \idx{sentencecase}}
}
% \Mglslong
\gcmdspa{Mgls\-long}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mglslong} but \idx{sentencecase}}
}
% \Mglsfull
\gcmdspa{Mgls\-full}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mglsfull} but \idx{sentencecase}}
}
% \mglsname
\gcmdspa{mgls\-name}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{glsname}}
}
% \MGlsname
\gcmdspa{MGls\-name}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{Glsname}}
}
% \Mglsname
\gcmdspa{Mgls\-name}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{Glsname} for the first entry
and \gls{glsname} for the remaining entries}
}
% \mglssymbol
\gcmdspa{mgls\-symbol}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{glssymbol} if the
\gloskey{symbol} field is set and \gls{gls} otherwise}
}
% \MGlssymbol
\gcmdspa{MGls\-symbol}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{glssymbol} if the
\gloskey{symbol} field is set and \gls{Gls} otherwise}
}
% \Mglssymbol
\gcmdspa{Mgls\-symbol}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{glssymbol} if the
\gloskey{symbol} field is set, otherwise it uses \gls{Gls} for
the first element and \gls{gls} for the remaining elements}
}
% \mglsusefield
\gcmdspa{mgls\-use\-field}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{glsdisp} if the field
identified by \gls{mglsfield} exists with the
\idx{linktext} obtained from the field value}
}
% \Mglsusefield
\gcmdspa{Mgls\-use\-field}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mglsusefield} but \idx{sentencecase} for the first
element}
}
% \MGlsusefield
\gcmdspa{MGls\-use\-field}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mglsusefield} but \idx{sentencecase} for each element}
}
% \mglsfield
\gcmd{mgls\-field}
{
\providedby{\sty{glossaries-extra} v1.48+}
\initval{useri}
\desc{expands to the \idx{internalfieldlabel} required by
\gls{mglsusefield}}
}
% \mpgls
\gcmdspa{mpgls}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{pgls} for the first element}
}
% \mpglspl
\gcmdspa{mpgls\-pl}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{pglspl} for the first element
and \gls{glspl} for the remaining elements}
}
% \mpglsmainpl
\gcmdspa{mpgls\-main\-pl}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mgls} but uses \gls{pglspl} for the first element
if its the main element otherwise \gls{pgls} and, for the remaining
elements, uses \gls{glspl} if the element is the main entry or
\gls{gls} otherwise}
}
% \Mpgls
\gcmdspa{Mpgls}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mpgls} but \idx{sentencecase} for the first element}
}
% \Mpglsmain
\gcmdspa{Mpglsmainpl}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mpglspl} but \idx{sentencecase} for the first element}
}
% \MPGls
\gcmdspa{MPGls}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mpgls} but \idx{sentencecase} for all elements}
}
% \MPGlspl
\gcmdspa{MPGls\-pl}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mpglspl} but \idx{sentencecase} for all elements}
}
% \MPGlsmainpl
\gcmdspa{MPGls\-main\-pl}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mpglsmainpl} but \idx{sentencecase} for all elements}
}
% \MPGLS
\gcmdspa{MPGLS}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mpgls} but \idx{allcaps} for the all elements}
}
% \MPGLSpl
\gcmdspa{MPGLSpl}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mpglspl} but \idx{allcaps} for the all elements}
}
% \MPGLSmainpl
\gcmdspa{MPGLS\-main\-pl}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\oargm{options}\margm{multi-label}\oargm{insert}}
\desc{as \gls{mpglsmainpl} but \idx{allcaps} for the all elements}
}
% \mglsseefirstitem
\gcmd{mgls\-see\-first\-item}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}}
\desc{formatting command used by cross-reference lists for the
first item if the item is a multi-entry}
}
% \mglsseeitem
\gcmd{mgls\-see\-item}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}}
\desc{formatting command used by cross-reference lists for
subsequent items if the item is a multi-entry}
}
% \glsxtrifmulti
\gcmd{gls\-xtr\-if\-multi}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}\margm{true}\margm{false}}
\desc{does \meta{true} if a multi-entry has been defined with
the label \meta{multi-label} otherwise does \meta{false}}
}
% \glsxtrmultimain
\gcmd{gls\-xtr\-multi\-main}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}}
\desc{expands to the main label for the multi-entry identified
by \meta{multi-label} or nothing if not defined}
}
% \glsxtrmultilist
\gcmd{gls\-xtr\-multi\-list}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}}
\desc{expands to the list of element labels for the multi-entry identified
by \meta{multi-label} or nothing if not defined}
}
% \mglsforelements
\gcmd{mgls\-for\-elements}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}\margm{cs}\margm{body}}
\desc{iterates over the list of element labels for the multi-entry identified
by \meta{multi-label}}
}
% \mglsforotherelements
\gcmd{mgls\-for\-other\-elements}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}\margm{cs}\margm{body}}
\desc{as \gls{mglsforelements} but skips the main entry label}
}
% \glsxtrmultitotalelements
\gcmd{gls\-xtr\-multi\-total\-elements}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}}
\desc{expands to the total number of elements in the given
multi-entry or nothing if \meta{multi-label} hasn't been defined}
}
% \glsxtrmultimainindex
\gcmd{gls\-xtr\-multi\-main\-index}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}}
\desc{expands to the index of the main element in the given
multi-entry or nothing if \meta{multi-label} hasn't been defined}
}
% \glsxtrmultilastotherindex
\gcmd{gls\-xtr\-multi\-last\-other\-index}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}}
\desc{expands to the index of the final non-main element in the given
multi-entry or nothing if \meta{multi-label} hasn't been defined}
}
% \writemultiglossentry
\gcmd{write\-multi\-gloss\-entry}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{options}\margm{multi-label}\margm{main-label}\margm{list}}
\desc{writes multi-entry information to the \ext{aux} file}
}
% \@glsxtr@multientry
\gcmd{@gls\-xtr\-@multi\-entry}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{options}\margm{multi-label}\margm{main-label}\margm{list}}
\desc{information in the \ext{aux} about a multi-label defined
in the previous \LaTeX\ run}
}
% \glsxtrmultientryadjustedname
\gcmd{gls\-xtr\-multi\-entry\-adjust\-ed\-name}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.48+}
\syntax{\margm{sublist1}\margm{name}\margm{sublist2}\margm{multi-label}}
\desc{used by \resourceopt{compound-adjust-name}}
}
% \Glsxtrmultientryadjustedname
\gcmd{Gls\-xtr\-multi\-entry\-adjust\-ed\-name}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.48+}
\syntax{\margm{sublist1}\margm{name}\margm{sublist2}\margm{multi-label}}
\desc{as \gls{glsxtrmultientryadjustedname} but \idx{sentencecase}}
}
% \GlsXtrmultientryadjustedname
\gcmd{Gls\-Xtr\-multi\-entry\-adjust\-ed\-name}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.48+}
\syntax{\margm{sublist1}\margm{name}\margm{sublist2}\margm{multi-label}}
\desc{as \gls{glsxtrmultientryadjustedname} but \idx{titlecase}}
}
% \GLSxtrmultientryadjustedname
\gcmd{GLS\-xtr\-multi\-entry\-adjust\-ed\-name}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.48+}
\syntax{\margm{sublist1}\margm{name}\margm{sublist2}\margm{multi-label}}
\desc{as \gls{glsxtrmultientryadjustedname} but \idx{allcaps}}
}
% \glsxtrmultientryadjustednamesep
\gcmd{gls\-xtr\-multi\-entry\-adjusted\-name\-sep}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.48+}
\syntax{\margm{pre-label}\margm{post-label}}
\desc{separator used by \gls{glsxtrmultientryadjustedname}}
}
% \glsxtrmultientryadjustednamepresep
\gcmd{gls\-xtr\-multi\-entry\-adjusted\-name\-pre\-sep}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.48+}
\syntax{\margm{pre-label}\margm{post-label}}
\desc{separator used by \gls{glsxtrmultientryadjustedname}
between the last element of the first sublist and the main element}
}
% \glsxtrmultientryadjustednamepostsep
\gcmd{gls\-xtr\-multi\-entry\-adjusted\-name\-post\-sep}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.48+}
\syntax{\margm{pre-label}\margm{post-label}}
\desc{separator used by \gls{glsxtrmultientryadjustedname}
between the main element and the first element of the second
sublist}
}
% \glsxtrmultientryadjustednamefmt
\gcmd{gls\-xtr\-multi\-entry\-adjusted\-name\-fmt}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.48+}
\syntax{\margm{text}}
\desc{used by \gls{glsxtrmultientryadjustedname}
to encapsulate the main entry name}
}
% \Glsxtrmultientryadjustednamefmt
\gcmd{Gls\-xtr\-multi\-entry\-adjusted\-name\-fmt}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.48+}
\syntax{\margm{text}}
\desc{used by \gls{Glsxtrmultientryadjustedname}
to encapsulate the main entry name if the first sublist is empty}
}
% \GlsXtrmultientryadjustednamefmt
\gcmd{Gls\-Xtr\-multi\-entry\-adjusted\-name\-fmt}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.48+}
\syntax{\margm{text}}
\desc{used by \gls{GlsXtrmultientryadjustedname}
to encapsulate the main entry name}
}
% \GLSxtrmultientryadjustednamefmt
\gcmd{GLS\-xtr\-multi\-entry\-adjusted\-name\-fmt}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.48+}
\syntax{\margm{text}}
\desc{used by \gls{GLSxtrmultientryadjustedname}
to encapsulate the main entry name}
}
% \glsxtrmultientryadjustednameother
\gcmd{gls\-xtr\-multi\-entry\-adjusted\-name\-other}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.48+}
\syntax{\margm{text}}
\desc{used by \gls{glsxtrmultientryadjustedname}
to encapsulate the other (not main) entries}
}
% \Glsxtrmultientryadjustednameother
\gcmd{Gls\-xtr\-multi\-entry\-adjusted\-name\-other}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.48+}
\syntax{\margm{text}}
\desc{used by \gls{Glsxtrmultientryadjustedname}
to encapsulate the other (not main) entries}
}
% \GlsXtrmultientryadjustednameother
\gcmd{Gls\-Xtr\-multi\-entry\-adjusted\-name\-other}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.48+}
\syntax{\margm{text}}
\desc{used by \gls{GlsXtrmultientryadjustedname}
to encapsulate the other (not main) entries}
}
% \GLSxtrmultientryadjustednameother
\gcmd{GLS\-xtr\-multi\-entry\-adjusted\-name\-other}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.48+}
\syntax{\margm{text}}
\desc{used by \gls{GLSxtrmultientryadjustedname}
to encapsulate the other (not main) entries}
}
% \mglselementreset
\gcmd{mgls\-element\-reset}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{entry-label}}
\desc{used by options such as \mglsopt{resetall} to reset an
element's \idx{firstuseflag} (taking the \mglsopt{presetlocal}
option into account)}
}
% \mglselementunset
\gcmd{mgls\-element\-unset}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{entry-label}}
\desc{used by options such as \mglsopt{unsetall} to unset an
element's \idx{firstuseflag} (taking the \mglsopt{presetlocal}
option into account)}
}
% \mglsunsetothers
\gcmd{mgls\-unset\-others}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}}
\desc{globally unsets the \idx{firstuseflag} for the other (not main) elements
of the given multi-entry}
}
% \mglslocalunsetothers
\gcmd{mgls\-local\-unset\-others}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{multi-label}}
\desc{locally unsets the \idx{firstuseflag} for the other (not main) elements
of the given multi-entry}
}
% MULTI-ENTRY OPTIONS:
\gidx{mglsopt}{\name{multi-entry set options}}
% option: indexmain
\gmglsopt{index\-main}
{
\syntax{\meta{value}}
\initval{true}
\defval{true}
\desc{indicates if the main element should
be \indexed, should only be \indexed\ on \idx{firstuse} or should not indexed}
}
% option: indexothers
\gmglsopt{index\-others}
{
\syntax{\meta{value}}
\initval{true}
\defval{true}
\desc{indicates if the \qt{other} elements should
be \indexed, should only be \indexed\ on \idx{firstuse} or should not indexed}
}
% option: encapmain
\gmglsopt{encap\-main}
{
\syntax{\meta{value}}
\initval{glsnumberformat}
\desc{the value to pass to the \glsopt{format} option for the
main entry}
}
% option: encapothers
\gmglsopt{encap\-others}
{
\syntax{\meta{value}}
\initval{glsnumberformat}
\desc{the value to pass to the \glsopt{format} option for the
\qt{other} elements}
}
% option: postlinks
\gmglsopt{post\-links}
{
\syntax{\meta{value}}
\initval{none}
\desc{indicates which \idxpl{postlinkhook} should be enabled}
}
% option: mpostlink
\gmglsopt{mpost\-link}
{
\syntax{\meta{value}}
\initval{true}
\defval{true}
\desc{indicates whether or not the multi-entry post-link hook
should be enabled and, if so, whether it should only be enabled
on \idxc{mfirstuse}{first} or \idxc{msubsequentuse}{subsequent} use}
}
% option: mpostlinkelement
\gmglsopt{mpost\-link\-element}
{
\syntax{\meta{value}}
\initval{last}
\desc{indicates which \idx{postlinkhook} to use if the
multi-entry post-link hook has been enabled}
}
% option: firstprefix
\gmglsopt{first\-prefix}
{
\syntax{\meta{value}}
\desc{the prefix to use on \idx{firstuse} of the multi-entry}
}
% option: usedprefix
\gmglsopt{used\-prefix}
{
\syntax{\meta{value}}
\desc{the prefix to use on \idx{subsequentuse} of the multi-entry}
}
% option: firstsuffix
\gmglsopt{first\-suffix}
{
\syntax{\meta{value}}
\desc{the suffix to use on \idx{mfirstuse} of the multi-entry}
}
% option: usedsuffix
\gmglsopt{used\-suffix}
{
\syntax{\meta{value}}
\desc{the suffix to use on \idx{msubsequentuse} of the multi-entry}
}
% option: firstskipmain
\gmglsopt{first\-skip\-main}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{determines whether or not to skip the main entry on \idx{mfirstuse}}
}
% option: firstskipothers
\gmglsopt{first\-skip\-others}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{determines whether or not to skip the \qt{other} elements on \idx{mfirstuse}}
}
% option: usedskipmain
\gmglsopt{used\-skip\-main}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{determines whether or not to skip the main entry on
\idx{msubsequentuse}}
}
% option: usedskipothers
\gmglsopt{used\-skip\-others}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{determines whether or not to skip the \qt{other} elements
on \idx{msubsequentuse}}
}
% option: hyper (\multiglossaryentry)
\gmglsopt{multi.hyper}
{
\name{hyper}
\syntax{\meta{value}}
\initval{individual}
\desc{indicates which elements should have hyperlinks, if
supported. This option is a multi-entry setting, see
\sectionref{sec:multiglsoptions}}
}
% option: hyper (\mgls)
\gmglsopt{hyper}
{
\syntax{\meta{boolean}}
\defval{true}
\desc{indicates whether or not to use hyperlinks, if supported,
for all elements. This option is for use in the optional
argument of \gls{mgls} and can be set implicitly with the
default behaviour of the \cmdmod{star} and \cmdmod{plus} modifiers}
}
% option: textformat
\gmglsopt{text\-format}
{
\syntax{\meta{value}}
\initval{@firstofone}
\desc{the control sequence name of the command that should
encapsulate the entire content}
}
% option: category
\gmglsopt{category}
{
\syntax{\meta{category-label}}
\desc{the category to assign to the multi-entry set}
}
% option: mglsopts
\gmglsopt{mgls\-opts}
{
\syntax{\meta{option list}}
\desc{the default options to pass to commands like \gls{mgls}}
}
% option: setup
\gmglsopt{set\-up}
{
\syntax{\meta{option list}}
\desc{multi-entry options that will override any conflicting
options already assigned to the multi-entry}
}
% option: all
\gmglsopt{all}
{
\syntax{\meta{option list}}
\desc{options to pass to the \idx{glslike} command for each element}
}
% option: main
\gmglsopt{main}
{
\syntax{\meta{option list}}
\desc{options to pass to the \idx{glslike} command for the main entry}
}
% option: others
\gmglsopt{others}
{
\syntax{\meta{option list}}
\desc{options to pass to the \idx{glslike} command for the \qt{other}
elements}
}
% option: multiunset
\gmglsopt{multi\-un\-set}
{
\syntax{\meta{value}}
\initval{global}
\desc{indicates whether or not the \idx{mfirstuseflag} should be unset}
}
% option: presetlocal
\gmglsopt{pre\-set\-local}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{indicates whether or not the prereset options should have
a local or global effect}
}
% option: resetall
\gmglsopt{reset\-all}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{indicates whether or not to reset all elements'
\idx{firstuseflag} before using \gls{gls}}
}
% option: resetmain
\gmglsopt{reset\-main}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{indicates whether or not to reset the main entry's
\idx{firstuseflag} before using \gls{gls}}
}
% option: resetothers
\gmglsopt{reset\-others}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{indicates whether or not to reset all \qt{other} elements'
\idx{firstuseflag} before using \gls{gls}}
}
% option: unsetall
\gmglsopt{unset\-all}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{indicates whether or not to unset all elements'
\idx{firstuseflag} before using \gls{gls}}
}
% option: unsetmain
\gmglsopt{unset\-main}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{indicates whether or not to unset the main entry's
\idx{firstuseflag} before using \gls{gls}}
}
% option: unsetothers
\gmglsopt{unset\-others}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{indicates whether or not to unset all \qt{other} elements'
\idx{firstuseflag} before using \gls{gls}}
}
% COMMANDS: PREFIXES
% \pgls
\gcmdspa{pgls}{%
\providedby{\sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{similar to \gls{gls} but inserts the appropriate prefix,
if provided}
}
% \Pgls
\gcmdspa{Pgls}{%
\providedby{\sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pgls} but \idx{sentencecase}}
}
% \PGLS
\gcmdspa{PGLS}{%
\providedby{\sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pgls} but \idx{allcaps}}
}
% \pglspl
\gcmdspa{pgls\-pl}{%
\providedby{\sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{similar to \gls{glspl} but inserts the appropriate prefix,
if provided}
}
% \Pglspl
\gcmdspa{Pgls\-pl}{%
\providedby{\sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pgls} but \idx{sentencecase}}
}
% \PGLSpl
\gcmdspa{PGLS\-pl}{%
\providedby{\sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pgls} but \idx{allcaps}}
}
% \glsprefixsep
\gcmd{glsprefixsep}
{
\providedby{\sty{glossaries-prefix} v4.45+}
\initvalempty
\desc{separator between the prefix and the term}
}
% COMMANDS: PREFIXES (glossaries-extra)
% \pglsxtrshort
\gcmdspa{pgls\-xtr\-short}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrshort} but inserts the \gloskey{prefix}
field and separator in front if set}
}
% \pglsxtrshortpl
\gcmdspa{pgls\-xtr\-short\-pl}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrshortpl} but inserts the \gloskey{prefixplural}
field and separator in front if set}
}
% \pglsxtrlong
\gcmdspa{pgls\-xtr\-long}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrlong} but inserts the \gloskey{prefixfirst}
field and separator in front if set}
}
% \pglsxtrlongpl
\gcmdspa{pgls\-xtr\-long\-pl}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsxtrlongpl} but inserts the \gloskey{prefixfirstplural}
field and separator in front if set}
}
% \Pglsxtrshort
\gcmdspa{Pgls\-xtr\-short}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsxtrshort} but \idx{sentencecase}}
}
% \Pglsxtrshortpl
\gcmdspa{Pgls\-xtr\-short\-pl}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsxtrshortpl} but \idx{sentencecase}}
}
% \Pglsxtrlong
\gcmdspa{Pgls\-xtr\-long}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsxtrlong} but \idx{sentencecase}}
}
% \Pglsxtrlongpl
\gcmdspa{Pgls\-xtr\-long\-pl}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsxtrlongpl} but \idx{sentencecase}}
}
% \PGLSxtrshort
\gcmdspa{PGLS\-xtr\-short}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsxtrshort} but \idx{allcaps}}
}
% \PGLSxtrshortpl
\gcmdspa{PGLS\-xtr\-short\-pl}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsxtrshortpl} but \idx{allcaps}}
}
% \PGLSxtrlong
\gcmdspa{PGLS\-xtr\-long}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsxtrlong} but \idx{allcaps}}
}
% \PGLSxtrlongpl
\gcmdspa{PGLS\-xtr\-long\-pl}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsxtrlongpl} but \idx{allcaps}}
}
% \pglsfmtshort
\gcmdspa{pgls\-fmt\-short}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsfmtshort} but inserts the \gloskey{prefix}
field and separator in front if set}
}
% \pglsfmtshortpl
\gcmdspa{pgls\-fmt\-short\-pl}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsfmtshortpl} but inserts the \gloskey{prefixplural}
field and separator in front if set}
}
% \pglsfmtlong
\gcmdspa{pgls\-fmt\-long}{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsfmtlong} but inserts the \gloskey{prefixfirst}
field and separator in front if set}
}
% \pglsfmtlongpl
\gcmdspa{pgls\-fmt\-long\-pl}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{glsfmtlongpl} but inserts the \gloskey{prefixfirstplural}
field and separator in front if set}
}
% \Pglsfmtshort
\gcmdspa{Pgls\-fmt\-short}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsfmtshort} but \idx{sentencecase}}
}
% \Pglsfmtshortpl
\gcmdspa{Pgls\-fmt\-short\-pl}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsfmtshortpl} but \idx{sentencecase}}
}
% \PGLSfmtshort
\gcmdspa{PGLS\-fmt\-short}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsfmtshort} but \idx{allcaps}}
}
% \PGLSfmtshortpl
\gcmdspa{PGLS\-fmt\-short\-pl}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsfmtshortpl} but \idx{allcaps}}
}
% \Pglsfmtlong
\gcmdspa{Pgls\-fmt\-long}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsfmtlong} but \idx{sentencecase}}
}
% \Pglsfmtlongpl
\gcmdspa{Pgls\-fmt\-long\-pl}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsfmtlongpl} but \idx{sentencecase}}
}
% \PGLSfmtlong
\gcmdspa{PGLS\-fmt\-long}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsfmtlong} but \idx{allcaps}}
}
% \PGLSfmtlongpl
\gcmdspa{PGLS\-fmt\-long\-pl}{%
\providedby{\sty{glossaries-extra} v1.49+}
\note{requires \sty{glossaries-prefix}}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{as \gls{pglsfmtlongpl} but \idx{allcaps}}
}
% \Pglsxtrtitleshort
\gcmd{Pgls\-xtr\-title\-short}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\note{requires \sty{glossaries-prefix}}
\desc{the normal behaviour of \gls{Pglsfmtshort}}
}
% \Pglsxtrtitleshortpl
\gcmd{Pgls\-xtr\-title\-short\-pl}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\note{requires \sty{glossaries-prefix}}
\desc{the normal behaviour of \gls{Pglsfmtshortpl}}
}
% \Pglsxtrtitlelong
\gcmd{Pgls\-xtr\-title\-long}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\note{requires \sty{glossaries-prefix}}
\desc{the normal behaviour of \gls{Pglsfmtlong}}
}
% \Pglsxtrtitlelongpl
\gcmd{Pgls\-xtr\-title\-long\-pl}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\note{requires \sty{glossaries-prefix}}
\desc{the normal behaviour of \gls{Pglsfmtlongpl}}
}
% COMMANDS: ACCESSIBILITY
% \glsentrysymbolaccess
\gcmd{gls\-entry\-symbol\-access}
{
\providedby{\sty{glossaries-accsupp}}
\syntax{\margm{entry-label}}
\desc{as \gls{glsentrysymbol} but for the \gloskey{symbolaccess} field}
}
% \glsxtrassignactualsetup
\gcmd{gls\-xtr\-assign\-actual\-set\-up}
{
\providedby{\sty{glossaries-extra} v1.42+}
\note{requires \opt{accsupp}}
\desc{used to strip common formatting commands from a field
value to supply the text-only accessibility content when
initialising the default \gloskey{shortaccess} and
\gloskey{shortpluralaccess} values}
}
% \glsdefaultshortaccess
\gcmd{gls\-default\-short\-access}
{
\note{requires \opt{accsupp}}
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\margm{long}\margm{short}}
\desc{used when \gls{newabbreviation} automatically assigns
\gloskey{shortaccess}. This is defined by
\sty{glossaries-accsupp} to just do \meta{long} but is redefined by
\sty{glossaries-extra} to do \code{\meta{long} (\meta{short})}}
}
% \glsnameaccessdisplay
\gcmd{gls\-name\-access\-display}
{
\providedby{\sty{glossaries-accsupp}}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{access} replacement
text (if set)}
}
% \glstextaccessdisplay
\gcmd{gls\-text\-access\-display}
{
\providedby{\sty{glossaries-accsupp}}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{textaccess} replacement
text (if set)}
}
% \glspluralaccessdisplay
\gcmd{gls\-plural\-access\-display}
{
\providedby{\sty{glossaries-accsupp}}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{pluralaccess} replacement
text (if set)}
}
% \glsfirstaccessdisplay
\gcmd{gls\-first\-access\-display}
{
\providedby{\sty{glossaries-accsupp}}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{firstaccess} replacement
text (if set)}
}
% \glsfirstpluralaccessdisplay
\gcmd{gls\-first\-plural\-access\-display}
{
\providedby{\sty{glossaries-accsupp}}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{firstpluralaccess} replacement
text (if set)}
}
% \glssymbolaccessdisplay
\gcmd{gls\-symbol\-access\-display}
{
\providedby{\sty{glossaries-accsupp}}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{symbolaccess} replacement
text (if set)}
}
% \glssymbolpluralaccessdisplay
\gcmd{gls\-symbol\-plural\-access\-display}
{
\providedby{\sty{glossaries-accsupp}}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{symbolpluralaccess} replacement
text (if set)}
}
% \glsdescriptionaccessdisplay
\gcmd{gls\-description\-access\-display}
{
\providedby{\sty{glossaries-accsupp}}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{descriptionaccess} replacement
text (if set)}
}
% \glsdescriptionpluralaccessdisplay
\gcmd{gls\-description\-plural\-access\-display}
{
\providedby{\sty{glossaries-accsupp}}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{descriptionpluralaccess} replacement
text (if set)}
}
% \glsshortaccessdisplay
\gcmd{gls\-short\-access\-display}
{
\providedby{\sty{glossaries-accsupp}}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{shortaccess} replacement
text (if set)}
}
% \glsshortpluralaccessdisplay
\gcmd{gls\-short\-plural\-access\-display}
{
\providedby{\sty{glossaries-accsupp}}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{shortpluralaccess} replacement
text (if set)}
}
% \glslongaccessdisplay
\gcmd{gls\-long\-access\-display}
{
\providedby{\sty{glossaries-accsupp}}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{longaccess} replacement
text (if set)}
}
% \glslongpluralaccessdisplay
\gcmd{gls\-long\-plural\-access\-display}
{
\providedby{\sty{glossaries-accsupp}}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{longpluralaccess} replacement
text (if set)}
}
% \glsuseriaccessdisplay
\gcmd{gls\-user\-i\-access\-display}
{
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{user1access} replacement
text (if set)}
}
% \glsuseriiaccessdisplay
\gcmd{gls\-user\-ii\-access\-display}
{
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{user2access} replacement
text (if set)}
}
% \glsuseriiiaccessdisplay
\gcmd{gls\-user\-iii\-access\-display}
{
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{user3access} replacement
text (if set)}
}
% \glsuserivaccessdisplay
\gcmd{gls\-user\-iv\-access\-display}
{
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{user4access} replacement
text (if set)}
}
% \glsuservaccessdisplay
\gcmd{gls\-user\-v\-access\-display}
{
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{user5access} replacement
text (if set)}
}
% \glsuserviaccessdisplay
\gcmd{gls\-user\-vi\-access\-display}
{
\providedby{\sty{glossaries-accsupp} v4.45+}
\syntax{\margm{text}\margm{entry-label}}
\desc{does \meta{text} with the \gloskey{user6access} replacement
text (if set)}
}
% \glsaccessname
\gcmd{gls\-access\-name}
{%
%\providedby{\sty{glossaries-extra} v0.3+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{name} key with the accessibility
support enabled for that key (\gloskey{access}). If there is no accessibility
support, this just uses \gls{glsentryname}}
}
% \Glsaccessname
\gcmd{Gls\-access\-name}
{%
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccessname}}
}
% \GLSaccessname
\gcmd{GLS\-access\-name}
{%
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccessname}}
}
% \glsaccesstext
\gcmd{gls\-access\-text}
{%
%\providedby{\sty{glossaries-extra} v0.3+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{text} key with the accessibility
support enabled for that key (\gloskey{textaccess}). If there is no accessibility
support, this just uses \gls{glsentrytext}}
}
% \Glsaccesstext
\gcmd{Gls\-access\-text}
{%
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccesstext}}
}
% \GLSaccesstext
\gcmd{GLS\-access\-text}
{%
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccesstext}}
}
% \glsaccessplural
\gcmd{gls\-access\-plural}
{%
%\providedby{\sty{glossaries-extra} v0.3+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{plural} key with the accessibility
support enabled for that key (\gloskey{pluralaccess}). If there is
no accessibility support, this just uses \gls{glsentryplural}}
}
% \Glsaccessplural
\gcmd{Gls\-access\-plural}
{%
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccessplural}}
}
% \GLSaccessplural
\gcmd{GLS\-access\-plural}
{%
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccessplural}}
}
% \glsaccessfirst
\gcmd{gls\-access\-first}
{%
%\providedby{\sty{glossaries-extra} v0.3+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{first} key with the accessibility
support enabled for that key (\gloskey{firstaccess}). If there is
no accessibility support, this just uses \gls{glsentryfirst}}
}
% \Glsaccessfirst
\gcmd{Gls\-access\-first}
{%
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccessfirst}}
}
% \GLSaccessfirst
\gcmd{GLS\-access\-first}
{%
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccessfirst}}
}
% \glsaccessfirstplural
\gcmd{gls\-access\-firstplural}
{%
%\providedby{\sty{glossaries-extra} v0.3+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{firstplural} key with the accessibility
support enabled for that key (\gloskey{firstpluralaccess}). If there is
no accessibility support, this just uses \gls{glsentryfirstplural}}
}
% \Glsaccessfirstplural
\gcmd{Gls\-access\-firstplural}
{%
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccessfirstplural}}
}
% \GLSaccessfirstplural
\gcmd{GLS\-access\-firstplural}
{%
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccessfirstplural}}
}
% \glsaccesssymbol
\gcmd{gls\-access\-symbol}
{%
%\providedby{\sty{glossaries-extra} v0.3+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{symbol} key with the accessibility
support enabled for that key (\gloskey{symbolaccess}). If there is
no accessibility support, this just uses \gls{glsentrysymbol}}
}
% \Glsaccesssymbol
\gcmd{Gls\-access\-symbol}
{%
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccesssymbol}}
}
% \GLSaccesssymbol
\gcmd{GLS\-access\-symbol}
{%
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccesssymbol}}
}
% \glsaccesssymbolplural
\gcmd{gls\-access\-symbolplural}
{%
%\providedby{\sty{glossaries-extra} v0.3+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{symbolplural} key with the accessibility
support enabled for that key (\gloskey{symbolpluralaccess}). If there is
no accessibility support, this just uses \gls{glsentrysymbolplural}}
}
% \Glsaccesssymbolplural
\gcmd{Gls\-access\-symbolplural}
{%
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccesssymbolplural}}
}
% \GLSaccesssymbolplural
\gcmd{GLS\-access\-symbolplural}
{%
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccesssymbolplural}}
}
% \glsaccessdesc
\gcmd{gls\-access\-desc}
{%
%\providedby{\sty{glossaries-extra} v0.3+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{description} key with the accessibility
support enabled for that key (\gloskey{descriptionaccess}). If there is
no accessibility support, this just uses \gls{glsentrydesc}}
}
% \Glsaccessdesc
\gcmd{Gls\-access\-desc}
{%
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccessdesc}}
}
% \GLSaccessdesc
\gcmd{GLS\-access\-desc}
{%
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccessdesc}}
}
% \glsaccessdescplural
\gcmd{gls\-access\-desc\-plural}
{%
%\providedby{\sty{glossaries-extra} v0.3+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{descriptionplural} key with the accessibility
support enabled for that key (\gloskey{descriptionpluralaccess}). If there is
no accessibility support, this just uses \gls{glsentrydescplural}}
}
% \Glsaccessdescplural
\gcmd{Gls\-access\-desc\-plural}
{%
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccessdescplural}}
}
% \GLSaccessdescplural
\gcmd{GLS\-access\-desc\-plural}
{%
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccessdescplural}}
}
% \glsaccessshort
\gcmd{gls\-access\-short}
{%
%\providedby{\sty{glossaries-extra} v0.3+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{short} key with the accessibility
support enabled for that key (\gloskey{shortaccess}). If there is
no accessibility support, this just uses \gls{glsentryshort}}
}
% \Glsaccessshort
\gcmd{Gls\-access\-short}
{%
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccessshort}}
}
% \GLSaccessshort
\gcmd{GLS\-access\-short}
{%
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccessshort}}
}
% \glsaccessshortpl
\gcmd{gls\-access\-shortpl}
{%
%\providedby{\sty{glossaries-extra} v0.3+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{shortplural} key with the accessibility
support enabled for that key (\gloskey{shortpluralaccess}). If there is
no accessibility support, this just uses \gls{glsentryshortpl}}
}
% \Glsaccessshortpl
\gcmd{Gls\-access\-shortpl}
{%
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccessshortpl}}
}
% \GLSaccessshortpl
\gcmd{GLS\-access\-shortpl}
{%
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccessshortpl}}
}
% \glsaccesslong
\gcmd{gls\-access\-long}
{%
%\providedby{\sty{glossaries-extra} v0.3+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{long} key with the accessibility
support enabled for that key (\gloskey{longaccess}). If there is
no accessibility support, this just uses \gls{glsentrylong}}
}
% \Glsaccesslong
\gcmd{Gls\-access\-long}
{%
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccesslong}}
}
% \GLSaccesslong
\gcmd{GLS\-access\-long}
{%
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccesslong}}
}
% \glsaccesslongpl
\gcmd{gls\-access\-longpl}
{%
%\providedby{\sty{glossaries-extra} v0.3+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{longplural} key with the accessibility
support enabled for that key (\gloskey{longpluralaccess}). If there is
no accessibility support, this just uses \gls{glsentrylongpl}}
}
% \Glsaccesslongpl
\gcmd{Gls\-access\-longpl}
{%
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccesslongpl}}
}
% \GLSaccesslongpl
\gcmd{GLS\-access\-longpl}
{%
%\providedby{\sty{glossaries-extra} v0.5.2+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccesslongpl}}
}
% \glsaccessuseri
\gcmd{gls\-access\-useri}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{user1} key with the accessibility
support enabled for that key (\gloskey{user1access}). If there is
no accessibility support, this just uses \gls{glsentryuseri}}
}
% \Glsaccessuseri
\gcmd{Gls\-access\-useri}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccessuseri}}
}
% \GLSaccessuseri
\gcmd{GLS\-access\-useri}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccessuseri}}
}
% \glsaccessuserii
\gcmd{gls\-access\-userii}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{user2} key with the accessibility
support enabled for that key (\gloskey{user2access}). If there is
no accessibility support, this just uses \gls{glsentryuserii}}
}
% \Glsaccessuserii
\gcmd{Gls\-access\-userii}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccessuserii}}
}
% \GLSaccessuserii
\gcmd{GLS\-access\-userii}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccessuserii}}
}
% \glsaccessuseriii
\gcmd{gls\-access\-useriii}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{user3} key with the accessibility
support enabled for that key (\gloskey{user3access}). If there is
no accessibility support, this just uses \gls{glsentryuseriii}}
}
% \Glsaccessuseriii
\gcmd{Gls\-access\-useriii}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccessuseriii}}
}
% \GLSaccessuseriii
\gcmd{GLS\-access\-useriii}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccessuseriii}}
}
% \glsaccessuseriv
\gcmd{gls\-access\-useriv}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{user4} key with the accessibility
support enabled for that key (\gloskey{user4access}). If there is
no accessibility support, this just uses \gls{glsentryuseriv}}
}
% \Glsaccessuseriv
\gcmd{Gls\-access\-useriv}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccessuseriv}}
}
% \GLSaccessuseriv
\gcmd{GLS\-access\-useriv}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccessuseriv}}
}
% \glsaccessuserv
\gcmd{gls\-access\-userv}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{user5} key with the accessibility
support enabled for that key (\gloskey{user5access}). If there is
no accessibility support, this just uses \gls{glsentryuserv}}
}
% \Glsaccessuserv
\gcmd{Gls\-access\-userv}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccessuserv}}
}
% \GLSaccessuserv
\gcmd{GLS\-access\-userv}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccessuserv}}
}
% \glsaccessuservi
\gcmd{gls\-access\-uservi}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{if accessibility support was enabled when
\sty{glossaries-extra} was loaded (\opt{accsupp}) this will
display the value of the \gloskey{user6} key with the accessibility
support enabled for that key (\gloskey{user6access}). If there is
no accessibility support, this just uses \gls{glsentryuservi}}
}
% \Glsaccessuservi
\gcmd{Gls\-access\-uservi}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the \idx{sentencecase} version of \gls{glsaccessuservi}}
}
% \GLSaccessuservi
\gcmd{GLS\-access\-uservi}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the \idx{allcaps} version of \gls{glsaccessuservi}}
}
% \glsaccessfmtname
\gcmd{gls\-access\-fmt\-name}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccessname} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtname
\gcmd{Gls\-access\-fmt\-name}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccessname} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtname
\gcmd{GLS\-access\-fmt\-name}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccessname} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmttext
\gcmd{gls\-access\-fmt\-text}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccesstext} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmttext
\gcmd{Gls\-access\-fmt\-text}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccesstext} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmttext
\gcmd{GLS\-access\-fmt\-text}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccesstext} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtplural
\gcmd{gls\-access\-fmt\-plural}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccessplural} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtplural
\gcmd{Gls\-access\-fmt\-plural}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccessplural} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtplural
\gcmd{GLS\-access\-fmt\-plural}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccessplural} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtfirst
\gcmd{gls\-access\-fmt\-first}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccessfirst} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtfirst
\gcmd{Gls\-access\-fmt\-first}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccessfirst} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtfirst
\gcmd{GLS\-access\-fmt\-first}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccessfirst} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtfirstplural
\gcmd{gls\-access\-fmt\-first\-plural}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccessfirstplural} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtfirstplural
\gcmd{Gls\-access\-fmt\-first\-plural}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccessfirstplural} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtfirstplural
\gcmd{GLS\-access\-fmt\-first\-plural}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccessfirstplural} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtsymbol
\gcmd{gls\-access\-fmt\-symbol}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccesssymbol} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtsymbol
\gcmd{Gls\-access\-fmt\-symbol}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccesssymbol} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtsymbol
\gcmd{GLS\-access\-fmt\-symbol}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccesssymbol} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtsymbolplural
\gcmd{gls\-access\-fmt\-symbol\-plural}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccesssymbolplural} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtsymbolplural
\gcmd{Gls\-access\-fmt\-symbol\-plural}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccesssymbolplural} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtsymbolplural
\gcmd{GLS\-access\-fmt\-symbol\-plural}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccesssymbolplural} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtdesc
\gcmd{gls\-access\-fmt\-desc}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccessdesc} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtdesc
\gcmd{Gls\-access\-fmt\-desc}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccessdesc} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtdesc
\gcmd{GLS\-access\-fmt\-desc}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccessdesc} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtdescplural
\gcmd{gls\-access\-fmt\-desc\-plural}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccessdescplural} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtdescplural
\gcmd{Gls\-access\-fmt\-desc\-plural}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccessdescplural} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtdescplural
\gcmd{GLS\-access\-fmt\-desc\-plural}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccessdescplural} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtshort
\gcmd{gls\-access\-fmt\-short}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccessshort} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtshort
\gcmd{Gls\-access\-fmt\-short}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccessshort} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtshort
\gcmd{GLS\-access\-fmt\-short}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccessshort} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtshortpl
\gcmd{gls\-access\-fmt\-short\-pl}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccessshortpl} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtshortpl
\gcmd{Gls\-access\-fmt\-short\-pl}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccessshortpl} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtshortpl
\gcmd{GLS\-access\-fmt\-short\-pl}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccessshortpl} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtlong
\gcmd{gls\-access\-fmt\-long}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccesslong} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtlong
\gcmd{Gls\-access\-fmt\-long}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccesslong} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtlong
\gcmd{GLS\-access\-fmt\-long}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccesslong} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtlongpl
\gcmd{gls\-access\-fmt\-long\-pl}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccesslongpl} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtlongpl
\gcmd{Gls\-access\-fmt\-long\-pl}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccesslongpl} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtlongpl
\gcmd{GLS\-access\-fmt\-long\-pl}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccesslongpl} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtuseri
\gcmd{gls\-access\-fmt\-useri}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccessuseri} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtuseri
\gcmd{Gls\-access\-fmt\-useri}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccessuseri} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtuseri
\gcmd{GLS\-access\-fmt\-useri}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccessuseri} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtuserii
\gcmd{gls\-access\-fmt\-userii}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccessuserii} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtuserii
\gcmd{Gls\-access\-fmt\-userii}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccessuserii} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtuserii
\gcmd{GLS\-access\-fmt\-userii}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccessuserii} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtuseriii
\gcmd{gls\-access\-fmt\-useriii}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccessuseriii} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtuseriii
\gcmd{Gls\-access\-fmt\-useriii}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccessuseriii} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtuseriii
\gcmd{GLS\-access\-fmt\-useriii}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccessuseriii} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtuseriv
\gcmd{gls\-access\-fmt\-useriv}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccessuseriv} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtuseriv
\gcmd{Gls\-access\-fmt\-useriv}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccessuseriv} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtuseriv
\gcmd{GLS\-access\-fmt\-useriv}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccessuseriv} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtuserv
\gcmd{gls\-access\-fmt\-userv}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccessuserv} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtuserv
\gcmd{Gls\-access\-fmt\-userv}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccessuserv} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtuserv
\gcmd{GLS\-access\-fmt\-userv}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccessuserv} but formats the displayed
text with \gls{GLSfmtfield}}
}
% \glsaccessfmtuservi
\gcmd{gls\-access\-fmt\-uservi}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{glsaccessuservi} but formats the displayed
text with \gls{glsfmtfield}}
}
% \Glsaccessfmtuservi
\gcmd{Gls\-access\-fmt\-uservi}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{Glsaccessuservi} but formats the displayed
text with \gls{Glsfmtfield}}
}
% \GLSaccessfmtuservi
\gcmd{GLS\-access\-fmt\-uservi}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{insert}\margm{cs}\margm{entry-label}}
\desc{similar to \gls{GLSaccessuservi} but formats the displayed
text with \gls{GLSfmtfield}}
}
% COMMANDS: HEADINGS AND CAPTIONS
% \glsxtrRevertMarks
\gcmd{gls\-xtr\-Revert\-Marks}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{restores \gls{markright}, \gls{markboth} and
\gls{@starttoc} to their previous definitions}
\field{seealso}{glsxtrRevertTocMarks}
}
% \glsxtrRevertTocMarks
\gcmd{gls\-xtr\-Revert\-Toc\-Marks}
{
\providedby{\sty{glossaries-extra} v1.31+}
\desc{restores \gls{@starttoc} to its previous definition}
\field{seealso}{glsxtrRevertMarks}
}
% \glsxtrifinmark
\gcmd{glsxtrifinmark}
{
\providedby{\sty{glossaries-extra} v1.07+}
\syntax{\margm{true}\margm{false}}
\desc{does \meta{true} if within \gls{markright},
\gls{markboth} or \gls{@starttoc} otherwise does \meta{false}}
}
% \@glsxtrinmark
\gcmd{@gls\-xtr\-in\-mark}
{
\providedby{\sty{glossaries-extra} v1.07+}
\desc{redefines \gls{glsxtrifinmark} to do its first argument
(\meta{true})}
}
% \@glsxtrnotinmark
\gcmd{@gls\-xtr\-not\-in\-mark}
{
\providedby{\sty{glossaries-extra} v1.07+}
\desc{redefines \gls{glsxtrifinmark} to do its first argument
(\meta{true})}
}
% \@glsxtr@org@markboth
\gcmd{@gls\-xtr\-@org\-@mark\-both}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{left text}\margm{right text}}
\desc{set to the definition of \gls{markboth} when
\sty{glossaries-extra} loads}
}
% \@glsxtr@org@markright
\gcmd{@gls\-xtr\-@org\-@mark\-right}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{text}}
\desc{set to the definition of \gls{markright} when
\sty{glossaries-extra} loads}
}
% \@glsxtr@org@@starttoc
\gcmd{@gls\-xtr\-@org\-@@start\-toc}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{toc}}
\desc{set to the definition of \gls{@starttoc} when
\sty{glossaries-extra} loads}
}
% \glsxtrmarkhook
\gcmd{gls\-xtr\-mark\-hook}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{hook that's performed at the start of \gls{markright},
\gls{markboth} and \gls{@starttoc} to redefine commands that
need to change when they occur within page headers or
contents. This must be counteracted with \gls{glsxtrrestoremarkhook}
afterwards}
}
% \glsxtrrestoremarkhook
\gcmd{gls\-xtr\-restore\-mark\-hook}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{counteracts \gls{glsxtrmarkhook}}
}
% \glsxtrtitleorpdforheading
\gcmd{gls\-xtr\-title\-or\-pdf\-or\-heading}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{title}\margm{PDF bookmarks}\margm{heading}}
\desc{does the applicable argument depending on whether the
command occurs within a title\slash caption or PDF bookmark or
heading}
}
% \glsxtrifheaduc
\gcmd{gls\-xtr\-if\-head\-uc}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{if the category associated with the entry given by
\meta{entry-label} has the \catattr{headuc} attribute set to
\code{true} this does \meta{true} otherwise it does \meta{false}}
}
% \glsxtrifintoc
\gcmd{gls\-xtr\-if\-in\-toc}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{true}\margm{false}}
\desc{normally just expands to \meta{false} but \gls{@starttoc}
is redefined to temporarily set this macro to expand to \meta{true}
instead. Will always expand to \meta{false} if \gls{glsxtrRevertTocMarks}
or \gls{glsxtrRevertMarks} are used to revert \gls{@starttoc}
to its former definition}
}
% \glsfmtshort
\gcmd{gls\-fmt\-short}
{
%\providedby{\sty{glossaries-extra} v0.2+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted short form}
}
% \Glsfmtshort
\gcmd{Gls\-fmt\-short}
{
%\providedby{\sty{glossaries-extra} v0.2+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{sentencecase} short form}
}
% \GLSfmtshort
\gcmd{GLS\-fmt\-short}
{
%\providedby{\sty{glossaries-extra} v0.2+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{allcaps} short form}
}
% \glsfmtshortpl
\gcmd{gls\-fmt\-short\-pl}
{
%\providedby{\sty{glossaries-extra} v0.2+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted short plural form}
}
% \Glsfmtshortpl
\gcmd{Gls\-fmt\-short\-pl}
{
%\providedby{\sty{glossaries-extra} v0.2+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{sentencecase} short plural form}
}
% \GLSfmtshortpl
\gcmd{GLS\-fmt\-short\-pl}
{
%\providedby{\sty{glossaries-extra} v0.2+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{allcaps} short plural form}
}
% \glsfmtlong
\gcmd{gls\-fmt\-long}
{
%\providedby{\sty{glossaries-extra} v0.2+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted long form}
}
% \Glsfmtlong
\gcmd{Gls\-fmt\-long}
{
%\providedby{\sty{glossaries-extra} v0.2+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{sentencecase} long form}
}
% \GLSfmtlong
\gcmd{GLS\-fmt\-long}
{
%\providedby{\sty{glossaries-extra} v0.2+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{allcaps} long form}
}
% \glsfmtlongpl
\gcmd{gls\-fmt\-long\-pl}
{
%\providedby{\sty{glossaries-extra} v0.2+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted long plural form}
}
% \Glsfmtlongpl
\gcmd{Gls\-fmt\-long\-pl}
{
%\providedby{\sty{glossaries-extra} v0.2+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{sentencecase} long plural form}
}
% \GLSfmtlongpl
\gcmd{GLS\-fmt\-long\-pl}
{
%\providedby{\sty{glossaries-extra} v0.2+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{allcaps} long plural form}
}
% \glspdffmtfull
\gcmd{gls\-pdf\-fmt\-full}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{shortcut for \code{\gls{glsentrylong}\margm{entry-label}
(\gls{glsentryshort}\margm{entry-label})} for use in PDF
bookmarks or other text-only contexts}
}
% \glspdffmtfullpl
\gcmd{gls\-pdf\-fmt\-full\-pl}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{shortcut for \code{\gls{glsentrylongpl}\margm{entry-label}
(\gls{glsentryshortpl}\margm{entry-label})} for use in PDF
bookmarks or other text-only contexts}
}
% \glsfmtfull
\gcmd{gls\-fmt\-full}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{designed for use in section headings or captions, this
expands to just \code{\gls{glspdffmtfull}\margm{entry-label}}
in PDF bookmarks, otherwise it
expands to \code{\gls{glsxtrtitlefull}\margm{entry-label}}}
}
% \Glsfmtfull
\gcmd{Gls\-fmt\-full}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{designed for use in section headings or captions, this
expands to just \code{\gls{glspdffmtfull}\margm{entry-label}}
in PDF bookmarks (no case-change), otherwise it
expands to \code{\gls{Glsxtrtitlefull}\margm{entry-label}}}
}
% \GLSfmtfull
\gcmd{GLS\-fmt\-full}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{designed for use in section headings or captions, this
expands to just \code{\gls{glspdffmtfull}\margm{entry-label}}
in PDF bookmarks (no case-change), otherwise it
expands to \code{\gls{GLSxtrtitlefull}\margm{entry-label}}}
}
% \glsfmtfullpl
\gcmd{gls\-fmt\-full\-pl}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{designed for use in section headings or captions, this
expands to just \code{\gls{glspdffmtfullpl}\margm{entry-label}}
in PDF bookmarks, otherwise it
expands to \code{\gls{glsxtrtitlefullpl}\margm{entry-label}}}
}
% \Glsfmtfullpl
\gcmd{Gls\-fmt\-full\-pl}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{designed for use in section headings or captions, this
expands to just \code{\gls{glspdffmtfullpl}\margm{entry-label}}
in PDF bookmarks (no case-change), otherwise it
expands to \code{\gls{Glsxtrtitlefullpl}\margm{entry-label}}}
}
% \GLSfmtfullpl
\gcmd{GLS\-fmt\-full\-pl}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{designed for use in section headings or captions, this
expands to just \code{\gls{glspdffmtfullpl}\margm{entry-label}}
in PDF bookmarks (no case-change), otherwise it
expands to \code{\gls{GLSxtrtitlefullpl}\margm{entry-label}}}
}
% \glsfmtname
\gcmd{gls\-fmt\-name}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \gloskey{name}}
}
% \Glsfmtname
\gcmd{Gls\-fmt\-name}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{sentencecase} \gloskey{name}}
}
% \GLSfmtname
\gcmd{GLS\-fmt\-name}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{allcaps} \gloskey{name}}
}
% \glsfmttext
\gcmd{gls\-fmt\-text}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \gloskey{text}}
}
% \Glsfmttext
\gcmd{Gls\-fmt\-text}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{sentencecase} \gloskey{text}}
}
% \GLSfmttext
\gcmd{GLS\-fmt\-text}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{allcaps} \gloskey{text}}
}
% \glsfmtplural
\gcmd{gls\-fmt\-plural}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \gloskey{plural}}
}
% \Glsfmtplural
\gcmd{Gls\-fmt\-plural}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{sentencecase} \gloskey{plural}}
}
% \GLSfmtplural
\gcmd{GLS\-fmt\-plural}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{allcaps} \gloskey{plural}}
}
% \glsfmtfirst
\gcmd{gls\-fmt\-first}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \gloskey{first}}
}
% \Glsfmtfirst
\gcmd{Gls\-fmt\-first}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{sentencecase} \gloskey{first}}
}
% \GLSfmtfirst
\gcmd{GLS\-fmt\-first}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{allcaps} \gloskey{first}}
}
% \glsfmtfirstpl
\gcmd{gls\-fmt\-firstpl}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \gloskey{firstplural}}
}
% \Glsfmtfirstpl
\gcmd{Gls\-fmt\-firstpl}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{sentencecase} \gloskey{firstplural}}
}
% \GLSfmtfirstpl
\gcmd{GLS\-fmt\-firstpl}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{for use within captions or section titles to display the
formatted \idx{allcaps} \gloskey{firstplural}}
}
% COMMANDS: INNER HEAD AND TITLE
% \glsxtrtitleopts
\gcmd{gls\-xtr\-title\-opts}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{expands to the options that commands like
\gls{glsfmtshort} should use in the title or caption within the
document text}
}
% \glsxtrheadshort
\gcmd{gls\-xtr\-head\-short}
{
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the behaviour of \gls{glsfmtshort} when it occurs in a
page header}
}
% \glsxtrtitleshort
\gcmd{gls\-xtr\-title\-short}
{
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the normal behaviour of \gls{glsfmtshort}}
}
% \Glsxtrheadshort
\gcmd{Gls\-xtr\-head\-short}
{
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the behaviour of \gls{Glsfmtshort} when it occurs in a
page header}
}
% \Glsxtrtitleshort
\gcmd{Gls\-xtr\-title\-short}
{
%\providedby{\sty{glossaries-extra} v0.5.1+}
\syntax{\margm{entry-label}}
\desc{the normal behaviour of \gls{Glsfmtshort}}
}
% \GLSxtrheadshort
\gcmd{GLS\-xtr\-head\-short}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the behaviour of \gls{GLSfmtshort} when it occurs in a
page header}
}
% \GLSxtrtitleshort
\gcmd{GLS\-xtr\-title\-short}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{the normal behaviour of \gls{GLSfmtshort}}
}
% \glsxtrheadshortpl
\gcmd{gls\-xtr\-head\-short\-pl}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the behaviour of \gls{glsfmtshortpl} when it occurs in a
page header}
}
% \glsxtrtitleshortpl
\gcmd{gls\-xtr\-title\-short\-pl}
{
\providedby{\sty{glossaries-extra} v1.03+}
\syntax{\margm{entry-label}}
\desc{the normal behaviour of \gls{glsfmtshortpl}}
}
% \Glsxtrheadshortpl
\gcmd{Gls\-xtr\-head\-short\-pl}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{the behaviour of \gls{Glsfmtshortpl} when it occurs in a
page header}
}
% \Glsxtrtitleshortpl
\gcmd{Gls\-xtr\-title\-short\-pl}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{the normal behaviour of \gls{Glsfmtshortpl}}
}
% \GLSxtrheadshortpl
\gcmd{GLS\-xtr\-head\-short\-pl}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the behaviour of \gls{GLSfmtshortpl} when it occurs in a
page header}
}
% \GLSxtrtitleshortpl
\gcmd{GLS\-xtr\-title\-short\-pl}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{the normal behaviour of \gls{GLSfmtshortpl}}
}
% \glsxtrheadlong
\gcmd{gls\-xtr\-head\-long}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{the behaviour of \gls{glsfmtlong} when it occurs in a
page header}
}
% \glsxtrtitlelong
\gcmd{gls\-xtr\-title\-long}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{the normal behaviour of \gls{glsfmtlong}}
}
% \Glsxtrheadlong
\gcmd{Gls\-xtr\-head\-long}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{the behaviour of \gls{Glsfmtlong} when it occurs in a
page header}
}
% \Glsxtrtitlelong
\gcmd{Gls\-xtr\-title\-long}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{the normal behaviour of \gls{Glsfmtlong}}
}
% \GLSxtrheadlong
\gcmd{GLS\-xtr\-head\-long}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the behaviour of \gls{GLSfmtlong} when it occurs in a
page header}
}
% \GLSxtrtitlelong
\gcmd{GLS\-xtr\-title\-long}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{the normal behaviour of \gls{GLSfmtlong}}
}
% \glsxtrheadlongpl
\gcmd{gls\-xtr\-head\-long\-pl}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{the behaviour of \gls{glsfmtlongpl} when it occurs in a
page header}
}
% \glsxtrtitlelongpl
\gcmd{gls\-xtr\-title\-long\-pl}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{the normal behaviour of \gls{glsfmtlongpl}}
}
% \Glsxtrheadlongpl
\gcmd{Gls\-xtr\-head\-long\-pl}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{the behaviour of \gls{Glsfmtlongpl} when it occurs in a
page header}
}
% \Glsxtrtitlelongpl
\gcmd{Gls\-xtr\-title\-long\-pl}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{the normal behaviour of \gls{Glsfmtlongpl}}
}
% \GLSxtrheadlongpl
\gcmd{GLS\-xtr\-head\-long\-pl}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{the behaviour of \gls{GLSfmtlongpl} when it occurs in a
page header}
}
% \GLSxtrtitlelongpl
\gcmd{GLS\-xtr\-title\-long\-pl}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{the normal behaviour of \gls{GLSfmtlongpl}}
}
% \glsxtrheadfull
\gcmd{gls\-xtr\-head\-full}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's full form in the page header
(converts to \idx{allcaps} if \catattr{headuc} attribute is \code{true})}
\field{seealso}{glsfmtfull,glsxtrtitlefull}
}
% \glsxtrtitlefull
\gcmd{gls\-xtr\-title\-full}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's full form in the section title and
table of contents}
\field{seealso}{glsfmtfull,glsxtrheadfull}
}
% \glsxtrheadfullpl
\gcmd{gls\-xtr\-head\-full\-pl}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's full plural form in the page header
(converts to \idx{allcaps} if \catattr{headuc} attribute is \code{true})}
\field{seealso}{glsfmtfullpl,glsxtrtitlefullpl}
}
% \glsxtrtitlefullpl
\gcmd{gls\-xtr\-title\-full\-pl}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's full plural form in the section title and
table of contents}
\field{seealso}{glsfmtfullpl,glsxtrheadfullpl}
}
% \Glsxtrheadfull
\gcmd{Gls\-xtr\-head\-full}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \idx{sentencecase} full form in the page header
(converts to \idx{allcaps} if \catattr{headuc} attribute is \code{true})}
\field{seealso}{Glsfmtfull,Glsxtrtitlefull}
}
% \Glsxtrtitlefull
\gcmd{Gls\-xtr\-title\-full}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \idx{sentencecase} full form in the section title and
table of contents}
\field{seealso}{Glsfmtfull,Glsxtrheadfull}
}
% \GLSxtrheadfull
\gcmd{GLS\-xtr\-head\-full}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \idx{allcaps} full form in the page header}
\field{seealso}{GLSfmtfull,GLSxtrtitlefull}
}
% \GLSxtrtitlefull
\gcmd{GLS\-xtr\-title\-full}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \idx{allcaps} full form in the section title and
table of contents}
\field{seealso}{GLSfmtfull}
}
% \Glsxtrheadfullpl
\gcmd{Gls\-xtr\-head\-full\-pl}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \idx{sentencecase} full plural form in the page header
(converts to \idx{allcaps} if \catattr{headuc} attribute is \code{true})}
\field{seealso}{Glsfmtfullpl,Glsxtrtitlefullpl}
}
% \Glsxtrtitlefullpl
\gcmd{Gls\-xtr\-title\-full\-pl}
{
\providedby{\sty{glossaries-extra} v1.02+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \idx{sentencecase} full plural form in the section title and
table of contents}
\field{seealso}{Glsfmtfullpl,Glsxtrheadfullpl}
}
% \GLSxtrheadfullpl
\gcmd{GLS\-xtr\-head\-full\-pl}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \idx{allcaps} full plural form in the
page header}
\field{seealso}{GLSfmtfullpl,GLSxtrtitlefullpl}
}
% \GLSxtrtitlefullpl
\gcmd{GLS\-xtr\-title\-full\-pl}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \idx{allcaps} full plural form in the section title and
table of contents}
\field{seealso}{GLSfmtfullpl}
}
% \glsxtrheadname
\gcmd{gls\-xtr\-head\-name}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's name in the page header
(converts to \idx{allcaps} if \catattr{headuc} attribute is \code{true})}
\field{seealso}{glsfmtname,glsxtrtitlename}
}
% \glsxtrtitlename
\gcmd{gls\-xtr\-title\-name}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's name in the section title and
table of contents}
\field{seealso}{glsfmtname,glsxtrheadname}
}
% \Glsxtrheadname
\gcmd{Gls\-xtr\-head\-name}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{sentencecase} entry's name in the page header
(converts to \idx{allcaps} if \catattr{headuc} attribute is \code{true})}
\field{seealso}{Glsfmtname,Glsxtrtitlename}
}
% \Glsxtrtitlename
\gcmd{Gls\-xtr\-title\-name}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{sentencecase} entry's name in the section title and
table of contents}
\field{seealso}{Glsfmtname,Glsxtrheadname}
}
% \GLSxtrheadname
\gcmd{GLS\-xtr\-head\-name}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{allcaps} entry's
\gloskey{name} \idx{field} in the page header}
\field{seealso}{GLSfmtname,GLSxtrtitlename}
}
% \GLSxtrtitlename
\gcmd{GLS\-xtr\-title\-name}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{allcaps} entry's name in the section title and
table of contents}
\field{seealso}{GLSfmtname,GLSxtrheadname}
}
% \glsxtrheadtext
\gcmd{gls\-xtr\-head\-text}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \gloskey{text} \idx{field} in the page header
(converts to \idx{allcaps} if \catattr{headuc} attribute is \code{true})}
\field{seealso}{glsfmttext,glsxtrtitletext}
}
% \glsxtrtitletext
\gcmd{gls\-xtr\-title\-text}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \gloskey{text} \idx{field} in the section title and
table of contents}
\field{seealso}{glsfmttext,glsxtrheadtext}
}
% \Glsxtrheadtext
\gcmd{Gls\-xtr\-head\-text}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{sentencecase} entry's
\gloskey{text} \idx{field} in the page header
(converts to \idx{allcaps} if \catattr{headuc} attribute is \code{true})}
\field{seealso}{Glsfmttext,Glsxtrtitletext}
}
% \Glsxtrtitletext
\gcmd{Gls\-xtr\-title\-text}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{sentencecase} entry's
\gloskey{text} \idx{field} in the section title and
table of contents}
\field{seealso}{Glsfmttext,Glsxtrheadtext}
}
% \GLSxtrheadtext
\gcmd{GLS\-xtr\-head\-text}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{allcaps} entry's
\gloskey{text} \idx{field} in the page header}
\field{seealso}{GLSfmttext,GLSxtrtitletext}
}
% \GLSxtrtitletext
\gcmd{GLS\-xtr\-title\-text}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{allcaps} entry's \gloskey{text} \idx{field}
in the section title and table of contents}
\field{seealso}{GLSfmttext,GLSxtrheadtext}
}
% \glsxtrheadplural
\gcmd{gls\-xtr\-head\-plural}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \gloskey{plural} \idx{field} in the page header
(converts to \idx{allcaps} if \catattr{headuc} attribute is \code{true})}
\field{seealso}{glsfmtplural,glsxtrtitleplural}
}
% \glsxtrtitleplural
\gcmd{gls\-xtr\-title\-plural}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \gloskey{plural} \idx{field} in the section title and
table of contents}
\field{seealso}{glsfmtplural,glsxtrheadplural}
}
% \Glsxtrheadplural
\gcmd{Gls\-xtr\-head\-plural}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{sentencecase} entry's
\gloskey{plural} \idx{field} in the page header
(converts to \idx{allcaps} if \catattr{headuc} attribute is \code{true})}
\field{seealso}{Glsfmtplural,Glsxtrtitleplural}
}
% \Glsxtrtitleplural
\gcmd{Gls\-xtr\-title\-plural}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{sentencecase} entry's
\gloskey{plural} \idx{field} in the section title and
table of contents}
\field{seealso}{Glsfmtplural,Glsxtrheadplural}
}
% \GLSxtrheadplural
\gcmd{GLS\-xtr\-head\-plural}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{allcaps} entry's
\gloskey{plural} \idx{field} in the page header}
\field{seealso}{GLSfmtplural,GLSxtrtitleplural}
}
% \GLSxtrtitleplural
\gcmd{GLS\-xtr\-title\-plural}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{allcaps} entry's \gloskey{plural} \idx{field} in the section title and
table of contents}
\field{seealso}{GLSfmtplural,GLSxtrheadplural}
}
% \glsxtrheadfirst
\gcmd{gls\-xtr\-head\-first}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \gloskey{first} \idx{field} in the page header
(converts to \idx{allcaps} if \catattr{headuc} attribute is \code{true})}
\field{seealso}{glsfmtfirst,glsxtrtitlefirst}
}
% \glsxtrtitlefirst
\gcmd{gls\-xtr\-title\-first}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \gloskey{first} \idx{field} in the section title and
table of contents}
\field{seealso}{glsfmtfirst,glsxtrheadfirst}
}
% \Glsxtrheadfirst
\gcmd{Gls\-xtr\-head\-first}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{sentencecase} entry's
\gloskey{first} \idx{field} in the page header
(converts to \idx{allcaps} if \catattr{headuc} attribute is \code{true})}
\field{seealso}{Glsfmtfirst,Glsxtrtitlefirst}
}
% \Glsxtrtitlefirst
\gcmd{Gls\-xtr\-title\-first}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{sentencecase} entry's
\gloskey{first} \idx{field} in the section title and
table of contents}
\field{seealso}{Glsfmtfirst,Glsxtrheadfirst}
}
% \GLSxtrheadfirst
\gcmd{GLS\-xtr\-head\-first}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{allcaps} entry's
\gloskey{first} \idx{field} in the page header}
\field{seealso}{GLSfmtfirst,GLSxtrtitlefirst}
}
% \GLSxtrtitlefirst
\gcmd{GLS\-xtr\-title\-first}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{allcaps} entry's \gloskey{first} \idx{field} in the section title and
table of contents}
\field{seealso}{GLSfmtfirst,GLSxtrheadfirst}
}
% \glsxtrheadfirstplural
\gcmd{gls\-xtr\-head\-firstplural}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \gloskey{firstplural} \idx{field} in the page header
(converts to \idx{allcaps} if \catattr{headuc} attribute is \code{true})}
\field{seealso}{glsfmtfirstpl,glsxtrtitlefirstplural}
}
% \glsxtrtitlefirstplural
\gcmd{gls\-xtr\-title\-firstplural}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the entry's \gloskey{firstplural} \idx{field} in the section title and
table of contents}
\field{seealso}{glsfmtfirstpl,glsxtrheadfirstplural}
}
% \Glsxtrheadfirstplural
\gcmd{Gls\-xtr\-head\-firstplural}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{sentencecase} entry's
\gloskey{firstplural} \idx{field} in the page header
(converts to \idx{allcaps} if \catattr{headuc} attribute is \code{true})}
\field{seealso}{Glsfmtfirstpl,Glsxtrtitlefirstplural}
}
% \Glsxtrtitlefirstplural
\gcmd{Gls\-xtr\-title\-firstplural}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{sentencecase} entry's
\gloskey{firstplural} \idx{field} in the section title and
table of contents}
\field{seealso}{Glsfmtfirstpl,Glsxtrheadfirstplural}
}
% \GLSxtrheadfirstplural
\gcmd{GLS\-xtr\-head\-first\-plural}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{allcaps} entry's
\gloskey{firstplural} \idx{field} in the page header}
\field{seealso}{GLSfmtfirstpl,GLSxtrtitlefirstplural}
}
% \GLSxtrtitlefirstplural
\gcmd{GLS\-xtr\-title\-firstplural}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{used to display the \idx{allcaps} entry's \gloskey{firstplural} \idx{field} in the section title and
table of contents}
\field{seealso}{GLSfmtfirstpl,GLSxtrheadfirstplural}
}
% COMMANDS: FORMATTING
% \glsxtrassignfieldfont
\gcmd{gls\-xtr\-assign\-field\-font}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{entry-label}}
\desc{used by the \idx{glstextlike} commands to initialise the
formatting commands required for the given entry}
}
% \glssetabbrvfmt
\gcmd{gls\-set\-abbrv\-fmt}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{category}}
\desc{implements the \meta{display definitions} code for the
abbreviation style associated with the given category}
}
% \GlsXtrUseAbbrStyleSetup
\gcmd{Gls\-Xtr\-Use\-Abbr\-Style\-Set\-up}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{style-name}}
\desc{implements the \meta{setup} code for the given
abbreviation style}
}
% \GlsXtrUseAbbrStyleFmts
\gcmd{Gls\-Xtr\-Use\-Abbr\-Style\-Fmts}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{style-name}}
\desc{implements the \meta{display definitions} code for the given
abbreviation style}
}
% \glsuseabbrvfont
\gcmd{gls\-use\-abbrv\-font}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{style-name}\margm{text}}
\desc{formats \meta{text} according to the short format for the
given abbreviation style}
}
% \glsuselongfont
\gcmd{gls\-use\-long\-font}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{style-name}\margm{text}}
\desc{formats \meta{text} according to the long format for the
given abbreviation style}
}
% \glsxtrgenabbrvfmt
\gcmd{gls\-xtr\-gen\-abbrv\-fmt}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{the display format used by \gls{glsentryfmt} for entries that have
the \gloskey{short} field set and have the \catattr{regular}
attribute set to \code{false}}
}
% \glsgenentryfmt
\gcmd{gls\-gen\-entry\-fmt}
{
\providedby{\sty{glossaries} v3.11a+}
\desc{the display format used by \gls{glsentryfmt} for regular entries}
}
% \glsentryfmt
\gcmd{gls\-entry\-fmt}
{
\providedby{\sty{glossaries} v3.11a+}
\desc{the default display format used by the \idx{glslike}
commands. This checks if the \gloskey{short} field has been
set for the current entry and, if set, initialises the
abbreviation formatting commands (with \gls{glssetabbrvfmt}).
This command will do \gls{glsgenentryfmt} (encapsulated with
\gls{glsxtrregularfont}) if the entry is considered a regular
entry (\gls{glsifregular}) or if the entry doesn't have the
\gloskey{short} field set. Otherwise it will do \gls{glsxtrgenabbrvfmt}
encapsulated with \gls{glsxtrabbreviationfont}}
}
% \glsxtrregularfont
\gcmd{gls\-xtr\-regular\-font}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{text}}
\desc{used by \gls{glsentryfmt} to encapsulate regular entries.
Also used by \gls{glsxtrassignfieldfont} for regular entries}
}
% \glsxtrabbreviationfont
\gcmd{gls\-xtr\-ab\-bre\-vi\-a\-tion\-font}
{
\providedby{\sty{glossaries-extra} v1.30+}
\syntax{\margm{text}}
\desc{used by \gls{glsentryfmt} to encapsulate non-regular entries
the have the \gloskey{short} field set}
}
% \defglsentryfmt
\gcmd{def\-gls\-entry\-fmt}
{
\providedby{\sty{glossaries} v3.11a+}
\providedby{\sty{glossaries}}
\syntax{\oargm{type}\margm{display}}
\desc{overrides the default display format (\gls{glsentryfmt})
for the given glossary. If \meta{type} is omitted,
\gls{glsdefaulttype} is assumed. This will make the
\idx{glslike} commands do \meta{display} for any entries that
have the \gloskey{type} field set to the given \meta{type}. If
you want to support any abbreviation styles, you need to include
\gls{glssetabbrvfmt} in \meta{display}. Non-regular abbreviation
styles are designed to work with \gls{glsxtrgenabbrvfmt}}
}
% \glslabel
\gcmd{gls\-label}
{
\providedby{\sty{glossaries}}
\desc{the current entry label, initialised by the \idx{glslike}
and \idx{glstextlike} commands. This command may be used
within associated hooks, entry display styles
(\gls{defglsentryfmt}), and the \idx{postlinkhook}}
}
% \glsinsert
\gcmd{gls\-insert}
{
\providedby{\sty{glossaries}}
\desc{the final \meta{insert} argument passed to the
\idx{glslike} commands (but not to the \idx{glstextlike} commands,
where the \meta{insert} is added to \gls{glscustomtext}). This command may be used
within associated hooks, entry display styles
(\gls{defglsentryfmt}), and the \idx{postlinkhook}}
\field{seealso}{glsxtrsaveinsert,glsxtrfullsaveinsert}
}
% \glscustomtext
\gcmd{gls\-custom\-text}
{
\providedby{\sty{glossaries}}
\desc{the custom text provided by \gls{glsdisp} or the
\idx{linktext} for the \idx{glstextlike} commands. This command may be used
within associated hooks, entry display styles
(\gls{defglsentryfmt}), and the \idx{postlinkhook}}
}
% \glsifplural
\gcmd{gls\-if\-plural}
{
\providedby{\sty{glossaries}}
\syntax{\margm{true}\margm{false}}
\desc{initialised by the \idx{glslike}
and \idx{glstextlike} commands, this expands to \meta{true} if
the calling command accesses a plural field (such as \gls{glspl} or
\gls{glsplural}) otherwise it expands to \meta{false}. This command may be used
within associated hooks, entry display styles
(\gls{defglsentryfmt}), and the \idx{postlinkhook}}
}
% \glscapscase
\gcmd{gls\-caps\-case}
{
\providedby{\sty{glossaries}}
\syntax{\margm{no change}\margm{sentence}\margm{all caps}}
\desc{initialised by the \idx{glslike}
and \idx{glstextlike} commands, this expands to \meta{no change} if
the calling command doesn't apply a case-change (such as \gls{gls} or
\gls{glstext}), to \meta{sentence} if the calling command
converts to \idx+{sentencecase} (such as \gls{Gls} or \gls{Glstext}),
or to \meta{all caps} if the calling command converts to
\idx+{allcaps} (such as \gls{GLS} or \gls{GLStext}). This command may be used
within associated hooks, entry display styles
(\gls{defglsentryfmt}), and the \idx{postlinkhook}}
}
% \glsxtrifallcaps
\gcmd{gls\-xtr\-if\-all\-caps}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{all caps}\margm{not all caps}}
\desc{shortcut for \code{\gls{glscapscase}\margm{not all caps}\margm{not all caps}\margm{all caps}}}
}
% \glsxtrifwasfirstuse
\gcmd{gls\-xtr\-if\-was\-first\-use}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{true}\margm{false}}
\desc{initialised by the \idx{glslike}
and \idx{glstextlike} commands, this expands to \meta{true} if
the calling command was considered the \idx{firstuse},
otherwise it expands to \meta{false}. This command may be used
within the \idx{postlinkhook} (where it's too late to test the
\idx{firstuseflag} with \gls{ifglsused})}
}
% \glsxtrifwasglslike
\gcmd{gls\-xtr\-if\-was\-gls\-like}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{true}\margm{false}}
\desc{initialised by the \idx{glslike}
and \idx{glstextlike} commands, this expands to \meta{true} if
the calling command was a \idx{glslike} command,
otherwise it expands to \meta{false}. This command may be used
within the \idx{postlinkhook}}
}
% \glsxtrifwasglslikeandfirstuse
\gcmd{gls\-xtr\-if\-was\-gls\-like\-and\-first\-use}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{true}\margm{false}}
\desc{a shortcut that nests \gls{glsxtrifwasglslike}
and \gls{glsxtrifwasfirstuse}. This does \meta{true}
if the calling command was both a \idx{glslike} command and
was considered the \idx{firstuse}}
}
% \glsxtrifwassubsequentuse
\gcmd{gls\-xtr\-if\-was\-subsequent\-use}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{true}\margm{false}}
\desc{a shortcut that nests \gls{glsxtrifwasglslike}
and \gls{glsxtrifwasfirstuse}. This does \meta{true}
if the calling command was a \idx{glslike} command but
was not considered the \idx{firstuse}}
}
% \glsxtrifwassubsequentorshort
\gcmd{gls\-xtr\-if\-was\-subsequent\-or\-short}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{true}\margm{false}}
\desc{expands to \meta{true} if the calling command was a
\idx{glslike} command and was the \idx{subsequentuse} or if
\gls{glsxtrcurrentfield} was set to \code{short}}
}
% \glsxtrcurrentfield
\gcmd{gls\-xtr\-current\-field}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{placeholder command for use in \idxpl{postlinkhook}. This
expands to empty if the calling command was one of the
\idx{glslike} commands or it was one of the \idx{inlinefullform}
commands, otherwise it will expand to the name of the key
associated with the \emph{singular} form of the command}
}
% \glsxtrassignlinktextfmt
\gcmd{gls\-xtr\-assign\-link\-text\-fmt}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{initialised by the \idx{glslike}
and \idx{glstextlike} commands, this contains the definitions of
\gls{glslabel}, \gls{glstextformat},
\gls{glsxtrgenentrytextfmt}}
}
% COMMANDS: CATEGORIES
% \glsifcategory
\gcmd{gls\-if\-category}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{entry-label}\margm{category}\margm{true}\margm{false}}
\desc{tests if the entry identified by \meta{entry-label} has
the \gloskey{category} set to \meta{category} (uses
\gls{ifglsfieldeq} for the test)}
}
% \glsifregularcategory
\gcmd{gls\-if\-regular\-category}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{category}\margm{true}\margm{false}}
\desc{does \meta{true} if the given category has the
\catattr{regular} attribute explicitly set to \code{true},
otherwise does \meta{false}}
}
% \glsifnotregularcategory
\gcmd{gls\-if\-not\-regular\-category}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{category}\margm{true}\margm{false}}
\desc{does \meta{true} if the given category has the
\catattr{regular} attribute explicitly set to \code{false},
otherwise does \meta{false}}
}
% \glsifregular
\gcmd{gls\-if\-regular}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the category for the given entry has the
\catattr{regular} attribute explicitly set to \code{true},
otherwise does \meta{false}}
}
% \glsifnotregular
\gcmd{gls\-if\-not\-regular}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the category for the given entry has the
\catattr{regular} attribute explicitly set to \code{false},
otherwise does \meta{false}}
}
% \glsforeachincategory
\gcmd{gls\-for\-each\-in\-category}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{glossary-types}\margm{category}\margm{glossary-cs}\margm{label-cs}\margm{body}}
\desc{iterates over all entry in the given list of
\idxpl{glossary} (or all non-\idxpl{ignoredglossary}, if the optional
argument is omitted) and performs \meta{body} for those entries that
have the \gloskey{category} set to \meta{category}. Within
\meta{body}, the current entry can be referenced with
\meta{label-cs} and the \idx{glossary} can be referenced with
\meta{glossary-cs}}
}
% \glsforeachwithattribute
\gcmd{gls\-for\-each\-with\-attribute}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\oargm{glossary-types}\margm{attribute-label}\margm{attribute-value}\margm{glossary-cs}\margm{label-cs}\margm{body}}
\desc{iterates over all entry in the given list of
\idxpl{glossary} (or all non-\idxpl{ignoredglossary}, if the optional
argument is omitted) and performs \meta{body} for those entries that
have the attribute given by \meta{attribute-label} set to
\meta{attribute-value}. Within
\meta{body}, the current entry can be referenced with
\meta{label-cs} and the \idx{glossary} can be referenced with
\meta{glossary-cs}}
}
% \glssetcategoryattribute
\gcmd{gls\-set\-category\-attribute}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{category}\margm{attribute}\margm{value}}
\desc{locally sets the given attribute to \meta{value} for the given
category}
}
% \glssetcategoriesattribute
\gcmd{gls\-set\-categories\-attribute}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{category list}\margm{attribute}\margm{value}}
\desc{globally sets the given attribute to \meta{value} for all the
categories in the comma-separated list \meta{category list}}
}
% \glssetcategoriesattributes
\gcmd{gls\-set\-categories\-attributes}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{category list}\margm{attribute list}\margm{value}}
\desc{globally sets each attribute in the comma separated
\meta{attribute list} to \meta{value} for each
category in the comma-separated list \meta{category list}}
}
% \glssetcategoryattributes
\gcmd{gls\-set\-category\-attributes}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{category}\margm{attribute list}\margm{value}}
\desc{globally sets each attribute in the comma separated
\meta{attribute list} to \meta{value} for the given \meta{category}}
}
% \glssetregularcategory
\gcmd{gls\-set\-regular\-category}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{category}}
\desc{locally sets the \catattr{regular} attribute to
\code{true} for the given category}
}
% \glsgetcategoryattribute
\gcmd{gls\-get\-category\-attribute}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{category}\margm{attribute}}
\desc{expands to the value of the given attribute for the given
category. Expands to nothing if the attribute hasn't been set}
}
% \glsunsetcategoryattribute
\gcmd{gls\-unset\-category\-attribute}%
{%
\providedby{\sty{glossaries-extra} v1.47+}
\syntax{\margm{category}\margm{attribute}}
\desc{locally unsets the given attribute for the given category}
}
% \glshascategoryattribute
\gcmd{gls\-has\-category\-attribute}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{category}\margm{attribute}\margm{true}\margm{false}}
\desc{tests if the given attribute has been set for the given
category (using \sty{etoolbox}['s] \gls{ifcsvoid})}
}
% \glssetattribute
\gcmd{gls\-set\-attribute}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{entry-label}\margm{attribute}\margm{value}}
\desc{locally sets the given attribute to \meta{value} for the
category associated with the entry identified by
\meta{entry-label}}
}
% \glsgetattribute
\gcmd{gls\-get\-attribute}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{entry-label}\margm{attribute}}
\desc{expands to the value of the given attribute for the
category associated with the entry identified by \meta{entry-label}.
Expands to nothing if the attribute hasn't been set}
}
% \glsxtrsetcategory
\gcmd{gls\-xtr\-set\-category}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{entry-labels}\margm{category-label}}
\desc{globally sets the \gloskey{category} field to the fully
expanded \meta{category-label} for each entry listed in
\meta{entry-labels}}
}
% \glsxtrsetcategoryforall
\gcmd{gls\-xtr\-set\-category\-for\-all}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{glossary-labels}\margm{category-label}}
\desc{globally sets the \gloskey{category} field to the fully
expanded \meta{category-label} for each entry belonging to the
\idxpl{glossary} listed in \meta{glossary-labels}}
}
% \glshasattribute
\gcmd{gls\-has\-attribute}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\syntax{\margm{entry-label}\margm{attribute}\margm{true}\margm{false}}
\desc{tests if the given attribute has been set for the category
associated with the entry identified by \meta{entry-label}
(using \sty{etoolbox}['s] \gls{ifcsvoid}). Does \meta{false}
if the entry hasn't been defined}
}
% \glsifcategoryattribute
\gcmd{gls\-if\-category\-attribute}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{category}\margm{attribute}\margm{value}\margm{true}\margm{false}}
\desc{tests if the given category has the given attribute set to
\meta{value}. Does \meta{true} if the attribute is
\meta{value} and \meta{false} otherwise. Does \meta{false} if there's
no such attribute for the given category}
}
% \glsifattribute
\gcmd{gls\-if\-attribute}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{entry-label}\margm{attribute}\margm{value}\margm{true}\margm{false}}
\desc{tests if the category associated with the entry identified
by \meta{entry-label} has the given attribute set to
\meta{value}. Does \meta{true} if the attribute is
\meta{value} and \meta{false} otherwise. Does \meta{false} if there's
no such attribute for the given category or if the entry hasn't
been defined}
}
% \glsifcategoryattributetrue
\gcmd{gls\-if\-category\-attribute\-true}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{category}\margm{attribute}\margm{true}\margm{false}}
\desc{tests if the given category has the given attribute set to
\code{true}. Does \meta{true} if the attribute is
\code{true} and \meta{false} otherwise. Does \meta{false} if there's
no such attribute for the given category}
}
% \glsifattributetrue
\gcmd{gls\-if\-attribute\-true}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{attribute}\margm{true}\margm{false}}
\desc{tests if the category associated with the entry given by
\meta{entry-label} has the given attribute set to
\code{true}. Does \meta{true} if the attribute is
\code{true} and \meta{false} otherwise. Does \meta{false} if there's
no such attribute for the given category or if the entry hasn't
been defined}
}
% \glsifcategoryattributehasitem
\gcmd{gls\-if\-category\-attribute\-has\-item}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{category}\margm{attribute}\margm{item}\margm{true}\margm{false}}
\desc{does \meta{true} if the category has the attribute (whose
value is a comma-separated list) contains the given item and \meta{false}
otherwise. Does \meta{false} if there's
no such attribute for the given category. The item and list are
expanded and passed to \sty{datatool}['s] \gls{DTLifinlist} to perform the test}
}
% \glsxtrchecknohyperfirst
\gcmd{gls\-xtr\-check\-no\-hyper\-first}
{
\providedby{\sty{glossaries-extra} v1.07+}
\syntax{\margm{entry-label}}
\desc{sets \glsoptval{hyper}{false} if the
\catattr{nohyperfirst} attribute is set}
}
% COMMANDS: INDEXING
% \glsignore
\gcmd{gls\-ignore}
{
\providedby{\sty{glossaries} v4.12+}
\syntax{\margm{text}}
\desc{does nothing. When used as a \idx{locationencap}, this
signifies to \app{bib2gls} that the entry is required but the
\location\ shouldn't be added to the \idx{locationlist}. With
other \idx{indexing} methods, this simply creates an invisible
\location}
}
% \glsxtrdowrglossaryhook
\gcmd{gls\-xtr\-do\-wr\-glossary\-hook}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{hook used whenever an entry is \indexed. Does nothing by default}
}
% \glsadd
\gcmd{gls\-add}
{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}\margm{entry-label}}
\desc{indexes the entry identified by \meta{entry-label}}
}
% \glsaddall
\gcmd{gls\-add\-all}
{%
\providedby{\sty{glossaries}}
\syntax{\oargm{options}}
\desc{iterates over all \idxpl{glossary} (or all those
listed in the \glsopt{types} option)
and \idxc{indexing}{indexes} each entry in the \idx{glossary}. The optional
argument \meta{options} are passed to \gls{glsadd}.
This command can't be used with \app{bib2gls}. Use the
\resourceoptval{selection}{all} \idx{resourceopt} instead}
}
% \glsaddallunused
\gcmd{gls\-add\-all\-unused}
{%
\providedby{\sty{glossaries} v3.08a+}
\syntax{\oargm{glossary types}}
\desc{iterates over all \idxpl{glossary} listed in
\meta{glossary types} and \idxc{indexing}{indexes} each entry
(with \glsoptval{format}{glsignore}) that hasn't been used.
This command can't be used with \app{bib2gls}. Use the
\resourceoptval{selection}{all} \idx{resourceopt} instead}
}
% \glsaddallunindexed
\gcmd{gls\-add\-all\-un\-indexed}
{%
\syntax{\oargm{glossary types}}
\providedby{\sty{glossaries-extra} v1.49+}
\desc{iterates over all \idxpl{glossary} listed in
\meta{glossary types} and \idxc{indexing}{indexes} each entry
(with \glsoptval{format}{glsignore}) that hasn't already been indexed.
This command can't be used with \app{bib2gls}. Use the
\resourceoptval{selection}{all} \idx{resourceopt} instead}
}
% \glsaddeach
\gcmd{gls\-add\-each}
{
\providedby{\sty{glossaries-extra} v1.31+}
\syntax{\oargm{options}\margm{entry label list}}
\desc{does \code{\gls{glsadd}\oargm{options}\margm{entry-label}} for each label
in the supplied comma-separated list}
}
% \glsstartrange
\gcmd{gls\-start\-range}
{
\providedby{\sty{glossaries-extra} v1.50+}
\syntax{\oargm{options}\margm{entry label list}}
\desc{essentially does
\code{\gls{glsaddeach}\oarg{\meta{options},\glsoptval{format}{\sym{startrange}\meta{encap}}}\margm{entry label
list}}
where \meta{encap} can either be provided by the \glsopt{format} key
in \meta{options} or will default to the format given in \gls{GlsXtrSetDefaultRangeFormat}}
}
% \glsendrange
\gcmd{gls\-end\-range}
{
\providedby{\sty{glossaries-extra} v1.50+}
\syntax{\oargm{options}\margm{entry label list}}
\desc{as \gls{glsstartrange} but with the end range marker
\sym{endrange}}
}
% \GlsXtrAutoAddOnFormat
\gcmd{Gls\-Xtr\-Auto\-Add\-On\-Format}
{
\providedby{\sty{glossaries-extra} v1.37+}
\syntax{\oargm{entry-label}\margm{format list}\margm{gls\-add options}}
\desc{identifies formats that should trigger an automatic
\gls{glsadd} by the \idx{glslike} and \idx{glstextlike}
commands}
}
% \glsxtrdoautoindexname
\gcmd{gls\-xtr\-do\-auto\-index\-name}
{
%\providedby{\sty{glossaries-extra} v0.5.3+}
\syntax{\margm{entry-label}\margm{attribute}}
\desc{used to automatically index (using \gls{glsxtrautoindex})
the entry's name, if the given attribute is set for the entry's category}
}
% \glsxtrautoindex
\gcmd{gls\-xtr\-auto\-index}
{
\providedby{\sty{glossaries-extra} v1.16+}
\initvalcs{index}
\desc{the indexing command used by by the auto-indexing feature}
}
% \glsxtrautoindexesc
\gcmd{gls\-xtr\-auto\-index\-esc}
{
\providedby{\sty{glossaries-extra} v1.36+}
\desc{escapes the sort value used by the auto-indexing feature}
}
% \glsxtrautoindexentry
\gcmd{gls\-xtr\-auto\-index\-entry}
{
\providedby{\sty{glossaries-extra} v1.16+}
\syntax{\margm{entry-label}}
\desc{expands to the \qt{actual} part for the auto-indexing feature}
}
% \glsxtrautoindexassignsort
\gcmd{gls\-xtr\-auto\-index\-assign\-sort}
{
\providedby{\sty{glossaries-extra} v1.16+}
\syntax{\margm{entry-label}}
\desc{used to assign the sort value for the auto-indexing feature}
}
% \GlsXtrEnableIndexFormatOverride
\gcmd{Gls\-Xtr\-Enable\-Index\-Format\-Override}
{
%\providedby{\sty{glossaries-extra}}
\desc{allows the \glsopt{format} key to override the attribute value}
\note{preamble only}
}
% \GlsXtrSetActualChar
\gcmd{Gls\-Xtr\-Set\-Actual\-Char}
{
%\providedby{\sty{glossaries-extra}}
\syntax{\margm{character}}
\desc{sets the \qt{actual character} for the auto-indexing feature}
\note{preamble only}
}
% \GlsXtrSetEncapChar
\gcmd{Gls\-Xtr\-Set\-Encap\-Char}
{
%\providedby{\sty{glossaries-extra}}
\syntax{\margm{character}}
\desc{sets the \qt{encap character} for the auto-indexing feature}
\note{preamble only}
}
% \GlsXtrSetLevelChar
\gcmd{Gls\-Xtr\-Set\-Level\-Char}
{
%\providedby{\sty{glossaries-extra}}
\syntax{\margm{character}}
\desc{sets the \qt{level character} for the auto-indexing feature}
\note{preamble only}
}
% \GlsXtrSetEscChar
\gcmd{Gls\-Xtr\-Set\-Esc\-Char}
{
%\providedby{\sty{glossaries-extra}}
\syntax{\margm{character}}
\desc{sets the \qt{escape character} for the auto-indexing feature}
\note{preamble only}
}
% \glssee
\gcmd{gls\-see}
{%
\providedby{\sty{glossaries} v1.17+}
\syntax{\oargm{tag}\margm{entry-label}\margm{xr-list}}
\desc{indexes the entry identified by \meta{entry-label} as a
general cross-reference to the entries identified in the comma-separated
list \meta{xr-list}. The optional argument is the textual tag
that's inserted before the cross-reference list and defaults to
\gls{seename}}
\field{seealso}{glsxtrindexseealso}
}
% \glsseeformat
\gcmd{gls\-see\-format}
{
\providedby{\sty{glossaries} v1.17+}
\syntax{\oargm{tag}\margm{xr-list}\margm{location}}
\desc{used to format the \gloskey{see} cross-reference in the
\idx{locationlist}. This requires a \location\ argument for
\app{makeindex} even though it isn't required. The default
definition is \code{\csfmt{emph}\margm{tag} \gls{glsseelist}\margm{xr-list}}}
}
% \glsseelist
\gcmd{gls\-see\-list}
{
\providedby{\sty{glossaries} v1.17+}
\syntax{\margm{csv-list}}
\desc{iterates over a comma-separated list of entry labels
\meta{csv-list} and formats them. Each label in the list is
encapsulated with \gls{glsseeitem} (or \gls{mglsseeitem}, the
label corresponds to a multi-entry). The separators are
\gls{glsseelastsep} (between the penultimate and last items)
and \gls{glsseesep} (between all the other items). With
\sty{glossaries-extra}, the first label is encapsulated with
\gls{glsseefirstitem} (or \gls{mglsseefirstitem}) and the final separator for a list
consisting of at least three items is given by
\gls{glsseelastoxfordsep}}
\field{seealso}{glsxtrseelist}
}
% \glsseeitem
\gcmd{gls\-see\-item}
{
\providedby{\sty{glossaries} v1.17+}
\syntax{\margm{entry-label}}
\desc{used by \gls{glsseelist} to format each entry}
\field{seealso}{glsseefirstitem}
}
% \glsseeitemformat
\gcmd{gls\-see\-item\-format}
{
\providedby{\sty{glossaries} v3.0+}
\syntax{\margm{entry-label}}
\desc{used by \gls{glsseeitem} to produce the hyperlink text}
}
% \glsseefirstitem
\gcmd{gls\-see\-first\-item}
{
\providedby{\sty{glossaries-extra} v1.47+}
\syntax{\margm{entry-label}}
\desc{used by \gls{glsseelist} to format the first entry}
\field{seealso}{glsseeitem}
}
% \glsseesep
\gcmd{gls\-see\-sep}
{
\providedby{\sty{glossaries} v1.17+}
\initval{{,\textvisiblespace}}
\desc{used by \gls{glsseelist} as a separator between each entry
except the last pair}
\field{seealso}{glsseelastsep,glsseelastoxfordsep}
}
% \glsseelastsep
\gcmd{gls\-see\-last\-sep}
{
\providedby{\sty{glossaries} v1.17+}
\desc{used by \gls{glsseelist} as a separator between
penultimate and final entry in the list}
\field{seealso}{glsseelastsep,glsseelastoxfordsep}
}
% \glsseelastoxfordsep
\gcmd{gls\-see\-last\-oxford\-sep}
{
\providedby{\sty{glossaries-extra} v1.47+}
\desc{used by \gls{glsseelist} as a separator between
penultimate and final entry in the list if there are at least
three entries in the list}
\field{seealso}{glsseelastsep,glsseelastoxfordsep}
}
% \andname
\gcmd{and\-name}
{
\initvalcs{amp}
\desc{used by \gls{glsseelastsep} (provided by \sty{glossaries}
if not already defined)}
}
% \glsxtrseelist
\gcmd{glsxtrseelist}
{
\providedby{\sty{glossaries-extra} v1.16+}
\syntax{\margm{csv-list}}
\desc{fully expands \meta{csv-list} and passes it to
\gls{glsseelist}}
}
% \glsxtrtaggedlist
\gcmd{gls\-xtr\-tagged\-list}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{singular tag}\margm{plural tag}\margm{label prefix}\margm{csv-list}}
\desc{similar to \gls{glsseelist}, this will start the list with
\meta{singular tag} if the list only contains one element and
\meta{plural tag} if the list contains more than one element.
Each element is prefixed with \meta{label prefix}. The tag is
separated from the start of the list with
\gls{glsxtrtaggedlistsep}. The actual list separators as as for
\gls{glsseelist}. The \meta{csv-list} is expanded before being
iterated over. Does nothing if \meta{csv-list} is empty}
}
% \glsxtrtaggedlistsep
\gcmd{gls\-xtr\-tagged\-list\-sep}
{
\providedby{\sty{glossaries-extra} v1.49+}
\initvalcs{space}
\desc{separator used by \gls{glsxtrtaggedlist} between the tag and the list}
}
% \glsxtrusesee
\gcmd{gls\-xtr\-use\-see}
{
\providedby{\sty{glossaries-extra} v1.06+}
\syntax{\margm{entry-label}}
\desc{if the entry given by \meta{entry-label} has the
\gloskey{see} field set, this will display the cross reference
according to \gls{glsxtruseseeformat}}
\field{seealso}{glsxtrusealias,glsxtruseseealso,glsxtrseelists}
}
% \glsxtrusealias
\gcmd{gls\-xtr\-use\-alias}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{entry-label}}
\desc{if the entry given by \meta{entry-label} has the
\gloskey{alias} field set, this will display the cross reference
according to \gls{glsxtruseseeformat}}
\field{seealso}{glsxtrusesee,glsxtruseseealso,glsxtrseelists}
}
% \glsxtruseseealso
\gcmd{gls\-xtr\-use\-see\-also}
{
\providedby{\sty{glossaries-extra} v1.16+}
\syntax{\margm{entry-label}}
\desc{if the entry given by \meta{entry-label} has the
\gloskey{seealso} field set, this will display the cross reference
according to \gls{glsxtruseseealsoformat}}
\field{seealso}{glsxtrusesee,glsxtrusealias,glsxtrseelists}
}
% \glsxtrseelists
\gcmd{gls\-xtr\-see\-lists}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{if the entry given by \meta{entry-label} has the
\gloskey{see}, \gloskey{seealso} or \gloskey{alias} fields set,
this will display the cross reference
according to \gls{glsxtruseseeformat} (for \gloskey{see} and
\gloskey{alias}) or \gls{glsxtruseseealsoformat} (for
\gloskey{seealso}). If any of these fields are set, the list is
encapsulated with \gls{glsxtrseelistsencap}}
\field{seealso}{glsxtrseelistsencap,glsxtrseelistsdelim}
}
% \glsxtrseelistsencap
\gcmd{gls\-xtr\-see\-lists\-encap}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{content}}
\desc{used by \gls{glsxtrseelists} to encapsulate the lists}
}
% \glsxtrseelistsdelim
\gcmd{gls\-xtr\-see\-lists\-delim}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{used by \gls{glsxtrseelists} to as separator between sub-lists}
}
% \glsxtruseseeformat
\gcmd{gls\-xtr\-use\-see\-format}
{
\providedby{\sty{glossaries-extra} v1.06+}
\syntax{\margm{tag}\margm{xr-list}}
\desc{format used by \gls{glsxtrusesee}. This internally uses
\gls{glsseeformat}}
}
% \glsxtruseseealsoformat
\gcmd{gls\-xtr\-use\-see\-also\-format}
{
\providedby{\sty{glossaries-extra} v1.16+}
\syntax{\margm{csv-list}}
\desc{formats the comma-separated list of entry labels as a
\qt{see also} cross-reference}
}
% \glsxtrindexseealso
\gcmd{gls\-xtr\-index\-see\-also}
{%
\providedby{\sty{glossaries-extra} v1.16+}
\syntax{\margm{entry-label}\margm{xr-list}}
\desc{indexes the entry identified by \meta{entry-label} as a
\qt{see also} cross-reference to the entries identified in the comma-separated
list \meta{xr-list}. The cross-reference list is prefixed with
\gls{seealsoname}}
\field{seealso}{glssee}
}
% \glsxtrsetaliasnoindex
\gcmd{gls\-xtr\-set\-alias\-no\-index}
{
\providedby{\sty{glossaries-extra} v1.12+}
\desc{hook used to switch off indexing for aliases}
}
% \glsxtrindexaliased
\gcmd{gls\-xtr\-index\-aliased}
{
\providedby{\sty{glossaries-extra} v1.12+}
\desc{index the current entry's alias. May only be used within
the definition of \gls{glsxtrsetaliasnoindex}}
}
% \glsxtralias
\gcmd{gls\-xtr\-alias}
{
\providedby{\sty{glossaries-extra} v1.12+}
\syntax{\margm{entry-label}}
\desc{expands to the value of the \gloskey{alias} field for the
entry identified by \meta{entry-label}. If the field isn't set, this
will expand to nothing. If the entry isn't defined, this will expand
to \gls{relax}}
}
% \glsxtraliashook
\gcmd{gls\-xtr\-alias\-hook}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{hook implemented when the \gloskey{alias} key is provided when an
entry is defined}
}
% \glsxtrseealsolabels
\gcmd{gls\-xtr\-see\-also\-labels}
{
\providedby{\sty{glossaries-extra} v1.16+}
\syntax{\margm{entry-label}}
\desc{expands to the value of the \gloskey{seealso} field for the
entry identified by \meta{entry-label}. If the field isn't set, this
will expand to nothing. If the entry isn't defined, this will expand
to \gls{relax}}
}
% \glsxtraddallcrossrefs
\gcmd{gls\-xtr\-add\-all\-cross\-refs}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{iterates over all defined entries and indexes any
cross-references (identified by the \gloskey{see} or \gloskey{seealso}
keys) that haven't been used}
\field{seealso}{opt.indexcrossrefs}
}
% \glsxtraddunusedxrefs
\gcmd{gls\-xtr\-add\-un\-used\-xrefs}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{indexes any cross-references (identified by the \gloskey{see} or \gloskey{seealso}
keys) that haven't been used}
}
% \glsxtrunusedformat
\gcmd{gls\-xtr\-un\-used\-format}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{location}}
\desc{the \idxc{locationencap}{format} used by \gls{glsxtraddallcrossrefs}}
}
% \glsxtrdowrglossaryhook
\gcmd{gls\-xtr\-wr\-glossary\-hook}
{%
%\providedby{\sty{glossaries-extra} v0.5.4+}
\syntax{\margm{entry-label}}
\desc{hook implemented everytime an entry is indexed}
}
% \GlsXtrSetAltModifier
\gcmd{Gls\-Xtr\-Set\-Alt\-Modifier}
{
%\providedby{\sty{glossaries-extra} v0.5.4+}
\syntax{\margm{token}\margm{options}}
\desc{sets \meta{token} as a modifier for the \idx{glslike} and
\idx{glstextlike} commands that will automatically implement the
given options}
}
% \GlsXtrSetStarModifier
\gcmd{Gls\-Xtr\-Set\-Star\-Modifier}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{options}}
\desc{overrides the options that should be implemented by the
star (\code{*}) modifier for \idx{glslike} and
\idx{glstextlike} commands}
}
% \GlsXtrSetPlusModifier
\gcmd{Gls\-Xtr\-Set\-Plus\-Modifier}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{options}}
\desc{overrides the options that should be implemented by the
plus (\code{+}) modifier for \idx{glslike} and
\idx{glstextlike} commands}
}
% \glslinkwrcontent
\gcmd{gls\-link\-wr\-content}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{code}}
\desc{encapsulates the \idx{linktext} and \idx{indexing}. Just
does \meta{code} by default}
}
% \glsencapwrcontent
\gcmd{gls\-encap\-wr\-content}
{
\providedby{\sty{glossaries} v4.50+ \& \sty{glossaries-extra} v1.49+}
\syntax{\margm{code}}
\desc{encapsulates the \idx{indexing} code (within \gls{glslinkwrcontent})}
}
% \glsentryindexcount
\gcmd{gls\-entry\-index\-count}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}}
\desc{expands to the number of times the given entry has been indexed. This
will expand to 0 if the entry hasn't been indexed or hasn't been defined}
}
% \glsifindexed
\gcmd{gls\-if\-indexed}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{tests if the value obtained from \gls{glsentryindexcount} is greater than 0}
}
% \glswriteentry
\gcmd{gls\-write\-entry}
{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{entry-label}\margm{code}}
\desc{performs the indexing code unless indexing should be suppressed}
}
% \glsxtrifindexing
\gcmd{gls\-xtr\-if\-indexing}
{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{true}\margm{false}}
\desc{tests whether or not the \glsopt{noindex} has been set. Does
\meta{false} if \glsoptval{noindex}{true} otherwise does \meta{true}}
}
% \ifglsindexonlyfirst
\gcond{if\-gls\-index\-only\-first}
{%
\providedby{\sty{glossaries} v3.02+}
\initvalcs{iffalse}
\desc{a conditional that corresponds to the \opt{indexonlyfirst} option}
}
% \ifglsxtrinitwrglossbefore
\gcond{if\-gls\-xtr\-init\-wr\-gloss\-before}
{%
\providedby{\sty{glossaries-extra} v1.14+}
\initvalcs{iftrue}
\desc{a conditional that indicates whether or not
\glsoptval{wrgloss}{before} is set}
}
% \glsxtrinitwrglossbeforetrue
\gcmd{gls\-xtr\-init\-wr\-gloss\-before\-true}
{%
\providedby{\sty{glossaries-extra} v1.14+}
\desc{corresponds to \glsoptval{wrgloss}{before}}
}
% \glsxtrinitwrglossbeforefalse
\gcmd{gls\-xtr\-init\-wr\-gloss\-before\-false}
{%
\providedby{\sty{glossaries-extra} v1.14+}
\desc{corresponds to \glsoptval{wrgloss}{after}}
}
% \GlsXtrSetDefaultNumberFormat
\gcmd{Gls\-Xtr\-Set\-Default\-Number\-Format}
{
\providedby{\sty{glossaries-extra} v1.19+}
\syntax{\margm{encap}}
\desc{sets the default \glsopt{format} to \meta{encap} (without
the leading backslash)}
}
% \GlsXtrSetDefaultRangeFormat
\gcmd{Gls\-Xtr\-Set\-Default\-Range\-Format}
{
\providedby{\sty{glossaries-extra} v1.50+}
\syntax{\margm{encap}}
\desc{sets the default \glsopt{format} to \meta{encap} (without
the leading backslash) for \gls{glsstartrange} and
\gls{glsendrange}}
}
% \GlsXtrSetDefaultGlsOpts
\gcmd{Gls\-Xtr\-Set\-Default\-Gls\-Opts}
{%
%\providedby{\sty{glossaries-extra} v0.5.4+}
\syntax{\margm{options}}
\desc{locally set the default options for the
\idx{glslike} and \idx{glstextlike} commands}
}
% \GlsXtrAppToDefaultGlsOpts
\gcmd{Gls\-Xtr\-App\-To\-Default\-Gls\-Opts}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{options}}
\desc{locally append \meta{options} to the default options for the
\idx{glslike} and \idx{glstextlike} commands}
}
% \GlsXtrPreToDefaultGlsOpts
\gcmd{Gls\-Xtr\-Pre\-To\-Default\-Gls\-Opts}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{options}}
\desc{locally prepend \meta{options} to the default options for the
\idx{glslike} and \idx{glstextlike} commands}
}
% \glslinkpresetkeys
\gcmd{gls\-link\-pre\-set\-keys}
{%
\providedby{\sty{glossaries-extra} v1.26+}
\desc{hook implemented before setting the options passed to the
\idx{glslike} and \idx{glstextlike} commands}
}
% \glslinkpostsetkeys
\gcmd{gls\-link\-post\-set\-keys}
{%
\providedby{\sty{glossaries} v4.16+}
\desc{hook implemented after setting the options passed to the
\idx{glslike} and \idx{glstextlike} commands}
}
% \glslinkcheckfirsthyperhook
\gcmd{gls\-link\-check\-first\-hyper\-hook}
{
\providedby{\sty{glossaries} v4.08+}
\desc{hook used at the end of the code in the \idx{glslike}
commands that tests if the hyperlink should be switched off on \idx{firstuse}}
}
% \glsaddpresetkeys
\gcmd{gls\-add\-pre\-set\-keys}
{%
\providedby{\sty{glossaries-extra} v1.30+}
\desc{hook implemented before setting the options passed to \gls{glsadd}}
}
% \glsaddpostsetkeys
\gcmd{gls\-add\-post\-set\-keys}
{%
\providedby{\sty{glossaries-extra} v1.30+}
\desc{hook implemented after setting the options passed to \gls{glsadd}}
}
% \glsxtrinitwrgloss
\gcmd{gls\-xtr\-init\-wr\-gloss}
{%
\providedby{\sty{glossaries-extra} v1.14+}
\desc{hook that initialises the \glsopt{wrgloss} setting}
}
% \glsxtrinithyperoutside
\gcmd{gls\-xtr\-init\-hyper\-out\-side}
{%
\providedby{\sty{glossaries-extra} v1.21+}
\desc{hook that initialises the \glsopt{hyperoutside} setting}
}
% \glsinitreunsets
\gcmd{gls\-init\-re\-un\-sets}
{%
\providedby{\sty{glossaries-extra} v1.49+}
\desc{hook that initialises the \glsopt{prereset},
\glsopt{preunset} and \glsopt{postunset} settings}
}
% COMMANDS: CONDITIONALS
% \glsunset
\gcmd{gls\-unset}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{globally unsets the entry's \idx{firstuseflag}. That is, this marks the entry
as \qt{used}}
\field{seealso}{glslocalunset,glsreset,ifglsused,GlsXtrIfUnusedOrUndefined}
}
% \glslocalunset
\gcmd{gls\-local\-unset}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{locally unsets the entry's \idx{firstuseflag}. That is, this marks the entry
as \qt{used}}
\field{seealso}{glsunset,glslocalreset,ifglsused,GlsXtrIfUnusedOrUndefined}
}
% \glslocalunseteach
\gcmd{gls\-local\-unset\-each}
{%
\providedby{\sty{glossaries-extra} v1.31+}
\syntax{\margm{entry-labels}}
\desc{locally unsets each listed entry's \idx{firstuseflag}}
\field{seealso}{glsunset,glslocalreset,ifglsused,GlsXtrIfUnusedOrUndefined}
}
% \glsreset
\gcmd{gls\-reset}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{globally resets the entry's \idx{firstuseflag}. That is, this marks the entry
as \qt{not used}}
\field{seealso}{glslocalreset,glsunset,ifglsused,GlsXtrIfUnusedOrUndefined}
}
% \glslocalreset
\gcmd{gls\-local\-reset}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}}
\desc{locally resets the entry's \idx{firstuseflag}. That is, this marks the entry
as \qt{not used}}
\field{seealso}{glsreset,glslocalunset,ifglsused,GlsXtrIfUnusedOrUndefined}
}
% \glslocalreseteach
\gcmd{gls\-local\-reset\-each}
{%
\providedby{\sty{glossaries-extra} v1.31+}
\syntax{\margm{entry-labels}}
\desc{locally resets each listed entry's \idx{firstuseflag}}
\field{seealso}{glsreset,glslocalreset,ifglsused,GlsXtrIfUnusedOrUndefined}
}
% \glsunsetall
\gcmd{gls\-unset\-all}
{%
\providedby{\sty{glossaries}}
\syntax{\oargm{types}}
\desc{globally unsets all entries associated with the listed
glossaries or all glossaries if \meta{types} is omitted}
\field{seealso}{glsunset,glsresetall,ifglsused,GlsXtrIfUnusedOrUndefined}
}
% \glsresetall
\gcmd{gls\-reset\-all}
{%
\providedby{\sty{glossaries}}
\syntax{\oargm{types}}
\desc{globally resets all entries associated with the listed
glossaries or all glossaries if \meta{types} is omitted}
\field{seealso}{glsreset,glsunsetall,ifglsused,GlsXtrIfUnusedOrUndefined}
}
% \glslocalunsetall
\gcmd{gls\-local\-un\-set\-all}
{
\providedby{\sty{glossaries}}
\syntax{\oargm{glossary labels list}}
\desc{locally unsets the \idx+{firstuseflag} for all
entries in whose labels are listed in the \meta{glossary
labels list} comma-separated list. If the optional argument is
omitted, the list of all non-\idxpl{ignoredglossary} is assumed}
\field{seealso}{glsunset,glslocalunset,glsunsetall,glslocalresetall}
}
% \glslocalresetall
\gcmd{gls\-local\-re\-set\-all}
{
\providedby{\sty{glossaries}}
\syntax{\oargm{glossary labels list}}
\desc{locally resets the \idx+{firstuseflag} for all
entries in whose labels are listed in the \meta{glossary
labels list} comma-separated list. If the optional argument is
omitted, the list of all non-\idxpl{ignoredglossary} is assumed}
\field{seealso}{glsreset,glslocalreset,glsresetall,glslocalunsetall}
}
% \ifglsused
\gcmd{if\-gls\-used}
{%
\providedby{\sty{glossaries}}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the entry has been marked as
\idxc{firstuseflag}{used}, does \meta{false} if the entry is
marked as \idxc{firstuseflag}{unused}, and does neither if
the entry hasn't been defined (but will generate an error or
warning according to \opt{undefaction})}
\field{seealso}{GlsXtrIfUnusedOrUndefined,glsxtrifwasfirstuse}
}
% \GlsXtrIfUnusedOrUndefined
\gcmd{Gls\-Xtr\-If\-Unused\-Or\-Undefined}
{
\providedby{\sty{glossaries-extra} v1.34+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the entry hasn't been defined or hasn't been marked as
\idxc{firstuseflag}{used}, otherwise does \meta{true}. Note
that this command will generate an error or warning (according to
\opt{undefaction}) if the entry hasn't been defined, but will
still do \meta{true}}
\field{seealso}{ifglsused,glsxtrifwasfirstuse}
}
% \glscurrentfieldvalue
\gcmd{gls\-current\-field\-value}
{
\providedby{\sty{glossaries} v4.23+}
\desc{conditional commands such as \gls{ifglshasfield} set this
to the field's value for use within the \meta{true} code}
}
% \ifglshasfield
\gcmd{if\-gls\-has\-field}
{
\providedby{\sty{glossaries} v4.03+}
\syntax{\margm{field}\margm{entry-label}\margm{true}\margm{false}}
\desc{if the field identified by either its key or its
\idx{internalfieldlabel} \meta{field} for the entry identified by
\meta{entry-label} is set and non-empty, this sets
\gls{glscurrentfieldvalue} to the field value and does \meta{true}
otherwise it does \meta{false}}
\field{seealso}{glsxtrifhasfield,ifglsfieldvoid}
}
% \ifglsfieldvoid
\gcmd{if\-gls\-field\-void}
{
\providedby{\sty{glossaries} v4.50+}
\syntax{\margm{field-label}\margm{entry-label}\margm{true}\margm{false}}
\desc{an expandable test to determine if the entry is undefined
or the field is undefined or empty. The \meta{field-label}
must be the field's \idxc{internalfieldlabel}{internal label}}
\field{seealso}{GlsXtrIfFieldUndef}
}%
% \ifglshasparent
\gcmd{if\-gls\-has\-parent}
{
\providedby{\sty{glossaries} v3.02+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the entry's \gloskey{parent} field is
set otherwise does \meta{false}}
}
% \ifglshasdesc
\gcmd{if\-gls\-has\-desc}
{
\providedby{\sty{glossaries} v3.08a+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the entry's \gloskey{description} field is
set otherwise does \meta{false}}
}
% \ifglshasdescsuppressed
\gcmd{if\-gls\-has\-desc\-suppressed}
{
\providedby{\sty{glossaries} v3.08a+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the entry's \gloskey{description} field is
just \gls{nopostdesc} otherwise does \meta{false}}
}
% \ifglshassymbol
\gcmd{if\-gls\-has\-symbol}
{
\providedby{\sty{glossaries} v3.08a+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the entry's \gloskey{symbol} field is
set otherwise does \meta{false}}
}
% \ifglshaslong
\gcmd{if\-gls\-has\-long}
{
\providedby{\sty{glossaries} v3.11a+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the entry's \gloskey{long} field is
set otherwise does \meta{false}}
}
% \ifglshasshort
\gcmd{if\-gls\-has\-short}
{
\providedby{\sty{glossaries} v3.11a+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the entry's \gloskey{short} field is
set otherwise does \meta{false}}
}
% \ifglshaschildren
\gcmd{if\-gls\-has\-children}
{
\providedby{\sty{glossaries} v3.02+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the given entry has child entries
otherwise does \meta{false}. Note that this has to iterate over
the set of defined entries for the entry's \idx{glossary} to
find one that has the entry identified in its \gloskey{parent}
field. A more efficient approach can be achieved with
\app{bib2gls} and the \resourceopt{save-child-count} resource option}
\field{seealso}{GlsXtrIfHasNonZeroChildCount}
}
% COMMANDS: LOOPS
% \forglsentries
\gcmd{for\-gls\-entries}
{%
\providedby{\sty{glossaries}}
\syntax{\oargm{type}\margm{cs}\margm{body}}
\desc{iterates over all entries in the given \idx{glossary}
and, at each iteration, defines the command \meta{cs}
to the current entry label and does \meta{body}. The optional
argument \meta{type} is the \idx{glossary}
label and defaults to \gls{glsdefaulttype} if omitted.
This command can't be used with \app{bib2gls} since there are no
defined entries until \app{bib2gls} has selected them and added
them to the \ext{glstex} file}
\field{seealso}{forallglsentries}
}
% \forallglsentries
\gcmd{for\-all\-gls\-entries}
{%
\providedby{\sty{glossaries}}
\syntax{\oargm{types}\margm{cs}\margm{body}}
\desc{does \gls{forglsentries} for each \idx{glossary}. The optional
argument \meta{types} is a comma-separated list of \idx{glossary}
labels. If omitted, all non-\idxpl{ignoredglossary} is assumed}
}
% \forallglossaries
\gcmd{for\-all\-glossaries}
{
\providedby{\sty{glossaries}}
\syntax{\oargm{types}\margm{cs}\margm{body}}
\desc{iterates overall all the \idx{glossary} labels given in
the \meta{types} argument, defines the command \meta{cs} to the
current label and does \meta{body}. If the optional argument is
omitted, the list of all non-\idxpl{ignoredglossary} is assumed}
}
% \forallacronyms
\gcmd{for\-all\-acronyms}
{
\banned
\providedby{\sty{glossaries} v4.08+}
\syntax{\margm{cs}\margm{body}}
\desc{iterates overall all \idxpl{glossary} that have been
declared lists of acronyms, defines the command \meta{cs} to the
current label and does \meta{body}. Use
\gls{forallabbreviationlists} with \sty{glossaries-extra}}
}
% \forallabbreviationlists
\gcmd{forallabbreviationlists}
{
\providedby{\sty{glossaries-extra} v1.42+}
\syntax{\margm{cs}\margm{body}}
\desc{iterates overall all lists of abbreviations, defines the
command \meta{cs} to the current label and does \meta{body}}
\field{seealso}{forallglossaries}
}
% CATEGORIES
\gidxpl{category}{\field{plural}{categories}
\common
\desc{with \sty{glossaries-extra}, each entry has an associated
category (a simple label) assigned with the \gloskey{category} key. Each category
can have a set of \attrs\ (assigned with
commands like \gls{glssetcategoryattribute}), which can affect the way the entry
is formatted. Some categories, such as \cat{general}, are supplied by
\sty{glossaries-extra}}
}
% general category
\gcat{general}{\desc{the default \idx{category} for
\gls{newglossaryentry} and similar commands. This
category has the \catattr{regular} attribute set to \code{true}}}%
% abbreviation category
\gcat{abbreviation}{\desc{the default \idx{category} for
\gls{newabbreviation}}}%
% acronym category
\gcat{acronym}{\desc{the default \idx{category} for
\gls{newacronym} (as redefined by \sty{glossaries-extra}). This
category has the \catattr{regular} attribute set to \code{true}
by default but this may be changed to \code{false} by certain
\idx{abbrvstyle}}}%
% symbol category
\gcat{symbol}{\desc{the default \idx{category} for
\gls{glsxtrnewsymbol}. This
category has the \catattr{regular} attribute set to \code{true}}}%
% number category
\gcat{number}{\desc{the default \idx{category} for
\gls{glsxtrnewnumber}. This
category has the \catattr{regular} attribute set to \code{true}}}%
% index category
\gcat{index}{\desc{the default \idx{category} for
\gls{newterm} (as redefined by \sty{glossaries-extra}). This
category has the \catattr{regular} attribute set to \code{true}}}%
% term category
\gcat{term}{\desc{a \idx{catpostdeschook} is provided for this
category, but no commands are provided that set the
\gloskey{category} key to this label}}
% CATEGORY ATTRIBUTES
\gidxpl{categoryattribute}{\field{text}{category attribute}%
\desc{a category can have a set of attributes (assigned with commands like
\gls{glssetcategoryattribute}), which can affect the way the entry
is formatted. Some attributes are recognised by certain
commands. Custom attributes can also be defined and referenced
in hooks or custom commands as required}
}
% regular
\gcatattr{regular}%
{%
\common
\syntax{\meta{boolean}}
\desc{if set to \code{true}, this attribute indicates that the
entry should be treated as a regular entry (the
\gloskey{first}\slash\gloskey{firstplural} key is used on
\idx{firstuse} and the \gloskey{text}\slash\gloskey{plural} key
is used on subsequent use). If set to \code{false}, the entry
is assumed to be governed by the \idx{abbrvstyle} associated
with the category or the default style for the
\cat{abbreviation} category, if no style is associated with the
entry's category. If this attribute isn't set, \code{true} is
assumed. Certain \idxpl{abbrvstyle} set this attribute to
\code{true} or \code{false}, depending on the complexity of the
style}
}
% markwords
\gcatattr{mark\-words}%
{%
\syntax{\meta{boolean}}
\desc{if set to \code{true}, this attribute indicates that
abbreviations should have the words in the long form marked up
with \gls{glsxtrword} and separated by \gls{glsxtrwordsep}. If
this attribute isn't set, \code{false} is assumed}
}
% markshortwords
\gcatattr{mark\-short\-words}%
{%
\syntax{\meta{boolean}}
\desc{if set to \code{true}, this attribute indicates that
abbreviations should have the words in the short form marked up
with \gls{glsxtrword} and separated by \gls{glsxtrwordsep}. If
this attribute isn't set, \code{false} is assumed}
}
% discardperiod
\gcatattr{discard\-period}%
{
\syntax{\meta{boolean}}
\desc{this attribute is provided for abbreviations that end in a
\idx{fullstop}. If set to \code{true}, indicates that
the \idx{postlinkhook} will discard a \idx{fullstop} that
follows \emph{non-plural} commands like \gls{gls} or \gls{glstext}}
}
% pluraldiscardperiod
\gcatattr{plural\-discard\-period}%
{
\syntax{\meta{boolean}}
\desc{as \catattr{discardperiod} but for plural commands like \gls{glspl}}
}
% insertdots
\gcatattr{insert\-dots}%
{
\syntax{\meta{boolean}}
\desc{if set to \code{true}, this attribute indicates that
the abbreviation short form should have a \idx{fullstop} automatically
inserted after every character}
}
% accessinsertdots
\gcatattr{access\-insert\-dots}%
{
\syntax{\meta{boolean}}
\desc{if set to \code{true}, this attribute indicates that
the abbreviation accessibility replacement (provided in the
\gloskey{shortaccess} key) should have a \idx{fullstop} automatically
inserted after every character. Only checked if
\catattr{insertdots} hasn't been set}
}
% retainfirstuseperiod
\gcatattr{retain\-first\-use\-period}
{
\providedby{\sty{glossaries-extra} v1.01+}
\syntax{\meta{boolean}}
\desc{if set, the \idx{fullstop} won't be discarded for
\idx{firstuse} with \catattr{discardperiod} or
\catattr{pluraldiscardperiod}}
}
% noshortplural
\gcatattr{no\-short\-plural}%
{%
\syntax{\meta{boolean}}
\desc{if set to \code{true}, this attribute indicates that
abbreviations should have the \gloskey{shortplural} field set to the
same as the \gloskey{short} value by default}
}
% accessnoshortplural
\gcatattr{access\-no\-short\-plural}%
{%
\syntax{\meta{boolean}}
\desc{if set to \code{true} and \gloskey{shortpluralaccess}
hasn't been set, this attribute indicates that
abbreviations should have the \gloskey{shortpluralaccess} field set to the
same as the \gloskey{shortaccess} value by default}
}
% aposplural
\gcatattr{apos\-plural}%
{%
\syntax{\meta{boolean}}
\desc{if set to \code{true}, this attribute indicates that
abbreviations should have the \gloskey{shortplural} field set to the
short form followed by \code{'\gls{abbrvpluralsuffix}} by default}
}
% accessaposplural
\gcatattr{access\-apos\-plural}%
{%
\syntax{\meta{boolean}}
\desc{if set to \code{true} and \gloskey{shortpluralaccess}
hasn't been set, this attribute indicates that
abbreviations should have the \gloskey{shortpluralaccess} field set to the
short form followed by \code{'\gls{glsxtrpluralsuffix}} by default}
}
% nameshortaccess
\gcatattr{name\-short\-access}
{%
\syntax{\meta{boolean}}
\desc{if the \gloskey{access} hasn't been set then if this
attribute is \code{true}, the \gloskey{access} field will be
set to the \gloskey{shortaccess}}
}
% textshortaccess
\gcatattr{text\-short\-access}
{%
\syntax{\meta{boolean}}
\desc{if the \gloskey{textaccess} hasn't been set then if this
attribute is \code{true}, the \gloskey{textaccess} field will be
set to the \gloskey{shortaccess} and, likewise, if the
\gloskey{pluralaccess} field hasn't been set it will be set to the
\gloskey{shortpluralaccess}}
}
% firstshortaccess
\gcatattr{first\-short\-access}
{%
\syntax{\meta{boolean}}
\desc{if the \gloskey{firstaccess} hasn't been set then if this
attribute is \code{true}, the \gloskey{firstaccess} field will be
set to the \gloskey{shortaccess} and, likewise, if the
\gloskey{firstpluralaccess} field hasn't been set it will be set to the
\gloskey{shortpluralaccess}}
}
% tagging
\gcatattr{tagging}%
{
\syntax{\meta{boolean}}
\desc{if set to \code{true}, this attribute indicates that
abbreviations with the associated category use the command
defined with \gls{GlsXtrEnableInitialTagging} to tag initials}
}
% textformat
\gcatattr{text\-format}%
{
\syntax{\meta{cs-name}}
\desc{if set, the value should be the name of a control sequence
(without the leading backslash) that should be used to
encapsulate the link text (instead of \gls{glstextformat})}
}
% innertextformat
\gcatattr{inner\-text\-format}%
{
\syntax{\meta{cs-name}}
\desc{when used with \gls{glsxtrattrentrytextfmt}, the value
should be the name of a control sequence (without the leading
backslash)}
}
% nohyper
\gcatattr{no\-hyper}
{
\syntax{\meta{boolean}}
\desc{if set to \code{true}, this attribute indicates that
the hyperlink should be switched off for commands like \gls{gls}}
}
% nohyperfirst
\gcatattr{no\-hyper\-first}
{
\syntax{\meta{boolean}}
\desc{if set to \code{true}, this attribute indicates that
the hyperlink should be switched off on \idx{firstuse} of the
\idx{glslike} commands}
}
% nohypernext
\gcatattr{no\-hyper\-next}
{
\syntax{\meta{boolean}}
\desc{if set to \code{true}, this attribute indicates that
the hyperlink should be switched off on \idx{subsequentuse} of the
\idx{glslike} commands}
}
% indexonlyfirst
\gcatattr{index\-only\-first}
{
\syntax{\meta{boolean}}
\desc{if set to \code{true}, this attribute indicates that
\idx{indexing} should only occur on \idx{firstuse}}
}
% indexname
\gcatattr{index\-name}
{
\providedby{\sty{glossaries-extra}}
\syntax{\margm{value}}
\desc{used by the \idx{postnamehook} with
\gls{glsxtrdoautoindexname} to indicate that an entry
needs to be automatically indexed with \gls{index}. The value
may be \code{true} or the encap}
}
% wrgloss
\gcatattr{wr\-gloss}
{
\syntax{\meta{value}}
\desc{determines whether the \idx{indexing} is performed before or
after the \idx{linktext}. If the value is \code{after} then
\glsoptval{wrgloss}{after} otherwise it implements
\glsoptval{wrgloss}{before}}
}
% hyperoutside
\gcatattr{hyper\-out\-side}
{
\syntax{\meta{boolean}}
\desc{if set to \code{true}, this attribute indicates that
the hyperlink should be outside of the outer formatting command}
}
% headuc
\gcatattr{head\-uc}%
{%
\syntax{\meta{boolean}}
\desc{if set to \code{true}, this attribute indicates that the
text produced by commands like \gls{glsfmttext} should be converted
to \idx+{allcaps} when they appear in a page header}
}
% encapnocase
\gcatattr{encap\-no\-case}
{
\syntax{\meta{internal field list}}
\desc{if set, all the listed fields (identified by their
\idx{internalfieldlabel}) will have their values encapsulated
with \gls{NoCaseChange} when an entry with the associated category is defined}
}
% encapinnerfmt
\gcatattr{encap\-inner\-fmt}
{
\syntax{\meta{internal field list}}
\desc{if set, all the listed fields (identified by their
\idx{internalfieldlabel}) will have their values encapsulated
with the inner formatting command \gls{glsxtrgenentrytextfmt}
when an entry with the associated category is defined}
}
% encapnocaseinnerfmt
\gcatattr{encap\-no\-case\-inner\-fmt}
{
\syntax{\meta{internal field list}}
\desc{combines \catattr{encapnocase} and \catattr{encapinnerfmt}
for the same field set}
}
% entrycount
\gcatattr{entry\-count}
{
\syntax{\meta{trigger-value}}
\desc{when used with entry counting, this attribute provides the trigger value}
}
% unitcount
\gcatattr{unit\-count}
{
\syntax{\meta{counter}}
\desc{when used with unit entry counting, this attribute
provides the name of the counter associated with the unit}
}
% recordcount
\gcatattr{record\-count}
{
\syntax{\meta{trigger-value}}
\desc{when used with record counting, this attribute provides the trigger value}
}
% multioptions
\gcatattr{multioptions}
{
\syntax{\meta{options}}
\desc{default options to apply to any multi-entry set for the
given category}
}
% glossname
\gcatattr{gloss\-name}
{
\syntax{\meta{value}}
\desc{indicates if any \idx{casechange} should be applied
within \gls{glossentryname}}
}
% glossdesc
\gcatattr{gloss\-desc}
{
\syntax{\meta{value}}
\desc{indicates if any \idx{casechange} should be applied
within \gls{glossentrydesc}}
}
% glossnamefont
\gcatattr{gloss\-name\-font}
{
\syntax{\meta{cs-name}}
\desc{the control sequence name (without the leading backslash)
to format the name within \gls{glossentryname}}
}
% glossdescfont
\gcatattr{gloss\-desc\-font}
{
\syntax{\meta{cs-name}}
\desc{the control sequence name (without the leading backslash)
to format the description within \gls{glossentrydesc}}
}
% glosssymbolfont
\gcatattr{gloss\-symbol\-font}
{
\syntax{\meta{cs-name}}
\desc{the control sequence name (without the leading backslash)
to format the symbol within \gls{glossentrysymbol}}
}
% linkcount
\gcatattr{link\-count}
{
\syntax{\meta{boolean}}
\desc{if true, link counting is enabled}
}
% linkcountmaster
\gcatattr{link\-count\-master}
{
\syntax{\meta{counter-name}}
\desc{if link counting is enabled, the value should be the name
of the counter that needs to have its reset list updated}
}
% dualindex
\gcatattr{dual\-index}
{
\syntax{\meta{value}}
\desc{if set, implement dual indexing}
}
% targeturl
\gcatattr{target\-url}
{
\syntax{\meta{url}}
\desc{if set, indicates the target URL for the hyperlinks
created by the \idx{glslike} and \idx{glstextlike} commands}
}
% targetname
\gcatattr{target\-name}
{
\syntax{\meta{anchor}}
\desc{if set, the named anchor within the URL provided by
\catattr{targeturl}}
}
% targetcategory
\gcatattr{target\-category}
{
\syntax{\meta{anchor}}
\desc{if set, the named anchor category within the URL provided by
\catattr{targeturl} (combined with \catattr{targetname})}
}
% externallocation
\gcatattr{external\-location}
{
\providedby{\sty{glossaries-extra} v1.14+}
\syntax{\meta{PDF filename}}
\desc{if set, the value is the filename of the external target PDF document
(used by \gls{glsxtrsupphypernumber})}
}
% combinedsep
\gcatattr{combined\-sep}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\meta{separator}}
\desc{if set, indicates separator to use in \gls{glscombinedsep}}
}
% combinedsepfirst
\gcatattr{combined\-sep\-first}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\meta{separator}}
\desc{if set, indicates separator to use in \gls{glscombinedsepfirst}}
}
% combinedfirstsepfirst
\gcatattr{combined\-first\-sep\-first}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\meta{separator}}
\desc{if set, indicates separator to use in \gls{glscombinedfirstsepfirst}}
}
% combinedfirstsep
\gcatattr{combined\-first\-sep}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\meta{separator}}
\desc{if set, indicates separator to use in \gls{glscombinedfirstsep}}
}
% COMMANDS: bib2gls
% \glsxtrresourcefile
\gcmd{gls\-xtr\-resource\-file}%
{%
\providedby{\sty{glossaries-extra} v1.11+}
\syntax{\oargm{options}\margm{basename}}
\field{seealso}{idx.resourceopt,GlsXtrLoadResources}
\desc{for use with \app{bib2gls}, this both sets up the options
for the \idx{resourceset} (which \app{bib2gls} can detect from the
\ext{aux} file) and inputs the file \metafilefmt{}{basename}{.glstex} file
created by \app{bib2gls}}
}
% \GlsXtrLoadResources
\gcmd{Gls\-Xtr\-Load\-Resources}%
{%
\providedby{\sty{glossaries-extra} v1.11+}
\syntax{\oargm{options}}
\field{seealso}{idx.resourceopt}
\desc{a shortcut that uses
\gls{glsxtrresourcefile}\oargm{options}\margm{basename}, where
the \meta{basename} is obtained from \gls{jobname} and
\gls{glsxtrresourcecount}}
}
% \glsxtrresourcecount
\gcmd{gls\-xtr\-resource\-count}%
{%
\providedby{\sty{glossaries-extra} v1.12+}
\desc{a count register that is incremented on each use of
\gls{GlsXtrLoadResources} to provide a unique basename for each
\idx{resourceset}}
}
% \glsxtrresourceinit
\gcmd{gls\-xtr\-resource\-init}%
{%
\providedby{\sty{glossaries-extra} v1.21+}
\desc{may be defined to temporarily change command definitions
before information is written to the \ext{aux} file by the protected
write used by \gls{glsxtrresourcefile}}
}
% \GlsXtrDefaultResourceOptions
\gcmd{Gls\-Xtr\-Default\-Resource\-Options}%
{%
\providedby{\sty{glossaries-extra} v1.40+}
\desc{expands to default \idxpl{resourceopt}}
}
% \glsxtr@resource
\gcmd{gls\-xtr\-@\-resource}%
{%
\providedby{\sty{glossaries-extra} v1.08+}
\syntax{\margm{options}\margm{basename}}
\desc{used in the \ext{aux} file to provide the
\idxpl{resourceopt} for \app{bib2gls} for each \idx{resourceset}.
Ignored by \LaTeX}
}
% \glsxtr@record
\gcmd{gls\-xtr\-@\-record}%
{%
\providedby{\sty{glossaries-extra} v1.08+}
\syntax{\margm{entry-label}\margm{h-prefix}\margm{counter}\margm{encap}\margm{location}}
\desc{used in the \ext{aux} file to provide the \record\ for
\app{bib2gls} (\opteqvalref{record}{only}). Ignored by \LaTeX}
}
% \glsxtr@record@nameref
\gcmd{gls\-xtr\-@\-record\-@\-name\-ref}%
{%
\providedby{\sty{glossaries-extra} v1.37+}
\syntax{\margm{entry-label}\margm{h-prefix}\margm{counter}\margm{encap}\margm{location}\margm{current title}\margm{current anchor}\margm{the-h-counter}}
\desc{used in the \ext{aux} file to provide the
\optvalref{record}{nameref} \record\ for \app{bib2gls}. Ignored by \LaTeX}
}
% \glsxtrMFUsave
\gcmd{gls\-xtr\-MFU\-save}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{used on the first instance of \gls{glsxtrresourcefile},
this will add \gls{MFUsave} to the begin document hook and
then disable itself. This is provided to help \app{bib2gls}
pick up any of \sty{mfirstuc}['s] exclusions, blockers and
mappings to assist with its \idx{sentencecase} function}
}
% \bibgls@input
\gcmd{bib\-gls\-@\-in\-put}
{
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{filename}}
\desc{indicates that the \app{bib2gls} records are in the file
identified in the argument \meta{filename}, which corresponds
to the file \metafilefmt{}{basename}{.aux} identified in the option
\optval{bibglsaux}{\meta{basename}}}
}
% \IfTeXParserLib
\gcmd{If\-TeX\-Parser\-Lib}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\syntax{\margm{\TeX\ parser lib code}\margm{\LaTeX\ code}}
\desc{defined by \sty{glossaries-extra-bib2gls} to \meta{\LaTeX\ code}
but defined by \app{bib2gls}['s] interpreter to expand to
\meta{\TeX\ parser lib code}}
}
% \glshex
\gcmd{gls\-hex}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.21+}
\syntax{\meta{hex}}
\desc{expands to \code{\gls{string}\gls{u}\meta{hex}}}
}
% \u
\gcmd{u}
{
\syntax{\meta{hex}}
\desc{recognised by \app{bib2gls} within some \idxpl{resourceopt}
as identifying the Unicode character given by \meta{hex}. Since
\csfmt{u} is defined by the \LaTeX\ kernel, you need to protect
it from expansion while the options are written to the \ext{aux} file
(\code{\gls{string}\csfmt{u}\meta{hex}})}
\field{seealso}{glshex}
}
% \glscapturedgroup
\gcmd{gls\-captured\-group}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.31+}
\syntax{\meta{n}}
\desc{expands to \code{\gls{string}\gls{dollar}\meta{n}}}
}
% \glshashchar
\gcmd{gls\-hash\-char}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{expands to a literal hash \idx{sym.hash}}
}
% \GlsXtrBibTeXEntryAliases
\gcmd{Gls\-Xtr\-Bib\-TeX\-Entry\-Aliases}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.29+}
\desc{expands to the \BibTeX\ to \app{bib2gls} entry aliases
for use in \resourceopt{entry-type-aliases}}
}
% \GlsXtrProvideBibTeXFields
\gcmd{Gls\-Xtr\-Provide\-Bib\-TeX\-Fields}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.29+}
\desc{provides the standard \BibTeX\ fields as glossary entry
keys (using \gls{glsaddstoragekey})}
}
% \glsxtrbibaddress
\gcmd{gls\-xtr\-bib\-address}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{address} field}
}
% \glsxtrbibauthor
\gcmd{gls\-xtr\-bib\-author}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{author} field}
}
% \glsxtrbibbooktitle
\gcmd{gls\-xtr\-bib\-book\-title}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{booktitle} field}
}
% \glsxtrbibchapter
\gcmd{gls\-xtr\-bib\-chapter}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{chapter} field}
}
% \glsxtrbibedition
\gcmd{gls\-xtr\-bib\-edition}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{edition} field}
}
% \glsxtrbibhowpublished
\gcmd{gls\-xtr\-bib\-how\-published}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{howpublished} field}
}
% \glsxtrbibinstitution
\gcmd{gls\-xtr\-bib\-institution}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{institution} field}
}
% \glsxtrbibjournal
\gcmd{gls\-xtr\-bib\-journal}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{journal} field}
}
% \glsxtrbibmonth
\gcmd{gls\-xtr\-bib\-month}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{month} field}
}
% \glsxtrbibnote
\gcmd{gls\-xtr\-bib\-note}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{note} field}
}
% \glsxtrbibnumber
\gcmd{gls\-xtr\-bib\-number}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{number} field}
}
% \glsxtrbiborganization
\gcmd{gls\-xtr\-bib\-organization}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{organization} field}
}
% \glsxtrbibpages
\gcmd{gls\-xtr\-bib\-pages}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{pages} field}
}
% \glsxtrbibpublisher
\gcmd{gls\-xtr\-bib\-publisher}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{publisher} field}
}
% \glsxtrbibschool
\gcmd{gls\-xtr\-bib\-school}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{school} field}
}
% \glsxtrbibseries
\gcmd{gls\-xtr\-bib\-series}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{series} field}
}
% \glsxtrbibtitle
\gcmd{gls\-xtr\-bib\-title}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{title} field}
}
% \glsxtrbibvolume
\gcmd{gls\-xtr\-bib\-volume}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{volume} field}
}
% \glsxtrbibtype
\gcmd{gls\-xtr\-bib\-type}
{
\note{defined by \gls{GlsXtrProvideBibTeXFields}}
\syntax{\margm{entry-label}}
\desc{accesses the \fieldfmt{bibtextype} field}
}
% \glsxtrprovidecommand
\gcmds{gls\-xtr\-provide\-command}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\syntax{\margm{cs}\oargm{n}\oargm{default}\margm{definition}}
\desc{just uses \gls{providecommand} within the \LaTeX\ document
but is treated as \gls{renewcommand} by \app{bib2gls}['s]
interpreter}
}
% \glsrenewcommand
\gcmds{gls\-re\-new\-command}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\margm{cs}\oargm{n}\oargm{default}\margm{definition}}
\desc{like \gls{renewcommand} but only issues a warning instead
of an error if the command hasn't been defined}
}
% \GlsXtrIndexCounterLink
\gcmd{Gls\-Xtr\-Index\-Counter\-Link}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.29+}
\syntax{\margm{text}\margm{entry-label}}
\desc{creates a hyperlink (if supported) to the target
obtained from \glosfield{indexcounter}, if the field has been
defined with the given hyperlink text (otherwise just does
\meta{text})}
}
% \Alpha
\gcmd{Alpha}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand}, this just does
\code{\cmd{mathrm}\marg{A}}}
}
% \Beta
\gcmd{Beta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand}, this just does
\code{\cmd{mathrm}\marg{B}}}
}
% \Epsilon
\gcmd{Epsilon}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand}, this just does
\code{\cmd{mathrm}\marg{E}}}
}
% \Zeta
\gcmd{Zeta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand}, this just does
\code{\cmd{mathrm}\marg{Z}}}
}
% \Eta
\gcmd{Eta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand}, this just does
\code{\cmd{mathrm}\marg{H}}}
}
% \Iota
\gcmd{Iota}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand}, this just does
\code{\cmd{mathrm}\marg{I}}}
}
% \Kappa
\gcmd{Kappa}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand}, this just does
\code{\cmd{mathrm}\marg{K}}}
}
% \Mu
\gcmd{Mu}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand}, this just does
\code{\cmd{mathrm}\marg{M}}}
}
% \Nu
\gcmd{Nu}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand}, this just does
\code{\cmd{mathrm}\marg{N}}}
}
% \Omicron
\gcmd{Omicron}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand}, this just does
\code{\cmd{mathrm}\marg{O}}}
}
% \omicron
\gcmd{omicron}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand}, this just does
\code{\cmd{mathrm}\marg{O}}}
}
% \Rho
\gcmd{Rho}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand}, this just does
\code{\cmd{mathrm}\marg{P}}}
}
% \Tau
\gcmd{Tau}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand}, this just does
\code{\cmd{mathrm}\marg{T}}}
}
% \Chi
\gcmd{Chi}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand}, this just does
\code{\cmd{mathrm}\marg{X}}}
}
% \Digamma
\gcmd{Digamma}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand}, this just does
\code{\cmd{mathrm}\marg{F}}}
}
% \Upalpha
\gcmd{Upalpha}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand} and only if
\sty{upgreek} has been loaded, this just does
\code{\cmd{mathrm}\marg{A}}}
}
% \Upbeta
\gcmd{Upbeta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand} and only if
\sty{upgreek} has been loaded, this just does
\code{\cmd{mathrm}\marg{B}}}
}
% \Upepsilon
\gcmd{Upepsilon}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand} and only if
\sty{upgreek} has been loaded, this just does
\code{\cmd{mathrm}\marg{E}}}
}
% \Upzeta
\gcmd{Upzeta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand} and only if
\sty{upgreek} has been loaded, this just does
\code{\cmd{mathrm}\marg{Z}}}
}
% \Upeta
\gcmd{Upeta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand} and only if
\sty{upgreek} has been loaded, this just does
\code{\cmd{mathrm}\marg{H}}}
}
% \Upiota
\gcmd{Upiota}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand} and only if
\sty{upgreek} has been loaded, this just does
\code{\cmd{mathrm}\marg{I}}}
}
% \Upkappa
\gcmd{Upkappa}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand} and only if
\sty{upgreek} has been loaded, this just does
\code{\cmd{mathrm}\marg{K}}}
}
% \Upmu
\gcmd{Upmu}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand} and only if
\sty{upgreek} has been loaded, this just does
\code{\cmd{mathrm}\marg{M}}}
}
% \Upnu
\gcmd{Upnu}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand} and only if
\sty{upgreek} has been loaded, this just does
\code{\cmd{mathrm}\marg{N}}}
}
% \Upomicron
\gcmd{Upomicron}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand} and only if
\sty{upgreek} has been loaded, this just does
\code{\cmd{mathrm}\marg{O}}}
}
% \upomicron
\gcmd{upomicron}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand} and only if
\sty{upgreek} has been loaded, this just does
\code{\cmd{mathrm}\marg{o}}}
}
% \Uprho
\gcmd{Uprho}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand} and only if
\sty{upgreek} has been loaded, this just does
\code{\cmd{mathrm}\marg{P}}}
}
% \Uptau
\gcmd{Uptau}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand} and only if
\sty{upgreek} has been loaded, this just does
\code{\cmd{mathrm}\marg{T}}}
}
% \Upchi
\gcmd{Upchi}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{defined with \gls{providecommand} and only if
\sty{upgreek} has been loaded, this just does
\code{\cmd{mathrm}\marg{X}}}
}
% \glsxtrcontrolrules
\gcmd{gls\-xtr\-control\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to control character sort rules}
}
% \glsxtrspacerules
\gcmd{gls\-xtr\-space\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to space character sort rules}
}
% \glsxtrnonprintablerules
\gcmd{gls\-xtr\-non\-printable\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to non-printable character sort rules}
}
% \glsxtrcombiningdiacriticrules
\gcmd{gls\-xtr\-combining\-diacritic\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to all the combining diacritic sort rules}
}
% \glsxtrcombiningdiacriticIrules
\gcmd{gls\-xtr\-combining\-diacritic\-I\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the first set of combining diacritic sort rules}
}
% \glsxtrcombiningdiacriticIIrules
\gcmd{gls\-xtr\-combining\-diacritic\-II\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the second set of combining diacritic sort rules}
}
% \glsxtrcombiningdiacriticIIIrules
\gcmd{gls\-xtr\-combining\-diacritic\-III\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the third set of combining diacritic sort rules}
}
% \glsxtrcombiningdiacriticIVrules
\gcmd{gls\-xtr\-combining\-diacritic\-IV\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the fourth set of combining diacritic sort rules}
}
% \glsxtrhyphenrules
\gcmd{gls\-xtr\-hyphen\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to hyphen character sort rules}
}
% \glsxtrgeneralpuncrules
\gcmd{gls\-xtr\-general\-punc\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to all sets of general punctuation sort rules}
}
% \glsxtrgeneralpuncIrules
\gcmd{gls\-xtr\-general\-punc\-I\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the first set of general punctuation (including
currency) sort rules}
}
% \glsxtrgeneralpuncmarksrules
\gcmd{gls\-xtr\-general\-punc\-marks\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{punctuation mark subset of \gls{glsxtrgeneralpuncIrules}}
}
% \glsxtrgeneralpuncaccentsrules
\gcmd{gls\-xtr\-general\-punc\-accents\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{punctuation accent subset of \gls{glsxtrgeneralpuncIrules}}
}
% \glsxtrgeneralpuncquoterules
\gcmd{gls\-xtr\-general\-punc\-quote\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{punctuation quote subset of \gls{glsxtrgeneralpuncIrules}}
}
% \glsxtrgeneralpuncbracketrules
\gcmd{gls\-xtr\-general\-punc\-bracket\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{punctuation bracket subset of \gls{glsxtrgeneralpuncIrules}}
}
% \glsxtrgeneralpuncsignrules
\gcmd{gls\-xtr\-general\-punc\-sign\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{punctuation sign subset of \gls{glsxtrgeneralpuncIrules}}
}
% \glsxtrgeneralpuncIIrules
\gcmd{gls\-xtr\-general\-punc\-II\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the second set of general punctuation (including
currency) sort rules}
}
% \glsxtrcurrencyrules
\gcmd{gls\-xtr\-currency\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to currency character sort rules}
}
% \glsxtrdigitrules
\gcmd{gls\-xtr\-digit\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to 0--9 digit character sort rules (includes
superscript and subscript digits)}
}
% \glsxtrBasicDigitrules
\gcmd{gls\-xtr\-Basic\-Digit\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the Basic Latin digit character sort rules}
}
% \glsxtrSubScriptDigitrules
\gcmd{gls\-xtr\-Sub\-Script\-Digit\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the 0--9 subscript digit character sort rules}
}
% \glsxtrSuperScriptDigitrules
\gcmd{gls\-xtr\-Super\-Script\-Digit\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the 0--9 superscript digit character sort rules}
}
% \glsxtrfractionrules
\gcmd{gls\-xtr\-fraction\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the number forms fraction character sort rules}
}
% \glsxtrIgnorableRules
\gcmd{gls\-xtr\-Ignorable\-Rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{a shortcut that expands to the control rules, space rules
and non-printable rules}
}
% \glsxtrGeneralInitRules
\gcmd{gls\-xtr\-General\-Init\-Rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{a shortcut that expands to the ignorable rules,
combining diacritic rules, hyphen rules, general punctuation
rules, digit rules, and fraction rules}
}
% \glsxtrLatinA
\gcmd{gls\-xtr\-LatinA}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin A (includes 0x00AA and 0x2090)}
}
% \glsxtrLatinE
\gcmd{gls\-xtr\-LatinE}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin E (includes 0x2091)}
}
% \glsxtrLatinH
\gcmd{gls\-xtr\-LatinH}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin H (includes 0x2095)}
}
% \glsxtrLatinI
\gcmd{gls\-xtr\-LatinI}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin I (includes 0x2071)}
}
% \glsxtrLatinK
\gcmd{gls\-xtr\-LatinK}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin K (includes 0x2096)}
}
% \glsxtrLatinL
\gcmd{gls\-xtr\-LatinL}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin L (includes 0x2097)}
}
% \glsxtrLatinM
\gcmd{gls\-xtr\-LatinM}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin M (includes 0x2098)}
}
% \glsxtrLatinN
\gcmd{gls\-xtr\-LatinN}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin N (includes 0x2099)}
}
% \glsxtrLatinO
\gcmd{gls\-xtr\-LatinO}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin O (includes 0x00BA and 0x2092)}
}
% \glsxtrLatinP
\gcmd{gls\-xtr\-LatinP}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin P (includes 0x209A)}
}
% \glsxtrLatinS
\gcmd{gls\-xtr\-LatinS}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin S (includes 0x209B)}
}
% \glsxtrLatinT
\gcmd{gls\-xtr\-LatinT}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin T (includes 0x209C)}
}
% \glsxtrLatinX
\gcmd{gls\-xtr\-LatinX}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin X (includes 0x2093)}
}
% \glsxtrLatinSchwa
\gcmd{gls\-xtr\-Latin\-Schwa}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin schwa}
}
% \glsxtrLatinEszettSs
\gcmd{gls\-xtr\-Latin\-EszettSs}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to rule for \ss and \char"017F\relax s}
}
% \glsxtrLatinEszettSz
\gcmd{gls\-xtr\-Latin\-EszettSz}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to rule for \ss and \char"017F\relax z}
}
% \glsxtrLatinEth
\gcmd{gls\-xtr\-Latin\-Eth}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin eth}
}
% \glsxtrLatinThorn
\gcmd{gls\-xtr\-Latin\-Thorn}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin thorn}
}
% \glsxtrLatinAELigature
\gcmd{gls\-xtr\-Latin\-AE\-Ligature}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin ae-ligature}
}
% \glsxtrLatinOELigature
\gcmd{gls\-xtr\-Latin\-OE\-Ligature}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin oe-ligature}
}
% \glsxtrLatinAA
\gcmd{gls\-xtr\-Latin\-AA}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin \aa}
}
% \glsxtrLatinWynn
\gcmd{gls\-xtr\-Latin\-Wynn}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin wynn}
}
% \glsxtrLatinInsularG
\gcmd{gls\-xtr\-Latin\-InsularG}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin insular G and g, G}
}
% \glsxtrLatinOslash
\gcmd{gls\-xtr\-Latin\-O\-slash}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin \o}
}
% \glsxtrLatinLslash
\gcmd{gls\-xtr\-Latin\-L\-slash}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of Latin \l}
}
% \glsxtrGeneralLatinAtoMrules
\gcmd{gls\-xtr\-General\-Latin\-A\-to\-M\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{expands to the A--M subset of General Latin I sort rules}
}
% \glsxtrGeneralLatinNtoZrules
\gcmd{gls\-xtr\-General\-Latin\-N\-to\-Z\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{expands to the N--Z subset of General Latin I sort rules}
}
% \glsxtrGeneralLatinAtoGrules
\gcmd{gls\-xtr\-General\-Latin\-A\-to\-G\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{expands to the A--G subset of General Latin I sort rules}
}
% \glsxtrGeneralLatinHtoMrules
\gcmd{gls\-xtr\-General\-Latin\-H\-to\-M\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{expands to the H--M subset of General Latin I sort rules}
}
% \glsxtrGeneralLatinNtoSrules
\gcmd{gls\-xtr\-General\-Latin\-N\-to\-S\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{expands to the N--S subset of General Latin I sort rules}
}
% \glsxtrGeneralLatinTtoZrules
\gcmd{gls\-xtr\-General\-Latin\-T\-to\-Z\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{expands to the T--Z subset of General Latin I sort rules}
}
% \glsxtrGeneralLatinIrules
\gcmd{gls\-xtr\-General\-Latin\-I\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the first set of General Latin sort rules}
}
% \glsxtrGeneralLatinIIrules
\gcmd{gls\-xtr\-General\-Latin\-II\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the second set of General Latin sort rules}
}
% \glsxtrGeneralLatinIIIrules
\gcmd{gls\-xtr\-General\-Latin\-III\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the third set of General Latin sort rules}
}
% \glsxtrGeneralLatinIVrules
\gcmd{gls\-xtr\-General\-Latin\-IV\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the fourth set of General Latin sort rules}
}
% \glsxtrGeneralLatinVrules
\gcmd{gls\-xtr\-General\-Latin\-V\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the fifth set of General Latin sort rules}
}
% \glsxtrGeneralLatinVIrules
\gcmd{gls\-xtr\-General\-Latin\-VI\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the sixth set of General Latin sort rules}
}
% \glsxtrGeneralLatinVIIrules
\gcmd{gls\-xtr\-General\-Latin\-VII\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the seventh set of General Latin sort rules}
}
% \glsxtrGeneralLatinVIIIrules
\gcmd{gls\-xtr\-General\-Latin\-VIII\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the eighth set of General Latin sort rules}
}
% \glsxtrMathUpGreekIrules
\gcmd{gls\-xtr\-Math\-Up\-Greek\-I\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the first set of math upright Greek sort rules}
}
% \glsxtrMathUpGreekIIrules
\gcmd{gls\-xtr\-Math\-Up\-Greek\-II\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the second set of math upright Greek sort rules}
}
% \glsxtrMathItalicGreekIrules
\gcmd{gls\-xtr\-Math\-Italic\-Greek\-I\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the first set of math italic Greek sort rules}
}
% \glsxtrMathItalicGreekIIrules
\gcmd{gls\-xtr\-Math\-Italic\-Greek\-II\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the second set of math italic Greek sort rules}
}
% \glsxtrMathItalicUpperGreekIrules
\gcmd{gls\-xtr\-Math\-Italic\-Upper\-Greek\-I\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the first set of math italic \idx{uppercase} Greek sort rules}
}
% \glsxtrMathItalicUpperGreekIIrules
\gcmd{gls\-xtr\-Math\-Italic\-Upper\-Greek\-II\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the second set of math italic \idx{uppercase} Greek sort rules}
}
% \glsxtrMathItalicLowerGreekIrules
\gcmd{gls\-xtr\-Math\-Italic\-Lower\-Greek\-I\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the first set of math italic \idx{lowercase} Greek sort rules}
}
% \glsxtrMathItalicLowerGreekIIrules
\gcmd{gls\-xtr\-Math\-Italic\-Lower\-Greek\-II\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the second set of math italic \idx{lowercase} Greek sort rules}
}
% \glsxtrMathGreekIrules
\gcmd{gls\-xtr\-Math\-Greek\-I\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the first set of math Greek sort rules}
}
% \glsxtrMathGreekIIrules
\gcmd{gls\-xtr\-Math\-Greek\-II\-rules}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{expands to the second set of math Greek sort rules}
}
% \glsxtrUpAlpha
\gcmd{gls\-xtr\-Up\-Alpha}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright alpha}
}
% \glsxtrUpBeta
\gcmd{gls\-xtr\-Up\-Beta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright beta}
}
% \glsxtrUpGamma
\gcmd{gls\-xtr\-Up\-Gamma}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright gamma}
}
% \glsxtrUpDelta
\gcmd{gls\-xtr\-Up\-Delta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright delta}
}
% \glsxtrUpEpsilon
\gcmd{gls\-xtr\-Up\-Epsilon}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright epsilon}
}
% \glsxtrUpDigamma
\gcmd{gls\-xtr\-Up\-Digamma}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright digamma}
}
% \glsxtrUpZeta
\gcmd{gls\-xtr\-Up\-Zeta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright zeta}
}
% \glsxtrUpEta
\gcmd{gls\-xtr\-Up\-Eta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright eta}
}
% \glsxtrUpTheta
\gcmd{gls\-xtr\-Up\-Theta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright theta}
}
% \glsxtrUpIota
\gcmd{gls\-xtr\-Up\-Iota}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright iota}
}
% \glsxtrUpKappa
\gcmd{gls\-xtr\-Up\-Kappa}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright kappa}
}
% \glsxtrUpLambda
\gcmd{gls\-xtr\-Up\-Lambda}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright lambda}
}
% \glsxtrUpMu
\gcmd{gls\-xtr\-Up\-Mu}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright mu}
}
% \glsxtrUpNu
\gcmd{gls\-xtr\-Up\-Nu}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright nu}
}
% \glsxtrUpXi
\gcmd{gls\-xtr\-Up\-Xi}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright xi}
}
% \glsxtrUpOmicron
\gcmd{gls\-xtr\-Up\-Omicron}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright omicron}
}
% \glsxtrUpPi
\gcmd{gls\-xtr\-Up\-Pi}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright pi}
}
% \glsxtrUpRho
\gcmd{gls\-xtr\-Up\-Rho}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright rho}
}
% \glsxtrUpSigma
\gcmd{gls\-xtr\-Up\-Sigma}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright sigma}
}
% \glsxtrUpTau
\gcmd{gls\-xtr\-Up\-Tau}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright tau}
}
% \glsxtrUpUpsilon
\gcmd{gls\-xtr\-Up\-Upsilon}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright upsilon}
}
% \glsxtrUpPhi
\gcmd{gls\-xtr\-Up\-Phi}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright phi}
}
% \glsxtrUpChi
\gcmd{gls\-xtr\-Up\-Chi}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright chi}
}
% \glsxtrUpPsi
\gcmd{gls\-xtr\-Up\-Psi}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright psi}
}
% \glsxtrUpOmega
\gcmd{gls\-xtr\-Up\-Omega}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math Greek upright omega}
}
% \glsxtrMathItalicAlpha
\gcmd{gls\-xtr\-Math\-Italic\-Alpha}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek alpha}
}
% \glsxtrMathItalicBeta
\gcmd{gls\-xtr\-Math\-Italic\-Beta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek beta}
}
% \glsxtrMathItalicGamma
\gcmd{gls\-xtr\-Math\-Italic\-Gamma}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek gamma}
}
% \glsxtrMathItalicDelta
\gcmd{gls\-xtr\-Math\-Italic\-Delta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek delta}
}
% \glsxtrMathItalicEpsilon
\gcmd{gls\-xtr\-Math\-Italic\-Epsilon}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek epsilon}
}
% \glsxtrMathItalicDigamma
\gcmd{gls\-xtr\-Math\-Italic\-Digamma}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek digamma}
}
% \glsxtrMathItalicZeta
\gcmd{gls\-xtr\-Math\-Italic\-Zeta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek zeta}
}
% \glsxtrMathItalicEta
\gcmd{gls\-xtr\-Math\-Italic\-Eta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek eta}
}
% \glsxtrMathItalicTheta
\gcmd{gls\-xtr\-Math\-Italic\-Theta}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek theta}
}
% \glsxtrMathItalicIota
\gcmd{gls\-xtr\-Math\-Italic\-Iota}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek iota}
}
% \glsxtrMathItalicKappa
\gcmd{gls\-xtr\-Math\-Italic\-Kappa}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek kappa}
}
% \glsxtrMathItalicLambda
\gcmd{gls\-xtr\-Math\-Italic\-Lambda}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek lambda}
}
% \glsxtrMathItalicMu
\gcmd{gls\-xtr\-Math\-Italic\-Mu}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek mu}
}
% \glsxtrMathItalicNu
\gcmd{gls\-xtr\-Math\-Italic\-Nu}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek nu}
}
% \glsxtrMathItalicXi
\gcmd{gls\-xtr\-Math\-Italic\-Xi}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek xi}
}
% \glsxtrMathItalicOmicron
\gcmd{gls\-xtr\-Math\-Italic\-Omicron}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek omicron}
}
% \glsxtrMathItalicPi
\gcmd{gls\-xtr\-Math\-Italic\-Pi}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek pi}
}
% \glsxtrMathItalicRho
\gcmd{gls\-xtr\-Math\-Italic\-Rho}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek rho}
}
% \glsxtrMathItalicSigma
\gcmd{gls\-xtr\-Math\-Italic\-Sigma}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek sigma}
}
% \glsxtrMathItalicTau
\gcmd{gls\-xtr\-Math\-Italic\-Tau}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek tau}
}
% \glsxtrMathItalicUpsilon
\gcmd{gls\-xtr\-Math\-Italic\-Upsilon}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek upsilon}
}
% \glsxtrMathItalicPhi
\gcmd{gls\-xtr\-Math\-Italic\-Phi}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek phi}
}
% \glsxtrMathItalicChi
\gcmd{gls\-xtr\-Math\-Italic\-Chi}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek chi}
}
% \glsxtrMathItalicPsi
\gcmd{gls\-xtr\-Math\-Italic\-Psi}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek psi}
}
% \glsxtrMathItalicOmega
\gcmd{gls\-xtr\-Math\-Italic\-Omega}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the variations of math italic Greek omega}
}
% \glsxtrMathItalicPartial
\gcmd{gls\-xtr\-Math\-Italic\-Partial}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the Unicode codepoint for math italic partial differential}
}
% \glsxtrMathItalicNabla
\gcmd{gls\-xtr\-Math\-Italic\-Nabla}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.27+}
\desc{(sort rule) expands to the Unicode codepoint for nabla}
}
% \glsxtrSetWidest
\gcmd{gls\-xtr\-Set\-Widest}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\margm{type}\margm{level}}
\desc{written to the \ext{glstex} by the
\resourceopt{set-widest} option}
}
% \glsxtrSetWidestFalback
\gcmd{gls\-xtr\-Set\-Widest\-Fallback}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\margm{type}\margm{level}}
\desc{written to the \ext{glstex} by the
\resourceopt{set-widest} option if \app{bib2gls} can't
determine the widest name}
}
% \GlsXtrIfHasNonZeroChildCount
\gcmds{Gls\-Xtr\-If\-Has\-Non\-Zero\-Child\-Count}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.47+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{tests if the value in the \glosfield{childcount} field is
non-zero (using \gls{GlsXtrIfFieldNonZero}). This requires the
\resourceopt{save-child-count} resource option}
}
% \glsxtrdisplaysupploc
\gcmds{gls\-xtr\-display\-supp\-loc}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.36+}
\syntax{\margm{prefix}\margm{counter}\margm{format}\margm{src}\margm{location}}
\desc{like \gls{glsnoidxdisplayloc} but used for supplementary
locations}
}
% \glsxtrmultisupplocation
\gcmds{gls\-xtr\-multi\-supp\-location}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.36+}
\syntax{\margm{src}\margm{location}\margm{format}}
\desc{used by \gls{glsxtrdisplaysupploc} to format the
location}
}
% \glsxtrdisplaylocnameref
\gcmd{gls\-xtr\-display\-loc\-name\-ref}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\margm{prefix}\margm{counter}\margm{format}\margm{location}\margm{title}\margm{href}\margm{hcounter}\margm{file}}
\desc{used to display \records\ created with
\opteqvalref{record}{nameref}}
}
% \glsxtrtitlednamereflink
\gcmd{gls\-xtr\-titled\-name\-ref\-link}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\syntax{\margm{format}\margm{location}\margm{title}\margm{file}}
\desc{used by \gls{glsxtrdisplaylocnameref} to display locations
that have a title and are not associated with the \ctr{page} counter
and don't have an associated \gls{glsxtrcounterlocfmt} command.
The anchor is obtained from \gls{glsxtrrecentanchor}}
}
% \glsxtrlocationanchor
\gcmd{gls\-xtr\-location\-anchor}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{defined by \gls{glsxtrdisplaylocnameref} to expand to the
anchor constructed from \meta{counter} and \meta{hcounter},
which corresponds to the record counter}
}
% \glsxtrrecentanchor
\gcmd{gls\-xtr\-recent\-anchor}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{defined by \gls{glsxtrdisplaylocnameref} to expand to
the \meta{href} argument. This corresponds to the value of
\gls{@currentHref} when the record was created}
}
% \glsxtractualanchor
\gcmd{gls\-xtr\-actual\-anchor}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\desc{expands to the anchor required by \gls{glsxtrdisplaylocnameref}}
}
% \glsxtrsetactualanchor
\gcmd{gls\-xtr\-set\-actual\-anchor}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\syntax{\margm{counter}}
\desc{hook used by \gls{glsxtrdisplaylocnameref} to override
the default definition of \gls{glsxtractualanchor}}
}
% \glsxtr<counter>locfmt
\gcmdmeta{gls\-xtr}{counter}{loc\-fmt}
{
\note{user defined}
\syntax{\margm{location}\margm{title}}
\desc{used by \gls{glsxtrdisplaylocnameref} for format a
\location\ where the counter matches \meta{counter}}
}
% \glsxtrequationlocfmt
\gcmd{gls\-xtr\-equation\-loc\-fmt}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.42+}
\syntax{\margm{location}\margm{title}}
\desc{used by \gls{glsxtrdisplaylocnameref} to format a
\location\ where the counter is \ctr{equation}}
}
% \glsxtrwrglossarylocfmt
\gcmd{gls\-xtr\-wr\-glossary\-loc\-fmt}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.49+}
\syntax{\margm{location}\margm{title}}
\desc{used by \gls{glsxtrdisplaylocnameref} to format a
\location\ where the counter is \ctr{wrglossary}}
}
% \glsxtrnamereflink
\gcmd{gls\-xtr\-name\-ref\-link}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\margm{format}\margm{title}\margm{target}\margm{file}}
\desc{used by \gls{glsxtrdisplaylocnameref} to create a
\location\ hyperlink}
}
% \glsxtrfmtinternalnameref
\gcmd{gls\-xtr\-fmt\-internal\-name\-ref}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\margm{target}\margm{format}\margm{file}}
\desc{used by \gls{glsxtrnamereflink} to create an internal
\location\ hyperlink}
}
% \glsxtrfmtexternalnameref
\gcmd{gls\-xtr\-fmt\-external\-name\-ref}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\margm{target}\margm{format}\margm{title}\margm{file}}
\desc{used by \gls{glsxtrnamereflink} to create an external
\location\ hyperlink}
}
% \glsxtrnameloclink
\gcmd{gls\-xtr\-name\-loc\-link}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.37+}
\syntax{\margm{prefix}\margm{counter}\margm{format}\margm{location}\margm{text}\margm{file}}
\desc{create an external \location\ hyperlink using the prefix and counter}
}
% RESOURCE OPTIONS
\gidx{resourceopt}{\name{resource options}%
\field{text}{resource option}%
\desc{these options may be used in the optional argument of
\gls{GlsXtrLoadResources} and \gls{glsxtrresourcefile}}
}
% resource option loc-prefix
\gresourceopt{loc\dhyphen prefix}%
{%
\syntax{\meta{value}}
\initval{false}
\desc{inserts a prefix in front of \idxpl{locationlist}}
}
% resource option loc-suffix
\gresourceopt{loc\dhyphen suffix}%
{%
\syntax{\meta{value}}
\initval{false}
\desc{inserts a suffix at the end of \idxpl{locationlist}}
}
% resource option group-level
\gresourceopt{group\dhyphen level}
{
\syntax{\meta{value}}
\initval{0}
\desc{if the \switch{group} switch is used, this indicates which
\idxpl{hierarchicallevel} should have the \gloskey{group} field
set. The default is 0, which means the \idx{group} is only set for
top-level entries. This option has no effect if the default
\switch{no-group} is in effect}
}
% resource option label-prefix
\gresourceopt{label\dhyphen prefix}%
{%
\syntax{\meta{value}}
\desc{inserts a prefix in front of primary entry labels}
}
% resource option dual-prefix
\gresourceopt{dual\dhyphen prefix}%
{%
\syntax{\meta{value}}
\initval{dual.}
\desc{inserts a prefix in front of dual entry labels}
}
% resource option src
\gresourceopt{src}%
{%
\syntax{\meta{list}}
\initvalcs{jobname}
\desc{a comma-separated list of \ext+{bib} files that contain the
entry data (the file extension may be omitted)}
}
% resource option selection
\gresourceopt{selection}%
{%
\syntax{\meta{value}}
\initval{recorded and deps and see}
\desc{the selection criteria}
}
% resource option sort-field
\gresourceopt{sort\dhyphen field}%
{%
\syntax{\meta{value}}
\initval{sort}
\desc{the field to use for sorting}
}
% resource option sort-replace
\gresourceopt{sort\dhyphen replace}%
{%
\syntax{\meta{regex list}}
\desc{the value is a command separated list of
\margm{regex}\margm{replacement} pairs to perform on the sort value}
}
% resource option save-locations
\gresourceopt{save\dhyphen locations}%
{%
\syntax{\meta{value}}
\initval{true}
\defval{true}
\desc{determines whether or not to save the \idx{locationlist}.
This was originally a boolean option but as from \app{bib2gls} v3.0 it
now takes additional values}
}
% resource option loc-counters
\gresourceopt{loc\dhyphen counters}%
{%
\syntax{\meta{counter list}}
\desc{indicates that the \idx{locationlist} should be divided up
into counter groups corresponding to the listed counters}
}
% resource option sort
\gresourceopt{sort}%
{%
\syntax{\meta{value}}
\initval{doc}
\desc{identifies the sort method. The default is to use the
document's language or (if not set) the default locale}
}
% resource option save-index-counter
\gresourceopt{save\dhyphen index\dhyphen counter}%
{%
\syntax{\meta{value}}
\initval{false}
\desc{determines whether or not to create the
\glosfield{indexcounter} \idx{internalfield} with the value set to the first
\ctr{wrglossary} \location. This option is designed to be used
with the \opt{indexcounter} package option}
}
% resource option save-child-count
\gresourceopt{save\dhyphen child\dhyphen count}%
{%
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{if true, each entry will have the total number of child
entries stored in the \glosfield{childcount} field and the list of
children will be stored in the \glosfield{childlist} field}
}
% resource option post-description-dot
\gresourceopt{post\dhyphen description\dhyphen dot}%
{%
\syntax{\meta{value}}
\initval{none}
\desc{appends a \idx{fullstop} to the \gloskey{description} field.
Allowed values: \optfmt{none} (no change), \optfmt{all} (append for all selected entries),
\optfmt{check} (only appends according to certain criteria). Note this inserts the
punctuation into the field value not in the \idx{postdeschook}.
See the \app{bib2gls} manual for further details.}
}
% resource option alias-loc
\gresourceopt{alias\dhyphen loc}
{
\syntax{\meta{value}}
\initval{transfer}
\desc{if an entry has an \gloskey{alias} field, this setting indicates
whether to keep the \idx{locationlist}, transfer it, or omit it}
}
% resource option see
\gresourceopt{see}
{
\syntax{\meta{value}}
\initval{transfer}
\desc{if an entry has an \gloskey{see} field, this setting indicates
whether to show the cross-reference at the start or end of the \idx{locationlist}
or omit it}
}
% resource option seealso
\gresourceopt{seealso}
{
\syntax{\meta{value}}
\initval{transfer}
\desc{if an entry has an \gloskey{seealso} field, this setting indicates
whether to show the cross-reference at the start or end of the \idx{locationlist}
or omit it}
}
% resource option alias
\gresourceopt{alias}
{
\syntax{\meta{value}}
\initval{transfer}
\desc{if an entry has an \gloskey{alias} field, this setting indicates
whether to show the cross-reference at the start or end of the \idx{locationlist}
or omit it}
}
% resource option supplemental-locations
\gresourceopt{supplemental\dhyphen locations}
{
\syntax{\meta{basename list}}
\desc{add \locations\ from the supplemental documents to the
corresponding entry's \idx{locationlist}}
}
% resource option prune-xr
\gresourceopt{prune\dhyphen xr}
{
\syntax{\meta{boolean}}
\initval{false}
\desc{shortcut option that enables pruning for both the
\gloskey{see} and \gloskey{seealso} fields}
}
% resource option sort-label-list
\gresourceopt{sort\dhyphen label\dhyphen list}
{
\syntax{\meta{field-list}:\meta{sort}:\meta{csname}}
\desc{instructs \app{bib2gls} to sort the given field values
(which must contain comma-separated lists of labels) according
to the given sort method. The final \code{:\meta{csname}} is
optional and indicates that the sort value should be obtained by
encapsulating the item with the command with the given control
sequence name (which needs to be recognised by \app{bib2gls})}
}
% resource option compound-adjust-name
\gresourceopt{compound\dhyphen adjust\dhyphen name}
{
\syntax{\meta{value}}
\desc{adjusts the \gloskey{name} of main entries in compound sets}
}
% resource option description-case-change
\gresourceopt{description\dhyphen case\dhyphen change}
{
\syntax{\meta{value}}
\desc{applies a \idx{casechange} to the \gloskey{description} field}
}
% resource option name-case-change
\gresourceopt{name\dhyphen case\dhyphen change}
{
\syntax{\meta{value}}
\desc{applies a \idx{casechange} to the \gloskey{name} field}
}
% resource option entry-type-aliases
\gresourceopt{entry\dhyphen type\dhyphen aliases}
{
\syntax{\meta{key=val list}}
\desc{the value is a comma-separated list of
\code{\meta{org type}\dequals\meta{new type}} elements, where
\meta{org type} is the original entry type given in the
\ext{bib} file (without the leading \code{@}) and \meta{new type}
is the entry type it should be treated as}
}
% resource option combine-dual-locations
\gresourceopt{combine\dhyphen dual\dhyphen locations}
{
\syntax{\meta{value}}
\desc{indicates whether or not to combine the
\idxpl{locationlist} for the primary and dual entries, and
indicates which entry (either or both) should have the \idx{locationlist}}
}
% resource option type
\gresourceopt{type}
{
\syntax{\meta{glossary-type}}
\desc{indicates that primary entries should be
assigned to the given \idx{glossary}}
}
% resource option category
\gresourceopt{category}
{
\syntax{\meta{category-label}}
\desc{indicates that primary entries should be
assigned to the given category}
}
% resource option group
\gresourceopt{group}
{
\syntax{\meta{group-label}}
\desc{indicates that primary entries should have the
\gloskey{group} field set to the given value}
}
% resource option trigger-type
\gresourceopt{trigger\dhyphen type}
{
\syntax{\meta{glossary-type}}
\desc{indicates that entries with trigger records should be
assigned to the given \idx{glossary}}
}
% resource option dual-type
\gresourceopt{dual\dhyphen type}
{
\syntax{\meta{glossary-type}}
\desc{indicates that dual entries should be
assigned to the given \idx{glossary}}
}
% resource option dual-field
\gresourceopt{dual\dhyphen field}
{
\syntax{\meta{field-name}}
\initval{false}
\defval{dual}
\desc{indicates that dual entry labels should be stored in the
given field}
}
% resource option dual-backlink
\gresourceopt{dual\dhyphen backlink}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{switches on all the dual backlink settings}
}
% resource option flatten
\gresourceopt{flatten}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{if true, sorting will ignore hierarchy and the
\gloskey{parent} key won't be used in the \ext{glstex} file, but the
parent entry will still be considered a dependency (unlike
\resourceoptvalm{ignore-fields}{parent})}
}
% resource option ignore-fields
\gresourceopt{ignore\dhyphen fields}
{
\syntax{\margm{field list}}
\desc{instructs \app{bib2gls} to ignore the listed fields}
}
% resource option secondary
\gresourceopt{secondary}
{
\syntax{\meta{sort}:\meta{field}:\meta{type}}
\desc{re-sorts the entries according to the given sort
method, using the value in the given \meta{field} as the sort
value, and copies the entry to the glossary identified by
\meta{type}. The \code{:\meta{field}} may be omitted, in which case
the \gloskey{sort} field is assumed}
}
% resource option symbol-sort-fallback
\gresourceopt{symbol\dhyphen sort\dhyphen fallback}
{
\syntax{\margm{field}}
\desc{if the \gloskey{sort} key is being used to obtain the sort
value but the \gloskey{sort} key hasn't been set for any symbol
entries (for example, \atentry{symbol} or \atentry{number}) then the
sort value will be obtained from the given \meta{field} instead. If
the \gloskey{sort} key has been set or if a different field is being
used for sorting, then this option has no effect}
}
% resource option field-aliases
\gresourceopt{field\dhyphen aliases}
{
\syntax{\margm{src-field=target-field list}}
\desc{makes \meta{src-field} an alias of \meta{target-field} for
each pair in the list}
}
% resource option replicate-fields
\gresourceopt{replicate\dhyphen fields}
{
\syntax{\margm{key=value list}}
\desc{where each element in the \meta{key=value list} is in the
form \code{\meta{src-field}\dequals\meta{dest-field list}},
this copies the value of the field identified by \meta{src-field} to
each field in the comma-separated \meta{dest-field list}}
}
% resource option interpret-fields
\gresourceopt{interpret\dhyphen fields}
{
\syntax{\margm{field list}}
\desc{replaces each field in the list with its interpreted value}
}
% resource option set-widest
\gresourceopt{set\dhyphen widest}
{
\syntax{\meta{boolean}}
\initval{false}
\defval{true}
\desc{instructs \app{bib2gls} to determine the widest entry name
for use with styles like \glostyle{alttree}. Only suitable for
textual names}
}
% resource option sort-rule
\gresourceopt{sort\dhyphen rule}
{
\syntax{\margm{value}}
\desc{the comparator rule to use with \resourceoptval{sort}{custom}}
}
% COMMANDS: LANGUAGE-SENSITIVE
% \glossaryname
\gcmd{glossary\-name}%
{%
\initval{Glossary}%
\note{language-sensitive}
\desc{expands to the default \idx{glossary} title (provided by
\sty{glossaries} if not already defined)}
}%
% \indexname
\gcmd{index\-name}%
{%
\initval{Index}%
\note{language-sensitive}
\desc{expands to the index title}
}%
% \acronymname
\gcmd{acronym\-name}%
{%
\providedby{\sty{glossaries}}
\initval{Acronyms}%
\note{language-sensitive}
\desc{expands to the title of the \code{acronym} \idx{glossary}}
}%
% \abbreviationsname
\gcmd{abbre\-vi\-a\-tions\-name}%
{%
\initval{Abbreviations}%
\providedby{\sty{glossaries-extra}}
\note{language-sensitive}
\desc{expands to the title of the \code{abbreviations} \idx{glossary}.
The default is \qt{Abbreviations} or \gls{acronymname} if \sty{babel}
has been detected}
}%
% \glsnumbersgroupname
\gcmd{gls\-numbers\-group\-name}%
{%
\providedby{\sty{glossaries}}
\initval{Numbers}%
\note{language-sensitive}
\desc{expands to the title of the \code{numbers} \idx{group} and
(if the \opt{numbers} package option is used) the
\code{numbers} \idx{glossary}}
}%
% \glssymbolsgroupname
\gcmd{gls\-symbols\-group\-name}%
{%
\providedby{\sty{glossaries}}
\initval{Symbols}%
\note{language-sensitive}
\desc{expands to the title of the \code{symbols} \idx{group} and
(if the \opt{symbols} package option is used) the
\code{symbols} \idx{glossary}}
}%
% \seename
\gcmd{see\-name}%
{%
\initval{see}%
\note{language-sensitive}
\desc{used as a cross-reference tag (provided by
\sty{glossaries} if not already defined)}
}%
% \seealsoname
\gcmd{see\-also\-name}%
{%
\providedby{\sty{glossaries-extra} v1.16+}
\initval{see also}%
\note{language-sensitive}
\desc{used as a cross-reference tag. The default value is
\gls{alsoname}, if that command has been defined, or \qt{see also}}
}%
% \alsoname
\gcmd{also\-name}%
{%
\initval{see also}%
\note{language-sensitive}
\desc{used as a cross-reference tag (provided by language
packages, such as \sty{babel})}
}%
% \entryname
\gcmd{entry\-name}%
{%
\providedby{\sty{glossaries}}
\initval{Notation}%
\note{language-sensitive}
\desc{expands to the title of the name column for headed
\env{tabular}-like styles}
}%
% \descriptionname
\gcmd{description\-name}%
{%
\providedby{\sty{glossaries}}
\initval{Description}%
\note{language-sensitive}
\desc{expands to the title of the description column for headed
\env{tabular}-like styles}
}%
% \symbolname
\gcmd{symbol\-name}%
{%
\providedby{\sty{glossaries}}
\initval{Symbol}%
\note{language-sensitive}
\desc{expands to the title of the symbol column for headed
\env{tabular}-like styles}
}%
% \pagelistname
\gcmd{page\-list\-name}%
{%
\providedby{\sty{glossaries}}
\initval{Page List}%
\note{language-sensitive}
\desc{expands to the title of the \idx{locationlist} column for headed
\env{tabular}-like styles}
}%
% COMMANDS: PLURAL SUFFIXES
% \glspluralsuffix
\gcmd{gls\-plural\-suffix}{
\desc{expands to the letter \qt{s} and is used to form default
plurals. This command isn't language-sensitive as there's
guarantee when it will be expanded. (It may be expanded when
the entry is defined or it may be expanded when the entry is
used). If you need to suppress this suffix for abbreviations,
use the \catattr{noshortplural} attribute. If you need an
apostrophe before the \qt{s} for single-letter abbreviations to
avoid ambiguity, use the \catattr{aposplural} attribute}
}
% \acrpluralsuffix
\gcmd{acr\-plural\-suffix}{
\banned
\desc{used for the plural suffixes for the base package's
acronym mechanism. Not used with \sty{glossaries-extra}'s abbreviations,
which use \gls{glsxtrabbrvpluralsuffix},
\gls{abbrvpluralsuffix} and commands provided for use with
particular \idxpl{abbrvstyle}. This command should not be used
with \sty{glossaries-extra}}
}
% \glsxtrabbrvpluralsuffix
\gcmd{gls\-xtr\-abbrv\-plural\-suffix}{
\providedby{\sty{glossaries-extra} v1.12+}
\initvalcs{glspluralsuffix}
\desc{the default plural suffix used for abbreviations}
}
% \abbrvpluralsuffix
\gcmd{abbrv\-plural\-suffix}{
%\providedby{\sty{glossaries-extra} v1.0+}
\initvalcs{glsxtrabbrvpluralsuffix}
\desc{style-sensitive abbreviation suffix. This is the command
that's actually used in the value of the \gloskey{shortplural} key
when an entry is defined with \gls{newabbreviation} (unless
suppressed with the \catattr{noshortplural} attribute). This command is
redefined by the \idxpl{abbrvstyle} to
\gls{glsxtrabbrvpluralsuffix} or the style's custom suffix command
(such as \gls{glsxtrscsuffix})}
}
% \glsxtrscsuffix
\gcmd{gls\-xtr\-sc\-suffix}{
%\providedby{\sty{glossaries-extra} 0.5+}
\desc{the plural suffix used by the \idx{smallcaps} (\qt{sc})
\idxpl{abbrvstyle}. This switches off the \idx{smallcaps} font to
prevent the suffix from also appearing in \idx{smallcaps}}
}
% \glsxtrsmsuffix
\gcmd{gls\-xtr\-sm\-suffix}{
%\providedby{\sty{glossaries-extra} 0.5+}
\initvalcs{glsxtrabbrvpluralsuffix}
\desc{the plural suffix used by the smaller (\qt{sm}) \idxpl{abbrvstyle}
(such as \abbrstyle{short-sm-long})}
}
% \glsxtremsuffix
\gcmd{gls\-xtr\-em\-suffix}{
%\providedby{\sty{glossaries-extra} 0.5+}
\initvalcs{glsxtrabbrvpluralsuffix}
\desc{the plural suffix used by the emphasized (\qt{em}) \idxpl{abbrvstyle}}
}
% \glsxtrusersuffix
\gcmd{gls\-xtr\-user\-suffix}{
\providedby{\sty{glossaries-extra} v1.04+}
\initvalcs{glsxtrabbrvpluralsuffix}
\desc{the plural suffix used by styles like \abbrstyle{short-long-user}}
}
% \glsxtrscusersuffix
\gcmd{gls\-xtr\-sc\-user\-suffix}{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{the plural suffix used by styles like
\abbrstyle{long-postshort-sc-user}}
}
% \glsxtrhyphensuffix
\gcmd{gls\-xtr\-hyphen\-suffix}{
\providedby{\sty{glossaries-extra} v1.17+}
\initvalcs{glsxtrabbrvpluralsuffix}
\desc{the plural suffix used by the \qt{hyphen} \idxpl{abbrvstyle}
(such as \abbrstyle{short-hyphen-long-hyphen})}
}
% \glsxtronlysuffix
\gcmd{gls\-xtr\-only\-suffix}{
\providedby{\sty{glossaries-extra} v1.17+}
\initvalcs{glsxtrabbrvpluralsuffix}
\desc{the plural suffix used by the \qt{only} \idxpl{abbrvstyle}
(such as \abbrstyle{long-only-short-only})}
}
% \glsxtrsconlysuffix
\gcmd{gls\-xtr\-sc\-only\-suffix}{
\providedby{\sty{glossaries-extra} v1.48+}
\initvalcs{glsxtrscsuffix}
\desc{the plural suffix used by the \qt{sc-only} \idxpl{abbrvstyle}
(such as \abbrstyle{long-only-short-sc-only})}
}
% COMMANDS: POST-LINK HOOKS
% \glspostlinkhook
\gcmd{gls\-post\-link\-hook}{%
\providedby{\sty{glossaries} v4.16+}
\desc{a \idx{postlinkhook} used after all the \idx{glslike} and
\idx{glstextlike} commands. This is redefined by
\sty{glossaries-extra} to use \gls{glsxtrpostlinkhook}}
}
% \glsxtrpostlinkhook
\gcmd{gls\-xtr\-post\-link\-hook}{%
%\providedby{\sty{glossaries-extra} v1.0+}%
\desc{a \idx{postlinkhook} that
checks if a following \idx{fullstop} needs to be discarded, in which case
it does \gls{glsxtrpostlinkendsentence}, otherwise it does
\gls{glsxtrpostlink}}
}
% \glsxtrpostlinkendsentence
\gcmd{gls\-xtr\-post\-link\-end\-sentence}
{
%\providedby{\sty{glossaries-extra} v1.0+}%
\desc{a \idx{postlinkhook} that's used if a \idx{fullstop} is
discarded in order to adjust the space factor (to denote the end
of a sentence). If the \idx{catpostlinkhook} exists, and will be applied and the
\idx{fullstop} will be restored}
}
% \glsxtrpostlink
\gcmd{gls\-xtr\-post\-link}{%
%\providedby{\sty{glossaries-extra} v1.0+}%
\desc{a \idx{postlinkhook} that does \gls{glsxtrpostlinkcat} if
that command has been defined, where the category label is
obtained from the entry that has just been referenced with a
\idx{glslike} or \idx{glstextlike} command (using \gls{glslabel}).
Does nothing if \gls{glsxtrpostlinkcat} isn't defined}
}
% \glsxtrpostlink<category>
\gcmd{glsxtrpostlinkcat}{%
\name{{}\csfmt{gls\-xtr\-post\-link\meta{category}}}
%\providedby{\sty{glossaries-extra} v1.0+}%
\desc{the \idx{postlinkhook} associated with the category
identified by the label \meta{category}}
}
% \glsdefpostlink
\gcmd{gls\-def\-post\-link}{%
\syntax{\margm{category}\margm{definition}}
\providedby{\sty{glossaries-extra} v1.31+}%
\desc{defines \idx{postlinkhook} associated with the category
identified by the label \meta{category}. This simply (re)defines
\gls{glsxtrpostlinkcat} for the given \meta{category} to
\meta{definition}}
}
% \glspretopostlink
\gcmd{gls\-pre\-to\-post\-link}{%
\syntax{\margm{category}\margm{code}}
\providedby{\sty{glossaries-extra} v1.49+}%
\desc{prepends \meta{code} to \idx{postlinkhook} associated with the category
identified by the label \meta{category} (or simply defines it,
if it doesn't already exist)}
}
% \glsapptopostlink
\gcmd{gls\-app\-to\-post\-link}{%
\syntax{\margm{category}\margm{code}}
\providedby{\sty{glossaries-extra} v1.49+}%
\desc{appends \meta{code} to \idx{postlinkhook} associated with the category
identified by the label \meta{category} (or simply defines it,
if it doesn't already exist)}
}
% \glsxtrpostlinkAddDescOnFirstUse
\gcmd{gls\-xtr\-post\-link\-Add\-Desc\-On\-First\-Use}{%
%\providedby{\sty{glossaries-extra} v0.3+}%
\desc{may be used within a \idx{postlinkhook} to display the
description in parentheses on \idx{firstuse}}
}
% \glsxtrpostlinkAddSymbolOnFirstUse
\gcmd{gls\-xtr\-post\-link\-Add\-Symbol\-On\-First\-Use}{%
%\providedby{\sty{glossaries-extra} v0.3+}%
\desc{may be used within a \idx{postlinkhook} to display the
symbol in parentheses on \idx{firstuse}}
}
% \glsxtrpostlinkAddSymbolDescOnFirstUse
\gcmd{gls\-xtr\-post\-link\-Add\-Symbol\-Desc\-On\-First\-Use}{%
\providedby{\sty{glossaries-extra} v1.31+}%
\desc{may be used within a \idx{postlinkhook} to display the
symbol and description in parentheses on \idx{firstuse}}
}
% \glsxtrpostlinkSymbolDescSep
\gcmd{gls\-xtr\-post\-link\-Symbol\-Desc\-Sep}{%
\providedby{\sty{glossaries-extra} v1.49+}%
\desc{used by \gls{glsxtrpostlinkAddSymbolDescOnFirstUse} to
separate the symbol and description, if both are set}
}
% \glsxtrdiscardperiod
\gcmd{gls\-xtr\-discard\-period}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{entry-label}\margm{discarded}\margm{no discard}\meta{token}}
\providedby{\sty{glossaries-extra}}%
\desc{if \meta{token} is a \idx{fullstop} and the entry's
\idxpl{categoryattribute} indicate that a \idx{fullstop} should be discarded
(such as \catattr{discardperiod}),
then \meta{discarded} is performed, otherwise
\meta{no discard} is done and the \meta{token} is processed. The actual test to
determine if \meta{token} is a \idx{fullstop} is performed by
\gls{glsxtrifperiod}. This command is used in \glspl{postlinkhook}}
}
% \glsxtrifcustomdiscardperiod
\gcmd{gls\-xtr\-if\-custom\-discard\-period}
{
\providedby{\sty{glossaries-extra} v1.23+}
\syntax{\margm{true}\margm{false}}
\initval{\meta{false}}
\desc{user hook to trigger a check for a following \idx{fullstop}.
This should do \meta{true} if there should be a check for a
following \idx{fullstop} otherwise should do \meta{false}}
}
% \glsxtrifperiod
\gcmd{gls\-xtr\-if\-period}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{true}\margm{false}\meta{token}}
\providedby{\sty{glossaries-extra}}%
\desc{does \meta{true} if \meta{token} is a \idx{fullstop}, otherwise
does \meta{false}}
}
% \glsxtrdiscardperiodretainfirstuse
\gcmd{gls\-xtr\-discard\-period\-retain\-first\-use}{%
\providedby{\sty{glossaries-extra} v1.49+}%
\syntax{\margm{entry-label}\margm{discarded}\margm{no discard}\meta{token}}
\desc{used to discard a following \idx{fullstop} when the
\catattr{retainfirstuseperiod} attribute is set}
}
% \glsxtrdopostpunc
\gcmd{gls\-xtr\-do\-post\-punc}{%
\providedby{\sty{glossaries-extra} v1.49+}
\syntax{\margm{code}\meta{token}}
\desc{if \meta{token} is a recognised punctuation character
(see \gls{glsxtrifnextpunc}) this does the punctuation
character and then \meta{code}, otherwise if does \meta{code}
followed by \meta{token}}
}
% \glsxtrifnextpunc
\gcmd{gls\-xtr\-if\-next\-punc}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{true}\margm{false}}
\providedby{\sty{glossaries-extra}}%
\desc{performs \meta{true} if this command is followed by a
recognised punctuation character otherwise does \meta{false}.
The list of recognised punctuation marks is initialised to \code{.,:;?!}
(\idx{fullstop}, comma, colon, semicolon, question mark, and
exclamation mark). Additional punctuation characters can be
added with \gls{glsxtraddpunctuationmark}}
}
% \glsxtraddpunctuationmark
\gcmd{gls\-xtr\-add\-punctuation\-mark}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{token(s)}}
\desc{adds \meta{token(s)} to the list of punctuation characters
used by \gls{glsxtrifnextpunc}. You may list multiple characters
at the same time to add a batch, but don't add any separators
(including spaces). Note that each character must be a
single token, which means a single-byte character for \pdfLaTeX.
Multi-byte characters (\idx{utf8}) will required a native
Unicode engine (\XeLaTeX\ or \LuaLaTeX)}
}
% \glsxtrsetpunctuationmarks
\gcmd{gls\-xtr\-set\-punctuation\-marks}{%
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{token list}}
\desc{sets the punctuation list used by \gls{glsxtrifnextpunc}.
The \meta{token list} must be a non-delimited list of single
tokens that represent each punctuation character. Note that the
element of the list must be a single token, which means a single-byte
character for \pdfLaTeX\ (for example, \idx{ascii}). Multi-byte
characters (\idx{utf8}) will required a native Unicode engine
(\XeLaTeX\ or \LuaLaTeX)}
}
% COMMANDS: bib2gls
% \bibglssettotalrecordcount
\gcmd{bib\-gls\-set\-total\-record\-count}
{
\providedby{\app{bib2gls} v1.1+}
\syntax{\margm{entry-label}\margm{value}}
\desc{sets the total record count for the given entry}
\field{seealso}{switch.record-count}
}
% \bibglssetrecordcount
\gcmd{bib\-gls\-set\-record\-count}
{
\providedby{\app{bib2gls} v1.1+}
\syntax{\margm{entry-label}\margm{counter}\margm{value}}
\desc{sets the \meta{counter} record count for the given entry}
\field{seealso}{switch.record-count}
}
% \bibglssetlocationrecordcount
\gcmd{bib\-gls\-set\-location\-record\-count}
{
\providedby{\app{bib2gls} v1.1+}
\syntax{\margm{entry-label}\margm{counter}\margm{location}\margm{value}}
\desc{sets the location record count for the given entry}
\field{seealso}{switch.record-count-unit}
}
% \bibglsprimaryprefixlabel
\gcmd{bib\-gls\-primary\-prefix\-label}
{
\providedby{\app{bib2gls} v1.8+}
\syntax{\margm{label-prefix}}
\desc{hook written to the \ext{glstex} file identifying the
primary label prefix}
}
% \bibglsdualprefixlabel
\gcmd{bib\-gls\-dual\-prefix\-label}
{
\providedby{\app{bib2gls} v1.8+}
\syntax{\margm{label-prefix}}
\desc{hook written to the \ext{glstex} file identifying the
dual label prefix}
}
% \bibglstertiaryprefixlabel
\gcmd{bib\-gls\-tertiary\-prefix\-label}
{
\providedby{\app{bib2gls} v1.8+}
\syntax{\margm{label-prefix}}
\desc{hook written to the \ext{glstex} file identifying the
tertiary label prefix}
}
% \GlsXtrTotalRecordCount
\gcmd{Gls\-Xtr\-Total\-Record\-Count}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}}
\desc{expands to the entry's total record count (stored in
the \glosfield{recordcount} field) or to 0 if not set}
}
% \GlsXtrRecordCount
\gcmd{Gls\-Xtr\-Record\-Count}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}\margm{counter}}
\desc{expands to the entry's record count for the given
\idxc{locationcounter}{counter} (stored in
the \glosfield{recordcount.counter} field) or to 0 if not set}
}
% \GlsXtrLocationRecordCount
\gcmd{Gls\-Xtr\-Location\-Record\-Count}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}\margm{counter}\margm{location}}
\desc{expands to the entry's record count for the given
\idxc{locationcounter}{counter} and \location\ (stored in
the \glosfield{recordcount.counter.location} field) or
to 0 if not set}
}
% \glsxtrenablerecordcount
\gcmd{gls\-xtr\-enable\-record\-count}
{
\providedby{\sty{glossaries-extra} v1.21+}
\desc{redefines the \idx{glslike} commands (except \gls{glsdisp})
to use the analogous record count commands (\gls{rgls} etc)}
}
% \rgls
\gcmdspa{rgls}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{like \gls{gls} but hooks into the entry's record count}
\field{seealso}{glsxtrifrecordtrigger,rglsformat,switch.record-count}
}
% \rglspl
\gcmdspa{rgls\-pl}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{like \gls{glspl} but hooks into the entry's record count}
\field{seealso}{glsxtrifrecordtrigger,rglsplformat,switch.record-count}
}
% \rGls
\gcmdspa{rGls}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{like \gls{Gls} but hooks into the entry's record count}
\field{seealso}{glsxtrifrecordtrigger,rGlsformat,switch.record-count}
}
% \rGlspl
\gcmdspa{rGls\-pl}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{like \gls{Glspl} but hooks into the entry's record count}
\field{seealso}{glsxtrifrecordtrigger,rGlsplformat,switch.record-count}
}
% \rGLS
\gcmdspa{rGLS}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{like \gls{GLS} but hooks into the entry's record count}
\field{seealso}{glsxtrifrecordtrigger,rGLSformat,switch.record-count}
}
% \rGLSpl
\gcmdspa{rGLS\-pl}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\oargm{options}\margm{entry-label}\oargm{insert}}
\desc{like \gls{GLSpl} but hooks into the entry's record count}
\field{seealso}{glsxtrifrecordtrigger,rGlsplformat,switch.record-count}
}
% \glsxtrifrecordtrigger
\gcmd{gls\-xtr\-if\-record\-trigger}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}\margm{true}\margm{false}}
\desc{does \meta{true} if the entry's total record count
(obtained with \gls{glsxtrrecordtriggervalue}) exceeds the value
supplied by the \catattr{recordcount} attribute,
otherwise does \meta{false}}
\field{seealso}{rgls,GlsXtrSetRecordCountAttribute,switch.record-count}
}
% \glsxtrrecordtriggervalue
\gcmd{gls\-xtr\-record\-trigger\-value}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}}
\desc{expands to the trigger value used by \gls{glsxtrifrecordtrigger}}
\field{seealso}{rgls,switch.record-count}
}
% \glstriggerrecordformat
\gcmd{gls\-trigger\-record\-format}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{location}}
\desc{used as a special location format that indicates that the
record is a trigger record}
\field{seealso}{rgls,switch.record-count}
}
% \GlsXtrSetRecordCountAttribute
\gcmd{Gls\-Xtr\-Set\-Record\-Count\-Attribute}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{category-list}\margm{value}}
\desc{sets the \catattr{recordcount} attribute to \meta{value}
for each of the listed categories}
}
% \rglsformat
\gcmd{rgls\-format}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{format used by \gls{rgls} if the entry's record count is more
than the given trigger value}
}
% \rglsplformat
\gcmd{rgls\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{format used by \gls{rglspl} if the entry's record count is more
than the given trigger value}
}
% \rGlsformat
\gcmd{rGls\-format}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{format used by \gls{rGls} if the entry's record count is more
than the given trigger value}
}
% \rGlsplformat
\gcmd{rGls\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{format used by \gls{rGlspl} if the entry's record count is more
than the given trigger value}
}
% \rGLSformat
\gcmd{rGLS\-format}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{format used by \gls{rGLS} if the entry's record count is more
than the given trigger value}
}
% \rGLSplformat
\gcmd{rGLS\-pl\-format}
{
\providedby{\sty{glossaries-extra} v1.21+}
\syntax{\margm{entry-label}\margm{insert}}
\desc{format used by \gls{rGLSpl} if the entry's record count is more
than the given trigger value}
}
% \bibglsnewdualindexsymbolsecondary
\gcmd{bib\-gls\-new\-dual\-index\-symbol\-secondary}
{
\providedby{\app{bib2gls}}
\syntax{\margm{label}\margm{options}\margm{name}\margm{description}}
\desc{defines secondary terms provided with \atentry{dualindexsymbol}}
}
% \bibglssetlastgrouptitle
\gcmd{bib\-gls\-set\-last\-group\-title}
{
\providedby{\app{bib2gls}}
\syntax{\margm{cs}\margm{specs}}
\desc{sets the last group title}
}
% \GlsXtrDualField
\gcmd{Gls\-Xtr\-Dual\-Field}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.30+}
\initval{dual}
\desc{expands to the \idx{internalfieldlabel} used by \gls{GlsXtrDualBackLink}}
}
% \GlsXtrDualBackLink
\gcmd{Gls\-Xtr\-Dual\-Back\-Link}
{
\providedby{\sty{glossaries-extra-bib2gls} v1.30+}
\syntax{\margm{text}\margm{entry-label}}
\desc{Adds a hyperlink to the given entry's dual (whose label is
stored in the field given by \gls{GlsXtrDualField}) with the
given hyperlink text}
}
% COMMANDS: ON THE FLY
% \GlsXtrEnableOnTheFly
\gcmds{Gls\-Xtr\-Enable\-On\-The\-Fly}
{
%\providedby{\sty{glossaries-extra} v0.5.4+}
\desc{enables on the fly commands, such as \gls{glsxtr}}
}
% \glsxtr
\gcmd{gls\-xtr}
{
%\providedby{\sty{glossaries-extra} v0.5.4+}
\syntax{\oargm{gls-options}\oargm{dfn-options}\margm{entry-label}}
\desc{if \meta{entry-label} has already been defined, this just
references it, otherwise the entry is defined. This command must
be enabled with \gls{GlsXtrEnableOnTheFly}}
}
% \glsxtrpl
\gcmd{gls\-xtr\-pl}
{
%\providedby{\sty{glossaries-extra} v0.5.4+}
\syntax{\oargm{gls-options}\oargm{dfn-options}\margm{entry-label}}
\desc{as \gls{glsxtr} but shows the plural form}
}
% \Glsxtr
\gcmd{Gls\-xtr}
{
%\providedby{\sty{glossaries-extra} v0.5.4+}
\syntax{\oargm{gls-options}\oargm{dfn-options}\margm{entry-label}}
\desc{as \gls{glsxtr} but applies \idx{sentencecase}}
}
% \Glsxtrpl
\gcmd{Gls\-xtr\-pl}
{
%\providedby{\sty{glossaries-extra} v0.5.4+}
\syntax{\oargm{gls-options}\oargm{dfn-options}\margm{entry-label}}
\desc{as \gls{glsxtrpl} but applies \idx{sentencecase}}
}
% \glsxtrcat
\gcmd{gls\-xtr\-cat}
{
%\providedby{\sty{glossaries-extra} v0.5.4+}
\initval{general}
\desc{expands to the default category set by commands like \gls{glsxtr}}
}
% COMMANDS: OTHER
% \GlsXtrInternalLocationHyperlink
\gcmd{Gls\-Xtr\-Internal\-Location\-Hyper\-link}
{
\providedby{\sty{glossaries-extra} v1.29+}
\syntax{\margm{counter}\margm{prefix}\margm{location}}
\desc{used by \gls{glsxtrlocationhyperlink} to create an
internal hyperlink to the given location (advanced command, see
documented code for use)}
}
% \glsxtrlocationhyperlink
\gcmd{gls\-xtr\-location\-hyper\-link}
{
\providedby{\sty{glossaries-extra} v1.14+}
\syntax{\margm{counter}\margm{prefix}\margm{location}}
\desc{used to create a hyperlink to either an external or an
internal location, depending on whether or not
\gls{glsxtrsupplocationurl} is defined and not empty (advanced command, see
documented code for use)}
}
% \glsxtrundefaction
\gcmd{gls\-xtr\-un\-def\-action}
{
\providedby{\sty{glossaries-extra} v1.08+}
\syntax{\margm{message}\margm{additional help}}
\desc{will either produce an error or a warning, depending on
the \opt{undefaction} setting. In the \envfmt{document} environment
this will also generate the unknown marker (\idx{unknowntag})}
}
% \glsxtrundeftag
\gcmd{gls\-xtr\-un\-def\-tag}
{
\providedby{\sty{glossaries-extra} v1.08+}
\initval{\glsxtrundeftag}
\desc{expands to the unknown marker (\idx{unknowntag})}
}
% \ProvidesGlossariesExtraLang
\gcmd{Provides\-Glossaries\-Extra\-Lang}
{
%\providedby{\sty{glossaries-extra} v0.5.3+}
\syntax{\margm{tag}}
\desc{should be placed at the start of a \sty{glossaries-extra}
\ext{ldf} file}
}
% \RequireGlossariesExtraLang
\gcmd{Require\-Glossaries\-Extra\-Lang}
{
%\providedby{\sty{glossaries-extra} v0.5.3+}
\syntax{\margm{tag}}
\desc{indicates that a \sty{glossaries-extra}
\ext{ldf} file should be input, if it hasn't already been input}
}
% \GlsXtrNoGlsWarningHead
\gcmd{Gls\-Xtr\-No\-Gls\-Warning\-Head}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{glossary-label}\margm{file}}
\desc{produces the header boilerplate text if a glossary file is missing}
}
% \GlsXtrNoGlsWarningEmptyStart
\gcmd{Gls\-Xtr\-No\-Gls\-Warning\-Empty\-Start}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{produces the boilerplate text if a glossary is
probably empty}
}
% \GlsXtrNoGlsWarningEmptyMain
\gcmd{Gls\-Xtr\-No\-Gls\-Warning\-Empty\-Main}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{produces the boilerplate text if the probably empty
glossary is the \code{main} one}
}
% \GlsXtrNoGlsWarningEmptyNotMain
\gcmd{Gls\-Xtr\-No\-Gls\-Warning\-Empty\-Not\-Main}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{glossary-label}}
\desc{produces the boilerplate text if the probably empty
glossary is not the \code{main} one}
}
% \GlsXtrNoGlsWarningCheckFile
\gcmd{Gls\-Xtr\-No\-Gls\-Warning\-Check\-File}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{file}}
\desc{advisory message to check the file contents}
}
% \GlsXtrNoGlsWarningAutoMake
\gcmd{Gls\-Xtr\-No\-Gls\-Warning\-Auto\-Make}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{glossary-label}}
\desc{advisory message when \opt{automake} has been used}
}
% \GlsXtrNoGlsWarningMisMatch
\gcmd{Gls\-Xtr\-No\-Gls\-Warning\-Mis\-Match}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{advisory message on mis-matching \gls{makenoidxglossaries}}
}
% \GlsXtrNoGlsWarningBuildInfo
\gcmd{Gls\-Xtr\-No\-Gls\-Warning\-Build\-Info}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{build advice}
}
% \GlsXtrRecordWarning
\gcmd{Gls\-Xtr\-Record\-Warning}
{
\providedby{\sty{glossaries-extra} v1.31+}
\syntax{\margm{glossary-type}}
\desc{incorrect use of \gls{printglossary} with non-hybrid \opt{record}}
}
% \GlsXtrNoGlsWarningTail
\gcmd{Gls\-Xtr\-No\-Gls\-Warning\-Tail}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\desc{final paragraph of missing glossary boilerplate text}
}
% \GlsXtrNoGlsWarningNoOut
\gcmd{Gls\-Xtr\-No\-Gls\-Warning\-No\-Out}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{file}}
\desc{advisory if no output file was created}
}
% \glspar
\gcmd{gls\-par}
{
\providedby{\sty{glossaries}}
\desc{paragraph break (for instances where \gls{par} can't be used directly)}
}
% \glsbackslash
\gcmd{gls\-back\-slash}
{
\providedby{\sty{glossaries} v4.11+}
\desc{expands to a literal backslash}
}
% \glspercentchar
\gcmd{gls\-percent\-char}
{
\providedby{\sty{glossaries} v4.10+}
\desc{expands to a literal percent sign}
}
% \glstildechar
\gcmd{gls\-tilde\-char}
{
\providedby{\sty{glossaries} v4.10+}
\desc{expands to a literal tilde character}
}
% \GlsXtrExpandedFmt
\gcmd{Gls\-Xtr\-Expanded\-Fmt}
{
\providedby{\sty{glossaries-extra} v1.30+}
\syntax{\margm{cs}\margm{content}}
\desc{fully-expands \meta{content} and passes it to \meta{cs},
which must be a command that takes a single argument}
}
% \GlossariesExtraWarning
\gcmd{Glossaries\-Extra\-Warning}
{
%\providedby{\sty{glossaries-extra} v1.0+}
\syntax{\margm{message}}
\desc{writes a warning in the transcript with the current line
number. The \opt{nowarn} option redefines this command to do nothing}
}
% \GlossariesExtraWarningNoLine
\gcmd{Glossaries\-Extra\-Warning\-No\-Line}
{
%\providedby{\sty{glossaries-extra} v0.5+}
\providedby{\sty{glossaries-extra}}
\syntax{\margm{message}}
\desc{writes a warning in the transcript without a
corresponding line number. The \opt{nowarn}
option redefines this command to do nothing}
}
% \GlsXtrWarnDeprecatedAbbrStyle
\gcmd{Gls\-Xtr\-Warn\-Deprecated\-Abbr\-Style}
{
\providedby{\sty{glossaries-extra} v1.04+}
\syntax{\margm{old-name}\margm{new-name}}
\desc{issues a warning with \gls{GlossariesExtraWarning}
indicating that a deprecated abbreviation style has been used}
}
% \glsxtrNoGlossaryWarning
\gcmd{gls\-xtr\-No\-Glossary\-Warning}
{
%\providedby{\sty{glossaries-extra} v0.3+}
\syntax{\margm{glossary-type}}
\desc{issues a warning with \gls{GlossariesExtraWarning}
indicating that the given glossary is missing}
}
% \GlsXtrUnknownDialectWarning
\gcmd{Gls\-Xtr\-Unknown\-Dialect\-Warning}
{
\providedby{\sty{glossaries-extra} v1.32+}
\syntax{\margm{locale}\margm{root language}}
\desc{issues a warning with \gls{GlossariesExtraWarning}
indicating that a valid dialect label can't be determined for
the given locale and root language}
}
% \glsxtrstarflywarn
\gcmd{gls\-xtr\-star\-fly\-warn}
{
%\providedby{\sty{glossaries-extra} v0.5.4+}
\desc{issues a warning with \gls{GlossariesExtraWarning}
indicating that the experimental starred version of
\gls{GlsXtrEnableOnTheFly} has been used}
}
% \GlsXtrWarning
\gcmd{Gls\-Xtr\-Warning}
{
%\providedby{\sty{glossaries-extra} v0.5.4+}
\syntax{\margm{options}\margm{entry}}
\desc{issues a warning with \gls{GlossariesExtraWarning}
indicating that the given options list has been ignored by the
given entry because it has already been defined}
}
% \glsxtrmglsWarnAllSkipped
\gcmd{gls\-xtr\-mgls\-Warn\-All\-Skipped}
{
\providedby{\sty{glossaries-extra} v1.48+}
\syntax{\margm{message}\margm{insert}\margm{fmt-cs}}
\desc{issues the given warning message with \gls{GlossariesExtraWarning}
and does \code{\meta{fmt-cs}\margm{insert}} (this warning is used if all
elements of a multi-entry set are skipped)}
}
% \mpglsWarning
\gcmd{mpglsWarning}
{
\providedby{\sty{glossaries-extra} v1.48+}
\desc{issues a warning with \gls{GlossariesExtraWarning}
indicating that \sty{glossaries-prefix} is required for
\gls{mpgls} family of commands}
}
% \GlossariesAbbrStyleTooComplexWarning
\gcmd{Glossaries\-Abbr\-Style\-Too\-Complex\-Warning}
{
\providedby{\sty{glossaries-extra} v1.49+}
\desc{issues a warning with \gls{GlossariesExtraWarning}
when a command is used that isn't supported by a complex
abbreviation style}
}
% GENERAL COMMANDS AND ENVIRONMENTS (index only)
\genv{document}{}
\genv{description}{}
\genv{equation}{}
\genv{align}{}
\genv{figure}{}
\genv{table}{}
\genv{tabular}{}
\genv{long\-table}{}% longtable
\genv{super\-tabular}{}% supertabular
\genv{the\-index}{}% theindex
\genv{multi\-cols}{}% multicols
\genv{multi\-cols*}{}% multicols*
\gcmd{item}{\syntax{\oarg{marker}}}% \item
\gcmd{index\-space}{}% \indexspace
\gcmd{hsize}{}% \hsize
\gcmd{index}{}% \index
\gcmd{actual\-char}{}% \actualchar
\gcmd{level\-char}{}% \levelchar
\gcmd{quote\-char}{}% \quotechar
\gcmd{encap\-char}{}% \encapchar
\gcmd{table\-of\-contents}{}% \tableofcontents
\gcmd{char}{}% \char
\gcmd{null}{}% \null
\gcmd{relax}{}% \relax
\gcmd{tab\-u\-lar\-new\-line}{}% \tabularnewline
\gcmd{top\-rule}{}% \toprule
\gcmd{mid\-rule}{}% \midrule
\gcmd{bottom\-rule}{}% \bottomrule
\gcmd{par\-indent}{}% \parindent
\gcmd{line\-width}{}% \linewidth
\gcmd{tab\-col\-sep}{}% \tabcolsep
\gcmd{@gobble}{}% \@gobble
\gcmd{@first\-of\-one}{}% \@firstofone
\gcmd{@first\-of\-two}{}% \@firstoftwo
\gcmd{@second\-of\-two}{}% \@secondoftwo
\gcmd{par}{}% \par
\gcmd{protect}{}% \protect
\gcmd{string}{}% \string
\gcmd{chapter}{}% \chapter
\gcmd{section}{}% \section
\gcmd{part}{}% \part
\gcmd{expand\-after}{}% \expandafter
\gcmd{expand\-once}{}% \expandonce
\gcmd{un\-skip}{}% \unskip
\gcmd{leave\-v\-mode}{}% \leavevmode
\gcmd{let}{}% \let
\gcmd{hfil}{}% \hfil
\gcmd{caption}{}% \caption
\gcmd{label}{}% \label
\gcmd{ref}{}% \ref
\gcmd{name\-ref}{}% \nameref
\gcmd{Get\-Title\-String\-Disable\-Commands}{}% \GetTitleStringDisableCommands
\gcmd{Get\-Title\-String\-Set\-up}{}% \GetTitleStringSetup
\gcmd{textsc}{}% \textsc
\gcmd{textbf}{}% \textbf
\gcmd{textup}{}% \textup
\gcmd{emph}{}% \emph
\gcmd{underline}{}% \underline
\gcmd{text\-smaller}{}% \textsmaller
\gcmd{text\-larger}{}% \textlarger
\gcmd{page\-ref}{}% \pageref
\gcmd{job\-name}{}% \jobname
\gcmd{input}{}% \input
\gcmd{the\-page}{}% \thepage
\gcmdmeta{the}{counter}{}{}% \the<counter>
\gcmdmeta{theH}{counter}{}{}% \theH<counter>
\gcmd{foreign\-language}{}% \foreignlanguage
\gpunccmd{amp}{\&}{}% \&
\gpunccmd{dollar}{\$}{}% \$
\gpunccmd{bksl}{\glsbackslash}{}% \\
\gcmd{new\-command}{}% \newcommand
\gcmd{re\-new\-command}{}% \renewcommand
\gcmd{provide\-command}{}% \providecommand
\gcmd{step\-counter}{}% \stepcounter
\gcmd{ref\-step\-counter}{}% \refstepcounter
\gcmd{@current\-label}{}% \@currentlabel
\gcmd{@current\-label\-name}{}% \@currentlabelname
\gcmd{@current\-Href}{}% \@currentHref
\gcmd{cs\-def}{}% \csdef
\gcmd{cs\-let}{}% \cslet
\gcmd{cs\-let\-cs}{}% \csletcs
\gcmd{let\-cs}{}% \letcs
\gcmd{if\-cs\-undef}{}% \ifcsundef
\gcmd{if\-undef}{}% \ifundef
\gcmd{if\-def\-empty}{}% \ifdefempty
\gcmd{if\-def\-string}{}% \ifdefstring
\gcmd{if\-cs\-string}{}% \ifcsstring
\gcmd{if\-cs\-void}{}% \ifcsvoid
\gcmd{app\-to}{}% \appto
\gcmd{pre\-to}{}% \preto
\gcmd{list\-cs\-add}{}% \listcsadd
\gcmd{list\-cs\-gadd}{}% \listcsgadd
\gcmd{list\-cs\-eadd}{}% \listcseadd
\gcmd{list\-cs\-xadd}{}% \listcsxadd
\gcmd{do\-list\-cs\-loop}{}% \dolistcsloop
\gcmd{for\-list\-cs\-loop}{}% \forlistcsloop
\gcmd{if\-in\-list\-cs}{}% \ifinlistcs
\gcmd{xif\-in\-list\-cs}{}% \xifinlistcs
\gcmd{hyper\-target}{}% \hypertarget
\gcmd{hyper\-link}{}% \hyperlink
\gcmd{hyper\-ref}{}% \hyperref
\gcmd{hl}{}% \hl
\gcmd{so}{}% \so
\gcmd{ul}{}% \ul
\gcmd{mbox}{}% \mbox
\gcmd{fbox}{}% \fbox
\gcmd{text\-super\-script}{}% \textsuperscript
\gcmd{text\-sub\-script}{}% \textsubscript
\gcmd{foot\-note}{}% \footnote
\gcmd{upper\-case}{}% \uppercase
\gcmd{Make\-Upper\-case}{}% \MakeUppercase
\gcmd{Make\-Text\-Upper\-case}{}% \MakeTextUppercase
\gcmd{Make\-Text\-Lower\-case}{}% \MakeTextLowercase
\gcmd{Make\-Lower\-case}{}% \MakeLowercase
\gcmd{main\-matter}{}% \mainmatter
\gcmd{front\-matter}{}% \frontmatter
\gcmd{back\-matter}{}% \backmatter
\gcmd{@start\-toc}{}% \@starttoc
\gcmd{mark\-right}{}% \markright
\gcmd{mark\-both}{}% \markboth
\gcmd{pdf\-book\-mark}{}% \pdfbookmark
\gcmd{tex\-or\-pdf\-string}{}% \texorpdfstring
\gcmd{No\-Case\-Change}{}% \NoCaseChange
\gcmd{pagestyle}{}% \pagestyle
\gcmd{alph}{}% \alph
\gcmd{Alph}{}% \Alph
\gcmd{arabic}{}% \arabic
\gcmd{roman}{}% \roman
\gcmd{Roman}{}% \Roman
\gcmd{@for}{}% \@for
\gcmd{@endfortrue}{}% \@endfortrue
\gcmd{alpha}{}% \alpha
\gcmd{beta}{}% \beta
\gcmd{Delta}{}% \Delta
\gcmd{digamma}{}% \digamma
\gcmd{up\-alpha}{}% \upalpha
\gcmd{up\-beta}{}% \upbeta
\gcmd{If\-Track\-ed\-Language\-File\-Exists}{}% \IfTrackedLanguageFileExists
% GENERAL COUNTERS
\gctr{page}{}
\gctr{section}{}
\gctr{chapter}{}
\gctr{part}{}
\gctr{equation}{}
\gctr{figure}{}
\gctr{table}{}
% TERMS
\gterm{indexingapp}{\name{indexing application}%
\desc{an application (piece of software) separate from
\protect\TeX/\protect\LaTeX\ that collates and sorts information that has an
associated page reference. Generally the information is an index
entry but in this case the information is a \idx{glossary} entry.
There are two main indexing applications that are used with \TeX:
\app+{makeindex} and \app+{xindy}. (There is also a new
application called \app{xindex}, but this isn't supported by
\sty{glossaries} or \sty{glossaries-extra}.) The \sty{glossaries-extra}
package additionally supports \app{bib2gls}. These are all
\idx{cli} applications.}%
}%
\gterm{indexing}{%
\name{indexing (or recording)}
\field{text}{indexing}
\desc{the process of saving the \idx+{entrylocation} and any
associated information that is required in the \idx{glossary}. In
the case of \app{makeindex} and \app{xindy}, the
\idx{entrylocation}, \idxc{locationencap}{encap}, entry item and sort value are written
to a supplementary file associated with the \idx{glossary} that is
subsequently read by \app{makeindex}\slash\app{xindy}. In the
case of \app{bib2gls} and the \qt{noidx} method, the
\idx{entrylocation}, \idxc{locationencap}{encap} and label is written to the
\ext+{aux} file. With \opteqvalref{record}{nameref}, the
current title and hyperlink target are also included. With
\app{bib2gls}, each line of data in the \ext{aux} is referred
to as a \qt{record} and indexing is referred to as
\qt{recording}. The \optval{record}{hybrid} option indexes
twice: a \app{bib2gls} record in the \ext{aux} file and a
\app{makeindex}\slash\app{xindy} line in the corresponding file, See
\sectionref{sec:wrglossary}}
}
\gterm{glossary}%
{%
\common
\name{glossary}
\field{plural}{glossaries}
\desc{technically a glossary is an alphabetical list of words
relating to a particular topic. For the purposes of describing
the \sty{glossaries} and \sty{glossaries-extra} packages, a
glossary is either the list produced by commands like
\gls{printglossary} or \gls{printunsrtglossary} (which may or
may not be ordered alphabetically) or a glossary is a set of
entry labels where the set is identified by the glossary label
or type}
}
\gidx{mini-glossary}{\field{plural}{mini-glossaries}}
\gidx{glossmini}{\name{glossary, mini}\field{see}{idx.mini-glossary}}
\gtermacr{cli}{CLI}{command-line interface}%
{%
\desc{an application that doesn't have a graphical user
interface. That is, an application that doesn't have any windows,
buttons or menus and can be run in
\dickimawhref{latex/novices/html/terminal.html}{a command
prompt or terminal}}%
}%
\gtermacr{gui}{GUI}{graphical user interface}%
{%
\desc{an application that has windows, buttons or menus}
}
\gtermacr{ascii}{ASCII}{American Standard Code for Information Interchange}
{%
\desc{a single-byte character encoding. Related blog article:
\blog{binary-files-text-files-and-file-encodings/}{Binary
Files, Text Files and File Encodings}}
}
\gtermacr{utf8}{UTF\glsxtrrevert{-8}}{Unicode Transformation Format (8-bit)}
{%
\desc{a variable-width encoding that uses 8-bit code units. This
means that some characters are represented by more that one byte.
\XeLaTeX\ and \LuaLaTeX\ treat the multi-byte sequence as a single
token, but the older \LaTeX\ formats have single-byte tokens, which
can cause complications, although these have mostly been addressed with
the newer kernels introduced over the past few years. Related blog article:
\blog{binary-files-text-files-and-file-encodings/}{Binary Files,
Text Files and File Encodings}}
}
\gterm{idx.group}{\name{group (letters, numbers, symbols)}
\field{text}{group}%
\desc{a logical division within a \idx{glossary} that is typically a
by-product of the \idx{indexingapp}['s] sorting algorithm. See also
\gallerypage{logicaldivisions}{Gallery: Logical Glossary Divisions
(type vs group vs parent)}}%
}%
\gterm{hierarchicallevel}{\name{hierarchical level}%
\desc{a number that indicates how many ancestors an entry has.
An entry with no parent has hierarchical level~0. If an entry
has a parent then the hierarchical level for the entry is one
more than the hierarchical level of the parent. Most styles will
format an entry according to its hierarchical level, giving
prominence to level~0 entries, although some may have a maximum
supported limit. The \idx{unsrtfam} allow the
hierarchical level to be locally adjusted by adding an offset
(\printglossopt{leveloffset}) or to have hierarchy ignored
(\printglossopt{flatten})}
}
\gterm{locationlist}{\name{location list}%
\desc{a list of \idxpl+{entrylocation} (also called a number
list). May be suppressed for all \idxpl{glossary} with the package option
\opt{nonumberlist} or for individual \idxpl{glossary} with
\printglossopt{nonumberlist}. With \app{bib2gls}, the list may
also be suppressed with \resourceoptval{save-locations}{false}}
}
\gterm{locationencap}{\name{location encap (format)}
\field{text}{location encap}
\desc{a command used to encapsulate an \idx{entrylocation}.
The control sequence name (without the leading backslash)
is identified by the \glsopt{format} key. The default encap is
\gls{glsnumberformat}}
}
\gterm{locationcounter}{\name{location counter}
\desc{the counter used to obtain the \idx{entrylocation}}
}
\gterm{entrylocation}{\common\name{entry location}%
\desc{the location of the entry in the document (obtained from
the \idx{locationcounter} or from the \glsopt{thevalue} option). This defaults to the page number
on which the entry has been
referenced with any of the \idx{glslike}, \idx{glstextlike} or \gls{glsadd}
commands. An entry may have multiple locations that form a list}
}
\gidx{numberlist}{\name{number list}\field{alias}{locationlist}}
\gterm{ignoredlocation}{\name{ignored location (or record)}%
\field{text}{ignored location}
\desc{a \location\ that uses \encap{glsignore} as the
\idxc{locationencap}{encap}. With \app{bib2gls}, this indicates that the entry
needs to be selected but the \location\ isn't added to the
\idx{locationlist}. With other methods, this will simply create
an invisible \location, which can result in unwanted commas if
the \idx{locationlist} has other items}
}
\gidx{locationignored}{\name{location, ignored\slash invisible}%
\field{see}{ignoredlocation}}
\gterm{ignoredglossary}{\name{ignored glossary}%
\field{plural}{ignored glossaries}%
\desc{a \idx{glossary} that has been defined using a command like
\gls{newignoredglossary}. These \idxpl{glossary} are omitted by
iterative commands, such as \gls{printglossaries} and
\gls{printunsrtglossaries}. An ignored
\idx{glossary} can only be displayed with \gls{printunsrtglossary}
or \gls{printunsrtinnerglossary}}
}
\gidx{glossaryignored}{\name{glossary, ignored}\field{see}{ignoredglossary}}
\gterm{firstuseflag}{\name{first use flag}%
\common
\desc{a conditional that keeps track of whether or not an entry
has been referenced by any of the \idx{glslike} commands (which
can adjust their behaviour according to whether or not this flag is
true). The conditional is true if the entry hasn't been used by
one of these commands
(or if the flag has been reset) and false if it has been used
(or if the flag has been unset). Note that multi-entries have
their own flag that's distinct from the first use flags of the
individual elements}
}
\gterm{firstuse}{\name{first use}%
\common
\desc{the first time an entry is used by a command that unsets
the \idx{firstuseflag} (or the first time since the flag was
reset). For multi-entry sets, see \idx{mfirstuse}}
}
\gterm{firstusetext}{\name{first use text}%
\common
\desc{the \idx{linktext} that is displayed on \idx{firstuse} of
the \idx{glslike} commands}
}
\gterm{subsequentuse}{\name{subsequent use}
\common
\desc{using an entry that unsets the \idx{firstuseflag} when it
has already been unset}
}
\gterm{mfirstuseflag}{\name{multi-entry first use flag}%
\desc{a conditional that keeps track of whether or not a
multi-entry has been used. This is distinct from the
\idxpl{firstuseflag} of the individual elements}
}
\gterm{mfirstuse}{\name{multi-entry first use}%
\field{text}{first use}
\desc{the first time a multi-entry is referenced (or the first time since
the \idx{mfirstuseflag} was reset). This is not necessary the
\idx{firstuse} of any of the individual entries that form the set}
}
\gterm{msubsequentuse}{\name{multi-entry subsequent use}%
\field{text}{subsequent use}
\desc{when a multi-entry that has already been marked as used is referenced.
This is not necessary the \idx{subsequentuse} of any of the individual entries
that form the set}
}
\gterm{glslike}{\common\name{{}\csfmt{gls}-like}
\desc{commands like \gls{gls} and \gls{glsdisp} that change the
\idx{firstuseflag}. These commands index the entry (if indexing
is enabled), create a hyperlink to the entry's \idx{glossary} listing (if enabled)
and unset the \idx{firstuseflag}. These commands end with the
\idx{postlinkhook}}
}
\gterm{glstextlike}{\common\name{{}\csfmt{glstext}-like}
\desc{commands like \gls{glstext} and \gls{glslink} that don't change
the \idx{firstuseflag}. These commands index the entry (if indexing
is enabled) and create a hyperlink to the entry's \idx{glossary} listing (if enabled). These commands end with the \idx{postlinkhook}}
}
\gterm{linktext}{\name{link text}%
\desc{the text produced by \idx{glslike} and \idx{glstextlike}
commands that have the potential to be a hyperlink}
}
\gterm{postlinkhook}{\name{post-link hook}
\desc{a hook (command) that is used after \idx{linktext} to
allow code to be automatically added. The base \sty{glossaries}
package provides a general purpose hook \gls{glspostlinkhook}. The
\sty{glossaries-extra} package modifies this command to provide
additional hooks, including \glspl{catpostlinkhook}}
}
\gterm{catpostlinkhook}{\name{category post-link hook}
\desc{a \idx{postlinkhook} called \gls{glsxtrpostlinkcat} that is
associated with a particular \idx{category}}
}
\gterm{postdeschook}{\name{post-description hook}%
\desc{a hook (\gls{glspostdescription}) included in some \idxpl{glossarystyle}
that is used after the description is displayed. The \sty{glossaries-extra} package modifies
this command to provide additional hooks, including \glspl{catpostdeschook}.
The \sty{glossaries-extra-stylemods}
package modifies the predefined styles provided with
\sty{glossaries} to ensure that they all use
\gls{glspostdescription} to allow the \glspl{catpostdeschook} to be
implemented}
}
\gterm{catpostdeschook}{\name{category post-description hook}
\desc{a \gls{postdeschook} called \gls{glsxtrpostdesccategory} that is
associated with a particular \idx{category}}
}
\gterm{postnamehook}{\name{post-name hook}%
\desc{a hook (command) that is used after the name is
displayed in \idxpl{glossarystyle}. These hooks are implemented by
\gls{glossentryname}, which needs to be present in the
\idx{glossarystyle}. The main hook is \gls{glsxtrpostnamehook},
which implements auto-indexing (see \sectionref{sec:autoindex}),
performs a general purpose hook \gls{glsextrapostnamehook}
and a \idx{category}-specific hook \gls{glsxtrpostnamecategory}}
}
\gterm{catpostnamehook}{\name{category post-name hook}
\desc{a \gls{postnamehook} called \gls{glsxtrpostnamecategory} that is
associated with a particular \idx{category}}
}
\gterm{standaloneentry}%
{%
\name{standalone entry}
\desc{normally the \idx{linktext} target is created in the
\idx{glossary}, where the entry's name and description (and optionally
other information, such as the symbol) are shown. It may be that
you don't want a list but need to have the name and description
somewhere in the document text. These are standalone entries.
Whilst it is possible to simply use \gls{glsentryname} and
\gls{glsentrydesc}, the \sty{glossaries-extra} package provides
a way inserting the name that includes the hypertarget for the
\idx{linktext} and obeys the \idx{postnamehook}}
}
\gterm{resourceset}%
{%
\name{resource set}
\desc{all the settings (\idxpl{resourceopt}) and entries associated with a particular
instance of \gls{GlsXtrLoadResources} (or \gls{glsxtrresourcefile})}
}
\gterm{resourcefile}%
{%
\name{resource file}
\desc{the \ext+{glstex} file created by \app{bib2gls} and loaded by
\gls{GlsXtrLoadResources} (or \gls{glsxtrresourcefile})}
}
\gterm{field}%
{%
\name{field}
\desc{entry data is stored in fields. These may have a
corresponding key used to set the value, such as \gloskey{name}
or \gloskey{description}, but field values may also be set
using commands like \gls{GlsXtrSetField}, in which case there
doesn't need to be a corresponding key. Some fields are
considered \idxpl{internalfield}. If you are using
\app{bib2gls}, it will only recognise fields in the \ext{bib}
file that have had a key defined in the document or that are
special to \app{bib2gls}}
}
\gterm{internalfield}%
{%
\name{internal field}
\desc{an internal \idx{field} may refer to a key that shouldn't be
used in the \ext{bib} file (\idx{bib2glsinternalfield}), such as
the \gloskey{group} field, or it may refer to the
\idxc{internalfieldlabel}{label} used to internally represent the
\idx{field} (which may or may not match the key used to set the
\idx{field} or may not have an associated key), such as \fieldfmt{useri} which
corresponds to the \gloskey{user1} key, or it may refer to a \idx{field}
that is only ever used internally that should not be explicitly
modified, such as the field used to store the entry's
hierarchical level
}
}
\gterm{bib2glsinternalfield}%
{%
\name{internal field (\appfmt{bib2gls})}
\desc{a \idx{field} that is used or assigned by \app{bib2gls}
that should typically not be used in the \ext+{bib} file}
}
\gterm{internalfieldlabel}%
{%
\name{internal field label}
\desc{the field label that forms part of the internal control
sequence used to store the field value. This may or may not
match the key used to assign the value when defining the entry.
See the \ctanmirrornofn{macros/latex/contrib/glossaries/glossaries-user.html\#tab:fieldmap}{\qt{Key to Field Mappings}} table in the \sty{glossaries}
user manual}
}
\gterm{unsrtfam}%
{%
\name{print \qt{unsrt} glossary commands (and environment)}
\field{text}{\qt{unsrt} family of commands}
\desc{the set of commands used for displaying a \idx{glossary} or
partial \idx{glossary} that have \qt{unsrt} in the name:
\gls{printunsrtglossary}, \gls{printunsrtglossaries} (which
internally uses \gls{printunsrtglossary}), and
\gls{printunsrtinnerglossary}. These all simply
iterate over the list of entries associated with the given
\idx{glossary}, in the order in which they were added to the \idx{glossary}
(hence \qt{unsrt}, which is short for \qt{unsorted}). The way that \app{bib2gls}
works is that it sorts the entries according to the
\idxpl{resourceopt} and adds the entries to the glossary in the
required order. These commands may be used with or without
\app{bib2gls}. If you don't use \app{bib2gls}, you will need
to manually ensure that the entries are added in the desired
order. The \env{printunsrtglossarywrap} environment may also be
included in this category, although it only sets up the start
and end of the \idx{glossary} for use with \gls{printunsrtinnerglossary}}
}
\gterm{whatsit}%
{%
\desc{a command whose execution is delayed or an OS-specific special command.
This includes writing to external files (which is what indexing does)}
}
\gterm{inlinefullform}%
{
\name{inline full form}
\desc{the full form of an abbreviation obtained with
\gls{glsxtrfull} or \gls{glsxtrfullpl} (or case-changing
variants). This may or may not produce the same result as the
full form on \idx{firstuse} of the corresponding \idx{glslike}
command (the \idx{displayfullform}), depending on the abbreviation style}
}
\gterm{displayfullform}%
{
\name{display full form}
\desc{the full form of an abbreviation obtained with
the \idx{firstuse} of \gls{gls} or \gls{glspl} (or case-changing
variants). This may or may not produce the same result as the
\idx{inlinefullform} the corresponding \idx{glsxtrfull} command,
depending on the abbreviation style}
}
\gterm{innerformatting}
{
\name{inner formatting}
\desc{the formatting applied by the \glsopt{innertextformat}
option, which redefines \gls{glsxtrgenentrytextfmt}. The inner
formatting can only be applied if \gls{glsxtrgenentrytextfmt} is
embedded within the entry's display style}
}
% FILE EXTENSIONS
\gext{log}{}%
\gext{aux}{\common}%
\gext{bib}{\common}%
\gext{tex}{\common}%
\gext{toc}{}%
\gext{glstex}{}%
\gext{glsdefs}{}%
\gext{glslabels}{}%
\gext{gls}{}%
\gext{glo}{}%
\gext{glg}{}%
\gext{ist}{}%
\gext{xdy}{}%
\gext{acr}{}%
\gext{gls-abr}{}%
\gext{glo-abr}{}%
\gext{glg-abr}{}%
\gext{ldf}{}%
% GENERAL INDEX
\gpunc{unknowntag}{\name{\code{??} (unknown entry marker)}
\field{text}{\code{??}}}
\gpunc{sym.fullstop}{\name{\code{.} (full stop or period)}
\field{see}{idx.fullstop}
}
\gpunc{sym.nbsp}{\name{\code{\textasciitilde} (non-breaking space)}
\field{see}{idx.nbsp}
}
\gpunc{sym.hash}{\name{\code{\#}}}
\gidx{uppercase}{\field{seealso}{idx.titlecase,idx.sentencecase,idx.allcaps}}
\gidx{lowercase}{}
\gidx{titlecase}{\name{title case}}
\gidx{sentencecase}{\common\name{sentence case}}
\gidx{allcaps}{\common\name{all caps}}
\gidx{casechange}{\name{case change}
\field{seealso}{idx.uppercase,idx.lowercase,idx.titlecase,idx.sentencecase,idx.allcaps}}
\gidx{smallcaps}{\name{small caps}}
\gidx{period}{\name{period (\code{.})}%
\field{text}{period}
\field{alias}{idx.fullstop}
}
\gidx{fullstop}{\name{full stop (\code{.})}%
\field{text}{full stop}
}
\gidx{nbsp}{\name{non-breaking space (\code{\textasciitilde})}
\field{symbol}{\code{\textasciitilde}}
}
\gidx{tab}{\name{tabulation (\code{\&})}
\field{symbol}{\code{\&}}
}
\gidx{amp}{\name{\code{\&}}\field{alias}{idx.tab}}
\gpunc{sym.startrange}{\name{\code{\nlctopenparen} (range start)}
\field{symbol}{\code{\nlctopenparen}}
}
\gpunc{sym.endrange}{\name{\code{\nlctcloseparen} (range end)}
\field{symbol}{\code{\nlctcloseparen}}
}
}
\title{\styfmt{glossaries-extra.sty} v1.50:
an extension to the \styfmt{glossaries} package}
\author{Nicola L.C. Talbot\\[10pt]
Dickimaw Books\\
\href{https://www.dickimaw-books.com/}{\nolinkurl{dickimaw-books.com}}}
\date{2022-11-08
}
\begin{document}
\maketitle
\htmlavailable
\begin{abstract}
The \sty{glossaries-extra} package is an extension to the
\sty{glossaries} package, providing additional features.
In particular, it provides a completely different abbreviation
mechanism.
You will need at least \sty{glossaries} version 4.19, but it is best
to update both packages at the same time, if new releases are
available for both of them.
\end{abstract}
\begin{warning}
The \sty{glossaries-extra} package uses a different set
of defaults to the base \sty{glossaries} package. This means that if
you simply replace \sty{glossaries} with \sty{glossaries-extra} in
an existing document, there may be some differences in the PDF, and
you may encounter errors. See \sectionref{sec:defaults} for more details.
\end{warning}
\begin{information}
This document assumes some familiarity with the \sty{glossaries} package.
If you are new to \sty{glossaries}, you may prefer to start with the
following:
\begin{itemize}
\item
\ctanmirrordocnofn{macros/latex/contrib/glossaries/glossariesbegin}{The
\styfmt{glossaries} package: a guide for beginners}
\texdocref{glossariesbegin}
\item
\ctanmirrornofn{support/bib2gls/bib2gls-begin.pdf}{\styfmt{glossaries-extra}
and \appfmt{bib2gls}: an
introductory guide}
\texdocref{bib2gls-begin}
\end{itemize}
\end{information}
\frontmatter
\tableofcontents
\listofexamples
\mainmatter
\part{User Guide}
\chapter{Introduction}
\label{sec:intro}
The \sty+{glossaries} package is a flexible package, but it's also a
heavy-weight package that uses a lot of resources. As package
developer, I'm caught between those users who complain about the
drawbacks of a heavy-weight package with a large user manual and
those users who want more features (which necessarily adds to the
package weight and manual size).
The \sty+{glossaries-extra} package is an attempt to provide
a~compromise for this conflict. Version 4.22 of the \sty{glossaries}
package is the last version to incorporate any major new features.
Future versions of \sty{glossaries} will mostly just be bug fixes.
New features will instead be added to \styfmt{glossaries-extra}.
This means that the base \styfmt{glossaries} package won't increase
in terms of package loading time and allocation of resources, but
those users who do want extra features available will have more of a
chance of getting their feature requests accepted.
\begin{important}
Some of the commands provided by the base \sty+{glossaries} package
are incompatible with \sty+{glossaries-extra}. These are marked with
\glssymbol{sym.banned} in this document.
\end{important}
The \sty{glossaries-extra} package internally loads the
\sty{glossaries} package. As a general rule, it's better to defer
loading the base \sty{glossaries} package to \sty{glossaries-extra}
rather than loading the two packages separately.
\section{Package Defaults}
\label{sec:defaults}
I'm not happy with some of the default settings assumed by the
\sty{glossaries} package, and, judging from code I've seen, other
users also seem unhappy with them, as certain package options are
often used in questions posted on various sites. I can't change the default
behaviour of \sty{glossaries} as it would break backward
compatibility, but since \sty{glossaries-extra} is a separate
package, I have decided to implement some of these commonly-used
options by default. You can switch them back if they're not
appropriate.
The new defaults are:
\begin{itemize}
\item \optval{toc}{true} (add the glossaries to the table of
contents). Use \optval{toc}{false} to switch this back off.
\item \optval{nopostdot}{true} (suppress the terminating \idx{fullstop}
after the description in the \idx{glossary}). Use
\optval{nopostdot}{false} or just \opt{postdot} to restore the
terminating \idx{fullstop}. Alternatively, if you are interested in
switching to \app{bib2gls}, you can instruct \app{bib2gls} to insert
it with the \resourceopt{post-description-dot} option.
\item \opt{noredefwarn} (suppress the warnings that occur when
the \env{theglossary} environment and \gls{printglossary} are redefined while
\sty{glossaries} is loading). Note that this won't have any effect if
the \sty{glossaries} package has already been loaded before you load
the \sty{glossaries-extra} package.
\item If \sty{babel} has been loaded, the \optval{translate}{babel}
option is switched on. To revert to using the \sty{translator}
interface, use \optval{translate}{true}. There is no change to the
default if \sty{babel} hasn't been loaded.
\item The default style used by \gls{newacronym} is
\abbrstyle{short-nolong}. (That is, the long form is not shown on
\idx{firstuse}.) To revert back to \qt{\meta{long} (\meta{short})} on
\idx{firstuse} do:
\begin{codebox}
\gls{setabbreviationstyle}\oarg{\cat{acronym}}\marg{\abbrstyle{long-short}}
\end{codebox}
In the above example, \abbrstyle{long-short} refers to the
\sty{glossaries-extra} \idx{abbrvstyle} not the \sty{glossaries} acronym style
of the same name. See \sectionref{sec:abbreviations} for further details.
\end{itemize}
\section{Example Differences Between \stytext{glossaries} and
\stytext{glossaries-extra}}
\label{sec:examplediffs}
The examples below illustrate the difference in explicit package
options between \sty{glossaries} and \sty{glossaries-extra}. There
may be other differences resulting from modifications to commands
provided by \sty{glossaries}.
\subsection{Basic defaults}
\label{sec:examplediffsbasic}
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\marg{glossaries-extra}
\end{codebox}
This is like:
\begin{codebox*}
\cmd{documentclass}\marg{article}
\cmd{usepackage}[\opt{toc},\opt{nopostdot}]\marg{glossaries}
\cmd{usepackage}\marg{glossaries-extra}
\end{codebox*}
\subsection{Language defaults}
\label{sec:examplediffslang}
\begin{codebox*}
\cmd{documentclass}[british]\marg{article}
\cmd{usepackage}\marg{\sty{babel}}
\cmd{usepackage}\marg{glossaries-extra}
\end{codebox*}
This is like:
\begin{codebox*}
\cmd{documentclass}[british]\marg{article}
\cmd{usepackage}\marg{\sty{babel}}
\cmd{usepackage}[\opt{toc},\opt{nopostdot},\optval{translate}{babel}]\marg{glossaries}
\cmd{usepackage}\marg{glossaries-extra}
\end{codebox*}
\subsection{Combined with \clstext{memoir}}
\label{sec:examplediffsmemoir}
\begin{codebox}
\cmd{documentclass}\marg{\cls{memoir}}
\cmd{usepackage}\marg{glossaries-extra}
\end{codebox}
This is like:
\begin{codebox}
\cmd{documentclass}\marg{\cls{memoir}}
\cmd{usepackage}[\opt{toc},\opt{nopostdot},\opt{noredefwarn}]\marg{glossaries}
\cmd{usepackage}\marg{glossaries-extra}
\end{codebox}
\emph{However}
\begin{codebox}
\cmd{documentclass}\marg{\cls{memoir}}
\cmd{usepackage}\marg{glossaries}
\cmd{usepackage}\marg{glossaries-extra}
\end{codebox}
This is like:
\begin{codebox}
\cmd{documentclass}\marg{\cls{memoir}}
\cmd{usepackage}[\optval{toc}{false},\optval{nopostdot}{false}]\marg{glossaries}
\cmd{usepackage}\marg{glossaries-extra}
\end{codebox}
Since by the time \sty{glossaries-extra} has been loaded,
the base \sty{glossaries} package has already redefined \cls{memoir}['s]
\idx{glossary}-related commands.
\subsection{Abbreviations}
\label{sec:examplediffsabbrv}
Abbreviations are defined with \gls{newabbreviation}:
\begin{codebox}
\cmd{usepackage}\marg{glossaries-extra}
\gls{newabbreviation}\marg{svm}\marg{SVM}\marg{support vector machine}
\cbeg{document}
First use: \gls{gls}\marg{svm}. Explicit full form: \gls{glsxtrfull}\marg{svm}.
\cend{document}
\end{codebox}
This is the closest match to:
\begin{codebox}
\cmd{usepackage}\marg{glossaries}
\gls{newacronym}\marg{svm}\marg{SVM}\marg{support vector machine}
\cbeg{document}
First use: \gls{gls}\marg{svm}. Explicit full form: \gls{acrfull}\marg{svm}.
\cend{document}
\end{codebox}
If you want to continue using \gls{newacronym} then you will need to
change the style for the \cat{acronym} \idx{category}:
\begin{codebox}
\cmd{usepackage}\marg{glossaries-extra}
\gls{setabbreviationstyle}\oarg{\cat{acronym}}\marg{\abbrstyle{long-short}}
\gls{newacronym}\marg{svm}\marg{SVM}\marg{support vector machine}
\cbeg{document}
First use: \gls{gls}\marg{svm}. Explicit full form: \gls{glsxtrfull}\marg{svm}.
\cend{document}
\end{codebox}
\begin{important}
Don't use commands like \gls{glsfirst} or \gls{glstext} with
abbreviations. See \sectionref{sec:abbreviations} for further
details.
\end{important}
\subsection{Glossary Mid-Build Placeholder (\glsfmttext{printglossary})}
\label{sec:examplediffprintgloss}
Another noticeable change with \sty{glossaries-extra} is that by
default \gls{printglossary} will now display information text in the
document if the external \idx{glossary} file doesn't exist. This is
explanatory text to help new users who can't work out what to do
next to complete the document build. Once the document is set up
correctly and the external files have been generated, this text will
disappear.
This change is mostly likely to be noticed by users with one or more
redundant empty glossaries who ignore transcript messages,
explicitly use \app+{makeindex}\slash\app+{xindy} on just the
non-empty \idx{glossary} (or \idxpl{glossary}) and use the iterative
\gls{printglossaries} command instead of \gls{printglossary}. For
example, consider the following:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}[\opt{acronym}]\marg{glossaries}
\gls{makeglossaries}
\gls{newacronym}\marg{laser}\marg{laser}\marg{light amplification by stimulated
emission of radiation}
\cbeg{document}
\gls{gls}\marg{laser}
\gls{printglossaries}
\cend{document}
\end{codebox}
The above document will only display the list of
acronyms at the place where \gls{printglossaries} occurs. However it
will also attempt to input the \ext{gls} file associated with
the \code{main} \idx{glossary}.
If you use \app{makeglossaries}, you'll get the warning message:
\begin{transcript}
Warning: File 'test.glo' is empty.
Have you used any entries defined in glossary 'main'?
Remember to use package option 'nomain' if you
don't want to use the main glossary.
\end{transcript}
(where the original file is called \filefmt{test.tex})
but if you simply call \app{makeindex} directly to generate the
\ext+{acr} file (without attempting to create the \ext{gls}
file) then the transcript file will always contain the message:
\begin{transcript}
No file test.gls.
\end{transcript}
This doesn't occur with \app{makeglossaries} as it will create
the \ext{gls} file containing the single command \gls{null}.
If you simply change from \sty{glossaries} to
\sty{glossaries-extra} in this document, you'll find a change in the
resulting PDF if you don't use \app{makeglossaries} and you only
generate the \ext{acr} file with \app{makeindex}.
The transcript file will still contain the message
about the missing \ext{gls}, but now you'll also see
information in the actual PDF document. The simplest remedy is to
follow the advice inserted into the document at that point, which is
to add the \opt{nomain} package option:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}[\opt{nomain},\opt{acronym},\opt{postdot}]\marg{glossaries-extra}
\gls{makeglossaries}
\gls{setabbreviationstyle}\oarg{\cat{acronym}}\marg{\abbrstyle{long-short}}
\gls{newacronym}\marg{laser}\marg{laser}\marg{light amplification by stimulated
emission of radiation}
\cbeg{document}
\gls{gls}\marg{laser}
\gls{printglossaries}
\cend{document}
\end{codebox}
\begin{information}
Note the need to set the acronym style using
\gls{setabbreviationstyle} before \gls{newacronym}.
See \sectionref{sec:abbreviations} for further details.
\end{information}
\section{Further Reading}
\label{sec:reading}
The following documents and web pages are also available:
\begin{itemize}
\item
\ctanmirrornofn{macros/latex/contrib/glossaries-extra/glossaries-extra-code.pdf}%
{The \styfmt{glossaries-extra} documented code}
\texdocref{glossaries-extra-code}
\item \gallery{Gallery: \styfmt{glossaries},
\styfmt{glossaries-extra} and \appfmt{bib2gls}}.
\item \dickimawhref{faq.php}{FAQs: \styfmt{glossaries},
\styfmt{glossaries-extra} and \appfmt{bib2gls}}.
\item \dickimawhref{latex/buildglossaries/}{Incorporating
\appfmt{makeglossaries} or \appfmt{makeglossaries-lite} or
\appfmt{bib2gls} into the document build}.
\item \ctanref{pkg/bib2gls}{The \appfmt{bib2gls} application}.
\item \ctanref{pkg/glossaries}{The \styfmt{glossaries} package}.
\end{itemize}
\chapter{Package Options}
\label{sec:pkgopts}
\pkgdef{glossaries-extra}
%
This chapter describes the package options provided by \sty{glossaries-extra}
that are either not defined by the base \sty{glossaries} package or are modified by
\sty{glossaries-extra}. You can additionally pass the base package
options to \sty{glossaries-extra}. For example, instead of:
\begin{codebox}
\cmd{usepackage}\oarg{\opt{nonumberlist}}\marg{glossaries}
\cmd{usepackage}\oarg{\opt{abbreviations}}\marg{glossaries-extra}
\end{codebox}
you can simply do:
\begin{codebox}
\cmd{usepackage}\oarg{\opt{abbreviations},\opt{nonumberlist}}\marg{glossaries-extra}
\end{codebox}
\begin{information}
It's better not to load the \sty{glossaries} package first.
Leave \sty{glossaries-extra} to load it, where possible, to allow for
a smoother integration between the two packages.
\end{information}
After \sty{glossaries-extra} has been loaded, some of the \sty{glossaries-extra}
package options may be changed with:
\cmddef{glossariesextrasetup}
where \meta{options} are the same as the relevant package option.
\begin{important}
Certain options can only be supplied as package options since the
settings need to be known while \sty{glossaries-extra} is loading.
\end{important}
To change the base \sty{glossaries} package's options (that may be
changed after the package has loaded), continue to use:
\cmddef{setupglossaries}
but don't use any of the options listed here in that command.
\section{Glossary Lists}
\label{sec:gloslistopts}
% PACKAGE OPTION: nomissingglstext
\optiondef{nomissingglstext}
If true, this will suppress the warning written to the transcript
and the warning text that will appear in the
document if the external glossary files haven't been generated due
to an incomplete document build. However, it's probably simpler
just to fix whatever has caused the failure to build the external
file or files.
% PACKAGE OPTION: abbreviations
\optiondef{abbreviations}
This option has no value and can't be cancelled. If used,
it will automatically create a new glossary with the label
\code{abbreviations} and redefines \gls{glsxtrabbrvtype} to this
label. (The file extensions are \ext+{glg-abr},
\ext+{gls-abr} and \ext+{glo-abr}.)
In addition, this option defines a shortcut command:
\cmddef*{printabbreviations}
which is equivalent to:
\begin{codebox}
\gls{printglossary}\oarg{\printglossoptval{type}{\gls{glsxtrabbrvtype}},\meta{options}}
\end{codebox}
If \sty{glossaries-extra-bib2gls} is also loaded then this option
will additionally provide \gls{printunsrtabbreviations}
which uses \gls{printunsrtglossary} instead.
The title of the new glossary is given by
\cmddef*{abbreviationsname}
If this command is already defined, it's left unchanged. Otherwise
it's defined to \qt{Abbreviations} if \sty{babel} hasn't been loaded
or \gls{acronymname} if \sty{babel} has been loaded. However, if
you're using \sty{babel} it's likely you will need to change this.
(See \sectionref{sec:lang} for further details.)
\begin{information}
If you don't use the \opt{abbreviations} package option,
the \gls{abbreviationsname} command won't be defined (unless it's
defined by an included language file).
\end{information}
If the \opt{abbreviations} option is used and the
\opt{acronym} option provided by the \sty{glossaries}
package hasn't been used, then \gls{acronymtype}
will be set to \gls{glsxtrabbrvtype} so that acronyms defined with
\gls{newacronym} can be added to the list of abbreviations. If you
want acronyms in the \code{main} glossary and other abbreviations in the
\code{abbreviations} glossary then you will need to redefine
\gls{acronymtype} to \code{main}:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{acronymtype}}\marg{main}
\end{codebox}
Note that there are no analogous options to the \sty{glossaries}
package's \opt{acronymlists} option (or associated commands)
as the abbreviation mechanism is handled differently with
\sty{glossaries-extra}.
% PACKAGE OPTION: symbols
\optiondef{symbols}
This is passed to the base \sty{glossaries} package, but
\sty{glossaries-extra} will additionally define:
\cmddef*{glsxtrnewsymbol}
which is equivalent to:
\begin{codebox}
\gls{newglossaryentry}\margm{entry-label}\marg{\gloskeyval{name}{\meta{symbol}},
\gloskeyval{sort}{\meta{entry-label}},\gloskeyval{type}{symbols},\gloskeyval{category}{symbol},
\meta{options}}
\end{codebox}
Note that the \gloskey{sort} key is set to the \meta{entry-label}
not the \meta{symbol} as the symbol will likely contain commands.
If this isn't appropriate, you can override it by using the \gloskey{sort} key
in the optional argument.
This option also sets the \catattr{regular} attribute to \code{true}
for the \cat{symbol} category and provides the
\idx{catpostdeschook}:
\cmddef*{glsxtrpostdescsymbol}
If \sty{glossaries-extra-bib2gls} is also loaded then this option
will additionally provide \gls{printunsrtsymbols}
which uses \gls{printunsrtglossary}.
% PACKAGE OPTION: numbers
\optiondef{numbers}
This is passed to the base \sty{glossaries} package but
\sty{glossaries-extra} will additionally define:
\cmddef*{glsxtrnewnumber}
which is equivalent to:
\begin{codebox}
\gls{newglossaryentry}\margm{entry-label}\marg{\gloskeyval{name}{\meta{number}},
\gloskeyval{sort}{\meta{entry-label}},\gloskeyval{type}{numbers},\gloskeyval{category}{number},
\meta{options}}
\end{codebox}
Note that the \gloskey{sort} key is set to the \meta{entry-label}.
If this isn't appropriate, you can override it by using the \gloskey{sort} key
in the optional argument.
This option also sets the \catattr{regular} attribute to \code{true}
for the \cat{number} category and provides the
\idx{catpostdeschook}:
\cmddef*{glsxtrpostdescnumber}
If \sty{glossaries-extra-bib2gls} is also loaded then this option
will additionally provide \gls{printunsrtnumbers}
which uses \gls{printunsrtglossary}.
% PACKAGE OPTION: acronyms
\optiondef{acronyms}
This is passed to the base \sty{glossaries} package (which defines
\gls{printacronyms} and creates a new glossary with the label \code{acronym}) but
if \sty{glossaries-extra-bib2gls} is loaded then this option will
additionally provide \gls{printunsrtacronyms}
which uses \gls{printunsrtglossary}.
As with the base \sty{glossaries} package, this option redefines
\gls{acronymtype} to \code{acronym}. Note that this option doesn't
change \gls{glsxtrabbrvtype}.
% PACKAGE OPTION: acronym
\optiondef{acronym}
If \optval{acronym}{true}, this behaves like \opt{acronyms}.
Note that \optval{acronym}{false} won't work if the base
\sty{glossaries} package was loaded before \sty{glossaries-extra}.
% PACKAGE OPTION: index
\optiondef{index}
This is passed to the base \sty{glossaries} package but
if \sty{glossaries-extra-bib2gls} is loaded then this option will
additionally provide \gls{printunsrtindex}
which uses \gls{printunsrtglossary}.
The base package \opt{index} option also defines:
\cmddef*{newterm}
This definition is modified by \sty{glossaries-extra} to
additionally set the \gloskey{category} to \cat{index} and sets the
\gloskey{description} to discard the \idx{postdeschook}
(\gls{nopostdesc}) but retain \gls{glsxtrpostdescription} so that
the \idx{catpostdeschook} can still be applied.
This option also sets the \catattr{regular} attribute to \code{true}
for the \cat{index} category and defines an associated
\idx{catpostdeschook}:
\cmddef*{glsxtrpostdescindex}
\section{Glossary Style Options}
\label{sec:glosstyleopts}
% PACKAGE OPTION: nopostdot
\optiondef{nopostdot}
This option is provided by \sty{glossaries} where it simply alters a
corresponding conditional that's used inside
\gls{glspostdescription} to determine whether or not to insert a
\idx{fullstop}.
The \opt{postpunc} option (see below) redefines \gls{glspostdescription}, so the
\opt{nopostdot} option is modified by \sty{glossaries-extra} to
reset the hook back to its original definition to
counteract any use of the \opt{postpunc} option.
\begin{important}
This option will have no effect if the \idx{glossarystyle} doesn't
include \gls{glspostdescription}. (Use \opt{stylemods} to ensure that all the
predefined styles that show the description have this hook added.)
\end{important}
If you are using \app{bib2gls}, you may prefer to use the
\resourceopt{post-description-dot} resource option.
% PACKAGE OPTION: postdot
\optiondef{postdot}
This is a shortcut for \optval{nopostdot}{false}.
% PACKAGE OPTION: postpunc
\optiondef{postpunc}
This option redefines \gls{glspostdescription} to display the
required punctuation. Note that this means the hook will no longer
check for the \opt{nopostdot} conditional.
\begin{important}
This option will have no effect if the \idx{glossarystyle} doesn't
include \gls{glspostdescription}. (Use \opt{stylemods} to ensure that all the
predefined styles that show the description have this hook added.)
\end{important}
The \opt{postpunc} value may either be the required punctuation or
one of the following keywords:
\optionvaldef{postpunc}{dot}
This redefines \gls{glspostdescription} to use a \idx{fullstop} but
also adjusts the space factor. This isn't exactly the same as
\optval{nopostdot}{false} since it removes the conditional from
\gls{glspostdescription}.
If you are using \app{bib2gls}, you may prefer to use the
\resourceopt{post-description-dot} resource option.
\optionvaldef{postpunc}{comma}
This redefines \gls{glspostdescription} to a comma.
\optionvaldef{postpunc}{none}
This redefines \gls{glspostdescription} to do nothing. This isn't
exactly the same as \optval{nopostdot}{true} since it removes the
conditional from \gls{glspostdescription}.
% PACKAGE OPTION: stylemods
\optiondef{stylemods}
Loads the \sty{glossaries-extra-stylemods} package (see
\sectionref{sec:stylemods}), which patches the styles provided with
the base \sty{glossaries} package so that they all use
\gls{glspostdescription}. Extra hooks are also provided to make them
easier to customize.
The value may be one of the following:
\optionvaldef{stylemods}{all}
Loads all styles that are provided by both \sty{glossaries} and
\sty{glossaries-extra}.
\optionvaldef{stylemods}{default}
Patches all the predefined styles that have been loaded, without
loading any extra styles. This will typically be all the styles that
are usually loaded by \sty{glossaries} (for example, \glostyle{list}
and \glostyle{long}). Package options such as \opt{nolist} will
alter which styles are loaded. In the case of \opt{nostyles}, no
styles will be loaded, so none of them will be patched.
\begin{information}
It's pointless using both \opteqvalref{stylemods}{default} and
\opt{nostyles}. Any \idx{glossarystyle} packages that are subsequently loaded
won't be patched.
\end{information}
\optionvaldef{stylemods}{list}
For each element \meta{tag} in \meta{list}, the corresponding package
\styfmt{glossary\dhyphen\meta{tag}} will be loaded. You can use
this in combination with \opt{nostyles} to only load the particular
style package or packages that you require (without loading the full
set of defaults). For example,
\begin{codebox}
\cmd{usepackage}[\opt{nostyles},\optval{stylemods}{\marg{bookindex,longextra}},
\optval{style}{bookindex}]\marg{\sty{glossaries-extra}}
\end{codebox}
This prevents the base \sty{glossaries} package from loading the
default set of styles, but loads \sty{glossaries-extra-stylemods},
\sty{glossary-bookindex} and \sty{glossary-longextra},
and then sets the default style to \glostyle{bookindex}.
\section{Loading Other Packages}
\label{sec:otherpkgopts}
Some options listed in other sections, such as the \opt{stylemods}
and \opt{record} options, also load supplementary packages.
% PACKAGE OPTION: prefix
\optiondef{prefix}
Loads the \sty{glossaries-prefix} package (if not already loaded).
% PACKAGE OPTION: accsupp
\optiondef{accsupp}
Loads the \sty{glossaries-accsupp} package (if not already loaded).
This option can only be used as a package option (not in
\gls{glossariesextrasetup}) as \sty{glossaries-extra} needs to know
whether or not to provide accessibility support while it's loading.
\begin{important}
The \sty{glossaries-accsupp} package is still experimental and so
accessibility features are liable to change.
\end{important}
If you want to define styles that can interface with the
accessibility support provided by \sty{glossaries-accsupp} use
the \csfmt{glsaccess\meta{xxx}} type of commands instead of
\csfmt{glsentry\meta{xxx}} (for example, \gls{glsaccesstext} instead of
\gls{glsentrytext}). If \sty{glossaries-accsupp} hasn't been loaded
those commands are equivalent (for example, \gls{glsaccesstext}
just does \gls{glsentrytext}) but if it has been loaded, then the
\csfmt{glsaccess\meta{xxx}} commands will add the accessibility
information. See \sectionref{sec:accsupp} for further details.
\section{Entry Definitions, References and Indexing}
\label{sec:refindexopts}
% PACKAGE OPTION: undefaction
\optiondef{undefaction}
This indicates what to do if an undefined \idx{glossary} entry is referenced.
\begin{important}
Undefined entries can't be picked up by any commands that iterate
over a \idx{glossary} list. This includes \gls{forglsentries} and
\gls{glsaddall}.
\end{important}
\optionvaldef{undefaction}{error}
Produces an error message for undefined \idx{glossary} entries.
\optionvaldef{undefaction}{warn}
Only produces a warning message for undefined \idx{glossary} entries. The
place where the entry has been referenced will be marked with
\idx{unknowntag} (as with undefined labels or citations). The
unknown marker is produced with:
\cmddef{glsxtrundeftag}
This defaults to two question marks.
Note that \gls{ifglsused} will only display \idx{unknowntag} in the document text with
\opteqvalref{undefaction}{warn} if the entry hasn't been defined, as the
underlying boolean variable doesn't exist and so is neither true nor
false. (There will also be a warning in the transcript.) You may
prefer to use \gls{GlsXtrIfUnusedOrUndefined} instead. See
\sectionref{sec:glsunset} for further details.
If you want to write a custom command that needs to generate a
warning or error for an undefined reference, you can use:
\cmddef{glsxtrundefaction}
This will produce the unknown marker if used within the document
environment. Depending on the \opt{undefaction},
\gls{glsxtrundefaction} will either create an error with the given
\meta{message} and \meta{additional help} or will create a warning with the given
\meta{message}.
% PACKAGE OPTION: docdef
\optiondef{docdef}
This setting governs where \gls{newglossaryentry} can be used
(preamble-only or anywhere before the first \idx{glossary} or
anywhere within the document).
Commands like \gls{newabbreviation} and \gls{glsxtrnewsymbol} that internally use
\gls{newglossaryentry} are also governed by this option. Other
commands, such as \gls{longnewglossaryentry} are always preamble-only.
With just the base \sty{glossaries} package, \gls{newglossaryentry} is allowed in
the \env{document} environment as long as you haven't used
\gls{makenoidxglossaries}. There are, however, problems that can
occur when entries are defined within the \env{document} environment
(see the \sty{glossaries} documentation for further details).
To encourage preamble-only use, the \sty{glossaries-extra} package
prohibits the use of \gls{newglossaryentry} within the
\env{document} environment by default, but if you really want this
you can use this package option to allow it.
\begin{information}
Note that in the case of \app{bib2gls}, all entry data is originally
defined in \ext{bib} files. The entry definitions (using commands
like \gls{longnewglossaryentry} and \gls{newabbreviation}) are
written to the \ext{glstex} files that are input in the preamble.
\end{information}
\optionvaldef{docdef}{false}
Prohibits the use of \gls{newglossaryentry} within the
\env{document} environment. All entries must be defined in the
preamble.
\optionvaldef{docdef}{true}
Permits the use of \gls{newglossaryentry} in the \env{document}
environment provided \gls{makenoidxglossaries} hasn't been used (as
per the base \sty{glossaries} package).
This will create a temporary \ext+{glsdefs} file that contains the
entry definitions so that they can be available on the next \LaTeX\
run at the beginning of the document to allow any \idxpl{glossary}
in the front matter to display correctly.
If all your \idxpl{glossary} occur at the end of the document, consider
using \opteqvalref{docdef}{restricted} instead.
\optionvaldef{docdef}{restricted}
Permits the use of \gls{newglossaryentry} in the \env{document}
environment provided the entry definitions all occur before the first
\idx{glossary} is displayed.
This avoids the need for the \ext+{glsdefs} file. You will still need to take
care about any changes made to the category code of characters that are required
by the \meta{key}\dequals\meta{value} mechanism (that is, the comma and
equal sign) and any \app+{makeindex} or \app+{xindy} special character that
occurs in the \gloskey{sort} key or label. If any of those
characters are made active in the document (for example, through
\sty{babel} shortcuts), then it can cause problems with the entry definition.
This option will allow \gls{newglossaryentry} to be used in the document with
\gls{makenoidxglossaries}, but note that \gls{longnewglossaryentry}
remains a preamble-only command.
With this option, if an entry appears in the glossary before
it has been defined, an error will occur (or a warning if
the \opteqvalref{undefaction}{warn} option is used). If you edit your
document and either remove an entry or change its label, you may
need to delete the document's temporary files (such as the
\ext+{aux} and \ext+{gls} files).
\optionvaldef{docdef}{atom}
This option behaves like \opteqvalref{docdef}{restricted} but creates the
\ext+{glsdefs} file for
\href{https://atom.io/packages/autocomplete-glossaries}{atom's
autocomplete support}. This file isn't input by
\sty{glossaries-extra} and so associated problems with the use of
this file are avoided, but it allows the autocomplete support to
find the labels in the file.
\begin{important}
A \dickimawhrefnofn{bugtracker.php?key=173}{bug fix} in \sty{glossaries} v4.47 has changed the format of the
\ext+{glsdefs} file slightly.
\end{important}
As with \opteqvalref{docdef}{restricted},
entries may be defined in the preamble or anywhere in the document,
but they may only be referenced after they have been defined.
Entries must be defined before the associated glossary is displayed.
If you need a list of all entry labels for the use of an editor or
helper script you may also want to consider the package options
\opt{writeglslabels} and \opt{writeglslabelnames} provided by the
base \sty{glossaries} package. Note that with these options and
with \opteqvalref{docdef}{atom}, only the entry labels that are visible
to \LaTeX\ can be saved. So if you are using \app{bib2gls} you will
only get the labels of the entries that have already been selected by
\app{bib2gls}. The \ext+{bib} files can be found by parsing the
\ext+{aux} file for \gls{glsxtr@resource} (listed in the \resourceopt{src}
option or \gls{jobname}\filefmt{.bib} if \resourceopt{src} is
missing).
% PACKAGE OPTION: shortcuts
\optiondef{shortcuts}
Unlike the base \sty{glossaries} package
option of the same name, this option isn't boolean but has multiple
values.
\begin{information}
Multiple invocations of the \opt{shortcuts} option
\emph{within the same option list} will override each other.
Since these options define commands, the action can't be undone with
a later \gls{glossariesextrasetup}.
\end{information}
\optionvaldef{shortcuts}{ac}
Set the shortcut commands provided by the base \sty{glossaries} package for
acronyms (such as \gls{ac}) but use the \sty{glossaries-extra}
abbreviation commands, such as \gls{glsxtrshort} and
\gls{glsxtrlong}, instead of the analogous base commands, such as
\gls{acrshort} and \gls{acrlong}. See \sectionref{sec:abbrshortcuts}
for further details.
\optionvaldef{shortcuts}{abbreviations}
Sets the abbreviation shortcuts (see \sectionref{sec:abbrshortcuts}).
This setting doesn't switch on the acronym shortcuts provided by the
base \sty{glossaries} package.
\optionvaldef{shortcuts}{abbr}
Synonym for \opteqvalref{shortcuts}{abbreviations}.
\optionvaldef{shortcuts}{other}
Implements the other (non-abbreviation) shortcut commands:
\cmddef*{newentry}
A synonym for \gls{newglossaryentry}.
\cmddef*{newsym}
A synonym for \gls{glsxtrnewsymbol} (provided that the \opt{symbols}
package option is also used).
\cmddef*{newnum}
A synonym for \gls{glsxtrnewnumber} (provided that the \opt{numbers}
package option is also used).
\optionvaldef{shortcuts}{acother}
Implements \opteqvalref{shortcuts}{ac} and \optval{shortcuts}{other}.
\optionvaldef{shortcuts}{abother}
Implements \opteqvalref{shortcuts}{abbreviations} and \optval{shortcuts}{other}.
\optionvaldef{shortcuts}{all}
Implements \opteqvalref{shortcuts}{ac}, \opteqvalref{shortcuts}{abbreviations}
and \optval{shortcuts}{other}.
\optionvaldef{shortcuts}{acronyms}
Sets the shortcuts provided by the base \sty{glossaries} package for
acronyms (such as \gls{ac}). See the \sty{glossaries} package
documentation for further details.
Note that the short and long forms (\gls{acs} and \gls{acl}) don't
use \gls{glsxtrshort} and \gls{glsxtrlong} but use the original
\gls{acrshort} and \gls{acrlong}, which aren't compatible with the
\sty{glossaries-extra} abbreviation mechanism. The better option is
to use \opteqvalref{shortcuts}{ac}.
\begin{information}
Don't use \opteqvalref{shortcuts}{acronyms} unless you have reverted \gls{newacronym} back to the base
\sty{glossaries} package's acronym mechanism. See \sectionref{sec:acrorevert}
for further details.
\end{information}
\optionvaldef{shortcuts}{acro}
Synonym for \opteqvalref{shortcuts}{acronyms}.
\optionvaldef{shortcuts}{true}
This setting is provided by the base \sty{glossaries} package. With
\sty{glossaries-extra} it's equivalent to \opteqvalref{shortcuts}{all}.
\optionvaldef{shortcuts}{false}
This setting is provided by the base \sty{glossaries} package. With
\sty{glossaries-extra} it's equivalent to \opteqvalref{shortcuts}{none}.
% PACKAGE OPTION: indexcrossrefs
\optiondef{indexcrossrefs}
This is a boolean option that governs whether or not to
automatically index any cross-referenced entries that haven't been
marked as used at the end of the document. These are entries that are identified
in one of the cross-referencing fields (\gloskey{see} and \gloskey{seealso}) of
another used entry as opposed to entries that have the cross-referencing fields set.
Since entries with the \gloskey{alias} key are intended as synonyms for another
term, the target is expected to be indexed so entries with the \gloskey{alias}
key set aren't affected by this option.
For example:
\begin{codebox}
\gls{newglossaryentry}\marg{courgette}\marg{\gloskeyval{name}{courgette},
\gloskeyval{description}{small vegetable marrow}}
\gls{newglossaryentry}\marg{marrow}\marg{\gloskeyval{name}{marrow},
\gloskeyval{description}{long gourd with green skin},
\gloskeyval{seealso}{courgette}}
\end{codebox}
Suppose that \qt{marrow} is indexed (so that it appears in the glossary with the
cross-reference to \qt{courgette}) but if courgette isn't indexed anywhere in
the document (using commands like \gls{gls} or \gls{glsadd}) then there will be
a broken cross-reference in the marrow \idx{locationlist} pointing to courgette,
which doesn't appear in the glossary. With \opteqvalref{indexcrossrefs}{true},
the courgette entry will be indexed at the end of the document using \gls{glsadd} with
\glsoptval{format}{glsxtrunusedformat}, which corresponds to the command
\gls{glsxtrunusedformat}.
Note that this special format \gls{glsxtrunusedformat} simply does \gls{unskip}
and ignores its argument, which creates a blank location.
If any of the cross-referenced entries have been indexed but haven't been marked
as used (for example, with \gls{glsadd}) then this will cause a spurious comma in the
\idx{locationlist}. This is a limitation of the way that \app+{makeindex} and
\app+{xindy} work as they are general purpose indexing applications which require
locations. If you have entries with cross-references, you may want to consider
switching to \app{bib2gls} instead.
\begin{information}
Note that \app{bib2gls} can automatically find dependent
entries when it parses the \ext{bib} source file, so
the \opt{record} option automatically implements
\opteqvalref{indexcrossrefs}{false}.
\end{information}
This function is implemented by code added to the end document hook
that determines whether or not to use the command
\gls{glsxtraddallcrossrefs}. This command iterates over all entries
in all glossaries, which adds to the overall document build time,
especially if you have defined a large number of entries, so this
defaults to \opteqvalref{indexcrossrefs}{false}, but it will be
automatically switched on if you use the \gloskey{see} or
\gloskey{seealso} keys in any entries. See also \sectionref{sec:xr}.
\optionvaldef{indexcrossrefs}{true}
Enables this setting.
\optionvaldef{indexcrossrefs}{false}
Disables this setting even if the \gloskey{see} or \gloskey{seealso}
key is present in any entries.
% PACKAGE OPTION: autoseeindex
\optiondef{autoseeindex}
This is a boolean option that governs whether or not the
\gloskey{see} and \gloskey{seealso} keys should automatically index the
cross-reference when an entry is defined (see \sectionref{sec:xr}).
With the base
\sty{glossaries} package, the \gloskey{see} key was provided as a
shortcut for \gls{glssee}. For example:
\begin{codebox}
\gls{newglossaryentry}\marg{courgette}\marg{\gloskeyval{name}{courgette},
\gloskeyval{description}{small vegetable marrow}}
\gls{newglossaryentry}\marg{zucchini}\marg{\gloskeyval{name}{zucchini},
\gloskeyval{description}{},
\gloskeyval{see}{courgette}}
\end{codebox}
is equivalent to:
\begin{codebox}
\gls{newglossaryentry}\marg{courgette}\marg{\gloskeyval{name}{courgette},
\gloskeyval{description}{small vegetable marrow}}
\gls{newglossaryentry}\marg{zucchini}\marg{\gloskeyval{name}{zucchini},
\gloskeyval{description}{}}
\gls{glssee}\marg{zucchini}\marg{courgette}
\end{codebox}
This was designed for documents where only entries that are actually
used in the document are defined and ensures that the
cross-reference is included in the \idx{glossary}, even though it may not
be referenced anywhere in the document. However, it becomes
problematic if neither entry is required in the document.
The \sty{glossaries-extra} package modifies the action of the
\gloskey{see} key so that it also saves the value and will only
perform the automated \gls{glssee} if
\opteqvalref{autoseeindex}{true}. Similarly for the \gloskey{seealso} key.
\begin{information}
Note that the \opt{record} option automatically implements
\opteqvalref{autoseeindex}{false} as the corresponding action can be
implemented with \app{bib2gls}['s] \resourceopt{selection} option.
\end{information}
\optionvaldef{autoseeindex}{true}
Enables automatic indexing using \gls{glssee} for the \gloskey{see}
key (as per the base \sty{glossaries} package) and \gls{glsxtrindexseealso}
for the \gloskey{seealso} key.
For example, if an entry is defined as
\begin{codebox}
\gls{newglossaryentry}\marg{foo}\marg{\gloskeyval{name}{foo},
\gloskeyval{description}{},\gloskeyval{see}{bar,baz}}
\end{codebox}
then, with \opteqvalref{autoseeindex}{true} and the default
\opt{indexcrossrefs} setting, this is equivalent to
\begin{codebox}
\gls{newglossaryentry}\marg{foo}\marg{\gloskeyval{name}{foo},\gloskeyval{description}{}}
\gls{glssee}\marg{foo}\marg{bar,baz}
\gls{glossariesextrasetup}\marg{\opteqvalref{indexcrossrefs}{true}}
\gls{GlsXtrSetField}\marg{foo}\marg{see}\marg{bar,baz}
\end{codebox}
\optionvaldef{autoseeindex}{false}
The value of the \gloskey{see} and \gloskey{seealso} keys will
be stored in their corresponding fields (and can be accessed using
commands like \gls{glsxtrusesee} and \gls{glsxtruseseealso}) but
the cross-reference won't be automatically \indexed.
\begin{information}
Note that \opt{indexcrossrefs} isn't automatically implemented
by the presence of the \gloskey{see} key when \opt{autoseeindex}
is false.
\end{information}
For example, if an entry is defined as
\begin{codebox}
\gls{newglossaryentry}\marg{foo}\marg{\gloskeyval{name}{foo},
\gloskeyval{description}{},\gloskeyval{see}{bar,baz}}
\end{codebox}
then, with \opteqvalref{autoseeindex}{false} and the default
\opt{indexcrossrefs} setting, this is equivalent to
\begin{codebox}
\gls{newglossaryentry}\marg{foo}\marg{\gloskeyval{name}{foo},
\gloskeyval{description}{}}
\gls{GlsXtrSetField}\marg{foo}\marg{see}\marg{bar,baz}
\end{codebox}
It's therefore possible with this option to remove the cross-references from the
location lists and set their position within the \idx{glossarystyle}.
Another method of preventing the automatic indexing is to
define the entries before the external indexing files have been
opened with \gls{makeglossaries}. Since the appropriate file isn't
open, the information can't be written to it. This will need
the package option \optval{seenoindex}{ignore} to prevent an error occurring.
% PACKAGE OPTION: record
\optiondef{record}
This setting indicates whether or not \app{bib2gls} is required.
\begin{information}
This option can only be set in the preamble and can't be used after
\gls{GlsXtrLoadResources} or \gls{glsxtrresourcefile}.
\end{information}
With the recording setting on (\opteqvalref{record}{only},
\opteqvalref{record}{nameref} or \opteqvalref{record}{hybrid}), any of the
commands that would typically index the entry (such as \gls{gls},
\gls{glstext} or \gls{glsadd}) will add a \record\ to
the \ext{aux} file. \app{bib2gls} can then read this information to
find out which entries have been used. (Remember that commands like
\gls{glsentryname} don't index, so any use of these commands won't
add a corresponding \record.) See \sectionref{sec:bib2gls} for further details.
The hybrid method additionally performs the standard indexing action
that's required for \app+{makeindex} or \app+{xindy} to work, but this
can't be done until \app{bib2gls} has created the \ext{glstex} files
that provide the entry definitions. In general, it's best to avoid
the hybrid method.
\optionvaldef{record}{off}
Indexing is performed as per the base \sty{glossaries} package using
either \gls{makeglossaries} or \gls{makenoidxglossaries}.
This setting implements \opteqvalref{undefaction}{error}.
\optionvaldef{record}{only}
\Glsname{indexing} is performed by adding \app{bib2gls} \records\
in the \ext{aux} file. Neither
\gls{makeglossaries} nor \gls{makenoidxglossaries} is permitted.
Use \gls{GlsXtrLoadResources} (or \gls{glsxtrresourcefile})
to set up \app{bib2gls} \idxpl{resourceopt}. Glossaries should be
displayed with the \idx{unsrtfam}, such as \gls{printunsrtglossary}.
This setting implements \opteqvalref{undefaction}{warn},
\opteqvalref{autoseeindex}{false}, \opteqvalref{indexcrossrefs}{false}
\opteqvalref{sort}{none}, and automatically
loads the supplementary \sty{glossaries-extra-bib2gls} package.
(There should be no need to explicitly load \sty{glossaries-extra-bib2gls}.)
This option also defines the \gloskey{location} and \gloskey{group}
keys that are set by \app{bib2gls} to provide the \idx{locationlist}
and \idx{group} information required by the \idx{unsrtfam}.
The document build process is (assuming the file is called
\filefmt{myDoc.tex}):
\begin{terminal}
pdflatex myDoc
bib2gls myDoc
pdflatex myDoc
\end{terminal}
If you want letter \idxpl{group} you will need the \switch{group}
or \switch{g} switch when invoking \app{bib2gls}:
\begin{terminal}
pdflatex myDoc
bib2gls \switch{g} myDoc
pdflatex myDoc
\end{terminal}
\begin{important}
Note that this setting will prevent the \gloskey{see} from
automatically implementing \gls{glssee}. (\app{bib2gls} deals with the
\gloskey{see} field.) You may explicitly use \gls{glssee} in the
document, but \app{bib2gls} will ignore the cross-reference if the
\gloskey{see} field was already set for that entry.
\end{important}
\optionvaldef{record}{nameref}
As \opteqvalref{record}{only} but uses nameref \records, which
include the current label information given by \gls{@currentlabel}
and \gls{@currentHref}. This means that the title can be included in
the \idxpl{entrylocation}, if available. This setting also supports
location hypertargets that don't follow a simple
\meta{h-prefix}\meta{\idxc{locationcounter}{the-counter}} format,
which can't be used with other indexing options.
See \sectionref{sec:recordnameref} for further details of this
option.
\begin{information}
This option requires \sty{hyperref}, otherwise it will fall back on the usual
location \records.
\end{information}
Note that \gls{@currentHref} is always globally updated whenever
\gls{refstepcounter} is used, but \gls{@currentlabel} isn't. This can
cause some undesired side-effects with some settings. Remember also
that the \opt{indexcounter} option increments the associated
counter every time an entry is \indexed, which affects this option.
If the \idx{locationcounter} is the default \ctr{page}, only the
\location\ number is shown.
\optionvaldef{record}{alsoindex}
Deprecated synonym of \opteqvalref{record}{hybrid}.
\optionvaldef{record}{hybrid}
This is a hybrid setting that uses \app{bib2gls} to fetch entry
information from \ext{bib} files, but uses \app+{makeindex} or
\app+{xindy} to create the \idx{glossary} files (which are input with
\gls{printglossary}). Note that this requires a slower and more
complicated build process (see below).
This hybrid approach is provided for the rare instances
where an existing \app{xindy} rule or module is too complicated to convert to
a \app{bib2gls} rule but the entries need to be fetched from a
\ext{bib} file. There's no benefit in using this option with \app{makeindex}.
This setting does not load \sty{glossaries-extra-bib2gls}, as
\app{bib2gls} is only being used to fetch the entry definitions.
\begin{information}
Since it's redundant to make \app{bib2gls} also sort and collate
locations (in addition to \app{xindy} performing these tasks), use the resource options
\resourceoptval{sort}{none} and
\resourceoptval{save-locations}{false} for a faster build.
Many of the other \idxpl{resourceopt} are likely to be irrelevant.
\end{information}
This setting must be used with \gls{makeglossaries} but not with
its optional argument.
Each \idx{glossary} should be displayed using \gls{printglossary} (or
\gls{printglossaries} for all of them).
\begin{important}
This setting should not be used with \gls{makenoidxglossaries}.
\end{important}
You may need to change the transcript file used by \app{bib2gls} to
avoid a clash with \app{xindy}['s] transcript file. This can be done
with \app{bib2gls}['s] \switch{log-file} or \switch{t} option.
The document build process is (assuming the file is called
\filefmt{myDoc.tex}):
\begin{terminal}
pdflatex myDoc
bib2gls myDoc
pdflatex myDoc
makeglossaries myDoc
pdflatex myDoc
\end{terminal}
Note that, in this case, it's redundant to call \app{bib2gls} with the
\switch{group} or \switch{g} switch as \app{xindy}
will insert the group heading information into the corresponding
\idx{glossary} file.
\begin{information}
If you want \app{bib2gls} to form the letter groups
then this hybrid method is inappropriate.
\end{information}
% PACKAGE OPTION: bibglsaux
\optiondef{bibglsaux}
Alternatively, this setting can be implemented with:
\cmddef{glsxtrsetbibglsaux}
This option should only be used once. If used again no new file will
be created. If the \meta{basename} value is empty, \records\ will be
written to the normal \ext{aux} file.
A document containing many \records\ can result in a large
\ext+{aux} file with information that's only relevant to
\app{bib2gls}. This option will create a new file called
\metafilefmt{}{basename}{.aux} that will be used to store the
\records. The file will be skipped by \LaTeX\ but will be picked up
by \app{bib2gls} v3.0+ when it inputs the main \ext{aux} file. Note that
this creates an extra write register.
\begin{important}
You should still supply the main \ext{aux} file when you run
\app{bib2gls} as \metafilefmt{}{basename}{.aux} will only contain
the \records\ and not the other information that \app{bib2gls}
requires (such as the \idxpl{resourceopt}).
\end{important}
% PACKAGE OPTION: equations
\optiondef{equations}
This setting will cause the default \idx{locationcounter} to automatically switch
to \ctr{equation} when inside a numbered equation environment, such
as \env{equation} or \env{align}. The counter can be explicitly
overridden with the \glsopt{counter} \idx{glsopt}.
% PACKAGE OPTION: floats
\optiondef{floats}
This setting will cause the default \idx{locationcounter} to automatically switch
to the corresponding counter when inside a floating environment,
such as \env{figure} or \env{table}. The counter can be explicitly
overridden with the \glsopt{counter} \idx{glsopt}.
Remember that within floats it's the \gls{caption} command that actually uses
\gls{refstepcounter}, so indexing before the caption will result in
the wrong reference. The commands for use in captions and sections,
such as \gls{glsfmttext} and \gls{glsfmtshort}, don't index. (See
\sectionref{sec:headtitle}). You may
want to consider using \gls{glsadd} after the caption (not before). For example:
\begin{codebox}
\cbeg{figure}[htbp]
\cmd{centering}
\cmd{includegraphics}\marg{example-image}
\gls{caption}\marg{Sample \gls{glsfmttext}\marg{foobar} figure}
\gls{glsadd}\marg{foobar}
\cend{figure}
\end{codebox}
% PACKAGE OPTION: indexcounter
\optiondef{indexcounter}
This option defines the \idx{indexing} counter:
\ctrdef*{wrglossary}
which is incremented every time an entry is \indexed. This option
automatically implements \optval{counter}{wrglossary}. This means
that each \location\ will link to the relevant part of the page
where the \idx{indexing} occurred (instead of to the top of the page).
See the \app{bib2gls} documentation for the
\resourceopt{save-index-counter} resource option for more details.
\begin{warning}
This option is primarily intended for use with
\app{bib2gls} (v1.4+) and \sty{hyperref}. It can be used with
\app{makeindex} or \app{xindy}, but it will interfere with the
\idx{locationlist} collation, so you won't have ranges and you'll have
duplicate page numbers present.
\end{warning}
This option works by incrementing \ctr{wrglossary} with
\gls{refstepcounter} and adding \gls{label}. This can cause a problem if the
\idx{indexing} occurs in an \env{equation} environment as \sty{amsmath}
forbids multiple occurrences of \gls{label} (resulting in the
\qt{Multiple \gls{label}'s} error). It's best to change the counter
to \ctr{page} or \ctr{equation} when in maths mode with this option.
For example:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glslinkpresetkeys}}\marg{\comment{}
\cmd{ifmmode} \gls{setupglslink}\marg{\glsoptval{counter}{page}}\cmd{fi}}
\cmd{renewcommand}\marg{\gls{glsaddpresetkeys}}\marg{\comment{}
\cmd{ifmmode} \gls{setupglsadd}\marg{\glsoptval{counter}{page}}\cmd{fi}}
\end{codebox}
\section{Debugging}
\label{sec:debuggingopts}
% PACKAGE OPTION: debug
\optiondef{debug}
Enables debugging information for draft documents.
This option is defined by the base \sty{glossaries} package, but is
extended by \sty{glossaries-extra} to provide additional settings.
If no value is provided, \optvalref{debug}{true} is assumed.
The following values are available:
\optionvaldef{debug}{false}
This setting is provided by the \sty{glossaries} package and is the
default. This switches off all debugging commands.
\optionvaldef{debug}{true}
This setting is provided by the \sty{glossaries} package and
switches on logging information if an entry is \indexed\ before the
relevant \idx{indexing} files have been opened (only applicable with
\app+{makeindex} and \app+{xindy}). This option is extended by
\sty{glossaries-extra} to also display the label of unknown entries
before the \idx{unknowntag} marker.
\begin{coderesult}
\cmd{documentclass}\marg{article}
\cmd{usepackage}[\opt{debug}]
\marg{glossaries-extra}
\cbeg{document}
\gls{gls}\marg{example}
\cend{document}
\tcblower
\glsshowtargetfonttext{[example]}\glslink{idx.unknowntag}{??}
\end{coderesult}
This uses \gls{glsshowtargetfonttext} for the annotation, which is
provided by \sty{glossaries}.
\optionvaldef{debug}{showaccsupp}
Provided by \sty{glossaries}, this setting shows accessibility
information (\sty{glossaries-accsupp}).
\optionvaldef{debug}{all}
Implements all debugging options.
\optionvaldef{debug}{showwrgloss}
This setting is only available with \sty{glossaries-extra}.
This implements \opteqvalref{debug}{true} and shows
a marker~(\glsxtrwrglossmark) just before the write operation is
performed by indexing commands. With \opteqvalref{record}{hybrid}
there will be two marks: one for the write operation to the
\ext{aux} file and one for the associated \idx{glossary} file used by
\app{makeindex}\slash\app{xindy}. The marker is produced with the
command:
\cmddef*{glsxtrwrglossmark}
If the \opt{indexcounter} option has been used, this setting will
also mark where the \ctr{wrglossary} counter has been incremented.
The marker is produced with the command:
\cmddef*{glsxtrwrglosscountermark}
This marker is also inserted before the location in the definition
of \gls{glsxtrwrglossarylocfmt}.
\optionvaldef{debug}{showtargets}
This setting is provided by \sty{glossaries} and displays the
hyperlink target names whenever any \idx{glossary}-related commands
create a hyperlink or hypertarget (for example, \gls{gls},
\gls{glstarget} or \gls{glshypernumber}). The default is to
use marginal notes in \TeX's \qt{outer} mode and inline annotations
for \qt{inner} or maths modes. This uses \gls{glsshowtargetinner}
for inner and maths annotations and \gls{glsshowtargetouter} for the
outer annotation.
If there are many targets within a single paragraph this can lead to
\qt{too many floats}, so \sty{glossaries-extra} provides a new
package option \opt{showtargets} that can be used to easily switch
to inline annotations for outer mode (rather than having to redefine
\gls{glsshowtargetouter}).
% PACKAGE OPTION: showtargets
\optiondef{showtargets}
Automatically implements \opteqvalref{debug}{showtargets} and
adjusts the annotations according to the \meta{value}. The
\sty{glossaries-extra} package provides supplementary commands to
support this option.
\cmddef*{glsxtrshowtargetouter}
Formats annotations in outer mode. This is initially
\gls{glsshowtargetouter} to match \opteqvalref{debug}{showtargets}.
\cmddef*{glsxtrshowtargetinner}
Formats annotations in inner mode. This is initially
\gls{glsshowtargetinner} to match \opteqvalref{debug}{showtargets}.
\cmddef*{glsshowtargetinnersymleft}
Shows the left annotation and marker. This uses the left
symbol marker:
\cmddef*{glsxtrshowtargetsymbolleft}
\cmddef*{glsshowtargetinnersymright}
Shows the right marker and annotation. This uses the right
symbol marker:
\cmddef*{glsxtrshowtargetsymbolright}
\optionvaldef{showtargets}{left}
A marker is placed to the left of the link/target and a marginal
note is used in outer mode.
\optionvaldef{showtargets}{right}
A marker is placed to the right of the link/target and a marginal
note is used in outer mode.
\optionvaldef{showtargets}{innerleft}
A marker and annotation are placed to the left of the
link/target in all modes.
\optionvaldef{showtargets}{innerright}
A marker and annotation are placed to the right of the
link/target in all modes.
\optionvaldef{showtargets}{annoteleft}
Markers are placed on either side of the
link/target with the annotation on the left in all modes.
\optionvaldef{showtargets}{annoteright}
Markers are placed on either side of the
link/target with the annotation on the right in all modes.
\chapter{Defining Entries}
\label{sec:newentry}
The base \sty{glossaries} package provides commands, such as
\gls{newglossaryentry}, to define entries. The
\sty{glossaries-extra} package provides some additional commands,
described in \sectionref{sec:newentrydefs}. For abbreviations, see
\sectionref{sec:abbreviations}. If you use \app{bib2gls}, it will
write command definitions within the \ext{glstex} file. See the
\app{bib2gls} user manual for further information about those
commands.
The \sty{glossaries} user manual warns against using commands such
as \gls{gls} within \idx{field} values. However, if you really need
this, the \sty{glossaries-extra} package provides \gls{glsxtrp} (see
\sectionref{sec:nested}). Alternatively, you may want to consider
multi (compound) entries instead (see \sectionref{sec:multientries}).
\section{Command Definitions}
\label{sec:newentrydefs}
\cmddef{longnewglossaryentry}
This command is provided by the base \sty{glossaries} package to
cater for entries with descriptions that contain paragraph breaks.
(The \meta{key}\dequals\meta{value} interface doesn't support
paragraph breaks in the value.) The base package only provides an
unstarred version of this command, which automatically inserts
\gls{leavevmode}\gls{unskip}\gls{nopostdesc} at the end of the
description. The \sty{glossaries-extra} package replaces this with a
single command:
\cmddef{glsxtrpostlongdescription}
which has the same effect, but can be redefined if required.
The \sty{glossaries-extra} package provides a starred form:
\cmddef{longnewglossaryentry*}
This doesn't insert the hook at the end of the description.
\begin{information}
For a general purpose post-description hook, see \sectionref{sec:postdeschooks}.
\end{information}
Additionally, the \opt{symbols} package option provides
\gls{glsxtrnewsymbol}, and the \opt{numbers} package option provides
\gls{glsxtrnewnumber}. See \sectionref{sec:gloslistopts} for further
details.
\section{Glossary Entry Keys}
\label{sec:newkeys}
In addition to the \idxpl+{gloskey} provided by the base \sty{glossaries}
package (summarised in \sectionref{sec:gloskeys}) the
\sty{glossaries-extra} package provides:
% KEY: category
\optiondef{gloskey.category}
Assigns the \idx{category} label. This should not contain any
special or active characters as it's used to form command names.
See \sectionref{sec:categories} for further details.
% KEY: seealso
\optiondef{gloskey.seealso}
This key is analogous to the \gloskey{see} key but the tag is always
given by \gls{seealsoname}. The value \meta{xr-list} should be a
comma-separated list of entry labels. As with the \gloskey{see} key, this key
automatically indexes the cross-reference by default. The cross-reference will
be displayed in the \idx{locationlist} using
\gls{glsxtruseseealsoformat} (see \sectionref{sec:xr}).
Use \opteqvalref{autoseeindex}{false} to prevent the automatic
\idx{indexing}. (With \app{bib2gls}, adjust the \resourceopt{selection} criteria.)
\begin{important}
With just the base \sty{glossaries} package, the \gloskey{see} key
simply performs this automated indexing. With
\sty{glossaries-extra} the value is also saved. Similarly with the
\gloskey{seealso} key. The value isn't saved with explicit use of
\gls{glsxtrindexseealso} or \gls{glssee}.
\end{important}
% KEY: alias
\optiondef{gloskey.alias}
This is similar to the \gloskey{see} key but the value can only
be a single entry label. In addition to automatically \idx{indexing} the
cross-reference, this command will cause the entry with this key to
have hyperlinks go to the aliased entry when referenced with
commands like \gls{gls}. Whenever the entry is \indexed\ with
commands like \gls{gls}, the \idx{indexing} will be performed on the
target entry (the \gloskey{alias} value). See \sectionref{sec:xr}
for further details.
\begin{important}
Any entry that has a \gloskey{see}, \gloskey{seealso} or
\gloskey{alias} key set will be added to the glossary by default
when using \app{makeindex} or \app{xindy}. If you don't want this
behaviour, use the \optval{autoseeindex}{false} package option and
implement a \idx{postdeschook} to insert the cross-reference.
Alternatively, consider switching to \app{bib2gls}.
\end{important}
If you use \app{bib2gls} (see \sectionref{sec:bib2gls}) then most of
the \idxpl{gloskey} can be used as analogous fields in the \ext+{bib}
file. For example, instead of writing the following code in your
\ext+{tex} file:
\begin{codebox}
\gls{newglossaryentry}\marg{duck}\marg{\gloskeyval{name}{duck},
\gloskeyval{description}{a waterbird with webbed feet}}
\gls{newabbreviation}\marg{svm}\marg{SVM}\marg{support vector machine}
\end{codebox}
You would write the following in a \ext+{bib} file:
\begin{codebox}
\atentry{entry}\marg{duck,
\gloskeyval{name}{duck},
\gloskeyval{description}{a waterbird with webbed feet}
}
\atentry{abbreviation}\marg{svm,
\gloskeyval{short}{SVM},
\gloskeyval{long}{support vector machine},
}
\end{codebox}
There are, however, some keys that are considered
\idxc{bib2glsinternalfield}{internal fields} by \app{bib2gls},
in that they are defined as keys by
\sty{glossaries-extra} and may be assigned in the \ext+{glstex}
file that's input by \gls{GlsXtrLoadResources}, but
they should not be used in the \ext+{bib} files.
For example, the \gloskey{sort} key (which is recommended with
\app{xindy} where the \gloskey{name} contains symbols) should not be
used in the \ext{bib} file. Instead, use the
\resourceopt{sort-field} resource option or the system of sort
fallbacks to choose the most appropriate field to obtain the sort
value (see \gallerypage{bib2gls-sorting}{Gallery: Sorting}). The
\gloskey{group} and \gloskey{location} keys are also considered
\idxc{bib2glsinternalfield}{internal fields} and are only applicable
with the \idx{unsrtfam}.
\begin{information}
The \gloskey{group} and \gloskey{location} keys are defined by the
\opteqvalref{record}{only} and \opteqvalref{record}{nameref} options
and are only applicable with the \idx{unsrtfam}.
\end{information}
% KEY: group
\optiondef{gloskey.group}
This key is used by \app{bib2gls} within the \ext{glstex} file to
set the \idx{group} label. This label is typically a by-product of
the sorting method (see \sectionref{sec:glosgroups}). If it is
explicitly set without reference to the order it can result in
fragmented groups, see \gallerypage{logicaldivisions}{Gallery:
Logical Glossary Divisions (type vs group vs parent)}. The group
title can be set with \gls{glsxtrsetgrouptitle}. You will need to
invoke \app{bib2gls} with the \switch{group} (or \switch{g}) switch
to ensure that this key is set, when required.
\begin{important}
Letter \idxpl{group} are a consequence of sorting, not the other way
around.
\end{important}
% KEY: location
\optiondef{gloskey.location}
Used by \app{bib2gls} to store the formatted \idx{locationlist}.
The unformatted \idxc{internalfield}{internal location list} is stored in the
\glosfield{loclist} field, as with \gls{printnoidxglossary}.
With the \idx{unsrtfam}, if the \gloskey{location} field isn't set,
then it will try the \glosfield{loclist} field instead, using the same
method as \gls{printnoidxglossary} to display the \locations. If you
don't want locations with \app{bib2gls}, either use
\printglossopt{nonumberlist} or use the
\resourceoptval{save-locations}{false} resource option.
The base \sty{glossaries} package provides \gls{glsaddkey} and
\gls{glsaddstoragekey} to allow custom keys to be defined. The
\sty{glossaries-extra} package additionally provides:
\cmddef{glsxtrprovidestoragekey}
This is like \gls{glsaddstoragekey} but does nothing if the key has
already been defined. As with \gls{glsaddstoragekey}, the starred
version switches on field expansion for the given key (provided
that it hasn't already been defined).
\cmddef{glsxtrifkeydefined}
Tests if the given key has been defined as a \idx{gloskey}.
\section{Plurals}
\label{sec:plurals}
Some languages, such as English, have a general rule that plurals
are formed from the singular with a suffix appended. This isn't
an absolute rule. There are plenty of exceptions (for example,
geese, children, churches, elves, fairies, sheep). The
\sty{glossaries} package allows the \gloskey{plural} key to be
optional when defining entries. In some cases a plural may not make
any sense (for example, the term is a symbol) and in some cases
the plural may be identical to the singular.
To make life easier for languages where the majority of plurals can
simply be formed by appending a suffix to the singular, the
\sty{glossaries} package lets the \gloskey{plural} field default
to the value of the \gloskey{text} field with \gls{glspluralsuffix}
appended. This command is defined to be just the letter \qt{s}.
This means that the majority of terms don't need to have the
\gloskey{plural} supplied as well, and you only need to use it for the
exceptions.
For languages that don't have this general rule, the \gloskey{plural}
field will always need to be supplied, where needed.
There are other plural fields, such as \gloskey{firstplural},
\gloskey{longplural} and \gloskey{shortplural}. Again, if you are using
a language that doesn't have a simple suffix rule, you'll have to
supply the plural forms if you need them (and if a plural makes
sense in the context).
If these fields are omitted, the \sty{glossaries} package follows
these rules:
\begin{itemize}
\item If \gloskey{firstplural} is missing, then \gls{glspluralsuffix}
is appended to the \gloskey{first} field, if that field has been
supplied. If the \gloskey{first} field hasn't been supplied but the
\gloskey{plural} field has been supplied, then the \gloskey{firstplural}
field defaults to the \gloskey{plural} field. If the \gloskey{plural}
field hasn't been supplied, then both the \gloskey{plural} and
\gloskey{firstplural} fields default to the \gloskey{text} field (or
\gloskey{name}, if no \gloskey{text} field) with \gls{glspluralsuffix}
appended.
\item If the \gloskey{longplural} field is missing, then
\gls{glspluralsuffix} is appended to the \gloskey{long} field, if the
\gloskey{long} field has been supplied.
\item If the \gloskey{shortplural} field is missing then, \emph{with
the base \sty{glossaries} acronym mechanism}, \gls{acrpluralsuffix}
is appended to the \gloskey{short} field.
\end{itemize}
The \emph{last case is changed} with \sty{glossaries-extra}.
With this extension package, the \gloskey{shortplural} field
defaults to the \gloskey{short} field with \gls{abbrvpluralsuffix}
appended unless overridden by category attributes. This
suffix command is set by the abbreviation styles. This means that
every time an abbreviation style is implemented,
\gls{abbrvpluralsuffix} is redefined, see \sectionref{sec:abbrvfieldslongshortpl}
for further details.
\section{Entry Aliases}
\label{sec:alias}
An entry can be made an alias of another entry using the
\gloskey{alias} key. The value should be the label of the other
term. There's no check for the other's existence when the aliased
entry is defined. This is to allow the possibility of defining the
other entry after the aliased entry. (For example, when used with
\app{bib2gls}.)
\cmddef*{glsxtraliashook}
This hook is implemented when an entry is defined with the
\gloskey{alias} key set. It does nothing by default. The value of
the \gloskey{alias} field can be obtained with
\code{\gls{glsxtralias}\margm{entry-label}}.
If an entry \meta{entry-1} is made an alias of \meta{entry-2} then:
\begin{itemize}
\item If the \gloskey{see} field wasn't provided when \meta{entry-1}
was defined, the \gloskey{alias} key will automatically trigger
\begin{compactcodebox}
\gls{glssee}\margm{entry-1}\margm{entry-2}
\end{compactcodebox}
\item If the \sty{hyperref} package has been loaded then
\code{\gls{gls}\margm{entry-1}} will link to \meta{entry-2}'s target. (Unless
the \catattr{targeturl} attribute has been set for \meta{entry-1}'s
category.)
\item With \opteqvalref{record}{off} or
\opteqvalref{record}{hybrid}, the \glsopt{noindex} setting will automatically be triggered
when referencing \meta{entry-1} with commands like \gls{gls} or
\gls{glstext}. This prevents \meta{entry-1} from having a
\idx{locationlist} (aside from the cross-reference added with
\gls{glssee}) unless it's been explicitly indexed with \gls{glsadd} or
if the indexing has been explicitly set using
\glsoptval{noindex}{false}.
See \sectionref{sec:glssee} for adjusting the indexing hook.
Note that with \opteqvalref{record}{only}, the \idx{locationlist}
for aliased entries is controlled with \app{bib2gls}['s] settings.
\end{itemize}
The value of the \gloskey{alias} field can be accessed with
\gls{glsxtralias} (see \sectionref{sec:getsee}).
\section{Setting or Updating Fields}
\label{sec:setfields}
See \sectionref{sec:getfields} for accessing field values and
\sectionref{sec:fieldconditionals} for testing field values.
\begin{warning}
Modifications to fields only have an effect from that point onwards
and may be localised to the current scope. If you are using
\opteqvalref{docdef}{true}, any changes to the field values won't be
saved in the \ext+{glsdefs} file.
\end{warning}
Some of these commands are subtly different from each other. For
example, \gls{glsfielddef} (provided by the base \sty{glossaries}
package), \gls{glsxtrdeffield} and \gls{GlsXtrSetField} all assign a
value to a field, but \gls{glsfielddef} requires that both the entry
and the field exists (so it can't be used to set an unknown \idx{internalfield}),
\gls{GlsXtrSetField} requires that the entry
exists (so it can be used to set an \idx{internalfield} that doesn't have
an associated key provided that the entry has been defined), and
\gls{glsxtrdeffield} doesn't perform any existence checks (which
means that it can be used to assign \idxpl{internalfield} before the entry
is actually defined).
The commands described in this section don't require the \idx{field} to
have an associated \idx{gloskey}, so you need to be
careful not to misspell the field labels.
\begin{information}
Assigning or changing fields using the commands described here won't
alter related fields. For example, if you use the \gloskey{text} key
but not the \gloskey{plural} key when you define an entry with
\gls{newglossaryentry}, the \gloskey{plural} key will automatically
be set as well, but if you change the value of the \gloskey{text}
field after the entry has been defined, the \gloskey{plural} field
won't be changed. Particular care is required if the field
contributes in some way to the \idx{indexing} information, as this
information is typically initialised when the entry is first
defined. This includes the \gloskey{sort} and \gloskey{parent} keys,
which should not be changed after the entry has been defined.
\end{information}
With \app{bib2gls}, entries aren't defined on the first \LaTeX\ run.
This means that commands that test for existence will produce a
warning and (within the \env{document} environment) the \idx{unknowntag}
unknown marker. For example:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}[\opt{record}]\marg{glossaries-extra}
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{myentries},\resourceoptval{selection}{all}}
\cbeg{document}
Defining info
\gls{glsxtrdeffield}\marg{sample}\marg{info}\marg{some information}.
Defining note
\gls{GlsXtrSetField}\marg{sample}\marg{note}\marg{some note}.
\codepar
Info: \gls{glsxtrusefield}\marg{sample}\marg{info}.
Note: \gls{glsxtrusefield}\marg{sample}\marg{note}.
\cend{document}
\end{codebox}
On the first \LaTeX\ run, this produces:
\begin{resultbox}
Defining info . Defining note \glslink{idx.unknowntag}{??}.
Info: some information. Note: .
\end{resultbox}
At this point the \code{sample} entry hasn't been defined, so
referencing it in \gls{GlsXtrSetField} results in a warning and the
double question mark \idx{unknowntag} unknown marker in the text.
The field (\code{note}) isn't saved,
so nothing is shown when the field is referenced with
\gls{glsxtrusefield}. Whereas \gls{glsxtrdeffield} does save the
field with the label \code{info} associated with the label
\code{sample}, even though the \code{sample} entry hasn't actually
been defined. The field can then be later obtained with
\gls{glsxtrusefield}. Once \app{bib2gls} has been run, the
\code{sample} entry should now have its definition in the
\ext{glstex} file, which is loaded by \gls{GlsXtrLoadResources} and
the \code{note} field can be set.
\cmddef{glsxtrdeffield}
This uses \sty{etoolbox}'s \gls{csdef} command to locally set the \idx{field}
given by its \idxc{internalfieldlabel}{internal label}
\meta{field-label} to \meta{value} for the entry identified by
\meta{entry-label}. No existence check is performed.
\cmddef{glsxtredeffield}
This is like \gls{glsxtrdeffield} but (protected) fully expands the
value before assigning it to the field.
\cmddef{glsxtrapptocsvfield}
This command is designed for fields that should contain
comma-separated lists. If the field hasn't been defined, this
behaves like \gls{glsxtrdeffield} otherwise it will append a comma
followed by \meta{element} (unexpanded) to the field value. No
existence check is performed. This field can be iterated over using
\gls{glsxtrforcsvfield} or formatted using \gls{glsxtrfieldformatcsvlist}.
See \sectionref{sec:csvfields} for further details.
\cmddef{glsxtrfieldlistadd}
Appends the given value to the given entry's field (identified using
the \idxc{internalfieldlabel}{field's internal label}) using
\sty{etoolbox}['s] \gls{listcsadd}. The field value can later be
iterated over using \gls{glsxtrfielddolistloop} or
\gls{glsxtrfieldforlistloop}.
\cmddef{glsxtrfieldlistgadd}
As above but uses \gls{listcsgadd} to make a global change.
\cmddef{glsxtrfieldlisteadd}
As above but uses \gls{listcseadd} to expand the value.
\cmddef{glsxtrfieldlistxadd}
As above but uses \gls{listcsxadd} to make a global change.
\cmddef{glsxtrsetfieldifexists}
This is used by the commands \gls{GlsXtrSetField}, \gls{gGlsXtrSetField},
\gls{xGlsXtrSetField}, \gls{eGlsXtrSetField},
\gls{GlsXtrLetField}, \gls{csGlsXtrLetField} and
\gls{GlsXtrLetFieldToField} to produce an error (or warning with
\opteqvalref{undefaction}{warn}) if the entry doesn't exist. This
can be redefined to add extra checks (for example, to prohibit
changing certain fields).
\cmddef{GlsXtrSetField}
This uses \sty{etoolbox}'s \gls{csdef} command to locally set the \idx{field}
given by its \idxc{internalfieldlabel}{internal label}
\meta{field-label} to \meta{value} for the entry identified by
\meta{entry-label}.
This command is written to the \ext{glstex} file by \app{bib2gls} to
set fields that don't have a corresponding key.
\cmddef{gGlsXtrSetField}
This is like \gls{GlsXtrSetField} but uses a global assignment.
\cmddef{eGlsXtrSetField}
This is like \gls{GlsXtrSetField} but (protected) fully expands the
value first.
\cmddef{xGlsXtrSetField}
This is like \gls{eGlsXtrSetField} but uses a global assignment.
\cmddef{GlsXtrLetField}
This uses \sty{etoolbox}'s \gls{cslet} command to locally set the \idx{field}
given by its \idxc{internalfieldlabel}{internal label}
\meta{field-label} to \meta{cs} for the entry identified by
\meta{entry-label}.
\cmddef{csGlsXtrLetField}
This uses \sty{etoolbox}'s \gls{csletcs} command to locally set the
\idx{field} given by its \idxc{internalfieldlabel}{internal label}
\meta{field-label} to the control sequence given by \meta{cs-name}
for the entry identified by \meta{entry-label}.
\cmddef{GlsXtrLetFieldToField}
This assigns the field identified by its
\idxc{internalfieldlabel}{internal label} \meta{field1-label} for
the entry identified by \meta{entry1-label} to the value of the
\idx{field} identified by \meta{field2-label} for the entry identified by
\meta{entry2-label}
\chapter{Abbreviations}
\label{sec:abbreviations}
The acronym mechanism implemented by the base \sty+{glossaries}
package is insufficiently flexible for some documents. The
\sty{glossaries-extra} package provides a completely different
mechanism to deal with abbreviations in a more flexible manner. The
two methods are incompatible. However, the \sty{glossaries-extra}
package provides predefined styles that emulate the appearance
of the styles provided by the base package. If you have previously
used just the base \sty+{glossaries} package, consult
\tableref{tab:acrabbrvstyles} for the closest matching abbreviation
style.
\section{Defining Abbreviations}
\label{sec:newabbr}
Abbreviations are defined using:
\cmddef{newabbreviation}
where \meta{entry-label} is the entry's label (used in commands like
\gls{gls}), \meta{short} is the short form (the abbreviation) and
\meta{long} is the long form (what the abbreviation is short for).
The optional argument \meta{options} may be used to set additional
keys (as per the \idxc{gloskey}{options list} in \gls{newglossaryentry}), such as
\gloskey{type} or \gloskey{category}.
This command internally uses \gls{newglossaryentry} and sets the
\gloskey{type} to \gls{glsxtrabbrvtype} and the
\gloskey{category} to \cat{abbreviation}. The category (see
\sectionref{sec:categories}) determines the abbreviation style.
The style for a particular category is set using
\gls{setabbreviationstyle}. If the optional argument is omitted, the
\cat{abbreviation} category is assumed (see \sectionref{sec:abbrstyle} for
further details).
The following example document sets up three different abbreviation
styles: \abbrstyle{long-short-sc} for the \cat{abbreviation}
category, \abbrstyle{long-only-short-only} for the custom
\code{genus} category, and \abbrstyle{short-nolong} for the custom
\code{common} category. Note that the custom \code{title} category
doesn't have an associated style.
\begin{codebox}
\gls{setabbreviationstyle}\marg{\abbrstyle{long-short-sc}}
\gls{setabbreviationstyle}\oarg{genus}\marg{\abbrstyle{long-only-short-only}}
\gls{setabbreviationstyle}\oarg{common}\marg{\abbrstyle{short-nolong}}
\gls{newabbreviation}\marg{xml}\marg{xml}\marg{extensible markup language}
\gls{newabbreviation}\oarg{\gloskeyval{category}{genus}}\marg{clostridium}\marg{C.}\marg{Clostridium}
\gls{newabbreviation}\oarg{\gloskeyval{category}{genus}}\marg{myristica}\marg{M.}\marg{Myristica}
\gls{newabbreviation}\oarg{\gloskeyval{category}{common}}\marg{html}\marg{HTML}\marg{hypertext markup language}
\gls{newabbreviation}\oarg{\gloskeyval{category}{title}}\marg{dr}\marg{Dr}\marg{Doctor}
\cbeg{document}
First use: \gls{gls}\marg{xml}, \gls{gls}\marg{clostridium}, \gls{gls}\marg{myristica},
\gls{gls}\marg{html}, \gls{gls}\marg{dr}.
\codepar
Next use: \gls{gls}\marg{xml}, \gls{gls}\marg{clostridium}, \gls{gls}\marg{myristica},
\gls{gls}\marg{html}, \gls{gls}\marg{dr}.
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[title={Multiple abbreviation styles},
description={Example document with multiple abbreviation styles},
label={ex:multiabbrvstyles}
]
{%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{setabbreviationstyle}\marg{long-short-sc}^^J%
\gls{setabbreviationstyle}\oarg{genus}\marg{long-only-short-only}^^J%
\gls{setabbreviationstyle}\oarg{common}\marg{short-nolong}^^J%
\gls{newabbreviation}\marg{xml}\marg{xml}\marg{extensible markup
language}^^J%
\gls{newabbreviation}\oarg{\gloskeyval{category}{genus}}\marg{clostridium}\marg{C.}\marg{Clostridium}^^J%
\gls{newabbreviation}\oarg{\gloskeyval{category}{genus}}\marg{myristica}\marg{M.}\marg{Myristica}^^J%
\gls{newabbreviation}\oarg{\gloskeyval{category}{common}}\marg{html}\marg{HTML}\marg{hypertext
markup language}
\gls{newabbreviation}\oarg{\gloskeyval{category}{title}}\marg{dr}\marg{Dr}\marg{Doctor}
}
{%
First use: \gls{gls}\marg{xml}, \gls{gls}\marg{clostridium}, \gls{gls}\marg{myristica},
\gls{gls}\marg{html}, \gls{gls}\marg{dr}.
\codepar
Next use: \gls{gls}\marg{xml}, \gls{gls}\marg{clostridium}, \gls{gls}\marg{myristica},
\gls{gls}\marg{html}, \gls{gls}\marg{dr}.
}
\end{resultbox}
If the category doesn't have an associated style, the style for the
\cat{abbreviation} category will be used, as with the \code{dr} entry
above, which uses the \abbrstyle{long-short-sc} style because no
style has been associated with its custom \code{title} category.
There are two categories that have an abbreviation style set by
default: \cat{abbreviation} and \cat{acronym}. These are initialised
as follows:
\begin{codebox}
\gls{setabbreviationstyle}\marg{\abbrstyle{long-short}}
\gls{setabbreviationstyle}\oarg{\cat{acronym}}\marg{\abbrstyle{short}}
\end{codebox}
This means that abbreviations defined with the default
\cat{abbreviation} category will show the long form followed by the
short form in parentheses on \idx{firstuse}, and those defined with the
\gloskey{category} set to \cat{acronym} will only show the short
form (that is, the long form won't be shown on \idx{firstuse}).
To make it easier to migrate a file containing entries defined with
\gls{newacronym}, the \sty{glossaries-extra} package redefines
\gls{newacronym} to do:
\begin{codebox}
\gls{newabbreviation}\oarg{\gloskey{type}=\gls{acronymtype},\gloskey{category}=\cat{acronym},\meta{options}}\margm{entry-label}\margm{short}\margm{long}
\end{codebox}
Note that this sets the \gloskey{category} to \cat{acronym}, which
means that any abbreviations defined with \gls{newacronym} will use
the \abbrstyle{short} style by default. If you want to use a
different style, you need to set the abbreviation style for the
\cat{acronym} category. For example, to use the
\abbrstyle{long-short} style:
\begin{codebox}
\gls{setabbreviationstyle}\oarg{\cat{acronym}}\marg{\abbrstyle{long-short}}
\end{codebox}
This must be placed before the first instance of \gls{newacronym}.
\begin{information}
You can't use \gls{setacronymstyle} with \sty{glossaries-extra}.
\end{information}
If you have defined any acronym styles with
\gls{newacronymstyle}, you will have to migrate them over to
\gls{newabbreviationstyle}. However, most of the predefined
abbreviation styles are flexible enough to adapt to common
abbreviation formats. It is possible to revert \gls{newacronym} back
to using the base \sty{glossaries} package's acronym mechanism
(\sectionref{sec:acrorevert}), but it should generally not be
necessary.
Terms defined with \gls{newabbreviation} (and \gls{newacronym}) can
be referenced in the main document text using commands like \gls{gls}.
(If you want to use shortcut commands like \gls{ac}, use the
\opteqvalref{shortcuts}{ac} package option.)
Remember that you can use the \glsopt{prereset} and
\glsopt{preunset} options to reset or unset the \idx{firstuseflag}
(see \sectionref{sec:glsunset}). Alternatively, you can use the
commands described in \sectionref{sec:abbrvfieldrefs}. For headings
and captions, see \sectionref{sec:headingcommands}.
\begin{important}
Avoid using \gls{glsfirst}, \gls{glsfirstplural}, \gls{glstext} and
\gls{glsplural} with abbreviations. Many of the abbreviation styles
are too complex to work with these commands (particularly the
case-changing variants or with the \meta{insert} final optional
argument or with \glsopt{innertextformat}). Instead, use commands
like \gls{gls}, \gls{glsxtrshort}, \gls{glsxtrlong} and \gls{glsxtrfull}.
\end{important}
\subsection{Abbreviation Fields: \optfmt{long} and \optfmt{short}}
\label{sec:abbrvfieldslongshort}
The \meta{short} and \meta{long} arguments are internally assigned with the
\gloskey{short} and \gloskey{long} keys (so don't use those keys in
\meta{options}), but the short and long values may first be modified by
category attributes, such as \catattr{markwords} or
\catattr{markshortwords}. As with other entries, avoid nested links
(see \sectionref{sec:nested}). This means avoid using the
\idx{glslike} and \idx{glstextlike} commands within \meta{short} and
\meta{long}.
\begin{information}
If an abbreviation can be formed by combining other
entries, consider using the multi (compound) entry function
(see \sectionref{sec:multientries}).
\end{information}
\subsection{Abbreviation Fields: \optfmt{longplural} and \optfmt{shortplural}}
\label{sec:abbrvfieldslongshortpl}
The \gloskey{longplural} key defaults to
\meta{long}\gls{glspluralsuffix} and the \gloskey{shortplural} key
defaults to \meta{short}\gls{abbrvpluralsuffix}. The
\catattr{aposplural} attribute will instead set the
\gloskey{shortplural} to \code{\meta{short}'\gls{abbrvpluralsuffix}}
and the \catattr{noshortplural} attribute will set
\gloskey{shortplural} to just \meta{short} (see
\sectionref{sec:categories}). If these values are not appropriate,
you will need to explicitly set the \gloskey{longplural} and
\gloskey{shortplural} keys in \meta{options}.
The short plural suffix \gls{abbrvpluralsuffix} is redefined by the
abbreviation style. Some styles, such as the \abbrstyle{long-short} style,
simply redefine \gls{abbrvpluralsuffix} to just:
\cmddef{glsxtrabbrvpluralsuffix}
which is defined to \gls{glspluralsuffix}.
Some styles, such as the \abbrstyle{long-short-sc} style, redefine
\gls{abbrvpluralsuffix} to include code to counteract the formatting
of the abbreviation.
\begin{information}
If you want to change the default short plural suffix, you need to
redefine \gls{glsxtrabbrvpluralsuffix} not \gls{abbrvpluralsuffix}.
If you don't want the suffix added, then set the
\catattr{noshortplural} attribute to \code{true}.
\end{information}
\subsection{Abbreviation Fields: \optfmt{name} and \optfmt{description}}
\label{sec:abbrvfieldsnamedesc}
The \gloskey{name} key is set according to the abbreviation style.
There should not be any need to explicitly set it.
Some styles require the \gloskey{description} key to be set in
\meta{options}, but other styles will set the \gloskey{description}
to the long form.
\subsection{Abbreviation Fields: \optfmt{type}}
\label{sec:abbrvfieldstype}
Abbreviations can be assigned to a particular \idx{glossary} using
the \gloskey{type} key in \meta{options}. The default for \gls{newabbreviation} is:
\cmddef{glsxtrabbrvtype}
This is initialised to \gls{glsdefaulttype} (the default glossary),
but the \opt{abbreviations} package option will redefine it to
\code{abbreviations}.
The default \gloskey{type} for \gls{newacronym} is:
\cmddef{acronymtype}
This is initialised to \gls{glsdefaulttype},
but the \opt{acronyms} package option will redefine it to
\code{acronym}.
\subsection{General Hooks}
\label{sec:abbrvgeneralhooks}
The following are general purpose hooks used within
\gls{newabbreviation}. Note that there are additional hooks that are
used by the abbreviation styles (see \sectionref{sec:abbrstyleinit}).
\cmddef{glsxtrnewabbrevpresetkeyhook}
This hook is provided for further customisation, if required.
It's implemented before the entry is defined (before the
\gloskey{shortplural} and \gloskey{longplural} keys supplied in
\meta{options} are parsed).
Does nothing by default. The arguments are a legacy throwback to old
versions that didn't have \gls{glsxtrorgshort}.
\cmddef{newabbreviationhook}
This hook is performed just before the entry is defined.
Does nothing by default.
\section{Examples: \appfmt{makeindex} vs
\appfmt{bib2gls}}
\label{sec:abbrvmakeindexvsbib2gls}
Example document using \app{makeindex}:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\marg{glossaries-extra}
\gls{makeglossaries}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}
\gls{newabbreviation}\marg{xml}\marg{XML}\marg{extensible markup language}
\gls{newacronym}\marg{nasa}\marg{NASA}\marg{National Aeronautics and Space Administration}
\cbeg{document}
First use: \gls{gls}\marg{sample}, \gls{gls}\marg{xml} and \gls{gls}\marg{nasa}.
Next use: \gls{gls}\marg{sample}, \gls{gls}\marg{xml} and \gls{gls}\marg{nasa}.
\gls{printglossaries}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[arara={pdflatex,makeglossaries,pdflatex,pdfcrop},
label{ex:newabbVSnewacVSnewentry},
title={\cmd{newabbreviation} vs \cmd{newacronym} vs \cmd{newglossaryentry}},
description={Example document illustrating the difference between
\cmd{newabbreviation}, \cmd{newacronym} and \cmd{newglossaryentry}}]
{%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{makeglossaries}^^J%
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an
example}}^^J%
\gls{newabbreviation}\marg{xml}\marg{XML}\marg{extensible markup
language}^^J%
\gls{newacronym}\marg{nasa}\marg{NASA}\marg{National Aeronautics and
Space Administration}%
}
{%
First use: \gls{gls}\marg{sample}, \gls{gls}\marg{xml} and \gls{gls}\marg{nasa}.
Next use: \gls{gls}\marg{sample}, \gls{gls}\marg{xml} and
\gls{gls}\marg{nasa}.^^J%
\gls{printglossaries}
}
\end{resultbox}
Note that the long form of NASA isn't displayed on the
\idx{firstuse} of \code{\gls{gls}\marg{nasa}}. This is because the
\cat{acronym} category uses the \abbrstyle{short} style by default.
In the above example, all entries are placed in the main (default)
glossary. The package options \opt{abbreviations} and \opt{acronyms}
can be used to split them off into separate glossaries.
If you use \app{bib2gls}, the analogous \ext!{bib} entry types are
\atentry{abbreviation} and \atentry{acronym}. The above example can
be rewritten to use \app{bib2gls}:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cbeg{filecontents*}\marg{\gls{jobname}.bib}
\atentry{entry}\marg{sample,
\gloskeyval{name}{sample},
\gloskeyval{description}{an example}
}
\atentry{abbreviation}\marg{xml,
\gloskeyval{short}{XML},
\gloskeyval{long}{extensible markup language}
}
\atentry{acronym}\marg{nasa,
\gloskeyval{short}{NASA},
\gloskeyval{long}{National Aeronautics and Space Administration}
}
\cend{filecontents*}
\cmd{usepackage}\oarg{\opt{record}}\marg{glossaries-extra}
\gls{GlsXtrLoadResources}
\cbeg{document}
First use: \gls{gls}\marg{sample}, \gls{gls}\marg{xml} and \gls{gls}\marg{nasa}.
Next use: \gls{gls}\marg{sample}, \gls{gls}\marg{xml} and \gls{gls}\marg{nasa}.
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[arara={pdflatex,bib2gls,pdflatex,pdfcrop},
label{ex:atabbVSatacVSatentry},
title={\code{@abbreviation} vs \code{@acronym} vs \code{@entry}},
description={Example document illustrating the difference between
\code{@abbreviation}, \code{@acronym} and \code{@entry}}]
{%
\cbeg{filecontents*}\marg{\gls{jobname}.bib}^^J%
@entry{sample,^^J%
name={sample},^^J%
description={an example}^^J%
}^^J%
@abbreviation{xml,^^J%
short={XML},^^J%
long={extensible markup language}^^J%
}^^J%
@acronym{nasa,^^J%
short={NASA},^^J%
long={National Aeronautics and Space Administration}^^J%
}^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}\oarg{record}\marg{glossaries-extra}^^J%
\gls{GlsXtrLoadResources}
}
{%
First use: \gls{gls}\marg{sample}, \gls{gls}\marg{xml} and \gls{gls}\marg{nasa}.^^J%
Next use: \gls{gls}\marg{sample}, \gls{gls}\marg{xml} and \gls{gls}\marg{nasa}.^^J%
\gls{printunsrtglossaries}
}
\end{resultbox}
\section{Referencing (Using) Abbreviations}
\label{sec:abbrvfieldrefs}
Since \gls{newabbreviation} internally uses \gls{newglossaryentry},
you can reference abbreviations with the \gls{glslike} commands as with other entries.
Remember that you can use the \glsopt{prereset} and
\glsopt{preunset} options to reset or unset the \idx{firstuseflag}
(see \sectionref{sec:glsunset}).
In general it's best not to use \gls{glsfirst},
\gls{glsfirstplural}, \gls{glstext}, \gls{glsplural} or their
case-changing variants as many of the abbreviation styles are too
complicated for those commands. If you specifically want the full
form, use \gls{gls} with \glsopt{prereset} or use \gls{glsxtrfull}.
If you specifically want the short form for a particular instance, use \gls{gls} with
\glsopt{preunset} or use \gls{glsxtrshort}. If you only want the
long form for a particular instance, use \gls{glsxtrlong}.
If you never want the short form with \gls{gls}, use one of the \qt{noshort}
styles, such as \abbrstyle{long-noshort}. If you never want the long
form with \gls{gls}, use one of the \qt{nolong} styles, such as
\abbrstyle{short-nolong}.
\begin{information}
If you need to use abbreviations in headings or captions, use
commands like \gls{glsfmtshort} and \gls{glsfmtlong} (see
\sectionref{sec:headingcommands}). Commands like \gls{glsentryname}
are likely to contain non-expandable content.
\end{information}
Example:
\begin{codebox}
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}
\cmd{usepackage}\marg{glossaries-extra}
\gls{makeglossaries}
\gls{newabbreviation}\marg{svm}\marg{SVM}\marg{support vector machine}
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
\codepar
\cbeg{document}
\gls{tableofcontents}
\cmd{section}\marg{Introducing the \gls{glsfmtlong}\marg{svm}}
First use: \gls{gls}\marg{svm}.
Next use: \gls{gls}\marg{svm}.
\codepar
\cmd{section}\marg{Introducing \gls{gls}\marg{html} (incorrect)}
First use (not!): \gls{gls}\marg{html}.
Next use: \gls{gls}\marg{html}.
\codepar
\gls{glsreset}\marg{html}
\cmd{section}\marg{Introducing \gls{glsxtrshort}\marg{html} (incorrect)}
First use: \gls{gls}\marg{html}.
Next use: \gls{gls}\marg{html}.
\codepar
\gls{glsreset}\marg{html}
\cmd{section}\marg{Introducing \gls{glsfmtshort}\marg{html}}
First use: \gls{gls}\marg{html}.
Next use: \gls{gls}\marg{html}.
\codepar
\gls{printglossaries}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[arara={pdflatex,makeglossaries,pdflatex,pdfcrop},
label={ex:abbrhyper},
title={Referencing an abbreviation (with \styfmt{hyperref})},
description={Example document illustrating referencing an
abbreviation (with hyperref)}]
{%
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}^^J%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{makeglossaries}^^J%
\gls{newabbreviation}\marg{svm}\marg{SVM}\marg{support vector machine}^^J%
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup
language}^^J%
}
{%
\gls{tableofcontents}^^J%
\cmd{section}\marg{Introducing the \gls{glsfmtlong}\marg{svm}}^^J%
First use: \gls{gls}\marg{svm}.^^J%
Next use: \gls{gls}\marg{svm}.
\codepar
\cmd{section}\marg{Introducing \gls{gls}\marg{html} (incorrect)}^^J%
First use (not!): \gls{gls}\marg{html}.^^J%
Next use: \gls{gls}\marg{html}.
\codepar
\gls{glsreset}\marg{html}^^J%
\cmd{section}\marg{Introducing \gls{glsxtrshort}\marg{html} (incorrect)}^^J%
First use: \gls{gls}\marg{html}.^^J%
Next use: \gls{gls}\marg{html}.^^J%
\codepar
\gls{glsreset}\marg{html}^^J%
\cmd{section}\marg{Introducing \gls{glsfmtshort}\marg{html}}^^J%
First use: \gls{gls}\marg{html}.^^J%
Next use: \gls{gls}\marg{html}.^^J%
\gls{printglossaries}
}
\end{resultbox}
In the above example, compare the first section heading (which
references an abbreviation with \gls{glsfmtlong}) with the second
section heading (which references an abbreviation with \gls{gls}).
Note that the \idx{firstuse} of the \code{html} entry actually
occurs in the table of contents, which results in the full form
showing in the table of contents, but only the abbreviation is
shown in the actual section~2 heading. The PDF bookmark shows the entry label
(\code{html}) not the abbreviation (HTML).
There is also a nested link for section~2 in the table of contents.
In some PDF viewers (such as Okular), this will lead to section~2
but, in others (such as Evince), it will lead to the HTML entry
target in the glossary. Similarly for section~3.
As with the base \sty{glossaries} package, the unformatted short and long forms
can be obtained with \gls{glsentryshort} and \gls{glsentrylong} or,
for the plural forms, \gls{glsentryshortpl} and
\gls{glsentrylongpl}. These are analogous to commands like
\gls{glsentrytext} and may be used in expandable contexts. The
sentence case versions (\gls{Glsentryshort},
\gls{Glsentrylong}, \gls{Glsentryshort}, and \gls{Glsentrylong}) are all robust
in \sty{glossaries} v4.49 and lower. As from \sty{glossaries} v4.50,
they can expand in PDF bookmarks, but outside of PDF bookmarks they
will expand to a robust internal command.
\begin{important}
Don't use the base \sty{glossaries} package's acronym commands, such
as \gls{acrshort}. These aren't compatible with \gls{newabbreviation}.
\end{important}
Each abbreviation style has a \idx{displayfullform}, which is the
format produced with the \idx{firstuse} of \gls{gls}, and an
\idx{inlinefullform}, which is the format produced by
\gls{glsxtrfull}. For some styles, such as \abbrstyle{long-short},
the \idxc{displayfullform}{display} and \idxc{inlinefullform}{inline} forms are identical.
The example below demonstrates the difference between the
\idx{firstuse} of \gls{gls} compared with the \idx{inlinefullform} for
the \abbrstyle{footnote} abbreviation style. The
example also uses \gls{glsfirst} to demonstrate that it produces an
undesirable result with the selected abbreviation style.
\begin{coderesult}
\gls{setabbreviationstyle}\marg{footnote}
\gls{newabbreviation}\marg{nasa}\marg{NASA}\marg{National Aeronautics and Space
Administration}
\codepar
\cbeg{document}
\gls{gls}\marg{nasa}\oarg{'s} space
exploration\cmd{ldots}
\codepar
\gls{glsxtrfull}\marg{nasa}\oarg{'s} space
exploration\cmd{ldots}
\codepar
\gls{glsfirst}\marg{nasa}\oarg{'s} space
exploration\cmd{ldots}
\cend{document}
\tcblower
\createexample*[fontsize={20},
label={ex:glsVSfullVSfirst},
title={First use of \cmd{gls} vs \cmd{glsxtrfull} vs \cmd{glsfirst}},
description={Example document illustrating the difference between
the first use of \cmd{gls} compared with \cmd{glsxtrfull} and
\cmd{glsfirst}}]
{%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{setabbreviationstyle}\marg{footnote}^^J%
\gls{newabbreviation}\marg{nasa}\marg{NASA}\marg{National Aeronautics and Space Administration}^^J%
}
{%
\gls{gls}\marg{nasa}\oarg{'s} space exploration\cmd{ldots}^^J%
\codepar
\gls{glsxtrfull}\marg{nasa}\oarg{'s} space exploration\cmd{ldots}^^J%
\codepar
\gls{glsfirst}\marg{nasa}\oarg{'s} space exploration\cmd{ldots}^^J%
}
\end{coderesult}
In the above, the \idx{firstuse} of \gls{gls} puts the long form in
the footnote but correctly inserts the final optional argument
before the footnote marker. The \idx{inlinefullform} (obtained with
\gls{glsxtrfull}) doesn't use a footnote, but instead shows the long
form in parentheses after the short form. The insert material is
correctly placed after the short form.
Compare this with the final line, which uses \gls{glsfirst}. This
shows the long form in the footnote, but the inserted material can't
be shifted before the footnote marker, which results in the strange
\qt{NASA\textsuperscript{2}'s}.
The following commands are included in the set of
\idx{glstextlike} commands. They have the \idxc{glsopt}{same
options} as \gls{glstext} and don't change the \idx{firstuseflag}.
They will index (unless \glsopt{noindex} is used), create a
hyperlink (if enabled), and use the \idx{postlinkhook}.
\cmddef{glsxtrshort}
Displays the short form using the abbreviation style's formatting.
\cmddef{Glsxtrshort}
As above, but \idx{sentencecase} version.
\cmddef{GLSxtrshort}
As above, but \idx{allcaps} version.
\cmddef{glsxtrshortpl}
Displays the short plural form using the abbreviation style's formatting.
\cmddef{Glsxtrshortpl}
As above, but \idx{sentencecase} version.
\cmddef{GLSxtrshortpl}
As above, but \idx{allcaps} version.
\cmddef{glsxtrlong}
Displays the long form using the abbreviation style's formatting.
As from v1.49, this command simulates \idx{firstuse} by defining
\gls{glsxtrifwasfirstuse} to do its first argument. This is done via
the command:
\cmddef{glsxtrsetlongfirstuse}
which is defined as:
\begin{compactcodebox}
\cmd{newcommand}\marg{\gls{glsxtrsetlongfirstuse}}[1]\marg{\comment{}
\cmd{let}\gls{glsxtrifwasfirstuse}\gls+{@firstoftwo}\comment{}
}
\end{compactcodebox}
This command takes the entry label as the argument, which is
ignored by default.
To restore the original behaviour, redefine this command as follows:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glsxtrsetlongfirstuse}}[1]\marg{\comment{}
\cmd{letcs}\gls{glsxtrifwasfirstuse}\marg{@secondoftwo}\comment{}
}
\end{codebox}
This command is also used by the case-changing and plural variants
listed below.
\cmddef{Glsxtrlong}
As above, but \idx{sentencecase} version.
\cmddef{GLSxtrlong}
As above, but \idx{allcaps} version.
\cmddef{glsxtrlongpl}
Displays the long plural form using the abbreviation style's formatting.
\cmddef{Glsxtrlongpl}
As above, but \idx{sentencecase} version.
\cmddef{GLSxtrlongpl}
As above, but \idx{allcaps} version.
\cmddef{glsxtrfull}
Displays the \idx{inlinefullform} using the abbreviation style's formatting.
Depending on the style, this may not be the same as the text
produced with the \idx{firstuse} of \gls{gls}.
\cmddef{Glsxtrfull}
As above, but \idx{sentencecase} version.
\cmddef{GLSxtrfull}
As above, but \idx{allcaps} version.
\cmddef{glsxtrfullpl}
Displays the \idxc{inlinefullform}{inline full plural form} using the abbreviation style's formatting.
Depending on the style, this may not be the same as the text
produced with the \idx{firstuse} of \gls{glspl}.
\cmddef{Glsxtrfullpl}
As above, but \idx{sentencecase} version.
\cmddef{GLSxtrfullpl}
As above, but \idx{allcaps} version.
\cmddef{glsxtrsetupfulldefs}
This hook is used within \gls{glsxtrfull}, \gls{glsxtrfullpl} and
the case-changing variations to initialise
\gls{glsxtrifwasfirstuse} in case it's required in the
\idx{postlinkhook}. The default definition is to simulate
\idx{firstuse}. Note that changing this can cause unexpected results
with abbreviation styles that set the \idx{postlinkhook}, such as
\abbrstyle{short-postlong-user}.
\cmddef{glsxtrfullsaveinsert}
This hook is used within \gls{glsxtrfull}, \gls{glsxtrfullpl} and
the case-changing variations to initialise the \gls{glsinsert}
placeholder. The default definition is to use
\gls{glsxtrsaveinsert}. If the insert isn't saved, it can't be used
within the \idx{postlinkhook} for the \gls{glsxtrfull} etc.
This affects the behaviour of the \qt{post-hyphen} abbreviation
styles, such as \abbrstyle{long-hyphen-postshort-hyphen}.
\subsection{Prefixes}
\label{sec:abbrprefixes}
If you are using the \sty{glossaries-prefix} package (which can
be loaded via the \opt{prefix} package option), then there are
commands similar to \gls{glsxtrshort} and \gls{glsxtrlong} that
insert the corresponding prefix and separator at the front if the
short or long form, if the prefix has been set and is non-empty. In all cases, the
separator is \gls{glsprefixsep}, as with \gls{pgls}.
\begin{important}
These commands require \sty{glossaries-prefix}.
\end{important}
\cmddef{pglsxtrshort}
As \gls{glsxtrshort} but inserts the \gloskey{prefix} field
and separator, if the \gloskey{prefix} value is set and non-empty.
\cmddef{Pglsxtrshort}
As \gls{pglsxtrshort} but \idx{sentencecase}. Note the initial
\qt{P} in the command name, which matches \gls{Pgls} (similarly for
the other prefix \idx{sentencecase} commands).
\cmddef{PGLSxtrshort}
As \gls{pglsxtrshort} but \idx{allcaps}.
\cmddef{pglsxtrshortpl}
As \gls{glsxtrshortpl} but inserts the \gloskey{prefixplural} field
and separator, if the \gloskey{prefixplural} value is set and non-empty.
\cmddef{Pglsxtrshortpl}
As \gls{pglsxtrshortpl} but \idx{sentencecase}.
\cmddef{PGLSxtrshortpl}
As \gls{pglsxtrshortpl} but \idx{allcaps}.
\cmddef{pglsxtrlong}
As \gls{glsxtrlong} but inserts the \gloskey{prefixfirst} field
and separator, if the \gloskey{prefixfirst} value is set and non-empty.
\cmddef{Pglsxtrlong}
As \gls{pglsxtrlong} but \idx{sentencecase}.
\cmddef{PGLSxtrlong}
As \gls{pglsxtrlong} but \idx{allcaps}.
\cmddef{pglsxtrlongpl}
As \gls{glsxtrlongpl} but inserts the \gloskey{prefixfirstplural} field
and separator, if the \gloskey{prefixfirstplural} value is set and non-empty.
\cmddef{Pglsxtrlongpl}
As \gls{pglsxtrlongpl} but \idx{sentencecase}.
\cmddef{PGLSxtrlongpl}
As \gls{pglsxtrlongpl} but \idx{allcaps}.
\subsection{Abbreviation Shortcut Commands}
\label{sec:abbrshortcuts}
The abbreviation shortcut commands can be enabled using
the \opteqvalref{shortcuts}{abbreviations} package option (or
\opteqvalref{shortcuts}{abbr} or \opteqvalref{shortcuts}{ac}).
The provided shortcut commands listed in
\tableref{tab:abbrshortcuts}. Note that
\gls{glsxtrenablerecordcount} will switch the shortcuts that use the
\gls{cgls}-like commands to the corresponding \gls{rgls}-like
command.
\begin{table}[htbp]
\caption{Abbreviation Shortcut Commands}
\label{tab:abbrshortcuts}
\centering
\begin{tabular}{lll}
\bfseries Shortcut &
\bfseries Shortcut &
\bfseries Equivalent Command\\
\bfseries (\opteqvalref{shortcuts}{abbreviations}) &
\bfseries (\opteqvalref{shortcuts}{ac})\\
\inlineglsdef{ab} & \inlineglsdef{ac} & \gls{cgls}\\
\inlineglsdef{abp} & \inlineglsdef{acp} & \gls{cglspl}\\
\inlineglsdef{as} & \inlineglsdef{acs} & \gls{glsxtrshort}\\
\inlineglsdef{asp} & \inlineglsdef{acsp} & \gls{glsxtrshortpl}\\
\inlineglsdef{al} & \inlineglsdef{acl} & \gls{glsxtrlong}\\
\inlineglsdef{alp} & \inlineglsdef{aclp} & \gls{glsxtrlongpl}\\
\inlineglsdef{af} & \inlineglsdef{acf} & \gls{glsxtrfull}\\
\inlineglsdef{afp} & \inlineglsdef{acfp} & \gls{glsxtrfullpl}\\
\inlineglsdef{Ab} & \inlineglsdef{Ac} & \gls{cgls}\\
\inlineglsdef{Abp} & \inlineglsdef{Acp} & \gls{cglspl}\\
\inlineglsdef{As} & \inlineglsdef{Acs} & \gls{Glsxtrshort}\\
\inlineglsdef{Asp} & \inlineglsdef{Acsp} & \gls{Glsxtrshortpl}\\
\inlineglsdef{Al} & \inlineglsdef{Acl} & \gls{Glsxtrlong}\\
\inlineglsdef{Alp} & \inlineglsdef{Aclp} & \gls{Glsxtrlongpl}\\
\inlineglsdef{Af} & \inlineglsdef{Acf} & \gls{Glsxtrfull}\\
\inlineglsdef{Afp} & \inlineglsdef{Acfp} & \gls{Glsxtrfullpl}\\
\inlineglsdef{AB} & \inlineglsdef{AC} & \gls{cGLS}\\
\inlineglsdef{ABP} & \inlineglsdef{ACP} & \gls{cGLSpl}\\
\inlineglsdef{AS} & \inlineglsdef{ACS} & \gls{GLSxtrshort}\\
\inlineglsdef{ASP} & \inlineglsdef{ACSP} & \gls{GLSxtrshortpl}\\
\inlineglsdef{AL} & \inlineglsdef{ACL} & \gls{GLSxtrlong}\\
\inlineglsdef{ALP} & \inlineglsdef{ACLP} & \gls{GLSxtrlongpl}\\
\inlineglsdef{AF} & \inlineglsdef{ACF} & \gls{GLSxtrfull}\\
\inlineglsdef{AFP} & \inlineglsdef{ACFP} & \gls{GLSxtrfullpl}\\
\inlineglsdef{newabbr} & \gls{newabbr} & \gls{newabbreviation}
\end{tabular}
\end{table}
\section{Tagging Initials}
\label{sec:tagging}
Initial tagging allows you to highlight the initials that form the
abbreviation when the long form is shown in the glossary.
\cmddef{GlsXtrEnableInitialTagging}
\begin{information}
\gls{GlsXtrEnableInitialTagging} must be placed before the abbreviations are defined.
\end{information}
This command (robustly) defines \meta{cs} (a control sequence)
to accept a single argument, which is the letter (or letters)
that needs to be tagged. The normal behaviour of \meta{cs}
within the document is to simply do its argument, but in the
glossary it's activated for those categories that have
the \catattr{tagging} attribute set to \qt{true}. For those
cases it will use:
\cmddef{glsxtrtagfont}
This command defaults to \code{\gls{underline}\margm{text}}
but may be redefined as required.
The control sequence \meta{cs} can't already be defined when
used with the unstarred version of
\gls{GlsXtrEnableInitialTagging} for safety reasons.
The starred version will overwrite any previous definition
of \meta{cs}. As with redefining any commands, ensure that
you don't redefine something important.
The first argument of \gls{GlsXtrEnableInitialTagging} is a
comma-separated list of category names. The \catattr{tagging}
attribute will automatically be set to \code{true} for those categories.
You can later set this attribute for other categories (see
\sectionref{sec:categories}) but this must be done before the
glossary is displayed.
For example, the following uses initial tagging for both the \cat{acronym} and
\cat{abbreviation} categories. The custom command \csfmt{itag} is
defined as the tagging command.
\begin{codebox}
\gls{makeglossaries}
\gls{GlsXtrEnableInitialTagging}\marg{\cat{acronym},\cat{abbreviation}}\marg{\cmd{itag}}
\gls{setabbreviationstyle}\oarg{\cat{acronym}}\marg{\abbrstyle{short-nolong-desc}}
\gls{newacronym}
\oarg{description=\marg{a system for detecting the location and
speed of ships, aircraft, etc, through the use of radio
waves}\comment{description of this term}
}
\marg{radar}\comment{identifying label}
\marg{radar}\comment{short form}
\marg{\cmd{itag}\marg{ra}dio \cmd{itag}\marg{d}etection \cmd{itag}\marg{a}nd \cmd{itag}\marg{r}anging}
\codepar
\gls{newabbreviation}\marg{xml}\marg{XML}
\marg{e\cmd{itag}\marg{x}tensible \cmd{itag}\marg{m}arkup \cmd{itag}\marg{l}anguage}
\codepar
\gls{newabbreviation}\oarg{\gloskeyval{category}{other}}\marg{tne}\marg{TNE}
\marg{\cmd{itag}\marg{t}agging \cmd{itag}\marg{n}ot \cmd{itag}\marg{e}nabled}
\codepar
\cbeg{document}
First use: \gls{gls}\marg{radar}, \gls{gls}\marg{xml}, \gls{gls}\marg{tne}.
\codepar
Long form only: \gls{glsxtrlong}\marg{radar}, \gls{glsxtrlong}\marg{xml}, \gls{glsxtrlong}\marg{tne}.
\gls{printglossaries}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[arara={pdflatex,makeglossaries,pdflatex,pdfcrop},
label={ex:tagging},
title={Tagging abbreviation initials},
description={Example document illustrating the use of
\cmd{GlsXtrEnableInitialTagging} to tag initial letters that form
the abbreviation}]
{%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{makeglossaries}^^J%
\gls{GlsXtrEnableInitialTagging}\marg{acronym,abbreviation}\marg{\cmd{itag}}^^J%
\gls{setabbreviationstyle}\oarg{acronym}\marg{short-nolong-desc}^^J%
\gls{newacronym}^^J%
\oarg{description=\marg{a system for detecting the location and
speed of ships, aircraft, etc, through the use of radio
waves}\comment{description of this term}
}^^J
\marg{radar}\comment{identifying label}
\marg{radar}\comment{short form}
\marg{\cmd{itag}\marg{ra}dio \cmd{itag}\marg{d}etection
\cmd{itag}\marg{a}nd \cmd{itag}\marg{r}anging}
\codepar
\gls{newabbreviation}\marg{xml}\marg{XML}^^J
\marg{e\cmd{itag}\marg{x}tensible \cmd{itag}\marg{m}arkup \cmd{itag}\marg{l}anguage}
\codepar
\gls{newabbreviation}\oarg{\gloskeyval{category}{other}}\marg{tne}\marg{TNE}^^J
\marg{\cmd{itag}\marg{t}agging \cmd{itag}\marg{n}ot \cmd{itag}\marg{e}nabled}
}
{%
First use: \gls{gls}\marg{radar}, \gls{gls}\marg{xml}, \gls{gls}\marg{tne}.
\codepar
Long form only: \gls{glsxtrlong}\marg{radar}, \gls{glsxtrlong}\marg{xml}, \gls{glsxtrlong}\marg{tne}.^^J%
\gls{printglossaries}
}
\end{resultbox}
The underlining of the tagged letters only occurs in the
glossary and then only for entries with the \catattr{tagging}
attribute set.
\section{Abbreviation Styles}
\label{sec:abbrstyle}
The style for a particular category is set using:
\cmddef{setabbreviationstyle}
If the \meta{category} is omitted, \cat{abbreviation} is assumed.
Remember that \gls{newacronym} sets the \gloskey{category} to
\cat{acronym} so with \gls{newacronym} you need to change the style with:
\begin{codebox}
\gls{setabbreviationstyle}\oarg{\cat{acronym}}\margm{style-name}
\end{codebox}
\begin{important}
The abbreviation style must be set before the abbreviation with the
corresponding category is defined. If you are using \app{bib2gls},
the style must be set before \gls{GlsXtrLoadResources}.
\end{important}
The style associated with the \cat{abbreviation} category will be
used if an abbreviation is defined with a category that doesn't have
an associated style.
Once you have defined an abbreviation with a given category, you
can't subsequently change the style for that category. You can't
have more than one style per category. The default style for the
\cat{abbreviation} category is \abbrstyle{long-short} and the
default style for the \cat{acronym} category is
\abbrstyle{short-nolong}.
In the example below, the custom \code{latin} category doesn't have
an associated abbreviation style, so it uses the style assigned to
the \cat{abbreviation} category, not the \cat{acronym} category.
The only reason that the \qt{radar} abbreviation (defined with
\gls{newacronym}) uses the style associated with the \cat{acronym}
category is because the default definition of \gls{newacronym} sets
\gloskeyval{category}{\cat{acronym}}.
\begin{coderesult}
\cmd{usepackage}[T1]\marg{fontenc}
\cmd{usepackage}\marg{glossaries-extra}
\gls{setabbreviationstyle}\marg{long-short-sc}
\gls{newabbreviation}\marg{html}\marg{html}\marg{hypertext markup language}
\gls{setabbreviationstyle}\oarg{\cat{acronym}}\marg{footnote}
\gls{newacronym}\marg{radar}\marg{radar}\marg{radio detection and ranging}
\gls{newacronym}\oarg{\gloskeyval{category}{latin}}\marg{ibid}\marg{ibid}\marg{ibidem}
\cbeg{document}
\gls{gls}\marg{html}, \gls{gls}\marg{radar} and \gls{gls}\marg{ibid}.
\gls{printunsrtglossaries}
\cend{document}
\tcblower
\createexample*[fontsize=20,
label={ex:fallbackabbrstyle},
title={Category without an associated abbreviation style},
description={Example document that has an abbreviation with a
category that doesn't have an associated abbreviation style}]
{%
\cmd{usepackage}[T1]\marg{fontenc}^^J%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{setabbreviationstyle}\marg{long-short-sc}^^J%
\gls{newabbreviation}\marg{html}\marg{html}\marg{hypertext markup language}^^J%
\gls{setabbreviationstyle}\oarg{acronym}\marg{footnote}^^J%
\gls{newacronym}\marg{radar}\marg{radar}\marg{radio detection and ranging}^^J%
\gls{newacronym}\oarg{category=latin}\marg{ibid}\marg{ibid}\marg{ibidem}
}
{%
\gls{gls}\marg{html}, \gls{gls}\marg{radar} and \gls{gls}\marg{ibid}.^^J%
\gls{printunsrtglossaries}
}
\end{coderesult}
\subsection{Predefined Abbreviation Styles}
\label{sec:predefabbrstyles}
There are two types of abbreviation styles: those that treat the
abbreviation as a regular entry (so that \gls{gls} uses
\gls{glsgenentryfmt} and is encapsulated with
\gls{glsxtrregularfont}) and those that don't treat the abbreviation
as a regular entry (so that \gls{gls} uses \gls{glsxtrgenabbrvfmt}
and is encapsulated with \gls{glsxtrabbreviationfont}). See
\sectionref{sec:entryfmt} for further details of those commands.
\begin{information}
The non-regular abbreviation styles allow for more complex formats
than the regular styles.
\end{information}
The regular entry abbreviation styles set the \catattr{regular}
attribute to \code{true} for the category assigned to each
abbreviation with that style. This means that on \idx{firstuse},
\gls{gls} uses the value of the \gloskey{first} field and on
subsequent use \gls{gls} uses the value of the \gloskey{text} field
(and analogously for the plural and case-changing versions).
The non-regular abbreviation styles don't set the \catattr{regular}
attribute, unless it has already been set, in which case it will be
changed to \code{false}. The \gloskey{first} and \gloskey{text}
fields (and their plural forms) are set, but they aren't used by
commands like \gls{gls}, which instead use formatting commands, such
as \gls{glsxtrfullformat} and \gls{glsxtrsubsequentfmt}, which are
defined by the style.
In both cases, the \idx{firstuse} of \gls{gls} may not match the
text produced by \gls{glsfirst} (and likewise for the plural
and case-changing versions).
The \gloskey{short} and \gloskey{long} fields are set as appropriate
and may be accessed through commands like \gls{glsxtrshort} and
\gls{glsxtrlong}. These may appear slightly differently to the way
the short or long form is displayed within \gls{gls}, depending on the
style.
The sample file
\ctanmirrornofn{macros/latex/contrib/glossaries-extra/samples/sample-abbr-styles.pdf}{\filefmt{sample-abbr-styles.pdf}}
demonstrates all predefined styles described here.
\begin{important}
For the \qt{sc} styles that use \gls{textsc}, be careful about your
choice of fonts as some only have limited support. For example, you
may not be able to combine bold and small-caps. If you're using
\pdfLaTeX, I recommend that you at least use the \sty{fontenc}
package with the \optfmt{T1} option or something similar.
\end{important}
The predefined styles have helper commands to make it easier to modify
the format. These are described in \sectionref{sec:abbrvcmds}.
Table~\ref{tab:acrabbrvstyles} lists the nearest equivalent
\sty{glossaries-extra} abbreviation styles for
the predefined acronym styles provided by \sty{glossaries}, but
note that the new styles use different formatting commands.
\begin{table}[htbp]
\caption[Base Acronym Styles Verses New Abbreviation Styles]{Base Acronym Styles
\glsfmttext{setacronymstyle}\margm{base-style-name} Verses New Abbreviation
Styles \glsfmttext{setabbreviationstyle}\oargm{category}\margm{new-style-name}}
\label{tab:acrabbrvstyles}
\centering
\begin{tabular}{lp{0.7\textwidth}}
\bfseries Base Style Name &
\bfseries New Style Name\\
\acrstyle{long-sc-short} & \abbrstyle{long-short-sc}\\
\acrstyle{long-sm-short} & \abbrstyle{long-short-sm}\\
\acrstyle{long-sp-short} & \abbrstyle{long-short} \newline with
\code{\cmd{renewcommand}\marg{\gls{glsxtrfullsep}}\marg{\gls{glsabspace}}}\\
\acrstyle{short-long} & \abbrstyle{short-long}\\
\acrstyle{sc-short-long} & \abbrstyle{short-sc-long}\\
\acrstyle{sm-short-long} & \abbrstyle{short-sm-long}\\
\acrstyle{long-short-desc} & \abbrstyle{long-short-desc}\\
\acrstyle{long-sc-short-desc} & \abbrstyle{long-short-sc-desc}\\
\acrstyle{long-sm-short-desc} & \abbrstyle{long-short-sm-desc}\\
\acrstyle{long-sp-short-desc} & \abbrstyle{long-short-desc} \newline with
\code{\cmd{renewcommand}\marg{\gls{glsxtrfullsep}}\marg{\gls{glsabspace}}}\\
\acrstyle{short-long-desc} & \abbrstyle{short-long-desc}\\
\acrstyle{sc-short-long-desc} & \abbrstyle{short-sc-long-desc}\\
\acrstyle{sm-short-long-desc} & \abbrstyle{short-sm-long-desc}\\
\acrstyle{dua} & \abbrstyle{long-noshort}\\
\acrstyle{dua-desc} & \abbrstyle{long-noshort-desc}\\
\acrstyle{footnote} & \abbrstyle{short-footnote}\\
\acrstyle{footnote-sc} & \abbrstyle{short-sc-footnote}\\
\acrstyle{footnote-sm} & \abbrstyle{short-sm-footnote}\\
\acrstyle{footnote-desc} & \abbrstyle{short-footnote-desc}\\
\acrstyle{footnote-sc-desc} & \abbrstyle{short-sc-footnote-desc}\\
\acrstyle{footnote-sm-desc} & \abbrstyle{short-sm-footnote-desc}
\end{tabular}
\end{table}
The example documents used to illustrate the predefined styles in
the sub-sections below are all in the form (document class and
options may vary):
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\oarg{T1}\marg{fontenc}
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}
\cmd{usepackage}\marg{glossaries-extra}
\gls{setabbreviationstyle}\margm{style-name}
\gls{newabbreviation}\oargm{options}\marg{ex}\margm{short}\marg{long form}
\cbeg{document}
First: \gls{gls}\marg{ex}[-insert]. Next: \gls{gls}\marg{ex}[-insert].
Full: \gls{glsxtrfull}\marg{ex}[-insert].
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
where \meta{style-name} is the name of the abbreviation style,
\meta{short} is either \qt{SHRT FM} or (for the \idx{smallcaps}
examples) \qt{shrt fm}. The styles that require the
\gloskey{description} or \gloskey{user1} key to be set will include that in
\meta{options} otherwise the optional argument of
\gls{newabbreviation} will be omitted.
The examples with a style that requires
\gls{textsmaller} will load \sty{relsize}.
The \qt{hyphen} styles set the \catattr{markwords} and
\catattr{markshortwords} attributes.
Note that \sty{hyperref} is loaded with the \optfmt{colorlinks}
option, so the hyperlink text will be red.
The naming scheme for abbreviation styles is as follows:
\begin{itemize}
\item
\meta{field1}[\code{-}\meta{modifier1}]\code{-}[post]\meta{field2}[\code{-}\meta{modifier2}][\code{-user}]
This is for the parenthetical styles. The \code{-}\meta{modifier} parts may
be omitted. These styles display \meta{field1} followed by
\meta{field2} in parentheses. If \meta{field1} or \meta{field2} starts
with \qt{no} then that element is omitted from the
\idxc{displayfullform}{display style} (no
parenthetical part) but is included in the \idxc{inlinefullform}{inline style}.
If \code{post} is present then \meta{field2} is
placed after the \gls{linktext} using the \idx{postlinkhook}.
Note that this will use the singular form of \meta{field2} by
default, even if \gls{glspl} is used. The corresponding non-post
style will use the matching form for \meta{field2}.
If the \code{-}\meta{modifier} part is present and is one of
\code{sc}, \code{sm} or \code{em}, then the field has
a font changing command applied to it.
The modifier \code{-only} indicates that field is only present
according to whether or not the entry has been used.
The modifier \code{-hyphen} indicates the style will substitute
inter-word spaces (that have been marked up with the
\catattr{markwords} or \catattr{markshortwords} attributes) will be
changed to spaces if the inserted material starts with a hyphen (but
not for the set of \gls{glsxtrshort} and \gls{glsxtrlong} commands).
If the \code{-user} part is present, then the value of the field
given by \gls{glsxtruserfield} (\gloskey{user1}), if set, is inserted into the
parenthetical material.
Examples:
\begin{itemize}
\item\abbrstyle{long-noshort-sc}: \meta{field1} is the long
form, the short form is set in \idx{smallcaps} but omitted in the display
style.
\item\abbrstyle{long-em-short-em}: both the long form and the
short form are emphasized. The short form is in parentheses.
\item\abbrstyle{long-short-em}: the
short form is emphasized but not the long form. The short form is in parentheses.
\item\abbrstyle{long-short-user}: if the \gloskey{user1} key has
been set, this produces the style \meta{long} (\meta{short},
\meta{user1}) otherwise it just produces \meta{long} (\meta{short}).
\item\abbrstyle{long-hyphen-postshort-hyphen}: the short
form and the inserted material (provided by the final optional
argument of commands like \gls{gls}) is moved to the post-link hook.
The long form is formatted according to \gls{glslonghyphenfont}
(or \gls{glsfirstlonghyphenfont} on first use).
The short form is formatted according to \gls{glsabbrvhyphenfont}
(or \gls{glsfirstabbrvhyphenfont} on first use).
\end{itemize}
\item \meta{style}\code{-noreg}
Some styles set the \catattr{regular} attribute. In some cases,
there's a version of the style that doesn't set this attribute.
For example, \abbrstyle{long-em-noshort-em} sets the
\catattr{regular} attribute. The
\abbrstyle{long-em-noshort-em-noreg} style is a minor variation
of that style that sets the attribute to \code{false}.
There are a few \qt{noshort} styles, such as
\abbrstyle{long-hyphen-noshort-noreg}, where there isn't a
corresponding regular version. This is because the
style won't work properly with the \catattr{regular} attribute set, but the
naming scheme is maintained for consistency with the other
\qt{noshort} styles.
\item
\meta{field1}[\code{-}\meta{modifier1}]\code{-}[\code{post}]\code{footnote}
The display style uses \meta{field1} followed by a footnote with the
other field in it. If \code{post} is present then the footnote is
placed after the \gls{linktext} using the post-link hook.
The inline style does \meta{field1} followed by the other field in
parentheses.
If \code{-}\meta{modifier1} is present, \meta{field1} has a
font-changing command applied to it.
Examples:
\begin{itemize}
\item \abbrstyle{short-footnote}: short form in the text with the
long form in the footnote.
\item \abbrstyle{short-sc-postfootnote}: short form in smallcaps
with the long form in the footnote outside of the \gls{linktext}.
\end{itemize}
\begin{important}
Take care with the footnote styles. Remember that there are some
situations where \gls{footnote} doesn't work.
\end{important}
\item \meta{style}\code{-desc}
Like \meta{style} but the \gloskey{description} key must be provided
when defining abbreviations with this style.
Examples:
\begin{itemize}
\item \abbrstyle{short-long-desc}: like \abbrstyle{short-long} but
requires a description.
\item \abbrstyle{short-em-footnote-desc}: like
\abbrstyle{short-em-footnote} but requires a description.
\end{itemize}
\end{itemize}
Not all combinations that fit the above syntax are provided.
Pre-version 1.04 styles that didn't fit this naming scheme are either
provided with a synonym (where the former name wasn't ambiguous) or
provided with a deprecated synonym (where the former name was
confusing).
\subsubsection{Regular Styles}
\label{sec:predefregabbrvstyles}
The following abbreviation styles set the \catattr{regular}
attribute to \code{true} for all categories that have abbreviations
defined with any of these styles. This means that they are treated
like ordinary entries and are encapsulated with
\gls{glsxtrregularfont} not \gls{glsxtrabbreviationfont}. The
\idx{glslike} commands are formatted according to
\gls{glsgenentryfmt}.
\paragraph{Short Styles}
\label{sec:predefregabbrvstylesshort}These styles only show the
short form on both \idx{firstuse} and \idx{subsequentuse}.
See \sectionref{sec:abbrvcmdsgeneral} and
\sectionref{sec:abbrvcmdsnolong} for style commands.
\abbrstyledef{short-nolong}
Only the short form is shown on \idx{firstuse} of the \idx{glslike}
commands. The \idx{inlinefullform} uses the same
parenthetical style as \abbrstyle{short-long} (\gls{glsxtrshortlongformat}).
Font variations are available with \abbrstyle{short-sc-nolong},
\abbrstyle{short-sm-nolong} and \abbrstyle{short-em-nolong}.
\abbrvstyleexampleuc{short-nolong}
The long form is formatted with \gls{glslongdefaultfont} for the
\gls{glsxtrlong} set of commands.
The short form is formatted with \gls{glsfirstabbrvdefaultfont}
within the full form and with \gls{glsabbrvdefaultfont} for
\idx{subsequentuse} and for the \gls{glsxtrshort} set of commands.
The name is set to the short form (\gls{glsxtrshortnolongname}) and
the description is set to the unencapsulated long form.
\abbrstyledef{short}
A synonym for \abbrstyle{short-nolong}.
\abbrstyledef{short-nolong-desc}
As \abbrstyle{short-nolong} but the description must be supplied in
the optional argument of \gls{newabbreviation}.
Font variations are available with \abbrstyle{short-sc-nolong-desc},
\abbrstyle{short-sm-nolong-desc} and \abbrstyle{short-em-nolong-desc}.
\abbrvstyleexampleucdesc{short-nolong-desc}
The name is set to the short form followed by the long form in
parentheses (\gls{glsxtrshortdescname}), and the sort is set to
just the short form.
\abbrstyledef{short-desc}
A synonym for \abbrstyle{short-nolong-desc}.
\abbrstyledef{nolong-short}
The same as \abbrstyle{short-nolong} except for the
\idx{inlinefullform}, which shows the same parenthetical style as
\abbrstyle{long-short} (\gls{glsxtrlongshortformat}).
Font variations are available with \abbrstyle{nolong-short-sc},
\abbrstyle{nolong-short-sm} and \abbrstyle{nolong-short-em}.
\abbrvstyleexampleuc{nolong-short}
\abbrstyledef{short-sc-nolong}
This style is like \abbrstyle{short-nolong} but it uses
\gls{glsxtrscsuffix}, \gls{glsabbrvscfont} and
\gls{glsfirstabbrvscfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplelc{short-sc-nolong}
\abbrstyledef{short-sc}
A synonym for \abbrstyle{short-sc-nolong}.
\abbrstyledef{short-sc-nolong-desc}
This style is like \abbrstyle{short-nolong-desc} but it uses
\gls{glsxtrscsuffix}, \gls{glsabbrvscfont} and
\gls{glsfirstabbrvscfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplelcdesc{short-sc-nolong-desc}
\abbrstyledef{short-sc-desc}
A synonym for \abbrstyle{short-sc-nolong-desc}.
\abbrstyledef{nolong-short-sc}
This style is like \abbrstyle{nolong-short} but it uses
\gls{glsxtrscsuffix}, \gls{glsabbrvscfont} and
\gls{glsfirstabbrvscfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplelc{nolong-short-sc}
\abbrstyledef{short-sm-nolong}
This style is like \abbrstyle{short-nolong} but it uses
\gls{glsxtrsmsuffix}, \gls{glsabbrvsmfont} and
\gls{glsfirstabbrvsmfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplesm{short-sm-nolong}
\abbrstyledef{short-sm}
A synonym for \abbrstyle{short-sm-nolong}.
\abbrstyledef{short-sm-nolong-desc}
This style is like \abbrstyle{short-nolong-desc} but it uses
\gls{glsxtrsmsuffix}, \gls{glsabbrvsmfont} and
\gls{glsfirstabbrvsmfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplesmdesc{short-sm-nolong-desc}
\abbrstyledef{short-sm-desc}
A synonym for \abbrstyle{short-sm-nolong-desc}.
\abbrstyledef{nolong-short-sm}
This style is like \abbrstyle{nolong-short} but it uses
\gls{glsxtrsmsuffix}, \gls{glsabbrvsmfont} and
\gls{glsfirstabbrvsmfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplesm{nolong-short-sm}
\abbrstyledef{short-em-nolong}
This style is like \abbrstyle{short-nolong} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexampleuc{short-em-nolong}
\abbrstyledef{short-em}
A synonym for \abbrstyle{short-em-nolong}.
\abbrstyledef{short-em-nolong-desc}
This style is like \abbrstyle{short-nolong-desc} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexampleucdesc{short-em-nolong-desc}
\abbrstyledef{short-em-desc}
A synonym for \abbrstyle{short-em-nolong-desc}.
\abbrstyledef{nolong-short-em}
This style is like \abbrstyle{nolong-short} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexampleuc{nolong-short-em}
\paragraph{Long Styles}
\label{sec:predefregabbrvstyleslong}These styles only show the long
form on both \idx{firstuse} and \idx{subsequentuse}. See
\sectionref{sec:abbrvcmdsgeneral} and
\sectionref{sec:abbrvcmdsnoshort} for style commands.
\abbrstyledef{long-noshort-desc}
Only the long form is shown on \idx{firstuse} and
\idx{subsequentuse} of the \idx{glslike} commands
(\gls{glsxtrlongformat}). The \idx{inlinefullform} uses the same
parenthetical style as \abbrstyle{long-short}
(\gls{glsxtrlongshortformat}).
Font variations are available with \abbrstyle{long-noshort-sc-desc},
\abbrstyle{long-noshort-sm-desc} and \abbrstyle{long-noshort-em-desc}.
\abbrvstyleexampleucdesc{long-noshort-desc}
The long form is formatted with \gls{glsfirstlongdefaultfont} on
\idx{firstuse} and \gls{glslongdefaultfont} for \idx{subsequentuse}
and for the \gls{glsxtrlong} set of commands.
The short form is formatted with \gls{glsfirstabbrvdefaultfont}
within the \idx{inlinefullform} and with \gls{glsabbrvdefaultfont}
for the \gls{glsxtrshort} set of commands.
The name is set to the long form (\gls{glsxtrlongnoshortdescname}) and
the description must be supplied.
\abbrstyledef{long-desc}
A synonym for \abbrstyle{long-noshort-desc}.
\abbrstyledef{long-noshort}
This is like \abbrstyle{long-noshort-desc} but the name is set to
the short form (\gls{glsxtrlongnoshortname}) and the description is
set to the unencapsulated long form.
\abbrvstyleexampleuc{long-noshort}
\abbrstyledef{long}
A synonym for \abbrstyle{long-noshort}.
\abbrstyledef{long-noshort-sc}
This style is like \abbrstyle{long-noshort} but it uses
\gls{glsxtrscsuffix}, \gls{glsabbrvscfont} and
\gls{glsfirstabbrvscfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplelc{long-noshort-sc}
\abbrstyledef{long-noshort-sc-desc}
This style is like \abbrstyle{long-noshort-desc} but it uses
\gls{glsxtrscsuffix}, \gls{glsabbrvscfont} and
\gls{glsfirstabbrvscfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplelcdesc{long-noshort-sc-desc}
\abbrstyledef{long-noshort-sm}
This style is like \abbrstyle{long-noshort} but it uses
\gls{glsxtrsmsuffix}, \gls{glsabbrvsmfont} and
\gls{glsfirstabbrvsmfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplesm{long-noshort-sm}
\abbrstyledef{long-noshort-sm-desc}
This style is like \abbrstyle{long-noshort-desc} but it uses
\gls{glsxtrsmsuffix}, \gls{glsabbrvsmfont} and
\gls{glsfirstabbrvsmfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplesmdesc{long-noshort-sm-desc}
\abbrstyledef{long-noshort-em}
This style is like \abbrstyle{long-noshort} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexampleuc{long-noshort-em}
\abbrstyledef{long-noshort-em-desc}
This style is like \abbrstyle{long-noshort-desc} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexampleucdesc{long-noshort-em-desc}
\abbrstyledef{long-em-noshort-em}
This style is like \abbrstyle{long-noshort} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont},
\gls{glsfirstabbrvemfont}, \gls{glslongemfont} and
\gls{glsfirstlongemfont} (see \sectionref{sec:abbrvcmdsfonts}).
This emphasizes both the long and short forms.
\abbrvstyleexampleuc{long-em-noshort-em}
\abbrstyledef{long-em-noshort-em-desc}
This style is like \abbrstyle{long-noshort-desc} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont},
\gls{glsfirstabbrvemfont}, \gls{glslongemfont} and
\gls{glsfirstlongemfont} (see \sectionref{sec:abbrvcmdsfonts}).
This emphasizes both the long and short forms.
\abbrvstyleexampleucdesc{long-em-noshort-em-desc}
\subsubsection{Non-Regular Styles}
\label{sec:predefnonregabbrvstyles}
The following abbreviation styles will set the
\catattr{regular} attribute to \code{false} if it has previously
been set. If it hasn't already been set, it's left unset.
Other attributes may also be set, depending on the style.
The non-regular styles are too complicated to use
\gls{glsgenentryfmt} as the display style (with the
\idx{glslike} commands). Instead they use \gls{glsxtrgenabbrvfmt}. This
means that these styles won't work if you provide your own custom
display style (using \gls{defglsentryfmt}) that doesn't check for
the \catattr{regular} attribute.
\begin{important}
Avoid using \gls{glsfirst}, \gls{glsfirstplural},
\gls{glstext} and \gls{glsplural} (or their case-changing variants)
with these styles. There are also some styles that can be
problematic with \gls{GLSname}.
\end{important}
\paragraph{Long (Short) Styles}
\label{sec:predefnonregabbrvstyleslongshort}These styles show the
long form followed by the short form in parentheses on
\idx{firstuse}. On \idx{subsequentuse} only the short form is shown.
See \sectionref{sec:abbrvcmdsgeneral} and \sectionref{sec:abbrvcmdsparen}
for style commands.
\abbrstyledef{long-short}
The \meta{insert} is placed after the long form on \idx{firstuse}
of the \idx{glslike} commands and after the short form on \idx{subsequentuse}.
The \idx{inlinefullform} is the same as the \idx{displayfullform}
(\gls{glsxtrlongshortformat}).
Font variations are available with \abbrstyle{long-short-sc},
\abbrstyle{long-short-sm}, \abbrstyle{long-short-em} and
\abbrstyle{long-em-short-em}.
\abbrvstyleexampleuc{long-short}
The long form is formatted with \gls{glsfirstlongdefaultfont}
within the full form and with \gls{glslongdefaultfont} for the
\gls{glsxtrlong} set of commands.
The short form is formatted with \gls{glsfirstabbrvdefaultfont}
within the full form and with \gls{glsabbrvdefaultfont} for
\idx{subsequentuse} and for the \gls{glsxtrshort} set of commands.
The name is set to the short form (\gls{glsxtrlongshortname}) and
the description is set to the unencapsulated long form.
\abbrstyledef{long-short-desc}
As \abbrstyle{long-short} but the description must be supplied in
the optional argument of \gls{newabbreviation}.
Font variations are available with \abbrstyle{long-short-sc-desc},
\abbrstyle{long-short-sm-desc}, \abbrstyle{long-short-em-desc} and
\abbrstyle{long-em-short-em-desc}.
\abbrvstyleexampleucdesc{long-short-desc}
The name and sort are set to the long form followed by the short form in
parentheses (\gls{glsxtrlongshortdescname} and
\gls{glsxtrlongshortdescsort}).
\abbrstyledef{long-short-sc}
This style is like \abbrstyle{long-short} but it uses
\gls{glsxtrscsuffix}, \gls{glsabbrvscfont} and
\gls{glsfirstabbrvscfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplelc{long-short-sc}
\abbrstyledef{long-short-sc-desc}
This style is like \abbrstyle{long-short-desc} but it uses
\gls{glsxtrscsuffix}, \gls{glsabbrvscfont} and
\gls{glsfirstabbrvscfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplelcdesc{long-short-sc-desc}
\abbrstyledef{long-short-sm}
This style is like \abbrstyle{long-short} but it uses
\gls{glsxtrsmsuffix}, \gls{glsabbrvsmfont} and
\gls{glsfirstabbrvsmfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplesm{long-short-sm}
\abbrstyledef{long-short-sm-desc}
This style is like \abbrstyle{long-short-desc} but it uses
\gls{glsxtrsmsuffix}, \gls{glsabbrvsmfont} and
\gls{glsfirstabbrvsmfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplesmdesc{long-short-sm-desc}
\abbrstyledef{long-short-em}
This style is like \abbrstyle{long-short} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexampleuc{long-short-em}
\abbrstyledef{long-short-em-desc}
This style is like \abbrstyle{long-short-desc} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexampleucdesc{long-short-em-desc}
\abbrstyledef{long-em-short-em}
This style is like \abbrstyle{long-short} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont}, \gls{glsfirstlongemfont}
and \gls{glslongemfont} (see \sectionref{sec:abbrvcmdsfonts}).
That is, both the long and short forms are emphasized.
\abbrvstyleexampleuc{long-em-short-em}
\abbrstyledef{long-em-short-em-desc}
This style is like \abbrstyle{long-short-desc} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont}, \gls{glsfirstlongemfont}
and \gls{glslongemfont} (see \sectionref{sec:abbrvcmdsfonts}).
That is, both the long and short forms are emphasized.
\abbrvstyleexampleucdesc{long-em-short-em-desc}
\paragraph{Long (Short, User) Styles}
\label{sec:predefnonregabbrvstyleslongshortuser}These styles are like the
long (short) styles in \sectionref{sec:predefnonregabbrvstyleslongshort}
but additional content can be supplied in the field identified by
\gls{glsxtruserfield}, which will be placed in the parenthetical
content on \idx{firstuse} (if set).
The \idx{inlinefullform} is the same as the \idx{displayfullform}.
These styles use the commands \gls{glsxtrusersuffix},
\gls{glsabbrvuserfont}, \gls{glsfirstabbrvuserfont},
\gls{glslonguserfont} and \gls{glsfirstlonguserfont} (except where
noted). See \sectionref{sec:abbrvcmdsgeneral} and
\sectionref{sec:abbrvcmdsuser} for style commands.
If you need to change the font, you can redefine the associated
commands (listed above). However, since \idx{smallcaps} are awkward
because the short plural suffix needs to counteract the
\idx{smallcaps}, \idx{smallcaps} versions are provided.
\abbrstyledef{long-short-user}
This style is like \abbrstyle{long-short} but it includes the
additional content in the parentheses on \idx{firstuse} or the
\idx{inlinefullform}. The description is obtained from
\gls{glsuserdescription}, which can be redefined to include the
additional information, if required.
\abbrvstyleexampleucuser{long-short-user}
\abbrstyledef{long-short-user-desc}
This style is like \abbrstyle{long-short-user} but the description
must be supplied. The name is obtained from
\gls{glsxtrlongshortuserdescname}.
\abbrvstyleexampleucuserdesc{long-short-user-desc}
\begin{important}
This style is incompatible with \gls{GLSname}.
\end{important}
If you need to use \gls{GLSname} with this style, you'll have to
redefine \gls{glsxtrlongshortuserdescname} so that the field name
doesn't include the entry label. For example:
\begin{codebox}
\cmd{newcommand}\marg{\gls{glsxtrlongshortuserdescname}}\marg{\%
\cmd{protect}\gls{glslonguserfont}\marg{\cmd{the}\gls{glslongtok}}\%
\cmd{space}(\cmd{protect}\gls{glsabbrvuserfont}\marg{\cmd{the}\gls{glsshorttok}})\%
}
\end{codebox}
\abbrstyledef{long-postshort-user}
This style is like \abbrstyle{long-short-user} but the parenthetical
material is placed in the \idx{postlinkhook}. Note that, unlike
\abbrstyle{long-short-user}, the plural form isn't used in the
parenthetical material. If you require this, you will need to
redefine \gls{glsxtrpostusershortformat}.
\abbrvstyleexampleucuser{long-postshort-user}
\abbrstyledef{long-postshort-user-desc}
This style is like \abbrstyle{long-postshort-user} but the description
must be supplied. The name is obtained from
\gls{glsxtrlongshortuserdescname}.
\abbrvstyleexampleucuserdesc{long-postshort-user-desc}
\begin{important}
This style is incompatible with \gls{GLSname}.
\end{important}
If you need to use \gls{GLSname} with this style, you'll have to
redefine \gls{glsxtrshortlonguserdescname} so that the field name
doesn't include the entry label, as for
\abbrstyle{long-short-user-desc}.
\abbrstyledef{long-postshort-sc-user}
This style is like \abbrstyle{long-postshort-user} but it uses
\gls{glsxtrscusersuffix}, \gls{glsabbrvscuserfont} and
\gls{glsfirstabbrvscuserfont}.
The name value is obtained from \gls{glsxtrlongshortscusername}.
\abbrvstyleexamplelcuser{long-postshort-sc-user}
\abbrstyledef{long-postshort-sc-user-desc}
This style is like \abbrstyle{long-postshort-sc-user} but the description
must be supplied. The name is obtained from
\gls{glsxtrlongshortuserdescname}.
\abbrvstyleexamplelcuserdesc{long-postshort-sc-user-desc}
\begin{important}
This style is incompatible with \gls{GLSname}.
\end{important}
If you need to use \gls{GLSname} with this style, you'll have to
redefine \gls{glsxtrlongshortscuserdescname} so that the field name
doesn't include the entry label.
\paragraph{Short (Long) Styles}
\label{sec:predefnonregabbrvstylesshortlong}These styles show the
short form followed by the long form in parentheses on
\idx{firstuse}. On \idx{subsequentuse} only the short form is shown.
See \sectionref{sec:abbrvcmdsgeneral} and \sectionref{sec:abbrvcmdsparen}
for style commands.
\abbrstyledef{short-long}
The \meta{insert} is placed after the short form on \idx{firstuse}
and \idx{subsequentuse} of the \idx{glslike} commands.
The \idx{inlinefullform} is the same as the \idx{displayfullform}
(\gls{glsxtrshortlongformat}).
Font variations are available with \abbrstyle{short-sc-long},
\abbrstyle{short-sm-long}, \abbrstyle{short-em-long} and
\abbrstyle{short-em-long-em}.
\abbrvstyleexampleuc{short-long}
The long form is formatted with \gls{glsfirstlongdefaultfont}
within the full form and with \gls{glslongdefaultfont} for the
\gls{glsxtrlong} set of commands.
The short form is formatted with \gls{glsfirstabbrvdefaultfont}
within the full form and with \gls{glsabbrvdefaultfont} for
\idx{subsequentuse} and for the \gls{glsxtrshort} set of commands.
The name is set to the short form (\gls{glsxtrlongshortname}) and
the description is set to the unencapsulated long form.
\abbrstyledef{short-long-desc}
As \abbrstyle{short-long} but the description must be supplied in
the optional argument of \gls{newabbreviation}.
Font variations are available with \abbrstyle{short-sc-long-desc},
\abbrstyle{short-sm-long-desc}, \abbrstyle{short-em-long-desc} and
\abbrstyle{short-em-long-em-desc}.
\abbrvstyleexampleucdesc{short-long-desc}
The name is set to the short form followed by the long form in
parentheses (\gls{glsxtrshortlongdescname}), and the sort is set to
just the short form (\gls{glsxtrshortlongdescsort}).
\abbrstyledef{short-sc-long}
This style is like \abbrstyle{short-long} but it uses
\gls{glsxtrscsuffix}, \gls{glsabbrvscfont} and
\gls{glsfirstabbrvscfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplelc{short-sc-long}
\abbrstyledef{short-sc-long-desc}
This style is like \abbrstyle{short-long-desc} but it uses
\gls{glsxtrscsuffix}, \gls{glsabbrvscfont} and
\gls{glsfirstabbrvscfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplelcdesc{short-sc-long-desc}
\abbrstyledef{short-sm-long}
This style is like \abbrstyle{short-long} but it uses
\gls{glsxtrsmsuffix}, \gls{glsabbrvsmfont} and
\gls{glsfirstabbrvsmfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplesm{short-sm-long}
\abbrstyledef{short-sm-long-desc}
This style is like \abbrstyle{short-long-desc} but it uses
\gls{glsxtrsmsuffix}, \gls{glsabbrvsmfont} and
\gls{glsfirstabbrvsmfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplesmdesc{short-sm-long-desc}
\abbrstyledef{short-em-long}
This style is like \abbrstyle{short-long} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexampleuc{short-em-long}
\abbrstyledef{short-em-long-desc}
This style is like \abbrstyle{short-long-desc} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexampleucdesc{short-em-long-desc}
\abbrstyledef{short-em-long-em}
This style is like \abbrstyle{short-long} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont}, \gls{glsfirstlongemfont}
and \gls{glslongemfont} (see \sectionref{sec:abbrvcmdsfonts}).
That is, both the long and short forms are emphasized.
\abbrvstyleexampleuc{short-em-long-em}
\abbrstyledef{short-em-long-em-desc}
This style is like \abbrstyle{short-long-desc} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont}, \gls{glsfirstlongemfont}
and \gls{glslongemfont} (see \sectionref{sec:abbrvcmdsfonts}).
That is, both the long and short forms are emphasized.
\abbrvstyleexampleucdesc{short-em-long-em-desc}
\paragraph{Short (Long, User) Styles}
\label{sec:predefnonregabbrvstylesshortlonguser}These styles are like the
short (long) styles in
\sectionref{sec:predefnonregabbrvstylesshortlong}
but additional content can be supplied in the field identified by
\gls{glsxtruserfield}, which will be placed in the parenthetical
content on \idx{firstuse} (if set).
The \idx{inlinefullform} is the same as the \idx{displayfullform}.
These styles use the commands \gls{glsxtrusersuffix},
\gls{glsabbrvuserfont}, \gls{glsfirstabbrvuserfont},
\gls{glslonguserfont} and \gls{glsfirstlonguserfont} (except where
noted). See \sectionref{sec:abbrvcmdsgeneral} and
\sectionref{sec:abbrvcmdsuser} for style commands.
\abbrstyledef{short-long-user}
This style is like \abbrstyle{short-long} but it includes the
additional content in the parentheses on \idx{firstuse} or the
\idx{inlinefullform}.
The description is obtained from
\gls{glsuserdescription}, which can be redefined to include the
additional information, if required.
\abbrvstyleexampleucuser{short-long-user}
\abbrstyledef{short-long-user-desc}
This style is like \abbrstyle{short-long-user} but the description
must be provided. The name is obtained from
\gls{glsxtrshortlonguserdescname} and the sort value is obtained
from \gls{glsxtrshortlongdescsort}.
\abbrvstyleexampleucuserdesc{short-long-user-desc}
\begin{important}
This style is incompatible with \gls{GLSname}.
\end{important}
If you need to use \gls{GLSname} with this style, you'll have to
redefine \gls{glsxtrshortlonguserdescname} so that the field name
doesn't include the entry label. For example:
\begin{codebox}
\cmd{newcommand}\marg{\gls{glsxtrlongshortuserdescname}}\marg{\%
\cmd{protect}\gls{glsabbrvuserfont}\marg{\cmd{the}\gls{glsshorttok}}\%
\cmd{space}(\cmd{protect}\gls{glslonguserfont}\marg{\cmd{the}\gls{glslongtok}})\%
}
\end{codebox}
\abbrstyledef{short-postlong-user}
This style is like \abbrstyle{short-long} but it includes the
additional content in the parentheses on \idx{firstuse} or the
\idx{inlinefullform}. The parenthetical content is placed in the
\idx{postlinkhook} which can avoid overly long hyperlinks.
The description is obtained from
\gls{glsuserdescription}, which can be redefined to include the
additional information, if required.
\abbrvstyleexampleucuser{short-postlong-user}
\abbrstyledef{short-postlong-user-desc}
This style is like \abbrstyle{short-postlong-user} but the description
must be provided. The name is obtained from
\gls{glsxtrshortlonguserdescname}. The sort value is the short form.
\abbrvstyleexampleucuserdesc{short-postlong-user-desc}
\begin{important}
This style is incompatible with \gls{GLSname}.
\end{important}
If you need to use \gls{GLSname} with this style, you'll have to
redefine \gls{glsxtrshortlonguserdescname} so that the field name
doesn't include the entry label, as for \abbrstyle{short-long-user-desc}.
\paragraph{Hyphen Styles}
\label{sec:predefnonregabbrvstyleshyphen}These styles test
if the inserted material start with a hyphen. See
\sectionref{sec:abbrvcmdsgeneral}, \sectionref{sec:abbrvcmdsparen}
and \sectionref{sec:abbrvcmdshyphen} for style commands.
\begin{information}
These styles are designed to be used with the \catattr{markwords}
attribute and (if the short form has spaces) the
\catattr{markshortwords} attribute. If the inserted material starts
with a hyphen, the spaces will be replaced with hyphens. This
replacement won't take place if the corresponding attribute wasn't
used to mark the inter-word spaces.
\end{information}
Note that \gls{glsxtrshort} and \gls{glsxtrlong} (and their plural
and case-changing variants) don't perform the inter-word space
substitution. The \idx{inlinefullform} is slightly different from
the \idx{displayfullform} for the \qt{post} styles.
\abbrstyledef{long-hyphen-short-hyphen}
This style is like \abbrstyle{long-short} but checks the inserted
material for a leading hyphen. The description is the long form
encapsulated with \gls{glslonghyphenfont}. The name is obtained from
\gls{glsxtrlongshortname}, and the sort value is obtained from
\gls{glsxtrlonghyphenshortsort}. The
\idx{inlinefullform} is the same as the \idx{displayfullform}.
\abbrvstyleexampleuchyp{long-hyphen-short-hyphen}
\abbrstyledef{long-hyphen-postshort-hyphen}
This style is like \abbrstyle{long-hyphen-short-hyphen} but places
the insert and parenthetical material in the \idx{postlinkhook} for
the \idx{displayfullform}.
\abbrvstyleexampleuchyp{long-hyphen-postshort-hyphen}
Note that the \idx{inlinefullform} (\gls{glsxtrfull}) doesn't show
the insert in the \idx{postlinkhook}, but instead places it at the
end of the \idx{linktext}. This is because only the
\idx{glslike} commands (not the \idx{glstextlike} commands) set the
placeholder \gls{glsinsert} to the supplied insert. If you want the
insert to show in the parenthetical part of the \idx{postlinkhook} for the
\idx{inlinefullform} you need to redefine
\gls{glsxtrfullsaveinsert}:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsxtrfullsaveinsert}}[2]\marg{\cmd{def}\gls{glsinsert}\marg{\#2}}
\end{codebox}
\abbrstyledef{long-hyphen-short-hyphen-desc}
This style is like \abbrstyle{long-hyphen-short-hyphen} but the
description must be supplied. The name is obtained from
\gls{glsxtrlongshortdescname}, and the sort value is
obtained from \gls{glsxtrlongshortdescsort}.
\abbrvstyleexampleuchypdesc{long-hyphen-short-hyphen-desc}
\abbrstyledef{long-hyphen-postshort-hyphen-desc}
This style is like \abbrstyle{long-hyphen-short-hyphen-desc} but places
the insert and parenthetical material in the \idx{postlinkhook} for
the \idx{displayfullform}.
\abbrvstyleexampleuchypdesc{long-hyphen-postshort-hyphen-desc}
Note that as with the
\abbrstyle{long-hyphen-postshort-hyphen} style, the insert isn't
included in the \idx{postlinkhook} by default for the
\idx{inlinefullform}. If you want the
insert to show in the \idx{postlinkhook} for the
\idx{inlinefullform} you need to redefine
\gls{glsxtrfullsaveinsert}.
\abbrstyledef{long-hyphen-noshort-desc-noreg}
This style is like \abbrstyle{long-noshort-desc-noreg} but checks
the inserted material for a leading hyphen. The description must be
supplied. The name is obtained from \gls{glsxtrlongnoshortdescname},
and the sort value is obtained from \gls{glsxtrlonghyphennoshortdescsort}.
\abbrvstyleexampleuchypdesc{long-hyphen-noshort-desc-noreg}
\abbrstyledef{long-hyphen-noshort-noreg}
This style is like \abbrstyle{long-noshort-noreg} but checks
the inserted material for a leading hyphen. The description is set
to the unencapsulated long form. The name is obtained from \gls{glsxtrlongnoshortname},
and the sort value is obtained from \gls{glsxtrlonghyphennoshortsort}.
\abbrvstyleexampleuchyp{long-hyphen-noshort-noreg}
\abbrstyledef{short-hyphen-long-hyphen}
This style is like \abbrstyle{short-long} but checks the inserted
material for a leading hyphen. The description is the long form
encapsulated with \gls{glslonghyphenfont}. The name is obtained from
\gls{glsxtrshortlongname} and the sort value is obtained from
\gls{glsxtrshorthyphenlongsort}.
\abbrvstyleexampleuchyp{short-hyphen-long-hyphen}
\abbrstyledef{short-hyphen-postlong-hyphen}
This style is like \abbrstyle{short-hyphen-long-hyphen} but the
insert and parenthetical material are placed in the
\idx{postlinkhook} for the \idx{displayfullform}.
\abbrvstyleexampleuchyp{short-hyphen-postlong-hyphen}
Note that as with the \abbrstyle{long-hyphen-postshort-hyphen} style,
the insert isn't included in the \idx{postlinkhook} by default for
the \idx{inlinefullform}. If you want the insert to show in the
\idx{postlinkhook} for the \idx{inlinefullform} you need to redefine
\gls{glsxtrfullsaveinsert} (as described above, for the
\abbrstyle{long-hyphen-postshort-hyphen} style).
\abbrstyledef{short-hyphen-long-hyphen-desc}
This style is like \abbrstyle{short-hyphen-long-hyphen} but the
description must be supplied. The name is obtained from
\gls{glsxtrshortlongdescname}, and the sort is obtained from
\gls{glsxtrshortlongdescsort}.
\abbrvstyleexampleuchypdesc{short-hyphen-long-hyphen-desc}
\abbrstyledef{short-hyphen-postlong-hyphen-desc}
This style is like \abbrstyle{short-hyphen-long-hyphen-desc} but the
insert and parenthetical material are placed in the
\idx{postlinkhook} for the \idx{displayfullform}.
\abbrvstyleexampleuchypdesc{short-hyphen-postlong-hyphen-desc}
Note that as with the \abbrstyle{long-hyphen-postshort-hyphen} style,
the insert isn't included in the \idx{postlinkhook} by default for
the \idx{inlinefullform}. If you want the insert to show in the
\idx{postlinkhook} for the \idx{inlinefullform} you need to redefine
\gls{glsxtrfullsaveinsert} (as described above, for the
\abbrstyle{long-hyphen-postshort-hyphen} style).
\paragraph{Only Styles}
\label{sec:predefnonregabbrvstylesonly}These styles only show the
long form on \idx{firstuse} and only show the short form on
\idx{subsequentuse}. The
\idx{inlinefullform} is the same as the \idx{displayfullform}. See
\sectionref{sec:abbrvcmdsgeneral}, \sectionref{sec:abbrvcmdsparen}
and \sectionref{sec:abbrvcmdsonly} for style commands.
The \idx{inlinefullform} uses a parenthetical style with the long
form followed by the short form in parentheses.
\abbrstyledef{long-only-short-only}
The name is obtained from \gls{glsxtronlyname} and the sort value is
just the short form. The description is the long form encapsulated
with \gls{glslongonlyfont}.
\abbrvstyleexampleuc{long-only-short-only}
\abbrstyledef{long-only-short-only-desc}
This is like \abbrstyle{long-only-short-only} but the description must
be supplied. The name is obtained from \gls{glsxtronlydescname} and
the sort is obtained from \gls{glsxtronlydescsort}.
\abbrvstyleexampleucdesc{long-only-short-only-desc}
\abbrstyledef{long-only-short-sc-only}
This is like \abbrstyle{long-only-short-only} but uses
\idx{smallcaps}. The name is obtained from \gls{glsxtrsconlyname},
and it uses \gls{glsabbrvsconlyfont}, \gls{glsfirstabbrvsconlyfont}
and \gls{glsxtrsconlysuffix} for the abbreviation fonts and plural
suffix.
\abbrvstyleexamplelc{long-only-short-sc-only}
\abbrstyledef{long-only-short-sc-only-desc}
This is like \abbrstyle{long-only-short-only-desc} but uses
\idx{smallcaps}. The name is obtained from \gls{glsxtrsconlydescname},
and the sort is obtained from \gls{glsxtrsconlydescsort}.
\abbrvstyleexamplelcdesc{long-only-short-sc-only-desc}
\paragraph{Footnote Styles}
\label{sec:predefnonregabbrvstylesfootnote}These styles show the
short form (\gls{glsxtrshortformat}) with the long form as a footnote on
\idx{firstuse}. On \idx{subsequentuse} only the short form is shown.
See \sectionref{sec:abbrvcmdsgeneral} and \sectionref{sec:abbrvcmdsfootnote}
for style commands.
The \idx{inlinefullform} uses the same
parenthetical style as \abbrstyle{short-long} (\gls{glsxtrshortlongformat}).
Font variations are available with \abbrstyle{short-sc-footnote},
\abbrstyle{short-sm-footnote} and \abbrstyle{short-em-footnote}.
\abbrstyledef{short-footnote}
The \meta{insert} is placed after the short form on \idx{firstuse}
and \idx{subsequentuse} of the \idx{glslike} commands.
\abbrvstyleexampleucfn{short-footnote}
The long form is formatted with \gls{glsfirstlongfootnotefont}
within the full form and with \gls{glslongfootnotefont} for the
\gls{glsxtrlong} set of commands.
The short form is formatted with \gls{glsfirstabbrvdefaultfont}
within the full form and with \gls{glsabbrvdefaultfont} for
\idx{subsequentuse} and for the \gls{glsxtrshort} set of commands.
The name is set to the short form (\gls{glsxtrfootnotename}) and
the description is set to the unencapsulated long form.
This style automatically sets the \catattr{nohyperfirst} attribute
to \code{true} for the entry's category.
\abbrstyledef{footnote}
A synonym for \abbrstyle{short-footnote}.
\abbrstyledef{short-footnote-desc}
As \abbrstyle{short-footnote} but the description must be supplied in
the optional argument of \gls{newabbreviation}.
\abbrvstyleexampleucdescfn{short-footnote-desc}
The name is set to the short form followed by the long form in
parentheses (\gls{glsxtrfootnotedescname}), and the sort is set to
just the short form (\gls{glsxtrfootnotedescsort}).
\abbrstyledef{footnote-desc}
A synonym for \abbrstyle{short-footnote-desc}.
\abbrstyledef{short-postfootnote}
Similar to \abbrstyle{short-footnote} but the footnote command is
placed in the \idx{postlinkhook}. This avoids the problem of nested
hyperlinks caused by the footnote marker hyperlink being inside the
\idx{linktext} (which is why the \abbrstyle{short-footnote} style
switches on the \catattr{nohyperfirst} attribute). Using the
\idx{postlinkhook} makes it possible to check for following
punctuation so that the footnote marker can be shifted after the
punctuation character.
\abbrvstyleexampleucfn{short-postfootnote}
\abbrstyledef{postfootnote}
A synonym for \abbrstyle{short-postfootnote}.
\abbrstyledef{short-postfootnote-desc}
Similar to \abbrstyle{short-footnote-desc} but the footnote command is
placed in the \idx{postlinkhook} as with
\abbrstyle{short-postfootnote}.
\abbrvstyleexampleucdescfn{short-postfootnote-desc}
\abbrstyledef{postfootnote-desc}
A synonym for \abbrstyle{short-postfootnote-desc}.
\abbrstyledef{short-sc-footnote}
This style is like \abbrstyle{short-footnote} but it uses
\gls{glsxtrscsuffix}, \gls{glsabbrvscfont} and
\gls{glsfirstabbrvscfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplelcfn{short-sc-footnote}
\abbrstyledef{short-sc-footnote-desc}
This style is like \abbrstyle{short-footnote-desc} but it uses
\gls{glsxtrscsuffix}, \gls{glsabbrvscfont} and
\gls{glsfirstabbrvscfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplelcdescfn{short-sc-footnote-desc}
\abbrstyledef{short-sc-postfootnote}
This style is like \abbrstyle{short-postfootnote} but it uses
\gls{glsxtrscsuffix}, \gls{glsabbrvscfont} and
\gls{glsfirstabbrvscfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplelcfn{short-sc-postfootnote}
\abbrstyledef{short-sc-postfootnote-desc}
This style is like \abbrstyle{short-postfootnote-desc} but it uses
\gls{glsxtrscsuffix}, \gls{glsabbrvscfont} and
\gls{glsfirstabbrvscfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplelcdescfn{short-sc-postfootnote-desc}
\abbrstyledef{short-sm-footnote}
This style is like \abbrstyle{short-footnote} but it uses
\gls{glsxtrsmsuffix}, \gls{glsabbrvsmfont} and
\gls{glsfirstabbrvsmfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplesmfn{short-sm-footnote}
\abbrstyledef{short-sm-footnote-desc}
This style is like \abbrstyle{short-footnote-desc} but it uses
\gls{glsxtrsmsuffix}, \gls{glsabbrvsmfont} and
\gls{glsfirstabbrvsmfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplesmdescfn{short-sm-footnote-desc}
\abbrstyledef{short-sm-postfootnote}
This style is like \abbrstyle{short-postfootnote} but it uses
\gls{glsxtrsmsuffix}, \gls{glsabbrvsmfont} and
\gls{glsfirstabbrvsmfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplesmfn{short-sm-postfootnote}
\abbrstyledef{short-sm-postfootnote-desc}
This style is like \abbrstyle{short-postfootnote-desc} but it uses
\gls{glsxtrsmsuffix}, \gls{glsabbrvsmfont} and
\gls{glsfirstabbrvsmfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexamplesmdescfn{short-sm-postfootnote-desc}
\abbrstyledef{short-em-footnote}
This style is like \abbrstyle{short-footnote} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexampleucfn{short-em-footnote}
\abbrstyledef{short-em-footnote-desc}
This style is like \abbrstyle{short-footnote-desc} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexampleucdescfn{short-em-footnote-desc}
\abbrstyledef{short-em-postfootnote}
This style is like \abbrstyle{short-postfootnote} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexampleucfn{short-em-postfootnote}
\abbrstyledef{short-em-postfootnote-desc}
This style is like \abbrstyle{short-postfootnote-desc} but it uses
\gls{glsxtremsuffix}, \gls{glsabbrvemfont} and
\gls{glsfirstabbrvemfont} (see \sectionref{sec:abbrvcmdsfonts}).
\abbrvstyleexampleucdescfn{short-em-postfootnote-desc}
\paragraph{Short Styles}
\label{sec:predefnonregabbrvstylesshort}These styles only show the
short form on both \idx{firstuse} and \idx{subsequentuse}.
See \sectionref{sec:abbrvcmdsgeneral} and
\sectionref{sec:abbrvcmdsnolong} for style commands.
They are essentially identical to the corresponding regular style
listed in \sectionref{sec:predefnonregabbrvstylesshort} except that
they change the \catattr{regular} attribute to \code{false}.
\abbrstyledef{short-nolong-noreg}
This style is a non-regular version of the \abbrstyle{short-nolong} style.
\abbrstyledef{short-nolong-desc-noreg}
This style is a non-regular version of the \abbrstyle{short-nolong-desc} style.
\abbrstyledef{nolong-short-noreg}
This style is a non-regular version of the \abbrstyle{nolong-short} style.
\paragraph{Long Styles}
\label{sec:predefnonregabbrvstyleslong}These styles only show the
long form on both \idx{firstuse} and \idx{subsequentuse}.
See \sectionref{sec:abbrvcmdsgeneral} and
\sectionref{sec:abbrvcmdsnoshort} for style commands.
They are essentially identical to the corresponding regular style
listed in \sectionref{sec:predefnonregabbrvstyleslong} except that
they change the \catattr{regular} attribute to \code{false}.
\abbrstyledef{long-noshort-desc-noreg}
This style is a non-regular version of the \abbrstyle{long-noshort-desc} style.
\abbrstyledef{long-noshort-noreg}
This style is a non-regular version of the \abbrstyle{long-noshort} style.
\abbrstyledef{long-em-noshort-em-noreg}
This style is a non-regular version of the
\abbrstyle{long-em-noshort-em} style.
\abbrstyledef{long-em-noshort-em-desc-noreg}
This style is a non-regular version of the
\abbrstyle{long-em-noshort-em-desc} style.
\subsubsection{Formatting Commands and Hooks}
\label{sec:abbrvcmds}
These commands are used by the predefined abbreviation styles. These
are considered user commands, which you can redefine to customize
the style.
\paragraph{General}
\label{sec:abbrvcmdsgeneral}These commands apply to all styles.
\cmddef{ifglsxtrinsertinside}
This conditional is used to determine whether the \meta{insert} part
should go inside or outside of the style's font formatting commands.
The default setting is false.
\cmddef{glsxtrinsertinsidetrue}
Set the insert inside conditional to true.
\cmddef{glsxtrinsertinsidefalse}
Set the insert inside conditional to false.
\cmddef{glsxtrparen}
Used for parenthetical content in the \idx{inlinefullform} and
also, for some styles, the \idx{displayfullform}. Note that this formats the opening
and closing parentheses according to the \idx{innerformatting}, but not the
argument, which should already incorporate it. The default definition is:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtrparen}}[1]\marg{\%
\gls{glsxtrgenentrytextfmt}\marg{(}\#1\gls{glsxtrgenentrytextfmt}\marg{)}}
\end{codebox}
\cmddef{glsxtrfullsep}
Separator placed before \gls{glsxtrparen}. This
is a space by default, but it includes the \idx{innerformatting}.
The argument (the entry label) is ignored by default:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtrfullsep}}[1]\marg{\gls{glsxtrgenentrytextfmt}\marg{ }}
\end{codebox}
You can redefine this to use \gls{glsabspace} if you want to have a
non-breakable space if the short form is less than
\gls{glsacspacemax} in width. (You can use \gls{glsacspace} instead,
but note that \gls{glsacspace} doesn't incorporate the \idx{innerformatting}.)
\cmddef{glsabbrvdefaultfont}
Abbreviation font command used by styles that don't have specific
font markup (for example, \abbrstyle{long-short} but not
\abbrstyle{long-em-short-em}). This just does its argument.
\cmddef{glsfirstabbrvdefaultfont}
\Idx{firstuse} abbreviation font command used by styles that don't have specific
font markup. This is defined to just use \gls{glsabbrvdefaultfont}.
\cmddef{glsxtrdefaultrevert}
This is the default definition of \gls{glsxtrrevert} used by styles
that don't have specific font markup. If you redefine
\gls{glsabbrvdefaultfont}, you will need to redefine
\gls{glsxtrdefaultrevert} as applicable.
\cmddef{glslongdefaultfont}
Long form font command used by styles that don't have specific
font markup. This just does its argument.
\cmddef{glsfirstlongdefaultfont}
\Idx{firstuse} long form font command used by styles that don't have specific
font markup. This is defined to just use
\gls{glslongdefaultfont}.
\paragraph{Parenthetical Styles}
\label{sec:abbrvcmdsparen}These commands apply to the parenthetical
styles, such as \abbrstyle{long-short}.
\cmddef{glsxtrlongshortname}
This command should expand to the value of the \gloskey{name} key
for styles like \abbrstyle{long-short}.
The default definition is:
\begin{codebox}
\gls{glsxpabbrvfont}\marg{\cmd{the}\gls{glsshorttok}}\marg{\gls{glscategorylabel}}
\end{codebox}
\cmddef{glsxtrlongshortdescsort}
This command should expand to the sort value used by styles such as
\abbrstyle{long-short-desc}. The default definition is:
\begin{codebox}
\gls+{expandonce}\gls{glsxtrorglong}\cmd{space} (\gls{expandonce}\gls{glsxtrorgshort})
\end{codebox}
Note that this uses the original \meta{long} and \meta{short} values
supplied to \gls{newabbreviation}.
\begin{information}
This command is irrelevant with the \idx{unsrtfam}.
\end{information}
\cmddef{glsxtrlongshortdescname}
This command should expand to the name value used by styles such as
\abbrstyle{long-short-desc}. The default definition is:
\begin{codebox}
\gls{glsxplongfont}\marg{\cmd{the}\gls{glslongtok}}\marg{\gls{glscategorylabel}}\%
\cmd{protect}\gls{glsxtrfullsep}\marg{\cmd{the}\gls{glslabeltok}}\%
\cmd{protect}\gls{glsxtrparen}
\marg{\gls{glsxpabbrvfont}\marg{\cmd{the}\gls{glsshorttok}}\marg{\gls{glscategorylabel}}}
\end{codebox}
This essentially expands to \meta{long} (\meta{short}) but includes the
style font changing commands, the inner text formatting, and
accessibility support.
\cmddef{glsxtrshortlongname}
This command should expand to the value of the \gloskey{name} key
for styles like \abbrstyle{short-long}.
The default definition is:
\begin{codebox}
\gls{glsxpabbrvfont}\marg{\cmd{the}\gls{glsshorttok}}\marg{\gls{glscategorylabel}}
\end{codebox}
\cmddef{glsxtrshortlongdescsort}
This command should expand to the value of the \gloskey{sort} key
for styles like \abbrstyle{short-long-desc}. The default definition
is just \code{\gls+{expandonce}\gls{glsxtrorgshort}}.
\begin{information}
This command is irrelevant with the \idx{unsrtfam}.
\end{information}
\cmddef{glsxtrshortlongdescname}
This command should expand to the value of the \gloskey{name} key
for styles like \abbrstyle{short-long-desc}. The default definition
is:
\begin{codebox}
\gls{glsxpabbrvfont}\marg{\cmd{the}\gls{glsshorttok}}\marg{\gls{glscategorylabel}}\%
\cmd{protect}\gls{glsxtrfullsep}\marg{\cmd{the}\gls{glslabeltok}}\%
\cmd{protect}\gls{glsxtrparen}
{\gls{glsxplongfont}\marg{\cmd{the}\gls{glslongtok}}\marg{\gls{glscategorylabel}}}
\end{codebox}
\paragraph{User Styles}
\label{sec:abbrvcmdsuser}These commands apply to the \qt{user}
styles, such as \abbrstyle{long-short-user}.
\cmddef{glsxtruserfield}
This command should expand to the \idxc{internalfieldlabel}{internal
label} of the field used to store the additional information that
should be shown in the parenthetical material on \idx{firstuse}. The
default is \code{useri}, which corresponds to the \gloskey{user1}
key.
\cmddef{glsxtruserparensep}
The separator used within the parenthetical content. This defaults
to a comma followed by a space.
\cmddef{glsxtruserfieldfmt}
Used to encapsulate the value of the field given by
\gls{glsxtruserfield} within \gls{glsxtruserparen} and
\gls{GLSxtruserparen}. This simply does its argument by default.
The \idx{innerformatting} with both \gls{glsxtruserparen} and
\gls{GLSxtruserparen}, and the case-change with the latter, will be
included in the argument of \gls{glsxtruserfieldfmt}.
For example, to emphasize the user value and separate it with a
semi-colon instead of a comma:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glsxtruserparensep}}\marg{; }
\cmd{renewcommand}\marg{\gls{glsxtruserfieldfmt}}[1]\marg{\cmd{emph}\marg{\#1}}
\end{codebox}
\cmddef{glsabbrvuserfont}
Formatting for the \qt{user} short form. This defaults to
\gls{glsabbrvdefaultfont}.
\cmddef{glsfirstabbrvuserfont}
Formatting for the \qt{user} short form shown on \idx{firstuse}.
This defaults to \gls{glsabbrvuserfont}.
\cmddef{glsxtrusersuffix}
Short plural suffix used by the \qt{user} styles. This defaults to
\gls{glsxtrabbrvpluralsuffix}.
\cmddef{glslonguserfont}
Formatting for the \qt{user} long form. This defaults to
\gls{glsabbrvdefaultfont}.
\cmddef{glsfirstlonguserfont}
Formatting for the \qt{user} short form shown on \idx{firstuse}.
This defaults to \gls{glslonguserfont}.
\cmddef{glsabbrvscuserfont}
Formatting for the \qt{sc-user} short form. This uses
\gls{glsabbrvscfont}, which in turn uses \gls{textsc} to
apply a \idx{smallcaps} style, so your document font needs to
support it.
\begin{information}
\gls{textsc} uses small capital glyphs for \idx{lowercase}
characters. \Idx{uppercase} characters show as normal capitals.
This means that you need to use \idx{lowercase} characters in the
abbreviation.
\end{information}
\cmddef{glsfirstabbrvscuserfont}
Formatting for the \qt{sc-user} short form shown on \idx{firstuse}.
This defaults to \gls{glsabbrvscuserfont}.
\cmddef{glsxtrscuserrevert}
Counteracts the effect of \gls{glsabbrvscuserfont}. The default is
\gls{glsxtrscrevert}. If you redefine \gls{glsabbrvscuserfont}, you
will need to redefine \gls{glsxtrscuserrevert} as applicable.
\cmddef{glsxtrscusersuffix}
Short plural suffix used by the \qt{sc-user} styles. This defaults to
\gls{glsxtrscsuffix}.
\cmddef{glsuserdescription}
The description field is set to this, where the \meta{text} argument
is the long form, for the \qt{user} styles where the description is
set by default. This is defined to ignore its second argument:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsuserdescription}}[2]\marg{\gls{glslonguserfont}\marg{\#1}}
\end{codebox}
If you want to include the information contained in the field
identified by \gls{glsxtruserfield}, the second argument provides a
way of accessing that field without relying on the \gls{glscurrententrylabel}
placeholder. For example:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsuserdescription}}[2]\marg{\%
\gls{glslonguserfont}\marg{\#1}\%
\gls{ifglshasfield}\marg{\gls{glsxtruserfield}}\marg{\#2}\%
\marg{, \gls{glscurrentfieldvalue}}\%
\marg{}\%
}
\end{codebox}
\cmddef{glsxtruserparen}
If the field given by \gls{glsxtruserfield} has been set, this
essentially does:
\begin{compactcodebox}
\gls{glsxtrfullsep}\margm{entry-label}\gls{glsxtrparen}\marg{\meta{text}, \meta{user-value}}
\end{compactcodebox}
otherwise it does:
\begin{compactcodebox}
\gls{glsxtrfullsep}\margm{entry-label}\gls{glsxtrparen}\marg{\meta{text}}
\end{compactcodebox}
It's a little more complicated than this as the definition includes
the \idx{innerformatting} around the comma and the field value
(\meta{user-value}). The comma separator is given by
\gls{glsxtruserparensep}, and the field value is encapsulated with
\gls{glsxtruserfieldfmt} (with the \idx{innerformatting} inside).
If you redefine this command, you will also need to redefine the
following one in a similar manner.
\cmddef{GLSxtruserparen}
As above but the content of the field given by \gls{glsxtruserfield}
is converted to \idx{allcaps}. Note that simply applying an
\idx{uppercase} command to \gls{glsxtruserparen} can fail as
it can cause the label to be converted to \idx{allcaps}, which
is the reason why a separate command to internally perform the
case-change is provided.
\cmddef{glsxtrlongshortuserdescname}
Expands to the value for the \gloskey{name} key for styles like
\abbrstyle{long-short-user-desc}. The default definition is:
\begin{codebox}
\cmd{protect}\gls{glslonguserfont}\marg{\cmd{the}\gls{glslongtok}}\%
\cmd{protect}\gls{glsxtruserparen}
\marg{\cmd{protect}\gls{glsabbrvuserfont}\marg{\cmd{the}\gls{glsshorttok}}}\marg{\cmd{the}\gls{glslabeltok}}
\end{codebox}
\cmddef{glsxtrlongshortscusername}
Expands to the value for the \gloskey{name} key for styles like
\abbrstyle{long-postshort-sc-user} styles where the
description is automatically set. The default
definition is:
\begin{codebox}
\cmd{protect}\gls{glsabbrvscuserfont}\marg{\cmd{the}\gls{glsshorttok}}
\end{codebox}
\cmddef{glsxtrlongshortscuserdescname}
Expands to the value for the \gloskey{name} key for styles like
\abbrstyle{long-postshort-sc-user-desc}. The default definition is:
\begin{codebox}
\cmd{protect}\gls{glslonguserfont}\marg{\cmd{the}\gls{glslongtok}}\%
\cmd{protect}\gls{glsxtruserparen}
\marg{\cmd{protect}\gls{glsabbrvscuserfont}\marg{\cmd{the}\gls{glsshorttok}}}\marg{\cmd{the}\gls{glslabeltok}}
\end{codebox}
\cmddef{glsxtrshortlonguserdescname}
Expands to the value for the \gloskey{name} key for styles like
\abbrstyle{short-long-user-desc}. The default definition is:
\begin{codebox}
\cmd{protect}\gls{glsabbrvuserfont}\marg{\cmd{the}\gls{glsshorttok}}\%
\cmd{protect}\gls{glsxtruserparen}
\marg{\cmd{protect}\gls{glslonguserfont}\marg{\cmd{the}\gls{glslongpltok}}}\%
\marg{\cmd{the}\gls{glslabeltok}}
\end{codebox}
\cmddef{glsxtruserlongshortformat}
This command is used on the \idx{firstuse} of \gls{gls}
or with \gls{glsxtrfull} by styles like
\abbrstyle{long-short-user} to format the long form followed by the
short form (with optional user information) in parentheses. The
default definition is:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtruserlongshortformat}}[4]\marg{\%
\gls{glsxtrlongformat}\marg{\#1}\marg{\#2}\marg{\#3}\%
\gls{glsxtrusershortformat}\marg{\#1}\marg{\#4}\%
}
\end{codebox}
\cmddef{Glsxtruserlongshortformat}
As above but for \idx{sentencecase}.
\cmddef{GLSxtruserlongshortformat}
As above but for \idx{allcaps}.
\cmddef{glsxtruserlongshortplformat}
This command is used on the \idx{firstuse} of \gls{glspl}
or with \gls{glsxtrfullpl} by styles like
\abbrstyle{long-short-user} to format the plural long form followed by the
plural short form (with optional user information) in parentheses. The
default definition is:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtruserlongshortplformat}}[4]\marg{\%
\gls{glsxtrlongplformat}\marg{\#1}\marg{\#2}\marg{\#3}\%
\gls{glsxtrusershortplformat}\marg{\#1}\marg{\#4}\%
}
\end{codebox}
\cmddef{Glsxtruserlongshortplformat}
As above but for \idx{sentencecase}.
\cmddef{GLSxtruserlongshortplformat}
As above but for \idx{allcaps}.
\cmddef{glsxtrusershortlongformat}
This command is used on the \idx{firstuse} of \gls{gls}
or with \gls{glsxtrfull} by styles like
\abbrstyle{short-long-user} to format the short form followed by the
long form (with optional user information) in parentheses. The
default definition is:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtrusershortlongformat}}[4]\marg{\%
\gls{glsxtrshortformat}\marg{\#1}\marg{\#2}\marg{\#3}\%
\gls{glsxtruserlongformat}\marg{\#1}\marg{\#4}\%
}
\end{codebox}
\cmddef{Glsxtrusershortlongformat}
As above but for \idx{sentencecase}.
\cmddef{GLSxtrusershortlongformat}
As above but for \idx{allcaps}.
\cmddef{glsxtrusershortlongplformat}
This command is used on the \idx{firstuse} of \gls{glspl}
or with \gls{glsxtrfullpl} by styles like
\abbrstyle{short-long-user} to format the plural short form followed by the
plural long form (with optional user information) in parentheses. The
default definition is:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtrusershortlongplformat}}[4]\marg{\%
\gls{glsxtrshortplformat}\marg{\#1}\marg{\#2}\marg{\#3}\%
\gls{glsxtruserlongplformat}\marg{\#1}\marg{\#4}\%
}
\end{codebox}
\cmddef{Glsxtrusershortlongplformat}
As above but for \idx{sentencecase}.
\cmddef{GLSxtrusershortlongplformat}
As above but for \idx{allcaps}.
\cmddef{glsxtrusershortformat}
Used to format the singular short form in parentheses (with
\gls{glsxtruserparen}) on the \idx{firstuse} of \gls{gls} or
\gls{Gls} or with \gls{glsxtrfull} or \gls{Glsxtrfull} for styles like
\abbrstyle{long-short-user}. The default definition is:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtrusershortformat}}[2]\marg{\%
\gls{glsxtruserparen}\marg{\gls{glsxtrshortformat}\marg{\#1}\marg{}\marg{\#2}}\marg{\#1}\%
}
\end{codebox}
\cmddef{glsxtrusershortplformat}
As \gls{glsxtrusershortformat} but for the \idx{firstuse} of
\gls{glspl} or with \gls{glsxtrfull} for styles like
\abbrstyle{long-short-user}. This has a similar definition
to the above but with \gls{glsxtrshortplformat}.
\cmddef{GLSxtrusershortformat}
As \gls{glsxtrusershortformat} but is used with the \idx{allcaps}
\gls{GLS} or \gls{GLSxtrfull}. This uses \gls{GLSxtruserparen}
instead of \gls{glsxtruserparen}.
\cmddef{GLSxtrusershortplformat}
As \gls{glsxtrusershortplformat} but is used with the \idx{allcaps}
\gls{GLSpl} or \gls{GLSxtrfullpl}. This uses \gls{GLSxtruserparen}
instead of \gls{glsxtruserparen}.
\cmddef{glsxtrpostusershortformat}
Used in the \idx{postlinkhook} to format the short form in
parentheses for styles like \abbrstyle{long-postshort-user}. The default
definition is:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtrpostusershortformat}}[2]\marg{\%
\gls{glsxtrifallcaps}
\marg{\gls{GLSxtrusershortformat}\marg{\#1}\marg{\#2}}\%
\marg{\gls{glsxtrusershortformat}\marg{\#1}\marg{\#2}}\%
}
\end{codebox}
Note that this doesn't check if the plural form was used. If you
require this, you will need to redefined this command to include
\gls{glsifplural}:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsxtrpostusershortformat}}[2]\marg{\%
\gls{glsifplural}
\marg{\%
\gls{glsxtrifallcaps}
\marg{\gls{GLSxtrusershortplformat}\marg{\#1}\marg{\#2}}\%
\marg{\gls{glsxtrusershortplformat}\marg{\#1}\marg{\#2}}\%
}\%
\marg{\%
\gls{glsxtrifallcaps}
\marg{\gls{GLSxtrusershortformat}\marg{\#1}\marg{\#2}}\%
\marg{\gls{glsxtrusershortformat}\marg{\#1}\marg{\#2}}\%
}\%
}
\end{codebox}
\cmddef{glsxtruserlongformat}
Used to format the singular long form in parentheses (with
\gls{glsxtruserparen}) on the \idx{firstuse} of \gls{gls} or
\gls{Gls} or with \gls{glsxtrfull} for styles like
\abbrstyle{short-long-user}. The default definition is:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtruserlongformat}}[2]\marg{\%
\gls{glsxtruserparen}\marg{\gls{glsxtrlongformat}\marg{\#1}\marg{}\marg{\#2}}\marg{\#1}\%
}
\end{codebox}
\cmddef{GLSxtruserlongformat}
As \gls{glsxtruserlongformat} but \idx{allcaps}. This uses \gls{GLSxtruserparen}
instead of \gls{glsxtruserparen}.
\cmddef{glsxtruserlongplformat}
As \gls{glsxtruserlongformat} but for the \idx{firstuse} of
\gls{glspl} or with \gls{glsxtrfull} for styles like
\abbrstyle{short-long-user}. This has a similar definition
to \gls{glsxtruserlongformat} but with \gls{glsxtrlongplformat}.
\cmddef{GLSxtruserlongplformat}
As \gls{glsxtruserlongplformat} but \idx{allcaps}. This uses \gls{GLSxtruserparen}
instead of \gls{glsxtruserparen}.
\cmddef{glsxtrpostuserlongformat}
Used in the \idx{postlinkhook} to format the long form in
parentheses for styles like \abbrstyle{short-postlong-user}. The default
definition is:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtrpostuserlongformat}}[2]\marg{\%
\gls{glsxtrifallcaps}
\marg{\gls{GLSxtruserlongformat}\marg{\#1}\marg{\#2}}\%
\marg{\gls{glsxtruserlongformat}\marg{\#1}\marg{\#2}}\%
}
\end{codebox}
Note that, as with \gls{glsxtrpostusershortformat}, this doesn't
check if the plural form was used. If you require this, you will
need to redefined this command to include \gls{glsifplural}.
\paragraph{Footnote Styles}
\label{sec:abbrvcmdsfootnote}These commands are only used by the footnote styles.
\cmddef{glsxtrfootnotename}
This command should expand to the value of the \gloskey{name} key.
The default definition is:
\begin{codebox}
\gls{glsxpabbrvfont}\marg{\cmd{the}\gls{glsshorttok}}\marg{\gls{glscategorylabel}}
\end{codebox}
\cmddef{glsxtrfootnotedescname}
This command should expand to the value of the \gloskey{name} key
for styles like \abbrstyle{footnote-desc}.
The default definition is:
\begin{codebox}
\gls{glsxpabbrvfont}\marg{\cmd{the}\gls{glsshorttok}}\marg{\gls{glscategorylabel}}\%
\cmd{protect}\gls{glsxtrfullsep}\marg{\cmd{the}\gls{glslabeltok}}\%
\cmd{protect}\gls{glsxtrparen}
\marg{\gls{glsxplongfont}\marg{\cmd{the}\gls{glslongtok}}\marg{\gls{glscategorylabel}}}\%
\end{codebox}
\cmddef{glsxtrfootnotedescsort}
This command should expand to the value of the \gloskey{sort} key
for styles like \abbrstyle{footnote-desc}.
The default definition is simply \code{\cmd{the}\gls{glsshorttok}}.
\begin{information}
This command is irrelevant with the \idx{unsrtfam}.
\end{information}
\cmddef{glslongfootnotefont}
The formatting command used for the long form in the footnote
styles. The default is to simply use \gls{glslongdefaultfont}.
\cmddef{glsfirstlongfootnotefont}
The formatting command used for the \idx{firstuse} long form in the footnote
styles. The default is to simply use \gls{glslongfootnotefont}.
\cmddef{glsxtrabbrvfootnote}
The command that produces the footnote. The default definition
ignores the first argument:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtrabbrvfootnote}}[2]\marg{\gls{footnote}\marg{\#2}}
\end{codebox}
\cmddef{glsxtrfootnotelongformat}
This command is used within the footnote to display the long form
formatted with \meta{fmt-cs} for the footnote styles on
\idx{firstuse} of \gls{gls}, \gls{Gls} and \gls{GLS}. The default definition is simply:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtrfootnotelongformat}}[2]\marg{\%
\gls{glsxtrlongformat}\marg{\#1}\marg{}\marg{\#2}\%
}
\end{codebox}
For example, if the footnote should start with an \idx{uppercase}
letter then simply redefine this to use \gls{Glsxtrlongformat}
instead:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsxtrfootnotelongformat}}[2]\marg{\%
\gls{Glsxtrlongformat}\marg{\#1}\marg{}\marg{\#2}\%
}
\end{codebox}
\cmddef{glsxtrfootnotelongplformat}
This command is used within the footnote to display the plural long form
formatted with \meta{fmt-cs} for the footnote styles on
\idx{firstuse} of \gls{glspl}, \gls{Glspl} and \gls{GLSpl}.
The default definition is simply:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtrfootnotelongplformat}}[2]\marg{\%
\gls{glsxtrlongplformat}\marg{\#1}\marg{}\marg{\#2}\%
}
\end{codebox}
\cmddef{glsxtrpostfootnotelongformat}
This command is used for the \qt{postfootnote} styles. This is
simply defined to do \gls{glsxtrfootnotelongformat}. Note that
there's no plural equivalent as the \qt{postfootnote} styles don't
check if the plural command (\gls{glspl} etc) was used.
\paragraph{No-Long Styles}
\label{sec:abbrvcmdsnolong}These commands are used by the
\qt{nolong} styles.
\cmddef{glsxtrshortnolongname}
This command should expand to the value of the \gloskey{name} key
for styles like \abbrstyle{short-nolong}.
The default definition is:
\begin{codebox}
\gls{glsxpabbrvfont}\marg{\cmd{the}\gls{glsshorttok}}\marg{\gls{glscategorylabel}}
\end{codebox}
\cmddef{glsxtrshortdescname}
This command should expand to the value of the \gloskey{name} key
for styles like \abbrstyle{short-nolong-desc}.
The default definition is:
\begin{codebox}
\gls{glsxpabbrvfont}\marg{\cmd{the}\gls{glsshorttok}}\marg{\gls{glscategorylabel}}\%
\cmd{protect}\gls{glsxtrfullsep}\marg{\cmd{the}\gls{glslabeltok}}\%
\cmd{protect}\gls{glsxtrparen}
\marg{\gls{glsxplongfont}\marg{\cmd{the}\gls{glslongtok}}\marg{\gls{glscategorylabel}}}\%
\end{codebox}
\paragraph{No-Short Styles}
\label{sec:abbrvcmdsnoshort}These commands are used by the
\qt{noshort} styles.
\cmddef{glsxtrlongnoshortdescname}
This command should expand to the value of the \gloskey{name} key
for styles like \abbrstyle{long-noshort-desc}.
The default definition is:
\begin{codebox}
\gls{glsxplongfont}\marg{\cmd{the}\gls{glslongtok}}\marg{\gls{glscategorylabel}}
\end{codebox}
\cmddef{glsxtrlongnoshortname}
This command should expand to the value of the \gloskey{name} key
for styles like \abbrstyle{long-noshort}.
The default definition is:
\begin{codebox}
\gls{glsxpabbrvfont}\marg{\cmd{the}\gls{glsshorttok}}\marg{\gls{glscategorylabel}}
\end{codebox}
\paragraph{Hyphen Styles}
\label{sec:abbrvcmdshyphen}These are commands used by the \qt{hyphen}
styles. They are designed to work with the \catattr{markwords}
and \catattr{markshortwords} attributes.
\cmddef{glsabbrvhyphenfont}
The formatting command used for the short form in the hyphen
styles. The default is to simply use \gls{glsabbrvdefaultfont}.
\cmddef{glsfirstabbrvhyphenfont}
The formatting command used for the short form in the hyphen
styles on \idx{firstuse}. The default is to simply use
\gls{glsabbrvhyphenfont}.
\cmddef{glslonghyphenfont}
The formatting command used for the long form in the hyphen
styles. The default is to simply use \gls{glslongdefaultfont}.
\cmddef{glsfirstlonghyphenfont}
The formatting command used for the long form in the hyphen
styles on \idx{firstuse}. The default is to simply use
\gls{glslonghyphenfont}.
\cmddef{glsxtrhyphensuffix}
Short plural suffix used by the \qt{hyphen} styles. This defaults to
\gls{glsxtrabbrvpluralsuffix}.
\cmddef{glsxtrlonghyphenshortsort}
Expands to the sort value for the styles like \abbrstyle{long-hyphen-short-hyphen}.
This defaults to the original short value (\gls{glsxtrorgshort}).
This command is irrelevant with the \idx{unsrtfam}.
\cmddef{glsxtrshorthyphenlongsort}
Expands to the sort value for the styles like \abbrstyle{short-hyphen-long-hyphen}.
This defaults to the original short value (\gls{glsxtrorgshort}).
This command is irrelevant with the \idx{unsrtfam}.
\cmddef{glsxtrlonghyphennoshortsort}
Expands to the sort value for the styles like
\abbrstyle{long-hyphen-noshort-noreg}.
This defaults to the original short value (\gls{glsxtrorgshort}).
This command is irrelevant with the \idx{unsrtfam}.
\cmddef{glsxtrlonghyphennoshortdescsort}
Expands to the sort value for the styles like
\abbrstyle{long-hyphen-noshort-desc-noreg}.
This defaults to the original long value (\gls{glsxtrorglong}).
This command is irrelevant with the \idx{unsrtfam}.
\cmddef{glsxtrlonghyphenshort}
Formats the long and short form for the full or \idx{firstuse}
\abbrstyle{long-hyphen-short-hyphen} style. This uses
\gls{glsxtrifhyphenstart} to test if the \meta{insert} starts with a
hyphen. If it does, \gls{glsxtrwordsep} is locally set to
\gls{glsxtrwordsephyphen} to replace the inter-word spaces with
hyphens. The short form is placed in parentheses with
\gls{glsxtrparen}, preceded by the \gls{glsxtrfullsep} separator.
The \meta{insert} is placed after both the long and the short form.
\cmddef{GLSxtrlonghyphenshort}
As above, but the \meta{insert} is converted to \idx{allcaps}. The
\meta{short} and \meta{long} arguments should be supplied as
\idx{allcaps}. Note that it's not possible to simply do
\gls{glsxtrlonghyphenshort} with
\code{\gls{MakeUppercase}\margm{insert}} as the argument as this
will interfere with the check to determine if \meta{insert} starts
with a hyphen.
\cmddef{glsxtrlonghyphennoshort}
Formats the long form for the full or \idx{firstuse}
\abbrstyle{long-hyphen-noshort-desc-noreg} style. This uses
\gls{glsxtrifhyphenstart} to test if the \meta{insert} starts with a
hyphen. If it does, \gls{glsxtrwordsep} is locally set to
\gls{glsxtrwordsephyphen} to replace the inter-word spaces with
hyphens. The \meta{insert} is placed after the long form.
\cmddef{GLSxtrlonghyphennoshort}
As above but converts \meta{insert} to \idx{allcaps}. The
\meta{long} argument should already be in \idx{allcaps}.
Note that it's not possible to simply do
\gls{glsxtrlonghyphennoshort} with
\code{\gls{MakeUppercase}\margm{insert}} as the argument as this
will interfere with the check to determine if \meta{insert} starts
with a hyphen.
\cmddef{glsxtrlonghyphen}
Formats the long form for the full or \idx{firstuse}
\abbrstyle{long-hyphen-postshort-hyphen} style. This is similar to
the above, but the \meta{insert} argument is only used to check if
it starts with a hyphen. The actual \meta{insert} is placed in the
\idx{postlinkhook}.
\cmddef{xpglsxtrposthyphenshort}
This command is used in the \idx{postlinkhook} for the
\abbrstyle{long-hyphen-postshort-hyphen} style on \idx{firstuse}.
It expands the placeholder commands (\gls{glslabel} and \gls{glsinsert})
and uses \gls{GLSxtrposthyphenshort} for \idx{allcaps} or
\gls{glsxtrposthyphenshort} otherwise. Note that this doesn't show
the plural by default. If you require the plural form, you need to
redefine this to add a check with \gls{glsifplural}:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{xpglsxtrposthyphenshort}}\marg{\%
\gls{glsifplural}
\marg{\%
\gls{glsxtrifallcaps}
\marg{\%
\gls{expandafter}\gls{GLSxtrposthyphenshortpl}\gls{expandafter}\gls{glslabel}
\gls{expandafter}\marg{\gls{glsinsert}}\%
}\%
\marg{\%
\gls{expandafter}\gls{glsxtrposthyphenshortpl}\gls{expandafter}\gls{glslabel}
\gls{expandafter}\marg{\gls{glsinsert}}\%
}\%
}\%
\marg{\%
\gls{glsxtrifallcaps}
\marg{\%
\gls{expandafter}\gls{GLSxtrposthyphenshort}\gls{expandafter}\gls{glslabel}
\gls{expandafter}\marg{\gls{glsinsert}}\%
}\%
\marg{\%
\gls{expandafter}\gls{glsxtrposthyphenshort}\gls{expandafter}\gls{glslabel}
\gls{expandafter}\marg{\gls{glsinsert}}\%
}\%
}\%
}
\end{codebox}
\cmddef{glsxtrposthyphenshort}
If \meta{insert} starts with a hyphen, \gls{glsxtrwordsep} is locally set to
\gls{glsxtrwordsephyphen} to replace the inter-word spaces with
hyphens. The \meta{insert} encapsulated with
\gls{glsfirstlonghyphenfont} is then done (to complete the long
form, which has already been displayed with \gls{glsxtrlonghyphen}
in the \idx{linktext}). Then the short form followed by the
\meta{insert} is placed in parentheses (with \gls{glsxtrparen}
preceded by \gls{glsxtrfullsep}).
\cmddef{GLSxtrposthyphenshort}
As above but \idx{allcaps}.
\cmddef{glsxtrposthyphenshortpl}
As \gls{glsxtrposthyphenshort} but plural.
\cmddef{GLSxtrposthyphenshortpl}
As above but \idx{allcaps}.
\cmddef{xpglsxtrposthyphensubsequent}
This command is used in the \idx{postlinkhook} for the
\abbrstyle{long-hyphen-postshort-hyphen} style on \idx{subsequentuse}.
It expands the placeholder commands (\gls{glslabel} and \gls{glsinsert})
and uses \gls{GLSxtrposthyphensubsequent} for \idx{allcaps} or
\gls{glsxtrposthyphensubsequent} otherwise.
\cmddef{glsxtrposthyphensubsequent}
This command is used in the \idx{postlinkhook} for the
\abbrstyle{long-hyphen-postshort-hyphen} style on \idx{subsequentuse}.
Only the \meta{insert} is done.
\cmddef{GLSxtrposthyphensubsequent}
As above but \idx{allcaps}.
\cmddef{glsxtrshorthyphenlong}
Formats the short and long form for the full or \idx{firstuse}
\abbrstyle{short-hyphen-long-hyphen} style. Similar to
\gls{glsxtrlonghyphenshort} but the short and long forms are
swapped.
\cmddef{GLSxtrshorthyphenlong}
As above, but the \meta{insert} is converted to \idx{allcaps}. The
\meta{short} and \meta{long} arguments should be supplied as
\idx{allcaps}. Note that it's not possible to simply do
\gls{glsxtrshorthyphenlong} with
\code{\gls{MakeUppercase}\margm{insert}} as the argument as this
will interfere with the check to determine if \meta{insert} starts
with a hyphen.
\cmddef{glsxtrshorthyphen}
Formats the short form for the full or \idx{firstuse}
\abbrstyle{short-hyphen-postlong-hyphen} style. The \meta{insert}
argument is only used to check if it starts with a hyphen. The
actual \meta{insert} is placed in the \idx{postlinkhook}.
\cmddef{xpglsxtrposthyphenlong}
This command is used in the \idx{postlinkhook} for the
\abbrstyle{short-hyphen-postlong-hyphen} style on \idx{firstuse}.
It expands the placeholder commands (\gls{glslabel} and \gls{glsinsert})
and uses \gls{GLSxtrposthyphenlong} for \idx{allcaps} or
\gls{glsxtrposthyphenlong} otherwise. Note that this doesn't show
the plural by default. If you require the plural form, you need to
redefine this to add a check with \gls{glsifplural}:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{xpglsxtrposthyphenlong}}\marg{\%
\gls{glsifplural}
\marg{\%
\gls{glsxtrifallcaps}
\marg{\%
\gls{expandafter}\gls{GLSxtrposthyphenlongpl}\gls{expandafter}\gls{glslabel}
\gls{expandafter}\marg{\gls{glsinsert}}\%
}\%
\marg{\%
\gls{expandafter}\gls{glsxtrposthyphenlongpl}\gls{expandafter}\gls{glslabel}
\gls{expandafter}\marg{\gls{glsinsert}}\%
}\%
}\%
\marg{\%
\gls{glsxtrifallcaps}
\marg{\%
\gls{expandafter}\gls{GLSxtrposthyphenlong}\gls{expandafter}\gls{glslabel}
\gls{expandafter}\marg{\gls{glsinsert}}\%
}\%
\marg{\%
\gls{expandafter}\gls{glsxtrposthyphenlong}\gls{expandafter}\gls{glslabel}
\gls{expandafter}\marg{\gls{glsinsert}}\%
}\%
}\%
}
\end{codebox}
\cmddef{glsxtrposthyphenlong}
This command is used in the \idx{postlinkhook} for the
\abbrstyle{short-hyphen-postlong-hyphen} style on \idx{firstuse}.
Similar to \gls{glsxtrposthyphenshort} but shows the long form instead of
the short form.
\cmddef{GLSxtrposthyphenlong}
As above but \idx{allcaps}.
\cmddef{glsxtrposthyphenlongpl}
As \gls{glsxtrposthyphenlong} but plural.
\cmddef{GLSxtrposthyphenlongpl}
As above but \idx{allcaps}.
\paragraph{Only Styles}
\label{sec:abbrvcmdsonly}These are commands used by the \qt{only}
styles, such as \abbrstyle{long-only-short-only}.
\cmddef{glsabbrvonlyfont}
The formatting command used for the short form in the only
styles. The default is to simply use \gls{glsabbrvdefaultfont}.
\cmddef{glsfirstabbrvonlyfont}
The formatting command used for the short form in the only
styles on \idx{firstuse}. The default is to simply use
\gls{glsabbrvonlyfont}.
\cmddef{glslongonlyfont}
The formatting command used for the long form in the only
styles. The default is to simply use \gls{glslongdefaultfont}.
\cmddef{glsfirstlongonlyfont}
The formatting command used for the long form in the only
styles on \idx{firstuse}. The default is to simply use
\gls{glslongonlyfont}.
\cmddef{glsxtronlysuffix}
Short plural suffix used by the \qt{only} styles. This defaults to
\gls{glsxtrabbrvpluralsuffix}.
\cmddef{glsabbrvsconlyfont}
The formatting command used for the short form in the \qt{sc-only}
styles. The default is to simply use \gls{glsabbrvscfont}.
\cmddef{glsfirstabbrvsconlyfont}
The formatting command used for the short form in the \qt{sc-only}
styles on \idx{firstuse}. The default is to simply use
\gls{glsabbrvsconlyfont}.
\cmddef{glsxtrsconlyrevert}
Counteracts the effect of \gls{glsabbrvsconlyfont}. The default is
\gls{glsxtrscrevert}. If you redefine \gls{glsabbrvsconlyfont}, you
will need to redefine \gls{glsxtrsconlyrevert} as applicable.
\cmddef{glsxtrsconlysuffix}
Short plural suffix used by the \qt{sc-only} styles. This defaults to
\gls{glsxtrscsuffix}.
\cmddef{glsxtronlyname}
Expands to the value for the \gloskey{name} key for the \qt{only}
styles. The default definition is:
\begin{codebox}
\cmd{protect}\gls{glsabbrvonlyfont}\marg{\cmd{the}\gls{glsshorttok}}
\end{codebox}
\cmddef{glsxtronlydescname}
Expands to the value for the \gloskey{name} key for the \qt{only}
styles where the description should be described, such as
\abbrstyle{long-only-short-only-desc}. The default definition is:
\begin{codebox}
\cmd{protect}\gls{glslongfont}\marg{\cmd{the}\gls{glslongtok}}
\end{codebox}
\cmddef{glsxtronlydescsort}
Expands to the value for the \gloskey{sort} key for the \qt{only}
styles where the description should be described, such as
\abbrstyle{long-only-short-only-desc}. The default definition is
\code{\cmd{the}\gls{glslongtok}}.
\begin{information}
This command is irrelevant with the \idx{unsrtfam}.
\end{information}
\cmddef{glsxtrsconlyname}
Expands to the value for the \gloskey{name} key for the \qt{sc-only}
styles. The default definition is:
\begin{codebox}
\cmd{protect}\gls{glsabbrvsconlyfont}\marg{\cmd{the}\gls{glsshorttok}}
\end{codebox}
\cmddef{glsxtrsconlydescname}
Expands to the value for the \gloskey{name} key for the \qt{sc-only}
styles where the description should be described. The default definition is
to simply use \gls{glsxtronlydescname}.
\cmddef{glsxtrsconlydescsort}
Expands to the value for the \gloskey{sort} key for the \qt{sc-only}
styles where the description should be described, such as
\abbrstyle{long-only-short-only-desc}. The default definition is
to simply use \gls{glsxtronlydescsort}.
\begin{information}
This command is irrelevant with the \idx{unsrtfam}.
\end{information}
\paragraph{Fonts}
\label{sec:abbrvcmdsfonts}These are commands used by styles that
use a particular font shape or size, identified by one of the
following two-letter tags: \qt{sc} (\gls{textsc}), \qt{sm} (\gls{textsmaller})
or \qt{em} (\gls{emph}).
\begin{information}
For the \qt{sc-user} styles, see \sectionref{sec:abbrvcmdsuser}.
For the \qt{sc-only} styles, see \sectionref{sec:abbrvcmdsonly}.
\end{information}
\cmddef{glsabbrvscfont}
Formatting for the \qt{sc} short form. This uses \gls{textsc} to
apply a \idx{smallcaps} style, so your document font needs to
support it.
\begin{information}
\gls{textsc} uses small capital glyphs for \idx{lowercase}
characters. \Idx{uppercase} characters show as normal capitals.
This means that you need to use \idx{lowercase} characters in the
abbreviation.
\end{information}
\cmddef{glsfirstabbrvscfont}
Formatting for the \qt{sc} short form shown on \idx{firstuse}.
This defaults to \gls{glsabbrvscfont}.
\cmddef{glsxtrscrevert}
Counteracts the effect of \gls{glsabbrvscfont}. This defaults to
\gls{glstextup}. If you redefine \gls{glsabbrvscfont}, you
will need to redefine \gls{glsxtrscrevert} as applicable.
\cmddef{glsxtrscsuffix}
Short plural suffix used by the \qt{sc} styles. This needs to
counteract the smallcaps, so it's defined as:
\begin{codebox}
\cmd{protect}\gls{glstextup}{\gls{glsxtrabbrvpluralsuffix}}
\end{codebox}
\cmddef{glsabbrvsmfont}
Formatting for the \qt{sm} short form. This uses \gls{textsmaller},
which is defined by the \sty{relsize} package. You will need to
load that package if you want to use any of the \qt{sm} styles.
\begin{information}
\gls{textsmaller} reduces the font size, so if you want to use it to
simulate \idx{smallcaps}, you need to use \idx{uppercase} characters
in the abbreviation.
\end{information}
\cmddef{glsfirstabbrvsmfont}
Formatting for the \qt{sm} short form shown on \idx{firstuse}.
This defaults to \gls{glsabbrvsmfont}.
\cmddef{glsxtrsmrevert}
Counteracts the effect of \gls{glsabbrvsmfont}. This defaults to
\gls{textlarger}. If you redefine \gls{glsabbrvsmfont}, you
will need to redefine \gls{glsxtrsmrevert} as applicable.
\cmddef{glsxtrsmsuffix}
Short plural suffix used by the \qt{sm} styles. This defaults to
\gls{glsxtrabbrvpluralsuffix}.
\cmddef{glsabbrvemfont}
Formatting for the \qt{em} short form. This uses \gls{emph}.
\cmddef{glsfirstabbrvemfont}
Formatting for the \qt{em} short form shown on \idx{firstuse}.
This defaults to \gls{glsabbrvemfont}.
\cmddef{glsxtremrevert}
Counteracts the effect of \gls{glsabbrvemfont}. This defaults to
\gls{textup}. If you redefine \gls{glsabbrvemfont}, you
will need to redefine \gls{glsxtremrevert} as applicable.
\cmddef{glsxtremsuffix}
Short plural suffix used by the \qt{em} styles. This defaults to
\gls{glsxtrabbrvpluralsuffix}.
\cmddef{glslongemfont}
Formatting for the \qt{em} long form. This uses \gls{emph}.
\cmddef{glsfirstlongemfont}
Formatting for the \qt{em} short form shown on \idx{firstuse}.
This defaults to \gls{glslongemfont}.
\subsection{Advanced Style Commands}
\label{sec:advancedabbrstylecmds}
These commands should typically not be needed in a document, but are
provided for advanced users. See \sectionref{sec:abbrvcmds}
for commands to adjust the predefined abbreviation styles.
\cmddef{glssetabbrvfmt}
Sets the current formatting commands
(\sectionref{sec:abbrstylefmts}) associated with the abbreviation
style associated with the given category. That is, the command
redefinitions provided in the third argument (\meta{display
definitions}) of \gls{newabbreviationstyle} are applied.
If no abbreviation style has been set for the given category, the
style associated with the \cat{abbreviation} category is used.
This command is used:
\begin{itemize}
\item At the start of \gls{glsentryfmt} if the
current entry has the \gloskey{short} field set. This ensures that the
\idx{glslike} commands use the appropriate formatting.
\item At the start of
\gls{glsxtrassignfieldfont} if the current entry has the
\gloskey{short} field set. This ensures that the
\idx{glslike} commands use the appropriate formatting (where
possible).
\item At the start of \gls{glsxtrshort}, \gls{glsxtrlong}, \gls{glsxtrfull}
and their plural and case-changing variants.
\item At the start of \gls{glossentryname},
\gls{glossentrynameother}, \gls{glossentrydesc},
\gls{Glossentrydesc}, \gls{glossentrysymbol} and \gls{Glossentrysymbol}.
\end{itemize}
\cmddef{glsuseabbrvfont}
A robust command that applies the abbreviation font for the given
category to the supplied text.
\cmddef{glsuselongfont}
A robust command that applies the long font for the given
category to the supplied text.
\cmddef{GlsXtrUseAbbrStyleSetup}
This implements the given abbreviation style's setup code.
Note that this expects the placeholder macros and token registers to
be set. This may be used in the \meta{setup} of
\gls{newabbreviationstyle} to inherit the setup code of a related
style.
\cmddef{GlsXtrUseAbbrStyleFmts}
This implements the given abbreviation style's display
definitions code. This may be used in the \meta{display
definitions} of \gls{newabbreviationstyle} to inherit the formatting
of a related style.
\cmddef{xpglsxtrpostabbrvfootnote}
This is used by styles like \abbrstyle{postfootnote} to ensure that
the label and inner and outer formatting are expanded before being
passed to \gls{glsxtrpostabbrvfootnote}, otherwise they may lose
their definitions before the footnote text is typeset.
\cmddef{glsxtrpostabbrvfootnote}
This is used by the footnote styles that defer the footnote to the
\idx{postlinkhook}. The default definition is:
\begin{codebox}
\cmd{newrobustcmd}*\marg{\gls{glsxtrpostabbrvfootnote}}[2]\marg{\%
\gls{glsxtrabbrvfootnote}\marg{\#1}\%
\marg{\#2\gls{glsxtrpostfootnotelongformat}\marg{\#1}\marg{\gls{glsfirstlongfootnotefont}}}\%
}
\end{codebox}
The second argument will be the expansion of
\gls{glsxtrassignlinktextfmt}, to allow the \idx{innerformatting}
to be picked up, if required.
\cmddef{glsxtrifhyphenstart}
This command is used by the hyphen styles to determine if the insert
material starts with a hyphen. Does \meta{true} if \meta{text}
starts with a hyphen otherwise does \meta{false}.
\cmddef{GlsXtrWarnDeprecatedAbbrStyle}
This command is used to generate a warning (with \gls{GlossariesExtraWarning})
if a deprecated abbreviation style is used.
\subsection{Defining New Abbreviation Styles}
\label{sec:newabbrvstyle}
If none of the predefined styles suit your requirements, you can
define your own custom style using:
\cmddef{newabbreviationstyle}
The first argument is the style name. This is used internally to
form control sequences, so the name shouldn't contain any special
characters.
The second argument sets up the information that's required when an
abbreviation is defined (which is why the style must be set before
the abbreviations with that style are defined). The relevant
commands for this argument are listed in
\sectionref{sec:abbrstyleinit}.
The third argument defines the commands that determine how
the display style (\gls{gls}) and the inline style
(\gls{glsxtrfull}) are formatted. The relevant
commands for this argument are listed in
\sectionref{sec:abbrstylefmts}.
\cmddef{renewabbreviationstyle}
Redefines an existing abbreviation style.
\cmddef{letabbreviationstyle}
Defines a synonym of an existing abbreviation style.
\subsubsection{Style Initialisation Hooks}
\label{sec:abbrstyleinit}
The style initialisation hooks should be placed in the second
argument (\meta{setup}) of \gls{newabbreviationstyle}. They ensure
that all the fields are correctly initialised when the entry is
defined with the underlying \gls{newglossaryentry} command. They may
also be used to set category attributes.
The following is prepended to \meta{setup} to initialise the final
hook:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{GlsXtrPostNewAbbreviation}}\marg{}
\end{codebox}
When an entry is defined with \gls{newabbreviation}, the following
steps are performed:
\begin{enumerate}
\item Token registers are initialised to the information provided in the
arguments of \gls{newabbreviation}: \gls{glskeylisttok},
\gls{glslabeltok}, \gls{glsshorttok} and \gls{glslongtok}.
\item The commands \gls{glsxtrorgkeylist}, \gls{glsxtrorgshort} and \gls{glsxtrorglong} are
defined to the options, short and long values supplied to
\gls{newabbreviation}. (The \gls{glskeylisttok} \gls{glsshorttok} and \gls{glslongtok}
token registers may be changed before the entry is actually defined.
These commands may be used to obtain the original values.)
\item \gls{ExtraCustomAbbreviationFields} is initialised to do
nothing.
\item Accessibility settings are initialised, if required.
These redefine \gls{ExtraCustomAbbreviationFields} to set the
accessibility fields.
\item The command \gls{glscategorylabel} is defined to \code{abbreviation}.
\item The options list is parsed for the following keys: \gloskey{category}
and, if accessibility is enabled,
\gloskey{access}, \gloskey{textaccess}, \gloskey{pluralaccess},
\gloskey{firstaccess}, \gloskey{firstpluralaccess},
\gloskey{shortaccess}, \gloskey{shortpluralaccess},
\gloskey{longaccess}, and \gloskey{longpluralaccess}.
\item The abbreviation style is applied for the category given by
\gls{glscategorylabel} (which may have been changed when the options
were parsed in the previous step) or the fallback if no abbreviation
style is associated with that category. This performs both the
\meta{setup} and \meta{display definitions} provided when the style
was defined with \gls{newabbreviationstyle}.
\item The long plural form is initialised to its default value
(\meta{long}\gls{glspluralsuffix}).
\item The \catattr{markwords} attribute, if set, is implemented for the
singular long form. It will also mark
the entry as having a description with formatting (using
\gls{glsexclapplyinnerfmtfield}).
\item The \catattr{markshortwords} attribute is implemented, if
set, otherwise the \catattr{insertdots} attribute is implemented, if
set, for the singular short form.
\item The \catattr{aposplural} attribute is implemented, if
set, otherwise the \catattr{noshortplural} attribute is implemented, if
set. This step will set the default short plural.
\item \gls{glsshorttok} is updated to reflect any changes.
\item The \gls{glsxtrnewabbrevpresetkeyhook} hook is performed.
\item The options list is parsed for the \gloskey{shortplural} and
\gloskey{longplural} keys. The \gls{glskeylisttok} token is updated
to only include the remaining keys that haven't yet been processed.
\item The \catattr{markwords} attribute, if set, is implemented for the
plural long form.
\item The \catattr{markshortwords} attribute, if set, otherwise the
\catattr{insertdots} attribute, if set, is implemented for the
plural short form.
\item The \gls{glsshortpltok} and \gls{glslongpltok} registers are
set.
\item \gls{newabbreviationhook} performed.
\item The entry is defined using \gls{newglossaryentry} with the key value list:
\begin{codebox}
\gloskeyval{type}{\gls{glsxtrabbrvtype}},
\gloskeyval{category}{abbreviation},
\gloskeyval{short}{\cmd{the}\gls{glsshorttok}},
\gloskeyval{shortplural}{\cmd{the}\gls{glsshortpltok}},
\gloskeyval{long}{\cmd{the}\gls{glslongtok}},
\gloskeyval{longplural}{\cmd{the}\gls{glslongpltok}},
\gloskeyval{name}{\cmd{the}\gls{glsshorttok}},
\gls{CustomAbbreviationFields},
\gls{ExtraCustomAbbreviationFields}
\cmd{the}\gls{glskeylisttok}
\end{codebox}
\item Add the \gloskey{name}, \gloskey{first},
\gloskey{firstplural}, \gloskey{text} and \gloskey{plural} keys to
the list of \idx{innerformatting} exclusions, as
they include formatting commands.
\item Final hook \gls{GlsXtrPostNewAbbreviation} performed.
\end{enumerate}
Note that when these hooks (except the last) are used, the entry hasn't yet been
defined. However, some information will have already been picked up
from the arguments of \gls{newabbreviation}. These can be accessed
in the hooks using the following (but make sure they are fully
expanded):
\cmddef{glscategorylabel}
Expands to the entry's category label.
\cmddef{glskeylisttok}
A token register that contains the options that were passed to
\gls{newabbreviation} with pre-processed options removed.
Use \code{\cmd{the}\gls{glskeylisttok}} to expand it.
The original option list, as supplied to \gls{newabbreviation}, can
be obtained with:
\cmddef{glsxtrorgkeylist}
(Not a token register.)
\cmddef{glslabeltok}
A token register that contains the entry's label. Use
\code{\cmd{the}\gls{glslabeltok}} to expand it.
\cmddef{glsshorttok}
A token register that contains the short form (which may have been
modified after being passed to \gls{newabbreviation}). Use
\code{\cmd{the}\gls{glsshorttok}} to expand it.
The original short form, as supplied to \gls{newabbreviation}, can
be obtained with:
\cmddef{glsxtrorgshort}
(Not a token register.)
\cmddef{glsshortpltok}
A token register that contains the short plural form (which may
have been obtained from the short form or modified after being
passed to \gls{newabbreviation}). Use
\code{\cmd{the}\gls{glsshortpltok}} to expand it.
\cmddef{glslongtok}
A token register that contains the long form (which may have been
modified after being passed to \gls{newabbreviation}). Use
\code{\cmd{the}\gls{glslongtok}} to expand it.
The original long form, as supplied to \gls{newabbreviation}, can
be obtained with:
\cmddef{glsxtrorglong}
(Not a token register.)
\cmddef{glslongpltok}
A token register that contains the long plural form (which may
have been obtained from the long form or modified after being
passed to \gls{newabbreviation}). Use
\code{\cmd{the}\gls{glslongpltok}} to expand it.
\cmddef{ExtraCustomAbbreviationFields}
Expands to additional field definitions for the entry. This is used
to add the accessibility fields (such as \gloskey{shortaccess}), if
enabled. The abbreviation style may append (\gls{appto}) or prepend
(\gls{preto}) additional information, if required, to this hook.
\begin{important}
If you alter this hook, make sure that you include the trailing
comma after each \code{\meta{key}\dequals\marg{value}}, including the last one.
\end{important}
\cmddef{CustomAbbreviationFields}
Expands to the default field definitions for the entry. Take care to
protect any commands that shouldn't be expanded. The comma may be
omitted from the final \code{\meta{key}\dequals\marg{value}}.
\cmddef{GlsXtrPostNewAbbreviation}
A hook that's used after the entry has been defined (at the end of
\gls{newabbreviation}). This can be used to set category attributes,
define the \idx{postlinkhook}, or mark the entry as having a complex
style (with \gls{glsxtrsetcomplexstyle}).
For example, the \abbrstyle{long-short} abbreviation style includes
the following in \meta{setup}:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{GlsXtrPostNewAbbreviation}}\marg{\%
\gls{glsxtrsetcomplexstyle}\marg{\cmd{the}\gls{glslabeltok}}\marg{3}\%
\gls{glshasattribute}\marg{\cmd{the}\gls{glslabeltok}}\marg{regular}\%
\marg{\%
\gls{glssetattribute}\marg{\cmd{the}\gls{glslabeltok}}\marg{regular}\marg{false}\%
}\%
\marg{}\%
}
\end{codebox}
Note that in the above, the commands within the definition of
\gls{GlsXtrPostNewAbbreviation} are all expanded when that hook is
used. However, if this hook defines other commands or hooks that
will be used later, then make sure that the definitions of those
commands use the inner hook's own placeholder commands.
\begin{information}
Remember that the \idx{postlinkhook} uses \gls{glslabel} to
reference the current label. Don't use \gls{glslabeltok} as that
will contain the label of the last abbreviation to be defined.
\end{information}
For example, the \abbrstyle{long-hyphen-postshort-hyphen} style has:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{GlsXtrPostNewAbbreviation}}\marg{\%
\gls{glsexclapplyinnerfmtfield}\marg{\cmd{the}\gls{glslabeltok}}\marg{desc}\%
\gls{csdef}\marg{glsxtrpostlink\gls{glscategorylabel}}\marg{\%
\gls{glsxtrifwasfirstuse}
\marg{\%
\gls{expandafter}\gls{glsxtrposthyphenshort}\gls{expandafter}\gls{glslabel}
\gls{expandafter}\marg{\gls{glsinsert}}\%
}\%
\marg{\%
\gls{expandafter}\gls{glsxtrposthyphensubsequent}\gls{expandafter}\gls{glslabel}
\gls{expandafter}\marg{\gls{glsinsert}}\%
}\%
}\%
\gls{glshasattribute}\marg{\cmd{the}\gls{glslabeltok}}\marg{regular}\%
\marg{\%
\gls{glssetattribute}\marg{\cmd{the}\gls{glslabeltok}}\marg{regular}\marg{false}\%
}\%
\marg{}\%
}
\end{codebox}
In the above, \gls{glslabeltok} and \gls{glscategorylabel} are used
in the parts that will be expanded at the end of
\gls{newabbreviation}, but \gls{glslabel} and \gls{glsinsert} are
used in the definition of the \idx{postlinkhook}, which won't be
expanded until the entry is referenced in the document with a
command such as \gls{gls}. (The use of \gls{expandafter} is included
to assist \glsopt{innertextformat}.)
\cmddef{glsxtrsetcomplexstyle}
This command should go in the definition of
\gls{GlsXtrPostNewAbbreviation} to indicate that the entry given by
\meta{entry-label} has an abbreviation style that is
complex. The second argument \meta{n} should be numeric and
indicates why it doesn't work with \gls{glsfirst}, \gls{Glsfirst},
\gls{GLSfirst}, \gls{glsfirstplural}, \gls{Glsfirstplural}
or \gls{GLSfirstplural}: 1 (all caps doesn't work), 2 (all caps and
insert doesn't work), 3 (insert doesn't work).
\cmddef{glsfirstinnerfmtabbrvfont}
This is a robust command that applies both \gls{glsfirstabbrvfont} and the inner
formatting command \gls{glsxtrgenentrytextfmt}. This is used by the
following command.
\cmddef{glsfirstxpabbrvfont}
If the \catattr{markshortwords} attribute is true, this does
\code{\cmd{protect}\gls{glsfirstabbrvfont}\margm{text}}
otherwise it does \code{\gls{glsfirstinnerfmtabbrvfont}\margm{text}}.
This command is designed to be used within
\gls{CustomAbbreviationFields} to set the \gloskey{first} and
\gloskey{firstplural} keys, so it needs to partially expand
within \gls{newabbreviation}. For example, the
\abbrstyle{postfootnote} includes the following lines in the
definition of \gls{CustomAbbreviationFields}:
\begin{codebox}
\gloskeyval{first}{\gls{glsfirstxpabbrvfont}\marg{\cmd{the}\gls{glsshorttok}}\marg{\gls{glscategorylabel}}},\%
\gloskeyval{firstplural}{\gls{glsfirstxpabbrvfont}\marg{\cmd{the}\gls{glsshortpltok}}\marg{\gls{glscategorylabel}}},
\end{codebox}
This will be expanded before being passed to \gls{newglossaryentry}.
If the \catattr{markshortwords} attribute is true, this will end up
as:
\begin{codebox}
\gloskeyval{first}{\cmd{protect}\gls{glsfirstabbrvfont}\margm{short}},\%
\gloskeyval{firstplural}{\cmd{protect}\gls{glsfirstabbrvfont}\margm{shortpl}}
\end{codebox}
otherwise it will end up as:
\begin{codebox}
\gloskeyval{first}{\gls{glsfirstinnerfmtabbrvfont}\margm{short}},\%
\gloskeyval{firstplural}{\gls{glsfirstinnerfmtabbrvfont}\margm{shortpl}},\%
\end{codebox}
where \meta{short} and \meta{shortpl} are, respectively, the values
in the \gls{glsshorttok} and \gls{glsshortpltok} registers.
\begin{information}
The placeholder registers and macros (such as \gls{glsshorttok} and
\gls{glscategorylabel}) must be expanded before being passed to
\gls{newglossaryentry} as their values are unreliable outside of
\gls{newabbreviation}.
\end{information}
\cmddef{glsinnerfmtabbrvfont}
This is a robust command that applies both \gls{glsabbrvfont} and the inner
formatting command \gls{glsxtrgenentrytextfmt}. This is used by the
following command.
\cmddef{glsxpabbrvfont}
If the \catattr{markshortwords} attribute is true, this does
\code{\cmd{protect}\gls{glsabbrvfont}\margm{text}}
otherwise it does \code{\gls{glsinnerfmtabbrvfont}\margm{text}}.
This command is designed for the \gloskey{name}, \gloskey{text} and \gloskey{plural}
keys within \gls{CustomAbbreviationFields}.
\cmddef{glsfirstinnerfmtlongfont}
This is a robust command that applies both \gls{glsfirstlongfont} and the inner
formatting command \gls{glsxtrgenentrytextfmt}. This is used by the
following command.
\cmddef{glsfirstxplongfont}
If the \catattr{markwords} attribute is true, this does
\code{\cmd{protect}\gls{glsfirstlongfont}\margm{text}}
otherwise it does \code{\gls{glsfirstinnerfmtlongfont}\margm{text}}.
This command is designed for the \gloskey{first} and \gloskey{firstplural}
keys within \gls{CustomAbbreviationFields}.
\cmddef{glsinnerfmtlongfont}
This is a robust command that applies both \gls{glslongfont} and the inner
formatting command \gls{glsxtrgenentrytextfmt}. This is used by the
following command.
\cmddef{glsxplongfont}
If the \catattr{markwords} attribute is true, this does
\code{\cmd{protect}\gls{glslongfont}\margm{text}}
otherwise it does \code{\gls{glsinnerfmtlongfont}\margm{text}}.
This command is designed for the \gloskey{name}, \gloskey{text} and \gloskey{plural}
keys within \gls{CustomAbbreviationFields} (if they should include
the long form in their value, such as the
\abbrstyle{long-noshort-desc} style).
\cmddef{glsxtrAccSuppAbbrSetNoLongAttrs}
If accessibility support has been enabled with \opt{accsupp}, this
command will initialise support for the \gloskey{name},
\gloskey{first}, \gloskey{firstplural},
\gloskey{text} and \gloskey{plural} fields for the given category
(using \gls{glsxtrprovideaccsuppcmd}).
The \catattr{nameshortaccess}, \catattr{firstshortaccess} and \catattr{textshortaccess}
attributes are set to \code{true}. (Does nothing if accessibility
support has not been enabled.)
This command is provided for abbreviation styles
where the \gloskey{name}, \gloskey{first} and \gloskey{text} are
just the formatted abbreviation. The
\gloskey{first} field may just be the long form or may be a
combination of short and long.
\cmddef{glsxtrAccSuppAbbrSetNameLongAttrs}
If accessibility support has been enabled with \opt{accsupp}, this
command will initialise support for the
\gloskey{first}, \gloskey{firstplural},
\gloskey{text} and \gloskey{plural} fields for the given category
(using \gls{glsxtrprovideaccsuppcmd}).
The \catattr{firstshortaccess} and \catattr{textshortaccess}
attributes are set to \code{true}. (Does nothing if accessibility
support has not been enabled.)
This command is provided for abbreviation styles
where the \gloskey{first} and \gloskey{text} are
just the formatted abbreviation. The
\gloskey{name} field may just be the long form or may be a
combination of short and long.
\cmddef{glsxtrAccSuppAbbrSetFirstLongAttrs}
If accessibility support has been enabled with \opt{accsupp}, this
command will initialise support for the \gloskey{name},
\gloskey{text} and \gloskey{plural} fields for the given category
(using \gls{glsxtrprovideaccsuppcmd}).
The \catattr{nameshortaccess} and \catattr{textshortaccess}
attributes are set to \code{true}. (Does nothing if accessibility
support has not been enabled.)
This command is provided for abbreviation styles where the
\gloskey{name} and \gloskey{text} are just the formatted
abbreviation. The \gloskey{first} field may just be the long form or
may be a combination of short and long.
\cmddef{glsxtrAccSuppAbbrSetTextShortAttrs}
If accessibility support has been enabled with \opt{accsupp}, this
command will initialise support for the
\gloskey{text} and \gloskey{plural} fields for the given category
(using \gls{glsxtrprovideaccsuppcmd}).
The \catattr{textshortaccess}
attribute is set to \code{true}. (Does nothing if accessibility
support has not been enabled.)
This command is provided for abbreviation styles where the
\gloskey{text} is just the formatted abbreviation. The
\gloskey{name} and \gloskey{first} fields may just be the long form
or may be a combination of short and long. The \gloskey{name} may
also be short but followed by the long form in the description.
\cmddef{glsxtrAccSuppAbbrSetNameShortAttrs}
If accessibility support has been enabled with \opt{accsupp}, this
command will initialise support for the
\gloskey{name} field for the given category
(using \gls{glsxtrprovideaccsuppcmd}).
The \catattr{nameshortaccess}
attribute is set to \code{true}. (Does nothing if accessibility
support has not been enabled.)
This command is provided for abbreviation styles where only the
\gloskey{name} is just the formatted abbreviation. The
\gloskey{first} and \gloskey{text} fields may just be the long form
or may be a combination of short and long.
\subsubsection{Style Formatting Commands}
\label{sec:abbrstylefmts}
The final \meta{display definitions} argument of
\gls{newabbreviationstyle} should contain the redefinitions of the
style commands listed here that are used to format abbreviations.
Whenever an abbreviation style is activated with commands like
\gls{setabbreviationstyle}, \gls{newabbreviation} or
\gls{glssetabbrvfmt}, \meta{display definitions} are implemented.
\begin{important}
If you simply want to adjust the formatting of one of the predefined
styles, you should redefine the associated commands listed in
\sectionref{sec:abbrvcmds}.
\end{important}
The following initialisation is always prepended to
\meta{display definitions} so you can omit them if the default is
appropriate for your style:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsxtrinlinefullformat}}\marg{\gls{glsxtrfullformat}}\%
\cmd{renewcommand}*\marg{\gls{Glsxtrinlinefullformat}}\marg{\gls{Glsxtrfullformat}}\%
\cmd{renewcommand}*\marg{\gls{GLSxtrinlinefullformat}}\marg{\gls{GLSxtrfullformat}}\%
\cmd{renewcommand}*\marg{\gls{glsxtrinlinefullplformat}}\marg{\gls{glsxtrfullplformat}}\%
\cmd{renewcommand}*\marg{\gls{Glsxtrinlinefullplformat}}\marg{\gls{Glsxtrfullplformat}}\%
\cmd{renewcommand}*\marg{\gls{GLSxtrinlinefullplformat}}\marg{\gls{GLSxtrfullplformat}}\%
\cmd{let}\gls{glsxtrsubsequentfmt}\gls{glsxtrdefaultsubsequentfmt}
\cmd{let}\gls{glsxtrsubsequentplfmt}\gls{glsxtrdefaultsubsequentplfmt}
\cmd{let}\gls{Glsxtrsubsequentfmt}\gls{Glsxtrdefaultsubsequentfmt}
\cmd{let}\gls{Glsxtrsubsequentplfmt}\gls{Glsxtrdefaultsubsequentplfmt}
\cmd{let}\gls{GLSxtrsubsequentfmt}\gls{GLSxtrdefaultsubsequentfmt}
\cmd{let}\gls{GLSxtrsubsequentplfmt}\gls{GLSxtrdefaultsubsequentplfmt}
\end{codebox}
In the event that any styles omit defining the newer \gls{GLSxtrfullformat}
or \gls{GLSxtrfullplformat}, these are also initialised to defaults
but ideally they should have their definitions provided.
The minimal set of commands that should have their definitions
provided are the abbreviation plural suffix
(\gls{abbrvpluralsuffix}) the \idxpl{displayfullform}:
\gls{glsxtrfullformat}, \gls{glsxtrfullplformat} and their
case-changing variants.
The \idx{inlinefullform} commands only need to be provided if they
behave differently from the \idx{displayfullform}. The subsequent
use commands only need to be provided if the default (only show the
short form) isn't suitable.
\begin{important}
The content of \meta{display definitions} is placed within the
definition of an internal control sequence, so remember to use
\code{\#\#} instead of \code{\#} to reference command parameters.
\end{important}
\paragraph{Suffix and Fonts}
These are the generic suffix and font commands that vary according
to the abbreviation style. The style should provide the appropriate
definitions. The suffix should always be provided. The font commands
are only required if the style applies any font formatting to either
the long or short form.
\cmddef{abbrvpluralsuffix}
The plural suffix for the short form. For example, the
\abbrstyle{long-short} style defines this to just use
\gls{glsxtrabbrvpluralsuffix}, but the smallcaps styles, such as
\abbrstyle{long-short-sc} define this to \gls{glsxtrscsuffix} in
order to counteract the small caps font.
\cmddef{glsfirstabbrvfont}
The font formatting command for the short form on \idx{firstuse}. For example, the
\abbrstyle{long-short-sc} style has:
\begin{codebox}
\cmd{renewcommand}*\gls{glsfirstabbrvfont}\oarg{1}\marg{\gls{glsfirstabbrvscfont}\marg{\#\#1}}
\end{codebox}
\cmddef{glsabbrvfont}
The font formatting command for the short form. For example, the
\abbrstyle{long-short-sc} style has:
\begin{codebox}
\cmd{renewcommand}*\gls{glsabbrvfont}\oarg{1}\marg{\gls{glsabbrvscfont}\marg{\#\#1}}
\end{codebox}
\cmddef{glsxtrrevert}
This command is designed to counteract the effect of
\gls{glsabbrvfont} if, for some reason, it shouldn't be applied to
part of the abbreviation. For example, you may prefer not to have
digits reduced with the smaller (\qt{sm}) styles.
\cmddef{glsfirstlongfont}
The font formatting command for the long form on \idx{firstuse}. For example, the
\abbrstyle{long-short-sc} style has:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsfirstlongfont}}[1]\marg{\gls{glsfirstlongdefaultfont}\marg{\#\#1}}
\end{codebox}
\cmddef{glslongfont}
The font formatting command for the long form. For example, the
\abbrstyle{long-short-sc} style has:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glslongfont}}[1]\marg{\gls{glslongdefaultfont}\marg{\#\#1}}
\end{codebox}
\paragraph{First Use Display Format}
These commands always need to be provided.
\cmddef{glsxtrfullformat}
The singular \idx{displayfullform} used on the \idx{firstuse} of
\gls{gls}.
\cmddef{glsxtrfullplformat}
The plural \idx{displayfullform} used on the \idx{firstuse} of
\gls{glspl}.
\cmddef{Glsxtrfullformat}
The \idx{sentencecase} singular \idx{displayfullform} used on the \idx{firstuse} of
\gls{Gls}.
\cmddef{Glsxtrfullplformat}
The \idx{sentencecase} plural \idx{displayfullform} used on the \idx{firstuse} of
\gls{Glspl}.
\cmddef{GLSxtrfullformat}
The \idx{allcaps} singular \idx{displayfullform} used on the \idx{firstuse} of
\gls{GLS}.
\cmddef{GLSxtrfullplformat}
The \idx{allcaps} plural \idx{displayfullform} used on the \idx{firstuse} of
\gls{GLSpl}.
\paragraph{Subsequent Use Display Format}
These commands only need to be provided if the \idx{glslike}
commands don't simply show the short form.
\cmddef{glsxtrsubsequentfmt}
The singular form for \idx{subsequentuse} of \gls{gls}.
\cmddef{glsxtrsubsequentplfmt}
The plural form for \idx{subsequentuse} of \gls{glspl}.
\cmddef{Glsxtrsubsequentfmt}
The \idx{sentencecase} singular form for \idx{subsequentuse} of \gls{Gls}.
\cmddef{Glsxtrsubsequentplfmt}
The \idx{sentencecase} plural form for \idx{subsequentuse} of
\gls{Glspl}.
\cmddef{GLSxtrsubsequentfmt}
The \idx{allcaps} singular form for \idx{subsequentuse} of \gls{GLS}.
\cmddef{GLSxtrsubsequentplfmt}
The \idx{allcaps} plural form for \idx{subsequentuse} of \gls{GLSpl}.
The defaults all show the short form and insert encapsulated with
the \idx{innerformatting} \gls{glsxtrgenentrytextfmt} and
\gls{glsabbrvfont}. The purpose of the \idx{innerformatting} is to get it
as close as possible to the actual text so \gls{glsabbrvfont} is
placed outside of \gls{glsxtrgenentrytextfmt}.
The \catattr{markshortwords} attribute complicates matters as it
inserts \gls{glsxtrword} and \gls{glsxtrwordsep} into the actual
field value. In that case, the \idx{innerformatting} is within
\gls{glsxtrword} and \gls{glsxtrwordsep}, so only the insert
material needs to be formatted.
If a custom style doesn't need to support \glsopt{innertextformat}
or \gls{ifglsxtrinsertinside}, it can reduce the complexity by
omitting the \idx{innerformatting} and conditionals, but this lack of
support should be documented if the style is made generally
available.
\cmddef{glsxtrdefaultsubsequentfmt}
The default singular form for \idx{subsequentuse} of \gls{gls}.
\cmddef{glsxtrdefaultsubsequentplfmt}
The default plural form for \idx{subsequentuse} of \gls{glspl}.
\cmddef{Glsxtrdefaultsubsequentfmt}
The default \idx{sentencecase} singular form for \idx{subsequentuse} of \gls{Gls}.
\cmddef{Glsxtrdefaultsubsequentplfmt}
The default \idx{sentencecase} plural form for \idx{subsequentuse}
of \gls{Glspl}.
\cmddef{GLSxtrdefaultsubsequentfmt}
The default \idx{allcaps} singular form for \idx{subsequentuse} of \gls{GLS}.
\cmddef{GLSxtrdefaultsubsequentplfmt}
The default \idx{allcaps} plural form for \idx{subsequentuse} of
\gls{GLSpl}.
\paragraph{Inline Full Format}
These commands only need to be provided if the \idx{inlinefullform}
is different from the \idx{displayfullform}.
\cmddef{glsxtrinlinefullformat}
The singular full form of \gls{glsxtrfull}.
\cmddef{glsxtrinlinefullplformat}
The plural full form of \gls{glsxtrfullpl}.
\cmddef{Glsxtrinlinefullformat}
The \idx{sentencecase} singular full form of \gls{Glsxtrfull}.
\cmddef{Glsxtrinlinefullplformat}
The \idx{sentencecase} plural full form of \gls{Glsxtrfullpl}.
\cmddef{GLSxtrinlinefullformat}
The \idx{allcaps} singular full form of \gls{GLSxtrfull}.
\cmddef{GLSxtrinlinefullplformat}
The \idx{allcaps} plural full form of \gls{GLSxtrfullpl}.
\paragraph{Wrapper Commands}
These are commands that can be used in the definitions of the above
to ensure that the appropriate accessibility fields and inner
formatting is supported.
\cmddef{glsxtrlongformat}
This command is used in the definition of \gls{glsxtrlong} in some
of the predefined abbreviation styles to format the \gloskey{long}
value of the entry identified by \meta{entry-label} with the command
\meta{fmt-cs}, which should take one argument.
Accessibility support is implemented with \gls{glsaccesslong} if the
\catattr{markwords} attribute is true otherwise with
\gls{glsaccessfmtlong} using \gls{glsxtrgenentrytextfmt} for the
\idx{innerformatting}.
This is then encapsulated (including or excluding the \meta{insert},
according to \gls{ifglsxtrinsertinside}) with \meta{fmt-cs}. If the
\meta{insert} content needs to be placed outside of \meta{fmt-cs}, it
will be individually encapsulated with the \idx{innerformatting}.
\cmddef{Glsxtrlongformat}
As above, but \idx{sentencecase}.
\cmddef{GLSxtrlongformat}
As above, but \idx{allcaps}.
\cmddef{glsxtrlongplformat}
As \gls{glsxtrlongformat}, but for the \gloskey{longplural} field.
\cmddef{Glsxtrlongplformat}
As above, but \idx{sentencecase}.
\cmddef{GLSxtrlongplformat}
As above, but \idx{allcaps}.
\cmddef{glsxtrlongformatgrp}
As \gls{glsxtrlongformat}, but adds grouping around \meta{insert}
(with the \idx{innerformatting} inside the group).
\cmddef{Glsxtrlongformatgrp}
As above, but \idx{sentencecase}.
\cmddef{GLSxtrlongformatgrp}
As above, but \idx{allcaps}.
\cmddef{glsxtrlongplformatgrp}
As \gls{glsxtrlongplformat}, but adds grouping around \meta{insert}
(with the \idx{innerformatting} inside the group).
\cmddef{Glsxtrlongplformatgrp}
As above, but \idx{sentencecase}.
\cmddef{GLSxtrlongplformatgrp}
As above, but \idx{allcaps}.
\cmddef{glsxtrshortformat}
This command is used in the definition of \gls{glsxtrshort} and in
some of the predefined abbreviation styles to format the
\gloskey{short} value of the entry identified by \meta{entry-label}
with the command \meta{fmt-cs}, which should take one argument.
Accessibility support is implemented with \gls{glsaccessshort} if the
\catattr{markshortwords} attribute is true otherwise with
\gls{glsaccessfmtshort} using \gls{glsxtrgenentrytextfmt} for the
\idx{innerformatting}.
This is then encapsulated (including or excluding the \meta{insert},
according to \gls{ifglsxtrinsertinside}) with \meta{fmt-cs}. If the
\meta{insert} content needs to be placed outside of \meta{fmt-cs}, it
will be individually encapsulated with the \idx{innerformatting}.
\cmddef{Glsxtrshortformat}
As above, but \idx{sentencecase}.
\cmddef{GLSxtrshortformat}
As above, but \idx{allcaps}.
\cmddef{glsxtrshortplformat}
As \gls{glsxtrshortformat}, but for the \gloskey{shortplural} field.
\cmddef{Glsxtrshortplformat}
As above, but \idx{sentencecase}.
\cmddef{GLSxtrshortplformat}
As above, but \idx{allcaps}.
\cmddef{glsxtrshortformatgrp}
As \gls{glsxtrshortformat}, but adds grouping around \meta{insert}
(with the \idx{innerformatting} inside the group).
\cmddef{Glsxtrshortformatgrp}
As above, but \idx{sentencecase}.
\cmddef{GLSxtrshortformatgrp}
As above, but \idx{allcaps}.
\cmddef{glsxtrshortplformatgrp}
As \gls{glsxtrshortplformat}, but adds grouping around \meta{insert}
(with the \idx{innerformatting} inside the group).
\cmddef{Glsxtrshortplformatgrp}
As above, but \idx{sentencecase}.
\cmddef{GLSxtrshortplformatgrp}
As above, but \idx{allcaps}.
\cmddef{glsxtrlongshortformat}
A shortcut designed for \meta{long} (\meta{short}) styles. This is
defined as:
\begin{codebox}
\gls{glsxtrlongformat}\margm{entry-label}\margm{insert}\margm{long-fmt-cs}%
\gls{glsxtrfullsep}\margm{entry-label}%
\gls{glsxtrparen}\margm{\gls{glsxtrshortformat}\margm{entry-label}\marg{}\margm{short-fmt-cs}}%
\end{codebox}
Note that the \meta{insert} is only placed after the long form.
\cmddef{Glsxtrlongshortformat}
As above, but \idx{sentencecase}.
\cmddef{GLSxtrlongshortformat}
As above, but \idx{allcaps}.
\cmddef{glsxtrlongshortplformat}
As \gls{glsxtrlongshortformat} but uses the plural versions \gls{glsxtrlongplformat}
and \gls{glsxtrshortplformat}.
\cmddef{Glsxtrlongshortplformat}
As above, but \idx{sentencecase}.
\cmddef{GLSxtrlongshortplformat}
As above, but \idx{allcaps}.
\cmddef{glsxtrshortlongformat}
A shortcut designed for \meta{short} (\meta{long}) styles. This is
defined as:
\begin{codebox}
\gls{glsxtrshortformat}\margm{entry-label}\margm{insert}\margm{short-fmt-cs}%
\gls{glsxtrfullsep}\margm{entry-label}%
\gls{glsxtrparen}\margm{\gls{glsxtrlongformat}\margm{entry-label}\marg{}\margm{long-fmt-cs}}%
\end{codebox}
Note that the \meta{insert} is only placed after the short form.
The syntax is the same as for \gls{glsxtrlongshortformat} even
though \gls{glsxtrlongformat} and \gls{glsxtrshortformat} are
flipped within the definition.
\cmddef{Glsxtrshortlongformat}
As above, but \idx{sentencecase}.
\cmddef{GLSxtrshortlongformat}
As above, but \idx{allcaps}.
\cmddef{glsxtrshortlongplformat}
As \gls{glsxtrshortlongformat} but uses the plural versions
\gls{glsxtrshortplformat} and \gls{glsxtrlongplformat}.
\cmddef{Glsxtrshortlongplformat}
As above, but \idx{sentencecase}.
\cmddef{GLSxtrshortlongplformat}
As above, but \idx{allcaps}.
\section{Restoring Base Acronym Mechanism}
\label{sec:acrorevert}
It's possible to revert \gls{newacronym} back to the definition
provided by the base \sty{glossaries} package. However, if you do
this, you will lose all the abbreviation features provided by
\sty{glossaries-extra}.
\begin{important}
Where possible, avoid this. If you're simply trying to make the long form appear
on \idx{firstuse} with \gls{newacronym}, set the abbreviation style using:
\begin{codebox}
\gls{setabbreviationstyle}\oarg{acronym}\marg{long-short}
\end{codebox}
\end{important}
If you really need to use the original base \sty{glossaries} package's acronym
mechanism, it's better to stick with just \sty{glossaries} and not use
\sty{glossaries-extra}. However, it may be that you need to use a
\sty{glossaries-extra} feature, such as \gls{printunsrtglossary}, but you have a
custom acronym style that you can't implement using the \sty{glossaries-extra}
abbreviation mechanism. This is a rare edge case for unusual formats, as it should be
possible to implement most common abbreviation formats using the
predefined styles.
\begin{warning}
Unpredictable results will occur if \gls{RestoreAcronyms} or
\gls{MakeAcronymsAbbreviations} are used after abbreviations or
acronyms have been defined.
\end{warning}
\cmddef{RestoreAcronyms}
Restores \gls{newacronym} back to the original base \sty{glossaries}
interface. Note that this doesn't affect \gls{newabbreviation}.
It also sets the \catattr{regular} attribute for the \cat{acronym}
category to \code{false} and sets the acronym style to
\code{long-short} (which is the default for the base package).
The display style for each \idx{glossary} identified in the acronym lists
is switched to the default acronym display style.
\cmddef{MakeAcronymsAbbreviations}
Counteracts \gls{RestoreAcronyms}.
\chapter{Referencing (Using) Entries}
\label{sec:glsref}
Entries can be referenced using the \idx{glslike} and \idx{glstextlike}
commands, as described in the base \sty{glossaries} manual. There are some
additional commands provided by \sty{glossaries-extra}:
\begin{itemize}
\item abbreviation commands, such as \gls{glsxtrshort}
(see \sectionref{sec:abbreviations});
\item commands for use in captions or section headings, such as
\gls{glsfmttext} (see \sectionref{sec:headingcommands});
\item commands, such as \gls{glsxtrp}, designed for use within
fields to help mitigate the problems of nesting (see
\sectionref{sec:nested});
\item commands, such as \gls{mgls}, that are designed for
referencing multi (or compound) entries (see
\sectionref{sec:multientries});
\item commands, such as \gls{glsaccessname}, used to incorporate
accessibility support (see \sectionref{sec:glsaccessfield});
\item commands, such as \gls{dgls}, that are designed for
\app{bib2gls}['s] dual entries (see \sectionref{sec:dgls});
\item commands, such as \gls{rgls}, that depend on the number of
entry records (see \sectionref{sec:recordcount}).
\end{itemize}
Additionally, the entry counting commands, such as \gls{cgls},
provided by the base \sty{glossaries} package are modified by
\sty{glossaries-extra} (see \sectionref{sec:entrycount}).
The \idx{glslike} commands are designed to produce text at that
point in the document (the \idx{linktext},
\sectionref{sec:entryfmtmods}), index the entry (to ensure that it
appears in the glossary, \sectionref{sec:wrglossary}) and unset the
\idx{firstuseflag} (which can alter the \idx{linktext},
\sectionref{sec:glsunset}). Additional information can be appended
automatically with the \idx{postlinkhook}
(\sectionref{sec:postlinkhook}). The \idx{linktext} is given by the
entry style (see \sectionref{sec:entryfmt}) or by the final argument
of \gls{glsdisp}.
The \idx{glstextlike} commands are designed to produce text at that
point in the document (the \idx{linktext},
\sectionref{sec:entryfmtmods}) and index the entry (to ensure that
it appears in the glossary, \sectionref{sec:wrglossary}). Additional
information can be appended automatically with the
\idx{postlinkhook} (\sectionref{sec:postlinkhook}). The
\idx{linktext} is determined by the calling command. For example,
the corresponding field value (possibly encapsulated with
\gls{glsxtrregularfont} and the inner formatting) for commands like
\gls{glstext} or the final argument of \gls{glslink}.
The \idx{glslike} and \idx{glstextlike} commands can all be used
with a star (\code{*}) or plus (\code{+}) modifier. The star
modifier automatically implements \glsoptval{hyper}{false}
(disables the hyperlink) and the plus modifier automatically
implements \glsoptval{hyper}{true} (forces the hyperlink on, if
supported).
With \sty{glossaries-extra}, it's possible to define an additional
modifier for your own use with:
\cmddef{GlsXtrSetAltModifier}
The \meta{token} must be a single token, so a multi-byte \idx{utf8}
character will required a native Unicode engine (\XeLaTeX\ or \LuaLaTeX).
For example, the following:
\begin{codebox}
\gls{GlsXtrSetAltModifier}\marg{!}\marg{\glsoptval{format}{glsignore}}
\end{codebox}
means that \code{\gls{gls}!\margm{label}} will be equivalent to
\code{\gls{gls}\oarg{\glsoptval{format}{glsignore}}\margm{label}}.
It's also possible to redefine the star and plus modifiers:
\cmddef{GlsXtrSetStarModifier}
This sets the options to use for the star modifier.
\cmddef{GlsXtrSetPlusModifier}
This sets the options to use for the plus modifier.
For example, the following:
\begin{codebox}
\gls{GlsXtrSetPlusModifier}\marg{\glsopt{noindex}}
\end{codebox}
means that the star modifier will now suppress \idx{indexing}
instead of switching on the hyperlink.
The \idx{glslike} and \idx{glstextlike} commands have a complicated
internal structure, which can be viewed as a series of layers. The
outermost common layer is:
\begin{compactcodebox}
\comment{save settings}
\comment{initialise options, see \sectionref{sec:glsopts}}
\gls{glslinkwrcontent}\margm{index \& fmt content}
\comment{restore settings}
\comment{\idx{postlinkhook}, see \sectionref{sec:postlinkhook}}
\end{compactcodebox}
The \meta{index \& fmt content} consists of the \idx{indexing}
(see \sectionref{sec:wrglossary}) and the (possibly
hyperlinked) formatted text, see \sectionref{sec:entryfmtmods}. The
\meta{index \& fmt content} code is encapsulated with:
\cmddef{glslinkwrcontent}
In v1.48, this was added to scope the \idx{linktext} and
\idx{indexing} code, which helped to prevent unwanted spacing caused
by the \idx{whatsit} and also helped to
prevent some setting leakage, in the event of nesting (see
\sectionref{sec:nested}), but this caused spacing issues when used in
math mode, so from v1.49 this command now simply does its argument.
The \idx{whatsit} is now scoped with \gls{glsencapwrcontent} instead.
The \gls{glsxtrp} command, designed for nested use, deals
with the problem by suppressing the \idx{postlinkhook} and adding an
outer group. For example,
\code{\gls{glsxtrp}\marg{short}\marg{html}} behaves like:
\begin{compactcodebox}
\marg{\gls{let}\gls{glspostlinkhook}\gls{relax}
\gls{glsxtrshort}\oarg{noindex,nohyper}\marg{html}}
\end{compactcodebox}
Depending on the settings (the \glsopt{wrgloss} option or the
\catattr{wrgloss} attribute), the indexing may come before the text:
\begin{compactcodebox}
\gls{glslinkwrcontent}\marg{\meta{index}\meta{fmt content}}
\end{compactcodebox}
or after the text:
\begin{compactcodebox}
\gls{glslinkwrcontent}\marg{\meta{fmt content}\meta{index}}
\end{compactcodebox}
or may be suppressed with \glsopt{noindex}:
\begin{compactcodebox}
\gls{glslinkwrcontent}\marg{\meta{fmt content}}
\end{compactcodebox}
The \meta{fmt content} part is described in
\sectionref{sec:entryfmtmods}. The \meta{index} part is the actual
\idx{indexing} (see \sectionref{sec:wrglossary}) but also increments
the index count, if applicable. Both the associated \idx{whatsit} and
increment are encapsulated with \gls{glsencapwrcontent}.
\begin{important}
Avoid using \gls{glstext}, \gls{glsplural}, \gls{glsfirst} and
\gls{glsfirstplural} (and their case-changing variants) with
entries that have been defined with \gls{newabbreviation}. Some of the abbreviation
styles are too complicated to work with those commands. Instead, use
commands like \gls{glsxtrshort}, \gls{glsxtrfull} or use \gls{gls}
with the \glsopt{prereset} or \glsopt{preunset} options.
\end{important}
The base \sty{glossaries} package provides a way to adjust the
formatting of the \idx{linktext} for the \idx{glslike} commands
according to the glossary type with \gls{defglsentryfmt}. The
\sty{glossaries-extra} package changes the default entry formatting
(\sectionref{sec:entryfmt}) and provides additional ways of
modifying the displayed content (\sectionref{sec:entryfmtmods}).
The heading commands (described in \sectionref{sec:headtitle}) are
designed to prevent indexing or changes to the \idx{firstuseflag} if
they appear in the table of contents (or list of figures, etc) or if
they appear in the page header.
Although the base \sty{glossaries} package warns against nested
\idx{linktext}, the \sty{glossaries-extra} package provides
\gls{glsxtrp} which can be used instead of \gls{gls} in field values
to overcome some of the associated problems.
See \sectionref{sec:nested} for further details.
If you need to simply access a \idx{field} value without any formatting,
see \sectionref{sec:getfields}. (See \sectionref{sec:setfields} to
set \idx{field} values.) If you want to encapsulate the value with
the appropriate accessibility tag, see \sectionref{sec:glsaccessfield}.
Commands such as \gls{glsadd} (see \sectionref{sec:wrglossary}) and
\gls{glssee} (see \sectionref{sec:xr}) are designed to only index (to
ensure the entry appears in the glossary) without producing any text or changing
the \idx{firstuseflag}.
The \idx{glslike}, \idx{glstextlike} and \gls{glsadd} commands all have an initial
optional argument that can be used to override the default actions.
Some options are only applicable for particular subsets of
referencing commands. For example, \glsopt{noindex} is pointless for
\gls{glsadd} since the sole purpose of that command is to index.
Whereas \glsopt{types} is only available with \gls{glsaddall}.
\section{Options}
\label{sec:glsopts}
\glsstartrange{idx.glsopt}%
Some options are provided by the base \sty{glossaries} package, but
there are some additional options provided by
\sty{glossaries-extra}, which are listed in \sectionref{sec:xtrglsopts}.
Below, \meta{option-list} indicates the options that are passed in
the optional argument of the calling command (such as \gls{gls}).
The order that the options are applied is:
\begin{enumerate}
\item \glsopt{prereset}, \glsopt{preunset} and \glsopt{postunset} options are
initialised by \gls{glsinitreunsets};
\item \glsopt{hyper} is initialised by \gls{glsxtrchecknohyperfirst}
(\gls{glsfirst}-like only);
\item \glsopt{wrgloss} option is initialised by \gls{glsxtrinitwrgloss}
(not implemented by \gls{glsadd} or \gls{glsxtrfmt});
\item \glsopt{hyperoutside} option is initialised by
\gls{glsxtrinithyperoutside} (not implemented by \gls{glsadd}
or \gls{glsxtrfmt});
\item initialise \glsoptval{noindex}{false} (not \gls{glsadd});
\item options identified by \gls{GlsXtrSetDefaultGlsOpts},
\gls{GlsXtrAppToDefaultGlsOpts} or \gls{GlsXtrPreToDefaultGlsOpts} (not
implemented by \gls{glsadd});
\item (\gls{glsxtrfmt} only) options provided in
\gls{GlsXtrFmtDefaultOptions};
\item (\idx{glslike} only) the \opt{hyperfirst} package option,
\catattr{nohyperfirst} attribute and \catattr{nohypernext}
attributes are checked to determine if the \glsopt{hyper} option
should be switched off (tests followed by \gls{glslinkcheckfirsthyperhook});
\item \gls{glslinkpresetkeys} (not implemented by \gls{glsadd}
or \gls{glsxtrfmt});
\item (\gls{glsadd} only) \gls{glsaddpresetkeys};
\item \meta{option-list};
\item \gls{glslinkpostsetkeys} (provided by the base \sty{glossaries}
package, not implemented by \gls{glsadd} or \gls{glsxtrfmt});
\item (\gls{glsadd} only) \gls{glsaddpostsetkeys}.
\end{enumerate}
\subsection{Setting Up Defaults}
\label{sec:defaultglsopts}
You can (locally) set your preferred default options for the \idx{glslike} and
\idx{glstextlike} commands using:
\cmddef{GlsXtrSetDefaultGlsOpts}
The \meta{options} may be any options that you can pass to those commands.
These options also apply to \gls{glsxtrfmt} but not to \gls{glsadd}.
\begin{information}
Note that multiple instances of \gls{GlsXtrSetDefaultGlsOpts} will override each
other.
\end{information}
If you want to add to the existing options, you can use one of the
following commands (both may be scoped).
\cmddef{GlsXtrAppToDefaultGlsOpts}
Appends \meta{options} to the list of default options.
\cmddef{GlsXtrPreToDefaultGlsOpts}
Prepends \meta{options} to the list of default options.
For example, to prevent indexing in the front matter and back matter but
not in the main matter:
\begin{codebox}
\gls+{frontmatter}
\gls{GlsXtrSetDefaultGlsOpts}\marg{\glsopt{noindex}}
\ldots
\gls+{mainmatter}
\gls{GlsXtrSetDefaultGlsOpts}\marg{}
\ldots
\gls+{backmatter}
\gls{GlsXtrSetDefaultGlsOpts}\marg{\glsopt{noindex}}
\end{codebox}
Note that \glsoptval{noindex}{false} is now set before the options
given in \gls{GlsXtrSetDefaultGlsOpts} to ensure that the setting is
correctly initialised, so as from v1.49 you can simply set an empty
options list to reset the default. Prior to v1.49, it was necessary
to ensure that the \glsopt{noindex} key was always present in the
options list to avoid instability. So for pre v1.49, the line after
\gls{mainmatter} in the above would need to be:
\begin{codebox}
\gls{GlsXtrSetDefaultGlsOpts}\marg{\glsoptval{noindex}{false}}
\end{codebox}
The default \idx{locationencap} is \encap{glsnumberformat} but can
be changed (locally) with:
\cmddef{GlsXtrSetDefaultNumberFormat}
This can be overridden by explicitly setting the \glsopt{format}
key.
The default options for \gls{glsxtrfmt} only are given by:
\cmddef{GlsXtrFmtDefaultOptions}
This command should simply expand to the required list of options. These options
are set after any options given in \gls{GlsXtrSetDefaultGlsOpts} and before
\meta{option-list}.
\cmddef{glslinkpresetkeys}
This hook is performed after any settings provided in \gls{GlsXtrSetDefaultGlsOpts}
but before \meta{option-list}.
This hook also applies to \gls{glsxtrfmt} but not to \gls{glsadd}.
Note that \gls{glslinkpostsetkeys}, provided by the
base \sty{glossaries} package, is performed after \meta{option-list} is
processed.
\cmddef{glsaddpresetkeys}
This hook, which is only used by \gls{glsadd}, is performed before
\meta{option-list}.
\cmddef{glsaddpostsetkeys}
This hook, which is only used by \gls{glsadd}, is performed after
\meta{option-list}.
\cmddef{glsinitreunsets}
This hook initialises the pre unset/reset options to:
\glsoptval{prereset}{none} and \glsoptval{preunset}{none}. It also
initialises the \glsopt{postunset} setting to perform the post-unset
(where applicable) but it will retain the current local/global setting.
This hook will also implement the local repeat unset feature of
\gls{GlsXtrUnsetBufferEnableRepeatLocal}.
\cmddef{glsxtrchecknohyperfirst}
This hook is only used by \gls{glsfirst}, \gls{glsfirstplural} and
their case-changing variants. The hook will implement
\glsoptval{hyper}{false} if the \catattr{nohyperfirst} attribute is
set to \code{true}.
\cmddef{glsxtrinitwrgloss}
This hook initialises the default setting of the \glsopt{wrgloss} option. If the
\catattr{wrgloss} attribute is set to \code{after} then this implements
\glsoptval{wrgloss}{after} otherwise it implements \glsoptval{wrgloss}{before}.
This setting can subsequently be overridden by \gls{GlsXtrSetDefaultGlsOpts},
\gls{glslinkpresetkeys}, the \meta{option-list} argument or
\gls{glslinkpostsetkeys}.
This hook also applies to \gls{glsxtrfmt} but not to \gls{glsadd}.
If you prefer to have the default to place the \idx{indexing} after the
\idx{linktext}, you can redefine this hook as follows:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsxtrinitwrgloss}}\marg{\%
\gls{glsifattribute}\marg{\gls{glslabel}}\marg{\catattr{wrgloss}}\marg{before}\%
{\%
\gls+{glsxtrinitwrglossbeforetrue}
}\%
{\%
\gls+{glsxtrinitwrglossbeforefalse}
}\%
}
\end{codebox}
\cmddef{glsxtrinithyperoutside}
This hook initialises the default setting of the \glsopt{hyperoutside} option.
If the \catattr{hyperoutside} attribute is set to \code{false} then this
implements \glsoptval{hyperoutside}{false} otherwise it implements
\glsoptval{hyperoutside}{true}.
This setting can subsequently be overridden by \gls{GlsXtrSetDefaultGlsOpts},
\gls{glslinkpresetkeys}, the \meta{option-list} argument or
\gls{glslinkpostsetkeys}.
This hook also applies to \gls{glsxtrfmt} but not to \gls{glsadd}.
Within any of the hooks that are used by the \idx{glslike},
\idx{glstextlike} or \gls{glsxtrfmt} commands, you can set options
using:
\cmddef{setupglslink}
Within any of the hooks that are used by \idx{glsadd},
you can set options with:
\cmddef{setupglsadd}
\subsection{Additional Options}
\label{sec:xtrglsopts}
Options for the \idx{glslike} and \idx{glstextlike} commands that are
provided by the base \sty{glossaries} package also apply to new commands like
\gls{glsxtrfmt} and \gls{glsfmttext}. In addition, the options below are
provided by \sty{glossaries-extra}. Note that some options, such as
\glsopt{postunset}, only apply to the \idx{glslike} commands.
Options that relate to the hyperlink, formatting, \idx{firstuseflag}
or whether\slash where (\glsopt{noindex}\slash\glsopt{wrgloss}) to
perform \idx{indexing} aren't available for \gls{glsadd}.
\optiondef{glsopt.hyperoutside}
This boolean option determines whether the hyperlink should be inside or outside
of \gls{glstextformat} (see \sectionref{sec:glstextformat}).
If true, the \idx{linktext} is encapsulated as:
\begin{codebox}
\meta{hyperlink-cs}\margm{target}\marg{\gls{glstextformat}\margm{text}}
\end{codebox}
otherwise it's encapsulated as:
\begin{codebox}
\gls{glstextformat}\marg{\meta{hyperlink-cs}\margm{target}\margm{text}}
\end{codebox}
where \meta{hyperlink-cs} is the command that generates the
hyperlink (if enabled).
\optiondef{glsopt.textformat}
The value of this key should be the name of a control sequence (without the
leading backslash). If this option is set, the given control
sequence will be used instead of \gls{glstextformat} to encapsulate
the \idx{linktext}. Note that this control sequence should take a single
argument (the \idx{linktext}). See \sectionref{sec:glstextformat}
for further details.
\begin{information}
This option will override the \catattr{textformat} attribute.
\end{information}
\optiondef{glsopt.innertextformat}
The value of this key should be the name of a control sequence
(without the leading backslash). The command
\gls{glsxtrgenentrytextfmt} (which shouldn't be redefined) is
assigned to this control sequence at the start of the \idx{glslike}
and \idx{glstextlike} commands. This command is used within the
predefined abbreviation styles and within \gls{glsgenentryfmt} to
encapsulate the entry field values.
\begin{information}
Custom styles that don't use \gls{glsxtrgenentrytextfmt} won't
support this key. See \sectionref{sec:innertextformat} for further
details.
\end{information}
Some formatting commands require direct access to the actual text or
else the content has to be placed inside a box (which inhibits
line-breaking). These commands won't work with \glsopt{textformat}
as the text is usually too deeply embedded. This option provides a
way of using those problematic commands, however there's still no
guarantee that they will work (for example, in the case of custom
styles or where the field value itself contains commands).
\optiondef{glsopt.postunset}
This option only applies to the \idx{glslike} commands and indicates
whether or not to unset the \idx{firstuseflag} after the
\idx{linktext}. It may take one of three values: \optfmt{global}
(behaves like \glsoptval{local}{false}), \optfmt{local} (behaves
like \glsoptval{local}{true}) or \optfmt{none} (doesn't unset the
\idx{firstuseflag} after the \idx{firstuse}). See
\sectionref{sec:glsunset}.
\optiondef{glsopt.prereset}
This option may take one of three values: \optfmt{none} (no reset),
\optfmt{local} or \optfmt{global}. This option (if not \optfmt{none})
will reset the \idx{firstuseflag} before the \idx{linktext} and
additionally change \gls{glsxtrifwasfirstuse} so that it indicates
that this was the \idx{firstuse} of the entry. See
\sectionref{sec:glsunset}.
Note that this is different from using \gls{glslocalreset} or
\gls{glsreset} before the \idx{glstextlike} commands. Normally
\gls{glstext} and \gls{glsplural} will define
\gls{glsxtrifwasfirstuse} so that it indicates that this was not the
\idx{firstuse} of the entry (regardless of whether or not the entry
has actually been used).
For example:
\begin{codebox}
\gls{glsdefpostlink}\marg{general}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},
\gloskeyval{first}{sample first use},\gloskeyval{description}{an example}}
\cbeg{document}
Text field: \gls{glstext}\marg{sample}.
\codepar
First use: \gls{gls}\marg{sample}. Next use: \gls{gls}\marg{sample}.
\codepar
Force reset: \gls{gls}\oarg{prereset}\marg{sample}.
Used? \gls{ifglsused}\marg{sample}\marg{Yes}\marg{No}.
\codepar
Force reset: \gls{glstext}\oarg{prereset}\marg{sample}.
Used? \gls{ifglsused}\marg{sample}\marg{Yes}\marg{No}.
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample[title={Illustrating the \optfmt{prereset} option},
label={ex:prereset},
description={Example document illustrating the use of the prereset option}]
{\usepackage{glossaries-extra}^^J%
\glsdefpostlink{general}{\glsxtrpostlinkAddDescOnFirstUse}^^J
\newglossaryentry{sample}{name={sample},^^J
first={sample first use},^^J
description={an example}}
}{%
Text field: \glstext{sample}.
First use: \gls{sample}. Next use: \gls{sample}.
Force reset: \gls[prereset]{sample}.
Used? \ifglsused{sample}{Yes}{No}.
Force reset: \glstext[prereset]{sample}.
Used? \ifglsused{sample}{Yes}{No}.
}
\end{resultbox}
Note that \gls{gls} unsets the \idx{firstuseflag} (unless
\glsoptval{postunset}{none}), so the sample entry is marked as used
afterwards, but \gls{glstext} doesn't alter the \idx{firstuseflag},
after the \idx{linktext} so the sample entry is still marked as unused afterwards.
\optiondef{glsopt.preunset}
This option may take one of three values: \optfmt{none} (no unset),
\optfmt{local} or \optfmt{global}. This option (if not \optfmt{none})
will unset the \idx{firstuseflag} before the \idx{linktext} and
additionally change \gls{glsxtrifwasfirstuse} so that it indicates
that this wasn't the \idx{firstuse} of the entry. See
\sectionref{sec:glsunset}.
\begin{information}
The \glsopt{preunset} key is always performed after the
\glsopt{prereset} key.
\end{information}
Note the effect of using a global reset but a local unset in the
example below. Both options are performed, but the unset locally
overrides the global reset.
\begin{codebox}
\gls{glsdefpostlink}\marg{general}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},
\gloskeyval{first}{sample first use},\gloskeyval{description}{an example}}
\cbeg{document}
\gls{gls}\marg{sample}. Used? \gls{ifglsused}\marg{sample}\marg{Yes}\marg{No}.
\codepar
\marg{\gls{glsfirst}\oarg{preunset=local,prereset=global}\marg{sample}.
Used? \gls{ifglsused}\marg{sample}\marg{Yes}\marg{No}.
}
\codepar
Used? \gls{ifglsused}\marg{sample}\marg{Yes}\marg{No}.
\codepar
\marg{\gls{gls}\oarg{preunset=local,prereset=global}\marg{sample}.
Used? \gls{ifglsused}\marg{sample}\marg{Yes}\marg{No}.
}
\codepar
Used? \gls{ifglsused}\marg{sample}\marg{Yes}\marg{No}.
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample[title={Combining \optfmt{prereset} and \optfmt{preunset}},
label={ex:preresetpreunset},
description={Example document illustrating the use of the prereset
and preunset options}]
{\usepackage{glossaries-extra}^^J%
\glsdefpostlink{general}{\glsxtrpostlinkAddDescOnFirstUse}^^J
\newglossaryentry{sample}{name={sample},^^J
first={sample first use},^^J
description={an example}}
}{%
\gls{sample}. Used? \ifglsused{sample}{Yes}{No}.
{\glsfirst[preunset=local,prereset=global]{sample}.
Used? \ifglsused{sample}{Yes}{No}.
}
Used? \ifglsused{sample}{Yes}{No}.
{\gls[preunset=local,prereset=global]{sample}.
Used? \ifglsused{sample}{Yes}{No}.
}
Used? \ifglsused{sample}{Yes}{No}.
}
\end{resultbox}
Remember that \gls{gls} globally unsets the \idx{firstuseflag}
(unless changed with \glsopt{postunset}),
which counteracts \glsoptval{prereset}{global}.
\optiondef{glsopt.noindex}
This is a boolean option that determines whether or not to suppress
the normal \idx{indexing}. For example, to prevent
any \locations\ in the front matter or back matter appearing in
the glossary:
\begin{codebox}
\gls{frontmatter}
\gls{GlsXtrSetDefaultGlsOpts}\marg{\glsopt{noindex}}
\ldots
\gls{mainmatter}
\gls{GlsXtrSetDefaultGlsOpts}\marg{\glsoptval{noindex}{false}}
\ldots
\gls{backmatter}
\gls{GlsXtrSetDefaultGlsOpts}\marg{\glsopt{noindex}}
\end{codebox}
Note that if you are using auto-indexing (see
\sectionref{sec:autoindex}), \glsoptval{noindex}{false} will also
suppress the auto-indexing.
If you are using \app{bib2gls}, you may want to consider instead using
\glsoptval{format}{glsignore} to create an ignored \location\
that ensures the entry is selected without adding a \location\
to the \idx{locationlist}. (Don't use this method for the other
\idx{indexing} methods as you'll end up with invisible
\locations\ with spurious commas in your \idxpl{locationlist}.)
\optiondef{glsopt.wrgloss}
This option may take one of two values, \optfmt{before} or \optfmt{after},
which indicate whether the \idx{indexing} should occur before or
after the \idx{linktext}. The \idx{indexing} creates a \idx{whatsit}
that can interfere with spacing or cause other problems. The other thing to
consider is where the \idx{linktext} is long, such as a phrase or
full form of an abbreviation, that may be split by a page break.
You will need to decide if you want the \idx{indexing} before the
\idx{linktext}, so that the \location\ is at the end of the page
where the text starts, or if you want the \idx{indexing} after the
\idx{linktext}, so that the \location\ is at the start of the next
page where the text ends.
This option corresponds to a conditional:
\cmddef*{ifglsxtrinitwrglossbefore}
The hook \gls{glsxtrinitwrgloss} sets this conditional according to
whether or not the \catattr{wrgloss} attribute has been set to
\code{after}:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtrinitwrgloss}}\marg{\comment{}
\gls{glsifattribute}\marg{\gls{glslabel}}\marg{wrgloss}\marg{after}\comment{}
\marg{\gls{glsxtrinitwrglossbeforefalse}}\comment{}
\marg{\gls{glsxtrinitwrglossbeforetrue}}\comment{}
}
\end{codebox}
\optiondef{glsopt.thevalue}
Sets the \idx{entrylocation} to the given value instead of obtaining
it from the \idx{locationcounter}. If you are using \sty{hyperref} you may also
need to set the location's hypertarget with \glsopt{theHvalue}.
\begin{information}
This option is primarily intended for use with \app{bib2gls} to supply
\locations\ that don't have an associated counter within the document, such
as an external location. If you want to automatically add locations
from a supplemental document to an entry's \idx{locationlist}, you
can use the \resourceopt{supplemental-locations} resource option. See
the \app{bib2gls} user manual for further details.
\end{information}
For example, to \idxc{indexing}{index} a \location\ in a supplementary document:
\begin{codebox}
\gls{glsadd}\oarg{\glsoptval{thevalue}{\marg{Suppl.\cmd{ }2.45}}}\marg{sample}
\end{codebox}
This will add \qt{Suppl.\ 2.45} to the \idx{locationlist}
for the \qt{sample} entry.
\begin{important}
Note that the value must conform to the \idx{indexingapp}['s] location syntax.
For \app+{makeindex}, this is limited to \code{Roman}, \code{roman},
\code{arabic}, \code{alph} and \code{Alph}. With \app+{xindy}, the location
syntax must be defined in the \app{xindy} module (standard location syntaxes are
supplied by default). There's no restriction on the location syntax for
\app{bib2gls}, although if it can't deduce a numerical value it won't be able to
form a range.
\end{important}
If you want a hyperlink to an external file, you can use:
\cmddef*{glsxtrsupphypernumber}
as the formatting command for the \idx{locationencap}. For example:
\begin{codebox}
\gls{glsadd}\oarg{\glsoptval{thevalue}{S.2},\glsoptval{format}{glsxtrsupphypernumber}}\marg{sample}
\end{codebox}
The path to the external file needs to be set in the
\catattr{externallocation} category attribute.
\begin{information}
The hyperlink for the supplementary location may or \emph{may not}
take you to the relevant place in the external PDF file
\emph{depending on your PDF viewer}. Some may not support external
links, and some may take you to the first page or last visited page.
\end{information}
For example, if both \filefmt{sample-suppl-hyp.pdf}
and \filefmt{sample-suppl-main-hyp.pdf} are in the same directory,
then viewing \filefmt{sample-suppl-main-hyp.pdf} in Evince will
take you to the correct location in the linked document (when you
click on the S.2 external link), but Okular will take you to the top
of the first page of the linked document.
This method can only be used where there is one external source
for the designated category (identified by the
\catattr{externallocation} attribute). For multiple sources, you need to use
\app{bib2gls} v1.7+, which is the better method in general as it can
automatically fetch the relevant locations from the \ext{aux}
files of the designated external documents without the need to
explicitly use \gls{glsadd}.
\optiondef{glsopt.theHvalue}
Sets the hypertarget corresponding to the \location, which will be
used if the \glsopt{format} supports hyperlinks. This is analogous
to \sty{hyperref}['s] \theHcountername\ that provides the
hypertarget for a reference to \thecountername.
\begin{information}
This option is primarily intended for use with the \glsopt{thevalue} option.
\end{information}
Unless you are using \opteqvalref{record}{nameref}, you must ensure
that it's possible to form \meta{the-H-value} from
\meta{h-prefix}\meta{thevalue} for some \meta{h-prefix} (where
\meta{thevalue} is given by \glsopt{thevalue} or the value of the
\location\ counter). This restriction is due to the limitations
imposed by \app+{makeindex} and \app+{xindy}.
\optiondef{glsopt.prefix}
This option locally redefines \gls{glolinkprefix} to \meta{link-prefix}.
If you are using \gls{printunsrtglossary} to redisplay a list (possibly in a
different order) then you will need some way of changing the entry targets to
avoid duplicate hyperlink targets. One way of achieving this is to redefine
\gls{glolinkprefix} for the subsequent lists. You will then need to use the
\glsopt{prefix} option in commands like \gls{gls} to ensure that the hyperlink
for the \idx{linktext} points to the desired list.
\begin{information}
This option is intended for use with the \idx{unsrtfam} and
\gls{glsxtrcopytoglossary} (which is used by \app{bib2gls}).
The other \idx{indexing} methods don't support repeated lists.
\end{information}
\glsendrange{idx.glsopt}%
\section{Case Changing}
\label{sec:casechange}
Case-changing commands, such as \gls{Gls} and \gls{GLS}, perform the
conversion using commands provided by \sty{mfirstuc}. The underlying
commands provided by \sty{mfirstuc} were redesigned in v2.08 to use
the newer, better case-changing commands available with the \LaTeX3
kernel. The base \sty{glossaries} package v4.50 and \sty{glossaries-extra}
v1.49 were developed concurrently with \sty{mfirstuc} v2.08 to take
advantage of the new features. Version 1.49 of
\sty{glossaries-extra} was also developed concurrently with
\app{bib2gls} v3.0 which, in turn, was developed alongside version
0.9.2.7b of the \TeX\ parser library.
It's not possible to upload all these new versions at the same time,
so it will be necessary to stagger their deployment. The new
case-changing features will work best when all these new versions
are installed. In the interim, a reduced feature set will be used.
\subsection{Sentence Case Commands}
\label{sec:firstuc}
Both the base \sty{glossaries} package and the
\sty{glossaries-extra} package provide \idx{sentencecase} commands,
which convert the first letter to \idx{uppercase}. These are
provided for situations where an entry is referenced at the start of
a sentence. Sentence-casing is also implemented when the attributes
\catattr{glossname} or \catattr{glossdesc} are set to \code{firstuc}.
The case conversion is performed using:
\cmddef{glssentencecase}
The default definition uses \gls{makefirstuc}, which is provided by
the \sty{mfirstuc} package. This was originally part of the base
\sty{glossaries} package, but was split into a separately
distributed package in 2015. Back then, there was no expandable
sentence-case command. There was also a problem with referencing
entries where \idx{linktext} was encapsulated with a text-block
command (which occurs, in particular, with acronym and abbreviation styles).
The first letter of the text-block command's argument needed to be
obtained, which resulted in some trickery that proved problematic
with \idx{utf8}.
The \LaTeX3 kernel now provides a suitable expandable command that
works with \idx{utf8}, and \sty{mfirstuc} v2.08+ provides
\gls{MFUsentencecase} that directly interfaces with it. If an older
version of \sty{mfirstuc} is installed, \sty{glossaries} v4.50+ and
\sty{glossaries-extra} v1.49+ will provide \gls{MFUsentencecase}. You can use this in
expandable contents. For example:
\begin{codebox}
\cmd{section}\marg{\gls{MFUsentencecase}\marg{\gls{glsentrytext}\marg{label}}}
\end{codebox}
However, in the above example, it's simpler to do:
\begin{codebox}
\cmd{section}\marg{\gls{Glsfmttext}\marg{label}}
\end{codebox}
If \sty{hyperref} has been loaded, \code{\gls{Glsfmttext}\marg{label}}
will now expand to:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glsentrytext}\marg{label}}
\end{compactcodebox}
in the PDF bookmark.
Internally, \gls{makefirstuc} now uses \gls{MFUsentencecase} to
perform the case conversion, but it still parses its argument to
determine if it starts with \code{\meta{cs}\margm{text}}. This means
that with \sty{mfirstuc} v2.08+, you now don't have to worry about
\idx{utf8} characters occurring at the start of the text.
For example, with \sty{mfirstuc} v2.07 you would need to do
something like:
\begin{codebox}
\gls{newglossaryentry}\marg{elite}\marg{\gloskeyval{name}{\marg{\'e}lite},
\gloskeyval{description}{...}}
\end{codebox}
in order for \code{\gls{Gls}\marg{elite}} to work. Whereas with
\sty{mfirstuc} v2.08, you can now simply do:
\begin{codebox}
\gls{newglossaryentry}\marg{elite}\marg{\gloskeyval{name}{\'elite},
\gloskeyval{description}{...}}
\end{codebox}
(As from \sty{glossaries} v4.47, it should be possible to use
\idx{utf8} characters in the label as well.)
Whilst you can redefine \gls{glssentencecase} to use
\gls{MFUsentencecase} directly (without using \gls{makefirstuc} as
an intermediary), this may result in content being expanded that
wouldn't have been expanded previously. In particularly, if
\meta{cs} isn't robust and expands to content that includes labels
then the case-change can fail. You also won't be able to take
advantage of the blockers and mappings that are only recognised as
such by \gls{makefirstuc}. If you use \gls{MFUsentencecase} instead,
blockers and mappings will be treated as exclusions, which are
likely to result in unwanted side-effects.
Both \gls{makefirstuc} and \gls{MFUsentencecase} recognise
exclusions. These are text-block commands which take a single
mandatory argument that needs to be skipped. For example, in the
following \code{\gls{glsadd}\marg{example}} needs to be skipped:
\begin{codebox}
\gls{MFUsentencecase}\marg{\gls{glsadd}\marg{example}some text}
\end{codebox}
Exclusions are identified with \gls{MFUexcl}. If you have an older
version of \sty{mfirstuc}, this won't be defined, so
\sty{glossaries} v4.50+ and \sty{glossaries-extra} v1.49+ provide:
\cmddef{glsmfuexcl}
This will use \gls{MFUexcl} with \sty{mfirstuc} v2.08+.
With older versions, a definition will be provided that works with
\gls{MFUsentencecase}, but exclusions won't be recognised by
\gls{makefirstuc}.
As from \sty{glossaries} v4.50, \gls{glsadd} will
be identified as an exclusion (via \gls{glsmfuexcl}), but the
optional argument will cause a problem if present. See the
\sty{mfirstuc} v2.08+ manual for a workaround. Note that commands
such as \gls{glsaddall} and \gls{glsaddeach} aren't identified as
exclusions as they aren't expected to occur in text that may require
a case-change.
With glossary entry references, there are commands
that take a label as the argument, which shouldn't have any
case-changed applied, but also shouldn't be skipped. For example:
\begin{codebox}
\gls{makefirstuc}\marg{\gls{GLS}\marg{example} something}
\end{codebox}
In this situation, there shouldn't be any case-change as \gls{GLS}
already implements a case-change. This type of command is referred
to as a blocker in the \sty{mfirstuc} manual, as it indicates a
command that should prevent any case-change if it's encountered at
the start of the text. Blockers are identified with \gls{MFUblocker}.
If you have an older version of \sty{mfirstuc}, this won't be
defined, so \sty{glossaries} v4.50+ and \sty{glossaries-extra}
v1.49+ provide:
\cmddef{glsmfublocker}
This will use \gls{MFUblocker} with \sty{mfirstuc} v2.08+.
With older versions, it will simply use \gls{glsmfuexcl} which will
instead identify the command as an exclusion and won't be recognised
by \gls{makefirstuc}. See the \sty{mfirstuc} v2.08+ manual for
further information about blockers.
As from \sty{glossaries} v4.50+, commands like \gls{GLS} will be
identified as blockers using \gls{glsmfublocker}, and
\sty{glossaries-extra} now identifies similar commands, such as
\gls{rGLS} as blockers.
Finally, there are mappings. These are commands that should be
substituted with another command, which is expected to perform the
case-change. For example:
\begin{codebox}
\gls{makefirstuc}\marg{\gls{gls}\marg{example} something}
\end{codebox}
This shouldn't skip or block \gls{gls} but instead should convert
the text to:
\begin{codebox}
\gls{Gls}\marg{example} something
\end{codebox}
This is implemented by adding a mapping from \gls{gls} to \gls{Gls}.
Mappings are added using \gls{MFUaddmap}.
If you have an older version of \sty{mfirstuc}, this won't be
defined, so \sty{glossaries} v4.50+ and \sty{glossaries-extra}
v1.49+ provide:
\cmddef{glsmfuaddmap}
This will use \gls{MFUaddmap} with \sty{mfirstuc} v2.08+.
With older versions, it will simply use \gls{glsmfuexcl} which will
instead identify the command as an exclusion and won't be recognised
by \gls{makefirstuc}. See the \sty{mfirstuc} v2.08+ manual for
further information about mappings.
As from \sty{glossaries} v4.50+, commands like \gls{gls} will be
mapped to the appropriate \idx{sentencecase} command using
\gls{glsmfuaddmap}, and \sty{glossaries-extra} now identifies
similar mappings, such as \gls{rgls} mapped to \gls{rGls}.
In order to integrate the full set of features provided by
\sty{mfirstuc} v2.08+, you will need both \sty{glossaries} v4.50+
and \sty{glossaries-extra} v1.49+.
\subsection{Lower Case}
\label{sec:lowercase}
\cmddef{glslowercase}
This is defined by \sty{glossaries} v4.50+ to use the \LaTeX3 command
to convert to \idx+{lowercase}. If an older version of
\sty{glossaries} is present, then this command will be provided by
\sty{glossaries-extra} but it will be defined to use
\gls{MakeTextLowercase} instead. This command is primarily provided for use
with \idx{smallcaps} styles to convert an abbreviation to
\idx{lowercase}, but isn't actually used anywhere by default.
\subsection{Upper Case}
\label{sec:uppercase}
\cmddef{glsuppercase}
This is defined by \sty{glossaries} v4.50+ to use the \LaTeX3 command
to convert to \idx+{uppercase} (\idx+{allcaps}). If an older version of
\sty{glossaries} is present, then this command will be provided by
\sty{glossaries-extra} but it will be defined to just use
\gls{mfirstucMakeUppercase}, which is provided by \sty{mfirstuc}.
This command is used by \idx{allcaps} commands such as
\gls{GLSxtrusefield}.
\subsection{Title Case}
\label{sec:titlecase}
\cmddef{glscapitalisewords}
This is defined by \sty{glossaries} v4.48 to use \gls{capitalisewords}
to convert to \idx+{titlecase}. If you experience any errors with
\idx{titlecase} commands, such as \gls{glsentrytitlecase}, or
attributes such as \catattr{glossdesc} then try redefining
this command to use \code{\gls{capitalisefmtwords}*} instead. See the
\sty{mfirstuc} manual for further details.
\section{Entries in Sectioning Titles, Headers, Captions and Contents}
\label{sec:headtitle}
The \sty{glossaries} user manual cautions against using commands
like \gls{gls} in chapter or section titles. The principle problems
are:
\begin{itemize}
\item if you have a table of contents, the \idx{firstuseflag}
will be unset in the contents rather than later in the document;
\item if you have the \idxpl{locationlist} displayed in the
\idx{glossary}, unwanted \locations\ will be added to it
corresponding to the table of contents (if present) and every page
that contains the entry in the page header (if the page style in use
adds the chapter or section title to the header);
\item if the page style in use adds the chapter or section title to
the header and attempts to convert it to \idx{uppercase}, the entry label
(in the argument of \gls{gls} etc) will be converted to \idx{uppercase}
and the entry won't be recognised;
\item if you use \sty{hyperref}, commands like \gls{gls} can't be
expanded to a simple string and only the label will appear in the
PDF bookmark (with a warning from \sty{hyperref});
\item if you use \sty{hyperref}, you will end up with nested hyperlinks
in the table of contents.
\end{itemize}
Similar problems can also occur with captions (except for the page
header and bookmark issues).
The \sty{glossaries-extra} package tries to resolve the header
problem by modifying \gls{markright}, \gls{markboth} and \gls{@starttoc}.
If this causes unwanted side-effects, you can restore their former
definitions using:
\cmddef{glsxtrRevertMarks}
This will revert \gls{markright}, \gls{markboth} and \gls{@starttoc}
back to the definitions in effect when \sty{glossaries-extra} was
loaded. Alternatively, you can use:
\cmddef{glsxtrRevertTocMarks}
This will only revert \gls{@starttoc}.
If you use \gls{glsxtrRevertMarks} or \gls{glsxtrRevertTocMarks},
you will need to employ the simplistic approach, described in
\sectionref{sec:simplisticapproach}, which is the method recommended
by the \sty{glossaries} user manual. Otherwise, you can use the
commands described in \sectionref{sec:headingcommands}, which
provide a better solution.
\subsection{Simplistic Approach}
\label{sec:simplisticapproach}
To get around all these problems, the \sty{glossaries} user manual
recommends using the expandable non-hyperlink commands, such as
\gls{glsentrytext} (for regular entries) or \gls{glsentryshort}
(for abbreviations). This is the simplest solution, but doesn't
allow for special formatting that's applied to the entry through
commands like \gls{glstext} or \gls{glsxtrshort}.
For example:
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}\marg{glossaries-extra}
\codepar
\gls{glsdefpostlink}\marg{general}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}
\codepar
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},
\gloskeyval{description}{an example}}
\gls{newglossaryentry}\marg{alpha}\marg{\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{alpha}}},\gloskeyval{description}{alpha}}
\codepar
\cbeg{document}
\gls{tableofcontents}
\cmd{section}\marg{\gls{texorpdfstring}\marg{\gls{Glsentrytext}\marg{sample}
and \gls{glsentrytext}\marg{alpha}}\marg{Sample and alpha}}
\codepar
First use: \gls{gls}\marg{sample} and \gls{gls}\marg{alpha}.
\codepar
Next use: \gls{gls}\marg{sample} and \gls{gls}\marg{alpha}.
\codepar
\gls{printunsrtglossary}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[arara={pdflatex,pdflatex,pdfcrop},
label={ex:simpleseccmds},
title={References in section headings (simplistic approach)},
description={Example document that uses a simplistic approach to
referencing entries in section titles}]
{\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\codepar
\gls{glsdefpostlink}\marg{general}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}^^J%
\codepar
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}^^J%
\gls{newglossaryentry}\marg{alpha}\marg{\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{alpha}}},\gloskeyval{description}{alpha}}
}
{%
\gls{tableofcontents}^^J%
\cmd{section}\marg{\gls{texorpdfstring}\marg{\gls{Glsentrytext}\marg{sample}
and \gls{glsentrytext}\marg{alpha}}\marg{Sample and alpha}}^^J%
\codepar
First use: \gls{gls}\marg{sample} and \gls{gls}\marg{alpha}.^^J%
\codepar
Next use: \gls{gls}\marg{sample} and \gls{gls}\marg{alpha}.^^J%
\codepar
\gls{printunsrtglossary}
}
\end{resultbox}
This solves some problems: it avoids nested links in the table of
contents, the \idx{firstuseflag} isn't prematurely unset and the PDF
bookmarks has a reasonable substitution, but it still isn't a
complete solution as the above document will fail if the page style
is changed to \code{headings} and a page break is inserted before
the section (after \gls{tableofcontents}), which will lead to the error:
\begin{transcript}
Glossary entry `SAMPLE' has not been defined.
\end{transcript}
This is because the case-change applied to the header converts
the label \qt{sample} to \qt{SAMPLE}, which doesn't correspond to a
defined entry. (This can now be avoided with \sty{mfirstuc} v2.08+.)
If the case conversion is applied by, then the case-change can
be prevented by encapsulating the label with \gls{NoCaseChange}, but
this ends up quite complicated. This is actually what the commands
describe in \sectionref{sec:headingcommands} do when they are in a
heading. This allows for older versions of \sty{mfirstuc} that don't
recognise exclusions. See \sectionref{sec:casechange} for further
details.
\begin{information}
The \gls{NoCaseChange} command was originally provided by the
\sty{textcase} package to prevent \gls{MakeTextUppercase} from
applying a case-change. The functionality of the \sty{textcase}
package has now been absorbed into the \LaTeX\ kernel, which means
that as from 2022, \sty{textcase} is deprecated and
\gls{NoCaseChange} is defined by the kernel.
\end{information}
\subsection{New Commands Designed for Chapter/Section Headings or Captions}
\label{sec:headingcommands}
This section is irrelevant if you use \gls{glsxtrRevertMarks} to
restore the definitions of \gls{markright},
\gls{markboth} and \gls{@starttoc}. If you use
\gls{glsxtrRevertTocMarks}, then this section is only applicable to
\gls{markright} and \gls{markboth}.
The commands listed here are provided for use within captions or
section headings. They are designed to overcome some of the problems
illustrated in the previous section. Note that they
only have a single argument, the entry label. There are no optional
arguments. Below, \qt{header} refers to page header text added with
\gls{markright} or \gls{markboth}, and \qt{contents} refers to the
table of contents or any other \qt{list of} that uses
\gls{@starttoc}, such as the list of figures.
Each command \csfmt{glsfmt\meta{field}} (such as \gls{glsfmttext} or
\gls{glsfmtshort}) behaves like an analogous
\csfmt{gls\meta{field}} or \csfmt{glsxtr\meta{field}} command (such
as \gls{glstext} or \gls{glsxtrshort}) but with the options
\glsopt{noindex} and \glsoptval{hyper}{false} and no insert.
When they occur within a header, they are protected from having any
case-change applied (which will interfere with the entry label).
Since this means they won't appear in \idx{allcaps} in the header,
the \catattr{headuc} attribute may be set to use the
\idx{allcaps} \csfmt{GLS\meta{field}} or \csfmt{GLSxtr\meta{field}} instead (such
as \gls{GLStext} or \gls{GLSxtrshort}).
There is currently only support for the \gloskey{name},
\gloskey{text}, \gloskey{plural}, \gloskey{first},
\gloskey{firstplural}, \gloskey{short}, \gloskey{shortplural},
\gloskey{long}, and \gloskey{longplural} fields, and also limited
support for the full form of abbreviations. For other fields, you
will need to follow the recommendation of the \sty{glossaries}
manual (as discussed above in \sectionref{sec:simplisticapproach}).
The previous example can be rewritten as follows:
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}\marg{glossaries-extra}
\codepar
\gls{glsdefpostlink}\marg{general}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}
\codepar
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}
\gls{newglossaryentry}\marg{alpha}\marg{\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{alpha}}},
\gloskeyval{description}{alpha}}
\codepar
\cbeg{document}
\gls{tableofcontents}
\cmd{section}\marg{\gls{Glsfmttext}\marg{sample} and \gls{glsfmttext}\marg{alpha}}
\codepar
First use: \gls{gls}\marg{sample} and \gls{gls}\marg{alpha}.
\codepar
Next use: \gls{gls}\marg{sample} and \gls{gls}\marg{alpha}.
\codepar
\gls{printunsrtglossary}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[arara={pdflatex,pdflatex,pdfcrop},
label={ex:glsfmttext},
title={References in section headings using \cmd{glsfmttext}},
description={Example document that references entries in section titles}]
{\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\codepar
\gls{glsdefpostlink}\marg{general}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}^^J%
\codepar
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}^^J%
\gls{newglossaryentry}\marg{alpha}\marg{\gloskeyval{name}{\cmd{ensuremath}{\cmd{alpha}}},\gloskeyval{description}{alpha}}
}
{%
\gls{tableofcontents}
\cmd{section}\marg{\gls{Glsfmttext}\marg{sample} and \gls{glsfmttext}\marg{alpha}}
\codepar
First use: \gls{gls}\marg{sample} and \gls{gls}\marg{alpha}.
\codepar
Next use: \gls{gls}\marg{sample} and \gls{gls}\marg{alpha}.
\codepar
\gls{printunsrtglossary}
}
\end{resultbox}
Note that this still results in \qt{Token not allowed in a PDF
string} warnings from \sty{hyperref}. This is due to the maths shift and
\csfmt{alpha}, and is something that would also occur if the section
title explicitly contained \code{\$\cmd{alpha}\$}. If this is likely
to happen, the issue can be solved by placing
\gls{texorpdfstring} within the field value. For example:
\begin{codebox}
\gls{glsnoexpandfields}
\gls{newglossaryentry}\marg{alpha}\marg{\gloskeyval{description}{alpha},
\gloskeyval{name}{\gls{texorpdfstring}\marg{\cmd{ensuremath}\marg{\cmd{alpha}}}\marg{alpha}}}
\end{codebox}
Note the need to prevent field expansion with \gls{glsnoexpandfields}, otherwise
\gls{texorpdfstring} will be prematurely expanded while the entry is being
defined.
The options \glsopt{noindex} and \glsoptval{hyper}{false} are
hard-coded when the commands listed below, such as
\gls{glsfmtshort}, occur in the header or contents, but within the
actual section title or caption in the document text, those options
are obtained from:
\cmddef{glsxtrtitleopts}
This simply expands to the option list. For example, you may
actually want a hyperlink and \idx{indexing} to occur in the
document body, in which case redefine \gls{glsxtrtitleopts} to do
nothing:
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}\marg{glossaries-extra}
\codepar
\gls+{pagestyle}\marg{headings}
\gls{glssetcategoryattribute}\marg{general}\marg{headuc}\marg{true}
\gls{glsdefpostlink}\marg{general}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}
\codepar
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}
\cmd{renewcommand}\marg{\gls{glsxtrtitleopts}}\marg{}
\codepar
\cbeg{document}
\cmd{section}\marg{\gls{Glsfmttext}\marg{sample}}
First use: \gls{gls}\marg{sample}.
Next use: \gls{gls}\marg{sample}.
\gls{printunsrtglossary}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[arara={pdflatex,pdfcrop},
label={ex:glslinkinsechead},
title={Reference with hyperlink in section headings},
description={Example document that references an entry with a hyperlink in a section title}]
{\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\codepar
\cmd{pagestyle}\marg{headings}^^J%
\gls{glssetcategoryattribute}\marg{general}\marg{headuc}\marg{true}^^J%
\gls{glsdefpostlink}\marg{general}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}^^J%
\codepar
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}^^J%
\cmd{renewcommand}\marg{\gls{glsxtrtitleopts}}\marg{}
}
{%
\cmd{section}\marg{\gls{Glsfmttext}\marg{sample}}^^J%
First use: \gls{gls}\marg{sample}.
Next use: \gls{gls}\marg{sample}.
\codepar
\gls{printunsrtglossary}
}
\end{resultbox}
% short
\cmddef{glsfmtshort}
This normally behaves like \gls{glsxtrshort} but expands to just
\gls{glsentryshort} in PDF bookmarks and is adjusted when appearing
in the header or contents.
\cmddef{Glsfmtshort}
This normally behaves like \gls{Glsxtrshort} but expands to:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glsentryshort}\margm{entry-label}}
\end{compactcodebox}
in PDF bookmarks and is adjusted when appearing in the header or contents.
\cmddef{GLSfmtshort}
This normally behaves like \gls{GLSxtrshort} but expands to just
\gls{glsentryshort} in PDF bookmarks and is adjusted when appearing
in the header or contents.
% prefix short
\cmddef{pglsfmtshort}
As \gls{glsfmtshort} but inserts the \gloskey{prefix} field
and separator, if the \gloskey{prefix} value is set and non-empty.
Provided for use with \sty{glossaries-prefix}.
\cmddef{Pglsfmtshort}
As \gls{pglsfmtshort} but \idx{sentencecase}. Note the initial
\qt{P} in the command name, which matches \gls{Pgls} (similarly for
the other prefix \idx{sentencecase} commands).
\cmddef{PGLSfmtshort}
As \gls{pglsfmtshort} but \idx{allcaps}.
% short plural
\cmddef{glsfmtshortpl}
This normally behaves like \gls{glsxtrshortpl} but expands to just
\gls{glsentryshortpl} in PDF bookmarks and is adjusted when appearing
in the header or contents.
\cmddef{Glsfmtshortpl}
This normally behaves like \gls{Glsxtrshortpl} but expands to:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glsentryshortpl}\margm{entry-label}}
\end{compactcodebox}
in PDF bookmarks and is adjusted when appearing in the header or contents.
\cmddef{GLSfmtshortpl}
This normally behaves like \gls{GLSxtrshortpl} but expands to just
\gls{glsentryshortpl} in PDF bookmarks and is adjusted when appearing
in the header or contents.
% prefix short plural
\cmddef{pglsfmtshortpl}
As \gls{glsfmtshortpl} but inserts the \gloskey{prefixplural} field
and separator, if the \gloskey{prefixplural} value is set and non-empty.
Provided for use with \sty{glossaries-prefix}.
\cmddef{Pglsfmtshortpl}
As \gls{pglsfmtshortpl} but \idx{sentencecase}.
\cmddef{PGLSfmtshortpl}
As \gls{pglsfmtshortpl} but \idx{allcaps}.
% long
\cmddef{glsfmtlong}
This normally behaves like \gls{glsxtrlong} but expands to just
\gls{glsentrylong} in PDF bookmarks and is adjusted when appearing
in the header or contents.
\cmddef{Glsfmtlong}
This normally behaves like \gls{Glsxtrlong} but expands to:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glsentrylong}\margm{entry-label}}
\end{compactcodebox}
in PDF bookmarks and is adjusted when appearing in the header or contents.
\cmddef{GLSfmtlong}
This normally behaves like \gls{GLSxtrlong} but expands to just
\gls{glsentrylong} in PDF bookmarks and is adjusted when appearing
in the header or contents.
% prefix long
\cmddef{pglsfmtlong}
As \gls{glsfmtlong} but inserts the \gloskey{prefixfirst} field
and separator, if the \gloskey{prefixfirst} value is set and non-empty.
Provided for use with \sty{glossaries-prefix}.
\cmddef{Pglsfmtlong}
As \gls{pglsfmtlong} but \idx{sentencecase}.
\cmddef{PGLSfmtlong}
As \gls{pglsfmtlong} but \idx{allcaps}.
% long plural
\cmddef{glsfmtlongpl}
This normally behaves like \gls{glsxtrlongpl} but expands to just
\gls{glsentrylongpl} in PDF bookmarks and is adjusted when appearing
in the header or contents.
\cmddef{Glsfmtlongpl}
This normally behaves like \gls{Glsxtrlongpl} but expands to:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glsentrylongpl}\margm{entry-label}}
\end{compactcodebox}
in PDF bookmarks and is adjusted when appearing in the header or contents.
\cmddef{GLSfmtlongpl}
This normally behaves like \gls{GLSxtrlongpl} but expands to just
\gls{glsentrylongpl} in PDF bookmarks and is adjusted when appearing
in the header or contents.
% prefix long plural
\cmddef{pglsfmtlongpl}
As \gls{glsfmtlongpl} but inserts the \gloskey{prefixfirstplural} field
and separator, if the \gloskey{prefixfirstplural} value is set and non-empty.
Provided for use with \sty{glossaries-prefix}.
\cmddef{Pglsfmtlongpl}
As \gls{pglsfmtlongpl} but \idx{sentencecase}.
\cmddef{PGLSfmtlongpl}
As \gls{pglsfmtlongpl} but \idx{allcaps}.
% full
The full form is slightly different as it doesn't correspond to an
individual \idx{field} but instead is formed from a combination of the
short and long \idxpl{field} (the order depending on the abbreviation style).
Since it's too complicated to simply expand to the appropriate
style, a simple expandable command is provided for the PDF
bookmarks:
\cmddef{glspdffmtfull}
This just expands to the long form followed by the short form in
parentheses:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{glspdffmtfull}}[1]\marg{\gls{glsentrylong}\marg{\#1}
(\gls{glsentryshort}\marg{\#1})}
\end{compactcodebox}
You will need to redefine this if you require the short form first.
There is an analogous command for the plural:
\cmddef{glspdffmtfullpl}
This has a similar definition to \gls{glspdffmtfull} but uses
\gls{glsentrylongpl} and \gls{glsentryshortpl}.
\cmddef{glsfmtfull}
This normally behaves like \gls{glsxtrfull} but expands to just
\gls{glspdffmtfull} in PDF bookmarks and is adjusted when appearing
in the header or contents.
\cmddef{Glsfmtfull}
This normally behaves like \gls{Glsxtrfull} but expands to:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glspdffmtfull}\margm{entry-label}}
\end{compactcodebox}
in PDF bookmarks and is adjusted when appearing in the header or contents.
\cmddef{GLSfmtfull}
This normally behaves like \gls{GLSxtrfull} but expands to just
\gls{glspdffmtfull} in PDF bookmarks and is adjusted when appearing
in the header or contents.
% full plural
\cmddef{glsfmtfullpl}
This normally behaves like \gls{glsxtrfullpl} but expands to just
\gls{glspdffmtfullpl} in PDF bookmarks and is adjusted when appearing
in the header or contents.
\cmddef{Glsfmtfullpl}
This normally behaves like \gls{Glsxtrfullpl} but expands to:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glspdffmtfullpl}\margm{entry-label}}
\end{compactcodebox}
in PDF bookmarks and is adjusted when appearing in the header or contents.
\cmddef{GLSfmtfullpl}
This normally behaves like \gls{GLSxtrfull} but expands to just
\gls{glspdffmtfull} in PDF bookmarks and is adjusted when appearing
in the header or contents.
% name
\cmddef{glsfmtname}
This normally behaves like \gls{glsname} but expands to just
\gls{glsentryname} in PDF bookmarks and is adjusted when appearing
in the header or contents.
\cmddef{Glsfmtname}
This normally behaves like \gls{Glsname} but expands to:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glsentryname}\margm{entry-label}}
\end{compactcodebox}
in PDF bookmarks and is adjusted when appearing
in the header or contents.
\cmddef{GLSfmtname}
This normally behaves like \gls{GLSname} but expands to just
\gls{glsentryname} in PDF bookmarks and is adjusted when appearing
in the header or contents.
% text
\cmddef{glsfmttext}
This normally behaves like \gls{glstext} but expands to just
\gls{glsentrytext} in PDF bookmarks and is adjusted when appearing
in the header or contents.
\cmddef{Glsfmttext}
This normally behaves like \gls{Glstext} but expands to:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glsentrytext}\margm{entry-label}}
\end{compactcodebox}
in PDF bookmarks and is adjusted when appearing
in the header or contents.
\cmddef{GLSfmttext}
This normally behaves like \gls{GLStext} but expands to just
\gls{glsentrytext} in PDF bookmarks and is adjusted when appearing
in the header or contents.
% plural
\cmddef{glsfmtplural}
This normally behaves like \gls{glsplural} but expands to just
\gls{glsentryplural} in PDF bookmarks and is adjusted when appearing
in the header or contents.
\cmddef{Glsfmtplural}
This normally behaves like \gls{Glsplural} but expands to:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glsentryplural}\margm{entry-label}}
\end{compactcodebox}
in PDF bookmarks and is adjusted when appearing
in the header or contents.
\cmddef{GLSfmtplural}
This normally behaves like \gls{GLSplural} but expands to just
\gls{glsentryplural} in PDF bookmarks and is adjusted when appearing
in the header or contents.
% first
\cmddef{glsfmtfirst}
This normally behaves like \gls{glsfirst} but expands to just
\gls{glsentryfirst} in PDF bookmarks and is adjusted when appearing
in the header or contents.
\cmddef{Glsfmtfirst}
This normally behaves like \gls{Glsfirst} but expands to:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glsentryfirst}\margm{entry-label}}
\end{compactcodebox}
in PDF bookmarks and is adjusted when appearing in the header or contents.
\cmddef{GLSfmtfirst}
This normally behaves like \gls{GLSfirst} but expands to just
\gls{glsentryfirst} in PDF bookmarks and is adjusted when appearing
in the header or contents.
% first plural
\cmddef{glsfmtfirstpl}
This normally behaves like \gls{glsfirstplural} but expands to just
\gls{glsentryfirstplural} in PDF bookmarks and is adjusted when appearing
in the header or contents.
\cmddef{Glsfmtfirstpl}
This normally behaves like \gls{Glsfirstplural} but expands to:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glsentryfirstplural}\margm{entry-label}}
\end{compactcodebox}
in PDF bookmarks and is adjusted when appearing in the header or contents.
\cmddef{GLSfmtfirstpl}
This normally behaves like \gls{GLSfirstplural} but expands to just
\gls{glsentryfirstplural} in PDF bookmarks and is adjusted when appearing
in the header or contents.
\subsection{Advanced Commands}
\label{sec:headingsadvanced}
\begin{information}
This section is intended for advanced users and package developers.
\end{information}
The commands described here are irrelevant if you use \gls{glsxtrRevertMarks} to
restore the definitions of \gls{markright},
\gls{markboth} and \gls{@starttoc}. If you use
\gls{glsxtrRevertTocMarks}, then this section is only applicable to
\gls{markright} and \gls{markboth}.
If you need to know whether or not some code is inside a header or
contents list, you can use:
\cmddef{glsxtrifinmark}
This does \meta{true} if the command occurs within \gls{markright},
\gls{markboth} or \gls{@starttoc} otherwise does \meta{false}.
If you need to know whether or not some code is inside a contents
list (but not the header), you can use:
\cmddef{glsxtrifintoc}
This does \meta{true} if the command occurs within \gls{@starttoc}
otherwise it does \meta{false}.
(The modified definition of \gls{@starttoc} sets \gls{glsxtrifintoc}
to \gls{@firstoftwo} at the start and to \gls{@secondoftwo} at
the end.)
If you need to know whether or not some code is in the PDF bookmarks
or heading, you can use:
\cmddef{glsxtrtitleorpdforheading}
This does the applicable argument depending on whether the
command occurs within a title\slash caption or PDF bookmark or
heading.
If this command occurs within the \ext+{toc} file, it will
do its \meta{heading} argument but if \gls{glsxtrtitleorpdforheading}
expands while it's being written to the \ext{toc} file, then it will
expand to \meta{title}. This can be illustrated in the following
document:
\begin{codebox}
\cmd{documentclass}\marg{report}
\cmd{usepackage}\marg{lipsum}
\cmd{usepackage}\marg{hyperref}
\cmd{usepackage}\marg{glossaries-extra}
\cmd{pagestyle}\marg{headings}
\cbeg{document}
\gls+{tableofcontents}
\cmd{chapter}\marg{\gls{glsxtrtitleorpdforheading}\marg{Title}\marg{PDF}\marg{Heading}
\gls{glsxtrifinmark}\marg{in mark}\marg{not in mark}}
\cmd{lipsum}
\cmd{chapter}\marg{\cmd{protect}\gls{glsxtrtitleorpdforheading}\marg{Title}\marg{PDF}\marg{Heading}
\cmd{protect}\gls{glsxtrifinmark}\marg{in mark}\marg{not in mark}}
\cmd{lipsum}
\cend{document}
\end{codebox}
In the first case, \gls{glsxtrtitleorpdforheading} expands as it's
being written to the \ext{toc} file, so it expands to \qt{Title}.
In the second case, \gls{glsxtrtitleorpdforheading} is protected so
that command is written to the \ext{toc} file. On the next \LaTeX,
when the table of contents is displayed, this command will expand to
\qt{Heading}, because it's in the \ext{toc} file. Similarly, in the
first case, \gls{glsxtrifinmark} will expand to \qt{not in mark} as
it's written to the \ext{toc} file, but in the second case it's
expansion is prevented, so it will expand to \qt{in mark} in the table of
contents.
If \sty{gettitlestring} has been loaded (used by \sty{nameref} to
provide \gls{nameref}) then adjustments for both \gls{glsxtrtitleorpdforheading}
and \gls{glsxtrifinmark} will be added to \gls{GetTitleStringDisableCommands},
but bear in mind that you will need to use the following for it to
have an effect:
\begin{codebox*}
\gls{GetTitleStringSetup}\marg{expand}
\end{codebox*}
The commands described in \sectionref{sec:headingcommands}, such as
\gls{glsfmtshort}, are essentially defined as:
\begin{compactcodebox}
\gls{texorpdfstring}
\marg{\cmd{glsxtrtitle\meta{field}}\margm{entry-label}}\comment{title}
\marg{\cmd{glsentry\meta{field}}\margm{entry-label}}\comment{bookmark}
\end{compactcodebox}
If \gls{texorpdfstring} isn't defined, then the definition is:
\begin{compactcodebox}
\cmd{glsxtrtitle\meta{field}}\margm{entry-label}
\end{compactcodebox}
For example, \gls{glsfmtshort} is defined as (with \sty{hyperref}):
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{glsfmtshort}}[1]\marg{\%
\gls{texorpdfstring}\marg{\gls{glsxtrtitleshort}\marg{\#1}}\marg{\gls{glsentryshort}\marg{\#1}}\%
}
\end{compactcodebox}
This ensures that \gls{glsfmtshort} expands to just
\gls{glsentryshort} within the PDF bookmarks. Provided the field
value doesn't contain any problematic commands, this allows the
actual value to be added to the bookmarks.
Unfortunately the case-changing commands can't expand and therefore aren't
appropriate for the bookmarks (which need to be a PDF string).
This means that the \idx{sentencecase} and \idx{allcaps} commands
also use the unmodified field value for the bookmark. For example,
\gls{Glsfmtshort} is defined as:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{Glsfmtshort}}[1]\marg{\%
\gls{texorpdfstring}\marg{\gls{Glsxtrtitleshort}\marg{\#1}}\marg{\gls{glsentryshort}\marg{\#1}}\%
}
\end{compactcodebox}
The \csfmt{glsxtrtitle\meta{field}} set of commands all default to
the corresponding \idx{glstextlike} command with the options given
by \gls{glsxtrtitleopts} and an empty insert final argument. These
title commands are redefined by \gls{glsxtrmarkhook} to the
corresponding \csfmt{glsxtrhead\meta{field}} command. These
\qt{head} commands use \gls{NoCaseChange} to prevent interference
from page headers that convert to \idx{allcaps} (which can
inappropriately convert the entry label to \idx{allcaps}). Instead,
the \catattr{headuc} attribute needs to be set to \code{true} to use
the appropriate \idx{allcaps} command. A shortcut command is
provided to test for this attribute:
\cmddef{glsxtrifheaduc}
This is defined as:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{glsxtrifheaduc}}[3]\marg{\%
\gls{glsxtrifintoc}\marg{\#3}\marg{\gls{glsifattribute}\marg{\#1}\marg{\catattr{headuc}}\marg{true}\marg{\#2}\marg{\#3}}\%
}
\end{compactcodebox}
Since the header commands also end up in the contents, where the
\idx{allcaps} conversion should not be applied, the definition
includes \gls{glsxtrifintoc} to skip the check in the contents.
\cmddef{glsxtrtitleshort}
The normal behaviour of \gls{glsfmtshort}.
This is redefined by \gls{glsxtrmarkhook} to \gls{glsxtrheadshort}.
The default is:
\begin{compactcodebox}
\gls{glsxtrshort}\oarg{\glsopt{noindex},\glsoptval{hyper}{false}}\margm{entry-label}\oarg{}
\end{compactcodebox}
(This is performed indirectly via an internal command that ensures
that \gls{glsxtrtitleopts} is expanded before being passed in the optional
argument.)
\cmddef{glsxtrheadshort}
Used to display the short form in the page header. This is defined
as:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{glsxtrheadshort}}[1]\marg{\%
\cmd{protect}\gls{NoCaseChange}
\marg{\%
\gls{glsifattribute}\marg{\#1}\marg{\catattr{headuc}}\marg{true}\%
\marg{\%
\gls{GLSxtrshort}\oarg{\glsopt{noindex},\glsoptval{hyper}{false}}\marg{\#1}\oarg{}\%
}\%
\marg{\%
\gls{glsxtrshort}\oarg{\glsopt{noindex},\glsoptval{hyper}{false}}\marg{\#1}\oarg{}\%
}\%
}\%
}
\end{compactcodebox}
The \idx{sentencecase} commands also check the \catattr{headuc}
attribute.
\cmddef{Glsxtrtitleshort}
The normal behaviour of \gls{Glsfmtshort}.
This is redefined by \gls{glsxtrmarkhook} to \gls{Glsxtrheadshort}.
The default is:
\begin{compactcodebox}
\gls{Glsxtrshort}\oarg{\glsopt{noindex},\glsoptval{hyper}{false}}\margm{entry-label}\oarg{}
\end{compactcodebox}
(Again, this is performed indirectly via an internal command that ensures
that \gls{glsxtrtitleopts} is expanded before being passed in the optional
argument.)
\cmddef{Glsxtrheadshort}
Used to display the \idx{sentencecase} short form in the page header. This is defined
as:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{Glsxtrheadshort}}[1]\marg{\%
\cmd{protect}\gls{NoCaseChange}
\marg{\%
\gls{glsifattribute}\marg{\#1}\marg{\catattr{headuc}}\marg{true}\%
\marg{\%
\gls{GLSxtrshort}\oarg{\glsopt{noindex},\glsoptval{hyper}{false}}\marg{\#1}\oarg{}\%
}\%
\marg{\%
\gls{Glsxtrshort}\oarg{\glsopt{noindex},\glsoptval{hyper}{false}}\marg{\#1}\oarg{}\%
}\%
}\%
}
\end{compactcodebox}
\cmddef{GLSxtrtitleshort}
The normal behaviour of \gls{GLSfmtshort}.
This is redefined by \gls{glsxtrmarkhook} to \gls{GLSxtrheadshort}.
The default uses \gls{GLSxtrshort} in a similar way to
\gls{glsxtrtitleshort} and \gls{Glsxtrtitleshort}.
\cmddef{GLSxtrheadshort}
Used to display the \idx{allcaps} short form in the page header. In
this case, there's no need to check to the \catattr{headuc}
attribute, but the label needs to be protected from any potential
case-change:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{GLSxtrheadshort}}[1]\marg{\%
\cmd{protect}\gls{NoCaseChange}
\marg{\%
\gls{GLSxtrshort}\oarg{\glsopt{noindex},\glsoptval{hyper}{false}}\marg{\#1}\oarg{}\%
}\%
}
\end{compactcodebox}
All the similar commands listed below are defined in an analogous
way, except for the \sty{glossaries-prefix} commands, where only the
\idx{sentencecase} title version is provided. This is because
commands like \gls{Pglsfmtshort} have to determine whether or not to
use \gls{glsfmtshort} or \gls{Glsfmtshort} depending on whether or
not the prefix has been set. Whereas commands like
\gls{pglsfmtshort} simply need to insert the prefix and separator if
set and then use the corresponding \gls{glsfmtshort}.
\cmddef{Pglsxtrtitleshort}
The normal behaviour of \gls{Pglsfmtshort}.
\cmddef{Pglsxtrtitleshortpl}
The normal behaviour of \gls{Pglsfmtshortpl}.
\cmddef{Pglsxtrtitlelong}
The normal behaviour of \gls{Pglsfmtlong}.
\cmddef{Pglsxtrtitlelongpl}
The normal behaviour of \gls{Pglsfmtlongpl}.
% short plural
\cmddef{glsxtrtitleshortpl}
The title plural short form. (Normal behaviour of \gls{glsfmtshortpl}.)
\cmddef{glsxtrheadshortpl}
The header plural short form. (The behaviour of \gls{glsfmtshortpl}
when it occurs in a header.)
\cmddef{Glsxtrtitleshortpl}
The title plural \idx{sentencecase} short form. (Normal behaviour of
\gls{Glsfmtshortpl}.)
\cmddef{Glsxtrheadshortpl}
The header plural \idx{sentencecase} short form. (The behaviour of \gls{Glsfmtshortpl}
when it occurs in a header.)
\cmddef{GLSxtrtitleshortpl}
The title plural \idx{allcaps} short form. (Normal behaviour of
\gls{GLSfmtshortpl}.)
\cmddef{GLSxtrheadshortpl}
The header plural \idx{allcaps} short form. (The behaviour of \gls{GLSfmtshortpl}
when it occurs in a header.)
% long
\cmddef{glsxtrtitlelong}
The title long form. (Normal behaviour of \gls{glsfmtlong}.)
\cmddef{glsxtrheadlong}
The header long form. (The behaviour of \gls{glsfmtlong}
when it occurs in a header.)
\cmddef{Glsxtrtitlelong}
The title \idx{sentencecase} long form. (Normal behaviour of
\gls{Glsfmtlong}.)
\cmddef{Glsxtrheadlong}
The header \idx{sentencecase} long form. (The behaviour of \gls{Glsfmtlong}
when it occurs in a header.)
\cmddef{GLSxtrtitlelong}
The title \idx{allcaps} long form. (Normal behaviour of
\gls{GLSfmtlong}.)
\cmddef{GLSxtrheadlong}
The header \idx{allcaps} long form. (The behaviour of \gls{GLSfmtlong}
when it occurs in a header.)
% long plural
\cmddef{glsxtrtitlelongpl}
The title plural long form. (Normal behaviour of \gls{glsfmtlongpl}.)
\cmddef{glsxtrheadlongpl}
The header plural long form. (The behaviour of \gls{glsfmtlongpl}
when it occurs in a header.)
\cmddef{Glsxtrtitlelongpl}
The title plural \idx{sentencecase} long form. (Normal behaviour of
\gls{Glsfmtlongpl}.)
\cmddef{Glsxtrheadlongpl}
The header plural \idx{sentencecase} long form. (The behaviour of \gls{Glsfmtlongpl}
when it occurs in a header.)
\cmddef{GLSxtrtitlelongpl}
The title plural \idx{allcaps} long form. (Normal behaviour of
\gls{GLSfmtlongpl}.)
\cmddef{GLSxtrheadlongpl}
The header plural \idx{allcaps} long form. (The behaviour of \gls{GLSfmtlongpl}
when it occurs in a header.)
% full
\cmddef{glsxtrtitlefull}
The title full form. (Normal behaviour of \gls{glsfmtfull}.)
\cmddef{glsxtrheadfull}
The header full form. (The behaviour of \gls{glsfmtfull}
when it occurs in a header.)
\cmddef{Glsxtrtitlefull}
The title \idx{sentencecase} full form. (Normal behaviour of
\gls{Glsfmtfull}.)
\cmddef{Glsxtrheadfull}
The header \idx{sentencecase} full form. (The behaviour of \gls{Glsfmtfull}
when it occurs in a header.)
\cmddef{GLSxtrtitlefull}
The title \idx{allcaps} full form. (Normal behaviour of
\gls{GLSfmtfull}.)
\cmddef{GLSxtrheadfull}
The header \idx{allcaps} full form. (The behaviour of \gls{GLSfmtfull}
when it occurs in a header.)
% full plural
\cmddef{glsxtrtitlefullpl}
The title plural full form. (Normal behaviour of \gls{glsfmtfullpl}.)
\cmddef{glsxtrheadfullpl}
The header plural full form. (The behaviour of \gls{glsfmtfullpl}
when it occurs in a header.)
\cmddef{Glsxtrtitlefullpl}
The title plural \idx{sentencecase} full form. (Normal behaviour of
\gls{Glsfmtfullpl}.)
\cmddef{Glsxtrheadfullpl}
The header plural \idx{sentencecase} full form. (The behaviour of \gls{Glsfmtfullpl}
when it occurs in a header.)
\cmddef{GLSxtrtitlefullpl}
The title plural \idx{allcaps} full form. (Normal behaviour of
\gls{GLSfmtfullpl}.)
\cmddef{GLSxtrheadfullpl}
The header plural \idx{allcaps} full form. (The behaviour of \gls{GLSfmtfullpl}
when it occurs in a header.)
% name
\cmddef{glsxtrtitlename}
The title \gloskey{name} field. (Normal behaviour of \gls{glsfmtname}.)
\cmddef{glsxtrheadname}
The header \gloskey{name} field. (The behaviour of \gls{glsfmtname}
when it occurs in a header.)
\cmddef{Glsxtrtitlename}
The title \idx{sentencecase} \gloskey{name} field. (Normal behaviour of
\gls{Glsfmtname}.)
\cmddef{Glsxtrheadname}
The header \idx{sentencecase} \gloskey{name} field. (The behaviour of \gls{Glsfmtname}
when it occurs in a header.)
\cmddef{GLSxtrtitlename}
The title \idx{allcaps} \gloskey{name} field. (Normal behaviour of
\gls{GLSfmtname}.)
\cmddef{GLSxtrheadname}
The header \idx{allcaps} \gloskey{name} field. (The behaviour of \gls{GLSfmtname}
when it occurs in a header.)
% text
\cmddef{glsxtrtitletext}
The title \gloskey{text} field. (Normal behaviour of \gls{glsfmttext}.)
\cmddef{glsxtrheadtext}
The header \gloskey{text} field. (The behaviour of \gls{glsfmttext}
when it occurs in a header.)
\cmddef{Glsxtrtitletext}
The title \idx{sentencecase} \gloskey{text} field. (Normal behaviour of
\gls{Glsfmttext}.)
\cmddef{Glsxtrheadtext}
The header \idx{sentencecase} \gloskey{text} field. (The behaviour of \gls{Glsfmttext}
when it occurs in a header.)
\cmddef{GLSxtrtitletext}
The title \idx{allcaps} \gloskey{text} field. (Normal behaviour of
\gls{GLSfmttext}.)
\cmddef{GLSxtrheadtext}
The header \idx{allcaps} \gloskey{text} field. (The behaviour of \gls{GLSfmttext}
when it occurs in a header.)
% plural
\cmddef{glsxtrtitleplural}
The title \gloskey{plural} field. (Normal behaviour of \gls{glsfmtplural}.)
\cmddef{glsxtrheadplural}
The header \gloskey{plural} field. (The behaviour of \gls{glsfmtplural}
when it occurs in a header.)
\cmddef{Glsxtrtitleplural}
The title \idx{sentencecase} \gloskey{plural} field. (Normal behaviour of
\gls{Glsfmtplural}.)
\cmddef{Glsxtrheadplural}
The header \idx{sentencecase} \gloskey{plural} field. (The behaviour of \gls{Glsfmtplural}
when it occurs in a header.)
\cmddef{GLSxtrtitleplural}
The title \idx{allcaps} \gloskey{plural} field. (Normal behaviour of
\gls{GLSfmtplural}.)
\cmddef{GLSxtrheadplural}
The header \idx{allcaps} \gloskey{plural} field. (The behaviour of \gls{GLSfmtplural}
when it occurs in a header.)
% first
\cmddef{glsxtrtitlefirst}
The title \gloskey{first} field. (Normal behaviour of \gls{glsfmtfirst}.)
\cmddef{glsxtrheadfirst}
The header \gloskey{first} field. (The behaviour of \gls{glsfmtfirst}
when it occurs in a header.)
\cmddef{Glsxtrtitlefirst}
The title \idx{sentencecase} \gloskey{first} field. (Normal behaviour of
\gls{Glsfmtfirst}.)
\cmddef{Glsxtrheadfirst}
The header \idx{sentencecase} \gloskey{first} field. (The behaviour of \gls{Glsfmtfirst}
when it occurs in a header.)
\cmddef{GLSxtrtitlefirst}
The title \idx{allcaps} \gloskey{first} field. (Normal behaviour of
\gls{GLSfmtfirst}.)
\cmddef{GLSxtrheadfirst}
The header \idx{allcaps} \gloskey{first} field. (The behaviour of \gls{GLSfmtfirst}
when it occurs in a header.)
% firstplural
\cmddef{glsxtrtitlefirstplural}
The title \gloskey{firstplural} field. (Normal behaviour of \gls{glsfmtfirstpl}.)
\cmddef{glsxtrheadfirstplural}
The header \gloskey{firstplural} field. (The behaviour of \gls{glsfmtfirstpl}
when it occurs in a header.)
\cmddef{Glsxtrtitlefirstplural}
The title \idx{sentencecase} \gloskey{firstplural} field. (Normal behaviour of
\gls{Glsfmtfirstpl}.)
\cmddef{Glsxtrheadfirstplural}
The header \idx{sentencecase} \gloskey{firstplural} field. (The behaviour of \gls{Glsfmtfirstpl}
when it occurs in a header.)
\cmddef{GLSxtrtitlefirstplural}
The title \idx{allcaps} \gloskey{firstplural} field. (Normal behaviour of
\gls{GLSfmtfirstpl}.)
\cmddef{GLSxtrheadfirstplural}
The header \idx{allcaps} \gloskey{firstplural} field. (The behaviour of \gls{GLSfmtfirstpl}
when it occurs in a header.)
The definitions of \gls{markright}, \gls{markboth} and \gls{@starttoc}
are saved (using \gls{let}) when \sty{glossaries-extra} loads.
\cmddef{@glsxtr@org@markright}
The previous definition of \gls{markright}.
\cmddef{@glsxtr@org@markboth}
The previous definition of \gls{markboth}.
\cmddef{@glsxtr@org@@starttoc}
The previous definition of \gls{@starttoc}.
The \sty{glossaries-extra} definitions of \gls{markright},
\gls{markboth} and \gls{@starttoc} all start and end with hooks that
redefine commands that are sensitive to being in the header or
contents.
\cmddef{glsxtrmarkhook}
This saves the original definitions and redefines the sensitive
commands. This includes \gls{MakeUppercase} which is \gls{let} to
\gls{MakeTextUppercase}.
\cmddef{@glsxtrinmark}
This redefines \gls{glsxtrifinmark} to just do its first argument
(\meta{true}).
\cmddef{@glsxtrnotinmark}
This redefines \gls{glsxtrifinmark} to just do its second argument
(\meta{false}).
\cmddef{glsxtrrestoremarkhook}
This restores the sensitive commands to the saved definitions.
(For use where grouping will cause interference.)
For example, \gls{markboth} is redefined as:
\begin{compactcodebox}
\cmd{renewcommand}*\marg{\gls{markboth}}[2]\marg{\%
\gls{glsxtrmarkhook}
\gls{@glsxtr@org@markboth}
\marg{\gls{@glsxtrinmark}\#1\gls{@glsxtrnotinmark}}\%
\marg{\gls{@glsxtrinmark}\#2\gls{@glsxtrnotinmark}}\%
\gls{glsxtrrestoremarkhook}
}
\end{compactcodebox}
\section{Nested Links}
\label{sec:nested}
Complications arise when you use the \idx{glslike} commands in the
value of the \gloskey{name} field (or \gloskey{text}
or \gloskey{first} fields, if set). This tends to occur with
abbreviations that extend other abbreviations. For example,
SHTML is an abbreviation for SSI enabled HTML, where SSI
is an abbreviation for Server Side Includes and HTML
is an abbreviation for Hypertext Markup Language.
For example, things can go wrong if the following is used with the
\sty{glossaries} package:
\begin{badcodebox}
\gls{newacronym}\marg{ssi}\marg{SSI}\marg{Server Side Includes}
\gls{newacronym}\marg{html}\marg{HTML}\marg{Hypertext Markup Language}
\gls{newacronym}\marg{shtml}\marg{S\gls{gls}\marg{html}}\marg{\gls{gls}\marg{ssi} enabled \gls{gls}\marg{html}}
\end{badcodebox}
The main problems are:
\begin{enumerate}
\item\label{itm:nestedfirstucprob} With older versions of
\sty{mfirstuc} and \sty{glossaries}, the \idx{sentencecase} commands,
such as \gls{Gls}, won't work for the \code{shtml} entry on \idx{firstuse} if the
long form is displayed before the short form (which is the
default abbreviation style). This will attempt to do
\begin{compactcodebox}
\gls{gls}\marg{\gls+{uppercase} ssi} enabled \gls{gls}\marg{html}
\end{compactcodebox}
which just doesn't work. Grouping the \code{\gls{gls}\marg{ssi}} doesn't
work either as this will effectively try to do:
\begin{compactcodebox}
\gls+{uppercase}\marg{\gls{gls}\marg{ssi}} enabled \gls{gls}\marg{html}
\end{compactcodebox}
This will upper case the label \code{ssi} so the entry won't be
recognised. This problem will also occur if you use the \idx{allcaps}
version, such as \code{\gls{GLS}\marg{shtml}}.
With \sty{mfirstuc} v2.08+ and \sty{glossaries} v1.49+, this issue
should now be resolved for \idx{sentencecase} where
\code{\gls{gls}\marg{ssi}} will be mapped to
\code{\gls{Gls}\marg{ssi}} within \code{\gls{Gls}\marg{shtml}}. The
\idx{allcaps} command \code{\gls{GLS}\marg{shtml}} will treat
\gls{gls} as an exclusion and so won't perform a case-change. See
\sectionref{sec:casechange} for further details.
\item\label{itm:nonexpandprob} The long and abbreviated forms accessed through
\gls{glsentrylong} and \gls{glsentryshort} are no longer expandable
and so can't be used be used in contexts that require this,
such as PDF bookmarks.
\item\label{itm:nestedsortprob} The nested commands may end up in the \gloskey{sort} key,
which will confuse the indexing.
\item\label{itm:inconsistentfirstuseprob} The \code{shtml} entry produces inconsistent results
depending on whether the \code{ssi} or \code{html} entries have
been used. Suppose both \code{ssi} and \code{html} are used
before \code{shtml}. For example:
\begin{coderesult}
This section discusses
\gls{gls}\marg{ssi}, \gls{gls}\marg{html} and
\gls{gls}\marg{shtml}.
\tcblower
This section discusses server side includes (SSI), hypertext markup
language (HTML) and SSI enabled HTML (SHTML).
\end{coderesult}
In the above, the \idx{firstuse} of the \code{shtml} entry produces
\qt{SSI enabled HTML (SHTML)}.
Now let's suppose the \code{html} entry is used before the
\code{shtml} but the \code{ssi} entry is used after the
\code{shtml} entry, for example:
\begin{coderesult}
The sample files are
either \gls{gls}\marg{html} or
\gls{gls}\marg{shtml}, but let's
first discuss \gls{gls}\marg{ssi}.
\tcblower
The sample files are either hypertext markup language (HTML) or
server
side includes (SSI) enabled HTML (SHTML), but let's first discuss
SSI.
\end{coderesult}
In this case, the \idx{firstuse} of the \code{shtml} entry now produces
\qt{server side includes (SSI) enabled HTML (SHTML)}, which looks
a bit cumbersome.
Now let's suppose the \code{shtml} entry is used before (or
without) the other two entries:
\begin{coderesult}
This article is an introduction
to \gls{gls}\marg{shtml}.
\tcblower
This article is an introduction to server side includes (SSI)
enabled hypertext markup language (HTML) (SHTML).
\end{coderesult}
Now the \idx{firstuse} of the \code{shtml} entry produces
\qt{server side includes (SSI) enabled hypertext markup language (HTML)
(SHTML)}, which looks strange.
This is all aggravated when using just the base \sty{glossaries}
package when the acronym style is set with
\gls{setacronymstyle}. For example:
\begin{compactcodebox}
\gls{setacronymstyle}\marg{\acrstyle+{long-short}}
\end{compactcodebox}
as this references the label through the use of \gls{glslabel}
when displaying the long and short forms, but this value
changes with each use of \gls{gls}, so instead of displaying
\qt{(SHTML)} at the end of the \gls{firstuse}, it now displays
\qt{(HTML)}, since \gls{glslabel} has been changed to \code{html}
by \code{\gls{gls}\marg{html}}.
\begin{information}
In v1.48, the \sty{glossaries-extra} package added grouping with
\gls{glslinkwrcontent}, which scoped the \idx{linktext}.
Unfortunately this grouping caused problems in math mode and had to
be removed in v1.49. You can redefine \gls{glslinkwrcontent} to put the
grouping back, but it still won't scope the definitions of the
placeholder commands, such as \gls{glslabel}, which need to be
outside of this scope for the benefit of the \idx{postlinkhook}.
\end{information}
Another oddity occurs if you reset the \code{html} entry between
uses of the \code{shtml} entry. For example:
\begin{compactcodebox}
\gls{gls}\marg{shtml} ... \gls{glsreset}\marg{html}\gls{gls}\marg{shtml}
\end{compactcodebox}
The next use of \code{shtml} produces \qt{Shypertext markup
language (HTML)}, which is downright weird. (This is a result of the
short form being set to \code{S\gls{gls}\marg{html}}, but
\code{\gls{gls}\marg{html}} is showing the full form.)
Even without this, the short form has nested formatting commands,
which amount to \code{\gls{acronymfont}\marg{S\gls{acronymfont}\marg{HTML}}}. This
may not be a problem for some styles, but if you use one of the
\qt{sm} styles (that use \gls{textsmaller}), this will produce
an odd result.
\item\label{itm:indexingprob} Each time the \code{shtml} entry is used, the
\code{html} entry will also be indexed and marked as used,
and on \idx{firstuse} this will happen to both the \code{ssi}
and \code{html} entries. This kind of duplication in the location
list isn't usually particularly helpful to the reader.
\item\label{itm:nestedhyplinkprob} If \sty{hyperref} is in use, you'll get nested hyperlinks
and there's no consistent way of dealing with this across the
available PDF viewers. If on the \idx{firstuse} case, the user
clicks on the \qt{HTML} part of the \qt{SSI enabled HTML (SHTML)}
link, they may be directed to the HTML entry in the glossary or
they may be directed to the SHTML entry in the glossary.
\end{enumerate}
For these reasons, with just the base \sty{glossaries} package, it's
better to use the simple expandable commands like \gls{glsentrytext}
or \gls{glsentryshort} in the definition of other entries.
The \sty{glossaries-extra} package provides two other ways of
dealing with these problems:
\begin{enumerate}
\item If the term can simply be treated as a
series of previously defined entries, then consider using
multi-entries (or compound sets), as described in
\sectionref{sec:multientries}. This deals with all the issues,
including case-changing.
\item Use the partially-expandable \gls{glsxtrp}, described below.
\end{enumerate}
\cmddef{glsxtrp}
where \meta{field} is the \idx{internalfieldlabel}.
This command partially expands, so it will expand to
just the \idx{field} value if it occurs in the PDF bookmarks.
Otherwise it will behave much like the commands described in
\sectionref{sec:headingcommands}, but with additional outer scoping and the
\idx{postlinkhook} is suppressed.
Rather than testing the existence of the given
field, this tests the existence of \csfmt{gls\meta{field}} or
\csfmt{glsxtr\meta{field}}, which means that it may be confused if
the \meta{field} argument is set to something that isn't a field but
happens to match either of those command names (such as \code{full}).
Note that, as with commands like \gls{glsfmtshort}, there's no
optional argument. The default settings are \glsopt{noindex} and
\glsoptval{hyper}{false}. You can change this with:
\cmddef{glsxtrsetpopts}
The argument should be the new default options.
At the start of each glossary, the default options are locally changed
with:
\cmddef{glossxtrsetpopts}
This is defined as:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{glossxtrsetpopts}}\marg{\%
\gls{glsxtrsetpopts}\marg{noindex}\%
}
\end{compactcodebox}
This allows hyperlinks for any instance of \gls{glsxtrp} that occurs
in the name or description, where it shouldn't be problematic.
There are some shortcut commands for the most common fields:
\cmddef{glsps}
which is equivalent to
\code{\gls{glsxtrp}\marg{short}\margm{entry-label}}, and
\cmddef{glspt}
which is equivalent to
\code{\gls{glsxtrp}\marg{text}\margm{entry-label}}.
There are also \idx{sentencecase} and \idx{allcaps} versions.
\cmddef{Glsxtrp}
This uses the corresponding \idx{sentencecase} command
\csfmt{Gls\meta{field}} or \csfmt{Glsxtr\meta{field}}.
\cmddef{GLSxtrp}
This uses the corresponding \idx{allcaps} command
\csfmt{GLS\meta{field}} or \csfmt{GLSxtr\meta{field}}.
For example:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}
\cmd{usepackage}\marg{glossaries-extra}
\gls{setabbreviationstyle}\marg{long-em-short-em}
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
\gls{newabbreviation}\marg{ssi}\marg{SSI}\marg{server-side includes}
\gls{newabbreviation}\marg{shtml}\marg{SHTML}\marg{\gls{glsps}\marg{html} enabled
\gls{glsps}\marg{ssi}}
\cbeg{document}
\gls{tableofcontents}
\cmd{section}\marg{\gls{glsfmtlong}\marg{shtml}}
First use: \gls{gls}\marg{shtml}, \gls{gls}\marg{html}, \gls{gls}\marg{ssi}.
\codepar
Next use: \gls{gls}\marg{shtml}, \gls{gls}\marg{html}, \gls{gls}\marg{ssi}.
\codepar
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[arara={pdflatex,pdflatex,pdfcrop},
label={ex:nestedlinkglspl},
title={Nested link text with \cmd{glspl}},
description={Example document illustrating an entry that
references other entries within one of its fields}]
{%
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}^^J%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{setabbreviationstyle}\marg{long-em-short-em}^^J%
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}^^J%
\gls{newabbreviation}\marg{ssi}\marg{SSI}\marg{server-side includes}^^J%
\gls{newabbreviation}\marg{shtml}\marg{SHTML}\marg{\gls{glsps}\marg{html} enabled
\gls{glsps}\marg{ssi}}
}
{%
\gls{tableofcontents}^^J%
\cmd{section}\marg{\gls{glsfmtlong}\marg{shtml}}^^J%
First use: \gls{gls}\marg{shtml}, \gls{gls}\marg{html}, \gls{gls}\marg{ssi}.
\codepar
Next use: \gls{gls}\marg{shtml}, \gls{gls}\marg{html}, \gls{gls}\marg{ssi}.
\codepar
\gls{printunsrtglossaries}
}
\end{resultbox}
The way that this works is as follows:
\begin{itemize}
\item \code{\gls{glsfmtlong}\marg{shtml}} expands to
\code{\gls{glsentrylong}\marg{shtml}} within the PDF bookmarks,
which expands to the value of the \gloskey{long} field:
\begin{compactcodebox}
\gls{glsps}\marg{html} enabled \gls{glsps}\marg{ssi}
\end{compactcodebox}
This means that \gls{glsps} (within the PDF bookmarks) in turn expands to
\gls{glsentryshort}. So the bookmark text (which can't contain any
formatting commands) ends up as \qt{HTML enabled SSI}.
\item \code{\gls{glsfmtlong}\marg{shtml}} essentially
behaves like \gls{glsxtrlong}, but with the \idx{indexing} and
hyperlink suppressed. The \idx{linktext} is the value of the
\gloskey{long} field encapsulated with the abbreviation style's
formatting command (\gls{glslongemfont} in this case):
\begin{compactcodebox}
\gls{glslongemfont}\marg{\gls{glsps}\marg{html} enabled \gls{glsps}\marg{ssi}}
\end{compactcodebox}
This then becomes:
\begin{compactcodebox}
\gls{glslongemfont}\marg{\marg{\gls{let}\gls{glspostlinkhook}\gls{relax}
\gls{glsxtrshort}\marg{html}} enabled
\marg{\gls{let}\gls{glspostlinkhook}\gls{relax}
\gls{glsxtrshort}\marg{ssi}}}
\end{compactcodebox}
Note the grouping and localised suppression of the
\idx{postlinkhook}.
\end{itemize}
Note that in the above example, with older versions of
\sty{mfirstuc} and \sty{glossaries}, it's not possible to use
\code{\gls{Glsxtrlong}\marg{shtml}} or similar. The problem here is
that it will attempt to do:
\begin{compactcodebox}
\gls{makefirstuc}\marg{\gls{glsps}\marg{html} enabled \gls{glsps}\marg{ssi}}
\end{compactcodebox}
This will essentially end up as:
\begin{compactcodebox}
\gls{glsps}\marg{\gls{uppercase} html} enabled \gls{glsps}\marg{ssi}
\end{compactcodebox}
which doesn't work. If you want to protect against automated
case-changes, such as using the \catattr{glossdesc} attribute,
insert an empty brace at the start:
\begin{compactcodebox}
\gls{newabbreviation}\marg{shtml}\marg{SHTML}\marg{\marg{}\gls{glsps}\marg{html} enabled
\gls{glsps}\marg{ssi}}
\end{compactcodebox}
Alternatively, upgrade to \sty{mfirstuc} v2.08+ and \sty{glossaries}
v4.50+. See \sectionref{sec:casechange}.
\section{Adjusting the Text Style}
\label{sec:entryfmtmods}
The \idx{glslike} and \idx{glstextlike} commands produce text that's
essentially formatted either as (\glsoptval{hyperoutside}{true}):
\begin{compactcodebox}
\meta{hyper-cs}\margm{target}\marg{\meta{textformat-cs}\margm{content}}\meta{post-link hook}
\end{compactcodebox}
or (\glsoptval{hyperoutside}{false}):
\begin{compactcodebox}
\meta{textformat-cs}\marg{\meta{hyper-cs}\margm{target}\margm{content}}\meta{post-link hook}
\end{compactcodebox}
If hyperlinks are enabled then \meta{hyper-cs} creates the hyperlink
based on \meta{target} with the hyperlink text given by the second
argument. If hyperlinks aren't enabled then \meta{hyper-cs} ignores
the \meta{target} argument and simply does the second argument.
The \meta{content} part is the \idx{linktext}, which includes the
final optional \meta{insert} (if supplied). The actual content
depends on the command used (for example, \gls{gls} or
\gls{glstext}). The \idx{glslike} commands all use
the entry display style associated with the entry's \idx{glossary}
type, (see \sectionref{sec:entryfmt}). The \idx{glstextlike} commands set the
\meta{content} to the corresponding field value with the insert
appended, all encapsulated with the inner formatting (see
\sectionref{sec:innertextformat}), with appropriate case-changing,
if required.
The abbreviation commands (\gls{glsxtrshort}, \gls{glsxtrlong},
\gls{glsxtrfull} etc) are considered part of the set of
\idx{glstextlike} commands, but the content is set according to the
abbreviation style (see \sectionref{sec:abbrstyle}).
The commands \gls{glsdisp} and \gls{glslink} both have the content
part explicitly set in their final argument. There's no insert
optional argument as it can simply be included in the content part.
The difference between them is that \gls{glsdisp} is considered a
\idx{glslike} command (it unsets the \idx{firstuseflag},
\sectionref{sec:glsunset}, and uses the entry display style,
\sectionref{sec:entryfmt}), whereas \gls{glslink} is considered a
\idx{glstextlike} command.
The \meta{post-link hook} part is described in
\sectionref{sec:postlinkhook}.
The \meta{textformat-cs} command is the \emph{outer} formatting
command, described in \sectionref{sec:glstextformat}. This doesn't
include the \idx{postlinkhook}. If you want to include the
\idx{postlinkhook} then you need to encapsulate the entire
\idx{glslike} and \idx{glstextlike} command (including the final
optional argument, if present, and following punctuation, if the
\idx{postlinkhook} looks ahead for punctuation).
Some sensitive formatting commands need to have the actual text in
their argument (or else have the argument in an unbreakable box).
The \meta{content} part is usually too complicated for these
commands. To help support this type of command, there is also an
\idxc{innerformatting}{inner format}, which is described in
\sectionref{sec:innertextformat}. In general, unless you require one
of these sensitive commands, avoid setting the inner text format as
it requires support from the underlying style (either the entry
format style or the abbreviation style), which may not be available.
The following example document is ugly, but demonstrates the outer
formatting (\texttt{type\-writer} font), middle formatting
(\textbf{bold} for regular entries and \textit{italic} for
abbreviations), inner formatting (highlighted in yellow), hyperlinks
(red), and the \idx{catpostlinkhook} (the description follows in
parentheses for general entries on \idx{firstuse}).
\begin{codebox}
\cmd{usepackage}\marg{courier}
\cmd{usepackage}[T1]\marg{fontenc}
\cmd{usepackage}\marg{xcolor}
\cmd{usepackage}\marg{soul}
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}[\opt{nogroupskip}]\marg{glossaries-extra}
\comment{outer formatting:}
\cmd{renewcommand}\marg{\gls{glstextformat}}[1]\marg{\cmd{texttt}\marg{\#1}}
\comment{middle formatting:}
\cmd{renewcommand}\marg{\gls{glsxtrregularfont}}[1]\marg{\cmd{textbf}\marg{\#1}}
\cmd{renewcommand}\marg{\gls{glsxtrabbreviationfont}}[1]\marg{\cmd{textit}\marg{\#1}}
\comment{inner formatting:}
\cmd{renewcommand}\marg{\gls{glsxtrdefaultentrytextfmt}}[1]\marg{\cmd{hl}\marg{\#1}}
\comment{post-link hook for 'general' category:}
\gls{glsdefpostlink}\marg{\cat{general}}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}
\comment{define entries:}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
\gls{newacronym}\marg{nasa}\marg{NASA}\marg{National Aeronautics and Space Administration}
\cbeg{document}
First use: \gls{gls}\marg{sample}, \gls{gls}\marg{html}, \gls{gls}\marg{nasa}.
\codepar
Next use: \gls{gls}\marg{sample}, \gls{gls}\marg{html}, \gls{gls}\marg{nasa}.
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
This produces:
\begin{resultbox}
\createexample*[fontsize={14},
label={ex:linktextstyles},
title={Link text styles: outer, middle, inner, hyperlinks and post-link hook},
description={An example document that illustrates the outer, middle
and inner formatting, hyperlinks and a category post-link hook}]
{
\cmd{usepackage}\marg{courier}^^J%
\cmd{usepackage}[T1]\marg{fontenc}^^J%
\cmd{usepackage}\marg{xcolor}^^J%
\cmd{usepackage}\marg{soul}^^J%
\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}[nogroupskip]\marg{glossaries-extra}^^J%
\% outer formatting:^^J%
\cmd{renewcommand}\marg{\gls{glstextformat}}[1]\marg{\cmd{texttt}\marg{\#1}}^^J%
\% middle formatting:^^J%
\cmd{renewcommand}\marg{\gls{glsxtrregularfont}}[1]\marg{\cmd{textbf}\marg{\#1}}^^J%
\cmd{renewcommand}\marg{\gls{glsxtrabbreviationfont}}[1]\marg{\cmd{textit}\marg{\#1}}^^J%
\% inner formatting:^^J%
\cmd{renewcommand}\marg{\gls{glsxtrdefaultentrytextfmt}}[1]\marg{\cmd{hl}\marg{\#1}}^^J%
\% post-link hook for 'general' category:^^J%
\gls{glsdefpostlink}\marg{general}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}^^J%
\% define entries:^^J%
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}^^J%
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}^^J%
\gls{newacronym}\marg{nasa}\marg{NASA}\marg{National Aeronautics and Space Administration}
}
{
First use: \gls{gls}\marg{sample}, \gls{gls}\marg{html}, \gls{gls}\marg{nasa}.
\codepar
Next use: \gls{gls}\marg{sample}, \gls{gls}\marg{html}, \gls{gls}\marg{nasa}.
\codepar
\gls{printunsrtglossaries}
}
\end{resultbox}
Note that the hyperlink, outer and middle formatting aren't applied
to the \idx{postlinkhook}. The \cat{acronym} category has the
\abbrstyle{short-nolong} abbreviation style, which sets the
\catattr{regular} attribute to true. This means that the NASA entry
uses the regular middle format (\gls{glsxtrregularfont}) not the
abbreviation middle format (\gls{glsxtrabbreviationfont}).
If you have a formatting command that needs to have its argument
fully-expanded before being applied, you may be able to use:
\cmddef{GlsXtrExpandedFmt}
This fully-expands \meta{content} and does
\code{\meta{cs}\margm{expanded-content}}, where \meta{cs} is a
command that takes a single argument. For example, to use
\sty{soul}['s] underlining command \gls{ul}:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glsxtrregularfont}}\oarg{1}\marg{\gls{GlsXtrExpandedFmt}\marg{\#1}}
\end{codebox}
(See \exampleref{ex:protectinnertextformat}.)
This isn't guaranteed to work as the \idx{linktext} may contain
fragile content.
The inner formatting can be unpredictable. For example,
abbreviation styles are complicated and so the inner formatting
command is included in some of the field values, such as the
\gloskey{name}, which is why the abbreviation name is highlighted in
the \idx{glossary}. In the above example, the inner formatting is
included in the \idx{catpostlinkhook}, but only because
\gls{glsxtrpostlinkAddDescOnFirstUse} is designed to include it. If
the \idx{catpostlinkhook} was simply defined as:
\begin{codebox}
\gls{glsdefpostlink}\marg{general}\marg{\%
\gls{glsxtrifwasfirstuse}\marg{ (\gls{glsentrydesc}\marg{\gls{glslabel}})}\marg{}}
\end{codebox}
then the inner formatting won't be applied, since it's not included
in the hook. This is demonstrated in a slightly modified version of
the above document (initial part of preamble that deals with loading packages and
redefining formatting commands as before):
\begin{codebox}
\comment{post-link hook for 'general' category:}
\gls{glsdefpostlink}\marg{general}\marg{\%
\gls{glsxtrifwasfirstuse}\marg{ (\gls{glsentrydesc}\marg{\gls{glslabel}})}\marg{}}
\comment{this style sets the post-link hook for 'abbreviation' category:}
\gls{setabbreviationstyle}\marg{\abbrstyle{long-postshort-user}}
\comment{this style sets the post-link hook for 'acronym' category:}
\gls{setabbreviationstyle}\oarg{\cat{acronym}}\marg{\abbrstyle{short-postfootnote}}
\comment{define entries:}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
\gls{newacronym}\marg{nasa}\marg{NASA}\marg{National Aeronautics and Space Administration}
\cbeg{document}
First use: \gls{gls}\marg{sample}, \gls{gls}\marg{html}, \gls{gls}\marg{nasa}.
\codepar
Next use: \gls{gls}\marg{sample}, \gls{gls}\marg{html}, \gls{gls}\marg{nasa}.
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
This produces:
\begin{resultbox}
\createexample*[graphicsopts={scale=0.5},fontsize={14},
label={ex:linktextstylescustom},
title={Link text styles: outer, middle, inner,
hyperlinks and post-link hooks (custom and abbreviation style)},
description={An example document that illustrates the outer, middle
and inner formatting, and hyperlinks, with a custom category
post-link hook and abbreviation style that sets the category
post-link hook}]
{
\cmd{usepackage}\marg{courier}^^J%
\cmd{usepackage}[T1]\marg{fontenc}^^J%
\cmd{usepackage}\marg{xcolor}^^J%
\cmd{usepackage}\marg{soul}^^J%
\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}[nogroupskip]\marg{glossaries-extra}^^J%
\% outer formatting:^^J%
\cmd{renewcommand}\marg{\gls{glstextformat}}[1]\marg{\cmd{texttt}\marg{\#1}}^^J%
\% middle formatting:^^J%
\cmd{renewcommand}\marg{\gls{glsxtrregularfont}}[1]\marg{\cmd{textbf}\marg{\#1}}^^J%
\cmd{renewcommand}\marg{\gls{glsxtrabbreviationfont}}[1]\marg{\cmd{textit}\marg{\#1}}^^J%
\% inner formatting:^^J%
\cmd{renewcommand}\marg{\gls{glsxtrdefaultentrytextfmt}}[1]\marg{\cmd{hl}\marg{\#1}}^^J%
\% post-link hook for 'general' category:^^J%
\gls{glsdefpostlink}\marg{general}\marg{\gls{glsxtrifwasfirstuse}\marg{
(\gls{glsentrydesc}\marg{\gls{glslabel}})}\marg{}}^^J%
\% this style sets the post-link hook for 'abbreviation' category:^^J%
\gls{setabbreviationstyle}\marg{long-postshort-user}^^J%
\% this style sets the post-link hook for 'acronym' category:^^J%
\gls{setabbreviationstyle}\oarg{acronym}\marg{short-postfootnote}^^J%
\% define entries:^^J%
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}^^J%
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}^^J%
\gls{newacronym}\marg{nasa}\marg{NASA}\marg{National Aeronautics and Space Administration}
}
{
First use: \gls{gls}\marg{sample}, \gls{gls}\marg{html}, \gls{gls}\marg{nasa}.
\codepar
Next use: \gls{gls}\marg{sample}, \gls{gls}\marg{html}, \gls{gls}\marg{nasa}.
\codepar
\gls{printunsrtglossaries}
}
\end{resultbox}
The \qt{post} abbreviation styles put some content into the
\idx{postlinkhook} and provide support for the inner formatting.
The above example sets the abbreviation style
to \abbrstyle{long-postshort-user}. This sets up the
\idx{postlinkhook} for the associated category
(\cat{abbreviation}, in this case) to show the parenthetical
material. Be aware that this will override
any previous definition of that hook. This style supports the inner
formatting (so the parenthetical material is highlighted).
Similarly, the \abbrstyle{short-postfootnote} style is applied to
the \cat{acronym} category, and sets the \idx{postlinkhook} for that
category (which looks head for punctuation). The inner formatting is
applied to the footnote text but not the marker.
The \idx{postlinkhook} for the \cat{general} category is now much
simpler and doesn't include support for the inner formatting, so
it's not highlighted.
None of the post-link content is incorporated into the
hyperlink, outer or middle formatting.
In general, it's better to adjust the abbreviation's style commands
(see \sectionref{sec:abbrvcmds}) rather than use the middle
or inner formatting if abbreviations need to be displayed in a particular
font.
\subsection{Outer Formatting}
\label{sec:glstextformat}
By default, the outer formatting is produced with \gls{glstextformat}, which is
defined by the base \sty{glossaries} package. However it can be
replaced by the \catattr{textformat} category attribute or by the
\glsopt{textformat} option. The order of precedence (not cumulative) is:
the option supplied to the \idx{glslike} or \idx{glstextlike}
command, the category attribute, \gls{glstextformat}.
For example:
\begin{codebox}
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}\marg{glossaries-extra}
\gls{glsdefpostlink}\marg{general}\marg{ (\gls{glsentrydesc}\marg{\gls{glslabel}})}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}
\cmd{newcommand}\marg{\cmd{strong}}[1]\marg{\cmd{textbf}\marg{\cmd{color}\marg{green}\#1}}
\cmd{renewcommand}\marg{\gls{glstextformat}}[1]\marg{\cmd{emph}\marg{\#1}}
\cbeg{document}
\gls{gls}\marg{sample}\oarg{-insert}. \cmd{strong}\marg{\gls{gls}\marg{sample}\oarg{-insert}}.
\codepar
\gls{glssetcategoryattribute}\marg{\cat{general}}\marg{\catattr{textformat}}\marg{strong}
\gls{gls}\marg{sample}\oarg{-insert}.
\gls{gls}\oarg{\glsoptval{hyperoutside}{false}}\marg{sample}\oarg{-insert}.
\codepar
\gls{gls}\oarg{\glsoptval{textformat}{textsf}}\marg{sample}\oarg{-insert}.
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[title={Changing the outer text format},
label={ex:textformat},
description={Example document illustrating the difference between
\cmd{glstextformat}, the \optfmt{textformat} category attribute, and
the \optfmt{textformat} option}]
{\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{glsdefpostlink}\marg{general}\marg{ (\gls{glsentrydesc}\marg{\gls{glslabel}})}^^J%
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}^^J%
\cmd{newcommand}\marg{\cmd{strong}}[1]\marg{\cmd{textbf}\marg{\cmd{color}\marg{green}\#1}}
\cmd{renewcommand}\marg{\gls{glstextformat}}[1]\marg{\cmd{emph}\marg{\#1}}
}{%
\gls{gls}\marg{sample}\oarg{-insert}. \cmd{strong}\marg{\gls{gls}\marg{sample}\oarg{-insert}}.
\codepar
\gls{glssetcategoryattribute}\marg{general}\marg{textformat}\marg{strong}
\gls{gls}\marg{sample}\oarg{-insert}.
\gls{gls}\oarg{hyperoutside=false}\marg{sample}\oarg{-insert}.
\codepar
\gls{gls}\oarg{textformat=textsf}\marg{sample}\oarg{-insert}.
}
\end{resultbox}
The red text colour is from the hyperlink (red is the
default with \sty{hyperref}['s] \optfmt{colorlinks} option).
The green from the custom \csfmt{strong} command is cancelled by the
hyperlink colour change when the hyperlink is inside \csfmt{strong}.
After the \catattr{textformat} attribute is set, the
\gls{glstextformat} command isn't used, which is why the remaining
lines don't have any italic. The final line uses the
\glsopt{textformat} option, which overrides the
\catattr{textformat} attribute, so neither \gls{glstextformat} nor the custom
\csfmt{strong} are used.
Note that the only time that the \idx{postlinkhook} is included in
the formatting is when the entire \gls{gls} command has been
encapsulated.
\subsection{Middle Formatting}
\label{sec:middleformat}
The middle formatting comes between the outer formatting
(\sectionref{sec:glstextformat} above) and the \idx{innerformatting}
(\sectionref{sec:innertextformat} below).
The middle formatting is implemented by the entry format style
(\sectionref{sec:entryfmt}) for the \idx{glslike} commands or is
initialised by \gls{glsxtrassignfieldfont} for the \idx{glstextlike}
commands.
If you provide your own custom entry format style you will need to
add support for the middle formatting, if required.
\cmddef{glsxtrregularfont}
The command to use for regular entries. This is initialised to just
do its argument.
\cmddef{glsxtrabbreviationfont}
The command to use for abbreviations that considered non-regular
entries.
The following document has a regular entry (sample), a regular
abbreviation (radar, which uses \abbrstyle{short-nolong} the default
\cat{acronym} style), and a non-regular abbreviation (HTML, which
uses \abbrstyle{long-short} the default \cat{abbreviation} style):
\begin{codebox}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
\gls{newacronym}\marg{radar}\marg{radar}\marg{radio detection and ranging}
\cmd{renewcommand}\marg{\gls{glsxtrregularfont}}[1]\marg{\cmd{emph}\marg{\#1}}
\cmd{renewcommand}\marg{\gls{glsxtrabbreviationfont}}[1]\marg{\cmd{textbf}\marg{\#1}}
\cbeg{document}
\gls{gls}\marg{sample}, \gls{gls}\marg{html}, \gls{gls}\marg{radar}.
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[title={Middle formatting},
label={ex:middleformat},
description={Example document illustrating middle formatting
applied with \cmd{glsxtrregularfont} for regular entries and
\cmd{glsxtrabbreviationfont} for non-regular abbreviations}]
{%
\cmd{usepackage}\marg{glossaries-extra}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
\gls{newacronym}\marg{radar}\marg{radar}\marg{radio detection and ranging}
\cmd{renewcommand}\marg{\gls{glsxtrregularfont}}[1]\marg{\cmd{emph}\marg{\#1}}
\cmd{renewcommand}\marg{\gls{glsxtrabbreviationfont}}[1]\marg{\cmd{textbf}\marg{\#1}}
}
{%
\gls{gls}\marg{sample}, \gls{gls}\marg{html}, \gls{gls}\marg{radar}.
}
\end{resultbox}
Note that even though radar is an abbreviation, it's considered a
regular entry because it uses a regular style.
\cmddef{glsxtrassignfieldfont}
This command is used by all the \idx{glstextlike} commands to
initialise the internal command used to encapsulate the field value.
This will either be set to \gls{glsxtrregularfont} (for regular
entries) or \gls{@firstofone} otherwise.
Note that this doesn't use \gls{glsxtrabbreviationfont}
as non-regular abbreviations are too complicated to work with
\gls{glstext}, \gls{glsfirst}, \gls{glsplural}, \gls{glsfirstplural}
or their case-changing variants. Instead, use the \idx{glslike}
commands or the abbreviation commands, such as \gls{glsxtrshort}.
\subsection{Inner Formatting}
\label{sec:innertextformat}
If you want to format the \idx{linktext}, the best method is to
either use the outer formatting or encapsulate the entire
\idx{glslike} or \idx{glstextlike} command, as described in
\sectionref{sec:glstextformat}. However, there are some sensitive
commands that don't work if the command argument doesn't simply
contain text.
\begin{information}
Sometimes the issue may occur when the sensitive command that
needs to encapsulate \gls{gls} doesn't like boolean variables being
changed (which occurs when the \idx{firstuseflag} is unset). If this
is the case, you may want to consider buffering as an alternative
(see \sectionref{sec:unsetbuffer}).
\end{information}
For example, if the sample document from
\sectionref{sec:glstextformat} is adjusted to include the \sty{soul}
package and the following line is added to the document:
\begin{codebox}
\gls{gls}\oarg{\glsoptval{textformat}{hl}}\marg{sample}
\end{codebox}
then the document build will fail with the error:
\begin{quote}
! Package soul Error: Reconstruction failed.
\end{quote}
Once solution is to do the following instead:
\begin{codebox}
\gls+{hl}\marg{\gls+{mbox}\marg{\gls{gls}\marg{sample}}}
\end{codebox}
This will now work, but the box will prevent hyphenation, so it's
only useful if the \idx{linktext} is short, such as a symbol. If the
\idx{linktext} is long (such as a phrase or the \idx{firstuse} of an
abbreviation), this method can produce undesirable results with
overfull or underfull lines.
The \idx{innerformatting} is designed to provide a workaround, but it
must be implemented deep within the entry style formatting. This
means that if you provide your own custom style, you will need to
add the appropriate commands if you want that style to support inner
formatting. You may also need to switch to using
\gls{MFUsentencecase} instead of \gls{makefirstuc} if any of the
\idx{sentencecase} commands are required:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glssentencecase}}[1]\marg{\gls{MFUsentencecase}\marg{\#1}}
\end{codebox}
Although there's no guarantee that this will work for some
particularly problematic formatting commands.
With the default entry style, the above example can be changed to:
\begin{codebox}
\gls{gls}\oarg{\glsoptval{innertextformat}{hl}}\marg{sample}
\end{codebox}
\begin{warning}
The inner formatting may be split up in order to move them into the
arguments of internal commands, such as those used for
case-changing. This can result in unwanted side-effects.
\end{warning}
The following uses \gls{fbox} (which draws a frame around its
argument) and \sty{soul}['s] \gls{so} (which spaces out the letters):
\begin{codebox}
\comment{requires glossaries.sty v4.50+ and mfirstuc v2.08+}
\cmd{renewcommand}\marg{\gls{glssentencecase}}[1]\marg{\gls{MFUsentencecase}\marg{\#1}}
\gls{newacronym}\marg{radar}\marg{radar}\marg{radio detection and ranging}
\cbeg{document}
\gls{Gls}\oarg{\glsoptval{innertextformat}{fbox}}\marg{radar}['s] system\cmd{ldots}
\codepar
\gls{Gls}\oarg{\glsoptval{innertextformat}{so}}\marg{radar}['s] system\cmd{ldots}
\codepar
\gls{fbox}\marg{\gls{Gls}\marg{radar}['s]} system\cmd{ldots}
\codepar
\gls{so}\marg{\gls+{mbox}\marg{\gls{Gls}\marg{radar}['s]}} system\cmd{ldots}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[title={Inner formatting},
label={ex:innerformat},
description={Example document illustrating inner formatting}]
{%
\comment{requires glossaries.sty v4.50+ and mfirstuc v2.08+}
\cmd{usepackage}\marg{soul}^^J%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\cmd{renewcommand}\marg{\gls{glssentencecase}}[1]\marg{\gls{MFUsentencecase}\marg{\#1}}^^J%
\gls{newacronym}\marg{radar}\marg{radar}\marg{radio detection and ranging}
}
{%
\gls{Gls}\oarg{innertextformat=fbox}\marg{radar}['s] system\cmd{ldots}
\codepar
\gls{Gls}\oarg{innertextformat=so}\marg{radar}['s] system\cmd{ldots}
\codepar
\gls{fbox}\marg{\gls{Gls}\marg{radar}['s]} system\cmd{ldots}
\codepar
\gls{so}\marg{\gls{mbox}\marg{\gls{Gls}\marg{radar}['s]}} system\cmd{ldots}
}
\end{resultbox}
Note the fragmentation of the inner formatting. The use of
\gls{mbox} in the final line prevents an error but the letters aren't
spaced out. The only way to deal with this case is to use
\gls{glsdisp} or \gls{glslink} with the text explicitly written:
\begin{codebox}
\gls{glslink}\marg{radar}\marg{\gls{so}\marg{Radar's}} system\cmd{ldots}
\end{codebox}
\begin{warning}
The above example requires \sty{mfirstuc} v2.08+.
\end{warning}
Below are the commands used to support inner formatting.
\cmddef{glsxtrgenentrytextfmt}
This is the command that's used to encapsulate any content that
should have the \idx{innerformatting} applied. It should not be redefined
within the document as it's initialised within the
\idx{glslike} and \idx{glstextlike} commands. It's used within
\gls{glsgenentryfmt} and included in the helper commands used by the
predefined abbreviation styles.
Sometimes it may be necessary to include \gls{glsxtrgenentrytextfmt}
within the actual field value to ensure that it's as close as
possible to the text. This is performed automatically when an entry
is defined if the \catattr{encapinnerfmt} or
\catattr{encapnocaseinnerfmt} attributes are set. Note that even in
this case, fragmentation will occur with \idx{sentencecase} commands
like \gls{Gls} or with the insert optional argument, as in the above
example with \gls{fbox} and \gls{so}.
\cmddef{glsxtrdefaultentrytextfmt}
This is the default command that \gls{glsxtrgenentrytextfmt} will be
\gls{let} to within the \idx{glslike} and \idx{glstextlike} commands
before their options are processed. This simply does its argument
but may be redefined. (See \exampleref{ex:protectinnertextformat}.)
\cmddef{glsxtrattrentrytextfmt}
This command applies formatting according to whether or not the
\catattr{innertextformat} attribute is set. It isn't used by default as it
should rarely be needed and increases complexity. However, if you
would like to provide support for the \catattr{innertextformat} attribute,
you can redefine \gls{glsxtrdefaultentrytextfmt} to use
\gls{glsxtrattrentrytextfmt}:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glsxtrdefaultentrytextfmt}}\marg{\gls{glsxtrattrentrytextfmt}}
\end{codebox}
\begin{information}
This command expects the entry label to be stored in \gls{glslabel}
(from which it obtains the category label).
\end{information}
The \idx{glslike} commands use \gls{glsxtrgenentrytextfmt} within
\gls{glsgenentryfmt} for regular entries or within the
abbreviation style commands for non-regular abbreviations
(see \sectionref{sec:entryfmt}).
The \idx{glstextlike} commands all essentially perform the following
steps:
\begin{enumerate}
\item Initialise the middle formatting command \meta{field-font-cs} used for
encapsulating the field with \gls{glsxtrassignfieldfont} (see
\sectionref{sec:middleformat}).
\item If \gls{glsifapplyinnerfmtfield} indicates that the field
value should be encapsulated by \gls{glsxtrgenentrytextfmt}, then
this essentially does (or appropriate case-change equivalent):
\begin{codebox}
\meta{field-font-cs}\marg{\cmd{glsaccessfmt\meta{field}}\margm{insert}\marg{\gls{glsxtrgenentrytextfmt}}\margm{entry-label}\margm{internal-field}}
\end{codebox}
otherwise it does:
\begin{codebox}
\meta{field-font-cs}\marg{\cmd{glsaccess\meta{field}}\margm{entry-label}\gls{glsxtrgenentrytextfmt}\margm{insert}}
\end{codebox}
(See \sectionref{sec:accsupp} for the \qt{access} commands.)
\end{enumerate}
For example, the \idx{linktext} for \gls{glstext} is:
\begin{codebox}
\gls{glsifapplyinnerfmtfield}\margm{entry-label}\marg{text}\%
\marg{\%
\meta{field-font-cs}\marg{\gls{glsaccessfmttext}\margm{insert}\marg{\gls{glsxtrgenentrytextfmt}}\margm{entry-label}}\%
}\%
\marg{\%
\meta{field-font-cs}\marg{\gls{glsaccesstext}\margm{entry-label}\gls{glsxtrgenentrytextfmt}\margm{insert}}\%
}
\end{codebox}
The \csfmt{glsaccessfmt\meta{field}} commands internally use
\gls{glsfmtfield} to apply the \idx{innerformatting}.
\cmddef{glsifapplyinnerfmtfield}
This determines whether or not the field identified by its
\idx{internalfieldlabel} for the given entry should have its value
encapsulated by the \idx{innerformatting} command. False indicates that
the field value already contains the \idx{innerformatting} command.
\cmddef{glsexclapplyinnerfmtfield}
Locally adds the given field identified by its
\idx{internalfieldlabel} to the exclusion list for the given entry.
\cmddef{glsfmtfield}
This command applies the formatting command \meta{cs} (which takes one
argument) to the entry's field value identified by the given
\idx{internalfieldlabel}, including \meta{insert} appended.
This ensures that the internal control sequence used to store the
field's value is expanded before \meta{cs} is applied.
\cmddef{Glsfmtfield}
As above but \idx{sentencecase}.
\cmddef{GLSfmtfield}
As above but \idx{allcaps}.
\subsection{Post Link Hook}
\label{sec:postlinkhook}
The \idx{postlinkhook} is a convenient way of automatically
appending content after each instant of the \idx{glslike} and
\idx{glstextlike} commands. The simplest method of implementing
this is with the \idx{catpostlinkhook}, which is only applied to
entries that have the given category. For example, the following
will place an asterisk (*) after all entries with the default
\cat{general} category:
\begin{codebox}
\gls{glsdefpostlink}\marg{\cat{general}}\marg{*}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{symbol}{X},
\gloskeyval{description}{an example}}
\cbeg{document}
\gls{Gls}\marg{sample}, \gls{glstext}\marg{sample}, \gls{glsdesc}\marg{sample}
and \gls{glssymbol}\marg{sample}.
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[title={Category post-link hook},
label={ex:catpostlink},
description={Example document illustrating a simple category
post-link hook}]
{%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{glsdefpostlink}\marg{general}\marg{*}^^J%
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{symbol}{X},\gloskeyval{description}{an example}}
}
{%
\gls{Gls}\marg{sample}, \gls{glstext}\marg{sample},
\gls{glsdesc}\marg{sample} and \gls{glssymbol}\marg{sample}.
}
\end{resultbox}
Typically, the \idx{catpostlinkhook} is more likely to include some
conditional, such as to only insert text on \idx{firstuse}.
For example, \gls{glsxtrpostlinkAddDescOnFirstUse} can be used to
insert the description in parentheses after the \idx{firstuse}.
\begin{warning}
The \qt{post} abbreviation styles all set the \idx{catpostlinkhook},
which will overwrite any previous definition for the abbreviation's
category.
\end{warning}
Within the \idx{postlinkhook}, you can use the placeholder commands,
such as \gls{glslabel} (see \sectionref{sec:entryfmt}), but note
that you can't use \gls{ifglsused} to determine whether or not the
entry has been used, since the \idx{postlinkhook} comes after the
entry has been unset. Instead, use \gls{glsxtrifwasfirstuse}.
Additional commands provided for use within the
\idxpl{postlinkhook} are described in this section.
The \idx{postlinkhook} is implemented with \gls{glspostlinkhook},
which is defined by the base \sty{glossaries} package. It's used at
the end of the \idx{glslike} and \idx{glstextlike} commands. The
original base definition does nothing, but \sty{glossaries-extra}
redefines this:
\begin{compactcodebox}
\cmd{renewcommand}*\marg{\gls{glspostlinkhook}}\marg{\%
\gls{ifglsentryexists}\marg{\gls{glslabel}}\marg{\gls{glsxtrpostlinkhook}}\marg{}\%
}
\end{compactcodebox}
This uses:
\cmddef{glsxtrpostlinkhook}
which is the main \sty{glossaries-extra} \idx{postlinkhook}.
\begin{important}
If you are migrating over from only using the base \sty{glossaries} package and
you have redefined \gls{glspostlinkhook}, consider moving your
modifications to the \idx{catpostlinkhook} or prepend to \gls{glsxtrpostlink},
as some attributes and abbreviation styles rely on the features
provided by \gls{glsxtrpostlinkhook}.
\end{important}
The main \idx{postlinkhook} is defined as:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{glsxtrpostlinkhook}}\marg{\%
\gls{glsxtrdiscardperiod}\marg{\gls{glslabel}}\%
\marg{\gls{glsxtrpostlinkendsentence}}\%
\marg{\gls{glsxtrifcustomdiscardperiod}
\marg{\gls{glsxtrifperiod}\marg{\gls{glsxtrpostlinkendsentence}}\marg{\gls{glsxtrpostlink}}}\%
\marg{\gls{glsxtrpostlink}}\%
}\%
}
\end{compactcodebox}
This checks if a following \idx{fullstop} needs to be
discarded and does the inner \idx{postlinkhook} \gls{glsxtrpostlink}.
Note that \gls{glsxtrdiscardperiod} and \gls{glsxtrifperiod} look
ahead for a following token, so if you need to modify this command,
insert your custom code at the start or add it to
the \idx{catpostlinkhook} instead.
\cmddef{glsxtrdiscardperiod}
This discards \meta{token} if it's a \idx{fullstop} and the
entry's \idxpl{categoryattribute} indicate that a \idx{fullstop}
should be discarded (such as \catattr{discardperiod}). If the
punctuation character is discarded, this will then do
\meta{discarded}, otherwise it will do \meta{no discard} and process \meta{token} as
usual. If the \catattr{retainfirstuseperiod} attribute is set, then
the following command is used to determine whether or not to discard
\meta{token}.
\cmddef{glsxtrdiscardperiodretainfirstuse}
This was introduced in v1.49 and is defined as:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{glsxtrdiscardperiodretainfirstuse}}[3]\marg{\comment{}
\gls{glsxtrifwassubsequentorshort}\marg{\gls{glsxtrifperiod}\marg{\#2}\marg{\#3}}\marg{\#3}\comment{}
}
\end{compactcodebox}
This will only discard the \idx{fullstop} if it follows the
\idx{subsequentuse} of a \idx{glslike} command or if it follows one
of the \gls{glsxtrshort} set of commands.
Note that this has a different effect from pre v1.49 with the
\idx{glstextlike} commands, but it's more appropriate since it's
typically only the short form that requires the period to be
discarded. To restore the original behaviour:
\begin{compactcodebox}
\cmd{renewcommand}*\marg{\gls{glsxtrdiscardperiodretainfirstuse}}[3]\marg{\comment{}
\gls{glsxtrifwasfirstuse}\marg{\#3}\marg{\gls{glsxtrifperiod}\marg{\#2}\marg{\#3}}\comment{}
}
\end{compactcodebox}
If you want your own custom code to determine whether or not to check
for a period (instead of using known category attributes), you can
redefine:
\cmddef{glsxtrifcustomdiscardperiod}
This should expand to \meta{true} if a check should be performed,
otherwise it should expand to \meta{false}. The default definition
simply does \meta{false}.
\cmddef{glsxtrpostlinkendsentence}
This is done if a \idx{fullstop} is discarded. If there is a
\idx{catpostlinkhook} for the entry's category, that hook is
performed (\gls{glsxtrpostlinkcat} not \gls{glsxtrpostlink}) and the
\idx{fullstop} is put back followed by a space factor adjustment.
Otherwise, just the space factor adjustment is done.
The test to determine whether or not \meta{token} is a
\idx{fullstop} is determined by:
\cmddef{glsxtrifperiod}
It may be useful to test for other punctuation characters. For
example, styles such as \abbrstyle{short-postfootnote} will
move the footnote after certain punctuation characters.
\cmddef{glsxtrifnextpunc}
This does \meta{true} if it's followed by one of the set of
recognised punctuation characters, otherwise it does false. The set
is initialised to \code{.,:;?!} (\idx{fullstop}, comma, colon,
semi-colon, question mark, and exclamation mark).
A convenient way of moving code after the punctuation character is
to use:
\cmddef{glsxtrdopostpunc}
If \meta{token} is a recognised punctuation character,
this will place \meta{code} after the token, otherwise it will be
placed before the token.
The earlier example can be adapted to put the asterisk after
following punctuation:
\begin{codebox}
\gls{glsdefpostlink}\marg{\cat{general}}\marg{\gls{glsxtrdopostpunc}\marg{*}}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{symbol}{X},
\gloskeyval{description}{an example}}
\cbeg{document}
\gls{Gls}\marg{sample}, \gls{glstext}\marg{sample},
(\gls{glsdesc}\marg{sample}) and \gls{glssymbol}\marg{sample}.
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[title={Category post-link hook with punctuation
lookahead},
label={ex:catpostlinkpunc},
description={Example document illustrating a category
post-link hook that transfers content after a following punctuation
character}]
{%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{glsdefpostlink}\marg{general}\marg{\gls{glsxtrdopostpunc}\marg{*}}^^J%
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{symbol}{X},\gloskeyval{description}{an example}}
}
{%
\gls{Gls}\marg{sample}, \gls{glstext}\marg{sample},
(\gls{glsdesc}\marg{sample}) and \gls{glssymbol}\marg{sample}.
}
\end{resultbox}
Note that the asterisk isn't moved after the closing parenthesis.
This is because that character isn't included in the default list.
You can add additional punctuation marks with:
\cmddef{glsxtraddpunctuationmark}
You may list multiple characters at the same time to add a batch,
but don't add any separators (including spaces).
\begin{important}
Note that each character must be a single token, which means a single-byte
character for \pdfLaTeX. Multi-byte characters (\idx{utf8}) will
required a native Unicode engine (\XeLaTeX\ or \LuaLaTeX).
\end{important}
For example:
\begin{codebox}
\gls{glsxtraddpunctuationmark}\marg{-'/}
\end{codebox}
This adds three extra punctuation marks (hyphen, apostrophe and
slash). Note that this doesn't allow for closing double-quotes and
will break \code{'{}'} (double apostrophe sequence for a closing
double-quote) if found. The following will only work with
\XeLaTeX\ or \LuaLaTeX:
\begin{unicodebox}
\cmd{usepackage}\marg{fontspec}
\cmd{usepackage}\marg{glossaries-extra}
\gls{glsxtraddpunctuationmark}\marg{\textrm{\textquotedblright}}
\end{unicodebox}
You can set the list with:
\cmddef{glsxtrsetpunctuationmarks}
This will remove the default set as well as any additional
characters. As above, each character must be a single token with no
separators in the list.
For example:
\begin{codebox}
\gls{glsxtrsetpunctuationmarks}\marg{.?!}
\end{codebox}
This sets the list to just three punctuation characters (so comma,
colon, and semi-colon are no longer recognised).
\cmddef{glsxtrpostlink}
This does the \idx{catpostlinkhook} (or nothing if it hasn't been
defined):
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{glsxtrpostlink}}\marg{\%
\cmd{csuse}\marg{glsxtrpostlink\gls{glscategory}\marg{\gls{glslabel}}}\%
}
\end{compactcodebox}
Customisation is best performed within the \idx{catpostlinkhook},
which can be defined (or redefined) with:
\cmddef{glsdefpostlink}
The first argument is the category label and the second is the code
to perform. Note that this doesn't check if the hook has already
been defined for the category. The hook is a command in the form
\gls{glsxtrpostlinkcat}. If the category label only consists
of letters, you can also use \gls{newcommand} or \gls{renewcommand}
instead.
\cmddef{glspretopostlink}
Similar to the above but prepends \meta{code} to the associated
hook (or simply defines it, if the hook doesn't already exist).
\cmddef{glsapptopostlink}
Similar to the above but appends \meta{code} to the associated
hook.
\begin{warning}
Take care not to choose category labels that will cause a conflict.
For example, \code{endsentence} and \code{hook} will conflict with
the commands \gls{glsxtrpostlinkendsentence} and \gls{glsxtrpostlinkhook}.
\end{warning}
If you want code in the \idx{postlinkhook} that's not dependent on
the category, consider prepending it to \gls{glsxtrpostlink} or
\gls{glsxtrpostlinkhook}. Don't append it to
\gls{glsxtrpostlinkhook} otherwise it will interfere with the
punctuation lookahead.
For convenience, some commands are provided that may be of use in
the \idx{catpostlinkhook}:
\cmddef{glsxtrpostlinkAddDescOnFirstUse}
This will add the \gloskey{description} in parentheses if the hook follows the
\idx{firstuse} of the entry. This incorporates the inner formatting
and description accessibility support, if provided.
\cmddef{glsxtrpostlinkAddSymbolOnFirstUse}
This will add the \gloskey{symbol} in parentheses if that field is
set and the hook follows the \idx{firstuse} of the entry. This
incorporates the inner formatting and symbol accessibility support,
if provided.
\cmddef{glsxtrpostlinkAddSymbolDescOnFirstUse}
This will add the \gloskey{symbol}, if that field is set, and the
\gloskey{description} (both within the same set of parentheses), if the hook follows
the \idx{firstuse} of the entry. This incorporates the inner
formatting and accessibility support, if provided.
The separator between the symbol and description is given by:
\cmddef{glsxtrpostlinkSymbolDescSep}
The default is a comma followed by a space.
For example:
\begin{codebox}
\gls{glsdefpostlink}\marg{\cat{general}}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}
\gls{glsdefpostlink}\marg{\cat{symbol}}\marg{\gls{glsxtrpostlinkAddSymbolOnFirstUse}}
\gls{glsdefpostlink}\marg{\cat{number}}\marg{\gls{glsxtrpostlinkAddSymbolDescOnFirstUse}}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}
\gls{newglossaryentry}\marg{alpha}\marg{\gloskeyval{name}{alpha},\gloskeyval{symbol}{\cmd{ensuremath}\marg{\cmd{alpha}}},
\gloskeyval{description}{a symbol},\gloskeyval{category}{\cat{symbol}}}
\gls{newglossaryentry}\marg{pi}\marg{\gloskeyval{name}{pi},\gloskeyval{symbol}{\cmd{ensuremath}\marg{\cmd{pi}}},
\gloskeyval{description}{a constant},\gloskeyval{category}{\cat{number}}}
\cbeg{document}
First use: \gls{gls}\marg{sample}, \gls{gls}\marg{alpha}, \gls{gls}\marg{pi}.
\codepar
Next use: \gls{gls}\marg{sample}, \gls{gls}\marg{alpha}, \gls{gls}\marg{pi}.
\cend{document}
\end{codebox}
This produces:
\begin{resultbox}
\createexample*[title={Category post-link hooks},
label={ex:catpostlinkfirstuse},
description={Example document that uses category post-link hooks to
append additional information after the link text on first use}]
{%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{glsdefpostlink}\marg{general}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}^^J%
\gls{glsdefpostlink}\marg{symbol}\marg{\gls{glsxtrpostlinkAddSymbolOnFirstUse}}^^J%
\gls{glsdefpostlink}\marg{number}\marg{\gls{glsxtrpostlinkAddSymbolDescOnFirstUse}}^^J%
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}^^J%
\gls{newglossaryentry}\marg{alpha}\marg{\gloskeyval{name}{alpha},\gloskeyval{symbol}{\cmd{ensuremath}\marg{\cmd{alpha}}},^^J%
\gloskeyval{description}{a symbol},\gloskeyval{category}{symbol}}^^J%
\gls{newglossaryentry}\marg{pi}\marg{\gloskeyval{name}{pi},\gloskeyval{symbol}{\cmd{ensuremath}\marg{\cmd{pi}}},^^J%
\gloskeyval{description}{a constant},\gloskeyval{category}{number}}
}
{%
First use: \gls{gls}\marg{sample}, \gls{gls}\marg{alpha}, \gls{gls}\marg{pi}.
\codepar
Next use: \gls{gls}\marg{sample}, \gls{gls}\marg{alpha}, \gls{gls}\marg{pi}.
}
\end{resultbox}
The following commands are also provided for use in the
\idx{postlinkhook}:
\cmddef{glsxtrcurrentfield}
This expands to empty if the calling command isn't associated with
one specific field (such as \gls{glslink}, the \idx{glslike}
commands, the \idx{inlinefullform} commands) otherwise it will
expand to the name of the key associated with the \emph{singular}
form of the command. For example, this command will expand to
\code{text} for both \gls{glstext} and \gls{glsplural}, to
\code{description} for both \gls{glsdesc} and \gls{glsdescplural}, and
to \code{short} for both \gls{glsxtrshort} and \gls{glsxtrshortpl}.
Whereas it will expand to nothing for both \gls{gls} and
\gls{glsxtrfull}.
\cmddef{glsxtrifwasglslike}
This expands to \meta{true} if the calling command was a \idx{glslike} command
and to \meta{false} otherwise.
\cmddef{glsxtrifwasglslikeandfirstuse}
This expands to \meta{true} if the calling command was a \idx{glslike} command
and was the \idx{firstuse} otherwise it expands to \meta{false}.
This is simply a shortcut command that uses both
\gls{glsxtrifwasglslike} and \gls{glsxtrifwasfirstuse}.
\cmddef{glsxtrifwassubsequentuse}
This expands to \meta{true} if the calling command was a \idx{glslike} command
and was the \idx{subsequentuse} otherwise it expands to \meta{false}.
This is simply a shortcut command that uses both
\gls{glsxtrifwasglslike} and \gls{glsxtrifwasfirstuse}.
\cmddef{glsxtrifwassubsequentorshort}
This expands to \meta{true} if the calling command was a \idx{glslike} command
and was the \idx{subsequentuse} or if the calling command set
\gls{glsxtrcurrentfield} to \code{short}. Otherwise it expands to
\meta{false}.
\cmddef{glsxtrifallcaps}
This simply does:
\begin{compactcodebox}
\gls{glscapscase}\margm{not all caps}\margm{not all caps}\margm{all caps}
\end{compactcodebox}
It's not usually necessary for the \idx{postlinkhook} to
differentiate between no case-change and \idx+{sentencecase}, so this
provides a convenient shortcut if only the \idx+{allcaps} case needs
to be different.
It's possible you may also want to reference the inserted material.
For the \idx{glslike} commands, this can be obtained with the
placeholder \gls{glsinsert}, but it's not normally set by the
\idx{glstextlike} commands, which don't use the entry format style
(\sectionref{sec:entryfmt}) and instead incorporate the inserted
material at the end of the \idx{linktext}. If you want the \idx{postlinkhook} to
be able to access the inserted material for the \idx{glstextlike}
commands, you must first save it, by redefining the following:
\cmddef{glsxtrsaveinsert}
This is used by the \idx{glstextlike} commands to initialise \gls{glsinsert}.
The default is:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{glsxtrsaveinsert}}[2]\marg{\cmd{def}\gls{glsinsert}\marg{}}
\end{compactcodebox}
For example, to always save the insert:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsxtrsaveinsert}}[2]\marg{\cmd{def}\gls{glsinsert}\marg{\#2}}
\end{codebox}
The first argument can be used to conditionally assign the insert.
For example, the following will only save it for entries with the
\cat{general} category:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsxtrsaveinsert}}[2]\marg{\%
\gls{glsifcategory}\marg{\#1}\marg{\cat{general}}\marg{\cmd{def}\gls{glsinsert}\marg{\#2}}\marg{\cmd{def}\gls{glsinsert}\marg{}}\%
}
\end{codebox}
If you only want to save the insert for the \gls{glsxtrfull} set of
commands, you can redefine \gls{glsxtrfullsaveinsert} instead (see
\sectionref{sec:abbrvfieldrefs}).
\cmddef{glsxtrassignlinktextfmt}
This contains the assignments required to ensure that \gls{glslabel},
\gls{glstextformat} and \gls{glsxtrgenentrytextfmt} have the
definitions they had within the \idx{linktext}. They would
ordinarily still have those definitions within the
\idx{postlinkhook}, but if, for example, the hook contains content
that may be deferred, such as a footnote, then judicious use and
expansion of \gls{glsxtrassignlinktextfmt} can allow the deferred
code to pick up the label, outer and inner formatting.
For example, the \idx{postlinkhook} might contain:
\begin{codebox}
\gls+{expandafter}\gls+{footnote}\gls{expandafter}
\marg{\gls{glsxtrassignlinktextfmt}\gls{glstextformat}\marg{\%
\gls{Glsaccessfmtdesc}\marg{}\marg{\gls{glsxtrgenentrytextfmt}}\marg{\gls{glslabel}}}.}
\end{codebox}
\subsection{Entry Format Style}
\label{sec:entryfmt}
\begin{information}
This section is for advanced users. Minor modifications can be made
by adjusting the outer formatting (\sectionref{sec:glstextformat}),
the \idx{postlinkhook} (\sectionref{sec:postlinkhook}) or the
abbreviation style commands (\sectionref{sec:abbrvcmds}).
\end{information}
The \idx{glslike} commands have the \idx{linktext} set to the entry
format style corresponding to the entry's glossary \gloskey{type}.
This can be changed with \gls{defglsentryfmt}, but the default style
is given by \gls{glsentryfmt}, which is defined by the base
\sty{glossaries} package. This uses the placeholder commands
to determine the appropriate text. These are described in the
\sty{glossaries} manual, but to recap they are: \gls{glslabel} (the entry's label),
\gls{glscustomtext} (text provided by \gls{glsdisp} or empty
otherwise), \gls{glsinsert} (supplied in the final optional argument
except for \gls{glsdisp}, empty by default), \gls{glsifplural}, and
\gls{glscapscase}.
The \sty{glossaries-extra} package redefines \gls{glsentryfmt} to
test whether or not the entry is an abbreviation and, if so, whether
or not the entry should be treated as a regular entry:
\begin{compactcodebox}
\cmd{renewcommand}*\marg{\gls{glsentryfmt}}\marg{\%
\gls{ifglshasshort}\marg{\gls{glslabel}}
\marg{\gls{glssetabbrvfmt}\marg{\gls{glscategory}\marg{\gls{glslabel}}}}\marg{}\%
\gls{glsifregular}\marg{\gls{glslabel}}\%
\marg{\gls{glsxtrregularfont}\marg{\gls{glsgenentryfmt}}}\%
\marg{\%
\gls{ifglshasshort}\marg{\gls{glslabel}}\%
\marg{\gls{glsxtrabbreviationfont}\marg{\gls{glsxtrgenabbrvfmt}}}\%
\marg{\gls{glsxtrregularfont}\marg{\gls{glsgenentryfmt}}}\%
}\%
}
\end{compactcodebox}
This uses \gls{ifglshasshort} to determine whether or not the entry
is an abbreviation. If it is, then \gls{glssetabbrvfmt} is used to
setup the abbreviation style commands for the entry's category.
Then there's a check (with \gls{glsifregular}) to determine whether
or not the entry should be treated as a regular entry. Note that if
the \catattr{regular} attribute hasn't been set to \code{true}, the
entry will still be treated as a regular entry if it doesn't have
the \gloskey{short} field set.
Regular entries are formatted according to:
\cmddef{glsgenentryfmt}
This is the generic regular entry format. It's encapsulated with
\gls{glsxtrregularfont}, but note that if the entry is an
abbreviation, it will still use the abbreviation style formatting
commands, which are contained within the \gloskey{first},
\gloskey{firstplural}, \gloskey{text} and \gloskey{plural} field
values.
The generic regular entry format \gls{glsgenentryfmt} is provided by
the base \sty{glossaries} package, but is redefined by
\sty{glossaries-extra} to support inner formatting
(\sectionref{sec:innertextformat}) and accessibility
(\sectionref{sec:accsupp}), if required.
Abbreviations that aren't considered regular, are formatted
according to:
\cmddef{glsxtrgenabbrvfmt}
This is the generic non-regular abbreviation format. It's
encapsulated with \gls{glsxtrabbreviationfont}. Unlike \gls{glsgenentryfmt}
this doesn't reference the \gloskey{first}, \gloskey{firstplural},
\gloskey{text} or \gloskey{plural} fields, but instead uses the
abbreviation formatting commands \gls{glsxtrfullformat},
\gls{glsxtrsubsequentfmt} and their plural and case-changing variants.
If you want to define your own custom entry format, you will need to
consider whether or not your format should support regular and
non-regular abbreviation styles. Further detail can be found in the
documented code:
\texdocref{glossaries-extra-code}
\section{Hyperlinks}
\label{sec:hyper}
The \idx{glslike} and \idx{glstextlike} commands will automatically
create a hyperlink by default, if \sty{hyperref} has been loaded
(before \sty{glossaries}\slash \sty{glossaries-extra}). The
hyperlink can be switched off with \glsoptval{hyper}{false} but will
also be switched off if the entry was assigned to an
\idx{ignoredglossary} that was defined with the unstarred
\gls{newignoredglossary}.
The \optval{hyperfirst}{false} package option and the category attributes
\catattr{nohyper}, \catattr{nohyperfirst} and \catattr{nohypernext}
can also be used to automatically switch off the hyperlink.
See also the \glsopt{hyperoutside} option that determines whether
the hyperlink should be inside or outside of the outer formatting.
The hyperlink target is usually created by \gls{glstarget} which is
used by all the predefined \idxpl{glossarystyle} by the standalone
commands, such as \gls{GlsXtrStandaloneEntryName}.
The target for an entry with the label \meta{entry-label} is in the
form \meta{prefix}\meta{entry-label}. The \meta{prefix} is normally
\gls{glolinkprefix} but may be changed with the \printglossopt{prefix}
option when displaying the \idx{glossary}.
The target can also be changed to a link to an external file with
the \catattr{targeturl} category attribute.
\section{Label Prefixes}
\label{sec:labelprefixes}
It's possible that you may want to prefix labels to ensure
uniqueness. For example, this manual references both the
\gls{makeglossaries} command and the \app{makeglossaries} Perl
script. They are both defined as \idx{glossary} entries, but they
can't both have the label \code{makeglossaries}. This manual uses
\app{bib2gls} and is quite complicated, but a simplified version is
as follows:
\begin{codebox}
\cmd{newcommand}\marg{\cmd{csfmt}}[1]\marg{\cmd{texttt}\marg{\glsbackslash\#1}}
\cmd{newcommand}\marg{\cmd{appfmt}}[1]\marg{\cmd{texttt}\marg{\#1}}
\gls{newglossaryentry}\marg{cs.makeglossaries}\marg{\gloskeyval{name}{\cmd{csfmt}\marg{makeglossaries}},
\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{app.makeglossaries}\marg{\gloskeyval{name}{\cmd{appfmt}\marg{makeglossaries}},
\gloskeyval{description}{}}
\end{codebox}
So the label \code{cs.makeglossaries} refers to \gls{makeglossaries}
and \code{app.makeglossaries} refers to \app{makeglossaries}.
If you have a lot of prefixes like this, you may prefer to have a
command that automatically adds the prefix. For example,
\begin{codebox}
\cmd{newcommand}*\marg{\cmd{cs}}[2][]\marg{\gls{gls}\oarg{\#1}\marg{cs.\#2}}
\end{codebox}
The problem with this is that the custom command \csfmt{cs}
doesn't allow for the \cmdmod{star}, \cmdmod{plus} and
\cmdmod{alt-mod} modifiers (such as \code{\gls{gls}*} or \code{\gls{gls}+}).
Instead you can use:
\cmddef{glsxtrnewgls}
which defines the command
\begin{compactcodebox}
\meta{cs}\meta{modifier}\oargm{options}\margm{entry-label}\oargm{insert}
\end{compactcodebox}
that behaves like
\begin{compactcodebox}
\gls{gls}\meta{modifier}\oarg{\meta{default options},\meta{options}}\marg{\meta{prefix}\meta{entry-label}}\oargm{insert}
\end{compactcodebox}
For example:
\begin{codebox}
\gls{glsxtrnewgls}\marg{cs.}\marg{\cmd{cs}}
\end{codebox}
or (to default to no hyperlinks)
\begin{codebox}
\gls{glsxtrnewgls}\oarg{\glsoptval{hyper}{false}}\marg{sym.}\marg{\cmd{cs}}
\end{codebox}
now you can use \code{\cmd{cs}+\marg{M}} to behave like \code{\gls{gls}+\marg{cs.M}}.
If you also want the plural and \idx{sentencecase}
versions you can use
\cmddef{glsxtrnewglslike}
For example:
\begin{codebox}
\gls{glsxtrnewglslike}\oarg{\glsoptval{hyper}{false}}\marg{idx.}\marg{\cmd{idx}}\marg{\cmd{idxpl}}\marg{\cmd{Idx}}\marg{\cmd{Idxpl}}
\end{codebox}
For the \idx{allcaps} versions:
\cmddef{glsxtrnewGLSlike}
For example:
\begin{codebox}
\gls{glsxtrnewGLSlike}\oarg{\glsoptval{hyper}{false}}\marg{idx.}\marg{\cmd{IDX}}\marg{\cmd{IDXpl}}
\end{codebox}
For commands that require the link text to be specified, you can use:
\cmddef{glsxtrnewglslink}
which defines
\code{\meta{cs}\oargm{options}\margm{label}\margm{text}} to behave
like
\code{\gls{glslink}\oarg{\meta{default-options},\meta{options}}\marg{\meta{prefix}\meta{label}}\margm{text}},
or
\cmddef{glsxtrnewglsdisp}
which defines
\code{\meta{cs}\oargm{options}\margm{label}\margm{text}} to behave
like
\code{\gls{glsdisp}\oarg{\meta{default-options},\meta{options}}\marg{\meta{prefix}\meta{label}}\margm{text}}.
If you are using \app{bib2gls}, it can pick up the custom commands
that are defined using the above, so it can detect dependencies when
it parses fields such as \gloskey{description}.
If you provide your own custom command with just
\gls{newcommand} that has syntax that starts with
\oargm{options}\margm{entry-label}, then you can notify \app{bib2gls} using:
\cmddef{glsxtridentifyglslike}
where \meta{label-prefix} is the prefix to apply to the label that's
passed to the command \meta{cs}. The information is written to the
\ext{aux} file so that \app{bib2gls} can add the given
command to those it looks for when searching for dependencies.
Another possibility when using \app{bib2gls} is to set up known
label prefixes, see \sectionref{sec:dgls} for further details.
If you use \app{bib2gls} with record counting, there are
commands to \gls{glsxtrnewgls} for \gls{rgls}:
\cmddef{glsxtrnewrgls}
and for \gls{rgls}, \gls{rglspl}, \gls{rGls} and \gls{rGlspl}:
\cmddef{glsxtrnewrglslike}
and for \idx{allcaps}:
\cmddef{glsxtrnewrGLSlike}
Defining commands in this manner (rather than simply using
\csfmt{newcommand}) also allows the command to be identified as a
\idx{sentencecase} blocker to prevent the label from being converted
or, in the case of \gls{glsxtrnewglslike} and
\gls{glsxtrnewrglslike}, as a mapping. See
\sectionref{sec:casechange} for further details.
\section{Indexing}
\label{sec:wrglossary}
\Idx{indexing} is normally performed implicitly by the \idx{glslike}
and \idx{glstextlike} commands, but this action can be prevented,
such as by using the option \glsoptval{noindex}{true}. These commands also
generate text (the \idx{linktext}, \sectionref{sec:entryfmtmods}).
If you want to simply index an entry (to ensure that an entry is
shown in the \idx{glossary}) without producing any text then you can use
\gls{glsadd}. \Idx{indexing} is also performed by cross-referencing
commands, such as \gls{glssee}. In the case of \app{makeindex},
\gls{glssee} simply behaves like \gls{glsadd} with a special format
and the \location\ set to Z (which pushes it to the end of the
\idx{locationlist}). Entries in \idxpl{ignoredglossary} can only be
\indexed\ with \app{bib2gls}.
If you want \emph{all} defined entries to appear in the
\idx{glossary}, regardless of whether or not they have been used in
the document, then you can use \gls{glsaddall} or \gls{glsaddallunused}
(both provided by the base \sty{glossaries} package). These both
iterate over all entries (in all non-\idxpl{ignoredglossary}). In
the first case (\gls{glsaddall}), every entry is \indexed\ with the
\gls{glsadd} options provided in the optional argument of
\gls{glsaddall}. In the second case (\gls{glsaddallunused}), only
those entries that haven't been marked as \idxc{firstuseflag}{used}
so far will be indexed using
\code{\gls{glsadd}\oarg{\glsoptval{format}{glsignore}}\margm{label}}.
See the \sty{glossaries} manual for further details of those
commands.
The \sty{glossaries-extra} package provides a similar command:
\cmddef{glsaddallunindexed}
This is like \gls{glsaddallunused} but indexes all entries that
haven't been \indexed\ so far (again using the option \glsoptval{format}{glsignore}).
This is preferable to \gls{glsaddallunused} if you have to reset the
\idx{firstuseflag} for any entries. As with \gls{glsaddallunused},
if this command is required, it should be placed near the end of the
document. Indexing any entries after either of these commands are
used will cause spurious commas in the \idxpl{locationlist}.
\begin{important}
Iterative commands such as \gls{glsaddall}, \gls{glsaddallunused}
and \gls{glsaddallunindexed}
should not be used with \app{bib2gls}. Use the
\resourceoptval{selection}{all} option instead.
\end{important}
If you want to index a specific subset of entries, rather than all
entries for a given glossary, you can use:
\cmddef{glsaddeach}
This does \code{\gls{glsadd}\oargm{options}\margm{entry-label}} for
each entry in the comma-separated \meta{entry label list}. This
command may be used with \app{bib2gls}, although it may be simpler
to adjust the selection criteria or use filtering.
Explicit ranges can be formed by including \idx{sym.startrange} and
\idx{sym.endrange} at the start of the \glsopt{format} value. For
example:
\begin{codebox}
\gls{glsadd}\oarg{\glsoptval{format}{\sym{startrange}}}\marg{example}
\ldots
\gls{glsadd}\oarg{\glsoptval{format}{\sym{endrange}}}\marg{example}
\end{codebox}
(See the \sty{glossaries} manual for further details.) However, the
isolated open and close parentheses can upset syntax highlighting.
So the \sty{glossaries-extra} package provides the following
commands, which automatically add \sym{startrange} and
\sym{endrange}.
\cmddef{glsstartrange}
This effectively does:
\begin{compactcodebox}
\gls{glsaddeach}\oarg{\meta{options},\glsoptval{format}{\sym{startrange}\meta{encap}}}\margm{entry-label
list}
\end{compactcodebox}
\cmddef{glsendrange}
This effectively does:
\begin{compactcodebox}
\gls{glsaddeach}\oarg{\meta{options},\glsoptval{format}{\sym{endrange}\meta{encap}}}\margm{entry-label
list}
\end{compactcodebox}
The default value of \meta{encap} will be the same as the default
number format (which can be changed with
\gls{GlsXtrSetDefaultNumberFormat}). If you want a different default
for ranges, use:
\cmddef{GlsXtrSetDefaultRangeFormat}
This sets the default format for \gls{glsstartrange} and
\gls{glsendrange}. Note that this format won't be applied if you
explicitly create a range with \gls{glsadd} or \gls{glsaddeach}.
Alternatively, you can use \glsoptval{format}{encap} in
\meta{options}, but remember that this will need to be the same in
both \gls{glsstartrange} and \gls{glsendrange}. For example:
\begin{codebox}
\gls{glsstartrange}\oarg{\glsoptval{format}{\encap{hyperbf}}}\marg{example}
\ldots
\gls{glsendrange}\oarg{\glsoptval{format}{\encap{hyperbf}}}\marg{example}
\end{codebox}
This is the same as:
\begin{codebox}
\gls{GlsXtrSetDefaultRangeFormat}\marg{\encap{hyperbf}}
\gls{glsstartrange}\marg{example}
\ldots
\gls{glsendrange}\marg{example}
\end{codebox}
which is the same as:
\begin{codebox}
\gls{glsadd}\oarg{\glsoptval{format}{\sym{startrange}\encap{hyperbf}}}\marg{example}
\ldots
\gls{glsadd}\oarg{\glsoptval{format}{\sym{endrange}\encap{hyperbf}}}\marg{example}
\end{codebox}
The mandatory argument of \gls{glsstartrange} and \gls{glsendrange}
may be a comma-separated list of entry labels. For example:
\begin{codebox}
\gls{glsstartrange}\marg{duck,goose}
\ldots
\gls{glsendrange}\marg{duck,goose}
\end{codebox}
This is essentially the same as:
\begin{codebox}
\gls{glsadd}\oarg{\glsoptval{format}{\sym{startrange}}}\marg{duck}\comment{}
\gls{glsadd}\oarg{\glsoptval{format}{\sym{startrange}}}\marg{goose}
\ldots
\gls{glsadd}\oarg{\glsoptval{format}{\sym{endrange}}}\marg{duck}\comment{}
\gls{glsadd}\oarg{\glsoptval{format}{\sym{endrange}}}\marg{goose}
\end{codebox}
\cmddef{GlsXtrAutoAddOnFormat}
This will make the \idx{glslike} and \idx{glstextlike} commands
automatically use \code{\gls{glsadd}\oargm{gls\-add
options}\margm{entry-label}} whenever a \idx{glslike} or
\idx{glstextlike} command is used for the entry given by
\meta{entry-label} when the \glsopt{format} matches
one of the formats in the comma-separated \meta{format list}
The optional argument \meta{label} defaults to \gls{glslabel} (which
will match \meta{entry-label} that was used with \gls{gls} etc) and
indicates the entry label to use in \gls{glsadd} and so needs to be
expandable. The \meta{format list} is a comma-separated list
of format values that will trigger the automated adding. The
\meta{glsadd options} are the options to pass to \gls{glsadd} with
\glsoptval{format}{\marg{format}} prepended to the list.
For example, with:
\begin{codebox}
\gls{GlsXtrAutoAddOnFormat}\marg{hyperbf}\marg{\glsoptval{counter}{chapter}}
\end{codebox}
then \code{\gls{gls}\oarg{\glsoptval{format}{hyperbf}}\marg{sample}}
will be equivalent to:
\begin{compactcodebox}
\gls{glsadd}\oarg{\glsoptval{format}{hyperbf},\glsoptval{counter}{chapter}}\marg{sample}\gls{gls}\oarg{\glsoptval{format}{hyperbf}}\marg{sample}
\end{compactcodebox}
Note that the explicit range markers will prevent a match
unless you include them in \meta{format list} (in which case, be
sure to add both the start and end formats).
Here's another example:
\begin{codebox}
\gls{GlsXtrAutoAddOnFormat}\oarg{dual.\gls{glslabel}}\marg{hyperbf}\marg{}
\end{codebox}
In this case
\code{\gls{gls}\oarg{\glsoptval{format}{hyperbf}}\marg{sample}} will
now be equivalent to:
\begin{codebox}
\gls{glsadd}\oarg{\glsoptval{format}{hyperbf}}\marg{dual.sample}\gls{gls}\oarg{\glsoptval{format}{hyperbf}}\marg{sample}
\end{codebox}
\begin{important}
\gls{GlsXtrAutoAddOnFormat} is not applied to \gls{glsadd}
as it could cause an infinite loop.
\end{important}
In the context of \sty{glossaries} and \sty{glossaries-extra}, \idx{indexing}
refers to the mechanism used to ensure that an entry
is included in its associated glossary. (If you also want to use
\gls{index}, see \sectionref{sec:autoindex}.) This includes any entries
that simply cross-reference another entry. The default is to use
\app{makeindex}, which is a general purpose \idx{indexingapp}. Each
time an entry is \indexed, a line is added to an associated file
that contains the \idx{indexing} information, which includes the
sort value, the \idxc{hierarchicallevel}{hierarchical information}
(if the entry has a parent) and an associated \location\ (the page
number, by default). This information is used to sort the entries
and collate the \locations\ into a compact \idx{locationlist}. The
\opt{xindy} package option switches to using \app{xindy} syntax, but
the process is much the same.
Since both \app+{makeindex} and \app+{xindy} are general purpose
\idxpl{indexingapp} they require an associated \location\ (or a
cross-reference) since indexes are typically used to lookup the
\locations\ in the document where the term occurs. Although
\idxpl{glossary} are similar to indexes they can simply be used to provide
brief summaries of each term without any \locations. The way that
\app{makeindex} and \app{xindy} work means that valid \locations\
(that is, \locations\ that conform to
\app{makeindex}\slash\app{xindy} syntax) must be supplied even if no
\idx{locationlist} is required. If an invalid \location\ is used, an
error will occur during the \app{makeindex}\slash\app{xindy} step in
the build process, even if the \location\ will eventually be ignored
when typesetting the \idx{glossary}.
All \idxpl{locationlist} can be suppressed with the
\opt{nonumberlist} option (which simply discards the
\idx{locationlist} for each entry), but there are occasions where
only some \locations\ need to be suppressed. The main way of hiding
a \location\ is to encapsulate the \location\ with a command that
does nothing. The \gls{glsignore} command is used for this purpose
(\glsoptval{format}{glsignore}). However, it's important to
remember that even though the \location\ isn't shown, it's still
present in the \idx{locationlist}. This means that you will end up
with spurious commas if there's more than one item in the
\idx{locationlist}.
The \qt{noidx} method similarly writes indexing information, but in this case
the information is written to the \ext{aux} file. Again, empty locations can
cause spurious commas in the \idxpl{locationlist}.
The only method that recognises \gls{glsignore} as a special
\qt{\idx{ignoredlocation}} is \app{bib2gls}, where this format will trigger the
entry's selection but won't add the \idx{ignoredlocation} to the
\idx{locationlist}. This avoids the problem of spurious commas
caused by invisible locations.
The \location\ corresponds to a counter. The default is the
\ctr{page} counter, but may be changed with the \opt{counter}
package option, the \meta{counter} optional argument of
\gls{newglossary}, the \gloskey{counter} key when defining an entry,
or the \glsopt{counter} option when \idx{indexing} an entry.
Note that \app{bib2gls} v3.0+ converts an empty \location\
(which can occur when the \idx{locationcounter} is 0 and should be
formatted as a Roman numeral) to an \idx{ignoredlocation}.
For example, if you use \optval{counter}{\ctr{part}} but have \gls{gls}
before the first \gls{part}. An empty \location\ will trigger an
error with \app{makeindex} and \app{xindy}.
\begin{warning}
Since no entries are defined on the first \LaTeX\ run with
\app{bib2gls}, there's no way of determining the entry's
\idx{glossary} \gloskey{type} or of finding if the entry's \gloskey{counter}
key has been set. This means that if the counter has been assigned
to either the entry's \idx{glossary} or to the entry itself, the
\idx{locationcounter} can't be implemented until the entry has
been defined. A second build is required to ensure that the
\locations\ use the correct counter.
\end{warning}
The \idx{locationcounter} must expand to syntax that's recognised by the
\idx{indexingapp}. This is very restrictive with \app{makeindex},
which only recognises Western Arabic (\gls{arabic}),
\idx{lowercase} Roman numerals (\gls{roman}),
\idx{uppercase} Roman numerals (\gls{Roman}),
\idx{lowercase} Basic Latin (\gls{alph}) and
\idx{uppercase} Basic Latin (\gls{Alph}), with optionally a
separator (hyphen by default). With \app{xindy}, the syntax must be
defined (see the \sty{glossaries} manual for further details).
There's no restriction on the location syntax with \app{bib2gls}.
The only limitation is that if \app{bib2gls} can't determine an
associated numeric value according to its location parser, it won't form ranges.
This means that with \app{bib2gls}, you can set arbitrary text as
the \location\ (that's not related to a counter) with \glsopt{thevalue}.
You can also use \glsopt{thevalue} with \app{makeindex} and
\app{xindy}, but only if the value matches the required \location\
syntax.
Both \app{makeindex} and \app{xindy} order the \locations\ in the \idxpl{locationlist}.
For example:
\begin{codebox}
\gls{makeglossaries}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}
\cbeg{document}
\gls{gls}\oarg{\glsoptval{thevalue}{Z}}\marg{sample} (Z), \gls{gls}\oarg{\glsoptval{thevalue}{4}}\marg{sample} (4),
\gls{gls}\oarg{\glsoptval{thevalue}{xi}}\marg{sample} (xi), \gls{gls}\oarg{\glsoptval{thevalue}{2}}\marg{sample} (2),
\gls{gls}\oarg{\glsoptval{thevalue}{iii}}\marg{sample} (iii), \gls{gls}\oarg{\glsoptval{thevalue}{A}}\marg{sample} (A).
\codepar
\gls{printglossaries}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[arara={pdflatex,makeglossaries,pdflatex,pdfcrop},
label={ex:mkidxloclistorder},
title={Location list ordering (\appfmt{makeindex})},
description={Example document with contrived locations that result
in an ordered location list consisting of iii, xi, 2, 4, A, Z}]
{%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{makeglossaries}^^J%
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}
}
{%
\gls{gls}\oarg{thevalue=Z}\marg{sample} (Z), \gls{gls}\oarg{thevalue=4}\marg{sample} (4),^^J%
\gls{gls}\oarg{thevalue=xi}\marg{sample} (xi), \gls{gls}\oarg{thevalue=2}\marg{sample} (2),^^J%
\gls{gls}\oarg{thevalue=iii}\marg{sample} (iii), \gls{gls}\oarg{thevalue=A}\marg{sample} (A).^^J%
\gls{printglossaries}
}
\end{resultbox}
With \app{makeindex}, the \idx{locationlist} is grouped into the
different number formats (\gls{roman}, \gls{arabic} and \gls{Alph}),
with each group ordered numerically. The same result can be produced
with \app{xindy} by adding the \opt{xindy} package option to the
above example.
With \app{bib2gls}, the \idx{locationlist} is always in order of
\idx{indexing}. The above example document can be converted to use
\app{bib2gls} as follows:
\begin{codebox}
\cbeg{filecontents*}\marg{\cmd{jobname}.bib}
\atentry{entry}\marg{sample,\gloskeyval{name}{sample},\gloskeyval{description}{an example}}
\cend{filecontents*}
\cmd{usepackage}[\opt{record}]\marg{glossaries-extra}
\gls{GlsXtrLoadResources}
\cbeg{document}
\gls{gls}\oarg{\glsoptval{thevalue}{Z}}\marg{sample} (Z), \gls{gls}\oarg{\glsoptval{thevalue}{4}}\marg{sample} (4),
\gls{gls}\oarg{\glsoptval{thevalue}{xi}}\marg{sample} (xi), \gls{gls}\oarg{\glsoptval{thevalue}{2}}\marg{sample} (2),
\gls{gls}\oarg{\glsoptval{thevalue}{iii}}\marg{sample} (iii), \gls{gls}\oarg{\glsoptval{thevalue}{A}}\marg{sample} (A).
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[arara={pdflatex,bib2gls,pdflatex,pdfcrop},
label={ex:b2gloclistorder},
title={Location list ordering (\appfmt{bib2gls})},
description={Example document with contrived locations that result
in a location list consisting of Z, 4, xi, 2, ii, A, which
corresponds to the record order}]
{%
\cbeg{filecontents*}\marg{\cmd{jobname}.bib}^^J%
@entry\marg{sample,name=\marg{sample},description=\marg{an example}}^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}[record]\marg{glossaries-extra}^^J%
\gls{GlsXtrLoadResources}
}
{%
\gls{gls}\oarg{thevalue=Z}\marg{sample} (Z), \gls{gls}\oarg{thevalue=4}\marg{sample} (4),^^J%
\gls{gls}\oarg{thevalue=xi}\marg{sample} (xi), \gls{gls}\oarg{thevalue=2}\marg{sample} (2),^^J%
\gls{gls}\oarg{thevalue=iii}\marg{sample} (iii), \gls{gls}\oarg{thevalue=A}\marg{sample} (A).^^J%
\codepar
\gls{printunsrtglossaries}
}
\end{resultbox}
This example is contrived. For most documents, the order of \idx{indexing}
will likely match the desired \idx{locationlist} order.
Another important difference between \app{bib2gls} and the other
indexing methods is the treatment of cross-references identified by
the cross-reference keys \gloskey{see}, \gloskey{seealso} and
\gloskey{alias}. With \app{bib2gls}, the cross-referencing
information is picked up when \app{bib2gls} parses the \ext{bib}
file and is used to establish dependencies, which ensures that when
entries with cross-references are selected, their cross-referenced
entries will also be selected.
With the other methods, cross-references are added to an entry's
\idx{locationlist} by \idx{indexing} the entry with a special
format. The \gloskey{see}, \gloskey{seealso} and \gloskey{alias}
keys automatically trigger this \idx{indexing} unless
\optval{autoseeindex}{false}. See \sectionref{sec:xr} for further
details.
Every time an entry is \indexed, the following hook is also used:
\cmddef{glsxtrdowrglossaryhook}
This does nothing by default. The argument is the entry's label.
The \idx{indexing} code is encapsulated with:
\cmddef{glsencapwrcontent}
This adds grouping, which helps to prevent spacing issues caused by
the \idx{whatsit} that's created by the \idx{indexing}.
The base \sty{glossaries} package always performs the \idx{indexing}
before the \idx{linktext} for the \idx{glslike} and \idx{glstextlike}
commands. This means that if a page break occurs in the middle of
the \idx{linktext}, the \location\ will refer to the page number at
the start of the \idx{linktext} (assuming the default \ctr{page}
\idx{locationcounter}). With \sty{glossaries-extra}, you can use the
option \glsoptval{wrgloss}{after} to have the \idx{indexing} occur after
the \idx{linktext}. The \catattr{wrgloss} attribute can also be
used. The default setting is initialised with \gls{glsxtrinitwrgloss}
(see \sectionref{sec:defaultglsopts}).
Every time an entry is \indexed, an \idx{internalfield} associated with the entry's
label is globally updated to keep a count of the number of times the entry has
been \indexed. The value can be accessed with:
\cmddef{glsentryindexcount}
This command will expand to 0 if the entry hasn't been \indexed\ or hasn't been
defined. To test if the value is greater than 0 (that is, to test if the entry has been
\indexed\ yet), use:
\cmddef{glsifindexed}
This expands to \meta{true} if the entry is defined and has been \indexed,
otherwise it expands to \meta{false}. No warning or error occurs if
the entry hasn't been defined.
Note that the index count is a running total. This is not the same as the
\record\ count saved by \app{bib2gls}['s] \switch{record-count}
switch, which represents the total number of \records\ for the given
entry from the previous \LaTeX\ run.
The base \sty{glossaries} package defines:
\cmddef{glswriteentry}
This command conditionally writes the indexing code (supplied by the second
argument \meta{code}).
The original definition simply tests whether or not the \opt{indexonlyfirst} setting
is on. The \sty{glossaries-extra} package redefines this command to perform additional
checks to determine whether or not the \idx{indexing} code should be performed.
The modified definition uses:
\cmddef{glsxtrifindexing}
to test the \glsopt{noindex} setting. This does \meta{false} if
\glsoptval{noindex}{true}, otherwise it does \meta{true}.
\cmddef{ifglsindexonlyfirst}
This is a conditional that corresponds to the \opt{indexonlyfirst}
package option. \Idx{firstuse} is tested using
\gls{GlsXtrIfUnusedOrUndefined} rather than \gls{ifglsused}. The
\catattr{indexonlyfirst} attribute is also tested. If the
\qt{index only first} setting is on and the entry has been
\idxc{firstuseflag}{used}, \meta{code} isn't performed but
auto-indexing via \gls{glsxtrdoautoindexname} is still performed
(see \sectionref{sec:autoindex}).
\begin{warning}
Since no entries are defined on the first \LaTeX\ run with
\app{bib2gls}, there's no way of keeping track of whether or not an
entry has been used or what its \gloskey{category} is, which is required to
query the \catattr{indexonlyfirst} attribute, so for the first
document build all instances will be \indexed. A second build is
required for the \qt{index only first} feature.
\end{warning}
\section{Cross-Referencing}
\label{sec:xr}
The base \sty{glossaries} package only provides the \gloskey{see}
key, which automatically \idxc{indexing}{indexes} the cross-reference using
\gls{glssee}. The value of this key isn't saved and can't be
accessed later. (The key was simply provided as a shortcut.)
The \idx{indexing} ensures that the cross-reference is
shown in the \idx{locationlist}.
\begin{important}
The auto-indexing feature of the \gloskey{see} key was intended as a
shortcut where only entries required in the document are defined.
If you want to have a large file containing entries that may or may not
be required in the document, then using \gloskey{see},
\gloskey{seealso} or \gloskey{alias} can cause unwanted entries to
appear in the glossary. In this case, see
\sectionref{sec:seenoindex}.
\end{important}
The \sty{glossaries-extra} package saves the value of the
\gloskey{see} key and additionally provides the \gloskey{seealso}
and \gloskey{alias} keys that perform similar functions. The values
of the \gloskey{see}, \gloskey{seealso} and \gloskey{alias} keys can
all be accessed at a later point in the document.
If an entry with a cross-reference has been included in the
glossary, there's no guarantee that the cross-referenced entry will
also be included. It won't be included if it hasn't been indexed
anywhere in the document. You can use the \opt{indexcrossrefs}
package option to search for cross-references that require \idx{indexing}
at the end of the document, but note that this can be time-consuming
if you have a large number of entries.
\begin{information}
With \app{bib2gls} you can simply change the selection criteria
(\resourceoptvalm{selection}{recorded and deps and see} or
\resourceoptvalm{selection}{recorded and deps and see not
also}) to ensure that all cross-referenced entries are included even
if they haven't been \indexed\ in the document.
\end{information}
Example (\gloskey{see} and \gloskey{seealso} keys):
\begin{codebox}
\gls{newglossaryentry}\marg{pumpkin}\marg{\gloskeyval{name}{pumpkin},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{cucumber}\marg{\gloskeyval{name}{cucumber},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{melon}\marg{\gloskeyval{name}{melon},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{gourd}\marg{\gloskeyval{name}{gourd},\gloskeyval{description}{},
\gloskeyval{see}{pumpkin,cucumber,melon}}
\gls{newglossaryentry}\marg{courgette}\marg{\gloskeyval{name}{courgette},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{marrow}\marg{\gloskeyval{name}{marrow},\gloskeyval{description}{},
\gloskeyval{seealso}{courgette}}
\end{codebox}
When the \code{gourd} entry is defined, the cross-reference will
automatically be \indexed\ using \gls{glssee}. This means that the
\code{gourd} entry will appear in the glossary, regardless of
whether or not it is used in the document, with \qt{\emph{see}
pumpkin, cucumber \& melon} in the \idx{locationlist}. If
\code{gourd} is also \indexed\ in the document, then those
\locations\ will also be added to the gourd's \idx{locationlist}.
The cross-referenced entries (pumpkin, cucumber and melon) will only
appear in the glossary if they are also \indexed\ in the document.
This can be implemented automatically with \opt{indexcrossrefs}.
The \gloskey{seealso} key in the \code{marrow} entry functions in
much the same way, but it is \indexed\ with \gls{glsxtrindexseealso}.
This means that the \code{marrow} entry will have \qt{\emph{see
also} courgette} in its \idx{locationlist}.
The \gloskey{see} key may optionally start with \oargm{tag} to
replace the default \gls{seename} tag with \meta{tag}. The
\gloskey{seealso} key doesn't permit this. For example, the
following is permitted:
\begin{codebox}
\gls{newglossaryentry}\marg{gourd}\marg{\gloskeyval{name}{gourd},\gloskeyval{description}{},
\gloskeyval{see}{[related topics]pumpkin,cucumber,melon}}
\end{codebox}
but you can't replace \gloskey{see} with \gloskey{seealso} in the
above as it would assume that the first label in the list is
\code{[related topics]pumpkin} which is incorrect. The tag would
have to be removed:
\begin{codebox}
\gls{newglossaryentry}\marg{gourd}\marg{\gloskeyval{name}{gourd},\gloskeyval{description}{},
\gloskeyval{seealso}{pumpkin,cucumber,melon}}
\end{codebox}
(You could then redefine \gls{seealsoname} to \code{related topics},
if required or redefine \gls{glsxtruseseealsoformat} as applicable.)
Example (\gloskey{alias} key):
\begin{codebox}
\gls{newglossaryentry}\marg{zucchini}\marg{\gloskeyval{name}{zucchini},\gloskeyval{description}{},
\gloskeyval{alias}{courgette}}
\end{codebox}
When the \code{zucchini} entry is defined, the \gloskey{alias} key
will automatically \idxc{indexing}{index} zucchini with
\code{\gls{glssee}\marg{zucchini}\marg{courgette}}. This means that
the \code{zucchini} entry will be present in the glossary with
\qt{\emph{see} courgette} in the \idx{locationlist}. If the
\code{zucchini} entry is referenced in the document using a command
like \gls{gls}, then the hyperlink (if enabled) will go to the
\code{courgette} entry (not the \code{zucchini} entry) but the
\code{zucchini} entry won't be indexed.
If you want the \code{zucchini} entry \locations\ added to the
\code{courgette} entry, you can redefine
\gls{glsxtrsetaliasnoindex} (see \sectionref{sec:glssee}) or, with
\app{bib2gls}, use the \resourceoptval{alias-loc}{transfer} setting.
\begin{information}
With \app{bib2gls}, cross-references are selected according to the
\resourceopt{selection} criteria. See the \app{bib2gls} manual for
further details.
\end{information}
\subsection{Entries that may not be required}
\label{sec:seenoindex}
If you have a file containing a large number of entry definitions
shared across multiple documents, then the use of the \gloskey{see},
\gloskey{seealso} or \gloskey{alias} key can cause unwanted entries
to appear in the document. This can be demonstrated as follows.
Suppose the file \filefmt{myentries.tex} contains:
\begin{codebox}
\gls{newglossaryentry}\marg{pumpkin}\marg{\gloskeyval{name}{pumpkin},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{cucumber}\marg{\gloskeyval{name}{cucumber},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{melon}\marg{\gloskeyval{name}{melon},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{gourd}\marg{\gloskeyval{name}{gourd},\gloskeyval{description}{},
\gloskeyval{see}{pumpkin,cucumber,melon}}
\gls{newglossaryentry}\marg{cucurbit}\marg{\gloskeyval{name}{cucurbit},\gloskeyval{description}{},
\gloskeyval{see}{gourd}}
\gls{newglossaryentry}\marg{courgette}\marg{\gloskeyval{name}{courgette},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{marrow}\marg{\gloskeyval{name}{marrow},\gloskeyval{description}{},
\gloskeyval{seealso}{courgette}}
\gls{newglossaryentry}\marg{zucchini}\marg{\gloskeyval{name}{zucchini},\gloskeyval{description}{},
\gloskeyval{alias}{courgette}}
\gls{newglossaryentry}\marg{broccoli}\marg{\gloskeyval{name}{broccoli},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{cauliflower}\marg{\gloskeyval{name}{cauliflower},\gloskeyval{description}{},
\gloskeyval{seealso}{broccoli}}
\end{codebox}
Some of these entries have a cross-reference key set, but not all of
these entries are required in the document:
\begin{codebox}
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}\oarg{\opt{nostyles},\optval{stylemods}{bookindex},\optval{style}{bookindex}}
\marg{glossaries-extra}
\gls{makeglossaries}
\gls{loadglsentries}\marg{myentries}
\cbeg{document}
This document is only discussing \gls{glspl}\marg{courgette} (baby
\gls{glspl}\marg{marrow}, also called a \gls{gls}\marg{zucchini}),
\gls{glspl}\marg{pumpkin} and \gls{glspl}\marg{melon}.
\gls{printglossaries}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample[arara={pdflatex,makeglossaries,pdflatex,pdfcrop},
label={ex:autoseeindextrue},
title={Cross-references (\optfmt{autoseeindex\dequals true})},
description={Example document illustrating the cross-referencing
fields with the default auto-indexing of the cross-referenced terms}]
{%
\usepackage[colorlinks]{hyperref}^^J%
\usepackage[nostyles,stylemods=bookindex,style=bookindex]^^J%
{glossaries-extra}^^J%
\makeglossaries^^J%
\newglossaryentry{pumpkin}{name={pumpkin},description={}}^^J%
\newglossaryentry{cucumber}{name={cucumber},description={}}^^J%
\newglossaryentry{melon}{name={melon},description={}}^^J%
\newglossaryentry{gourd}{name={gourd},description={},^^J%
see={pumpkin,cucumber,melon}}^^J%
\newglossaryentry{cucurbit}{name={cucurbit},description={},^^J%
see={gourd}}^^J%
\newglossaryentry{courgette}{name={courgette},description={}}^^J%
\newglossaryentry{marrow}{name={marrow},description={},^^J%
seealso={courgette}}^^J%
\newglossaryentry{zucchini}{name={zucchini},description={},^^J%
alias={courgette}}^^J%
\newglossaryentry{broccoli}{name={broccoli},description={}}^^J%
\newglossaryentry{cauliflower}{name={cauliflower},description={},
seealso={broccoli}}^^J%
}
{
This document is only discussing
\glspl{courgette} (baby \glspl{marrow},
also called a \gls{zucchini}),
\glspl{pumpkin} and \glspl{melon}.^^J%
\printglossaries
}
\end{resultbox}
Note that the glossary includes cucurbit and gourd, which aren't
referenced in the document. They could be useful as a redirect for
the reader, but the gourd entry cross-references the
cucumber entry, which isn't included in the glossary, so the
hyperlink target is undefined. The cauliflower entry has also been
included in the glossary, but in this case it's not useful for the
reader as neither cauliflower nor broccoli (which it
cross-references) are mentioned in the document. As with the
cucumber cross-reference, the broccoli cross-reference hyperlink
target is undefined.
There are a number of methods to address some of these problems.
The first method has the cross-referencing keys in the \ext{tex}
file (as above), but disables the auto-indexing:
\begin{codebox}
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}\oarg{\optval{autoseeindex}{false},\opt{nostyles},\optval{stylemods}{bookindex},
\optval{style}{bookindex}}\marg{glossaries-extra}
\gls{makeglossaries}
\gls{loadglsentries}\marg{myentries}
\cbeg{document}
This document is only discussing \gls{glspl}\marg{courgette} (baby
\gls{glspl}\marg{marrow}, also called a \gls{gls}\marg{zucchini}),
\gls{glspl}\marg{pumpkin} and \gls{glspl}\marg{melon}.
\gls{printglossaries}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample[arara={pdflatex,makeglossaries,pdflatex,pdfcrop},
label={ex:autoseeindexfalse},
title={Cross-references (\optfmt{autoseeindex\dequals false})},
description={Example document illustrating the cross-referencing
fields without the auto-indexing of the cross-referenced terms}]
{%
\usepackage[colorlinks]{hyperref}^^J%
\usepackage[autoseeindex=false,nostyles,stylemods=bookindex,style=bookindex]^^J%
{glossaries-extra}^^J%
\makeglossaries^^J%
\newglossaryentry{pumpkin}{name={pumpkin},description={}}^^J%
\newglossaryentry{cucumber}{name={cucumber},description={}}^^J%
\newglossaryentry{melon}{name={melon},description={}}^^J%
\newglossaryentry{gourd}{name={gourd},description={},^^J%
see={pumpkin,cucumber,melon}}^^J%
\newglossaryentry{cucurbit}{name={cucurbit},description={},^^J%
see={gourd}}^^J%
\newglossaryentry{courgette}{name={courgette},description={}}^^J%
\newglossaryentry{marrow}{name={marrow},description={},^^J%
seealso={courgette}}^^J%
\newglossaryentry{zucchini}{name={zucchini},description={},^^J%
alias={courgette}}^^J%
\newglossaryentry{broccoli}{name={broccoli},description={}}^^J%
\newglossaryentry{cauliflower}{name={cauliflower},description={},
seealso={broccoli}}^^J%
}
{
This document is only discussing
\glspl{courgette} (baby \glspl{marrow},
also called a \gls{zucchini}),
\glspl{pumpkin} and \glspl{melon}.^^J%
\printglossaries
}
\end{resultbox}
This doesn't show the zucchini entry or any of
the cross-references in the \idx{glossary} because the information
hasn't been added to the \idx{indexing} files. One way around this
is to insert the cross-reference in a \idx{postdeschook}.
\begin{codebox}
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}\oarg{\optval{autoseeindex}{false},\opt{nostyles},\optval{stylemods}{bookindex},
\optval{style}{bookindex}}\marg{glossaries-extra}
\gls{makeglossaries}
\gls{loadglsentries}\marg{myentries}
\gls{glsdefpostdesc}\marg{general}\marg{\comment{}
\gls{glsxtrseelists}\marg{\gls{glscurrententrylabel}}\comment{}
}
\cbeg{document}
This document is only discussing
\gls{glspl}\marg{courgette} (baby \gls{glspl}\marg{marrow},
also called a \gls{gls}\marg{zucchini}),
\gls{glspl}\marg{pumpkin} and \gls{glspl}\marg{melon}.
\gls{printglossaries}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample[arara={pdflatex,makeglossaries,pdflatex,pdfcrop},
label={ex:autoseeindexfalsepostname},
title={Cross-references (\optfmt{autoseeindex\dequals false} and post-name hook)},
description={Example document illustrating the cross-referencing
fields without the auto-indexing of the cross-referenced terms but
using the post-name hook}]
{%
\usepackage[colorlinks]{hyperref}^^J%
\usepackage[autoseeindex=false,nostyles,^^J%
stylemods=bookindex,style=bookindex]{glossaries-extra}^^J%
\makeglossaries^^J%
\newglossaryentry{pumpkin}{name={pumpkin},description={}}^^J%
\newglossaryentry{cucumber}{name={cucumber},description={}}^^J%
\newglossaryentry{melon}{name={melon},description={}}^^J%
\newglossaryentry{gourd}{name={gourd},description={},^^J%
see={pumpkin,cucumber,melon}}^^J%
\newglossaryentry{cucurbit}{name={cucurbit},description={},^^J%
see={gourd}}^^J%
\newglossaryentry{courgette}{name={courgette},description={}}^^J%
\newglossaryentry{marrow}{name={marrow},description={},^^J%
seealso={courgette}}^^J%
\newglossaryentry{zucchini}{name={zucchini},description={},^^J%
alias={courgette}}^^J%
\newglossaryentry{broccoli}{name={broccoli},description={}}^^J%
\newglossaryentry{cauliflower}{name={cauliflower},description={},
seealso={broccoli}}^^J%
\glsdefpostname{general}{\glsxtrseelists{\glscurrententrylabel}}^^J%
}
{
This document is only discussing
\glspl{courgette} (baby \glspl{marrow},
also called a \gls{zucchini}),
\glspl{pumpkin} and \glspl{melon}.^^J%
\printglossaries^^J%
}
\end{resultbox}
However, this still doesn't solve the problem that the zucchini
entry isn't included in the glossary. It needs to be indexed, but
\idx{indexing} has been suppressed. Firstly, because the automatic
\idx{indexing} triggered by the \gloskey{alias} key has been
suppressed with \optval{autoseeindex}{false}, and, secondly, because
the presence of the \gloskey{alias} key automatically suppresses
\idx{indexing} with the \idx{glslike} and \idx{glstextlike}
commands. This doesn't cause a problem for the zucchini hyperlink,
since the target is courgette (obtained from the \gloskey{alias} key).
The second method is to not use those keys in the entry definitions
and use \gls{glssee} or \gls{glsxtrindexseealso} within the document.
For example, the file \filefmt{myentries.tex} now contains:
\begin{codebox}
\gls{newglossaryentry}\marg{pumpkin}\marg{\gloskeyval{name}{pumpkin},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{cucumber}\marg{\gloskeyval{name}{cucumber},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{melon}\marg{\gloskeyval{name}{melon},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{gourd}\marg{\gloskeyval{name}{gourd},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{cucurbit}\marg{\gloskeyval{name}{cucurbit},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{courgette}\marg{\gloskeyval{name}{courgette},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{marrow}\marg{\gloskeyval{name}{marrow},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{zucchini}\marg{\gloskeyval{name}{zucchini},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{broccoli}\marg{\gloskeyval{name}{broccoli},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{cauliflower}\marg{\gloskeyval{name}{cauliflower},\gloskeyval{description}{}}
\end{codebox}
The document:
\begin{codebox}
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}[\opt{nostyles},\optval{stylemods}{bookindex},\optval{style}{bookindex}]
\marg{glossaries-extra}
\gls{makeglossaries}
\gls{loadglsentries}\marg{myentries}
\gls{glssee}\marg{gourd}\marg{pumpkin,melon,courgette}
\gls{glssee}\marg{zucchini}\marg{courgette}
\gls{GlsXtrSetField}\marg{zucchini}\marg{alias}\marg{courgette}
\cbeg{document}
This document is only discussing \gls{glspl}\marg{courgette} (baby
\gls{glspl}\marg{marrow}, also called a \gls{gls}\marg{zucchini}),
\gls{glspl}\marg{pumpkin} and \gls{glspl}\marg{melon}.
\gls{printglossaries}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample[arara={pdflatex,makeglossaries,pdflatex,pdfcrop},
label={ex:noxrfields},
title={Cross-references (no \optfmt{see}, \optfmt{seealso} or \optfmt{alias})},
description={Example document illustrating cross-references without
using the see, seealso or alias keys}
]
{%
\usepackage[colorlinks]{hyperref}^^J%
\usepackage[nostyles,stylemods=bookindex,style=bookindex]{glossaries-extra}^^J%
\makeglossaries^^J%
\newglossaryentry{pumpkin}{name={pumpkin},description={}}^^J%
\newglossaryentry{cucumber}{name={cucumber},description={}}^^J%
\newglossaryentry{melon}{name={melon},description={}}^^J%
\newglossaryentry{gourd}{name={gourd},description={}}^^J%
\newglossaryentry{cucurbit}{name={cucurbit},description={}}^^J%
\newglossaryentry{courgette}{name={courgette},description={}}^^J%
\newglossaryentry{marrow}{name={marrow},description={}}^^J%
\newglossaryentry{zucchini}{name={zucchini},description={}}^^J%
\newglossaryentry{broccoli}{name={broccoli},description={}}^^J%
\newglossaryentry{cauliflower}{name={cauliflower},description={}}^^J%
\glssee{gourd}{pumpkin,melon,courgette}^^J%
\glssee{zucchini}{courgette}^^J%
\GlsXtrSetField{zucchini}{alias}{courgette}^^J%
}
{
This document is only discussing
\glspl{courgette} (baby \glspl{marrow},
also called a \gls{zucchini}),
\glspl{pumpkin} and \glspl{melon}.^^J%
\printglossaries
}
\end{resultbox}
Note that aliases require the \gloskey{alias} field to be set. In
this case, I've set it with \gls{GlsXtrSetField}. The gourd and
zucchini entries have been included in the glossary because they
were added with \gls{glssee}. The other entries are in the glossary
because they were indexed when referenced with \gls{gls} or
\gls{glspl}.
Since cucumber isn't required in the document, I haven't included it
in the cross-reference list for gourd. This method is flexible as it
allows the cross-referencing to vary between documents. For example,
another document may instead have:
\begin{codebox}
\gls{glsxtrindexseealso}\marg{pumpkin}\marg{courgette,melon}
\gls{glsxtrindexseealso}\marg{melon}\marg{pumpkin,courgette}
\gls{glsxtrindexseealso}\marg{courgette}\marg{pumpkin,melon}
\end{codebox}
The third method is to switch to \app{bib2gls}. The file
\filefmt{myentries.tex} can be converted to \filefmt{myentries.bib}
using:
\begin{terminal}
\app{convertgls2bib} \switch{index-conversion} myentries.tex myentries.bib
\end{terminal}
I've used the option \switch{index-conversion} (or \switch{i}) which will use
\atentry{index} instead of \atentry{entry} for entries that have an
empty description (which is the case in this example).
This creates the file \filefmt{myentries.bib}, which contains the
following (space compacted):
\begin{codebox}
\comment{Encoding: UTF-8}
@index\marg{pumpkin, \gloskeyval{name}{pumpkin}}
@index\marg{cucumber, \gloskeyval{name}{cucumber}}
@index\marg{melon, \gloskeyval{name}{melon}}
@index\marg{gourd, \gloskeyval{see}{pumpkin,cucumber,melon}, \gloskeyval{name}{gourd}}
@index\marg{cucurbit, \gloskeyval{see}{gourd}, \gloskeyval{name}{cucurbit}}
@index\marg{courgette, \gloskeyval{name}{courgette}}
@index\marg{marrow, \gloskeyval{name}{marrow}, \gloskeyval{seealso}{courgette}}
@index\marg{zucchini, \gloskeyval{name}{zucchini}, \gloskeyval{alias}{courgette}}
@index\marg{broccoli, \gloskeyval{name}{broccoli}}
@index\marg{cauliflower, \gloskeyval{name}{cauliflower}, \gloskeyval{seealso}{broccoli}}
\end{codebox}
The earlier example~\ref{ex:autoseeindextrue} on page~\pageref{ex:autoseeindextrue}
can be rewritten as:
\begin{codebox}
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}\oarg{\opt{record},\opt{nostyles},\optval{stylemods}{bookindex},\optval{style}{bookindex}}
\marg{glossaries-extra}
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{myentries}}
\cbeg{document}
This document is only discussing \gls{glspl}\marg{courgette} (baby
\gls{glspl}\marg{marrow}, also called a \gls{gls}\marg{zucchini}),
\gls{glspl}\marg{pumpkin} and \gls{glspl}\marg{melon}.
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
In order to support letter \idxpl{group}, \app{bib2gls} needs to be
invoked with the \switch{group} switch. The result is:
\begin{resultbox}
\createexample*[arara={pdflatex,bib2gls: { group: on },pdflatex,pdfcrop},
label={ex:recordedanddeps},
title={Cross-references (\appfmt{bib2gls})},
description={Example document illustrating the cross-referencing
fields with bib2gls and selection=recorded and deps}]
{%
\cbeg{filecontents*}{\cmd{jobname}.bib}^^J%
\% Encoding: UTF-8^^J%
@index{pumpkin, name = {pumpkin}}^^J%
@index{cucumber, name = {cucumber}}^^J%
@index{melon, name = {melon}}^^J%
@index{gourd, see = {pumpkin,cucumber,melon}, name = {gourd}}^^J%
@index{cucurbit, see = {gourd}, name = {cucurbit}}^^J%
@index{courgette, name = {courgette}}^^J%
@index{marrow, name = {marrow}, seealso = {courgette}}^^J%
@index{zucchini, name = {zucchini}, alias = {courgette}}^^J%
@index{broccoli, name = {broccoli}}^^J%
@index{cauliflower, name = {cauliflower}, seealso = {broccoli}
}^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}\oarg{record,nostyles,stylemods=bookindex,style=bookindex}\marg{glossaries-extra}^^J%
\gls{GlsXtrLoadResources}\oarg{src=\cmd{jobname}}
}
{
This document is only discussing
\gls{glspl}\marg{courgette} (baby \gls{glspl}\marg{marrow},
also called a \gls{gls}\marg{zucchini}),
\gls{glspl}\marg{pumpkin} and \gls{glspl}\marg{melon}.^^J%
\gls{printunsrtglossaries}
}
\end{resultbox}
This uses the default \resourceoptvalm{selection}{recorded and
deps}, which selects entries that have \records,
and their dependencies. Records correspond to the usual indexing
performed by the \idx{glslike}, \idx{glstextlike} or \idx{glsadd}
commands. With \app{bib2gls}, the cross-referencing fields don't
trigger an index but identify dependencies.
Note that the above doesn't include the gourd entry (which
cross-references entries that have been indexed). The selection
criteria can be changed to also include unrecorded entries that cross-reference
selected entries. There are two options to choose from:
\resourceoptvalm{selection}{recorded and deps and see}, which will
apply to all cross-reference fields (\gloskey{see},
\gloskey{seealso} and \gloskey{alias}, or
\resourceoptvalm{selection}{recorded and deps and see not also},
which doesn't consider the \gloskey{seealso} field.
Changing the \idxpl!{resourceopt} in the above example to:
\begin{codebox}
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{myentries},
\resourceoptvalm{selection}{recorded and deps and see}}
\end{codebox}
results in:
\begin{resultbox}
\createexample*[arara={pdflatex,bib2gls: { group: on },pdflatex,pdfcrop},
label={ex:recordedanddepsandsee},
title={Cross-references (\appfmt{bib2gls} and
\optfmt{selection\dequals recorded and deps and see})},
description={Example document illustrating the cross-referencing
fields with bib2gls and selection=recorded and deps and see}]
{%
\cbeg{filecontents*}{\cmd{jobname}.bib}^^J%
\% Encoding: UTF-8^^J%
@index{pumpkin, name = {pumpkin}}^^J%
@index{cucumber, name = {cucumber}}^^J%
@index{melon, name = {melon}}^^J%
@index{gourd, see = {pumpkin,cucumber,melon}, name = {gourd}}^^J%
@index{cucurbit, see = {gourd}, name = {cucurbit}}^^J%
@index{courgette, name = {courgette}}^^J%
@index{marrow, name = {marrow}, seealso = {courgette}}^^J%
@index{zucchini, name = {zucchini}, alias = {courgette}}^^J%
@index{broccoli, name = {broccoli}}^^J%
@index{cauliflower, name = {cauliflower}, seealso = {broccoli}
}^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}\oarg{record,nostyles,stylemods=bookindex,style=bookindex}\marg{glossaries-extra}^^J%
\gls{GlsXtrLoadResources}\oarg{src=\cmd{jobname},selection={recorded and deps and see}}
}
{
This document is only discussing
\gls{glspl}\marg{courgette} (baby \gls{glspl}\marg{marrow},
also called a \gls{gls}\marg{zucchini}),
\gls{glspl}\marg{pumpkin} and \gls{glspl}\marg{melon}.^^J%
\gls{printunsrtglossaries}
}
\end{resultbox}
This now includes the gourd entry because it cross-references
pumpkin and melon, which have been \recorded\ in the document.
The cucurbit entry is also included because it cross-references the
(now selected) gourd entry. Note that the cucumber entry has been
selected because the gourd entry depends on it. This means there are
no broken links in the glossary, but it looks a bit odd as the
cucumber entry has no \idx{locationlist}. As from \app{bib2gls}
v3.0, this can be removed with one of the cross-reference pruning
options, such as \resourceopt{prune-xr}.
For example:
\begin{codebox}
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{myentries},
\resourceoptvalm{selection}{recorded and deps and see},\resourceopt{prune-xr}}
\end{codebox}
results in:
\begin{resultbox}
\createexample*[arara={pdflatex,bib2gls: { group: on },pdflatex,pdfcrop},
label={ex:recordedanddepsandseeprune},
title={Cross-references (\appfmt{bib2gls} and
\optfmt{selection\dequals recorded and deps and see}, \optfmt{prune-xr})},
description={Example document illustrating the cross-referencing
fields with bib2gls and selection=recorded and deps and see and pruning}]
{%
\cbeg{filecontents*}{\cmd{jobname}.bib}^^J%
\% Encoding: UTF-8^^J%
@index{pumpkin, name = {pumpkin}}^^J%
@index{cucumber, name = {cucumber}}^^J%
@index{melon, name = {melon}}^^J%
@index{gourd, see = {pumpkin,cucumber,melon}, name = {gourd}}^^J%
@index{cucurbit, see = {gourd}, name = {cucurbit}}^^J%
@index{courgette, name = {courgette}}^^J%
@index{marrow, name = {marrow}, seealso = {courgette}}^^J%
@index{zucchini, name = {zucchini}, alias = {courgette}}^^J%
@index{broccoli, name = {broccoli}}^^J%
@index{cauliflower, name = {cauliflower}, seealso = {broccoli}
}^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}\oarg{record,nostyles,stylemods=bookindex,style=bookindex}\marg{glossaries-extra}^^J%
\gls{GlsXtrLoadResources}\oarg{src=\cmd{jobname},selection={recorded and deps and see},prune-xr}
}
{
This document is only discussing
\gls{glspl}\marg{courgette} (baby \gls{glspl}\marg{marrow},
also called a \gls{gls}\marg{zucchini}),
\gls{glspl}\marg{pumpkin} and \gls{glspl}\marg{melon}.^^J%
\gls{printunsrtglossaries}
}
\end{resultbox}
This has removed the unnecessary cucumber from the gourd's
\gloskey{see} list, and so cucumber doesn't get selected.
\begin{information}
See the \app{bib2gls} user manual for further details on the
cross-reference selection and pruning options.
\end{information}
\subsection{Accessing the Cross-Referencing Fields}
\label{sec:getsee}
If you have switched off the indexing of the cross-reference
fields (with \optval{autoseeindex}{false}) or want to suppress the
\idxpl{locationlist}, then you can adjust the glossary style or
hooks to include the cross-references since they won't be shown
otherwise.
\cmddef{glsxtrseelists}
If the entry given by \meta{entry-label} has the
\gloskey{see}, \gloskey{seealso} or \gloskey{alias} fields set,
this will display the cross reference
according to \gls{glsxtruseseeformat} (for \gloskey{see} and
\gloskey{alias}) or \gls{glsxtruseseealsoformat} (for
\gloskey{seealso}). If any of these fields are set, the list is
encapsulated with:
\cmddef{glsxtrseelistsencap}
This simply does a space followed by \meta{content}. If more than
one of the fields are set (not recommended), then they will be
displayed in the order: \gloskey{see}, \gloskey{seealso} and
\gloskey{alias}. The entire set will be encapsulated with
\gls{glsxtrseelistsencap} and each sub-list will be separated with:
\cmddef{glsxtrseelistsdelim}
which defaults to a comma followed by a space.
\cmddef{glsxtrusesee}
If the entry given by \meta{entry-label} has the
\gloskey{see} field set, this will display the cross reference
according to \gls{glsxtruseseeformat}, otherwise this does nothing.
An error (or warning with \opteqvalref{undefaction}{warn}) will
occur if the entry hasn't been defined.
\cmddef{glsxtrusealias}
As \gls{glsxtrusesee} but for the \gloskey{alias} field.
\cmddef{glsxtruseseealso}
If the entry given by \meta{entry-label} has the
\gloskey{seealso} field set, this will display the cross reference
according to \gls{glsxtruseseealsoformat}, otherwise this does nothing.
An error (or warning with \opteqvalref{undefaction}{warn}) will
occur if the entry hasn't been defined.
\cmddef{glsxtralias}
This expands to the value of the \gloskey{alias} field (which should
be a single entry label) or empty if the field isn't set. If the
entry isn't defined, this command will expand to \gls{relax}
(without any error or warning). If you want to first test if the
field is set, you can use \gls{glsxtrifhasfield}.
\cmddef{glsxtrseealsolabels}
This expands to the value of the \gloskey{seealso} field (which
should be a comma-separated list of entry labels) or empty if the
field isn't set. If the entry isn't defined, this command will
expand to \gls{relax} (without any error or warning). If you want to
first test if the field is set, you can use \gls{glsxtrifhasfield}.
\cmddef{glsxtruseseealsoformat}
This command is used to format a \qt{see also} cross-reference.
This is simply defined to do:
\begin{codebox*}
\gls{glsseeformat}\oarg{\gls{seealsoname}}\margm{csv-list}\margm{}
\end{codebox*}
\subsection{Cross-Reference Indexing}
\label{sec:glssee}
\begin{information}
If you are using \app{bib2gls}, see the \app{bib2gls} user manual
for information about the \resourceopt{selection},
\resourceopt{see}, \resourceopt{seealso}, \resourceopt{alias},
\resourceopt{alias-loc} options.
\end{information}
The actual \idx{indexing} of the \gloskey{seealso} key is performed with:
\cmddef{glsxtrindexseealso}
which is analogous to \gls{glssee}. As with \gls{glssee}, this can
also be used explicitly.
With \app{makeindex}, \gls{glsxtrindexseealso} simply does:
\begin{codebox*}
\gls{glssee}\oarg{\gls{seealsoname}}\margm{entry-label}\margm{xr-list}
\end{codebox*}
With \app{xindy}, \gls{glsxtrindexseealso} behaves in an analogous
way, using the appropriate cross-referencing markup.
\cmddef{glsxtrsetaliasnoindex}
This hook is used within the \idx{glslike} and \idx{glstextlike}
commands to automatically switch off the \idx{indexing} for aliases.
(The hook is performed after the options set by
\gls{GlsXtrSetDefaultGlsOpts}.)
By default, this hook just sets \glsoptval{noindex}{true}. If you would
like to add \locations\ to the aliased \idx{locationlist} then you
can redefine it to use:
\cmddef{glsxtrindexaliased}
For example:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glsxtrsetaliasnoindex}}\marg{\gls{glsxtrindexaliased}}
\end{codebox}
Note that this needs \glsoptval{noindex}{false} to ensure the
\idx{indexing} takes place so don't simply append \gls{glsxtrindexaliased}
to the definition of \gls{glsxtrsetaliasnoindex}.
\begin{information}
Don't use the above hooks with \app{bib2gls} as this function is
disabled with \opteqvalref{record}{only} and
\opteqvalref{record}{nameref}. Use the \resourceopt{alias-loc} resource option instead.
\end{information}
\cmddef{glsxtraddallcrossrefs}
This is used at the end of the document if
\optval{indexcrossrefs}{true} to automatically index any
cross-references (identified in the \gloskey{see}, \gloskey{seealso}
and \gloskey{alias} fields).
This command iterates over all entries in all glossaries and, if an entry has
been marked as used, does:
\cmddef{glsxtraddunusedxrefs}
which indexes any labels identified in the cross-reference fields of the entry
given by \meta{entry-label} that haven't been marked as used.
This can be time consuming if there are a large number of
entries defined. If this is the case, you may want to consider
switching to \app{bib2gls} and use either
\resourceoptvalm{selection}{recorded and deps and see} or
\resourceoptvalm{selection}{recorded and deps and see not also}.
There should be no need to use \gls{glsxtraddallcrossrefs} explicitly, but you
may want to redefine it to only iterate over specific glossaries.
The unused entries are indexed using the \encap{glsxtrunusedformat}
format.
\cmddef{glsxtrunusedformat}
This ignores its argument (the \location) and just does \gls{unskip}.
\section{First Use Flag}
\label{sec:glsunset}
Each entry has an associated \idx{firstuseflag} (a conditional or
boolean variable), which determines whether or not the entry has
been marked as \qt{used}. Unsetting this flag means that the entry
is marked as used. Resetting the flag means that the entry is marked
as unused.
The \idx{glslike} commands (which are the principle method of
referencing an entry) all mark the entry as used after the
\idx{linktext} is displayed but before the \idx{postlinkhook} is
used.
The purpose of this is to allow for additional information that
needs to be shown when a term first appears in a document. For
example, an abbreviation may need to have its full form shown on the
instance. However, there are some cases where that additional
information may need to be shown again or where the literal first
instance of the term may need to be in its terse form. For example,
if the term is used in the front matter.
If any \idx{glslike} commands (which are robust) are used in section
headings or captions, they can end up in the table of contents or
corresponding \qt{list of \ldots} (such as the list of figures).
This can cause the \idx{firstuseflag} to be unset too soon. For
these situations, use the commands described in
\sectionref{sec:headtitle} instead.
The base \sty{glossaries} package provides commands to explicitly
unset or reset the \idx{firstuseflag} either locally (confined to
the current scope) or globally. These commands are:
\gls{glsunset} (global unset), \gls{glslocalunset} (local unset),
\gls{glsreset} (global reset) and \gls{glslocalreset} (local reset).
The \sty{glossaries-extra} package adds hooks to the above commands.
These do nothing by default, but are modified by \gls{glsenableentrycount}
and \gls{glsenableentryunitcount} to perform the count increment or
reset (see \sectionref{sec:entrycount}).
\cmddef{glsxtrpostunset}
This hook is added to \gls{glsunset}.
\cmddef{glsxtrpostlocalunset}
This hook is added to \gls{glslocalunset}.
\cmddef{glsxtrpostreset}
This hook is added to \gls{glsreset}.
\cmddef{glsxtrpostlocalreset}
This hook is added to \gls{glslocalreset}.
The base package also provides commands to unset or reset
all entries or all entries within particular glossaries:
\gls{glsunsetall} and \gls{glsresetall}. For example, if you don't
want the \idx{firstuse} in the front matter, you can unset all
entries at the start of the front matter and reset them at the start
of the main matter.
\begin{codebox}
\cmd{frontmatter}\gls{glsunsetall}
\ldots
\cmd{mainmatter}\gls{glsresetall}
\end{codebox}
With \sty{glossaries-extra} you can unset a specific subset of
entries.
\cmddef{glslocalunseteach}
Locally unsets each entry in the given comma-separated list of entry labels.
\cmddef{glslocalreseteach}
Locally resets each entry in the given comma-separated list of entry labels.
You can test if an entry has been marked as used with \gls{ifglsused}
(but take care if you are using \app{bib2gls} or the
\optval{undefaction}{warn} option, see below).
This command allows the entry display style to vary the
\idx{linktext} according to whether or not the entry has been marked
as used. However, it can't be used within the \idx{postlinkhook} as
by that time, the \idx{firstuseflag} will have already been unset.
\begin{information}
See the \sty{glossaries} user manual for further details of the
above commands.
\end{information}
For example, in the following document the \qt{html} entry is first
used in the abstract, which shows both the long and the short form,
but it would be helpful for the full form to be reshown in the main
section about web pages. This is achieved by resetting the
\idx{firstuseflag}.
\begin{codebox}
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
\cbeg{document}
\cbeg{abstract}
This abstract mentions \gls{gls}\marg{html}.
\cend{abstract}
Some casual reference to \gls{gls}\marg{html}.
\cmd{section}\marg{Web Pages}
\gls{glsreset}\marg{html}This section is all about \gls{gls}\marg{html}.
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[title={Resetting the first use flag (\cmd{glsreset})},
label={ex:glsreset},
description={Example document illustrating the use of \cmd{glsreset}}]
{\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
}{%
\cbeg{abstract}^^J
This abstract mentions \gls{gls}\marg{html}.^^J
\cend{abstract}^^J
Some casual reference to \gls{gls}\marg{html}.^^J
\cmd{section}\marg{Web Pages}^^J
\gls{glsreset}\marg{html}%
This section is all about \gls{gls}\marg{html}.
}
\end{resultbox}
In the above example, an alternative is to use \gls{glsxtrfull}
where you particularly want the full form, but some abbreviation
styles have a different expansion with the
\idxc{inlinefullform}{inline} \gls{glsxtrfull} form compared with
the \idx{firstuse} of \gls{gls}.
The \sty{glossaries-extra} package provides the options
\glsopt{preunset} and \glsopt{prereset}, which can be used to unset
or reset the \idx{firstuseflag} before the \idx{linktext}.
This means that in the above example, the line:
\begin{codebox}
\gls{glsreset}\marg{html}This section is all about \gls{gls}\marg{html}.
\end{codebox}
can be replaced with:
\begin{codebox}
This section is all about \gls{gls}\oarg{\glsopt{prereset}}\marg{html}.
\end{codebox}
As mentioned above, the \idx{firstuseflag} is unset before the
\idx{postlinkhook}, so \gls{ifglsused} isn't helpful in the
\idx{postlinkhook}. Instead, you can use:
\cmddef{glsxtrifwasfirstuse}
This command is initialised by the \idx{glslike} commands according
to the value of the \idx{firstuseflag} before the \idx{linktext}.
It's also initialised by the \idx{glstextlike} commands: not
according to the value of the \idx{firstuseflag} but according to
whether or not the \idx{glstextlike} command emulates \idx{firstuse}.
For example, \gls{gls} will define \gls{glsxtrifwasfirstuse} to do
its first argument if the \idx{firstuseflag} indicates the entry
hasn't yet been used, otherwise it will define
\gls{glsxtrifwasfirstuse} to do its second argument. Whereas
\gls{glsfirst} will always define \gls{glsxtrifwasfirstuse} to do
its first argument (unless used with \glsopt{preunset}) and
\gls{glstext} will always define \gls{glsxtrifwasfirstuse} to do its
second argument (unless used with \glsopt{prereset}), regardless of
the state of the \idx{firstuseflag}.
The \glsopt{preunset} and \glsopt{prereset} options will
additionally redefine \gls{glsxtrifwasfirstuse} to match the option.
See \sectionref{sec:postlinkhook} for further details about the
\idx{postlinkhook}.
If you want to check if the calling command was both the
\idx{firstuse} and it was a \idx{glslike} command, you can use:
\gls{glsxtrifwasglslikeandfirstuse}.
The unset function performed by the \idx{glslike} commands before
the \idx{postlinkhook} uses the global \gls{glsunset} by default.
If you want \gls{glslocalunset} instead, you can use the
\glsopt{local} option (provided by the base \sty{glossaries}
package) or \glsoptval{postunset}{local}. To prevent the
\idx{firstuseflag} from being unset after the \idx{linktext}, use
\glsoptval{postunset}{none}.
\begin{codebox}
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
\cbeg{document}
\marg{\% local scope
\gls{gls}\oarg{\glsopt{local}}\marg{html}. Used? \gls{ifglsused}\marg{html}\marg{Yes}\marg{No}.
}\% end scope
\codepar
Used? \gls{ifglsused}\marg{html}\marg{Yes}\marg{No}.
\codepar
\gls{gls}\oarg{\glsoptval{postunset}{none}}\marg{html}. Used? \gls{ifglsused}\marg{html}\marg{Yes}\marg{No}.
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[title={Local unset},
label={ex:glslocalunset},
description={Example document illustrating locally unsetting the
first use flag}]
{\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
}{%
\marg{\% local scope^^J
\gls{gls}\oarg{local}\marg{html}.^^J
Used? \gls{ifglsused}\marg{html}\marg{Yes}\marg{No}.^^J
}\% end scope^^J
\codepar
Used? \gls{ifglsused}\marg{html}\marg{Yes}\marg{No}.
\codepar
\gls{gls}\oarg{postunset=none}\marg{html}.
Used? \gls{ifglsused}\marg{html}\marg{Yes}\marg{No}.
}
\end{resultbox}
If you are using the \optval{undefaction}{warn} option (which is
automatically implemented by the \opt{record} option), the
\idx{firstuseflag} is undefined and so is neither true nor false, in
which case \gls{ifglsused} will trigger an error or warning and do neither.
In this situation, you may need to use the following command
instead.
\cmddef{GlsXtrIfUnusedOrUndefined}
This does \meta{true} if the entry hasn't been defined or hasn't been marked as
\glsdisp{firstuseflag}{used}, otherwise does \meta{true}. Note
that this command will generate an error or warning (according to
\opt{undefaction}) if the entry hasn't been defined, but will
still do \meta{true}. This is more useful than \gls{ifglsused}
with \app{bib2gls} where the entries are never defined on the
first \LaTeX\ run.
\subsection{Buffering Unsets}
\label{sec:unsetbuffer}
Sometimes commands like \gls{gls} are used in a context where
changing a boolean variable can cause things to go wrong.
The outer, middle and inner formatting (see \sectionref{sec:entryfmtmods})
can be used to change the font for the \idx{linktext}, but it may be
that the \idx{glslike} command occurs within a block of text that
needs to be encapsulated by such a command.
One example of this is using \idx{gls} in one of the commands
provided with the \sty{soul} package. For example:
\begin{codebox}
\gls{ul}\marg{Some text about \gls{gls}\marg{html}.}
\end{codebox}
This causes the confusing error:
\begin{transcript}
Glossary entry `\marg{html}' has not been defined.
\end{transcript}
The simplest workaround is to put \code{\gls{gls}\marg{html}} inside the
argument of \gls{mbox}. For example:
\begin{codebox}
\gls{ul}\marg{Some text about \gls{mbox}\marg{\gls{gls}\marg{html}}.}
\end{codebox}
This can work provided it's not the \idx{firstuse} of this entry.
It if is, then unsetting the \idx{firstuseflag} causes a problem
and results in the error:
\begin{transcript}
! Package soul Error: Reconstruction failed.
\end{transcript}
The \sty{glossaries-extra} package provides a way of temporarily
switching off \gls{glsunset} so that it just makes a note of the
entry's label but doesn't actually perform the change.
\cmddef{GlsXtrStartUnsetBuffering}
This starts the buffering. The unstarred version doesn't check for
duplicates, so the internal list may end up with multiple
occurrences of the same label. The starred version only adds a label
to the internal list if it's not already in it.
If you are using entry counting (see \sectionref{sec:entrycount})
the unstarred version is preferable to ensure the entry count is
correct.
\begin{important}
Buffering only applies to the global \gls{glsunset} and does not
affect the local \gls{glslocalunset}.
\end{important}
The buffer can be locally cleared with:
\cmddef{GlsXtrClearUnsetBuffer}
This doesn't stop buffering. It will simply discard the labels that
have been buffered so far.
In order to restore the normal behaviour of \gls{glsunset}, the
buffering must be stopped or discarded.
\cmddef{GlsXtrStopUnsetBuffering}
This stops the buffering, restores \gls{glsunset}, and unsets all
the buffered labels. The starred form uses \gls{glslocalunset} to
unset the buffered labels.
Before you stop the unset buffering, you can iterate over the
current buffer.
\cmddef{GlsXtrForUnsetBufferedList}
This iterates over the currently buffered list of entry labels and
performs \code{\csfmt{\meta{handler-cs}}\margm{entry-label}} for each label,
where \meta{cs} is a control sequence that takes a single argument.
This is best used with the starred version of
\gls{GlsXtrStartUnsetBuffering}[*] to avoid duplicates.
\cmddef{GlsXtrDiscardUnsetBuffering}
This discards the buffer and restores \gls{glsunset} to its normal
behaviour.
It's possible to locally unset entries before use (analogous to
\glsoptval{preunset}{local}) if the entry has already been
encountered in the buffer. This will still be problematic for
situations where changing a conditional causes a problem, but may be
useful in some situations. This feature is enabled with:
\cmddef{GlsXtrUnsetBufferEnableRepeatLocal}
This may be placed before or after \gls{GlsXtrStartUnsetBuffering}
but the locally collected list of unused entries will be cleared at
the start of each instance of \gls{GlsXtrStartUnsetBuffering}.
It will also be cleared by \gls{GlsXtrClearUnsetBuffer}.
All entries that have been marked as unused can be reset with:
\cmddef{GlsXtrResetLocalBuffer}
This will perform a local reset on all the entries in the \qt{not
used} list and do \gls{GlsXtrClearUnsetBuffer}.
This feature can be switched off with:
\cmddef{GlsXtrUnsetBufferDisableRepeatLocal}
It's disabled by default.
The way this feature works is as follows (while buffering is active):
\begin{enumerate}
\item Each time an entry is referenced with a \idx{glslike} command,
the \gls{glsinitreunsets} hook checks if the current entry
(identified by \gls{glslabel}) has been added to the buffer.
(Bear in mind that the label is added to the buffer after the
\idx{linktext} when \gls{glsunset} is used.)
\begin{enumerate}
\item If it has been added to the buffer, then this is an indication
that the entry has already been used within the buffer zone (that is,
an attempt has been made to globally unset the \idx{firstuseflag}).
A local unset is then performed, which is essentially equivalent to using the
\glsoptval{preunset}{local} option, so the reference will behave
like \idx{subsequentuse}.
\item If it hasn't been added to the buffer, then this is an
indication that the entry hasn't already been used within the
buffer zone, but it may or may not have been used before the
buffering started. If the \idx{firstuseflag} indicates that the
entry hasn't been used, the entry's label will be added to the
\qt{not used} list. The reference will behave like \idx{firstuse},
but the unset won't be performed afterwards (because buffering is
in progress).
\end{enumerate}
\item The entries that are in the \qt{not used} list can be locally
reset and both the buffer and the \qt{not used} list can be cleared
with \gls{GlsXtrClearUnsetBuffer}.
\end{enumerate}
Note that this approach can't be used for situations where the
change in conditional causes a problem, but it can be used in
situations where the content of an environment or command is
repeatedly processed, which upsets the \idx{firstuseflag}.
For example, consider the following \cls{beamer} document:
\begin{codebox}
\cmd{documentclass}\marg{beamer}
\cmd{usepackage}\marg{glossaries-extra}
\gls{newabbreviation}\marg{svm}\marg{SVM}\marg{support vector machine}
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
\cbeg{document}
\cbeg{frame}
\cmd{frametitle}\marg{Frame 1}
\cbeg{itemize}
\cmd{item} \gls{gls}\marg{html} and \gls{gls}\marg{html}
\cend{itemize}
\cend{frame}
\cbeg{frame}
\cmd{frametitle}\marg{Frame 2}
\cbeg{itemize}
\cmd{item}<+-> \gls{gls}\marg{svm} and \gls{gls}\marg{svm}
\cmd{item}<+-> \gls{gls}\marg{svm} and \gls{gls}\marg{html}
\cend{itemize}
\cend{frame}
\cmd{frame}\marg{\gls{printunsrtglossaries}}
\cend{document}
\end{codebox}
The first page isn't a problem as the frame doesn't have overlays.
The first reference of the \qt{html} entry shows the full form
and the next shows just the short form. The second page
(which is the first of the overlays of the second frame) correctly
shows the full form of the \qt{svm} entry for the first reference and
the short form for the second reference, but on the third page
(the second of the overlays) now has all instances of \qt{svm} showing as
\idx{subsequentuse} (just the short form).
I could put \gls{glslocalresetall} at the start of the frame, but
that would reset the \qt{html} entry as well. Another workaround is
to locally reset the first \qt{svm} entry with
\glsopt{prereset}{local}, but that defeats the point of the
\idx{firstuseflag}, which is intended to keep track of whether or
not you have used an entry so that you don't have to.
The frame can be placed inside a buffering zone:
\begin{codebox}
\gls{GlsXtrStartUnsetBuffering}
\cbeg{frame}
\cmd{frametitle}\marg{Frame 2}
\cbeg{itemize}
\cmd{item}<+-> \gls{gls}\marg{svm} and \gls{gls}\marg{svm}
\cmd{item}<+-> \gls{gls}\marg{svm} and \gls{gls}\marg{html}
\cend{itemize}
\cend{frame}
\gls{GlsXtrStopUnsetBuffering}
\end{codebox}
This ensures that the \idx{firstuseflag} isn't reset until after the
frame, but it means that all references to the \qt{svm} entry on
both the second and third page show the full form.
The \qt{repeat local} function can be used so that repeated
references for the same entry can be locally unset before use.
This can be enabled with \gls{GlsXtrUnsetBufferEnableRepeatLocal}
which fixes the second page, but not the third page, which shows all
references to \qt{svm} as the short form. What's needed is to
locally reset and entries that are in the frame but haven't yet been
used (\qt{svm}, in this case) at the start of the frame with
\gls{GlsXtrResetLocalBuffer}:
\begin{codebox}
\gls{GlsXtrStartUnsetBuffering}
\gls{GlsXtrUnsetBufferEnableRepeatLocal}
\cbeg{frame}
\gls{GlsXtrResetLocalBuffer}
\cmd{frametitle}\marg{Frame 2}
\cbeg{itemize}
\cmd{item}<+-> \gls{gls}\marg{svm} and \gls{gls}\marg{svm}
\cmd{item}<+-> \gls{gls}\marg{svm} and \gls{gls}\marg{html}
\cend{itemize}
\cend{frame}
\gls{GlsXtrStopUnsetBuffering}
\end{codebox}
Note that on the first overlay, the buffer and \qt{not used} list
are both empty. On the second overlay, the buffer contains the
\qt{svm} and \qt{html} labels and the \qt{not used} list just contains
the \qt{svm} label. The reset performed by \gls{GlsXtrResetLocalBuffer}
will reset \qt{svm} and then clear both the buffer and the \qt{not
used} list. This means that the first \qt{svm} reference is once
again considered \idx{firstuse} and it will once again be added to
the \qt{not used} list (so that it would be reset again if there was
a third overlay).
\begin{resultbox}
\createexample*
[arara={pdflatex,pdflatex},class={beamer},pages={1,2,3,4},
label={ex:unsetbeamer},
title={Abbreviations with \clsfmt{beamer} (unset buffering)},
description={An example document that uses beamer with buffering}
]
{\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{newabbreviation}\marg{svm}\marg{SVM}\marg{support vector machine}^^J%
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
}%
{%
\cbeg{frame}^^J
\cmd{frametitle}\marg{Frame 1}^^J
\cbeg{itemize}^^J
\cmd{item} \gls{gls}\marg{html} and \gls{gls}\marg{html}^^J
\cend{itemize}^^J
\cend{frame}^^J%
\gls{GlsXtrStartUnsetBuffering}^^J%
\gls{GlsXtrUnsetBufferEnableRepeatLocal}^^J%
\cbeg{frame}^^J%
\gls{GlsXtrResetLocalBuffer}^^J
\cmd{frametitle}\marg{Frame 2}^^J
\cbeg{itemize}^^J
\cmd{item}<+-> \gls{gls}\marg{svm} and \gls{gls}\marg{svm}^^J
\cmd{item}<+-> \gls{gls}\marg{svm} and \gls{gls}\marg{html}^^J
\cend{itemize}^^J%
\cend{frame}^^J%
\gls{GlsXtrStopUnsetBuffering}^^J%
\cmd{frame}\marg{\gls{printunsrtglossaries}}
}
\end{resultbox}
This is quite cumbersome, but these commands could potentially be added to
hooks at the start and end of problematic environments (but the
buffering needs to be started and ended outside of the repeated
content).
The following example uses \gls{mbox} to protect \gls{gls} within
the buffer zone:
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}[T1]\marg{fontenc}
\cmd{usepackage}\marg{soul}
\cmd{usepackage}\marg{glossaries-extra}
\codepar
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
\codepar
\cbeg{document}
\gls{GlsXtrStartUnsetBuffering}
\gls{ul}\marg{Some text about \gls{mbox}\marg{\gls{gls}\marg{html}}.
Next use: \gls{mbox}\marg{\gls{gls}\marg{html}}.}
\gls{GlsXtrStopUnsetBuffering}
\codepar
Next use: \gls{gls}\marg{html}.
\cend{document}
\end{codebox}
This produces:
\begin{resultbox}
\createexample*[title={Buffering first use unsets with \cmd{mbox}},
label={ex:bufferingmbox},
description={Example document that uses buffering to defer
unsetting the first use flag unset in problematic contexts. The use
of box creates an overly long line}]
{%
\cmd{usepackage}[T1]\marg{fontenc}^^J%
\cmd{usepackage}\marg{soul}^^J%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\codepar
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
}
{\gls{GlsXtrStartUnsetBuffering}^^J%
\gls{ul}\marg{Some text about \gls{mbox}\marg{\gls{gls}\marg{html}}.^^J%
Next use: \gls{mbox}\marg{\gls{gls}\marg{html}}.}^^J%
\gls{GlsXtrStopUnsetBuffering}^^J%
\codepar
Next use: \gls{gls}\marg{html}.
}
\end{resultbox}
Note that the use of \gls{mbox} prevents line-breaking and the
second instance of \code{\gls{gls}\marg{html}} is treated as
\idx{firstuse}.
\begin{warning}
Note that since the change in the \idx{firstuseflag} now doesn't
occur until \gls{GlsXtrStopUnsetBuffering}, multiple references
of the same term within the buffering zone will always be
treated as \idx{firstuse} (if the term wasn't used before the
buffering started).
\end{warning}
Other alternatives include using \gls{protect} and inner formatting
(see \sectionref{sec:innertextformat} for limitations) or middle
formatting (see \sectionref{sec:middleformat}) with
\gls{GlsXtrExpandedFmt} (which can't be used with fragile
\idx{linktext}). Both approaches are demonstrated in the following
example:
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}[T1]\marg{fontenc}
\cmd{usepackage}\marg{soul}
\cmd{usepackage}\marg{glossaries-extra}
\codepar
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
\comment{custom command to expand content before using \gls{ul}:}
\cmd{newrobustcmd}\marg{\cmd{xpul}}[1]\marg{\gls{GlsXtrExpandedFmt}\marg{\gls{ul}}\marg{\#1}}
\codepar
\cbeg{document}
First approach (inner formatting):
\marg{\% scope
\cmd{renewcommand}\marg{\gls{glsxtrdefaultentrytextfmt}}[1]\marg{\gls{ul}\marg{\#1}}\%
\gls{ul}\marg{Some text about \gls{protect}\gls{gls}\marg{html}.
Next use: \gls{protect}\gls{gls}\marg{html}}
}
\codepar
Next use: \gls{gls}\marg{html}.
\codepar
Second approach (middle formatting with expanded link text):
\gls{glsresetall}
\marg{\% scope
\cmd{renewcommand}\marg{\gls{glsxtrabbreviationfont}}[1]\marg{\cmd{xpul}\marg{\#1}}\%
\cmd{renewcommand}\marg{\gls{glsxtrregularfont}}[1]\marg{\cmd{xpul}\marg{\#1}}\%
\gls{ul}\marg{Some text about \gls{protect}\gls{gls}\marg{html}.
Next use: \gls{gls}\marg{html}.}
}
\codepar
Next use: \gls{gls}\marg{html}.
\cend{document}
\end{codebox}
This produces:
\begin{resultbox}
\createexample*[label={ex:protectinnertextformat},
title={Alternatives to buffering},
description={Example document illustrating inner and middle
formatting alternatives to unset
buffering where entries are referenced within sensitive formatting
commands}]
{%
\cmd{usepackage}[T1]\marg{fontenc}^^J%
\cmd{usepackage}\marg{soul}^^J%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\codepar
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}^^J%
\% custom command to expand content before using \gls{ul}:^^J
\cmd{newrobustcmd}\marg{\cmd{xpul}}[1]\marg{\gls{GlsXtrExpandedFmt}\marg{\gls{ul}}\marg{\#1}}
\codepar
}
{%
First approach (inner formatting):^^J%
\marg{\% scope^^J
\cmd{renewcommand}\marg{\gls{glsxtrdefaultentrytextfmt}}[1]\marg{\gls{ul}\marg{\#1}}\%^^J
\gls{ul}\marg{Some text about \gls{protect}\gls{gls}\marg{html}.^^J
Next use: \gls{protect}\gls{gls}\marg{html}}^^J%
}^^J%
\codepar
Next use: \gls{gls}\marg{html}.^^J%
\codepar
Second approach (middle formatting with expanded link text):^^J%
\gls{glsresetall}^^J%
\marg{\% scope^^J
\cmd{renewcommand}\marg{\gls{glsxtrabbreviationfont}}[1]\marg{\cmd{xpul}\marg{\#1}}\%^^J
\cmd{renewcommand}\marg{\gls{glsxtrregularfont}}[1]\marg{\cmd{xpul}\marg{\#1}}\%^^J
\gls{ul}\marg{Some text about \gls{protect}\gls{gls}\marg{html}.
Next use: \gls{gls}\marg{html}.}^^J%
}
\codepar
Next use: \gls{gls}\marg{html}.
}
\end{resultbox}
The change in the \idx{firstuseflag} isn't the only content within
the \idx{glslike} commands that can cause a problem. The
\idx{whatsit} caused by \idx{indexing} can also be problematic.
Buffering can also be used to help with that situation. Indexing can
be switched off at the start of the buffering and
\gls{GlsXtrForUnsetBufferedList} can be used to perform the indexing
outside of the problematic content. Note that this can cause a
problem if the \location\ changes (for example, if a page break occurs
within the buffering zone).
Buffering can also be used to simply gather the labels that have
been referenced with a \idx{glslike} command in order to, for
example, display a \idx{mini-glossary} at the end of the block. See for
example, \gallerypage{minigloss}{Gallery: Mini-Glossary}.
\section{Accessing Fields}
\label{sec:getfields}
See \sectionref{sec:setfields} for setting fields after an entry has
been defined, \sectionref{sec:csvfields} for fields that contain
comma-separated lists or whose values may be contained within comma-separated lists,
\sectionref{sec:getsee} for cross-referencing fields (\gloskey{see},
\gloskey{seealso} and \gloskey{alias}),
and \sectionref{sec:fieldconditionals} for testing
field values. See also the base \sty{glossaries} package's commands,
such as \gls{glsentryname} and \gls{glsletentryfield}.
\cmddef{glsxtrusefield}
This expands to the value of the \idx{field}
(identified by its \idxc{internalfieldlabel}{internal label}
\meta{field-label}) for the entry identified by \meta{entry-label}.
Expands to \gls{relax} if the \idx{field} or entry are undefined.
\cmddef{Glsxtrusefield}
This is like \gls{glsxtrusefield} but converts the first character
to \idx{uppercase} using \gls{makefirstuc} (provided by
\sty{mfirstuc}) which is robust. If \sty{hyperref} is loaded,
\code{\gls{Glsxtrusefield}\margm{entry-label}} will use the expandable:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glsxtrusefield}\margm{entry-label}}
\end{compactcodebox}
in a PDF bookmark.
\cmddef{GLSxtrusefield}
This is like \gls{glsxtrusefield} but converts the field value to
\idx{uppercase}. See \sectionref{sec:uppercase}.
\cmddef{glsxtrfieldtitlecase}
This is like \gls{glsxtrusefield} but converts the field value to
\idx{titlecase}. This internally uses:
\cmddef{glsxtrfieldtitlecasecs}
This converts \meta{content} to \idx{titlecase} (expanding the first
token once). If \gls{glscapitalisewords} has been defined, that will
be used, otherwise \gls{capitalisewords} will be used.
\cmddef{glsxtrentryparentname}
Expands to the entry's parent \gloskey{name} if defined. Expands to
nothing if the entry doesn't have a parent or if the entry isn't
defined. If you simply require the parent label then use
\gls{glsentryparent} or, to first test if the entry has a parent,
either use \gls{ifglshasparent} or use \gls{glsxtrifhasfield} with
the field label set to \code{parent}.
\cmddef{glsxtrhiername}
Displays the hierarchical name for the given entry. The
cross-reference format \gls{glsseeitemformat} may be redefined to
use this command to show the hierarchy, if required.
This command has a recursive definition. If the entry given by
\meta{entry-label} has a parent, then this command will do
\code{\gls{glsxtrhiername}\margm{parent-label}} for the entry's parent and
will then do the separator \gls{glsxtrhiernamesep}.
Then, regardless of whether or not the entry has a parent, it will
do \code{\gls{glsfmttext}\margm{entry-label}}, if the entry is an
abbreviation (see \sectionref{sec:examplediffsabbrv}), or
\code{\gls{glsfmtname}\margm{entry-label}} otherwise.
\begin{information}
If \sty{hyperref} is loaded, \gls{glsxtrhiername} will
behave as \gls{glsentryname} in a PDF bookmark.
\end{information}
\cmddef{glsxtrhiernamesep}
Separator symbol (\glsxtrhiernamesep) used between each name in
commands like \gls{glsxtrhiername}.
\cmddef{Glsxtrhiername}
As \gls{glsxtrhiername} but the first name in the list has its first character
converted to \idx{uppercase} using \gls{Glsfmttext} or
\gls{Glsfmtname} (\idx{sentencecase}).
If \sty{hyperref} is loaded, \gls{Glsxtrhiername} will expand to:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glsentryname}\margm{entry-label}}
\end{compactcodebox}
in a PDF bookmark. The \gls{makefirstuc} mapping from
\gls{glsxtrhiername} to \gls{Glsxtrhiername} is set with
\gls{glsmfuaddmap}, if supported.
\cmddef{GlsXtrhiername}
As \gls{glsxtrhiername} but each name in the list has its first character
converted to \idx{uppercase} using \gls{Glsfmttext} or \gls{Glsfmtname}.
\cmddef{GLSxtrhiername}
As \gls{glsxtrhiername} but the first name in the list is
converted to \idx{uppercase} using \gls{GLSfmttext} or
\gls{GLSfmtname}.
\cmddef{GLSXTRhiername}
As \gls{glsxtrhiername} but each name in the list is
converted to \idx{uppercase} using \gls{GLSfmttext} or
\gls{GLSfmtname} (\idx{allcaps}).
\section{Encapsulation (Formatting) Based on Field Values}
These commands assume that a given entry has a special purpose field
that's used to store information on how to format text.
\subsection{Foreign Language Field}
\label{sec:foreignfield}
\cmddef{GlsXtrForeignTextField}
This command should expand to the \idx{internalfieldlabel} used to store a
language tag (such as \code{en-GB} or \code{de-CH-1996}). The
default value is \code{userii} (which corresponds to the
\gloskey{user2} key).
\cmddef{GlsXtrForeignText}
If the entry given by \meta{entry-label} has the field identified by
\gls{GlsXtrForeignTextField} set, then this command will encapsulate
\meta{text} according to the language tag stored in that field.
This uses \sty{tracklang}['s] interface to determine the language
label that corresponds to the language tag. If the language label
can be determined, the \meta{text} will be encapsulated with
\gls{foreignlanguage} otherwise just \meta{text} is done.
If \gls{foreignlanguage} isn't defined (that is, there's no language
support for the document), this command simply does \meta{text}. If
an old version of \sty{tracklang} is used, this command issues a
warning and just does \meta{text}.
If \sty{tracklang} can't determine the corresponding language label
to use with \gls{foreignlanguage}, then a warning is issued with:
\cmddef{GlsXtrUnknownDialectWarning}
where \meta{locale} is the language tag supplied in the given field
value and \meta{root language} is the root language that
\sty{tracklang} has inferred from the tag.
\begin{information}
\gls{GlsXtrForeignText} requires \sty{tracklang} v1.3.6+.
\end{information}
For example:
\begin{codebox}
\cmd{usepackage}[main=british,brazilian,ngerman]\marg{babel}
\cmd{usepackage}\marg{glossaries-extra}
\gls{setabbreviationstyle}\marg{\abbrstyle{long-short-user}}
\gls{newabbreviation}
\oarg{\gloskeyval{user1}{Associa\c{c}\~ao Brasileria de Normas T\'ecnicas},
\gloskeyval{user2}{pt-BR}
}
\marg{abnt}\marg{ABNT}\marg{Brazilian National Standards Organization}
\codepar
\gls{newabbreviation}
\oarg{\gloskeyval{user1}{Deutsches Institut f\"ur Normung e.V.},
\gloskeyval{user2}{de-DE-1996}}
\marg{din}\marg{DIN}\marg{German Institute for Standardization}
\codepar
\gls{newabbreviation}\marg{tug}\marg{TUG}\marg{\cmd{TeX}\cmd{ }User Group}
\codepar
\cmd{renewcommand}*\marg{\gls{glsxtruserparen}}[2]\marg{\%
\gls{glsxtrfullsep}\marg{\#2}\%
\gls{glsxtrparen}
\marg{\#1\%
\gls{ifglshasfield}\marg{\gls{glsxtruserfield}}\marg{\#2}\%
\marg{, \cmd{emph}\marg{\gls{GlsXtrForeignText}\marg{\#2}\marg{\gls{glscurrentfieldvalue}}}}\%
\marg{}\%
}\%
}
\codepar
\cbeg{document}
\gls{gls}\marg{abnt}, \gls{gls}\marg{din}, \gls{gls}\marg{tug}.
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
This produces:
\begin{resultbox}
\createexample*[title={Foreign language field encapsulation},
label={ex:foreignlangfmt},
description={Example document illustrating fields containing
different languages that need encapsulating with the relevant
language command}]
{%
\cmd{usepackage}[main=british,brazilian,ngerman]\marg{babel}^^J%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{setabbreviationstyle}\marg{long-short-user}^^J%
\gls{newabbreviation}^^J%
\oarg{\gloskeyval{user1}{Associa\c{c}\~ao Brasileria de Normas T\'ecnicas},^^J%
\gloskeyval{user2}{pt-BR}^^J%
}^^J%
\marg{abnt}\marg{ABNT}\marg{Brazilian National Standards Organization}^^J%
\codepar
\gls{newabbreviation}^^J%
\oarg{\gloskeyval{user1}{Deutsches Institut f\"ur Normung e.V.},^^J%
\gloskeyval{user2}{de-DE-1996}}^^J%
\marg{din}\marg{DIN}\marg{German Institute for Standardization}^^J%
\codepar
\gls{newabbreviation}\marg{tug}\marg{TUG}\marg{\cmd{TeX}\cmd{ }User Group}^^J%
\codepar
\cmd{renewcommand}*\marg{\gls{glsxtruserparen}}[2]\marg{\%^^J%
\gls{glsxtrfullsep}\marg{\#2}\%^^J%
\gls{glsxtrparen}^^J%
\marg{\#1\%^^J%
\gls{ifglshasfield}\marg{\gls{glsxtruserfield}}\marg{\#2}\%^^J%
\marg{, \cmd{emph}\marg{\gls{GlsXtrForeignText}\marg{\#2}\marg{\gls{glscurrentfieldvalue}}}}\%^^J%
\marg{}\%^^J%
}\%^^J%
}
}
{
\gls{gls}\marg{abnt}, \gls{gls}\marg{din}, \gls{gls}\marg{tug}.^^J%
\gls{printunsrtglossaries}
}
\end{resultbox}
\subsection{Associated Entry Format}
\label{sec:glsxtrfmt}
An entry may have a particular formatting style associated with it
(rather than a more general category-wide format). This needs to be
provided by a text-block command that takes a single argument. The
name (without the leading backslash) should be stored in the field
identified by:
\cmddef{GlsXtrFmtField}
This command should expand to the \idx{internalfieldlabel} used to
store the formatting command's control sequence name. The default
value is \code{useri} (which corresponds to the \gloskey{user1} key).
\cmddef{glsxtrfmt}
This command behaves like:
\begin{compactcodebox}
\gls{glslink}\oargm{options}\margm{entry-label}\marg{\meta{fmt-link-text}}
\end{compactcodebox}
where the \idx{linktext} \meta{fmt-link-text} is formatted according to:
\cmddef{glsxtrfmtdisplay}
The default definition simply does \code{\cmd{\meta{csname}}\margm{text}\meta{insert}}
where the control sequence name \meta{csname} is obtained from the
field given by \gls{GlsXtrFmtField}. If the field hasn't been set,
\gls{@firstofone} is used (which simply does its argument).
The unstarred version assumes an empty \meta{insert}.
The default \gls{glslink} options are given by \gls{GlsXtrFmtDefaultOptions}.
\begin{information}
The \idx{postlinkhook} is suppressed with \gls{glsxtrfmt}.
\end{information}
If you don't want the complexity of \gls{glslink}, a partially
expandable command is provided that may be used in section headings:
\cmddef{glsxtrentryfmt}
If \sty{hyperref} has been loaded, this will expand to:
\cmddef{glsxtrpdfentryfmt}
within the PDF bookmarks, which just does \meta{text}. Otherwise
\gls{glsxtrentryfmt} will format \meta{text} according to the
control sequence name identified in the field given by \gls{GlsXtrFmtField} (or
\code{@firstofone}, if not set).
For example:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}[T1]\marg{fontenc}
\cmd{usepackage}\marg{amsmath}
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}[\opt{postdot},\optval{style}{\glostyle{index}}]\marg{glossaries-extra}
\gls{makeglossaries}
\cmd{newcommand}*\marg{\cmd{mtx}}[1]\marg{\cmd{boldsymbol}\marg{\#1}}
\cmd{newcommand}*\marg{\cmd{mtxinv}}[1]\marg{\cmd{mtx}\marg{\#1}\cmd{sp}\marg{-1}}
\codepar
\gls{newglossaryentry}\marg{matrix}\marg{\%
\gloskeyval{name}{matrix},
\gloskeyval{symbol}{\cmd{ensuremath}\marg{\cmd{mtx}\marg{M}}},
\gloskeyval{plural}{matrices},
\gloskeyval{user1}{mtx},\comment{corresponds to \cmd{mtx}}
\gloskeyval{description}{rectangular array of values}
}
\codepar
\gls{newglossaryentry}\marg{identitymatrix}\marg{\%
\gloskeyval{name}{identity matrix},
\gloskeyval{symbol}{\cmd{ensuremath}\marg{\cmd{mtx}\marg{I}}},
\gloskeyval{plural}{identity matrices},
\gloskeyval{description}{a diagonal matrix with all diagonal
elements equal to 1 and all other elements equal to 0}
}
\codepar
\gls{newglossaryentry}\marg{matrixinv}\marg{\%
\gloskeyval{name}{matrix inverse},
\gloskeyval{symbol}{\cmd{ensuremath}\marg{\cmd{mtxinv}\marg{M}}},
\gloskeyval{user1}{mtxinv},\comment{corresponds to \cmd{mtxinv}}
\gloskeyval{description}{a square \gls{gls}\marg{matrix} such that
\$\cmd{mtx}\marg{M}\cmd{mtxinv}\marg{M}=\gls{glssymbol}\marg{identitymatrix}\$}
}
\cbeg{document}
A \gls{gls}\marg{matrix} is denoted \gls{glssymbol}\marg{matrix}.
The inverse is denoted \gls{glssymbol}\marg{matrixinv}.
\cmd{[}
\gls{glsxtrfmt}\marg{matrix}\marg{A} \gls{glsxtrfmt}\marg{matrixinv}\marg{A}
= \gls{glssymbol}\marg{identitymatrix}
\cmd{]}
Compare \$\gls{glsxtrfmt}\marg{matrix}\marg{A}[\_0]\$
with \$\gls{glsxtrfmt*}\marg{matrix}\marg{A}[\_0]\$.
\cmd{printglossaries}
\cend{document}
\end{codebox}
This produces:
\begin{resultbox}
\createexample*[title={Storing a formatting command in a field},
label={ex:glsxtrfmt},
description={Example document that uses a field to store the
formatting command associated with the glossary entry},
arara={pdflatex,makeglossaries,pdflatex,pdfcrop}]
{%
\cmd{usepackage}[T1]\marg{fontenc}^^J%
\cmd{usepackage}\marg{amsmath}^^J%
\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}[postdot,style=index]\marg{glossaries-extra}^^J%
\codepar
\gls{makeglossaries}^^J%
\codepar
\cmd{newcommand}*\marg{\cmd{mtx}}[1]\marg{\cmd{boldsymbol}\marg{\#1}}^^J%
\cmd{newcommand}*\marg{\cmd{mtxinv}}[1]\marg{\cmd{mtx}\marg{\#1}\cmd{sp}\marg{-1}}^^J%
\codepar
\gls{newglossaryentry}\marg{matrix}\marg{\%^^J%
\gloskeyval{name}{matrix},^^J%
\gloskeyval{symbol}{\cmd{ensuremath}\marg{\cmd{mtx}\marg{M}}},^^J%
\gloskeyval{plural}{matrices},^^J%
\gloskeyval{user1}{mtx},^^J%
\gloskeyval{description}{rectangular array of values}^^J%
}^^J%
\codepar
\gls{newglossaryentry}\marg{identitymatrix}\marg{\%^^J%
\gloskeyval{name}{identity matrix},^^J%
\gloskeyval{symbol}{\cmd{ensuremath}\marg{\cmd{mtx}\marg{I}}},^^J%
\gloskeyval{plural}{identity matrices},^^J%
\gloskeyval{description}{a diagonal matrix with all diagonal
elements equal to^^J%
1 and all other elements equal to 0}^^J%
}
\codepar
\gls{newglossaryentry}\marg{matrixinv}\marg{\%^^J%
\gloskeyval{name}{matrix inverse},^^J%
\gloskeyval{symbol}{\cmd{ensuremath}\marg{\cmd{mtxinv}\marg{M}}},^^J%
\gloskeyval{user1}{mtxinv},^^J%
\gloskeyval{description}{a square \gls{gls}\marg{matrix} such
that^^J%
\string$\cmd{mtx}\marg{M}\cmd{mtxinv}\marg{M}=\gls{glssymbol}\marg{identitymatrix}\string$}^^J%
}^^J%
}
{%
A \gls{gls}\marg{matrix} is denoted \gls{glssymbol}\marg{matrix}.^^J%
The inverse is denoted \gls{glssymbol}\marg{matrixinv}.^^J%
\cmd{[}^^J%
\gls{glsxtrfmt}\marg{matrix}\marg{A}^^J%
\gls{glsxtrfmt}\marg{matrixinv}\marg{A}^^J%
=^^J%
\gls{glssymbol}\marg{identitymatrix}^^J%
\cmd{]}^^J%
Compare \string$\gls{glsxtrfmt}\marg{matrix}\marg{A}[\string_0]\string$^^J%
with \string$\gls{glsxtrfmt*}\marg{matrix}\marg{A}[\string_0]\string$.
\cmd{printglossaries}
}
\end{resultbox}
Note the difference between using \gls{glsxtrfmt*} vs \gls{glsxtrfmt}.
There are also \idx{sentencecase} versions of the above commands:
\cmddef{Glsxtrfmt}
This is simply a shortcut for:
\begin{compactcodebox}
\gls{glsxtrfmt}\oargm{options}\margm{entry-label}\marg{\gls{glssentencecase}\margm{text}}
\end{compactcodebox}
Similarly for the starred form:
\cmddef{Glsxtrfmt*}
which is a shortcut for:
\begin{compactcodebox}
\gls{glsxtrfmt*}\oargm{options}\margm{entry-label}\marg{\gls{glssentencecase}\margm{text}}\oargm{insert}
\end{compactcodebox}
\cmddef{Glsxtrentryfmt}
This is a shortcut for
\begin{compactcodebox}
\gls{glsxtrentryfmt}\margm{entry-label}\marg{\gls{glssentencecase}\margm{text}}
\end{compactcodebox}
but uses:
\cmddef{Glsxtrpdfentryfmt}
for the PDF bookmarks. This uses \gls{MFUsentencecase} to perform
the case-change, which is expandable.
If you are writing \gls{glsxtrfmt} or \gls{glsxtrentryfmt}
explicitly in the document text, you can, of course, enter the
appropriate case in \meta{text} directly. The purpose of providing
the \idx{sentencecase} commands is to enable a mapping to be setup
with \gls{MFUaddmap} in the event that \gls{glsxtrfmt} or
\gls{glsxtrentryfmt} occur at the start of content, such as another
entry's description, that will have \idx{sentencecase}
automatically applied. This will require \sty{mfirstuc} v2.08+ to
support the mapping. See the \sty{mfirstuc} manual for further details.
\section{Comma-Separated Lists}
\label{sec:csvfields}
These commands are for field values that are comma-separated
lists (for example, the field has been constructed with
\gls{glsxtrapptocsvfield}) or for testing if field values are
contained within comma-separated lists.
\begin{information}
If you are using \app{bib2gls}, you can sort field values that
contain a comma-separated list of labels (such as the \gloskey{see}
or \gloskey{seealso} field) with the \resourceopt{sort-label-list}
option (provided \app{bib2gls} can access those fields). See the
\app{bib2gls} manual for further details.
\end{information}
\cmddef{glsseelist}
This is provided by the base \sty{glossaries} package to format the
entry labels in \gloskey{see} cross-reference list. (It's used
internally by \gls{glsseeformat}, which adds the \emph{see} prefix.) It may also be
used for any comma-separated list of entry labels. Note that the
argument isn't expanded. If expansion is required, use:
\cmddef{glsxtrseelist}
This fully expands its argument and passes the result to
\gls{glsseelist}.
With just the base \sty{glossaries} package, each item is encapsulated with
\gls{glsseeitem}.
The \sty{glossaries-extra} package redefines \gls{glsseelist} to make it more
flexible and provides additional commands to further customize the
formatting.
\cmddef{glsxtrtaggedlist}
This is a similar command that has an initial tag inserted before
the start of the list. If the list only contains one element, the
\meta{singular tag} is used. If the list contains more than one
element, the \meta{plural tag} is used. The separator between the
tag and the list is given by:
\cmddef{glsxtrtaggedlistsep}
The separators between the elements of the list and the formatting
of each list element is as for \gls{glsseelist} (see below). If the list is
empty, nothing is displayed. The \meta{label prefix} is inserted
before the current item in the list to form the entry label.
\begin{warning}
Spaces in \meta{csv-list} are significant. Avoid unwanted leading or
trailing spaces and empty labels.
\end{warning}
\cmddef{glsseeitemformat}
The base \sty{glossaries} package just uses \gls{glsentryname} or
\gls{glsentrytext} in this command. The \sty{glossaries-extra} package
redefines this so that it does:
\begin{codebox}
\gls{ifglshasshort}\margm{entry-label}\marg{\gls{glsfmttext}\margm{entry-label}}
\marg{\gls{glsfmtname}\margm{entry-label}}
\end{codebox}
Note that the use of \gls{glsfmttext} rather than \gls{glsentrytext}
allows the abbreviation style to be used.
With \sty{glossaries-extra}, the first item in \gls{glsseelist} will be encapsulated
with:
\cmddef{glsseefirstitem}
The default definition is simply \code{\gls{glsseeitem}\margm{entry-label}} but
can be redefined, for example to convert the first character to
\idx{uppercase} if \idx{sentencecase} is required.
\begin{information}
If the label corresponds to a multi-entry, \gls{mglsseefirstitem}
will be used instead (see \sectionref{sec:msee}). Similarly,
\gls{mglsseeitem} will be used instead of \gls{glsseeitem} for a
multi-entry label.
\end{information}
\cmddef{glsseesep}
This is used between each entry in the list, except between the
final pair.
\cmddef{glsseelastsep}
This is used between the penultimate and final item in the list.
The default definition is:
\begin{codebox}
\cmd{space}\gls{andname}\cmd{space}
\end{codebox}
(\gls{andname} is provided by \sty{glossaries}, if not already
defined, and simply expands to \gls{amp} but it may be defined to
expand to something else by another package before \sty{glossaries}
is loaded.)
With \sty{glossaries-extra}, if there are at least three elements in
the list, the separator between the final two elements will be given by:
\cmddef{glsseelastoxfordsep}
This just defaults to \gls{glsseelastsep} but may be redefined to
include a comma, if preferred.
\cmddef{glsxtrforcsvfield}
This iterates over the comma-separated list stored in the given \idx{field}
(identified by its \idxc{internalfieldlabel}{internal label})
for the entry identified by \meta{entry-label} and performs
\code{\meta{handler cs}\margm{element}} for each element of the
list. This command uses \gls{glsxtrifhasfield} so the complete
list can be obtained with \gls{glscurrentfieldvalue}. Does nothing
if the field hasn't been set or the entry hasn't been defined. The
unstarred version adds implicit grouping. The starred version
doesn't.
It's possible to prematurely break the loop at the end of the
current iteration with:
\cmddef{glsxtrendfor}
If nested within another command that also uses \gls{@for}, use the
unstarred version to localise the break. This command is simply set
to \gls{@endfortrue}, which is provided by the \sty{xfor} package.
\cmddef{glsxtrfieldformatcsvlist}
This formats the comma-separated list stored in the given \idx{field}
(identified by its \idxc{internalfieldlabel}{internal label})
for the entry identified by \meta{entry-label} using \sty{datatool-base}['s]
\gls{DTLformatlist}.
This command uses \gls{glsxtrifhasfield} so the complete
list can be obtained with \gls{glscurrentfieldvalue}.
This adds implicit grouping. There is no starred version.
The following demonstrates the difference between \gls{glsseelist}
(which specifically requires a list of labels) and \gls{glsxtrfieldformatcsvlist}
(which formats an arbitrary list):
\begin{codebox}
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}
\cmd{usepackage}\oarg{\optval{autoseeindex}{false}}\marg{glossaries-extra}
\gls{newglossaryentry}\marg{example}\marg{\gloskeyval{name}{example},\gloskeyval{description}{},
\gloskeyval{see}{another1,another2}}
\gls{newglossaryentry}\marg{another1}\marg{\gloskeyval{name}{another one},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{another2}\marg{\gloskeyval{name}{another two},\gloskeyval{description}{}}
\cbeg{document}
\gls{glsxtrapptocsvfield}\marg{example}\marg{animals}\marg{duck}
\gls{glsxtrapptocsvfield}\marg{example}\marg{animals}\marg{albatross}
\gls{glsxtrapptocsvfield}\marg{example}\marg{animals}\marg{arara}
Animal list: \gls{glsxtrfieldformatcsvlist}\marg{example}\marg{animals}
\codepar
See list: \gls{glsxtrifhasfield}\marg{see}\marg{example}
\marg{\gls{glsxtrseelist}\marg{\gls{glscurrentfieldvalue}}}\marg{not set}.
\codepar
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
There's no \idx{indexing} in this document so I've used
\optval{autoseeindex}{false} to avoid an error. This means there's no cross-reference
list in the glossary but, as demonstrated, the \qt{see} list can be
reproduced in the document. The result is:
\begin{resultbox}
\createexample*[title={Formatting lists contained in field values},
label={ex:fieldformatcsv},
description={Example document that uses two different methods of
sorting fields that contain a comma-separated list}]
{%
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}^^J%
\cmd{usepackage}\oarg{autoseeindex=false}\marg{glossaries-extra}^^J%
\gls{newglossaryentry}\marg{example}\marg{name=example,description={},^^J%
see={another1,another2}}^^J%
\gls{newglossaryentry}\marg{another1}\marg{name={another one},description={}}^^J%
\gls{newglossaryentry}\marg{another2}\marg{name={another two},description={}}^^J%
}
{%
\gls{glsxtrapptocsvfield}\marg{example}\marg{animals}\marg{duck}^^J%
\gls{glsxtrapptocsvfield}\marg{example}\marg{animals}\marg{albatross}^^J%
\gls{glsxtrapptocsvfield}\marg{example}\marg{animals}\marg{arara}^^J%
Animal list: \gls{glsxtrfieldformatcsvlist}\marg{example}\marg{animals}.^^J%
\codepar
See list: \gls{glsxtrifhasfield}\marg{see}\marg{example}\marg{\gls{glsxtrseelist}\marg{\gls{glscurrentfieldvalue}}}\marg{not set}.^^J%
\codepar
\gls{printunsrtglossaries}
}
\end{resultbox}
This first constructs a comma-separated list in a custom \idx{internalfield}
with the label \code{animals}. There's no associated key that can be
used in \gls{newglossaryentry}. In this case, the \idx{field} could simply
be set in one command. For example:
\begin{codebox}
\gls{glsxtrdeffield}\marg{example}\marg{animals}\marg{duck,albatross,arara}
\end{codebox}
The main reason for providing \gls{glsxtrapptocsvfield} is for the
benefit of \app{bib2gls}, as it sometimes has to construct a field
value list while it's writing the \ext{glstex} file, but there may
be other uses in complex documents that construct field values
through some custom function.
\cmddef{GlsXtrIfValueInFieldCsvList}
This does \meta{true} if the comma-separated list stored in the given \idx{field}
(identified by its \idxc{internalfieldlabel}{internal label})
contains the given \meta{value} (using \gls{DTLifinlist}
provided by \sty{datatool-base}) or \meta{false} if the value isn't in the
list or if the field hasn't been set or the entry hasn't been
defined. The unstarred version adds implicit grouping. The starred
version doesn't.
This command internally uses \gls{glsxtrifhasfield}, so take care if
it's nested. Within \meta{false}, you can test if \gls{glscurrentfieldvalue}
is empty or undefined. If it's defined but not empty, then the field
has been set but doesn't contain \meta{value}.
\cmddef{GlsXtrIfFieldValueInCsvList}
This command is essentially the other way around to the above.
In this case, the comma-separated list is provided in the argument
\meta{csv-list} and the search value is the field's value.
This does \meta{true} if the value is found in \meta{csv-list} or
\meta{false} if the value isn't in \meta{csv-list} or the field
isn't set or the entry hasn't been defined. The unstarred version
adds implicit grouping. The starred version doesn't.
Again, this command internally uses \gls{glsxtrifhasfield}, so you
can test \gls{glscurrentfieldvalue} in \meta{false} to determine
whether or not the field has been set.
\cmddef{xGlsXtrIfValueInFieldCsvList}
As \gls{GlsXtrIfValueInFieldCsvList} but fully expands \meta{value}
first.
\section{List Fields}
\label{sec:listfields}
Comma-separated list fields are covered in
\sectionref{sec:csvfields}. The commands in this section are for
fields that store \sty{etoolbox} internal lists. Elements can be
appended to these fields using commands \gls{glsxtrfieldlistadd},
described in \sectionref{sec:setfields}. The commands listed below
provide an easy interface to iterate over the field values. See the
\sty{etoolbox} documentation for further details about internal
lists.
\cmddef{glsxtrfieldformatlist}
Formats the list using the same separators
as used by \sty{datatool}['s] \gls{DTLformatlist}.
This internally uses \sty{etoolbox}['s] \gls{forlistcsloop} with the
same handler macro as used with \gls{DTLformatlist}.
\cmddef{glsxtrfielddolistloop}
This uses \sty{etoolbox}['s] \gls{dolistcsloop}, which uses the
command \csfmt{do} as the handler.
\cmddef{glsxtrfieldforlistloop}
This uses \sty{etoolbox}['s] \gls{forlistcsloop}, which uses the
\meta{handler-cs} as the handler.
\cmddef{glsxtrfieldifinlist}
This uses \sty{etoolbox}['s] \gls{ifinlistcs} to test if \meta{item}
is in the list.
\cmddef{glsxtrfieldxifinlist}
This uses \sty{etoolbox}['s] \gls{xifinlistcs} to test if \meta{item}
is in the list.
\section{Field Conditionals}
\label{sec:fieldconditionals}
\cmddef{GlsXtrIfFieldUndef}
Tests if the given \idx{field} (identified by its
\idxc{internalfieldlabel}{internal label}) is undefined for the
entry given by \meta{entry-label}. Does \meta{true} if the entry
doesn't exists or if entry exists but the field hasn't been set.
Does \meta{false} if the field has been set, even if it has been set
to empty. Unlike \gls{glsxtrifhasfield} there is no grouping or
starred version and no assignment of \gls{glscurrentfieldvalue}.
This is simply a shortcut that internally uses
\sty{etoolbox}['s] \gls{ifcsundef}. The base \sty{glossaries}
package provides a similar command \gls{ifglsfieldvoid}, which
uses \sty{etoolbox}['s] \gls{ifcsvoid} instead.
\cmddef{glsxtrifhasfield}
This tests if the entry given by \meta{entry-label} has the
\idx{field} identified by its \idxc{internalfieldlabel}{internal label}
\meta{field-label} set. This is like \gls{ifglshasfield} but
doesn't produce a warning if the entry or field doesn't exist.
This command first assigns \gls{glscurrentfieldvalue} to the field
value. If this is defined and not empty, \meta{true} is done otherwise
\meta{false} is done. You can test \gls{glscurrentfieldvalue} within
\meta{false} to find out whether it's undefined or empty using
\sty{etoolbox}'s commands, such as \gls{ifundef} or
\gls{ifdefempty}.
The unstarred version adds implicit grouping to make nesting easier.
The starred version doesn't (to make assignments easier).
\begin{information}
If you are simply displaying the value of the field (for example, in
the \idx{postdeschook}) then use the unstarred version. If you are
making an assignment based on the value of the field, then use the
starred version.
\end{information}
\cmddef{GlsXtrIfFieldCmpNum}
This command should only be used with fields that contain integer
values. It internally uses \gls{glsxtrifhasfield} (the starred or
unstarred version, to match the starred or unstarred version of
\gls{GlsXtrIfFieldEqStr}) and tests if \gls{glscurrentfieldvalue}
is equal to (\meta{op} is \code{=}), less than (\meta{op} is \code{<})
or greater than (\meta{op} is \code{>}) the given number
\meta{number}. If the field is empty or undefined, \gls{glscurrentfieldvalue}
will be set to \code{0}. Remember that the unstarred version adds
implicit grouping.
\cmddef{GlsXtrIfFieldEqNum}
This is a shortcut that uses \gls{GlsXtrIfFieldCmpNum} with
\meta{op} set to \code{=}. The unstarred version adds implicit
grouping.
\cmddef{GlsXtrIfFieldNonZero}
This is a shortcut that uses \gls{GlsXtrIfFieldCmpNum} with
\meta{op} set to \code{=} and the final two arguments swapped.
(So it's true if the field value is not zero.)
The unstarred version adds implicit grouping.
\cmddef{GlsXtrIfFieldEqStr}
This internally uses \gls{glsxtrifhasfield} (the starred or
unstarred version, to match the starred or unstarred version of
\gls{GlsXtrIfFieldEqStr}) and tests if \gls{glscurrentfieldvalue}
is equal to \meta{value}. Remember that the unstarred version adds
implicit grouping.
\cmddef{GlsXtrIfFieldEqXpStr}
This is like \gls{GlsXtrIfFieldEqStr} but expands the string before
the comparison. This also has an starred version that doesn't add
implicit grouping.
\cmddef{GlsXtrIfXpFieldEqXpStr}
This is like \gls{GlsXtrIfFieldEqStr} but expands both the field
value and the string before the comparison. This also has an starred
version that doesn't add implicit grouping.
\chapter{Counting References}
\label{sec:countref}
There are three basic ways of counting entry references:
\begin{enumerate}
\item Counting the total number of times \gls{glsunset} is used
(\gls{glsreset} resets the count unless \gls{glsresetcurrcountfalse}
and is best avoided). This is provided by the base \sty{glossaries}
package and is intended for documents where the term should be
displayed differently if it's only been used a certain number of
times. The information has to be written to the \ext{aux} file so
that it's available on the next \LaTeX\ run.
This method is extended by \sty{glossaries-extra} and is
described in \sectionref{sec:entrycount}. This method relies on the
document only using the \idx{glslike} commands and is
inappropriate with \app{bib2gls}.
\item Counting the total number of records. This method is
only available with \app{bib2gls} and is intended
for documents where the term should be displayed differently
if it's only been \recorded\ (\indexed) a certain number of times.
This is a more efficient method than entry counting.
See \sectionref{sec:recordcount} for further details.
\item Counting the number of times the \idx{glslike} or
\idx{glstextlike} commands are used. Unlike the other two methods,
this just provides a running total rather than the total from the
previous \LaTeX\ run. This method is intended to make it more
convenient to work with hooks like \gls{glslinkcheckfirsthyperhook},
\gls{glslinkpostsetkeys} or \gls{glslinkpresetkeys}.
See \sectionref{sec:linkcount} for further details.
\end{enumerate}
\section{Entry Counting (First Use Flag)}
\label{sec:entrycount}
\begin{information}
If you are using \app{bib2gls}, you need to use record
counting instead (see \sectionref{sec:recordcount}).
\end{information}
Entry counting is provided by the base \sty{glossaries} package and
is enabled with \gls{glsenableentrycount}.
This keeps a count of the number of times an entry is marked as
used, which is done by hooking into the unset and reset commands
(see \sectionref{sec:glsunset}). The current running total can be
obtained with \gls{glsentrycurrcount}. The total from the end of the
previous \LaTeX\ run can be obtained with \gls{glsentryprevcount}.
Since entry counting relies on the \idx{firstuseflag}, it doesn't
take the \idx{glstextlike} commands into account.
\begin{warning}
Entry counting is incompatible with \opteqvalref{docdef}{true}.
\end{warning}
The \sty{glossaries-extra} package modifies
\gls{glsenableentrycount} to allow for the \catattr{entrycount}
attribute. This means that you not only need to enable entry
counting with \gls{glsenableentrycount}, but you also need to set
the \catattr{entrycount} attribute (see below).
Prior to v1.49, the associated counter was reset back to 0 when the
\idx{firstuseflag} is reset. This behaviour is now only implemented if the
following conditional is true:
\cmddef{ifglsresetcurrcount}
To (locally) change this conditional to true use:
\cmddef{glsresetcurrcounttrue}
To (locally) change this conditional to false use:
\cmddef{glsresetcurrcountfalse}
As from v1.49, the default is now false. Note that this conditional
is also available with \sty{glossaries} v4.50+.
\begin{important}
Remember that entry counting only counts the number of times an
entry is used by commands that change the \idx{firstuseflag}. (That
is, all those commands that mark the entry as having been used.)
There are many commands that don't modify this flag and they won't
contribute to the entry use count.
\end{important}
With just the base \sty{glossaries} package, the associated entry
counting commands, such as \gls{cgls}, are only available when entry
counting has been activated with \gls{glsenableentrycount}. Whereas
with \sty{glossaries-extra}, those commands are always available but
behave in the same way as the corresponding \idx{glslike} commands
if entry counting hasn't been activated. The commands provided by
the \opt{shortcuts} options, such as \gls{ac} are defined to use
\gls{cgls} instead of \gls{gls} etc so you can use them either with
or without entry counting.
In order to activate entry counting with \sty{glossaries-extra}, you
not only need to use \gls{glsenableentrycount} but also need to
specify the trigger value.
\cmddef{GlsXtrEnableEntryCounting}
This command is provided as a shortcut to activate entry counting
and assign the trigger value. This command performs the following:
\begin{itemize}
\item enables entry counting with \gls{glsenableentrycount};
\item redefines the \idx{glslike} commands to do the equivalent
\gls{cgls} commands (so you don't need to keep track of which
entries have entry counting enabled);
\item sets the \catattr{entrycount} attribute to \meta{trigger-value}
for all the supplied categories;
\item disables the unit counting command (which is incompatible).
\end{itemize}
If you want to have different trigger values for different
categories, you can set the \catattr{entrycount} attribute
afterwards for the other category. For example:
\begin{codebox}
\gls{GlsXtrEnableEntryCounting}\marg{\cat{abbreviation},\cat{acronym}}\marg{1}
\gls{glssetcategoryattribute}\marg{\cat{general}}\marg{2}
\end{codebox}
If you use \gls{GlsXtrEnableEntryCounting} multiple times, the
repeated instances will simply set the \catattr{entrycount}
attribute for the listed categories. So the above can also be written
as:
\begin{codebox}
\gls{GlsXtrEnableEntryCounting}\marg{\cat{abbreviation},\cat{acronym}}\marg{1}
\gls{GlsXtrEnableEntryCounting}\marg{\cat{general}}\marg{2}
\end{codebox}
The commands like \gls{cgls} behave like the corresponding
\idx{glslike} command if the entry count at the end of the previous
run was more than a trigger value. With just the base
\sty{glossaries} package, this trigger value is 1. With
\sty{glossaries-extra} you can specify a different value.
\begin{important}
The appropriate trigger value must be set for the required category
or categories.
\end{important}
As with the \idx{glslike} commands, the \gls{cgls} set of commands
may also be used with the star (\code{*}) or plus (\code{+}) modifiers or the
modifier given by \gls{GlsXtrSetAltModifier}.
If the entry count at the end of the previous run doesn't exceed
the trigger value, the corresponding formatting command is used
instead. For example, \gls{cgls} will use \gls{cglsformat}. The
complete set of commands are:
\cmddef{cgls}
If the trigger value has been supplied for the entry's category
and is exceeded, this behaves like \gls{gls} otherwise it uses:
\cmddef{cglsformat}
This is redefined by \sty{glossaries-extra} to test whether or not
the entry has the \catattr{regular} attribute set or is an
abbreviation:
\begin{compactcodebox}
\cmd{renewcommand}*\marg{\gls{cglsformat}}[2]\marg{\%
\gls{glsifregular}\marg{\#1}\marg{\gls{glsentryfirst}\marg{\#1}}\%
\marg{\gls{ifglshaslong}\marg{\#1}\marg{\gls{glsentrylong}\marg{\#1}}\marg{\gls{glsentryfirst}\marg{\#1}}}\#2\%
}
\end{compactcodebox}
This show the first use value if the entry is regular otherwise it
will show the long form. The insert is appended at the end.
\cmddef{cglspl}
If the trigger value has been supplied for the entry's category
and is exceeded, this behaves like \gls{glspl} otherwise it uses:
\cmddef{cglsplformat}
This is like \gls{cglsformat} but uses the plural commands.
\cmddef{cGls}
If the trigger value has been supplied for the entry's category
and is exceeded, this behaves like \gls{Gls} otherwise it uses:
\cmddef{cGlsformat}
This is like \gls{cglsformat} but uses the \idx{sentencecase}
commands.
\cmddef{cGlspl}
If the trigger value has been supplied for the entry's category
and is exceeded, this behaves like \gls{Glspl} otherwise it uses:
\cmddef{cGlsplformat}
This is like \gls{cglsformat} but uses the plural \idx{sentencecase}
commands.
The \sty{glossaries-extra} package provides some additional
commands:
\cmddef{cGLS}
If the trigger value has been supplied for the entry's category
and is exceeded, this behaves like \gls{GLS} otherwise it uses:
\cmddef{cGLSformat}
This simply uses \gls{cglsformat} converted to \idx{uppercase}.
\cmddef{cGLSpl}
If the trigger value has been supplied for the entry's category
and is exceeded, this behaves like \gls{GLSpl} otherwise it uses:
\cmddef{cGLSplformat}
This simply uses \gls{cglsplformat} converted to \idx{uppercase}.
The test to determine whether or not an entry trips the trigger
value is performed by:
\cmddef{glsxtrifcounttrigger}
This obtains the trigger value from the entry's \catattr{entrycount}
attribute.
\begin{important}
Since these commands require information from the previous \LaTeX\
run, and extra \LaTeX\ call must be added to the build process
(before the relevant \idx{indexingapp}).
\end{important}
For example, in the following document the trigger value is set to
1. The CSS entry is only used once (which doesn't exceed the
trigger). The HTML entry is used twice (which does exceed the
trigger). The sample entry is only used once, but entry counting
hasn't been enabled on its category (the default \cat{general}).
\begin{codebox}
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}
\cmd{usepackage}\marg{glossaries-extra}
\gls{makeglossaries}
\gls{GlsXtrEnableEntryCounting}\marg{\cat{abbreviation}}\marg{1}
\gls{newabbreviation}\marg{css}\marg{CSS}\marg{cascading style sheet}
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}
\cbeg{document}
First use: \gls{gls}\marg{css}, \gls{gls}\marg{html} and \gls{gls}\marg{sample}.
Next use: \gls{gls}\marg{html}.
\gls{printglossaries}
\cend{document}
\end{codebox}
If the document is saved in a file called \filefmt{myDoc.tex} then
the build process is:
\begin{terminal}
pdflatex myDoc
pdflatex myDoc
makeglossaries myDoc
pdflatex myDoc
\end{terminal}
Note the second \LaTeX\ call before \app{makeglossaries}. The result
is shown below:
\begin{resultbox}
\createexample*[arara={pdflatex,pdflatex,makeglossaries,pdflatex,pdfcrop},
label={ex:catentrycount},
title={Entry counting according to category},
description={Example document illustrating entry counting}]
{%
\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{makeglossaries}^^J%
\gls{GlsXtrEnableEntryCounting}\marg{abbreviation}\marg{1}^^J%
\gls{newabbreviation}\marg{css}\marg{CSS}\marg{cascading style sheet}^^J%
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}^^J%
\gls{newglossaryentry}\marg{sample}\marg{name={sample},description={an example}}^^J%
}
{%
First use: \gls{gls}\marg{css}, \gls{gls}\marg{html} and \gls{gls}\marg{sample}.^^J%
Next use: \gls{gls}\marg{html}.^^J%
\gls{printglossaries}
}
\end{resultbox}
Note that the CSS entry only shows the long form, doesn't appear in
the glossary and doesn't have a hyperlink. This is because the total
count from the previous \LaTeX\ run doesn't exceed the value (1, in
this case) that triggers the normal behaviour of \gls{gls}. The HTML
entry has a total count of 2 from the previous \LaTeX\ run, so it's
displayed as normal with the full form on \idx{firstuse} and has a
hyperlink to its entry in the glossary.
The sample entry is only used once, but it has the default \cat{general}
category, which doesn't have the \catattr{entrycount} attribute set.
Note that if the build process only had one \LaTeX\ call before
running \app{makeglossaries}, the HTML entry would also not appear
in the glossary. This is because on the first \LaTeX\ run, the total
from the previous run is 0 (because there's no information in the
\ext{aux} file).
The \sty{glossaries-extra} package also provides the ability to
count per sectional unit instead:
\cmddef{glsenableentryunitcount}
\begin{important}
It's not possible to enable both document-wide entry counting
(\gls{glsenableentrycount}) and unit entry counting
(\gls{glsenableentryunitcount}).
\end{important}
The unit entry counting provides separate totals for each section unit. As above, this
uses the \catattr{entrycount} attribute to provide the trigger value
but also requires the \catattr{unitcount} attribute, which should be
set to the name of the appropriate counter, such as \ctr{section} or
\ctr{chapter}.
\begin{warning}
Due to the asynchronous nature of \TeX's output routine,
discrepancies will occur in page spanning paragraphs if you
use the \ctr{page} counter.
\end{warning}
As before, there is a command provided to enable the feature and set
the corresponding attributes at the same time:
\cmddef{GlsXtrEnableEntryUnitCounting}
This command performs the following:
\begin{itemize}
\item enables unit entry counting with \gls{glsenableentryunitcount};
\item redefines the \idx{glslike} commands to do the equivalent
\gls{cgls} commands (so you don't need to keep track of which
entries have entry counting enabled);
\item sets the \catattr{entrycount} attribute to the supplied
trigger for all the supplied categories;
\item sets the \catattr{unitcount} attribute to the supplied
counter for all the supplied categories;
\item disables the document-wide counting command (which is incompatible).
\end{itemize}
If you use \gls{GlsXtrEnableEntryUnitCounting} multiple times, the
repeated instances will simply set the \catattr{entrycount}
and \catattr{unitcount} attributes for the listed categories.
The counter value is used as part of a label, which means
that \thecountername\ needs to be expandable.
Since \sty{hyperref} also has a similar requirement and provides
\theHcountername\ as an expandable alternative,
\sty{glossaries-extra} will use \theHcountername\
if it exists otherwise it will use \thecountername.
The commands for accessing the totals, \gls{glsentrycurrcount} and
\gls{glsentryprevcount} have different definitions with unit entry
counting and will expand to the total for the current unit.
The overall totals can be obtained with additional commands:
\cmddef{glsentryprevtotalcount}
This expands to the overall total from the previous \LaTeX\ run.
\cmddef{glsentryprevmaxcount}
This expands to the maximum per-unit total from the previous \LaTeX\ run.
For example:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}\marg{glossaries-extra}
\codepar
\gls{GlsXtrEnableEntryUnitCounting}\marg{\cat{abbreviation}}\marg{2}\marg{section}
\codepar
\gls{makeglossaries}
\comment{\gloskeyval{category}{abbreviation}:}
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}
\gls{newabbreviation}\marg{css}\marg{CSS}\marg{cascading style sheet}
\codepar
\comment{\gloskeyval{category}{general}:}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{sample}}
\codepar
\cbeg{document}
\cmd{section}\marg{Sample}
\codepar
Used once: \gls{gls}\marg{html}.
\codepar
Used three times: \gls{gls}\marg{css} and \gls{gls}\marg{css} and \gls{gls}\marg{css}.
\codepar
Used once: \gls{gls}\marg{sample}.
\codepar
\cmd{section}\marg{Another Sample}
\codepar
Used once: \gls{gls}\marg{css}.
\codepar
Used twice: \gls{gls}\marg{html} and \gls{gls}\marg{html}.
\codepar
\gls{printglossaries}
\cend{document}
\end{codebox}
As before, if the document is in a file called \filefmt{myDoc.tex}
then the build process is:
\begin{terminal}
pdflatex myDoc
pdflatex myDoc
makeglossaries myDoc
pdflatex myDoc
\end{terminal}
The result is:
\begin{resultbox}
\createexample*[arara={pdflatex,pdflatex,makeglossaries,pdflatex,pdfcrop},
label={ex:catunitentrycount},
title={Entry unit counting (per section) according to category},
description={Example document illustrating entry unit counting (per section)}]
{%
\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{GlsXtrEnableEntryUnitCounting}\marg{abbreviation}\marg{2}\marg{section}^^J%
\gls{makeglossaries}^^J%
\% category=abbreviation:^^J%
\gls{newabbreviation}\marg{html}\marg{HTML}\marg{hypertext markup language}^^J%
\gls{newabbreviation}\marg{css}\marg{CSS}\marg{cascading style sheet}^^J%
\% category=general:^^J%
\gls{newglossaryentry}\marg{sample}\marg{name={sample},description={an example}}^^J%
}
{%
\cmd{section}\marg{Sample}
\codepar
Used once: \gls{gls}\marg{html}.
\codepar
Used three times: \gls{gls}\marg{css} and \gls{gls}\marg{css} and \gls{gls}\marg{css}.
\codepar
Used once: \gls{gls}\marg{sample}.
\codepar
\cmd{section}\marg{Another Sample}
\codepar
Used once: \gls{gls}\marg{css}.
\codepar
Used twice: \gls{gls}\marg{html} and \gls{gls}\marg{html}.
\codepar
\gls{printglossaries}
}
\end{resultbox}
In this document, the CSS entry is used three times in the
first section. This is more than the trigger value of 2, so
\code{\gls{gls}\marg{css}} is expanded on \idx{firstuse} with the short
form used on subsequent use, and the CSS entries in
that section are added to the glossary. In the second section,
the CSS entry is only used once, which trips the
suppression trigger, so in that section, the long form
is used and \code{\gls{gls}\marg{css}} doesn't get a line added to
the glossary file.
The HTML entry is used a total of three times, but the
expansion and indexing suppression trigger is tripped
in both sections because the per-unit total (1 for the first
section and 2 for the second chapter) is less than or equal
to the trigger value.
The sample entry has only been used once, but it doesn't
trip the indexing suppression because it's in the \cat{general}
category, which hasn't been listed in
\gls{GlsXtrEnableEntryUnitCounting}.
The per-unit entry counting can be used for other purposes.
In the following example document, the trigger value is set
to zero, which means the index suppression won't be triggered,
but the unit entry count is used to automatically suppress the
hyperlink for commands like \gls{gls} by modifying the
\gls{glslinkcheckfirsthyperhook}
which is used at the end of the macro the determines whether
or not to suppress the hyperlink.
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}\marg{glossaries-extra}
\gls{makeglossaries}
\gls{GlsXtrEnableEntryUnitCounting}\marg{\cat{general}}\marg{0}\marg{page}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}
\codepar
\cmd{renewcommand}*\marg{\gls{glslinkcheckfirsthyperhook}}\marg{\%
\cmd{ifnum}\gls{glsentrycurrcount}\gls{glslabel}>0
\gls{setupglslink}\marg{hyper=false}\%
\cmd{fi}
}
\codepar
\cbeg{document}
\codepar
A \gls{gls}\marg{sample} entry. Next use: \gls{gls}\marg{sample}.
\codepar
\cmd{newpage}
Next page: \gls{gls}\marg{sample}. Again: \gls{gls}\marg{sample}.
\codepar
\gls{printglossaries}
\cend{document}
\end{codebox}
This only produces a hyperlink for the first instance of
\code{\gls{gls}\marg{sample}} on each page.
\begin{resultbox}
\createexample*[pages={1,2},
label={ex:unitentrycounthyper},
arara={pdflatex,pdflatex,makeglossaries,pdflatex,pdfcrop},
title={Enabling unit counting to hook into hyperlink setting},
description={Example document that demonstrates how to
automatically switch off the hyperlink using unit counting}]
{%
\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}\marg{glossaries-extra}^^J%
\codepar
\gls{makeglossaries}^^J%
\codepar
\gls{GlsXtrEnableEntryUnitCounting}\marg{general}\marg{0}\marg{page}^^J%
\codepar
\gls{newglossaryentry}\marg{sample}\marg{name={sample},description={an example}}^^J%
\codepar
\cmd{renewcommand}*\marg{\gls{glslinkcheckfirsthyperhook}}\marg{\%^^J
\cmd{ifnum}\gls{glsentrycurrcount}\gls{glslabel}>0^^J
\gls{setupglslink}\marg{hyper=false}\%^^J
\cmd{fi}^^J%
}
}
{A \gls{gls}\marg{sample} entry. Next use: \gls{gls}\marg{sample}.
\codepar
\cmd{newpage}^^J%
Next page: \gls{gls}\marg{sample}. Again: \gls{gls}\marg{sample}.
\codepar
\gls{printglossaries}
}
\end{resultbox}
The earlier warning about using the \ctr{page} counter still
applies. If the first instance of \gls{gls} occurs at the top of the
page within a paragraph that started on the previous page, then
the count will continue from the previous page.
\section{Link Counting}
\label{sec:linkcount}
As from version 1.26, an alternative method of entry counting
is to count the number of times the \idx{glslike} or
\idx{glstextlike} commands are used. (The \qt{link} in this method's
name refers to the use of the internal command \csfmt{@gls@link}
not to \gls{hyperlink} although \csfmt{@gls@link} may use
\gls{hyperlink} when displaying the \idx{linktext}.)
To enable link counting use the preamble-only command:
\cmddef{GlsXtrEnableLinkCounting}
where \meta{categories} is a list of category labels. The optional
argument \meta{parent counter} may be used to identify a parent
counter (which must already be defined). If present, the associated
link counter will be reset when the parent counter is incremented.
This command automatically sets the \catattr{linkcount} attribute
for the given categories. If the optional argument is
present, it also sets the \catattr{linkcountmaster} attribute.
When enabled, the \idx{glslike} and \idx{glstextlike} commands
will increment the associated counter using
\cmddef{glsxtrinclinkcounter}
This just does
\code{\gls{stepcounter}\margm{counter}} by default but if you
need \gls{refstepcounter} instead, just redefine this command:
\begin{codebox}
\gls{renewcommand}*\marg{\gls{glsxtrinclinkcounter}}[1]\marg{\gls{refstepcounter}\marg{\#1}}
\end{codebox}
You can access the internal count register using:
\cmddef{GlsXtrLinkCounterValue}
where \meta{label} is the entry's label. This will expand
to 0 if the register hasn't been defined.
It's also possible to access the display value
(\gls{thecounter}) using
\cmddef{GlsXtrTheLinkCounter}
(This will expand to 0 if the counter hasn't been defined.)
\begin{important}
In order to conserve resources, the counter is only defined
when it first needs to be incremented so terms that have
been defined but haven't been used in the document
won't have the associated count register allocated.
\end{important}
You can test if the counter has been defined using:
\cmddef{GlsXtrIfLinkCounterDef}
This expands to \meta{true} if the link counter associated with the
entry identified by \meta{entry-label} has been defined, otherwise
expands to \meta{false}.
The counter name can be obtained using
\cmddef{GlsXtrLinkCounterName}
This simply expands to the counter name associated with the
entry given by \meta{entry-label} without any check for
existence. For example, to change the display command
(\gls{thecounter}) using \sty{etoolbox}:
\begin{codebox}
\gls{csdef}\marg{the\gls{GlsXtrLinkCounterName}\marg{duck}}\%
\marg{\gls{Roman}\marg{\gls{GlsXtrLinkCounterName}\marg{duck}}}
\end{codebox}
This is useful if you just want to change the display for
specific entries but isn't convenient if you want to change the
display for all entries. Instead, it's simpler to redefine
\gls{GlsXtrTheLinkCounter}. For example:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{GlsXtrTheLinkCounter}}[1]\marg{\%
\gls{GlsXtrIfLinkCounterDef}\marg{\#1}\%
\marg{\gls{Roman}\marg{\gls{GlsXtrLinkCounterName}\marg{\#1}}}\%
\marg{0}\%
}
\end{codebox}
In both cases, the redefinition should be implemented
after \gls{GlsXtrEnableLinkCounting}.
Here's an example document that uses link counting to disable
the hyperlink after the first reference. This redefines
\gls{glslinkpresetkeys} (which is used by both \gls{gls}
and \gls{glstext}) instead of
\gls{glslinkcheckfirsthyperhook} (which is used by \gls{gls}
but not by \gls{glstext}).
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}\marg{glossaries-extra}
\codepar
\gls{makeglossaries}
\codepar
\cmd{renewcommand}*\marg{\gls{glslinkpresetkeys}}\marg{\%
\cmd{ifnum}\gls{GlsXtrLinkCounterValue}\marg{\gls{glslabel}}>1
\gls{setupglslink}\marg{\glsoptval{hyper}{false}}\%
\cmd{fi}
}
\codepar
\gls{GlsXtrEnableLinkCounting}\marg{\cat{general}}
\codepar
\gls{newglossaryentry}\marg{sample1}\marg{\gloskeyval{name}{sample1},\gloskeyval{description}{an example}}
\gls{newglossaryentry}\marg{sample2}\marg{\gloskeyval{name}{sample2},\gloskeyval{description}{another example}}
\codepar
\gls{newabbreviation}\marg{ex}\marg{ex}\marg{example}
\codepar
\cbeg{document}
\cmd{section}\marg{Sample Section}
\codepar
\gls{Gls}\marg{sample1}, \gls{gls}\marg{sample2} and \gls{gls}\marg{ex}.
\gls{Glstext}\marg{sample1} and \gls{gls}\marg{ex} again.
\codepar
\cmd{section}\marg{Another Sample Section}
\codepar
\gls{Gls}\marg{sample1}, \gls{gls}\marg{sample2} and \gls{gls}\marg{ex}.
\codepar
\gls{printglossaries}
\cend{document}
\end{codebox}
The use of \gls{glslinkpresetkeys}
means that the options can override this. For example
\begin{codebox}
\gls{gls}\oarg{\glsoptval{hyper}{true}}\marg{sample1}
\end{codebox}
(or simply \code{\gls{gls}+\marg{sample1}})
will override the \glsoptval{hyper}{false} setting in
\gls{glslinkpresetkeys}. If \gls{glslinkpostsetkeys} is used
instead, the \glsoptval{hyper}{false} setting will override
the setting provided in the optional argument.
The resulting document is shown below:
\begin{resultbox}
\createexample*[arara={pdflatex,makeglossaries,pdflatex,pdfcrop},
label={ex:linkcount},
title={Link counting used to selectively suppress hyperlinks},
description={Example document that uses link counting to selectively suppress
hyperlinks}]
{%
\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}\marg{glossaries-extra}
\codepar
\gls{makeglossaries}
\codepar
\cmd{renewcommand}*\marg{\gls{glslinkpresetkeys}}\marg{\%^^J
\cmd{ifnum}\gls{GlsXtrLinkCounterValue}\marg{\gls{glslabel}}>1^^J
\gls{setupglslink}\marg{hyper=false}\%^^J%
\cmd{fi}
}
\codepar
\gls{GlsXtrEnableLinkCounting}\marg{general}
\codepar
\gls{newglossaryentry}\marg{sample1}\marg{\gloskeyval{name}{sample1},\gloskeyval{description}{an
example}}^^J%
\gls{newglossaryentry}\marg{sample2}\marg{\gloskeyval{name}{sample2},\gloskeyval{description}{another example}}
\codepar
\gls{newabbreviation}\marg{ex}\marg{ex}\marg{example}
\codepar
}
{\cmd{section}\marg{Sample Section}^^J%
\codepar
\gls{Gls}\marg{sample1}, \gls{gls}\marg{sample2} and \gls{gls}\marg{ex}.^^J%
\gls{Glstext}\marg{sample1} and \gls{gls}\marg{ex} again.^^J%
\codepar
\cmd{section}\marg{Another Sample Section}^^J%
\codepar
\gls{Gls}\marg{sample1}, \gls{gls}\marg{sample2} and \gls{gls}\marg{ex}.^^J%
\codepar
\gls{printglossaries}
}
\end{resultbox}
The \cat{abbreviation} category doesn't have the
\catattr{linkcount} attribute set (since it's not
listed in the argument of \gls{GlsXtrEnableLinkCounting}). This means that
\gls{GlsXtrLinkCounterValue}
always expands to 0 for the abbreviation (\code{ex}), so the
inequality test:
\begin{codebox}
\cmd{ifnum}\gls{GlsXtrLinkCounterValue}\marg{\gls{glslabel}}>1
\end{codebox}
will always be false. This means that the abbreviation won't
have \glsoptval{hyper}{false} applied. If the test is changed to
\begin{codebox}
\cmd{ifnum}\gls{GlsXtrLinkCounterValue}\marg{\gls{glslabel}}=1
\cmd{else}
\gls{setupglslink}\marg{\glsoptval{hyper}{false}}\%
\cmd{fi}
\end{codebox}
Then the abbreviation will always have \glsoptval{hyper}{false}
applied.
To reset the counter every section use the optional argument to set
the parent counter:
\begin{codebox}
\gls{GlsXtrEnableLinkCounting}\oarg{section}\marg{\cat{general}}
\end{codebox}
\chapter{Multi (or Compound) Entries}
\label{sec:multientries}
Nested entries (where the entry definition references other entries)
are discussed in \sectionref{sec:nested}. This chapter deals with
occasions where a term or phrase may consist of multiple sub-terms
that are independently defined. (Examples in
\sectionref{sec:exskipfirstsuffix} and
\sectionref{sec:exskippostlink} provide workarounds for nested
entries.)
For example, the names of bacteria, such as \emph{Clostridium
botulinum} and \emph{Clostridium perfringens}, are made up of the
genus (for example, \emph{Clostridium}) and the species
(for example, \emph{botulinum} or \emph{perfringens}). The genus is
often abbreviated after \gls{firstuse}. For example, \emph{C.
botulinum}. However, if the name is defined as a single term
consisting of both the genus and species then it's not possible to
apply the abbreviation when a different species with the same genus
is used.
Consider the following document:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\marg{glossaries-extra}
\gls{setabbreviationstyle}\marg{\abbrstyle{long-only-short-only}}
\gls{newabbreviation}\marg{cbot}\marg{C. botulinum}\marg{Clostridium botulinum}
\gls{newabbreviation}\marg{cperf}\marg{C. perfringens}\marg{Clostridium perfringens}
\cbeg{document}
\gls{gls}\marg{cbot}, \gls{gls}\marg{cbot}, \gls{gls}\marg{cperf}.
\cend{document}
\end{codebox}
The result is:
\begin{resultbox}
Clostridium botulinum, C. botulinum, Clostridium perfringens.
\end{resultbox}
However, it should more typically be:
\begin{resultbox}
Clostridium botulinum, C. botulinum, C. perfringens.
\end{resultbox}
In this case, the genus should actually be a separate definition:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\marg{glossaries-extra}
\gls{setabbreviationstyle}\marg{\abbrstyle{long-only-short-only}}
\gls{newabbreviation}\marg{clostridium}\marg{C.}\marg{Clostridium}
\gls{newglossaryentry}\marg{botulinum}\marg{\gloskeyval{name}{botulinum},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{perfringens}\marg{\gloskeyval{name}{perfringens},\gloskeyval{description}{}}
\cbeg{document}
\gls{gls}\marg{clostridium} \gls{gls}\marg{botulinum},
\gls{gls}\marg{clostridium} \gls{gls}\marg{botulinum},
\gls{gls}\marg{clostridium} \gls{gls}\marg{perfringens}.
\cend{document}
\end{codebox}
This is quite awkward to write. This chapter describes how to
provide a shortcut for this kind of construct. Each term should be
defined as normal (as in the above example), and a \qt{multi-entry}
label is then defined with the list of labels of the entries that
need to be referenced.
\cmddef{multiglossaryentry}
This defines a multi-entry set with the label
\meta{multi-label}, consisting of the entries whose labels are
listed in \meta{entry-label-list}, where the main entry (which must be
present in \meta{entry-label-list}) is identified by \meta{main-label}.
If \meta{main-label} is omitted, it's assumed to be the final label
in \meta{entry-label-list}. The main entry is described in more detail in
\sectionref{sec:mglsmain}.
\begin{important}
The entries in \meta{entry-label-list} must already be defined (using
commands like \gls{newglossaryentry} or \gls{newabbreviation}).
\end{important}
The \meta{options} are a comma-separated list of options to override
the current settings and are described in \sectionref{sec:multiglsoptions}.
The earlier example can now be modified to include the following:
\begin{codebox}
\gls{multiglossaryentry}\marg{cbot}\marg{clostridium,botulinum}
\gls{multiglossaryentry}\marg{cperf}\marg{clostridium,perfringens}
\end{codebox}
These commands must come after the \code{clostridium},
\code{botulinum} and \code{perfringens} definitions.
Once defined, a multi-entry set can be referenced in the document using commands like:
\cmddef{mgls}
This command essentially does \code{\gls{gls}\margm{label}} for each item in
the \meta{label list} (with separators, see
\sectionref{sec:mglssep}). If the final optional argument
\meta{insert} is provided, it will be applied to the final
(non-skipped) element in the list. So the document body in the
above example, can be rewritten as:
\begin{codebox}
\gls{mgls}\marg{cbot}, \gls{mgls}\marg{cbot}, \gls{mgls}\marg{cperf}.
\end{codebox}
There are some variants of \gls{mgls} listed in \sectionref{sec:mglslike}.
The available \meta{options} are listed in \sectionref{sec:mglsopts}. They are
applied after the \gls{multiglossaryentry} options and will override
settings for the individual entries.
\begin{important}
You can't use \meta{multi-label} in commands like \gls{gls}
as this label represents a set of entry labels not a single entry.
\end{important}
The \gls{multiglossaryentry} command will generate an error if the label has already
been defined as a multi-entry.
\cmddef{providemultiglossaryentry}
This does nothing if a multi-entry set with the given label has
already been defined otherwise it will act like
\gls{multiglossaryentry}. Notes and associated commands applying to
\gls{multiglossaryentry} also apply to
\gls{providemultiglossaryentry} unless otherwise stated.
\begin{important}
\gls{multiglossaryentry} may be placed anywhere after the entries
listed in \meta{label list} have been defined. A multi-entry label can't be
referenced (with commands like \gls{mgls}) before it has been defined.
\end{important}
There is limited support for \optval{docdef}{true}. The multi-entry
definition can be picked up from the \ext{aux} file on the next
run to allow cross-references in any glossaries that occur at the
start of the document. Any changes made with commands like
\gls{mglsSetMain} won't be carried over to the next run.
By default \gls{multiglossaryentry} will be localised to the current scope.
If you want to globally define a multi-entry you need to first
switch on global definitions with:
\cmddef{multiglossaryentryglobaltrue}
To switch back to local definitions use:
\cmddef{multiglossaryentryglobalfalse}
You can test if this setting is on with:
\cmddef{ifmultiglossaryentryglobal}
If you want to change the multi-entry options (locally) you can use:
\cmddef{mglsSetOptions}
This removes the original options and replaces them with
\meta{new-options}. If you want to (locally) append to the
existing options, use:
\cmddef{mglsAddOptions}
Note that \gls{multiglossaryentry} doesn't make any adjustments to
the component entries. You will need to use the \gloskey{parent} key
when you define the entries if you want a hierarchical structure in
your \idx{glossary}. (See the example in \sectionref{sec:mglsexhier}.)
If you don't want the other elements in the glossary, you can
suppress the indexing with \mglsoptval{indexothers}{false}
(\sectionref{sec:multiglsoptionsindexing}) or put them in an ignored
glossary. For example:
\begin{codebox}
\gls{newignoredglossary}\marg{common}
\gls{newabbreviation}\oarg{\gloskeyval{type}{common}}\marg{clostridium}\marg{C.}\marg{Clostridium}
\end{codebox}
The \meta{multi-label} can't be used in commands like \gls{gls} since
the label refers to a set of entry labels not to an individual
entry. Similarly, an individual entry label can't be used in
commands like \gls{mgls}. It is possible (although potentially
confusing) to use the same label for a multi-entry as for an
individual entry (see the example in
\sectionref{sec:exskippostlink}). Context will determine which is
meant, except in the case of the cross-referencing fields
(\gloskey{see}, \gloskey{seealso} and \gloskey{alias}) where the
cross-referenced label will first be tested if it's a known
multi-entry label.
If you don't want to have to keep track of which labels refer to
multi-entries and which refer to individual entries you can use:
\cmddef{GlsXtrMglsOrGls}
where \meta{mgls cs} is the \gls{mgls}-like command to use if
\meta{label} has been defined as a multi-entry and \meta{gls cs} is
the \idx{glslike} or \idx{glstextlike} command to use otherwise.
The \meta{modifier} may be omitted, otherwise it's the modifier
that may be used with \gls{mgls} or \gls{gls} (asterisk \code{*},
plus \code{+} or the token identified with \gls{GlsXtrSetAltModifier}). The
modifier and remaining options are passed to the relevant command
(\meta{mgls cs} or \meta{gls cs}).
You may prefer to define your own shortcut commands for common
combinations. For example, (assuming these commands haven't already
been defined by the \opt{shortcuts} option):
\begin{codebox}
\cmd{newcommand}\marg{\gls{ac}}\marg{\gls{GlsXtrMglsOrGls}\marg{\gls{mgls}}\marg{\gls{gls}}}
\cmd{newcommand}\marg{\gls{acp}}\marg{\gls{GlsXtrMglsOrGls}\marg{\gls{mglsmainpl}}\marg{\gls{glspl}}}
\cmd{newcommand}\marg{\gls{Ac}}\marg{\gls{GlsXtrMglsOrGls}\marg{\gls{Mgls}}\marg{\gls{Gls}}}
\cmd{newcommand}\marg{\gls{Acp}}\marg{\gls{GlsXtrMglsOrGls}\marg{\gls{Mglsmainpl}}\marg{\gls{Glspl}}}
\end{codebox}
\section{Examples}
\label{sec:mglsexamples}
\subsection{Example: Hierarchical}
\label{sec:mglsexhier}
Bacteria names are represented by the genus (for example,
Clostridium) followed by the species (for example, botulinum).
This example has the genus as a parent of the species.
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}[\optval{stylemods}{bookindex},\optval{style}{\glostyle{bookindex}}]\marg{glossaries-extra}
\codepar
\gls{makeglossaries}
\codepar
\cmd{newcommand}\marg{\cmd{latinname}}[1]\marg{\cmd{emph}\marg{\#1}}
\gls{glssetcategoriesattributes}
\marg{genus,species}\marg{\catattr{textformat},\catattr{glossnamefont}}\marg{latinname}
\codepar
\gls{setabbreviationstyle}\oarg{genus}\marg{\abbrstyle{long-only-short-only-desc}}
\gls{newabbreviation}
\oarg{\gloskeyval{category}{genus},\gloskeyval{description}{}}
\marg{clostridium}\marg{C.}\marg{Clostridium}
\codepar
\gls{newglossaryentry}\marg{botulinum}\marg{\gloskeyval{name}{botulinum},\gloskeyval{category}{species},
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}
\gls{newglossaryentry}\marg{perfringens}\marg{\gloskeyval{name}{perfringens},
\gloskeyval{category}{species},\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}
\gls{newglossaryentry}\marg{tetani}\marg{\gloskeyval{name}{tetani},\gloskeyval{category}{species},
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}
\codepar
\gls{multiglossaryentry}\marg{cbot}\marg{clostridium,botulinum}
\gls{multiglossaryentry}\marg{cperf}\marg{clostridium,perfringens}
\gls{multiglossaryentry}\marg{ctet}\marg{clostridium,tetani}
\codepar
\gls{multiglossaryentrysetup}\marg{\mglsoptval{indexothers}{false},\mglsoptval{hyper}{allmain}}
\codepar
\cbeg{document}
First use: \gls{mgls}\marg{cbot}, \gls{mgls}\marg{cperf}, \gls{mgls}\marg{ctet}.
\codepar
Next use: \gls{mgls}\marg{cbot}, \gls{mgls}\marg{cperf}, \gls{mgls}\marg{ctet}.
\gls{printglossaries}
\cend{document}
\end{codebox}
This suppresses the indexing of the non-main elements (in this case,
the genus). However the genus is included in the glossary (without a
\gls{locationlist}) because it's the parent of the species (which are
indexed).
\begin{resultbox}
\createexample*[title={Multi-entries: hierarchical},
label={ex:multientryhier},
description={Example document with hierarchical multi-entries},
arara={pdflatex,makeglossaries,pdflatex,pdfcrop}]
{\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}[stylemods=bookindex,style=bookindex]\marg{glossaries-extra}^^J%
\codepar
\gls{makeglossaries}^^J%
\codepar
\cmd{newcommand}\marg{\cmd{latinname}}[1]\marg{\cmd{emph}\marg{\#1}}^^J%
\gls{glssetcategoriesattributes}^^J
\marg{genus,species}\marg{textformat,glossnamefont}\marg{latinname}^^J%
\codepar
\gls{setabbreviationstyle}\oarg{genus}\marg{long-only-short-only-desc}^^J%
\gls{newabbreviation}^^J
\oarg{\gloskeyval{category}{genus},\gloskeyval{description}{}}^^J
\marg{clostridium}\marg{C.}\marg{Clostridium}^^J%
\codepar
\gls{newglossaryentry}\marg{botulinum}\marg{\gloskeyval{name}{botulinum},\gloskeyval{category}{species},^^J
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}^^J%
\gls{newglossaryentry}\marg{perfringens}\marg{\gloskeyval{name}{perfringens},\gloskeyval{category}{species},^^J
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}^^J%
\gls{newglossaryentry}\marg{tetani}\marg{\gloskeyval{name}{tetani},\gloskeyval{category}{species},^^J
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}^^J%
\codepar
\gls{multiglossaryentry}\marg{cbot}\marg{clostridium,botulinum}^^J%
\gls{multiglossaryentry}\marg{cperf}\marg{clostridium,perfringens}^^J%
\gls{multiglossaryentry}\marg{ctet}\marg{clostridium,tetani}^^J%
\codepar
\gls{multiglossaryentrysetup}\marg{indexothers=false,hyper=allmain}
}
{%
First use:
\gls{mgls}\marg{cbot}, \gls{mgls}\marg{cperf}, \gls{mgls}\marg{ctet}.^^J%
\codepar
Next use:
\gls{mgls}\marg{cbot}, \gls{mgls}\marg{cperf}, \gls{mgls}\marg{ctet}.^^J%
\gls{printglossaries}
}
\end{resultbox}
The \mglsoptval{hyper}{allmain} option makes the entire content of each
\gls{mgls} a hyperlink to the main entry in the glossary.
\subsection{Example: Suffix}
\label{sec:mglsexsuffix}
This example has a minor modification to the previous one. In this
case the multi-entries are defined with a suffix:
\begin{codebox}
\gls{multiglossaryentry}\oarg{\mglsoptval{firstsuffix}{botulism}}\marg{cbot}\marg{clostridium,botulinum}
\gls{multiglossaryentry}\oarg{\mglsoptval{firstsuffix}{gas gangrene}}\marg{cperf}\marg{clostridium,perfringens}
\gls{multiglossaryentry}\oarg{\mglsoptval{firstsuffix}{tetanus}}\marg{ctet}\marg{clostridium,tetani}
\end{codebox}
The rest of the document is as in \sectionref{sec:mglsexhier}.
\begin{resultbox}
\createexample*[title={Multi-entries: hierarchical with first-use suffix},
label={ex:multientryhierfirstusesuffix},
description={Example document with hierarchical multi-entries that
have a first-use suffix},
arara={pdflatex,makeglossaries,pdflatex,pdfcrop}]
{\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}[stylemods=bookindex,style=bookindex]\marg{glossaries-extra}^^J%
\codepar
\gls{makeglossaries}^^J%
\codepar
\cmd{newcommand}\marg{\cmd{latinname}}[1]\marg{\cmd{emph}\marg{\#1}}^^J%
\gls{glssetcategoriesattributes}^^J
\marg{genus,species}\marg{textformat,glossnamefont}\marg{latinname}^^J%
\codepar
\gls{setabbreviationstyle}\oarg{genus}\marg{long-only-short-only-desc}^^J%
\gls{newabbreviation}^^J
\oarg{\gloskeyval{category}{genus},\gloskeyval{description}{}}^^J
\marg{clostridium}\marg{C.}\marg{Clostridium}^^J%
\codepar
\gls{newglossaryentry}\marg{botulinum}\marg{\gloskeyval{name}{botulinum},\gloskeyval{category}{species},^^J
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}^^J%
\gls{newglossaryentry}\marg{perfringens}\marg{\gloskeyval{name}{perfringens},\gloskeyval{category}{species},^^J
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}^^J%
\gls{newglossaryentry}\marg{tetani}\marg{\gloskeyval{name}{tetani},\gloskeyval{category}{species},^^J
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}^^J%
\codepar
\gls{multiglossaryentry}\oarg{firstsuffix=botulism}\marg{cbot}\marg{clostridium,botulinum}^^J%
\gls{multiglossaryentry}\oarg{firstsuffix=gas gangrene}\marg{cperf}\marg{clostridium,perfringens}^^J%
\gls{multiglossaryentry}\oarg{firstsuffix=tetanus}\marg{ctet}\marg{clostridium,tetani}^^J%
\codepar
\gls{multiglossaryentrysetup}\marg{indexothers=false,hyper=allmain}
}
{%
First use:
\gls{mgls}\marg{cbot}, \gls{mgls}\marg{cperf}, \gls{mgls}\marg{ctet}.^^J%
\codepar
Next use:
\gls{mgls}\marg{cbot}, \gls{mgls}\marg{cperf}, \gls{mgls}\marg{ctet}.^^J%
\gls{printglossaries}
}
\end{resultbox}
\subsection{Example: Category Suffix}
\label{sec:mglsexcatsuffix}
This is an alternative to the previous example. Instead of storing
the extra information in the \mglsopt{firstsuffix} key, the
information is stored in the \gloskey{user1} key of the last
element (the species). A category suffix is used to look up the
field and append it.
\begin{codebox}
\gls{newglossaryentry}\marg{botulinum}\marg{\gloskeyval{name}{botulinum},\gloskeyval{category}{species},
\gloskeyval{user1}{botulism},
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}
\gls{newglossaryentry}\marg{perfringens}\marg{\gloskeyval{name}{perfringens},\gloskeyval{category}{species},
\gloskeyval{user1}{gas gangrene},
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}
\gls{newglossaryentry}\marg{tetani}\marg{\gloskeyval{name}{tetani},\gloskeyval{category}{species},
\gloskeyval{user1}{tetanus},
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}
\codepar
\gls{mglsdefcategorysuffix}\marg{bacteria}\marg{\%
\gls{mglsisfirstuse}
\marg{\gls{glsxtrifhasfield}\marg{useri}\marg{\gls{mglslastelementlabel}}\marg{ (\gls{glscurrentfieldvalue})}{}}\%
\marg{}\%
}
\codepar
\gls{multiglossaryentry}\oarg{category=bacteria}\marg{cbot}\marg{clostridium,botulinum}
\gls{multiglossaryentry}\oarg{category=bacteria}\marg{cperf}\marg{clostridium,perfringens}
\gls{multiglossaryentry}\oarg{category=bacteria}\marg{ctet}\marg{clostridium,tetani}
\end{codebox}
The result is the same as the previous example.
\begin{resultbox}
\createexample*[title={Multi-entries: hierarchical with category suffix},
label={ex:multientryhiercatsuffix},
description={Example document with hierarchical multi-entries that
have a category suffix},
arara={pdflatex,makeglossaries,pdflatex,pdfcrop}]
{\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}[stylemods=bookindex,style=bookindex]\marg{glossaries-extra}^^J%
\codepar
\gls{makeglossaries}^^J%
\codepar
\cmd{newcommand}\marg{\cmd{latinname}}[1]\marg{\cmd{emph}\marg{\#1}}^^J%
\gls{glssetcategoriesattributes}^^J
\marg{genus,species}\marg{textformat,glossnamefont}\marg{latinname}^^J%
\codepar
\gls{setabbreviationstyle}\oarg{genus}\marg{long-only-short-only-desc}^^J%
\gls{newabbreviation}^^J
\oarg{\gloskeyval{category}{genus},\gloskeyval{description}{}}^^J
\marg{clostridium}\marg{C.}\marg{Clostridium}^^J%
\codepar
\gls{newglossaryentry}\marg{botulinum}\marg{\gloskeyval{name}{botulinum},\gloskeyval{category}{species},^^J
\gloskeyval{user1}{botulism},^^J
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}^^J%
\gls{newglossaryentry}\marg{perfringens}\marg{\gloskeyval{name}{perfringens},\gloskeyval{category}{species},^^J
\gloskeyval{user1}{gas gangrene},^^J
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}^^J%
\gls{newglossaryentry}\marg{tetani}\marg{\gloskeyval{name}{tetani},\gloskeyval{category}{species},^^J
\gloskeyval{user1}{tetanus},^^J
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}^^J%
\codepar
\gls{mglsdefcategorysuffix}\marg{bacteria}\marg{\%^^J%
\gls{mglsisfirstuse}^^J
\marg{\gls{glsxtrifhasfield}\marg{useri}\marg{\gls{mglslastelementlabel}}\marg{ (\gls{glscurrentfieldvalue})}{}}\%^^J
\marg{}\%^^J%
}
\codepar
\gls{multiglossaryentry}\oarg{category=bacteria}\marg{cbot}\marg{clostridium,botulinum}^^J%
\gls{multiglossaryentry}\oarg{category=bacteria}\marg{cperf}\marg{clostridium,perfringens}^^J%
\gls{multiglossaryentry}\oarg{category=bacteria}\marg{ctet}\marg{clostridium,tetani}^^J%
\codepar
\gls{multiglossaryentrysetup}\marg{indexothers=false,hyper=allmain}
}
{%
First use:
\gls{mgls}\marg{cbot}, \gls{mgls}\marg{cperf}, \gls{mgls}\marg{ctet}.^^J%
\codepar
Next use:
\gls{mgls}\marg{cbot}, \gls{mgls}\marg{cperf}, \gls{mgls}\marg{ctet}.^^J%
\gls{printglossaries}
}
\end{resultbox}
\subsection{Example: Separators}
\label{sec:mglsexsep}
The first example (\sectionref{sec:mglsexhier}) can be modified so
that the species are also abbreviations. In this case, the
separators are modified to suppress the space (\gls{relax}) if both the genus and
species are abbreviated, or to use a \idx{nbsp} between
the genus short form (shown on subsequent use) and the species long
form (shown on \idx{firstuse}). If the genus is showing the long form
(\idx{firstuse}) then a normal space is used.
Note that the separator attributes apply to the category of the
element before the separator (not to the multi-entry category).
\begin{codebox}
\gls{glssetcategoryattribute}\marg{genus}\marg{\catattr{combinedfirstsepfirst}}\marg{\cmd{space}}
\gls{glssetcategoryattribute}\marg{genus}\marg{\catattr{combinedfirstsep}}\marg{\cmd{space}}
\gls{glssetcategoryattribute}\marg{genus}\marg{\catattr{combinedsepfirst}}\marg{\glssymbol{idx.nbsp}}
\gls{glssetcategoryattribute}\marg{genus}\marg{\catattr{combinedsep}}\marg{\gls{relax}}
\codepar
\gls{setabbreviationstyle}\oarg{species}\marg{\abbrstyle{long-only-short-only-desc}}
\codepar
\gls{newabbreviation}\oarg{\gloskeyval{category}{species},
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}\marg{botulinum}\marg{bot.}\marg{botulinum}
\gls{newabbreviation}\oarg{\gloskeyval{category}{species},
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}\marg{perfringens}\marg{per.}\marg{perfringens}
\gls{newabbreviation}\oarg{\gloskeyval{category}{species},
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}\marg{tetani}\marg{tet.}\marg{tetani}
\end{codebox}
This will cause a double dot at the end of the second sentence,
which can be suppressed using the \catattr{discardperiod} and
\catattr{retainfirstuseperiod} attributes.
\begin{codebox}
\gls{glssetcategoriesattributes}\marg{species}\marg{\catattr{discardperiod},\catattr{retainfirstuseperiod}}\marg{true}
\end{codebox}
This works because the final element's \idx{postlinkhook} is transferred
to the multi-entry post-link hook, which can detect the sentence
terminating period. If the post-link hook settings are changed, for example, to
\code{\mglsoptval{postlinks}{all},\mglsoptval{mpostlink}{false}} then the feature
won't work as the final element's \idx{postlinkhook} can't detect the
period (because \gls{gls} is embedded too deeply inside the internal
workings of \gls{mgls}).
\begin{resultbox}
\createexample*[title={Multi-entries: separators},
label={ex:multientrysep},
description={Example document demonstrating multi-entry separators},
arara={pdflatex,makeglossaries,pdflatex,pdfcrop}]
{\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}[stylemods=bookindex,style=bookindex]\marg{glossaries-extra}
\codepar
\gls{makeglossaries}
\codepar
\cmd{newcommand}\marg{\cmd{latinname}}[1]\marg{\cmd{emph}\marg{\#1}}^^J%
\gls{glssetcategoriesattributes}^^J
\marg{genus,species}\marg{textformat,glossnamefont}\marg{latinname}^^J%
\codepar
\% multi-entry category attributes:^^J%
\gls{glssetcategoryattribute}\marg{genus}\marg{combinedfirstsepfirst}\marg{\cmd{space}}^^J%
\gls{glssetcategoryattribute}\marg{genus}\marg{combinedfirstsep}\marg{\cmd{space}}^^J%
\gls{glssetcategoryattribute}\marg{genus}\marg{combinedsepfirst}\marg{\string~}^^J%
\gls{glssetcategoryattribute}\marg{genus}\marg{combinedsep}\marg{\gls{relax}}^^J%
\codepar
\gls{setabbreviationstyle}\oarg{genus}\marg{long-only-short-only-desc}^^J%
\gls{newabbreviation}^^J
\oarg{\gloskeyval{category}{genus},\gloskeyval{description}{}}^^J
\marg{clostridium}\marg{C.}\marg{Clostridium}
\codepar
\gls{setabbreviationstyle}\oarg{species}\marg{long-only-short-only-desc}^^J%
\codepar
\gls{newabbreviation}\oarg{\gloskeyval{category}{species},^^J
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}\marg{botulinum}\marg{bot.}\marg{botulinum}^^J%
\gls{newabbreviation}\oarg{\gloskeyval{category}{species},^^J
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}\marg{perfringens}\marg{per.}\marg{perfringens}^^J%
\gls{newabbreviation}\oarg{\gloskeyval{category}{species},^^J
\gloskeyval{description}{},\gloskeyval{parent}{clostridium}}\marg{tetani}\marg{tet.}\marg{tetani}^^J%
\gls{glssetcategoriesattributes}\marg{species}\marg{discardperiod,retainfirstuseperiod}\marg{true}^^J%
\codepar
\gls{multiglossaryentry}\marg{cbot}\marg{clostridium,botulinum}^^J%
\gls{multiglossaryentry}\marg{cperf}\marg{clostridium,perfringens}^^J%
\gls{multiglossaryentry}\marg{ctet}\marg{clostridium,tetani}^^J%
\codepar
\gls{multiglossaryentrysetup}\marg{indexothers=false,hyper=allmain}
}
{%
First use:
\gls{mgls}\marg{cbot}, \gls{mgls}\marg{cperf}, \gls{mgls}\marg{ctet}.^^J%
\codepar
Next use:
\gls{mgls}\marg{cbot}, \gls{mgls}\marg{cperf}, \gls{mgls}\marg{ctet}.^^J%
\gls{printglossaries}
}
\end{resultbox}
\subsection{Example: Skipping Elements (Fragment Element)}
\label{sec:exskipfirstsuffix}
This example is an alternative way of dealing with nested links
(see \sectionref{sec:nested}).
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}[\opt{stylemods},\optval{style}{\glostyle{long}}]\marg{glossaries-extra}
\codepar
\gls{makeglossaries}
\codepar
\gls{setabbreviationstyle}\marg{\abbrstyle{long-short-sc}}
\gls{newabbreviation}\marg{ssi}\marg{ssi}\marg{server-side includes}
\gls{newabbreviation}\marg{html}\marg{html}\marg{hypertext markup language}
\codepar
\gls{setabbreviationstyle}\oarg{combinedabbrv}\marg{\abbrstyle{long-only-short-sc-only}}
\gls{newabbreviation}
\oarg{\gloskeyval{category}{combinedabbrv},
\gloskeyval{description}{\gls{glsxtrshort}\marg{ssi} enabled \gls{glsxtrshort}\marg{html}}}
\marg{shtml-frag}\marg{shtml}\marg{enabled}
\codepar
\gls{glssetcategoryattribute}\marg{combinedabbrv}\marg{multioptions}
\marg{\mglsoptval{usedskipothers},\mglsoptval{firstsuffix}{\gls{glsxtrshort}\marg{\gls{mglslastmainlabel}}}}
\codepar
\gls{multiglossaryentry}
\oarg{\mglsoptval{category}{combinedabbrv}}
\marg{shtml}\oarg{shtml-frag}\marg{ssi,shtml-frag,html}
\codepar
\cbeg{document}
Individual elements first use: \gls{gls}\marg{ssi} and \gls{gls}{html}.
\codepar
Individual elements next use: \gls{gls}\marg{ssi} and \gls{gls}\marg{html}.
\codepar
Multi-entry first use: \gls{mgls}\marg{shtml}.
\codepar
Multi-entry next use: \gls{mgls}\marg{shtml}.
\codepar
Resetting all\gls{glsresetall}\gls{mglsreset}\marg{shtml}:
\codepar
Multi-entry first use: \gls{mgls}\marg{shtml}.
\codepar
Multi-entry next use: \gls{mgls}\marg{shtml}.
\codepar
Individual elements: \gls{gls}\marg{ssi} and \gls{gls}\marg{html}.
\gls{printglossaries}
\cend{document}
\end{codebox}
This uses the \catattr{multioptions} attribute to skip \qt{other}
elements on subsequent use. The problematic abbreviation (SHTML) is
defined as a fragment that simply expands to \qt{enabled} on first
use. Note that the description has to be supplied for the glossary.
The resulting document is shown below.
\begin{resultbox}
\createexample*[title={Multi-entries: skipping elements},
label={ex:multientryskip},
description={Example document demonstrating multi-entry sets with
elements skipped},
arara={pdflatex,makeglossaries,pdflatex,pdfcrop}]
{\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}[stylemods,style=long]\marg{glossaries-extra}
\codepar
\gls{makeglossaries}
\codepar
\gls{setabbreviationstyle}\marg{long-short-sc}
\gls{newabbreviation}\marg{ssi}\marg{ssi}\marg{server-side includes}
\gls{newabbreviation}\marg{html}\marg{html}\marg{hypertext markup language}
\codepar
\gls{setabbreviationstyle}\oarg{combinedabbrv}\marg{long-only-short-sc-only}
\gls{newabbreviation}
\oarg{\gloskeyval{category}{combinedabbrv},
\gloskeyval{description}{\gls{glsxtrshort}\marg{ssi} enabled \gls{glsxtrshort}\marg{html}}}
\marg{shtml-frag}\marg{shtml}\marg{enabled}
\codepar
\gls{glssetcategoryattribute}\marg{combinedabbrv}\marg{multioptions}^^J
\marg{usedskipothers,firstsuffix=\marg{\gls{glsxtrshort}\marg{\gls{mglslastmainlabel}}}}^^J%
\codepar
\gls{multiglossaryentry}
\oarg{category=combinedabbrv}
\marg{shtml}\oarg{shtml-frag}\marg{ssi,shtml-frag,html}
}
{Individual elements first use: \gls{gls}\marg{ssi} and \gls{gls}{html}.
\codepar
Individual elements next use: \gls{gls}\marg{ssi} and \gls{gls}\marg{html}.
\codepar
Multi-entry first use: \gls{mgls}\marg{shtml}.
\codepar
Multi-entry next use: \gls{mgls}\marg{shtml}.
\codepar
Resetting all\gls{glsresetall}\gls{mglsreset}\marg{shtml}:
\codepar
Multi-entry first use: \gls{mgls}\marg{shtml}.
\codepar
Multi-entry next use: \gls{mgls}\marg{shtml}.
\codepar
Individual elements: \gls{gls}\marg{ssi} and \gls{gls}\marg{html}.
\gls{printglossaries}
}
\end{resultbox}
The key difference here from the example using \gls{glsps} at the end
of \sectionref{sec:nested} is that the individual elements hyperlink
to their respective entries in the glossary on first use of \gls{mgls}.
The problem is that with the \optfmt{colorlinks} package option,
it's not obvious where the hyperlinks start and end. The suffix (\textsc{shtml})
will hyperlink to the \qt{shtml} entry in the glossary, so the
\qt{enabled} hyperlink is redundant. The simplest fix for this is to
add \mglsoptval{hyper}{notmainfirst} to the option list, which will prevent
\qt{enabled} from being a hyperlink.
Another problem occurs where \gls{mgls} is used before the individual elements are
used, which leads to their full expansion with a confusing amount of
parentheses. A simple solution is to use the option
\mglsoptval{mglsopts}{unsetothers}, which will unset the other (not-main)
elements first. This can be localised with \mglsopt{presetlocal} but
\gls{gls} will then unset the \idx{firstuseflag} globally, which
means that the other elements won't show the full form when they are
first used on their on after \gls{mgls}. This can be switched to a
local unset with \mglsoptval{others}{local}.
The complete set of options are now:
\begin{codebox}
\gls{glssetcategoryattribute}\marg{combinedabbrv}\marg{\catattr{multioptions}}
\marg{\%
\mglsoptval{hyper}{notmainfirst},
\mglsoptval{mglsopts}{\mglsopt{presetlocal},\mglsopt{unsetothers},\mglsoptval{others}{local}},
\mglsoptval{usedskipothers},
\mglsoptval{firstsuffix}\marg{\gls{glsxtrshort}\marg{\gls{mglslastmainlabel}}}
}
\end{codebox}
\begin{resultbox}
\createexample*[title={Multi-entries: skipping elements (unsetting
others)},
label={ex:multientryskipunsetothers},
description={Example document demonstrating multi-entry sets with
elements skipped and unset},
arara={pdflatex,makeglossaries,pdflatex,pdfcrop}]
{\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}[stylemods,style=long]\marg{glossaries-extra}
\codepar
\gls{makeglossaries}^^J%
\codepar
\gls{setabbreviationstyle}\marg{long-short-sc}^^J%
\gls{newabbreviation}\marg{ssi}\marg{ssi}\marg{server-side
includes}^^J%
\gls{newabbreviation}\marg{html}\marg{html}\marg{hypertext markup language}
\codepar
\gls{setabbreviationstyle}\oarg{combinedabbrv}\marg{long-only-short-sc-only}^^J%
\gls{newabbreviation}^^J
\oarg{\gloskeyval{category}{combinedabbrv},^^J
\gloskeyval{description}{\gls{glsxtrshort}\marg{ssi} enabled
\gls{glsxtrshort}\marg{html}}}^^J
\marg{shtml-frag}\marg{shtml}\marg{enabled}
\codepar
\gls{glssetcategoryattribute}\marg{combinedabbrv}\marg{\catattr{multioptions}}^^J
\marg{\%^^J
\mglsoptval{hyper}{notmainfirst},^^J
\mglsoptval{mglsopts}{\mglsopt{presetlocal},\mglsopt{unsetothers},\mglsoptval{others}{local}},^^J
\mglsoptval{usedskipothers},^^J
\mglsoptval{firstsuffix}\marg{\gls{glsxtrshort}\marg{\gls{mglslastmainlabel}}}^^J%
}^^J%
\codepar
\gls{multiglossaryentry}^^J
\oarg{category=combinedabbrv}^^J
\marg{shtml}\oarg{shtml-frag}\marg{ssi,shtml-frag,html}
}
{Individual elements first use: \gls{gls}\marg{ssi} and \gls{gls}{html}.
\codepar
Individual elements next use: \gls{gls}\marg{ssi} and \gls{gls}\marg{html}.
\codepar
Multi-entry first use: \gls{mgls}\marg{shtml}.
\codepar
Multi-entry next use: \gls{mgls}\marg{shtml}.
\codepar
Resetting all\gls{glsresetall}\gls{mglsreset}\marg{shtml}:
\codepar
Multi-entry first use: \gls{mgls}\marg{shtml}.
\codepar
Multi-entry next use: \gls{mgls}\marg{shtml}.
\codepar
Individual elements: \gls{gls}\marg{ssi} and
\gls{gls}\marg{html}.^^J%
\gls{printglossaries}
}
\end{resultbox}
This method still has two main drawbacks: the description must be
added manually and the long form can't be accessed with
\gls{glsxtrlong}. The next example provides an alternative approach.
\subsection{Example: Skipping Elements (Prefix and Post-Link Hooks)}
\label{sec:exskippostlink}
This is a modified version of the previous example. In this case,
the main element isn't a fragment and also happens to have the same
label as the multi-entry set. (\code{\gls{mgls}\marg{shtml}} references the
multi-entry label and \code{\gls{gls}\marg{shtml}} references the individual
entry.)
In this case, the nested parts are marked up with custom commands:
\begin{codebox}
\cmd{newrobustcmd}\marg{\cmd{combinedpre}}[1]\marg{\gls{glsps}\marg{\#1}}
\cmd{newrobustcmd}\marg{\cmd{combinedpost}}[1]\marg{\gls{glsps}\marg{\#1}}
\codepar
\gls{newabbreviation}\marg{shtml}\marg{shtml}
\marg{\marg{}\cmd{combinedpre}\marg{ssi} enabled \cmd{combinedpost}\marg{html}}
\end{codebox}
This means that it's no longer necessary to manually insert the
description and the long form can be accessed as usual with
\code{\gls{glsxtrshort}\marg{shtml}}. Note that it is necessary to define
the custom commands robustly otherwise they will need to be
protected against premature expansion:
\begin{codebox}
\cmd{newcommand}\marg{\cmd{combinedpre}}[1]\marg{\gls{glsps}\marg{\#1}}
\cmd{newcommand}\marg{\cmd{combinedpost}}[1]\marg{\gls{glsps}\marg{\#1}}
\codepar
\gls{newabbreviation}\marg{shtml}\marg{shtml}
\marg{\marg{}\gls{protect}\cmd{combinedpre}\marg{ssi} enabled \gls{protect}\cmd{combinedpost}\marg{html}}
\end{codebox}
In both cases, an initial empty group is added to guard
against any \idx{sentencecase} commands, such as \gls{Glsxtrlong}.
The abbreviations all use the \abbrstyle{long-postshort-sc-user}
style, which places the short form in the post-link hook on
\idx{firstuse}. The \gls{gls} \idx{postlinkhook} for the main element
can be transferred to the \gls{mgls} post-link using:
\begin{codebox}
\mglsoptval{mpostlinkelement}{main}
\end{codebox}
All elements have their individual post-link hooks suppressed by default.
As in the previous example, the other elements can be skipped on
subsequent use:
\begin{codebox}
\mglsopt{usedskipothers}
\end{codebox}
Within \gls{mgls}, the nested content needs to be suppressed, which
can be done by redefining the custom commands. This can be done in
the multi-entry prefix. Since the entire content of \gls{mgls} (except for the
final multi-entry post-link hook) occurs inside a group, this
redefinition will be localised.
The complete document is as follows:
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}[\opt{stylemods},\optval{style}{\glostyle{long}}]\marg{glossaries-extra}
\codepar
\gls{makeglossaries}
\codepar
\gls{setabbreviationstyle}\marg{\abbrstyle{long-postshort-sc-user}}
\codepar
\gls{newabbreviation}\marg{ssi}\marg{ssi}\marg{server-side includes}
\gls{newabbreviation}\marg{html}\marg{html}\marg{hypertext markup language}
\codepar
\cmd{newrobustcmd}\marg{\cmd{combinedpre}}[1]\marg{\gls{glsps}\marg{\#1}}
\cmd{newrobustcmd}\marg{\cmd{combinedpost}}[1]\marg{\gls{glsps}\marg{\#1}}
\codepar
\cmd{newabbreviation}\marg{shtml}\marg{shtml}
\marg{\marg{}\cmd{combinedpre}\marg{ssi} enabled \cmd{combinedpost}\marg{html}}
\codepar
\gls{glssetcategoryattribute}\marg{combinedabbrv}\marg{\catattr{multioptions}}
\marg{\%
\mglsoptval{mpostlinkelement}{main},
\mglsopt{usedskipothers}
}
\codepar
\gls{multiglossaryentry}
\oarg{\mglsoptval{category}{combinedabbrv}}
\marg{shtml}\oarg{shtml}\marg{ssi,shtml,html}
\codepar
\gls{mglsdefcategoryprefix}\marg{combinedabbrv}\marg{\%
\cmd{renewcommand}\marg{\cmd{combinedpre}}[1]\marg{\cmd{ignorespaces}}\%
\cmd{renewcommand}\marg{\cmd{combinedpost}}[1]\marg{\gls{unskip}}\%
}
\codepar
\cbeg{document}
Individual elements first use: \gls{gls}\marg{ssi} and \gls{gls}\marg{html}.
\codepar
Individual elements next use: \gls{gls}\marg{ssi} and \gls{gls}\marg{html}.
\codepar
Multi-entry first use: \gls{mgls}\marg{shtml}.
\codepar
Multi-entry next use: \gls{mgls}\marg{shtml}.
\codepar
Individual entry first use: \gls{gls}\marg{shtml}.
\codepar
Resetting all\gls{glsresetall}\gls{mglsresetall}:
\codepar
Multi-entry first use: \gls{mgls}\marg{shtml}.
\codepar
Multi-entry next use: \gls{mgls}\marg{shtml}.
\codepar
Individual elements: \gls{gls}\marg{ssi} and \gls{gls}\marg{html}.
\codepar
Resetting all\gls{glsresetall}\gls{mglsresetall}:
\codepar
Individual entry first use: \gls{gls}\marg{shtml}.
\codepar
Multi-entry first use: \gls{mgls}\marg{shtml}. (Wrong!)
\codepar
\gls{printglossaries}
\cend{document}
\end{codebox}
This now produces:
\begin{resultbox}
\createexample*[title={Multi-entries: skipping elements (prefix and
post-link hooks)},
label={ex:multientryskipprefixpostlink},
description={Example document demonstrating multi-entry sets with
elements skipped and prefix and post-link hooks},
arara={pdflatex,makeglossaries,pdflatex,pdfcrop}]
{\cmd{usepackage}[colorlinks]\marg{hyperref}^^J%
\cmd{usepackage}[stylemods,style=long]\marg{glossaries-extra}^^J%
\codepar
\gls{makeglossaries}^^J%
\codepar
\gls{setabbreviationstyle}\marg{long-postshort-sc-user}^^J%
\codepar
\gls{newabbreviation}\marg{ssi}\marg{ssi}\marg{server-side
includes}^^J%
\gls{newabbreviation}\marg{html}\marg{html}\marg{hypertext markup
language}^^J%
\codepar
\cmd{newrobustcmd}\marg{\cmd{combinedpre}}[1]\marg{\gls{glsps}\marg{\#1}}^^J%
\cmd{newrobustcmd}\marg{\cmd{combinedpost}}[1]\marg{\gls{glsps}\marg{\#1}}^^J%
\codepar
\cmd{newabbreviation}\marg{shtml}\marg{shtml}^^J%
\marg{\marg{}\cmd{combinedpre}\marg{ssi} enabled
\cmd{combinedpost}\marg{html}}^^J%
\codepar
\gls{glssetcategoryattribute}\marg{combinedabbrv}\marg{multioptions}^^J
\marg{\%^^J
mpostlinkelement=main,^^J
usedskipothers^^J
}^^J%
\codepar
\gls{multiglossaryentry}^^J
\oarg{category=combinedabbrv}^^J
\marg{shtml}\oarg{shtml}\marg{ssi,shtml,html}^^J%
\codepar
\gls{mglsdefcategoryprefix}\marg{combinedabbrv}\marg{\%^^J
\cmd{renewcommand}\marg{\cmd{combinedpre}}[1]\marg{\cmd{ignorespaces}}\%^^J
\cmd{renewcommand}\marg{\cmd{combinedpost}}[1]\marg{\gls{unskip}}\%^^J%
}
}
{%
Individual elements first use: \gls{gls}\marg{ssi} and \gls{gls}\marg{html}.^^J%
\codepar
Individual elements next use: \gls{gls}\marg{ssi} and
\gls{gls}\marg{html}.^^J%
\codepar
Multi-entry first use: \gls{mgls}\marg{shtml}.^^J%
\codepar
Multi-entry next use: \gls{mgls}\marg{shtml}.^^J%
\codepar
Individual entry first use: \gls{gls}\marg{shtml}.^^J%
\codepar
Resetting all\gls{glsresetall}\gls{mglsresetall}:^^J%
\codepar
Multi-entry first use: \gls{mgls}\marg{shtml}.^^J%
\codepar
Multi-entry next use: \gls{mgls}\marg{shtml}.^^J%
\codepar
Individual elements: \gls{gls}\marg{ssi} and
\gls{gls}\marg{html}.^^J%
\codepar
Resetting all\gls{glsresetall}\gls{mglsresetall}:^^J%
\codepar
Individual entry first use: \gls{gls}\marg{shtml}.^^J%
\codepar
Multi-entry first use: \gls{mgls}\marg{shtml}. (Wrong!)^^J%
\codepar
\gls{printglossaries}
}
\end{resultbox}
Note the last two paragraphs, which highlights what happens if
\code{\gls{gls}\marg{shtml}} is used before \code{\gls{mgls}\marg{shtml}} when neither
of the other elements (\code{ssi} and \code{html}) have been
used. The final instance of \gls{mgls} has produced the wrong result.
This is because it's the first use of the multi-entry \code{shtml} but
not the first use of the individual entry \code{shtml}.
One way around this is to modify the prefix to ensure that the main
element's \idx{firstuseflag} matches the multi-entry's first use
flag:
\begin{codebox}
\gls{mglsdefcategoryprefix}\marg{combinedabbrv}\marg{\%
\cmd{renewcommand}\marg{\cmd{combinedpre}}[1]\marg{\cmd{ignorespaces}}\%
\cmd{renewcommand}\marg{\cmd{combinedpost}}[1]\marg{\gls{unskip}}\%
\gls{mglsisfirstuse}
\marg{\gls{glslocalreset}\marg{\gls{mglscurrentmainlabel}}}\%
\marg{\gls{glslocalunset}\marg{\gls{mglscurrentmainlabel}}}\%
}
\end{codebox}
The \opteqvalref{showtargets}{annoteleft} option can be used to mark up
the links with the targets. For example, the first instance of
\code{\gls{mgls}\marg{shtml}} will show as:
\begin{resultbox}
\newcommand{\markup}[2]{%
\glsshowtargetfonttext{[#1]}%
\glsxtrshowtargetsymbolleft#2\glsxtrshowtargetsymbolright}%
Multi-entry first use: \markup{glo:ssi}{\textsc{ssi}}
\markup{glo:shtml}{enabled}
\markup{glo:html}{\textsc{html}} (\textsc{shtml}).
\end{resultbox}
Each entry has an individual hyperlink to its own glossary item,
which may be confusing. This can be made clearer by suppressing the
main element link on first use with:
\begin{codebox}
\mglsoptval{hyper}{notmainfirst}
\end{codebox}
(as in the previous example), and adjusting the abbreviation style
so that the parenthetical content in the post-link hook has a
hyperlink:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsxtruserparen}}[2]\marg{\%
\gls{glsxtrfullsep}\marg{\#2}\%
\gls{glsxtrparen}
\marg{\gls{glshyperlink}\oarg{\#1}\marg{\#2}\%
\gls{ifglshasfield}\marg{\gls{glsxtruserfield}}\marg{\#2}\marg{, \gls{glscurrentfieldvalue}}\marg{}\%
}\%
}
\end{codebox}
The remaining problem is how to deal with the possibility that
\code{\gls{mgls}\marg{shtml}} may come before the \idx{firstuse} of the other
elements. For example:
\begin{codebox}
Multi-entry first use: \gls{mgls}\marg{shtml}.
\codepar
Individual elements: \gls{gls}{ssi} and \gls{gls}\marg{html}.
\end{codebox}
This leads to:
\begin{resultbox}
Multi-entry first use: server-side includes enabled hypertext markup
language (\textsc{shtml}).
Individual elements: \textsc{ssi} and \textsc{html}.
\end{resultbox}
This means that the abbreviations \textsc{ssi} and \textsc{html}
aren't explained in the document text. One way around this is to
only locally unset the other element \idxpl{firstuseflag}:
\begin{codebox}
\gls{glssetcategoryattribute}\marg{combinedabbrv}\marg{\catattr{multioptions}}
\marg{\%
\mglsoptval{hyper}{notmainfirst},
\mglsoptval{mpostlinkelement}{main},
\mglsoptval{usedskipothers},
\mglsoptval{mglsopts}{\mglsoptval{others}{local}}
}
\end{codebox}
With the above setting, the following:
\begin{codebox}
\gls{glsresetall}\gls{mglsresetall}
\codepar
Multi-entry first use: \gls{mgls}\marg{shtml}.
\codepar
Multi-entry next use: \gls{mgls}\marg{shtml}.
\codepar
Individual elements: \gls{gls}\marg{ssi} and \gls{gls}\marg{html}.
\end{codebox}
will now produce:
\begin{resultbox}
Multi-entry first use: server-side includes enabled hypertext markup
language (\textsc{shtml}).
Multi-entry next use: \textsc{shtml}.
Individual elements: server-side includes (\textsc{ssi}) and
hypertext markup language (\textsc{html}).
\end{resultbox}
\section{Main and Other Elements}
\label{sec:mglsmain}
The list of labels provided in the final argument of
\gls{multiglossaryentry} consists of a main element and all the other
elements. If the main element isn't identified in the optional
argument, it's assumed to be the final element in the list.
The main element allows you to determine which target to use if you
want the entire content of \gls{mgls} to be a single hyperlink. You
can also use the settings described in \sectionref{sec:multiglsoptions}
to only index the main element.
You can change the main element using:
\gls{mglsSetMain}
The new main label provided in the second argument must be in the
list corresponding to \meta{multi-label}. This change is locally
applied to the current scope. Note that if you are using
\app{bib2gls}, this change in the document can't be detected.
The main element can also be used to identify which element should
be displayed in the plural with \gls{mglsmainpl}. For example:
\begin{codebox}
\gls{newglossaryentry}\marg{great}\marg{\gloskeyval{name}{great},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{little}\marg{\gloskeyval{name}{little},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{grebe}\marg{\gloskeyval{name}{grebe},\gloskeyval{description}{}}
\codepar
\gls{multiglossaryentry}\marg{greatgrebe}\marg{great,grebe}
\gls{multiglossaryentry}\marg{littlegrebe}\marg{little,grebe}
\end{codebox}
In the above, two multi-entries are defined: \code{greatgrebe} and
\code{littlegrebe}. In both cases the main element is
\code{grebe} (the last element). Using \gls{mglspl} will show the
plural for all elements, but using \gls{mglsmainpl} will only use the
plural for the main element (grebe). For example:
\begin{codebox}
Plural all: \gls{mglspl}\marg{greatgrebe}, \gls{mglspl}\marg{littlegrebe}.
Plural main: \gls{mglsmainpl}\marg{greatgrebe}, \gls{mglsmainpl}\marg{littlegrebe}.
\end{codebox}
produces:
\begin{resultbox}
Plural all: greats grebes, littles grebes.
Plural main: great grebes, little grebes.
\end{resultbox}
\section{Prefixes and Suffixes}
\label{sec:mglsfixes}
A multi-entry may have associated prefixes and suffixes. These are
scoped and are placed outside of the hyperlinks and encapsulating
commands. They are not affected by case-changing commands, such as \gls{Mgls}.
If you want a prefix to obey case-changing, use the \gls{mpgls}-like
commands instead (\sectionref{sec:mpgls}).
The prefix is inserted with:
\cmddef{mglsprefix}
The default definition is:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{mglsprefix}}\marg{\%
\gls{ifdefempty}\gls{mglscurrentcategory}
\marg{\gls{mglscurrentprefix}}\%
\marg{\%
\gls{mglshascategoryprefix}\marg{\gls{mglscurrentcategory}}\%
\marg{\gls{mglsusecategoryprefix}\marg{\gls{mglscurrentcategory}}}\%
\marg{\gls{mglscurrentprefix}}\%
}\%
}
\end{compactcodebox}
This will insert the current prefix unless there is prefix command
associated with the current category.
The suffix is inserted with:
\cmddef{mglssuffix}
This command is defined as follows:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{mglssuffix}}\marg{\%
\gls{ifdefempty}\gls{mglscurrentcategory}
\marg{\gls{ifdefempty}{\gls{mglscurrentsuffix}}\marg{}\marg{\cmd{space}(\gls{mglscurrentsuffix})}}\%
\marg{\%
\gls{mglshascategorysuffix}\marg{\gls{mglscurrentcategory}}\%
\marg{\gls{mglsusecategorysuffix}\marg{\gls{mglscurrentcategory}}}\%
\marg{\gls{ifdefempty}\marg{\gls{mglscurrentsuffix}}\marg{}\marg{\cmd{space}(\gls{mglscurrentsuffix})}}\%
}\%
}
\end{compactcodebox}
If there is a suffix associated with the current category, that will
be used, otherwise if the current suffix isn't empty this
inserts a space followed by the current suffix in parentheses.
You can access the label of the last (non-skipped) element with
\gls{mglslastelementlabel}.
Note that in both cases the category corresponds to the multi-entry
category (see \sectionref{sec:multiglscategory}).
To define a category-dependent prefix, use:
\cmddef{mglsdefcategoryprefix}
You can reference the current prefix with \gls{mglscurrentprefix}
within \meta{definition}.
To define a category-dependent suffix, use:
\cmddef{mglsdefcategorysuffix}
You can reference the current suffix with \gls{mglscurrentsuffix}
within \meta{definition}.
The default definition of \gls{mglsprefix} tests if there is a
category prefix using:
\cmddef{mglshascategoryprefix}
This does \meta{true} if a prefix has been assigned to the given
category, otherwise it does \meta{false}.
If you need to obtain the prefix for a particular category, you can
use:
\cmddef{mglsusecategoryprefix}
This expands to the prefix, if set, for the given category or to nothing otherwise.
The default definition of \gls{mglssuffix} tests if there is a
category suffix using:
\cmddef{mglshascategorysuffix}
This does \meta{true} if a suffix has been assigned to the given
category, otherwise it does \meta{false}.
If you need to obtain the suffix for a particular category, you can
use:
\cmddef{mglsusecategorysuffix}
This expands to the suffix, if set, for the given category or to nothing otherwise.
The current prefix \gls{mglscurrentprefix} and \gls{mglscurrentsuffix}
are obtained as follows:
\begin{itemize}
\item if this is the first use of the multi-entry
(\sectionref{sec:mglsfirstuse}) then the \meta{prefix} is set to the
value of the \mglsopt{firstprefix} option and the \meta{suffix} is
set to the value of the \mglsopt{firstsuffix} option;
\item otherwise the \meta{prefix} is set to the
value of the \mglsopt{usedprefix} option and the \meta{suffix} is
set to the value of the \mglsopt{usedsuffix} option.
\end{itemize}
\begin{important}
The prefix and suffix (if set) are placed outside of the hyperlink
and text formatting encapsulator. They are not affected by
case-changing commands such as \gls{Mgls} or \gls{MGLS}.
\end{important}
For example:
\begin{codebox}
\gls{setabbreviationstyle}\marg{\abbrstyle{long-only-short-only}}
\gls{newabbreviation}\marg{clostridium}\marg{C.}\marg{Clostridium}
\gls{newglossaryentry}\marg{botulinum}\marg{\gloskeyval{name}{botulinum},\gloskeyval{description}{}}
\codepar
\gls{multiglossaryentry}\oarg{\mglsoptval{firstsuffix}{botulism}}
\marg{cbot}\marg{clostridium,botulinum}
\end{codebox}
On first use, this produces (assuming the \qt{clostridum} element
hasn't been used previously):
\begin{resultbox}
Clostridium botulinum (botulism).
\end{resultbox}
On subsequent use, this produces:
\begin{resultbox}
C. botulinum.
\end{resultbox}
\section{Separators}
\label{sec:mglssep}
The separators between each instance of \gls{gls} are given by the
following commands, which all take two arguments. The first argument
is the label of the previous element. The second argument is the
label of the following element.
\cmddef{glscombinedsep}
This is inserted between two entries that have both been marked as used.
The default definition is:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glscombinedsep}}[2]\marg{\%
\gls{glshasattribute}\marg{\#1}\marg{\catattr{combinedsep}}\%
\marg{\gls{glsgetattribute}\marg{\#1}\marg{\catattr{combinedsep}}}\%
\marg{ }%
}
\end{codebox}
This will use the \catattr{combinedsep} attribute for the
\meta{prev label}'s category, if set. Otherwise this just does a
space. Note that this ignores the second argument.
\cmddef{glscombinedfirstsep}
This is inserted between two entries where only the next entry has
been marked as used. The default definition is:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glscombinedfirstsep}}[2]\marg{\%
\gls{glshasattribute}\marg{\#1}\marg{\catattr{combinedfirstsep}}\%
\marg{\gls{glsgetattribute}\marg{\#1}\marg{\catattr{combinedfirstsep}}}\%
\marg{\gls{glscombinedsep}\marg{\#1}\marg{\#2}}\%
}
\end{codebox}
This will use the \catattr{combinedfirstsep} attribute for
\meta{prev label}'s category, if set. If that attribute isn't set,
\gls{glscombinedsep} is used.
\cmddef{glscombinedsepfirst}
This is inserted between two entries where only the previous entry has
been marked as used. The default definition is:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glscombinedsepfirst}}[2]\marg{\%
\gls{glshasattribute}\marg{\#1}\marg{\catattr{combinedsepfirst}}\%
\marg{\gls{glsgetattribute}\marg{\#1}\marg{\catattr{combinedsepfirst}}}\%
\marg{\gls{glscombinedsep}\marg{\#1}\marg{\#2}}\%
}
\end{codebox}
This will use the \catattr{combinedsepfirst} attribute for
\meta{prev label}'s category, if set. If that attribute isn't set,
\gls{glscombinedsep} is used.
\cmddef{glscombinedfirstsepfirst}
This is inserted between two entries where both have
been marked as used. The default definition is:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glscombinedfirstsepfirst}}[2]\marg{\%
\gls{glshasattribute}\marg{\#1}\marg{\catattr{combinedfirstsepfirst}}\%
\marg{\gls{glsgetattribute}\marg{\#1}\marg{\catattr{combinedfirstsepfirst}}}\%
\marg{\gls{glscombinedsep}\marg{\#1}\marg{\#2}}\%
}
\end{codebox}
This will use the \catattr{combinedfirstsepfirst} attribute for
\meta{prev label}'s category, if set. If that attribute isn't set,
\gls{glscombinedsep} is used.
These commands may be redefined as required.
For example, to have no space between two elements that have both
been marked as used and are both abbreviations (disregarding
category attributes):
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glscombinedfirstsepfirst}}[2]\marg{\%
\gls{ifglshasshort}\marg{\#1}\marg{\gls{ifglshasshort}\marg{\#2}\marg{}\marg{\cmd{space}}}\marg{\cmd{space}}\%
}
\end{codebox}
There are some commands for redefining the above separators to
common combinations.
\cmddef{glssetcombinedsepabbrvnbsp}
This does the following:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glscombinedsep}}[2]\marg{\%
\gls{glshasattribute}\marg{\#1}\marg{\catattr{combinedsep}}\%
\marg{\gls{glsgetattribute}\marg{\#1}\marg{\catattr{combinedsep}}}\%
\marg{\gls{ifglshasshort}\marg{\#1}\marg{\glssymbol{idx.nbsp}}\marg{ }}\%
}\%
\cmd{renewcommand}*\marg{\gls{glscombinedsepfirst}}[2]\marg{\%
\gls{glshasattribute}\marg{\#1}\marg{\catattr{combinedsepfirst}}\%
\marg{\gls{glsgetattribute}\marg{\#1}\marg{\catattr{combinedsepfirst}}}\%
\marg{\gls{ifglshasshort}\marg{\#1}\marg{\glssymbol{idx.nbsp}}\marg{ }}\%
}\%
\cmd{renewcommand}*\marg{\gls{glscombinedfirstsep}}[2]\marg{\%
\gls{glshasattribute}\marg{\#1}\marg{\catattr{combinedfirstsep}}\%
\marg{\gls{glsgetattribute}\marg{\#1}\marg{\catattr{combinedfirstsep}}}\%
\marg{ }\%
}\%
\cmd{renewcommand}*\marg{\gls{glscombinedfirstsepfirst}}[2]\marg{\%
\gls{glshasattribute}\marg{\#1}\marg{\catattr{combinedfirstsepfirst}}\%
\marg{\gls{glsgetattribute}\marg{\#1}\marg{\catattr{combinedfirstsepfirst}}}\%
\marg{ }\%
}
\end{codebox}
This uses a \idx{nbsp} following an abbreviation
(that has already been marked as used). Note that if the associated
attributes are set the commands will behave according to the
attribute.
\cmddef{glssetcombinedsepabbrvnone}
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glscombinedsep}}[2]\marg{\%
\gls{glshasattribute}\marg{\#1}\marg{\catattr{combinedsep}}\%
\marg{\gls{glsgetattribute}\marg{\#1}\marg{\catattr{combinedsep}}}\%
\marg{\gls{ifglshasshort}\marg{\#1}\marg{}\marg{\gls{ifglshasshort}\marg{\#2}\marg{}\marg{ }}}\%
}\%
\cmd{renewcommand}*\marg{\gls{glscombinedsepfirst}}[2]\marg{\%
\gls{glshasattribute}\marg{\#1}\marg{\catattr{combinedsepfirst}}\%
\marg{\gls{glsgetattribute}\marg{\#1}\marg{\catattr{combinedsepfirst}}}\%
\marg{\gls{ifglshasshort}\marg{\#1}\marg{}\marg{ }}\%
}\%
\cmd{renewcommand}*\marg{\gls{glscombinedfirstsep}}[2]\marg{\%
\gls{glshasattribute}\marg{\#1}\marg{\catattr{combinedfirstsep}}\%
\marg{\gls{glsgetattribute}\marg{\#1}\marg{\catattr{combinedfirstsep}}}\%
\marg{\gls{ifglshasshort}\marg{\#2}\marg{}\marg{ }}\%
}\%
\cmd{renewcommand}*\marg{\gls{glscombinedfirstsepfirst}}[2]\marg{\%
\gls{glshasattribute}\marg{\#1}\marg{\catattr{combinedfirstsepfirst}}\%
\marg{\gls{glsgetattribute}\marg{\#1}\marg{\catattr{combinedfirstsepfirst}}}\%
\marg{ }\%
}
\end{codebox}
This does nothing if either element are abbreviations that have already been
used. Note that if the associated attributes are set the commands
will behave according to the attribute.
\cmddef{glssetcombinedsepnarrow}
This is rather more complicated as it measures a field value and
uses \meta{narrow-sep} if the width is less than \meta{width}.
The field value is determined as follows:
\begin{itemize}
\item on \idx{firstuse} the
\gloskey{long} field is used if it is set otherwise the
\gloskey{first} field is used;
\item otherwise the
\gloskey{short} field is used if it is set otherwise the
\gloskey{text} field is used;
\end{itemize}
Note that this doesn't take into account fonts, hooks, abbreviation
styles or plural forms (e.g.\ \gls{mglspl}) or other field references
(e.g.\ \gls{mglsname}). If the associated attributes are set the commands
will behave according to the attribute.
\section{\glsfmtname{mgls} Element Hooks}
\label{sec:mglselementhooks}
The \gls{mgls}-like commands use the following hooks:
\cmddef{mglselementprehook}
This is done before each (non-skipped) element. (Default does nothing.)
\cmddef{mglselementposthook}
This is done after each (non-skipped) element. (Default does nothing.)
Note that this is different from the normal entry post-link hook
\gls{glspostlinkhook}. If the individual entry post-link hook is enabled (see the
\mglsopt{postlinks} key in \sectionref{sec:multiglsoptions}), this will go before
\gls{mglselementposthook}.
The definitions of the following commands are scoped within the
\gls{mgls}-like commands so they can't be accessed elsewhere
(including in the post-link hook, see
\sectionref{sec:mglspostlinkhook}). They
may be used in the above hooks or in the separator commands (described in
\sectionref{sec:mglssep}) or in the command used to encapsulate the
entire content. They can also be used in the post-link hook (see
\sectionref{sec:entryfmtmods}) to determine if an entry is being
used within a \gls{mgls}-like command.
\cmddef{mglscurrentmultilabel}
Expands to the multi-entry label.
\cmddef{mglscurrentmainlabel}
Expands to the label of the main element.
\cmddef{mglscurrentlist}
Expands to the complete comma-separated list of elements.
\cmddef{mglscurrentoptions}
Expands to the options used when the multi-entry was defined. This
doesn't include options set with \gls{multiglossaryentrysetup}
or those passed to \gls{mgls} (or whichever variant is being used).
\cmddef{mglscurrentcategory}
Expands to the multi-entry category current in effect.
\cmddef{glsxtrcurrentmglscsname}
Expands to the control sequence name of the calling command (for
example, \code{mgls} or \code{mglspl}).
To test if the current multi-entry is the first use:
\cmddef{mglsisfirstuse}
This does \meta{true} if this is the first use otherwise it does
\meta{false}. Note that this applies to the multi-entry first use
flag not the \idxpl{firstuseflag} of the individual elements.
At each iteration of the loop over the element list, the following
commands are set, which can be accessed in hooks such as
\gls{mglselementprehook} or in hooks used by the underlying \gls{gls}
etc commands. For example, if \gls{mglscurrentlabel} is defined then
\gls{gls} is being used inside \gls{mgls}.
\cmddef{mglscurrentlabel}
Expands to the current element label.
\cmddef{mglselementindex}
This is a count register that is set to the element index.
\cmddef{mglscurrentprefix}
Expands to the current multi-entry prefix.
\cmddef{mglscurrentsuffix}
Expands to the current multi-entry suffix.
\cmddef{mglsiflast}
If this is the last iteration, does \meta{true} otherwise does
\meta{false}. This takes the skip options into account, so the last
iteration may not necessarily be when the element index is equal to
the total number of elements.
\section{Post-Link Hook}
\label{sec:mglspostlinkhook}
There is a hook that occurs at the end the \gls{mgls}-like commands
according to the \mglsopt{mpostlink} setting (see
\sectionref{sec:multiglsoptions}). The hook used depends on the
\mglsopt{mpostlinkelement} option.
These hooks can't access the commands described in \sectionref{sec:mglselementhooks}
as the hook occurs outside of the scope in which they are defined.
The \mglsoptval{mpostlinkelement}{custom} option uses:
\cmddef{mglscustompostlinkhook}
This does nothing by default.
The \mglsoptval{mpostlinkelement}{last} option uses:
\cmddef{mglslastelementpostlinkhook}
which emulates the post-link hook of the last element.
The \mglsoptval{mpostlinkelement}{main} option uses:
\cmddef{mglslastmainpostlinkhook}
which emulates the post-link hook of the main element.
The default settings \code{\mglsoptval{postlinks}{none},
\mglsoptval{mpostlink}{true}, \mglsoptval{mpostlinkelement}{last}} will
suppress the individual element \idxpl{postlinkhook}
(\gls{glspostlinkhook}) and do the multi-entry post-link hook for
the last element (\gls{mglslastelementpostlinkhook}).
If you have the final element's \idx{postlinkhook} enabled and the
multi-entry post-link hook enabled (for example,
\code{\mglsoptval{postlinks}{all}, \mglsoptval{mpostlink}{true},
\mglsoptval{mpostlinkelement}{last}}), the final element's
\idx{postlinkhook} will be done twice. Similarly for the main element with
\code{\mglsoptval{postlinks}{all}, \mglsoptval{mpostlink}{true},
\mglsoptval{mpostlinkelement}{main}}.
The following commands are available for use in these hooks and may
also be used in the definition of \gls{mglssuffix}.
\cmddef{mglslastmultilabel}
Expands to the multi-entry label.
\cmddef{mglslastcategory}
Expands to the multi-entry category (see
\sectionref{sec:multiglscategory}). This will be empty if no
category was assigned.
\cmddef{mglswasfirstuse}
If that was the first use of the multi-entry (see \sectionref{sec:mglsfirstuse})
this does \meta{true} otherwise it does \meta{false}.
\subsection{Last Element}
\label{sec:mglspostlinkhooklastelement}
The following commands relate to the last element.
\cmddef{mglslastelementlabel}
Expands to the label of the last non-skipped element. If all
elements were skipped or if the multi-entry wasn't defined, this
will be empty.
Test if the last element was skipped:
\cmddef{mglsiflastelementskipped}
If the last element was skipped this does \meta{true} otherwise it
does \meta{false}.
If all elements were skipped or if the multi-entry wasn't defined,
this will do \meta{true}.
Test if the last element was its first use:
\cmddef{mglsiflastelementwasfirstuse}
If the last non-skipped element was used for the first time this
does \meta{true} otherwise it does \meta{false}. (Corresponds to
\gls{glsxtrifwasfirstuse}.)
If all elements were skipped or if the multi-entry wasn't defined,
this will do \meta{true}.
Test if the last element was plural:
\cmddef{mglsiflastelementwasplural}
If the last non-skipped element had the plural form displayed, this
does \meta{true} otherwise it does \meta{false}. (Corresponds to
\gls{glsifplural}.)
If all elements were skipped or if the multi-entry wasn't defined,
this will do \meta{false}.
Test if the last element was had any case-changing applied:
\cmddef{mglsiflastelementcapscase}
Corresponds to \gls{glscapscase} of the last non-skipped element.
If all elements were skipped or if the multi-entry wasn't defined,
this will do \meta{no-change}.
\subsection{Main Element}
\label{sec:mglspostlinkhookmainelement}
The following commands relate to the main element.
\cmddef{mglslastmainlabel}
Expands to the label of the main element from the multi-entry that
was just referenced. If the main element was skipped or if the multi-entry
wasn't defined, this will be empty. If this is the same as
\gls{mglslastelementlabel} then the main element was the last
element.
Test if the main element was skipped:
\cmddef{mglsiflastmainskipped}
If the main element from the multi-entry that was just referenced
was skipped this does \meta{true} otherwise it does \meta{false}.
If the multi-entry wasn't defined, this will do \meta{true}.
Test if the main element was its first use:
\cmddef{mglsiflastmainwasfirstuse}
If the main element was used for the first time this
does \meta{true} otherwise it does \meta{false}. (Corresponds to
\gls{glsxtrifwasfirstuse}.)
If the main element was skipped or if the multi-entry wasn't defined,
this will do \meta{true}.
Test if the main element was plural:
\cmddef{mglsiflastmainwasplural}
If the main element from the multi-entry that was just referenced
had its plural form displayed this does \meta{true} otherwise it
does \meta{false}. (Corresponds to \gls{glsifplural}.) If the main
element was skipped or if the multi-entry wasn't defined, this will
do \meta{false}.
Test if the main element was had any case-changing applied:
\cmddef{mglsiflastmaincapscase}
Corresponds to \gls{glscapscase} of the main element from the
multi-entry that was just referenced. If the main element was
skipped or if the multi-entry wasn't defined, this will do
\meta{no-change}.
\section{Multi-Entry First Use}
\label{sec:mglsfirstuse}
Each multi-entry set has an associated first use flag. This is
independent of the \idx{firstuseflag} associated with the individual
entries that make up the set. As with the \idx{glslike} commands,
\gls{mgls} unsets this flag. Unlike the \idx{glstextlike} commands, all
the commands described in \sectionref{sec:mglslike} (including
commands like \gls{mglsname}) unset this flag, even if the elements
use commands like \gls{glsname} that don't unset the entry's
\idx{firstuseflag}.
You can determine whether or not a multi-entry set has been
marked as used with:
\cmddef{ifmglsused}
This does \meta{true} if the given multi-entry has been marked
as used, otherwise it does \meta{false}.
You can (globally) unset the flag (mark the set as having been referenced)
with:
\cmddef{mglsunset}
or reset it with:
\cmddef{mglsreset}
There are also local versions of these commands:
\cmddef{mglslocalunset}
which locally unsets the flag and
\cmddef{mglslocalreset}
which locally resets the flag.
It's also possible to unset or reset all multi-entries.
\cmddef{mglsunsetall}
Unsets all multi-entries.
\cmddef{mglsresetall}
Resets all multi-entries.
\begin{important}
Note that unsetting or resetting any of the individual element
\idxpl{firstuseflag} doesn't affect the multi-entry flag.
Similarly, unsetting or resetting the multi-entry flag doesn't
affect the \idxpl{firstuseflag} of the individual elements.
\end{important}
\section{Multi-Entry Category}
\label{sec:multiglscategory}
A multi-entry set may have an associated category set using the
\mglsopt{category} key described in \sectionref{sec:multiglsoptions}.
This isn't set by default, but if it is set the category may have
attributes set in the usual way. The multi-entry category is
independent of the individual entry categories. The following
attribute is recognised by commands like \gls{mgls}:
\optiondef{catattr.multioptions}
The value are the default options to apply to any
multi-entry set with the given category. These can be overridden
by the first optional argument of \gls{multiglossaryentry} or by the
\mglsopt{setup} key in the first optional argument of commands like
\gls{mgls}.
\optiondef{catattr.combinedfirstsep}
The separator to use for \gls{glscombinedfirstsep}.
\optiondef{catattr.combinedfirstsepfirst}
The separator to use for \gls{glscombinedfirstsepfirst}.
\optiondef{catattr.combinedsepfirst}
The separator to use for \gls{glscombinedsepfirst}.
\optiondef{catattr.combinedsep}
The separator to use for \gls{glscombinedsep}.
Note that you can't access the category or its attributes via the
multi-entry label (for example, with \gls{glshasattribute}). If you
need to access the current multi-entry's category within any of the
\gls{mgls}-like hooks (\sectionref{sec:mglselementhooks}), you can
obtain the category with \gls{mglscurrentcategory} and use commands
like \gls{glshascategoryattribute}.
\section{Multi-Entry Settings}
\label{sec:multiglsoptions}
The settings that govern all multi-entries can be set using:
\cmddef{multiglossaryentrysetup}
The \meta{options} are the same as for \gls{multiglossaryentry}.
Whenever the \gls{mgls}-like commands are used, options are applied in the
following order:
\begin{enumerate}
\item general options identified by \gls{multiglossaryentrysetup};
\item the category key is assigned if it's in the general options,
\gls{multiglossaryentry} or \mglsopt{setup} key;
\item \catattr{multioptions} category attribute (if set);
\item any options provided in the first optional argument of
\gls{multiglossaryentry};
\item any options provided in the \mglsopt{setup} key in the first
optional argument of the \gls{mgls}-like command.
\end{enumerate}
These options are described below.
\subsection{Indexing}
\label{sec:multiglsoptionsindexing}
\optiondef{mglsopt.indexmain}
This setting may take one of the following values:
\begin{description}
\item[\optfmt{false}] don't index the main entry;
\item[\optfmt{true}] index the main entry;
\item[\optfmt{first}] only index the main entry if it's the
\idx{firstuse} (of the main entry).
\end{description}
\optiondef{mglsopt.indexothers}
This setting may take one of the following values:
\begin{description}
\item[\optfmt{false}] don't index the other entries;
\item[\optfmt{true}] index the other entries;
\item[\optfmt{first}] only index the other entries if
it's the \idx{firstuse} (of the non-main entry).
\end{description}
\subsection{Location Formats (Encaps)}
\label{sec:multiglsoptionsencap}
\optiondef{mglsopt.encapmain}
This setting value should be the value to
pass to \glsopt{format} option (\idx{locationencap}) for the main entry.
\optiondef{mglsopt.encapothers}
This setting value should be the value to pass to \glsopt{format}
option (\idx{locationencap}) for the other (not main) entries.
\subsection{Post-Link Hooks}
\label{sec:multiglsoptionspostlink}
\optiondef{mglsopt.postlinks}
This setting determines whether or not to enable the individual
element's \idx{postlinkhook}. The value may be one of:
\begin{description}
\item[\optfmt{none}] suppress the \idx{postlinkhook} for all elements;
\item[\optfmt{all}] don't suppress the \idx{postlinkhook} for all elements;
\item[\optfmt{notlast}] only suppress the \idx{postlinkhook} for the
last element;
\item[\optfmt{mainnotlast}] suppress the \idx{postlinkhook} for all
\qt{other} (not main) elements and for the last element (so only the
main element will have its \idx{postlinkhook} as long as it's not the
last element);
\item[\optfmt{mainonly}] suppress the \idx{postlinkhook} for all
\qt{other} (not main) elements;
\item[\optfmt{othernotlast}] suppress the \idx{postlinkhook} for the
main element and for the last element (so only the other elements
will have their \idx{postlinkhook} as long as the element isn't the last
one);
\item[\optfmt{otheronly}] suppress the \idx{postlinkhook} for the main element.
\end{description}
\optiondef{mglsopt.mpostlink}
This setting determines whether or not to enable the multi-entry
post-link hook (see \sectionref{sec:mglspostlinkhook}). The value
may be one of:
\begin{description}
\item[\optfmt{false}] suppress the multi-entry post-link hook;
\item[\optfmt{true}] enable the multi-entry post-link hook;
\item[\optfmt{firstonly}] enable the multi-entry post-link hook
only for the \idx{mfirstuse} of the multi-entry;
\item[\optfmt{usedonly}] enable the multi-entry post-link hook
only for the \idx{msubsequentuse} of the multi-entry.
\end{description}
\optiondef{mglsopt.mpostlinkelement}
This setting indicates which
post-link hook should be used if the multi-entry post-link hook has
been enabled. Allowed values:
\begin{description}
\item[\optfmt{last}] use \gls{mglslastelementpostlinkhook} (that
is, use the \idx{postlinkhook} for the last element);
\item[\optfmt{main}] use \gls{mglslastmainpostlinkhook} (that
is, use the \idx{postlinkhook} for the main element);
\item[\optfmt{custom}] use \gls{mglscustompostlinkhook}.
\end{description}
\begin{warning}
Some combinations may cause a repeated hook.
\end{warning}
\subsection{Prefixes and Suffixes}
\label{sec:multiglsoptionsfixes}
See \sectionref{sec:mglsfixes} for more information on prefixes and
suffixes. Note that the prefixes and suffixes are not affected by
case-changing commands such as \gls{Mgls} or \gls{MGLS}.
If you want a prefix to obey case-changing, use the \gls{mpgls}-like
commands instead (see \sectionref{sec:mpgls}).
\optiondef{mglsopt.firstprefix}
The prefix to use on \idx{mfirstuse} of the multi-entry.
\optiondef{mglsopt.usedprefix}
The prefix to use on \idx{msubsequentuse} of the multi-entry.
\optiondef{mglsopt.firstsuffix}
The suffix to use on \idx{mfirstuse} of the multi-entry.
\optiondef{mglsopt.usedsuffix}
The suffix to use on \idx{msubsequentuse} of the multi-entry.
\subsection{Skipping Elements}
\label{sec:multiglsoptionsskip}
\begin{information}
The skip options apply to the multi-entry first use flag not the
individual element first use. See \sectionref{sec:mglsfirstuse}.
\end{information}
\optiondef{mglsopt.firstskipmain}
If \optfmt{true}, the main element will be omitted on (multi-entry)
\idx{mfirstuse}.
\optiondef{mglsopt.firstskipothers}
If \optfmt{true}, the other (non-main) elements will be omitted on
(multi-entry) \idx{mfirstuse}.
\optiondef{mglsopt.usedskipmain}
If \optfmt{true}, the main element will be omitted on (multi-entry)
\idx{msubsequentuse}.
\optiondef{mglsopt.usedskipothers}
If \optfmt{true}, the other (non-main) elements will be omitted on
(multi-entry) \idx{msubsequentuse}.
Note that it is technically possible to set the skip options so that
both the main and the other elements are skipped. However, by
default, this will generate a warning and only the final optional
argument (the \meta{insert}) will be displayed. There won't be a
loop over all elements so the commands set at each iteration, such
as \gls{mglscurrentlabel}, won't be defined.
The warning and the insertion of the \meta{insert} is done by:
\cmddef{glsxtrmglsWarnAllSkipped}
where \meta{message} is the warning message and \meta{cs} is the
control sequence that encapsulates the entire content (including
hyperlink and the \mglsopt{textformat} setting, if enabled).
If, for some particular reason, you want this scenario, you can
redefine this command to omit the warning.
\subsection{General}
\label{sec:multiglsoptionsgeneral}
\optiondef{mglsopt.multi.hyper}
This setting may take one of the following values:
\begin{description}
\item[\optfmt{none}] no hyperlinks;
\item[\optfmt{allmain}] encapsulate the entire content with
a single hyperlink to the main entry's target;
\item[\optfmt{mainonly}] only hyperlink the main entry;
\item[\optfmt{individual}] hyperlink each entry individually;
\item[\optfmt{otheronly}] only hyperlink the other entries;
\item[\optfmt{notmainfirst}] don't hyperlink the main entry on
\idxn{mfirstuse};
\item[\optfmt{nototherfirst}] don't hyperlink the other entries on
\idxn{mfirstuse};
\item[\optfmt{notfirst}] don't hyperlink any entries on
\idxn{mfirstuse}.
\end{description}
\optiondef{mglsopt.textformat}
This setting value should be the control sequence name (without the
leading backslash) of the command used to encapsulate the entire
content.
\optiondef{mglsopt.category}
The category to apply to the multi-entry. This is independent of the
categories of each of the elements. The default is no category. See
\sectionref{sec:multiglscategory}.
\optiondef{mglsopt.mglsopts}
Default options to pass to commands like \gls{mgls}.
Note that \mglsopt{setup} can't be used within this value.
\section{\glsfmtname{mgls} Options}
\label{sec:mglsopts}
The \meta{options} for \gls{mgls} (and similar commands) are listed below.
Any additional options provided will be appended to the \mglsopt{all}
value. For example:
\begin{codebox}
\gls{mgls}\oarg{\glsoptval{counter}{chapter}}\marg{cbot}
\end{codebox}
is equivalent to:
\begin{codebox}
\gls{mgls}\oarg{\mglsoptval{all}{\glsoptval{counter}{chapter}}}\marg{cbot}
\end{codebox}
Whereas:
\begin{codebox}
\gls{mgls}\oarg{\glsoptval{counter}{chapter},\mglsoptval{all}{\glsoptval{counter}{section}}}\marg{cbot}
\end{codebox}
is treated as:
\begin{codebox}
\gls{mgls}\oarg{\mglsoptval{all}{\glsoptval{counter}{section},\glsoptval{counter}{chapter}}}\marg{cbot}
\end{codebox}
which has the same effect as:
\begin{codebox}
\gls{mgls}\oarg{\mglsoptval{all}{\glsoptval{counter}{chapter}}}\marg{cbot}
\end{codebox}
\begin{information}
The descriptions below reference \gls{gls} which is used internally
by \gls{mgls}. Replace this with \gls{glspl} etc as applicable for the
variants, such as \gls{mglspl}.
\end{information}
\optiondef{mglsopt.setup}
The value should be a list of any options that can be passed to
\gls{multiglossaryentrysetup}. These options will override any
conflicting options that were supplied to \gls{multiglossaryentry}
or \gls{multiglossaryentrysetup}. Note that \mglsopt{mglsopts} can't be
used within this value.
\optiondef{mglsopt.all}
The value should be a list of any options that can be passed to
\gls{gls}. These options will be passed to each instance of
\gls{gls} and will override any conflicting setting in
\mglsopt{setup}.
\optiondef{mglsopt.main}
The value should be a list of any options that
can be passed to \gls{gls}. These options will be passed to the
instance of \gls{gls} used for the main label and will override any
conflicting setting in \mglsopt{all}.
\optiondef{mglsopt.others}
The value should be a list of any options that
can be passed to \gls{gls}. These options will be passed to each
instance of \gls{gls} used for the other (not main) labels and will
override any conflicting setting in \mglsopt{all}.
\optiondef{mglsopt.hyper}
A boolean option to determine whether or not to use hyperlinks (if
supported). This may cause a conflict with other options, but is
essentially provided to allow the starred version of \gls{mgls} to
switch off all hyperlinks.
\optiondef{mglsopt.multiunset}
This only applies to the \idx{mfirstuseflag}, described in
\sectionref{sec:mglsfirstuse}, not the \idxpl{firstuseflag} of the
elements. The value may be one of:
\begin{description}
\item \optfmt{global} globally unset the flag;
\item \optfmt{local} locally unset the flag;
\item \optfmt{none} don't unset the flag.
\end{description}
\optiondef{mglsopt.presetlocal}
A boolean option that governs whether or not the following options
should have a local or global effect.
\optiondef{mglsopt.resetall}
A boolean option to determine whether or not to reset all elements
\emph{before} using \gls{gls}. This option refers to the individual
entry's \idx{firstuseflag} not the \idx{mfirstuseflag}.
(This is similar to passing \glsopt{prereset} to each \gls{gls} but
it's also applied to any skipped elements.)
\optiondef{mglsopt.resetmain}
A boolean option to determine whether or not
to reset the main entry's \idx{firstuseflag} \emph{before} using
\gls{gls}.
\optiondef{mglsopt.resetothers}
A boolean option to determine whether or not to reset the
\idx{firstuseflag} of all the other (not main) elements
\emph{before} using \gls{gls}.
\optiondef{mglsopt.unsetall}
A boolean option to determine whether or not to unset all elements
\emph{before} using \gls{gls}. This option refers to the individual
entry's \idx{firstuseflag} not the \idx{mfirstuseflag}.
(This is similar to passing \glsopt{preunset} to each \gls{gls} but
it's also applied to any skipped elements.)
\optiondef{mglsopt.unsetmain}
A boolean option to determine whether or not
to unset the main entry's \idx{firstuseflag} \emph{before} using
\gls{gls}.
\optiondef{mglsopt.unsetothers}
A boolean option to determine whether or not to unset the
\idx{firstuseflag} of all the other (not main) elements
\emph{before} using \gls{gls}.
The \optfmt{reset\ldots} options all use:
\cmddef{mglselementreset}
The \optfmt{unset\ldots} options all use:
\cmddef{mglselementunset}
These take the \mglsopt{presetlocal} into account.
An alternative way of resetting the other elements is to use:
\cmddef{mglsunsetothers}
or for a local reset:
\cmddef{mglslocalunsetothers}
\section{Variants of \glsfmtname{mgls}}
\label{sec:mglslike}
The commands listed in this section all behave like \gls{mgls}. These
(including \gls{mgls} itself) are collectively referred to as the
\gls{mgls}-like commands. All commands unset the \idx{mfirstuseflag}
(unless the \mglsoptval{multiunset}{none} option is applied). Only
those commands that use the \idx{glslike} commands (such as \gls{gls}
or \gls{glspl}) will unset the individual entry's \idx{firstuseflag}.
\subsection{\glsfmtname{gls}-like}
\label{sec:mglsbasic}
\cmddef{mglspl}
This uses \gls{glspl} instead of \gls{gls} for each entry.
\cmddef{mglsmainpl}
This uses \gls{glspl} instead of \gls{gls} for the main entry and
\gls{gls} for all the other entries.
\cmddef{Mgls}
This uses \gls{Gls} for the first entry and \gls{gls} for the other
entries.
\cmddef{MGls}
This uses \gls{Gls} for all entries.
\cmddef{Mglspl}
This uses \gls{Glspl} for the first entry and \gls{glspl} for the
remaining entries.
\cmddef{Mglsmainpl}
The first entry uses the appropriate \idx{sentencecase} command. The
plural form is used for the main entry. So, if the first entry is
also the main entry, \gls{Glspl} is used, otherwise \gls{Gls} is
used. For the remaining entries, \gls{glspl} will be used if the
entry is the main one, otherwise \gls{gls} will be used.
\cmddef{MGlspl}
This uses \gls{Glspl} for all entries.
\cmddef{MGlsmainpl}
This uses \gls{Glspl} for the main entry and \gls{Gls} for the other entries.
\cmddef{MGLS}
This uses \gls{GLS} for all entries.
\cmddef{MGLSpl}
This uses \gls{GLSpl} instead of \gls{gls} for each entry.
\cmddef{MGLSmainpl}
This uses \gls{GLSpl} for the main entry and \gls{GLS} for the others.
\subsection{Abbreviations}
\label{sec:mglsabbrv}
\cmddef{mglsshort}
This will use \gls{glsxtrshort} for any entries that have the
\gloskey{short} field set and will use \gls{glstext} otherwise.
\cmddef{mglslong}
This will use \gls{glsxtrlong} for any entries that have the
\gloskey{long} field set and will use \gls{glstext} otherwise.
\cmddef{mglsfull}
This will use \gls{glsxtrfull} for any entries that have the
\gloskey{short} field set and will use \gls{glsfirst} otherwise.
\cmddef{Mglsshort}
As \gls{mglsshort} but \idx{sentencecase} for the first entry.
\cmddef{Mglslong}
As \gls{mglslong} but \idx{sentencecase} for the first entry.
\cmddef{Mglsfull}
As \gls{mglsfull} but \idx{sentencecase} for the first entry.
\subsection{Other Fields}
\label{sec:mglsotherfields}
\cmddef{mglsname}
This uses \gls{glsname} for each entry.
\cmddef{Mglsname}
This uses \gls{Glsname} for the first entry and \gls{glsname} for
the remaining entries.
\cmddef{MGlsname}
This uses \gls{Glsname} for each entry.
\cmddef{mglssymbol}
This uses \gls{glssymbol} for each entry if the \gloskey{symbol}
field has been set, otherwise it uses \gls{gls}.
\cmddef{MGlssymbol}
This uses \gls{glssymbol} if the \gloskey{symbol} field has been set
otherwise it uses \gls{Gls} for each element. (Note that no
\idx{casechange} is applied to the symbol as this usually isn't appropriate.)
\cmddef{Mglssymbol}
As \gls{MGlssymbol}, but \gls{Gls} is only used for the first element (if it
doesn't have the \gloskey{symbol} field set).
\cmddef{mglsusefield}
If the field given by \gls{mglsfield} exists for an element,
\gls{glsdisp} will be used for that element, with the \idx{linktext}
obtained from the field value (followed by the \meta{insert}),
otherwise \gls{gls} will be used.
\cmddef{mglsfield}
This command expands to the \idx{internalfieldlabel} required by
\gls{mglsusefield}. The default value is \code{useri}, which
corresponds to the \gloskey{user1} key.
\cmddef{Mglsusefield}
As \gls{mglsusefield} but \idx{sentencecase} for the first
element.
\cmddef{MGlsusefield}
As \gls{mglsusefield} but \idx{sentencecase} for each
element.
You can use the pre-element hook \gls{mglselementprehook} to locally
redefine \gls{mglsfield}. Examples:
\begin{enumerate}
\item if the multi-category is \qt{sample} then use the
\gloskey{user2} field otherwise use the \gloskey{user1} field:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{mglselementprehook}}\marg{\%
\cmd{ifdefstring}\marg{\gls{mglscurrentcategory}}\marg{sample}\%
\marg{\cmd{renewcommand}\marg{\gls{mglsfield}}\marg{userii}}\%
\marg{\cmd{renewcommand}\marg{\gls{mglsfield}}\marg{useri}}\%
}
\end{codebox}
\item if the element's category is \qt{sample} then use the
\gloskey{user2} field otherwise use the \gloskey{user1} field:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{mglselementprehook}}\marg{\%
\gls{glsifcategory}\marg{\gls{mglscurrentlabel}}\marg{sample}\%
\marg{\cmd{renewcommand}\marg{\gls{mglsfield}}\marg{userii}}\%
\marg{\cmd{renewcommand}\marg{\gls{mglsfield}}\marg{useri}}\%
}
\end{codebox}
\item if either the multi-entry's category or the element's category
has the custom attribute \qt{mglsfield} set then use it otherwise use
the \gloskey{user1} field:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{mglselementprehook}}\marg{\%
\gls{glshascategoryattribute}\marg{\gls{mglscurrentcategory}}\marg{mglsfield}\%
\marg{\cmd{renewcommand}\marg{\gls{mglsfield}}\marg{\gls{glsgetcategoryattribute}\marg{\gls{mglscurrentcategory}}\marg{mglsfield}}}\%
\marg{\%
\gls{glshasattribute}\marg{\gls{mglscurrentlabel}}\marg{mglsfield}\%
\marg{\cmd{renewcommand}\marg{\gls{mglsfield}}\marg{\gls{glsgetattribute}\marg{\gls{mglscurrentlabel}}\marg{mglsfield}}}\%
\marg{\cmd{renewcommand}\marg{\gls{mglsfield}}\marg{useri}}\%
}\%
}
\end{codebox}
\end{enumerate}
\subsection{Support for \glsfmtname{pkg.glossaries-prefix} (\glsfmtname{pgls})}
\label{sec:mpgls}
If you load the \sty{glossaries-prefix} package (either after
\sty{glossaries-extra}) or with the \opt{prefix} package
option, then the following commands will use one of the
\gls{pgls}-like commands provided by that package. (See the
\sty{glossaries} user manual for further details.)
If the \sty{glossaries-prefix} package hasn't been loaded then
\gls{gls} (or analogous case-changing variant) will be used instead
and a warning is issued with:
\cmddef{mpglsWarning}
This may be redefined to do nothing to remove the warning.
\cmddef{mpgls}
Uses \gls{pgls} for the first element and \gls{gls} for the remaining
elements.
\cmddef{mpglspl}
Uses \gls{pglspl} for the first element and \gls{glspl} for the remaining
elements.
\cmddef{mpglsmainpl}
Only uses the plural form for the main element. The first element
uses the prefixing command (\gls{pgls} or \gls{pglspl}, depending on
whether the first element is the main element).
\cmddef{Mpgls}
Uses \gls{Pgls} for the first element and \gls{gls} for the remaining
elements.
\cmddef{Mpglsmainpl}
Only uses the plural form for the main element. The first element
uses the \idx{sentencecase} prefixing command (\gls{Pgls} or
\gls{Pglspl}, depending on whether the first element is the main
element).
\cmddef{MPGls}
Uses \gls{Pgls} for the first element and \gls{Gls} for the remaining
elements.
\cmddef{MPGlspl}
Uses \gls{Pglspl} for the first element and \gls{Glspl} for the remaining
elements.
\cmddef{MPGlsmainpl}
Only uses the plural form for the main element. The first element
uses the prefixing command (\gls{Pgls} or \gls{Pglspl}, depending on
whether the first element is the main element). All elements are
use \idx{sentencecase}.
\cmddef{MPGLS}
Uses \gls{PGLS} for the first element and \gls{GLS} for the remaining
elements.
\cmddef{MPGLSpl}
Uses \gls{PGLSpl} for the first element and \gls{GLSpl} for the remaining
elements.
\cmddef{MPGLSmainpl}
Only uses the plural form for the main element. All elements are
converted to \idx{allcaps}. The first element uses the prefixing command
(\gls{PGLS} or \gls{PGLSpl}, depending on whether the first element is
the main element).
\section{Cross-References}
\label{sec:msee}
Multi-entry labels may be used in the cross-referencing keys
\gloskey{see} and \gloskey{seealso}. The formatting command will
use:
\cmddef{mglsseefirstitem}
for the first item in the list (if it's a multi-entry) and
\cmddef{mglsseeitem}
for any subsequent items that are multi-entries. The default
definition of \gls{mglsseeitem} is:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{mglsseeitem}}[1]\marg{\%
\gls{mglsname}\oarg{\mglsoptval{all}{noindex},\mglsoptvalm{setup}{hyper=allmain}}\marg{\#1}\%
}
\end{compactcodebox}
This switches off indexing, sets the hyperlink to encompass the
entire multi-entry content and uses the \gloskey{name} field.
The default definition of \gls{mglsseefirstitem} is simply
\gls{mglsseeitem}.
For example, to use the \gloskey{short} or \gloskey{text} fields:
\begin{compactcodebox}
\cmd{renewcommand}*\marg{\gls{mglsseeitem}}[1]\marg{\%
\gls{mglsshort}\oarg{\mglsoptval{all}{noindex},\mglsoptvalm{setup}{hyper=allmain}}\marg{\#1}\%
}
\end{compactcodebox}
A multi-entry label may also be used in the \gloskey{alias} key. The
hyperlink target will be the target for the main entry. For example:
\begin{codebox}
\gls{multiglossaryentry}\marg{cbot}\marg{clostridium,botulinum}
\gls{newglossaryentry}\marg{botox}\marg{\gloskeyval{name}{botox},\gloskeyval{description}{},\gloskeyval{alias}{cbot}}
\end{codebox}
In this case \code{\gls{gls}\marg{botox}} will hyperlink to the
\code{botulinum} target.
\begin{important}
Any multi-entries used in the cross-referencing keys must be defined
before the glossary is displayed. There is some support for
\optval{docdef}{true} but not for the other \opt{docdef} settings.
\end{important}
\section{Additional Commands}
\label{sec:multiextras}
You can test if a label represents a multi-entry using:
\cmddef{glsxtrifmulti}
This does \meta{true} if a multi-entry has been defined with
the label \meta{multi-label} otherwise it does \meta{false}.
\cmddef{glsxtrmultimain}
Expands to the main entry label for the multi-entry identified by
\meta{multi-label} or nothing if not defined.
\cmddef{glsxtrmultilist}
Expands to the list of element labels for the multi-entry identified by
\meta{multi-label} or nothing if not defined.
\cmddef{mglsforelements}
Iterates over all the list of element labels for the multi-entry identified by
\meta{multi-label}. This defines \meta{cs} to the current element label on each
iteration of the loop, which can be used to reference the label in
\meta{body}. This internally uses \gls{@for} (patched by the
\sty{xfor} package, which allows the loop to be broken).
\cmddef{mglsforotherelements}
As \gls{mglsforelements} but skips the main entry label.
\cmddef{glsxtrmultitotalelements}
Expands to the total number of elements in the given multi-entry or nothing if
\meta{multi-label} hasn't been defined.
\cmddef{glsxtrmultimainindex}
Expands to the index of the main element in the given multi-entry or nothing if
\meta{multi-label} hasn't been defined. Indexing starts from 1 for the first
element.
\cmddef{glsxtrmultilastotherindex}
Expands to the index of the final non-main element in the given
multi-entry or nothing if \meta{multi-label} hasn't been defined.
The \gls{multiglossaryentry} command will write the label information
to the \ext{aux} file using:
\cmddef{writemultiglossentry}
This is will write the following line to the \ext+{aux} file:
\cmddef{@glsxtr@multientry}
This is provided to support \optval{docdef}{true} and also
for the benefit of any tools that require the
information (such as \app{bib2gls} or autocompletion tools).
If it's not required and causes too much clutter, it can
be disabled by redefining \gls{writemultiglossentry} to do nothing.
\section{\glsfmtname{app.bib2gls}}
\label{sec:mbib2gls}
In the \app{bib2gls} v2.9+ user manual, these multi-entry sets are
referred to as \qt{compound entries} or \qt{compound sets} to
differentiate them from \app{bib2gls}['s] multi-entry types (such as
\atentry{dualentry}).
Each instance of one of the \gls{mgls}-like commands is written to
the \ext{aux} file and so can be picked up by \app{bib2gls}
(at least version 2.9). The \idx{resourceopt} can be used to
determine whether or not to consider the other (non-main) elements
to be dependent on the main element.
With \app{bib2gls}, you can either define the compound entries in
the document with \gls{multiglossaryentry} (or
\gls{providemultiglossaryentry}) or you can use the \atentry{compoundset}
entry type in a \ext{bib} file. Whichever method you use,
remember that the entries that form the elements of the set must be
defined first. See the \app{bib2gls} manual (v2.9+) for further details.
You can use the resource option \resourceopt{compound-adjust-name}
to replace the \gloskey{name} field of the main entry to:
\cmddef{glsxtrmultientryadjustedname}
where \meta{multi-label} is the label identifying the compound set,
\meta{name} was the value of the \gloskey{name} before adjustment,
\meta{sublist1} is the sub-list of other element labels
before the main element (empty if the main element is the first
element in the list), and \meta{sublist2} is the sub-list of
other elements after the main element (empty if the main label is
the final element).
This command is defined in \sty{glossaries-extra-bib2gls}, which is
automatically loaded with \opteqvalref{record}{only} and
\opteqvalref{record}{nameref}. Case-changing versions of this command are
also available.
\cmddef{Glsxtrmultientryadjustedname}
This is a \idx{sentencecase} version of
\gls{glsxtrmultientryadjustedname}.
\cmddef{GlsXtrmultientryadjustedname}
This is a \idx{titlecase} version of
\gls{glsxtrmultientryadjustedname}.
\cmddef{GLSxtrmultientryadjustedname}
This is an \idx{allcaps} version of
\gls{glsxtrmultientryadjustedname}.
Note that the above commands don't take the prefix or suffix into
account (see \sectionref{sec:mglsfixes}).
The separator between each element in the sub-lists is produced
with:
\cmddef{glsxtrmultientryadjustednamesep}
The default definition just uses \gls{glscombinedfirstsepfirst}.
The separator between the last element of \meta{sublist1} and the
main element is produced with:
\cmddef{glsxtrmultientryadjustednamepresep}
Similarly for the separator between the main element and the first
element of \meta{sublist2}:
\cmddef{glsxtrmultientryadjustednamepostsep}
These both default to \gls{glsxtrmultientryadjustednamesep}.
The \meta{name} is encapsulated with:
\cmddef{glsxtrmultientryadjustednamefmt}
This just does its argument by default.
If \meta{sublist1} is empty for the \idx{sentencecase}
version, then \meta{name} is encapsulated with:
\cmddef{Glsxtrmultientryadjustednamefmt}
This does \gls{makefirstuc}\marg{text} by default.
For the \idx{titlecase} version, the name is encapsulated with:
\cmddef{GlsXtrmultientryadjustednamefmt}
This uses \gls{glscapitalisewords}, if defined, or \gls{capitalisewords} otherwise.
The \idx{allcaps} version uses:
\cmddef{GLSxtrmultientryadjustednamefmt}
This uses \gls{mfirstucMakeUppercase} by default.
Each element label in the sub-lists is encapsulated with:
\cmddef{glsxtrmultientryadjustednameother}
This does \code{\gls{glsentryname}\margm{label}} by default.
For the \idx{sentencecase} version (where
\meta{sublist1} isn't empty), then the element label is encapsulated
with:
\cmddef{Glsxtrmultientryadjustednameother}
This does \code{\gls{Glsentryname}\margm{label}} by default.
The \idx{titlecase} version uses:
\cmddef{GlsXtrmultientryadjustednameother}
This does \code{\gls{glsentrytitlecase}\margm{label}\marg{name}} by
default. The \idx{allcaps} version uses:
\cmddef{GLSxtrmultientryadjustednameother}
This is defined as:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{GLSxtrmultientryadjustednameother}}[1]\marg{\%
\gls{mfirstucMakeUppercase}\marg{\gls{glsentryname}\marg{\#1}}}
\end{compactcodebox}
\chapter{Defining and Displaying Glossaries}
\label{sec:glossaries}
As with the base \sty{glossaries} package, you need to establish the
indexing method in the preamble and use the appropriate
\csmetafmt{print}{\ldots}{glossary} command. For example, to use the
\qt{noidx} method you need \gls{makenoidxglossaries} in the preamble
and \gls{printnoidxglossary} in the document. Whereas if you want to
use \app{makeindex} or \app{xindy}, you need \gls{makeglossaries} in
the preamble and \gls{printglossary} in the document. The
\sty{glossaries-extra} package provides a hybrid approach:
\cmddef{makeglossaries}
If the optional argument is present, then \meta{types} should be a
comma-separated list of \idx{glossary} labels that should be
processed by \app{makeindex} or \app{xindy} as per the normal
behaviour of \gls{makeglossaries}. Any non-\idxpl{ignoredglossary}
that are not listed in \meta{types} should be treated as though
\gls{makenoidxglossaries} was used. This means that the
\idxpl{glossary} listed in \meta{types} should be displayed using
\gls{printglossary} and the other (non-\idxpl{ignoredglossary})
should be displayed with \gls{printnoidxglossary}. See
\file{sample-mixedsort.tex} for an example.
If the optional argument is omitted, it will be treated as per the
original \gls{makeglossaries} provided by the base \sty{glossaries}
package. If the optional argument is present,
\gls{glsindexingsetting} will be set to \code{makeindex-noidx} or
\code{xindy-noidx}, depending on whether \app{makeindex} or
\app{xindy} should be used.
\begin{information}
\Idxpl{glossary} can't be defined after \gls{makeglossaries}. This
ensures that all the required \idx{indexing} files are opened.
If you're not using \gls{makeglossaries}, \idxpl{glossary} need to
be defined before any entries that should belong to them are
defined.
\end{information}
The base \sty{glossaries} package provides \gls{newignoredglossary}
to define an \idx{ignoredglossary} that doesn't have any associated
\idx{indexing} files. This will automatically switch off hyperlinks
for any entries assigned to the \idx{glossary} (since there will be
no target). With \sty{glossaries-extra}, it's possible to have
targets without using the \idx{indexing} methods provided by the
base package. For example, it's possible to have standalone entries
(see \sectionref{sec:glossentry}) or targets can be created with
\gls{printunsrtglossary}, so \sty{glossaries-extra} provides a
starred version.
\cmddef{newignoredglossary*}
This behaves like the unstarred version but doesn't disable
hyperlinks. The \idx{glossary} will still be omitted by iterative
commands, such as \gls{printunsrtglossaries}, and can't be used with
\gls{printglossary} or \gls{printnoidxglossary}. If you use an
\idx{ignoredglossary} with \gls{printunsrtglossary}, you will need
to use the \printglossopt{title} option to override the default
title, if required.
\cmddef{provideignoredglossary}
This is like \gls{newignoredglossary} but does nothing if the
\idx{glossary} has already been defined.
With the \idx{indexing} options provided by the base
\sty{glossaries} package, if you want a term to appear in more than
one \idx{glossary}, it's necessary to define a duplicate entry with
a different label. With the \idx{unsrtfam}, the same entry can
appear in multiple \idxpl{glossary}. This can be done by simply
copying the entry's label to the required \idx{glossary} using:
\cmddef{glsxtrcopytoglossary}
This just adds the label to the target \idx{glossary}['s] internal
comma-separated list that commands like \gls{printunsrtglossary}
iterate over. The unstarred version locally adds the label. The
starred version performs a global change.
\begin{warning}
\gls{glsxtrcopytoglossary} is not compatible with \opteqvalref{docdef}{true}.
\end{warning}
Note that the \gloskey{type} field will still be set to the original
\idx{glossary}. This is considered the entry's primary glossary.
There's no field that keeps track of the additional \idxpl{glossary}
the entry has been copied to.
If used with \gls{printglossary} or \gls{printnoidxglossary}, the
entry will only be \indexed\ for its primary \idx{glossary}. It
won't show up in the other \idxpl{glossary}, but will be found when
using an iterative command, such as \gls{glsaddall}, over the target
\idx{glossary}.
The base \sty{glossaries} package provides \gls{forallglossaries} to
iterate over a list of \idxpl{glossary} labels (all
non-\idxpl{ignoredglossary} by default). This can also be used with
\sty{glossaries-extra} but \gls{forallacronyms} is only for
\idxpl{glossary} that have been declared as lists of acronyms, so
it's inappropriate with the \sty{glossaries-extra} package. Instead,
you can use the analogous command:
\cmddef{forallabbreviationlists}
Each instance of \gls{newabbreviation} will add the abbreviation's
associated \idx{glossary} (identified by the \gloskey{type} key) to
the internal list of labels (if not already added). Note that this
won't take into account any \idxpl{glossary} that had
abbreviations copied or moved to it.
\section{Entry Page Reference}
\label{sec:glspageref}
The base \sty{glossaries} package provides \gls{glsrefentry}, which
uses \gls{ref} to reference the entry's associated counter
(enabled with \opt{entrycounter} or \opt{subentrycounter}, not the
\idx{locationcounter}). The
\sty{glossaries-extra} package additionally provides:
\cmddef{glsxtrpageref}
This works in the same way but uses \gls{pageref} instead of
\gls{ref}. As with \gls{glsrefentry}, if the corresponding counter
has not been enabled, this just does \code{\gls{gls}\margm{entry-label}}.
\section{Glossary Preamble}
\label{sec:glospreamble}
The base package provides \gls{glossarypreamble}, which is used at
the start of the \idx{glossary}. By default, this will use the preamble
associated with the current \idx{glossary}. If you redefine
\gls{glossarypreamble}, this will set the preamble for all
glossaries. To set the preamble for a particular glossary, you can
use \gls{setglossarypreamble}. With \sty{glossaries-extra}, you can
additionally append to an existing preamble using:
\cmddef{apptoglossarypreamble}
This (locally) appends \meta{text} to the preamble for the
\idx{glossary} identified by \meta{type}. If \meta{type} is omitted,
\gls{glsdefaulttype} is assumed.
\cmddef{pretoglossarypreamble}
This (locally) prepends \meta{text} to the preamble for the
\idx{glossary} identified by \meta{type}. If \meta{type} is omitted,
\gls{glsdefaulttype} is assumed.
\section{Options}
\label{sec:printglossopts}
In addition to the \idxc{printglossopt}{options} available with
\gls{printglossary}, the following options are also provided. Some
of these listed here are specific to \gls{printunsrtglossary} and
\env{printunsrtglossarywrap}. Options provided by the base package
that aren't available for the \idx{unsrtfam} are identified below.
\optiondef{printgloss.sort}
This option is only available for \gls{printnoidxglossary}. The
\gls{printunsrtglossary} and \gls{printunsrtinnerglossary} commands
simply iterate over the \idx{glossary}['s] internal list in the
order in which the entries have been added to that \idx{glossary}.
If you are using \app{bib2gls}, use the \resourceopt{sort} resource
option instead.
\optiondef{printgloss.title}
This option is provided by the base \sty{glossaries} package to
override the default title for the \idx{glossary}. This option
is also available for \gls{printunsrtglossary} and
\env{printunsrtglossarywrap} but not for
\gls{printunsrtinnerglossary}.
\optiondef{printgloss.toctitle}
This option is provided by the base \sty{glossaries} package to
override the default table of contents title for the \idx{glossary}. This option
is also available for \gls{printunsrtglossary} and
\env{printunsrtglossarywrap} but not for
\gls{printunsrtinnerglossary}.
\optiondef{printgloss.numberedsection}
This option is provided by the base \sty{glossaries} package to
indicate whether or not the section header used at the start of the
\idx{glossary} should be numbered rather than unnumbered (and
whether or not to automatically label the glossary with
\code{\gls+{label}\marg{\gls{glsautoprefix}\meta{glossary-type}}}). The
\opt{numberedsection} package option will change the default setting
to match. This option is not available for
\gls{printunsrtinnerglossary}.
\optiondef{printgloss.style}
This option is provided by the base \sty{glossaries} package to
set the \idx{glossarystyle}. This option is not
available for \gls{printunsrtinnerglossary}.
\optiondef{printgloss.label}
This option is provided by \sty{glossaries-extra} to add
\code{\gls+{label}\margm{label}} after the section header. This is
essentially like \optval{numberedsection}{nameref} but you supply
the label. This option is not available for
\gls{printunsrtinnerglossary}. Alternatively, you can use:
\cmddef*{glsxtrsetglossarylabel}
This will need to be scoped or
changed between \idxpl{glossary} or use a command in \meta{label}
that expands differently for each \idx{glossary} to avoid duplicate
labels.
\begin{information}
If the supplied value is empty, the label is suppressed (without
otherwise altering the \opt{numberedsection} setting).
\end{information}
\optiondef{printgloss.leveloffset}
This option sets or increments the \idx{hierarchicallevel} offset. If
\meta{offset} starts with \code{++} then the current offset is
incremented by the given amount otherwise the current offset is
set to \meta{offset}. For example, an entry with a normal
\gls{hierarchicallevel} of 1 will be treated as though it has
\gls{hierarchicallevel} $1+\meta{offset}$. Note that the
\idx{glossarystyle} may not support the resulting
\idx{hierarchicallevel}. This option is only available for the
\idx{unsrtfam} and the \env{printunsrtglossarywrap}
environment. See \sectionref{sec:printunsrtinner} for an example.
\optiondef{printgloss.flatten}
Treats all entries as though they have the same
\idx{hierarchicallevel} (the value of \printglossopt{leveloffset}). This option is only available for the
\idx{unsrtfam} and the \env{printunsrtglossarywrap}
environment. Unlike the \resourceopt{flatten} resource option, this
option doesn't actually remove the \gloskey{parent} field.
\optiondef{printgloss.groups}
This option is only applicable to the \idx{unsrtfam} and
\env{printunsrtglossarywrap}. If set to false, it will prevent
\idxpl{group} from being formed. If true (the default), \idxpl{group} will only be
formed if they are supported. See \sectionref{sec:printunsrt}
for further details.
\optiondef{printgloss.prefix}
This option is provided by \sty{glossaries-extra} and simply
redefines \gls{glolinkprefix} to expand to \meta{prefix}. If
hyperlinks are supported and the \idx{glossarystyle} uses
\gls{glstarget} to create the entry's hypertarget, the target name
is obtained from \code{\gls{glolinkprefix}\meta{entry-label}}. If
you are displaying multiple \idxpl{glossary} with shared entries (for
example, using the \resourceopt{secondary} resource option with
\app{bib2gls}), then changing the prefix can avoid duplicate targets.
Note that this option will also affect the targets used by the
\idx{glslike} and \idx{glstextlike} commands. This means that if you
have, for example, \gls{gls} in the description of an entry, then
its hyperlink will go to that entry's item in the current
\idx{glossary}. Whereas referencing that entry outside of the
\idx{glossary} will hyperlink to the \idx{glossary} that uses the prefix
matching the setting at that point in the document.
For example:
\begin{codebox}
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}
\cmd{usepackage}\oarg{\optval{showtargets}{annoteleft},\optval{style}{\glostyle{tree}}}\marg{glossaries-extra}
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},
\gloskeyval{description}{an example description that references \gls{gls}\marg{another}}}
\gls{newglossaryentry}\marg{another}\marg{\gloskeyval{name}{another},
\gloskeyval{description}{some other example description that references \gls{gls}\marg{sample}}}
\cbeg{document}
Link to glossary 1: \gls{gls}\marg{sample}.
\codepar
Link to glossary 2: \gls{gls}\oarg{\glsoptval{prefix}{other-}}\marg{sample}.
\gls{printunsrtglossary}
\gls{printunsrtglossary}\oarg{\printglossoptval{prefix}{other-}}
\cend{document}
\end{codebox}
This uses the \opt{showtargets} package option to show the target
names to the left of the hyperlink or hypertarget.
The result is:
\begin{resultbox}
\createexample*[title={Changing the target prefix},
label={ex:targetprefixes},
description={Example document that illustrates two glossaries with
different target prefixes}]
{\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}^^J%
\cmd{usepackage}\oarg{\optval{showtargets}{annoteleft},\optval{style}{\glostyle{tree}}}\marg{glossaries-extra}^^J%
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},^^J
\gloskeyval{description}{an example description that references \gls{gls}\marg{another}}}^^J%
\gls{newglossaryentry}\marg{another}\marg{\gloskeyval{name}{another},^^J
\gloskeyval{description}{some other example description that references \gls{gls}\marg{sample}}}
}{Link to glossary 1: \gls{gls}\marg{sample}.
\codepar
Link to glossary 2: \gls{gls}\oarg{\glsoptval{prefix}{other-}}\marg{sample}.^^J%
\gls{printunsrtglossary}^^J%
\gls{printunsrtglossary}\oarg{\printglossoptval{prefix}{other-}}
}
\end{resultbox}
Within the main part of the document, the first reference to
\qt{sample} has a hyperlink to the first \idx{glossary} (with the target
\code{glo:sample}, which uses the default prefix), and the second
reference has a hyperlink to the second \idx{glossary} (with the
target \code{other-sample}).
Within the \idxpl{glossary}, the \gls{gls} references use the
current \idx{glossary} prefix, so the target is in the same
\idx{glossary}.
\optiondef{printgloss.targetnameprefix}
This is similar to the previous option but only affects the prefix
for the entry item's target and doesn't change the prefix for any
references contained within the \idx{glossary}. This \emph{prepends} the
given prefix to the default prefix.
If the above example is modified to:
\begin{codebox}
Link to glossary 1: \gls{gls}\marg{sample}.
\codepar
Link to glossary 2: \gls{gls}\oarg{\glsoptval{prefix}{other-glo:}}\marg{sample}.
\gls{printunsrtglossary}
\gls{printunsrtglossary}\oarg{\printglossoptval{targetnameprefix}{other-}}
\end{codebox}
Then the result will be:
\begin{resultbox}
\createexample*[title={Prepending to the target prefix for just the entry
item},
label={ex:targetprefixname},
description={Example document that illustrates two glossaries with
different target prefixes using targetprefixname}]
{\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}^^J%
\cmd{usepackage}\oarg{\optval{showtargets}{annoteleft},\optval{style}{\glostyle{tree}}}\marg{glossaries-extra}^^J%
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},^^J
\gloskeyval{description}{an example description that references \gls{gls}\marg{another}}}^^J%
\gls{newglossaryentry}\marg{another}\marg{\gloskeyval{name}{another},^^J
\gloskeyval{description}{some other example description that references \gls{gls}\marg{sample}}}
}{Link to glossary 1: \gls{gls}\marg{sample}.
\codepar
Link to glossary 2: \gls{gls}\oarg{\glsoptval{prefix}{other-glo:}}\marg{sample}.^^J%
\gls{printunsrtglossary}^^J%
\gls{printunsrtglossary}\oarg{\printglossoptval{targetnameprefix}{other-}}
}
\end{resultbox}
Note that this has prepended \code{other-} to the existing
\code{glo:}\ prefix. This is why the \glsopt{prefix} option in
the second \gls{gls} reference had to be changed to match the
appropriate hypertarget name. The \gls{gls}
references in the second \idx{glossary} now point to the relevant
line in the first \idx{glossary}.
It's possible to combine \printglossopt{targetnameprefix} with
\printglossoptvalm{prefix}{} but that will also affect the \gls{gls}
references within the \idx{glossary}.
\optiondef{printgloss.target}
This is a boolean option that can be used to switch off the
automatic creation of the entry hypertargets but still allows
hyperlinks within the \idx{glossary}. This can be used to prevent
duplicate destinations for secondary \idxpl{glossary}.
\optiondef{printgloss.preamble}
Redefines \gls{glossarypreamble} to \meta{text}.
\optiondef{printgloss.postamble}
Redefines \gls{glossarypostamble} to \meta{text}.
\section{Displaying a Glossary Without Sorting or Indexing}
\label{sec:printunsrt}
The base \sty{glossaries} package provides two ways of displaying a
\idx{glossary}, depending on the \idx{indexing} option:
\gls{printglossary} (used with \gls{makeglossaries}) or
\gls{printnoidxglossary} (used with \gls{makenoidxglossaries}).
The \sty{glossaries-extra} package provides an alternative that
doesn't require sorting or \idx{indexing}.
\cmddef{printunsrtglossary}
This behaves in a similar way to \gls{printnoidxglossary}, but it
always lists all the defined entries for the given glossary in the
order in which they were added to the glossary. Unlike
\gls{printglossary}, you may use \gls{printunsrtglossary} with an
\idx{ignoredglossary}.
\begin{important}
The \idx{unsrtfam} and \env{printunsrtglossarywrap} are not intended
for use with \gls{makeglossaries} and \gls{makenoidxglossaries}.
Mixing these different methods can result in unexpected behaviour.
\end{important}
There is also a starred version which has a mandatory argument:
\cmddef{printunsrtglossary*}
This is equivalent to:
\begin{compactcodebox}
\cmd{begingroup}
\meta{init-code}\gls{printunsrtglossary}\oargm{options}
\cmd{endgroup}
\end{compactcodebox}
There's no significant difference between doing:
\begin{compactcodebox}
\marg{\meta{init-code}\gls{printunsrtglossary}\oargm{options}}
\end{compactcodebox}
and
\begin{compactcodebox}
\gls{printunsrtglossary*}\oargm{options}\margm{init-code}
\end{compactcodebox}
Note that unlike \gls{glossarypreamble}, the supplied \meta{init-code} is
done before the \idx{glossary} header.
\begin{important}
If you want to use one of the \env{tabular}-like
styles with \gls{printunsrtglossary}, make sure you load
\sty{glossaries-extra-stylemods} which modifies
the definition of \gls{glsgroupskip} to avoid the
\qt{Incomplete \csfmt{iftrue}} error that may otherwise occur.
\end{important}
As with \gls{printglossary} and \gls{printnoidxglossary}, there is
also a command to print all non-\idxpl{ignoredglossary} in the order
in which they were defined:
\cmddef{printunsrtglossaries}
This means you now have the option to simply list all entries on the
first \LaTeX\ run without the need for a post-processor, however
there will be no \idx{locationlist} in this case, as that has to be
set by a post-processor such as \app{bib2gls} (see
\sectionref{sec:bib2gls}).
\begin{warning}
No attempt is made to gather hierarchical elements.
If child entries aren't defined immediately after their parent
entry, they won't be together in the \idx{glossary} when using
\gls{printunsrtglossary}.
\end{warning}
The way that \gls{printunsrtglossary} basically works is to iterate
over every label in the \idx{glossary}['s] internal label list
and format each entry according to the way the \idx{glossarystyle}
would normally format the entry's \idx{hierarchicallevel} (described
in more detail in \sectionref{sec:printunsrtadvanced}).
If a change in letter group is detected, the letter group heading
and group skip will be inserted.
A label is appended to the \idx{glossary}['s] internal label list
whenever an entry is defined. This means that the list will normally
be in order of definition, but it's also possible to copy an entry's
label to another \idx{glossary}['s] internal label list using
\gls{glsxtrcopytoglossary}, which can be used to provide a different
order.
A simple example:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\oarg{\optval{style}{\glostyle{treegroup}}}\marg{glossaries-extra}
\gls{newglossaryentry}\marg{ant}\marg{\gloskeyval{name}{ant},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{gazelle}\marg{\gloskeyval{name}{gazelle},\gloskeyval{description}{}}
\cbeg{document}
\gls{printunsrtglossary}
\cend{document}
\end{codebox}
The document build only requires one \LaTeX\ call in this case.
\begin{resultbox}
\createexample*[title={Displaying unsorted glossaries},
label={ex:printunsrt},
description={Example document that doesn't require any external indexing}]
{\cmd{usepackage}\oarg{\optval{style}{\glostyle{treegroup}}}\marg{glossaries-extra}^^J%
\gls{newglossaryentry}\marg{ant}\marg{\gloskeyval{name}{ant},\gloskeyval{description}{}}^^J%
\gls{newglossaryentry}\marg{gazelle}\marg{\gloskeyval{name}{gazelle},\gloskeyval{description}{}}^^J%
}{\gls{printunsrtglossary}}
\end{resultbox}
Note the difference if the \opt{stylemods} option is used:
\begin{codebox}
\cmd{usepackage}\oarg{\opt{stylemods},\optval{style}{\glostyle{treegroup}}}\marg{glossaries-extra}
\end{codebox}
\begin{resultbox}
\createexample*[title={Displaying unsorted glossaries with \optfmt{stylemods}},
label={ex:printunsrtstylemods},
description={Example document that doesn't require any external
indexing using the stylemods option}]
{\cmd{usepackage}\oarg{\opt{stylemods},\optval{style}{\glostyle{treegroup}}}\marg{glossaries-extra}^^J%
\gls{newglossaryentry}\marg{ant}\marg{\gloskeyval{name}{ant},\gloskeyval{description}{}}^^J%
\gls{newglossaryentry}\marg{gazelle}\marg{\gloskeyval{name}{gazelle},\gloskeyval{description}{}}^^J%
}{\gls{printunsrtglossary}}
\end{resultbox}
In this case, the \idx{group} headings are now numbers instead of
letters. The styles provided with \sty{glossaries-extra} and those
modified by \sty{glossaries-extra-stylemods} are designed to assist integration
with \app{bib2gls}. Without these modifications,
\gls{printunsrtglossary} behaves like the less sophisticated
\gls{printnoidxglossary} which checks if the label is an integer
less than 256 and uses \gls{char} to create the title (if no title
has been provided).
If you really want to use \gls{printunsrtglossary} without
\app{bib2gls} and you want letter \idxpl{group} with
\opt{stylemods} without having to define all the titles, you can use:
\cmddef{glsxtrnoidxgroups}
which will switch over to using the group titling method used with
\gls{printnoidxglossary} (which only supports \idx{ascii}). This
command is only available with \opteqvalref{record}{off} and can't
be used with \gls{makeglossaries}.
If, conversely, you don't want any \idxpl{group} formed, regardless
of the \idx{glossarystyle}, you can disable them with
\printglossoptval{groups}{false}.
The above example can be modified so that the document contains:
\begin{codebox}
\gls{printunsrtglossary}\oarg{\printglossoptvalm{title}{Glossary 1}}
\gls{glsxtrnoidxgroups}
\gls{printunsrtglossary}\oarg{\printglossoptvalm{title}{Glossary 2}}
\gls{printunsrtglossary}\oarg{\printglossoptval{groups}{false},\printglossoptvalm{title}{Glossary 3}}
\gls{printunsrtglossary}\oarg{\printglossoptval{style}{tree},\printglossopt{nogroupskip},\printglossoptvalm{title}{Glossary 4}}
\end{codebox}
This repeats the same \idx{glossary}. The first is the same as the
previous example. The second is the same as the example that didn't
use \opt{stylemods}. The final two \idxpl{glossary} have the
\idxpl{group} suppressed. Using \printglossoptval{groups}{false}
(Glossary~3) is more efficient than using
\printglossopt{nogroupskip} and switching to a style that doesn't
show the header (Glossary~4).
I've also switched to two column mode to display the result in a
more compact form. The first two glossaries are shown on the left
and the last two are on the right:
\begin{resultbox}
\createexample*[title={Displaying unsorted glossaries with different
group settings},
label={ex:printunsrtgroup},
description={Example document that doesn't require any external
indexing with different group settings}]
{\cmd{usepackage}\oarg{\opt{stylemods},\optval{style}{\glostyle{treegroup}}}\marg{glossaries-extra}^^J%
\gls{newglossaryentry}\marg{ant}\marg{\gloskeyval{name}{ant},\gloskeyval{description}{}}^^J%
\gls{newglossaryentry}\marg{gazelle}\marg{\gloskeyval{name}{gazelle},\gloskeyval{description}{}}^^J%
}{\cmd{twocolumn}\gls{printunsrtglossary}\oarg{title=\marg{Glossary 1}}^^J%
\gls{glsxtrnoidxgroups}^^J%
\gls{printunsrtglossary}\oarg{title=\marg{Glossary 2}}^^J%
\cmd{newpage}
\gls{printunsrtglossary}\oarg{\printglossoptval{groups}{false},title=\marg{Glossary 3}}^^J%
\gls{printunsrtglossary}\oarg{\printglossoptval{style}{tree},\printglossopt{nogroupskip},title=\marg{Glossary 4}}
}
\end{resultbox}
The \idx{unsrtfam} were designed for use with \app{bib2gls},
which uses more complex alphanumeric \idx{group} labels to allow for greater
customization and to avoid conflict where there are multiple
\idxpl{glossary} or \idxpl{hierarchicallevel} with potentially the
same letter \idxpl{group}.
The way that \app{bib2gls} works is to select entries from a
\ext{bib} file, according to the document requirements, sort the
entries, and then write the entry definitions
(with commands like \gls{longnewglossaryentry*} or
\gls{newabbreviation}) in the \ext{glstex} in the desired order,
which is then input by \gls{GlsXtrLoadResources}.
This means that \gls{printunsrtglossary} will display the
entries in that order since, from \sty{glossaries-extra}['s] point
of view, that's the order of definition.
While it is possible to use \gls{printunsrtglossary} without
\app{bib2gls}, as in the above example, for long or complex
\idxpl{glossary} it's better to use \app{bib2gls} which can
automatically assign appropriate titles to the \idxpl{group}.
\Idxpl{group} and hierarchy are discussed in more detail in
\sectionref{sec:printunsrtgroups}. See
\sectionref{sec:printunsrtlocations} for \idxpl{locationlist} and
\sectionref{sec:printunsrtinner}. Advanced commands and further
detail about the way \gls{printunsrtglossary} works are covered in
\sectionref{sec:printunsrtadvanced}.
\subsection{Groups and Hierarchy}
\label{sec:printunsrtgroups}
\begin{information}
See \gallerypage{logicaldivisions}{Gallery: Logical Glossary Divisions
(type vs group vs parent)} for the difference between the
\gloskey{group}, \gloskey{type} and \gloskey{parent} fields.
\end{information}
Here's a longer example that uses \opt{stylemods} to
automatically load \sty{glossary-bookindex}:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\oarg{\optval{stylemods}{bookindex},\optval{style}{\glostyle{bookindex}}}\marg{glossaries-extra}
\gls{newglossaryentry}\marg{waterfowl}\marg{\gloskeyval{name}{waterfowl},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{ant}\marg{\gloskeyval{name}{ant},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{adder}\marg{\gloskeyval{name}{adder},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{duck}\marg{\gloskeyval{name}{duck},\gloskeyval{parent}{waterfowl},
\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{zebra}\marg{\gloskeyval{name}{zebra},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{aardvark}\marg{\gloskeyval{name}{aardvark},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{gazelle}\marg{\gloskeyval{name}{gazelle},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{mallard}\marg{\gloskeyval{name}{mallard},\gloskeyval{parent}{duck},
\gloskeyval{description}{}}
\codepar
\gls{newglossary*}\marg{another}\marg{Another Glossary}
\gls{glsxtrcopytoglossary}\marg{mallard}\marg{another}
\gls{glsxtrcopytoglossary}\marg{aardvark}\marg{another}
\gls{glsxtrcopytoglossary}\marg{zebra}\marg{another}
\gls{glsxtrcopytoglossary}\marg{ant}\marg{another}
\gls{glsxtrcopytoglossary}\marg{duck}\marg{another}
\cbeg{document}
\gls{printunsrtglossary}
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{another}}
\cend{document}
\end{codebox}
Unlike the previous examples that defined the entries in
alphabetical order, this example hasn't used any logical order.
Note, in particular, that the child entries \qt{duck} and
\qt{mallard} (which have the \gloskey{parent} key set) have not been
defined immediately after their parent.
The first \gls{printunsrtglossary} has the default
\printglossoptval{type}{main} and lists all entries defined in the
\code{main} \idx{glossary}, in the order in which they were defined. The
second \gls{printunsrtglossary} lists all entries in the custom
\code{another} \idx{glossary} and is in the order in which the
entries were copied to that \idx{glossary}.
The document build again simply requires one \LaTeX\ call. The
result is shown in \exampleref{ex:unsrtcopygrp}.
\begin{resultbox}[float]
\createexample*[label={ex:unsrtcopygrp},
title={Displaying unsorted glossaries with a copied list},
description={Example document that doesn't require any external
indexing that copies entries to another glossary. Entries are listed
in order of definition with child entries indented, that results in a
confusing list}]
{\cmd{usepackage}\oarg{\optval{stylemods}{bookindex},\optval{style}{\glostyle{bookindex}}}\marg{glossaries-extra}^^J%
\gls{newglossaryentry}\marg{waterfowl}\marg{\gloskeyval{name}{waterfowl},\gloskeyval{description}{}}^^J%
\gls{newglossaryentry}\marg{ant}\marg{\gloskeyval{name}{ant},\gloskeyval{description}{}}^^J%
\gls{newglossaryentry}\marg{adder}\marg{\gloskeyval{name}{adder},\gloskeyval{description}{}}^^J%
\gls{newglossaryentry}\marg{duck}\marg{\gloskeyval{name}{duck},\gloskeyval{parent}{waterfowl},\gloskeyval{description}{}}^^J%
\gls{newglossaryentry}\marg{zebra}\marg{\gloskeyval{name}{zebra},\gloskeyval{description}{}}^^J%
\gls{newglossaryentry}\marg{aardvark}\marg{\gloskeyval{name}{aardvark},\gloskeyval{description}{}}^^J%
\gls{newglossaryentry}\marg{gazelle}\marg{\gloskeyval{name}{gazelle},\gloskeyval{description}{}}^^J%
\gls{newglossaryentry}\marg{mallard}\marg{\gloskeyval{name}{mallard},\gloskeyval{parent}{duck},\gloskeyval{description}{}}^^J%
\codepar
\gls{newglossary*}\marg{another}\marg{Another Glossary}^^J%
\gls{glsxtrcopytoglossary}\marg{mallard}\marg{another}^^J%
\gls{glsxtrcopytoglossary}\marg{aardvark}\marg{another}^^J%
\gls{glsxtrcopytoglossary}\marg{zebra}\marg{another}^^J%
\gls{glsxtrcopytoglossary}\marg{ant}\marg{another}^^J%
\gls{glsxtrcopytoglossary}\marg{duck}\marg{another}
}{\gls{printunsrtglossary}^^J%
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{another}}
}
\end{resultbox}
There are some oddities in both lists. It's the \idx{glossarystyle}
that determines the formatting of the entries according to the
entry's \gls{hierarchicallevel}, but it looks strange for the duck
and mallard entries to be indented when they don't follow after
their parent entry.
As the internal loop within \gls{printunsrtglossary} iterates over
each entry, it tries to determine which \idxc{group}{letter group}
the entry belongs to. If it's different from the \idx{group} for the
previous entry (in the same hierarchical level), a \idx{group} header is
added (which may or may not be displayed, depending on the
\idx{glossarystyle}). This means than an unordered list of entries, such as in the
above example, may contain repeated headers.
The way that the \idx{group} is determined depends on whether or not
the \gloskey{group} key has been defined. If it isn't defined (the
default), then the \idx{group} label is obtained from the
\idx{uppercase} character code of the first token of the
\gloskey{sort} key. If the token doesn't have an \idx{uppercase}
character code (indicating that it's not a letter) or if the sort
value is empty then the label will be set to \code{glssymbols}
(which corresponds to the symbol \idx{group}). This is the same way
that \gls{printnoidxglossary} inserts \idxpl{group}.
Remember that if the \gloskey{sort} key hasn't been set, it will be
assigned automatically to the same value as the \gloskey{name} key
(or with \optval{sort}{use} or \optval{sort}{def} to a numerical
value). The \gloskey{sort} key will be empty if you use
\optval{sort}{clear}. The \optval{sort}{none} setting simply skips
the pre-processing of the \gloskey{sort} key (such as sanitizing).
For example, the ant entry doesn't explicitly use the \gloskey{sort}
key, so the sort value is obtained from the \gloskey{name} key,
which is set to \code{ant}. The first token is \qt{a}, which is a
letter. The \idx{group}['s] label is obtained from the letter's
\idx{uppercase} character decimal code (65). There's no associated
title (which can be assigned with \gls{glsxtrsetgrouptitle}), so the
title is simply \qt{65} (with \opt{stylemods}, see earlier) or
\qt{A} (without \opt{stylemods} or with \gls{glsxtrnoidxgroups}).
The ant entry is followed by \qt{adder}. The same process determines
that the \qt{adder} \idx{group} label is also 65. There's no
change in the \idx{group} label from the previous entry (ant) so no
header is inserted.
By default, this \idx{group} check is omitted for child entries, which is
why no group header is inserted before duck or mallard. So the next
entry to be checked for a \idx{group} is the zebra entry, which has
the group label 90 (the decimal code for \qt{Z}). Again there's no
title associated with that label so the title is simply the label.
The zebra entry is followed by aardvark which, following the same
process, has the \idx{group} label 65. This is different from
the previous group label (90) so a group header is inserted.
This is why there are two \qt{90} letter \idxpl{group}.
\begin{important}
The \idx{unsrtfam} don't order the entries.
\end{important}
If the \gloskey{group} key has been defined (which is the case with
\opteqvalref{record}{only} and \opteqvalref{record}{nameref}) then
the \idx{group} \emph{label} is obtained from the \gloskey{group}
field. If the \gloskey{group} field is defined but empty then the
entry will belong to the empty group. The value of the
\gloskey{sort} field is now irrelevant.
So, simply adding the \opt{record} option to the above example document will
cause the group headers to disappear. This is because the
\gloskey{group} key will now be defined but is empty for each entry.
Even with a style like \glostyle{bookindex}, there won't be any
\idx{group} headers.
Provided the \gloskey{group} key has been defined, the field used to
store the \idx{group} label is given by:
\cmddef{glsxtrgroupfield}
This expands to \code{group}, by default. However it's possible to
use a different field in which to store the group label, in which
case \gls{glsxtrgroupfield} will need to be redefined.
For example:
\begin{codebox}
\marg{\gls{renewcommand}\marg{\gls{glsxtrgroupfield}}\marg{othergroup}\gls{printunsrtglossary}}
\end{codebox}
or
\begin{codebox}
\gls{printunsrtglossary*}\marg{\gls{renewcommand}\marg{\gls{glsxtrgroupfield}}\marg{othergroup}}
\end{codebox}
(but this still requires the \gloskey{group} key to be defined, even
if it's not being used to store the \idx{group} label). With
\app{bib2gls}, the \resourceopt{secondary} resource option (combined with
\switch{group}) will store the \idx{group} label obtained from the
secondary sort in the \glosfield{secondarygroup} field and adds the redefinition of
\gls{glsxtrgroupfield} to the associated \idx{glossary} preamble.
This prevents it from clashing with the \gloskey{group} field in
the event that the secondary sort method has produced a different
set of \idxpl{group} (which is likely).
The follow example document uses \opt{record} to create the
\gloskey{group} key and assigns \idx{group} labels with associated
titles. Note that the \glosfield{secondarygroup} field doesn't have
an associated key, so it needs to be set with a field assignment
command, such as \gls{GlsXtrSetField}.
\newcommand*{\examplegroupsdefs}{%
\gls{glsxtrsetgrouptitle}\marg{group1label}\marg{Group 1}\newline
\gls{glsxtrsetgrouptitle}\marg{group2label}\marg{Group 2}\newline
\gls{glsxtrsetgrouptitle}\marg{group3label}\marg{Group 3}\newline
\gls{glsxtrsetgrouptitle}\marg{group4label}\marg{Group 4}\newline
\codepar
\gls{newglossaryentry}\marg{waterfowl}\marg{\gloskeyval{name}{waterfowl},\gloskeyval{description}{},\newline\space
\gloskeyval{group}{group1label}}\newline
\gls{newglossaryentry}\marg{ant}\marg{\gloskeyval{name}{ant},\gloskeyval{description}{},\newline\space
\gloskeyval{group}{group1label}}\newline
\gls{GlsXtrSetField}\marg{ant}\marg{\glosfield{secondarygroup}}\marg{group4label}\newline
\gls{newglossaryentry}\marg{adder}\marg{\gloskeyval{name}{adder},\gloskeyval{description}{},\newline\space
\gloskeyval{group}{group2label}}\newline
\gls{newglossaryentry}\marg{duck}\marg{\gloskeyval{name}{duck},\gloskeyval{parent}{waterfowl},\newline\space
\gloskeyval{description}{},\gloskeyval{group}{group4label}}\newline
\gls{GlsXtrSetField}\marg{duck}\marg{\glosfield{secondarygroup}}\marg{group2label}\newline
\gls{newglossaryentry}\marg{zebra}\marg{\gloskeyval{name}{zebra},\gloskeyval{description}{},\newline\space
\gloskeyval{group}{group2label}}\newline
\gls{GlsXtrSetField}\marg{zebra}\marg{\glosfield{secondarygroup}}\marg{group3label}\newline
\gls{newglossaryentry}\marg{aardvark}\marg{\gloskeyval{name}{aardvark},\gloskeyval{description}{},\newline\space
\gloskeyval{group}{group2label}}\newline
\gls{GlsXtrSetField}\marg{aardvark}\marg{\glosfield{secondarygroup}}\marg{group1label}\newline
\gls{newglossaryentry}\marg{gazelle}\marg{\gloskeyval{name}{gazelle},\gloskeyval{description}{},\newline\space
\gloskeyval{group}{group1label}}\newline
\gls{newglossaryentry}\marg{mallard}\marg{\gloskeyval{name}{mallard},\gloskeyval{parent}{duck},\newline\space
\gloskeyval{description}{},\gloskeyval{group}{group2label}}
\gls{GlsXtrSetField}\marg{mallard}\marg{\glosfield{secondarygroup}}\marg{group3label}\newline
\codepar
\gls{newglossary*}\marg{another}\marg{Another Glossary}\newline
\gls{glsxtrcopytoglossary}\marg{mallard}\marg{another}\newline
\gls{glsxtrcopytoglossary}\marg{aardvark}\marg{another}\newline
\gls{glsxtrcopytoglossary}\marg{zebra}\marg{another}\newline
\gls{glsxtrcopytoglossary}\marg{ant}\marg{another}\newline
\gls{glsxtrcopytoglossary}\marg{duck}\marg{another}\newline
\gls{setglossarypreamble}\oarg{another}\marg{\cmd{renewcommand}\marg{\gls{glsxtrgroupfield}}\marg{secondarygroup}}
}
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\oarg{\opt{record},\optval{stylemods}{bookindex},\optval{style}{\glostyle{bookindex}}}\marg{glossaries-extra}
\codepar
\examplegroupsdefs
\cbeg{document}
\gls{printunsrtglossary}
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{another}}
\cend{document}
\end{codebox}
This is essentially mimicking the way that the
\resourceopt{secondary} resource option sets the
\glosfield{secondarygroup} field and adds the redefinition of
\gls{glsxtrgroupfield} to the secondary \idx{glossary}['s] preamble.
(Although in this case, there's no logical order.)
The result is shown in \exampleref{ex:unsrtcustomgrp}.
\begin{resultbox}[float]
\createexample*[label={ex:unsrtcustomgrp},
title={Displaying unsorted glossaries with custom groups},
description={Example document that doesn't require any external
indexing and has the group labels explicitly set}]
{\cmd{usepackage}\oarg{\opt{record},\optval{stylemods}{bookindex},\optval{style}{\glostyle{bookindex}}}\marg{glossaries-extra}^^J%
\codepar
\examplegroupsdefs
}{\gls{printunsrtglossary}^^J%
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{another}}
}
\end{resultbox}
Note that even though the duck and mallard entries have the
\gloskey{group} and \glosfield{secondarygroup} fields set, there's
no group title for them in either \idx{glossary} because they are
child entries.
\cmddef{glsxtraddgroup}
This command will perform \meta{code} if the entry identified by
\meta{entry-label} should have \idx{group} support (provided the
\gloskey{group} field has been set). The default
definition is:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{glsxtraddgroup}}[2]\marg{\%
\gls{ifglsxtrprintglossflatten}
\#2\%
\cmd{else}
\gls{ifglshasparent}\marg{\#1}\marg{}\marg{\#2}\%
\cmd{fi}
}
\end{compactcodebox}
This means that only entries that don't have a parent (with
\printglossoptval{flatten}{false}) or any entry
(with \printglossoptval{flatten}{true}) will have the
\idx{group} check performed. With \app{bib2gls}, the
\resourceopt{group-level} will redefine \gls{glsxtraddgroup} to
always do \meta{code}, which means that all entries will have the
\idx{group} check performed.
\begin{important}
If no group label has been provided no header will be added.
\end{important}
The following hook is used just before the header information is
appended:
\cmddef{printunsrtglossarygrouphook}
The argument is the internal command used to build the group header
(which will then be appended to main internal command containing the
glossary code). This
hook may be redefined to insert any additional code before the
heading.
Use \code{\gls{preto}\#1\margm{content}} if you want to insert
\meta{content} before the header and \code{\gls{appto}\#1\margm{content}}
if you want to insert \meta{content} after the header.
(You can reference the entry label with \gls{glscurrententrylabel} and the
current \idx{hierarchicallevel} with \gls{glscurrententrylevel} but
make sure they are expanded if they occur in \meta{content}.) For example,
\gls{printunsrttable} redefines this hook to finish off the current
row before the \idx{group} header is added.
The above document can be modified to show the sub-\idx{group}
headings:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsxtraddgroup}}[2]\marg{\#2}
\gls{printunsrtglossary}
\cmd{renewcommand}*\marg{\gls{glsxtraddgroup}}[2]\marg{\%
\cmd{ifnum}\gls{glscurrententrylevel}<2 \#2\cmd{fi}}
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{another}}
\end{codebox}
The result is shown in \exampleref{ex:unsrtcustomsubgrp}.
\begin{resultbox}[float]
\createexample*[label={ex:unsrtcustomsubgrp},
title={Displaying unsorted glossaries with custom groups and sub-group headings},
description={Example document that doesn't require any external
indexing and has the group labels explicitly set with sub-group
headings}]
{\cmd{usepackage}\oarg{\opt{record},\optval{stylemods}{bookindex},\optval{style}{\glostyle{bookindex}}}\marg{glossaries-extra}^^J%
\codepar
\examplegroupsdefs
}{\cmd{renewcommand}*\marg{\gls{glsxtraddgroup}}[2]\marg{\#2}^^J%
\gls{printunsrtglossary}^^J%
\cmd{renewcommand}*\marg{\gls{glsxtraddgroup}}[2]\marg{\%^^J
\cmd{ifnum}\gls{glscurrententrylevel}<2 \#2\cmd{fi}^^J%
}^^J%
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{another}}
}
\end{resultbox}
Note that the mallard entry (which has \idx{hierarchicallevel}~2) has its
group shown in the first \idx{glossary} (where the group is formed
for all levels) but not in the second \idx{glossary} (where the
redefinition of \gls{glsxtraddgroup} restricts \idx{group} formation to
just level~0 and level~1).
There's a small visual distinction between the \idx{group} titles in
different \idxpl{hierarchicallevel} in the above. The top-level
(level~0) groups have the title centred, whereas the sub-groups have
their titles indented by the same amount as the corresponding
sub-entries. This is due to the \idx{glossarystyle}. Other styles
may use the same formatting for all \idxpl{hierarchicallevel}.
The \idxpl{glossarystyle} provided with \sty{glossaries-extra} and
the base styles patched by \sty{glossaries-extra-stylemods} all
redefine:
\cmddef{glssubgroupheading}
to format the sub-group headings in a manner applicable to the style.
For example, styles that don't show sub-entry names typically
redefine this command to do nothing.
A default definition that simply does
\code{\gls{glsgroupheading}\margm{group-label}} is automatically
initialised by \gls{setglossarystyle} (via
\gls{glsxtrpreglossarystyle}) to allow for styles that don't
redefine this command. The first two arguments refer to the
\idx{hierarchicallevel}, where \meta{previous level} is the level of
the previous \idx{group} and \meta{level} is the level of this new
sub-\idx{group}. The \meta{parent-label} is the label of the current
entry's parent, where the current entry is the first entry of the
sub-\idx{group} that immediately follows the heading.
The \glostyle{bookindex} style defines \gls{glssubgroupheading} to
use the style's associated command
\gls{glsxtrbookindexformatsubheader}. This can be redefined as
required. For example, the following uses the parent entry's
hierarchical information:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsxtrbookindexformatsubheader}}[5]\marg{\%
\cmd{ifnum}\#2>1\gls{relax}
\gls{glstreesubsubitem}\gls{glstreegroupheaderfmt}\marg{\gls{GlsXtrhiername}\marg{\#3} / \#5}\%
\cmd{else}
\gls{glstreesubitem}\gls{glstreegroupheaderfmt}\marg{\gls{GlsXtrhiername}\marg{\#3} / \#5}\%
\cmd{fi}
}
\end{codebox}
The above examples are contrived and demonstrate the need to define
entries in a sensible order to achieve a sensible \idx{glossary}
with \gls{printunsrtglossary}. If you want to use this approach to
display a \idx{glossary}, you would need to make sure that you
take care with the order that you define entries. This can be quite
tedious for a large number of entries.
To switch to \app{bib2gls}, the entry data needs to be provided in a
\ext{bib} file. For example, the file \filefmt{animalfamilies.bib} might
contain:
\newcommand*{\examplegroupsbibdefs}{%
\atentry{index}\marg{waterfowl,\gloskeyval{user1}{Anseriformes}}\newline
\atentry{index}\marg{ant,\gloskeyval{user1}{Formicidae}}\newline
\atentry{index}\marg{adder,\gloskeyval{user1}{Vipera berus}}\newline
\atentry{index}\marg{duck,\gloskeyval{parent}{waterfowl},\gloskeyval{user1}{Anatidae}}\newline
\atentry{index}\marg{zebra,\gloskeyval{user1}{Hippotigris}}\newline
\atentry{index}\marg{aardvark,\gloskeyval{user1}{Orycteropus
afer}}\newline
\atentry{index}\marg{gazelle,\gloskeyval{user1}{Gazella}}\newline
\atentry{index}\marg{mallard,\gloskeyval{parent}{duck},\gloskeyval{user1}{Anas platyrhynchos}}
}
\begin{codebox}
\examplegroupsbibdefs
\end{codebox}
I've included some additional information stored in the
\gloskey{user1} field that wasn't in the earlier examples. The
document needs to use the \opt{record} option and
\gls{GlsXtrLoadResources} in order for it to work properly with
\app{bib2gls}:
\begin{codebox}
\cmd{usepackage}\oarg{\opt{record},\optval{stylemods}{bookindex},\optval{style}{bookindex}}
\marg{glossaries-extra}
\gls{newglossary*}\marg{another}\marg{Another Glossary}
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{selection}{all},\comment{select all entries}
\resourceoptvalm{src}{animalfamilies},\comment{identify bib file(s)}
\resourceoptval{sort}{en-GB},\comment{sort method}
\resourceoptvalm{secondary}{la:user1:another}\comment{sort again and copy to `another'}
}
\gls{glsdefpostname}\marg{\cat{index}}\marg{
(\cmd{emph}\marg{\gls{glsentryuseri}\marg{\gls{glscurrententrylabel}}})}
\cbeg{document}
\gls{printunsrtglossary}
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{another}}
\cend{document}
\end{codebox}
If this code is saved in the file \filefmt{myDoc.tex} then the build
process is now:
\begin{terminal}
pdflatex myDoc
bib2gls \switch{group} myDoc
pdflatex myDoc
\end{terminal}
The \switch{group} (or \switch{g}) switch is important as it
instructs \app{bib2gls} to set the \gloskey{group} field for the
primary sort and the \glosfield{secondarygroup} for the secondary
sort. The primary sort will sort entries according to \code{en-GB}
(British English). This can simply be set to \code{en} without a
region. The secondary sort will resort the entries, but this time
according to \code{la} (Latin) using the \gloskey{user1} key as the
sort value. The entry labels will then be copied to the custom
\code{another} glossary.
The \ext{glstex} file created by \app{bib2gls} (which will then be
input by \gls{GlsXtrLoadResources} on the subsequent \LaTeX\ run)
essentially contains the following code:
\begin{codebox}
\gls{glsxtrsetgrouptitle}\marg{6881280}\marg{W}
\gls{glsxtrsetgrouptitle}\marg{5832704}\marg{G}
\gls{glsxtrsetgrouptitle}\marg{5373952}\marg{A}
\gls{glsxtrsetgrouptitle}\marg{7077888}\marg{Z}
\gls{glsxtrsetgrouptitle}\marg{another5373952}\marg{A}
\gls{glsxtrsetgrouptitle}\marg{another5767168}\marg{F}
\gls{glsxtrsetgrouptitle}\marg{another6356992}\marg{O}
\gls{glsxtrsetgrouptitle}\marg{another5898240}\marg{H}
\gls{glsxtrsetgrouptitle}\marg{another6815744}\marg{V}
\gls{glsxtrsetgrouptitle}\marg{another5832704}\marg{G}
\codepar
\gls{longnewglossaryentry*}\marg{aardvark}\marg{\gloskeyval{name}{aardvark},
\gloskeyval{user1}{Orycteropus afer},\gloskeyval{group}{5373952}}\marg{}
\gls{longnewglossaryentry*}\marg{adder}\marg{\gloskeyval{name}{adder},
\gloskeyval{user1}{Vipera berus},\gloskeyval{group}{5373952}}\marg{}
\gls{longnewglossaryentry*}\marg{ant}\marg{\gloskeyval{name}{ant},
\gloskeyval{user1}{Formicidae},\gloskeyval{group}{5373952}}\marg{}
\gls{longnewglossaryentry*}\marg{gazelle}\marg{\gloskeyval{name}{gazelle},
\gloskeyval{user1}{Gazella},\gloskeyval{group}{5832704}}\marg{}
\gls{longnewglossaryentry*}\marg{waterfowl}\marg{\gloskeyval{name}{waterfowl},
\gloskeyval{user1}{Anseriformes},\gloskeyval{group}{6881280}}\marg{}
\gls{longnewglossaryentry*}\marg{duck}\marg{\gloskeyval{name}{duck},
\gloskeyval{parent}{waterfowl},\gloskeyval{user1}{Anatidae},\gloskeyval{group}{}}\marg{}
\gls{longnewglossaryentry*}\marg{mallard}\marg{\gloskeyval{name}{mallard},
\gloskeyval{parent}{duck},\gloskeyval{user1}{Anas platyrhynchos},\gloskeyval{group}{}}\marg{}
\gls{longnewglossaryentry*}\marg{zebra}\marg{\gloskeyval{name}{zebra},
\gloskeyval{user1}{Hippotigris},\gloskeyval{group}{7077888}}\marg{}
\codepar
\gls{apptoglossarypreamble}\oarg{another}
\marg{\cmd{renewcommand}\marg{\gls{glsxtrgroupfield}}\marg{\glosfield{secondarygroup}}}
\gls{glsxtrcopytoglossary}\marg{waterfowl}\marg{another}
\gls{GlsXtrSetField}\marg{waterfowl}\marg{\glosfield{secondarygroup}}\marg{another5373952}
\gls{glsxtrcopytoglossary}\marg{duck}\marg{another}
\gls{glsxtrcopytoglossary}\marg{mallard}\marg{another}
\gls{glsxtrcopytoglossary}\marg{ant}\marg{another}
\gls{GlsXtrSetField}\marg{ant}\marg{\glosfield{secondarygroup}}\marg{another5767168}
\gls{glsxtrcopytoglossary}\marg{gazelle}\marg{another}
\gls{GlsXtrSetField}\marg{gazelle}\marg{\glosfield{secondarygroup}}\marg{another5832704}
\gls{glsxtrcopytoglossary}\marg{zebra}\marg{another}
\gls{GlsXtrSetField}\marg{zebra}\marg{\glosfield{secondarygroup}}\marg{another5898240}
\gls{glsxtrcopytoglossary}\marg{aardvark}\marg{another}
\gls{GlsXtrSetField}\marg{aardvark}\marg{\glosfield{secondarygroup}}\marg{another6356992}
\gls{glsxtrcopytoglossary}\marg{adder}\marg{another}
\gls{GlsXtrSetField}\marg{adder}\marg{\glosfield{secondarygroup}}\marg{another6815744}
\end{codebox}
It's more complicated than this as helper commands are provided to
make it easier to customize and the entries will all have
\gloskeyval{category}{index} since they were defined with
\atentry{index}, but this is basically like the preamble in the
earlier examples, except that the ordering and \idxpl{group} are
more logical. The result is shown in \exampleref{ex:bib2glsgrp}.
\begin{resultbox}[float]
\createexample*[label={ex:bib2glsgrp},
arara={pdflatex,bib2gls: { group: on },pdflatex,pdfcrop},
title={Displaying sorted glossaries with groups using \appfmt{bib2gls}},
description={Example document that uses bib2gls to created a two
differently sorted lists with the same entries}]
{\cbeg{filecontents*}{animalfamilies.bib}^^J%
\examplegroupsbibdefs^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}\oarg{\opt{record},\optval{stylemods}{bookindex},\optval{style}{bookindex}}\marg{glossaries-extra}^^J%
\gls{newglossary*}\marg{another}\marg{Another Glossary}^^J%
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{selection}{all},\comment{select all entries}
\resourceoptvalm{src}{animalfamilies},\comment{identify bib file(s)}
\resourceoptval{sort}{en-GB},\comment{sort method}
\resourceoptvalm{secondary}{la:user1:another}\comment{sort again and copy to `another'}
}^^J%
\gls{glsdefpostname}\marg{index}\marg{ ^^J
(\cmd{emph}\marg{\gls{glsentryuseri}\marg{\gls{glscurrententrylabel}}})}
}{\gls{printunsrtglossary}^^J%
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{another}}
}
\end{resultbox}
Note that the \gloskey{group} and \glosfield{secondarygroup} fields
haven't been set for the child entries (duck and mallard). This is
the default behaviour and it means that regardless of the definition
you provide for \gls{glsxtraddgroup}, sub-groups won't be displayed.
If you want those fields set for child entries, you need to use the
\resourceopt{group-level} resource option. For example:
\begin{codebox}
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{selection}{all},\comment{select all entries}
\strong{\resourceoptvalm{group-level}{<=1},\comment{\idxc{hierarchicallevel}{level}~0 and 1}}
\resourceoptvalm{src}{animalfamilies},\comment{identify bib file(s)}
\resourceoptval{sort}{en-GB},\comment{sort method}
\resourceoptvalm{secondary}{la:user1:another}\comment{sort again and copy}
}
\end{codebox}
This will add support for level~0 (no parent) and level~1 (parent
but no grandparent) entries. Deeper levels won't have support.
The \switch{group} switch is still required.
\subsection{Location Lists}
\label{sec:printunsrtlocations}
The \idx{unsrtfam} check for the existence of the \gloskey{location}
and \glosfield{loclist} keys. These are both defined by the \opt{record}
option. (The \glosfield{loclist} field is also used by
\gls{makenoidxglossaries} but isn't defined as a key.)
The \gloskey{location} field (if set) should contain the formatted
\idx{locationlist}. This is checked first and used if not empty.
Otherwise the \glosfield{loclist} field (if set) is used, but that
will use the same method as \gls{printnoidxglossary} to format,
which doesn't compact consecutive locations.
It's possible to choose a different field for the formatted
\idx{locationlist} by redefining:
\cmddef{GlsXtrLocationField}
This should expand to the \idx{internalfieldlabel}. If the field is
not the default \gloskey{location} then the test for
\glosfield{loclist} is omitted.
Whichever field is used, the formatted \idx{locationlist} is passed
to the appropriate \idx{glossarystyle} command (\gls{glossentry} or
\gls{subglossentry}) encapsulated with \gls{glossaryentrynumbers}.
If there's no location field or if the tested fields are empty, then
an empty argument (with no \gls{glossaryentrynumbers} encapsulator)
is passed to the \idx{glossarystyle} command. In this case, the
\opt{nonumberlist} option is redundant as there's no
\idx{locationlist} to suppress.
\subsection{Advanced Commands}
\label{sec:printunsrtadvanced}
To provide a better understanding of how filtered and inner glossaries work, it’s
useful to understand the difference between \gls{printglossary} (used
with \app{makeindex} and \app{xindy}) and \gls{printunsrtglossary} (used with
\app{bib2gls}).
In the first case, \app{makeindex} or \app{xindy} is used to create a file that
contains content in the form:
\begin{codebox}
\gls{glossarysection}\oarg{\gls{glossarytoctitle}}\marg{\gls{glossarytitle}}\comment{}
\gls{glossarypreamble}
\cbeg{\env{theglossary}}\gls{glossaryheader}
\meta{content}
\cend{\env{theglossary}}\gls{glossarypostamble}
\end{codebox}
where \meta{content} contains lines such as:
\begin{codebox}
\gls{glsgroupheading}\margm{group label}\gls{relax} \gls{glsresetentrylist}
\gls{glossentry}\margm{entry label}\margm{location list}\comment{}
\gls{subglossentry}\margm{level}\margm{entry label}\margm{location list}\comment{}
\end{codebox}
The \idx{group} headings (see \sectionref{sec:printunsrtgroups}) are
typeset using \gls{glsgroupheading}.
Top-level entries are typeset with \gls{glossentry} and child
entries are typeset with \gls{subglossentry} where \meta{level} indicates the
\idx{hierarchicallevel}. Both \app{makeindex} and \app{xindy} order the items so that
the child entries are placed immediately after the corresponding
parent entry.
The \gls{printglossary} command essentially does:
\begin{codebox}
\meta{Set default title and style.}
\cmd{bgroup}
\meta{Initial setup.}
\meta{Input the file created by \app{makeindex} or \app{xindy}.}
\cmd{egroup}
\end{codebox}
The initial setup part sets the \idx{glossarystyle} (which
determines the definitions of \env{theglossary},
\gls{glossaryheader}, \gls{glsgroupheading}, \gls{glossentry} and
\gls{subglossentry}), assigns the title (\gls{glossarytitle} and
\gls{glossarytoctitle}) and defines \gls{currentglossary}. (There is
some other stuff done both before and after the file is input, but
that's not relevant here.)
In the case of \app{bib2gls}, there isn't a glossary file to input.
Instead, \app{bib2gls} is used to create a file that contains the
entry definitions, which is input in the document preamble (via
\gls{GlsXtrLoadResources}). The entries are defined in the required
order and use internal \idxpl{field} to store the indexing
information (such as the \idx{group} label and
\idxpl{locationlist}). Now \gls{printunsrtglossary} is used to
display the glossary, which essentially does:
\begin{codebox}
\meta{Set default title and style.}
\cmd{bgroup}
\meta{Initial setup.}
\gls{glossarysection}\oarg{\gls{glossarytoctitle}}\marg{\gls{glossarytitle}}\comment{}
\gls{glossarypreamble}
\meta{Construct internal control sequence containing glossary content.}
\meta{Expand internal control sequence.}
\gls{glossarypostamble}
\cmd{egroup}
\end{codebox}
The \meta{initial setup} is the same as for \gls{printglossary}. The key
difference here is that there's no file containing the typeset
\idx{glossary} that can be simply input. Instead it's necessary to iterate
over the \idx{glossary}['s] internal label list. Some of the
\idxpl{glossarystyle} use a \env{tabular}-like
environment (such as \env{longtable}, which is used by the
\glostyle{long} styles).
It's always problematic having a loop inside a \env{tabular} context so
\gls{printunsrtglossary} by-passes the problem by moving the loop outside
of the \env{theglossary} environment. The command iterates over all
entry labels (in the order in which they were added to the
\idx{glossary}) and constructs an internal control sequence
(\inlineglsdef{@glsxtr@doglossary}), which ends up
containing:
\begin{codebox}
\cbeg{\env{theglossary}}\gls{glossaryheader}
\meta{begin code}
\meta{content}
\meta{end code}
\cend{\env{theglossary}}
\end{codebox}
\begin{warning}
Note that \gls{glsresetentrylist} has been removed in v1.50 since
it's generally unnecessary with \app{bib2gls} and causes
interference with tabular styles.
\end{warning}
The \meta{begin code} can be inserted just after
\code{\cbeg{theglossary}} by the command:
\cmddef{printunsrtglossarypostbegin}
This does nothing by default (so \meta{begin code} will be omitted).
If you still need to have \gls{glsresetentrylist} at the start, you
can redefine this hook as follows:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{printunsrtglossarypostbegin}}[1]\marg{\comment{}
\gls{appto}\#1\marg{\gls{glsresetentrylist}}\comment{}
}
\end{codebox}
The \meta{end code} can be inserted just before
\code{\cend{theglossary}} by the command:
\cmddef{printunsrtglossarypreend}
This does nothing by default (so \meta{end code} will be omitted).
(These two hooks are only used in \gls{printunsrtglossary} not in
by \gls{printunsrtinnerglossary} or \env{printunsrtglossarywrap}.)
For example,
\gls{printunsrttable} redefines the end hook to finish off the final
row.
In both hooks, the argument will be \gls{@glsxtr@doglossary} and, in
both cases, you need to use \gls{appto} within the definition in order
to insert \meta{begin code} and \meta{end code} in the correct place.
If you use \gls{preto}, the code will end up at the start, before
\code{\cbeg{theglossary}}
The \meta{content} in this case is different as it doesn't
explicitly contain \gls{glossentry} and \gls{subglossentry} but
instead uses an internal handler that just takes the entry label as
the argument. The \code{\gls{glsgroupheading}\margm{group label}}
command is inserted whenever a top-level entry has the group field
set to a label that's different to the previous top-level entry’s
group field (and, if supported, sub-groups are similarly inserted
with \gls{glssubgroupheading}, see
\sectionref{sec:printunsrtgroups}). So the content is in the form:
\begin{codebox}
\gls{glsgroupheading}\margm{group label}\comment{}
\cmd{\meta{internal cs handler}}\margm{entry label}\comment{}
\cmd{\meta{internal cs handler}}\margm{entry label}\comment{}
\ldots
\gls{glsgroupheading}\margm{group label}\comment{}
\cmd{\meta{internal cs handler}}\margm{entry label}\comment{}
\cmd{\meta{internal cs handler}}\margm{entry label}\comment{}
\ldots
\end{codebox}
There are hooks and commands available for use within those
hooks that may be adjusted to customize the way the \idx{glossary}
is displayed. These are described below.
At each iteration (while the \idx{glossary} content is being
constructed), the following steps are performed:
\begin{enumerate}
\item Store the current entry label in \gls{glscurrententrylabel}.
\item If \gls{glscurrententrylabel} is empty, skip this iteration.
\item Define placeholder commands:
\cmddef{glscurrententrylevel}
This is set to the current entry's \idx{hierarchicallevel} (taking
\printglossopt{leveloffset} and \printglossopt{flatten} options
into account);
\cmddef{glscurrenttoplevelentry}
This is set to the current entry label if \gls{glscurrententrylevel}
is 0 (that is, it expands to the most recent top-level entry,
allowing for \printglossopt{flatten} and \printglossopt{leveloffset});
\cmddef{glscurrentrootentry}
This is set to the current entry label if
\printglossoptval{flatten}{true} or if the current entry doesn't have
a parent (that is, it expands to the most recent top-level entry,
allowing for \printglossopt{flatten} but not \printglossopt{leveloffset}).
\item Perform the entry process hook:
\cmddef{printunsrtglossaryentryprocesshook}
This does nothing by default. Within the definition of this hook,
you may use:
\cmddef{printunsrtglossaryskipentry}
This will cause the remainder of the current iteration to be
skipped, which will prevent the current entry from being shown in
the \idx{glossary}.
\item If \printglossoptval{groups}{true}, use \gls{glsxtraddgroup}
(see \sectionref{sec:printunsrtgroups}) to append the top-level group heading
(\gls{glsgroupheading}) or the sub-group heading
(\gls{glssubgroupheading}) to \gls{@glsxtr@doglossary}.
\item Perform the pre-entry process hook:
\cmddef{printunsrtglossarypreentryprocesshook}
The argument will be \gls{@glsxtr@doglossary}. This may be used to
insert any additional content before the entry (use
\code{\gls{appto}\#1\margm{content}}). (The
entry label can be referenced with \gls{glscurrententrylabel} but
make sure it's expanded if it occurs in \meta{content}.) For example,
\gls{printunsrttable} redefines this hook to insert \sym{amp} and
\gls{tabularnewline} between blocks.
\item Append
\code{\cmd{\meta{internal cs handler}}\margm{entry label}} to \gls{@glsxtr@doglossary}.
\item Perform the post-entry process hook:
\cmddef{printunsrtglossarypostentryprocesshook}
The argument will be \gls{@glsxtr@doglossary}. This may be used to
append any additional content after the entry (use
\code{\gls{appto}\#1\margm{content}}). (The
entry label can be referenced with \gls{glscurrententrylabel} but
make sure it's expanded if it occurs in \meta{content}.) For example,
\gls{printunsrttable} redefines this hook to reset the block index
if the end of a row has been reached.
\end{enumerate}
\begin{warning}
The placeholders \gls{glscurrenttoplevelentry} and
\gls{glscurrentrootentry} may not be an ancestor of the current
entry. For example, if the \idx{glossary} doesn't have child entries
immediately following their parent entry.
\end{warning}
Once the \idx{glossary} construction (\gls{@glsxtr@doglossary}) has been completed, the
following hook is performed:
\cmddef{printunsrtglossarypredoglossary}
This does nothing by default. You can redefine this to show the
definition of \gls{@glsxtr@doglossary} for debugging purposes:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{printunsrtglossarypredoglossary}}\marg{\comment{}
\cmd{csshow}\marg{@glsxtr@doglossary}}
\end{codebox}
This will interrupt the \LaTeX\ run and display the definition in the
transcript.
The handler command \code{\cmd{\meta{internal cs handler}}} performs
the following:
\begin{codebox}
\cmd{protected@xdef}\gls{glscurrententrylabel}\margm{entry-label}\comment{}
\gls{printunsrtglossaryhandler}\gls{glscurrententrylabel}
\end{codebox}
This stores the entry's label in \gls{glscurrententrylabel} (which
allows it to be referenced in style hooks, such as the
\idx{postnamehook} or \idx{postdeschook}). Note that it uses a
global definition to avoid scoping issues caused with
\env{tabular}-like styles. The main handling of the
entry is performed by:
\cmddef{printunsrtglossaryhandler}
This is simply defined to use:
\cmddef{glsxtrunsrtdo}
This displays the entry according to the current
\idx{glossarystyle}, taking the \idx{hierarchicallevel} into account
(as given by \gls{glscurrententrylevel}).
The following are additional commands that may be useful in the
above hooks.
\cmddef{glsxtriflabelinlist}
Does \meta{true} if the given label is in the given comma-separated
list of labels, otherwise does \meta{false}. The label and list are fully
expanded.
\cmddef{ifglsxtrprintglossflatten}
This conditional is set by the \printglossopt{flatten} option and
can be used to test if the option has been set.
For example, the following skips all entries that have the
\gloskey{category} set to \cat{symbol}:
\begin{codebox}
\cmd{usepackage}\oarg{\optval{style}{index}}\marg{glossaries-extra}
\gls{newglossaryentry}\marg{ant}\marg{\gloskeyval{name}{ant},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{pi}\marg{\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{pi}}},\gloskeyval{description}{},
\gloskeyval{category}{symbol}}
\gls{newglossaryentry}\marg{aardvark}\marg{\gloskeyval{name}{aardvark},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{alpha}\marg{\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{alpha}}},\gloskeyval{description}{},
\gloskeyval{category}{symbol}}
\cbeg{document}
\cmd{renewcommand}\marg{\gls{printunsrtglossaryentryprocesshook}}\oarg{1}\marg{\%
\gls{glsifcategory}\marg{\#1}\marg{symbol}\%
\marg{\gls{printunsrtglossaryskipentry}}\%
\marg{}\%
}
\gls{printunsrtglossary}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[title={Filtering by category},
label={ex:filterbycat},
description={Example document that displays a glossary with entries
filtered by category}]
{\cmd{usepackage}\oarg{\optval{style}{index}}\marg{glossaries-extra}^^J
\gls{newglossaryentry}\marg{ant}\marg{\gloskeyval{name}{ant},\gloskeyval{description}{}}^^J
\gls{newglossaryentry}\marg{pi}\marg{\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{pi}}},\gloskeyval{description}{},^^J
\gloskeyval{category}{symbol}}^^J%
\gls{newglossaryentry}\marg{aardvark}\marg{\gloskeyval{name}{aardvark},\gloskeyval{description}{}}
}{\cmd{renewcommand}\marg{\gls{printunsrtglossaryentryprocesshook}}\oarg{1}\marg{\%^^J
\gls{glsifcategory}\marg{\#1}\marg{symbol}\%^^J
\marg{\gls{printunsrtglossaryskipentry}}\%^^J
\marg{}\%^^J
}^^J%
\gls{printunsrtglossary}
}
\end{resultbox}
\subsubsection{Inner Glossaries}
\label{sec:printunsrtinner}
\begin{information}
See also \gallerypage{bib2gls-inner}{Gallery: Inner or Nested Glossaries}.
\end{information}
It's possible you may want to combine multiple \idxpl{glossary}
sequentially, as sub-blocks of a single list. The inner part of
\gls{printunsrtglossary} can be created with:
\cmddef{printunsrtinnerglossary}
This can't be used on its own, as it only forms a fragment. It
doesn't include the section header, style
initialisation, preamble, \env{theglossary} environment, header and
postamble.
As with \gls{printunsrtglossary}, \gls{printunsrtinnerglossary}
constructs an internal control sequence containing the content, but
it adds scoping to localise the effects of any supplied options. So
it essentially does:
\begin{codebox}
\cmd{begingroup}
\meta{Initial setup (process options).}
\meta{pre-code}
\meta{Construct internal control sequence containing glossary content.}
\meta{Expand internal control sequence.}
\meta{post-code}
\cmd{endgroup}
\end{codebox}
There are two ways this command may be used.
\envdef{printunsrtglossarywrap}
The \env{printunsrtglossarywrap} environment takes one optional
argument that uses the same keys as \gls{printunsrtglossary} (see
\sectionref{sec:printglossopts}). Note that in this case the
\printglossopt{type} key simply provides a title (if one has been assigned to that
\idx{glossary}). It doesn't indicate the content. There's no point
using both \printglossopt{type} and \printglossopt{title}.
The start of the environment sets up the glossary style and does the header:
\begin{codebox}
\meta{Set default title and style.}
\meta{Initial setup.}
\gls{glossarysection}\oarg{\gls{glossarytoctitle}}\marg{\gls{glossarytitle}}\comment{}
\gls{glossarypreamble}
\cbeg{\env{theglossary}}\gls{glossaryheader}\gls{glsresetentrylist}
\end{codebox}
The end of this wrapper environment ends \env{theglossary} and does the postamble:
\begin{codebox}
\cend{\env{theglossary}}\gls{glossarypostamble}
\end{codebox}
Note that the \gls{printunsrtglossarypostbegin}, \gls{printunsrtglossarypreend} and
\gls{printunsrtglossarypredoglossary} hooks aren't used.
For example, the following has two \idxpl{glossary} but displays
them as inner \idxpl{glossary}:
\begin{codebox}
\gls{newglossaryentry}\marg{ant}\marg{\gloskeyval{name}{ant},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{bee}\marg{\gloskeyval{name}{bee},\gloskeyval{description}{}}
\gls{newignoredglossary*}\marg{other}
\gls{newglossaryentry}\marg{duck}\marg{\gloskeyval{name}{duck},\gloskeyval{description}{}}
\gls{newglossaryentry}\marg{goose}\marg{\gloskeyval{name}{goose},\gloskeyval{description}{}}
\cbeg{document}
\cbeg{\env{printunsrtglossarywrap}}\oarg{\printglossoptval{style}{index}}
\gls{glstreeitem} First Glossary
\gls{printunsrtinnerglossary}\oarg{\printglossoptval{leveloffset}{1}}\marg{}\marg{}
\gls{glstreeitem} Second Glossary
\gls{printunsrtinnerglossary}\oarg{\printglossoptval{type}{other},\printglossoptval{leveloffset}{1}}\marg{}\marg{}
\cend{\env{printunsrtglossarywrap}}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[title={Inner glossaries using \envfmt{printunsrtglossarywrap}},
label={ex:unsrtwrap},
description={Example document illustrating two inner glossaries offset
by 1 level}]
{\cmd{usepackage}\marg{glossaries-extra}^^J%
\gls{newglossaryentry}\marg{ant}\marg{\gloskeyval{name}{ant},\gloskeyval{description}{}}^^J%
\gls{newglossaryentry}\marg{bee}\marg{\gloskeyval{name}{bee},\gloskeyval{description}{}}^^J%
\gls{newignoredglossary*}\marg{other}^^J%
\gls{newglossaryentry}\marg{duck}\marg{\gloskeyval{type}{other},\gloskeyval{name}{duck},\gloskeyval{description}{}}^^J%
\gls{newglossaryentry}\marg{goose}\marg{\gloskeyval{type}{other},\gloskeyval{name}{goose},\gloskeyval{description}{}}
}{\cbeg{\env{printunsrtglossarywrap}}\oarg{\printglossoptval{style}{index}}^^J%
\gls{glstreeitem} First Glossary^^J%
\gls{printunsrtinnerglossary}\oarg{\printglossoptval{leveloffset}{1}}\marg{}\marg{}^^J%
\gls{glstreeitem} Second Glossary^^J%
\gls{printunsrtinnerglossary}\oarg{\printglossoptval{type}{other},\printglossoptval{leveloffset}{1}}\marg{}\marg{}^^J%
\cend{\env{printunsrtglossarywrap}}
}
\end{resultbox}
The other way that \gls{printunsrtinnerglossary} can be used is
within \gls{printunsrtglossary}.
The handler function described in \sectionref{sec:printunsrtadvanced} that's used to
process each entry to be displayed in the \idx{glossary}, is
defined as:
\begin{codebox}
\cmd{newcommand}\marg{\gls{printunsrtglossaryhandler}}[1]\marg{\gls{glsxtrunsrtdo}\marg{\#1}}
\end{codebox}
It's possible to redefine this so that it also displays an inner
glossary. The following example has the terms \qt{pictograph} and
\qt{Greek symbol} in the \code{main} glossary. Two
\idxpl{ignoredglossary} are created (which don't require a title)
where the \idx{glossary} label matches an entry label in the
\code{main} \idx{glossary}.
\begin{codebox}
\cmd{usepackage}\marg{fontawesome}
\cmd{usepackage}\oarg{\optval{style}{\glostyle{tree}}}\marg{glossaries-extra}
\gls{newglossaryentry}\marg{pictograph}\marg{\gloskeyval{name}{pictograph},
\gloskeyval{description}{picture or symbol representing a word or
phrase}}
\gls{newglossaryentry}\marg{mathgreek}\marg{\gloskeyval{name}{Greek symbol},
\gloskeyval{description}{mathematical constants or functions}}
\gls{newignoredglossary*}\marg{pictograph}
\gls{newignoredglossary*}\marg{mathgreek}
\gls{newglossaryentry}\marg{cut}\marg{\gloskeyval{type}{pictograph},
\gloskeyval{name}{\cmd{faCut}},
\gloskeyval{description}{cut}}
\gls{newglossaryentry}{paste}\marg{\gloskeyval{type}{pictograph},
\gloskeyval{name}{\cmd{faPaste}},
\gloskeyval{description}{paste}}
\gls{newglossaryentry}\marg{alpha}\marg{\gloskeyval{type}{mathgreek},
\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{alpha}}},
\gloskeyval{description}{alpha}}
\gls{newglossaryentry}\marg{beta}\marg{\gloskeyval{type}{mathgreek},
\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{beta}}},
\gloskeyval{description}{beta}}
\cbeg{document}
\cmd{newcommand}\marg{\cmd{nestedhandler}}[1]\marg{\%
\gls{glsxtrunsrtdo}\marg{\#1}\%
\gls{ifglossaryexists}*\marg{\#1}\%
\marg{\%
\gls{printunsrtinnerglossary}\oarg{\printglossoptvalm{type}{\#1},\printglossoptvalm{leveloffset}{++1},
\printglossoptval{groups}{false}}\marg{}\marg{}\%
}\%
{}\%
}
\gls{printunsrtglossary*}\marg{\cmd{let}\gls{printunsrtglossaryhandler}\cmd{nestedhandler}}
\cend{document}
\end{codebox}
This creates a custom command \csfmt{nestedhandler} that can be used as the handler to
create nested \idxpl{glossary}. After each item in the glossary, if
the entry's label matches the label of a defined glossary, that
glossary is displayed with its \idx{hierarchicallevel} incremented
by 1, which creates the illusion of child entries. The resulting
document is shown in \exampleref{ex:nested}.
\begin{resultbox}
\createexample*[label={ex:nested},
title={Nested glossaries},
description={Example document with a glossary that has inner glossaries}]
{%
\cmd{usepackage}\marg{fontawesome}^^J%
\cmd{usepackage}\oarg{\optval{style}{\glostyle{tree}}}\marg{glossaries-extra}^^J%
\gls{newglossaryentry}\marg{pictograph}\marg{\gloskeyval{name}{pictograph},^^J
\gloskeyval{description}{picture or symbol representing a word or
phrase}}^^J%
\gls{newglossaryentry}\marg{mathgreek}\marg{\gloskeyval{name}{Greek
symbol},^^J
\gloskeyval{description}{mathematical constants or functions}}^^J%
\gls{newignoredglossary*}\marg{pictograph}^^J%
\gls{newignoredglossary*}\marg{mathgreek}^^J%
\gls{newglossaryentry}\marg{cut}\marg{\gloskeyval{type}{pictograph},^^J
\gloskeyval{name}{\cmd{faCut}},^^J
\gloskeyval{description}{cut}}^^J%
\gls{newglossaryentry}{paste}\marg{\gloskeyval{type}{pictograph},^^J
\gloskeyval{name}{\cmd{faPaste}},
\gloskeyval{description}{paste}}^^J%
\gls{newglossaryentry}\marg{alpha}\marg{\gloskeyval{type}{mathgreek},^^J
\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{alpha}}},^^J
\gloskeyval{description}{alpha}}^^J%
\gls{newglossaryentry}\marg{beta}\marg{\gloskeyval{type}{mathgreek},^^J
\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{beta}}},^^J
\gloskeyval{description}{beta}}
}{%
\cmd{newcommand}\marg{\cmd{nestedhandler}}[1]\marg{\%^^J
\gls{glsxtrunsrtdo}\marg{\#1}\%^^J
\gls{ifglossaryexists}*\marg{\#1}\%^^J
\marg{\%^^J
\gls{printunsrtinnerglossary}\oarg{\printglossoptvalm{type}{\#1},\printglossoptvalm{leveloffset}{++1},\printglossoptval{groups}{false}}\marg{}\marg{}\%^^J
}\%^^J
{}\%^^J%
}^^J%
\gls{printunsrtglossary*}\marg{\cmd{let}\gls{printunsrtglossaryhandler}\cmd{nestedhandler}}
}
\end{resultbox}
\subsubsection{Per-Unit Glossaries}
\label{sec:printunsrtunit}
If you are using \app{bib2gls} then it's possible to only list
entries that match a particular counter value. For example, you may
want a \idx{mini-glossary} at the start of a section that only lists the
entries that have been \recorded\ in that section. This can be done
by using the handler to skip entries that don't have a matching
record. It can also be implemented with record counting, as shown in
\exampleref{ex:recordcountminigloss} in \sectionref{sec:recordcount}.
It's also possible to make each \idx{indexing} instance automatically
make a note of a particular counter using:
\cmddef{GlsXtrRecordCounter}
(This doesn't correspond to a \app{bib2gls} \record. That's dealt
with by the indexing that comes first.)
This command may only be used in the preamble (with \opt{record}) and indicates that
whenever an entry is indexed, the following line should be added to
the \ext+{aux} file:
\cmddef{glsxtr@counterrecord}
where \meta{value} is given by \gls{thecounter}.
On the next \LaTeX\ run, this information is picked up from the
\ext{aux} file and the information is added to the
\glosfield{record.counter} field (stored as an \sty{etoolbox}
internal list). This internal command is only used in the \ext{aux}
file and has a user-level hook:
\cmddef{glsxtrAddCounterRecordHook}
This does nothing by default. If you want to redefined this, the
redefinition must be placed in the document preamble before the
\ext{aux} file is input.
There are two ways of skipping an entry. The first is to redefine
\gls{printunsrtglossaryentryprocesshook} to perform the test and use
\gls{printunsrtglossaryskipentry} to skip an unwanted entry (as
illustrated earlier). The second is to perform the test in
\gls{printunsrtglossaryhandler}. The first method is the better
option for large lists that may contain group headers. The example
below uses the second method.
The file \filefmt{myentries.bib} contains the following:
\newcommand{\printunitexamplebib}{%
\atentry{symbol}\marg{pi,\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{pi}}},\newline
\gloskeyval{description}{ratio of the length of the circumference
of a circle to its diameter}}\newline
\atentry{symbol}\marg{root2,\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{surd}2}},\newline
\gloskeyval{description}{Pythagoras' constant}}\newline
\atentry{symbol}\marg{zeta3,\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{zeta}(3)}},\newline
\gloskeyval{description}{Ap\cmd{'}ery's constant}}\newline
\atentry{symbol}\marg{zero,\gloskeyval{name}{0},\newline
\gloskeyval{description}{nothing or nil}}\newline
\atentry{symbol}\marg{one,\gloskeyval{name}{1},\newline
\gloskeyval{description}{single entity, unity}}
}
\begin{codebox}
\printunitexamplebib
\end{codebox}
The document redefines the handler to only show entries in the current section:
\begin{codebox}
\cmd{usepackage}\oarg{\opt{record},\opt{stylemods},\optval{style}{index}}\marg{glossaries-extra}
\gls{GlsXtrRecordCounter}\marg{\ctr{section}}
\gls{GlsXtrLoadResources}\oarg{\resourceoptvalm{src}{myentries}}
\cbeg{document}
\cmd{renewcommand}\marg{\gls{printunsrtglossaryhandler}}[1]\marg{\%
\gls{glsxtrfieldxifinlist}\marg{\#1}\marg{record.section}\marg{\thecounter{section}}
\marg{\gls{glsxtrunsrtdo}\marg{\#1}}\%
\marg{}\%
}
\cmd{section}\marg{Sample}
\gls{printunsrtglossary}
This section discusses \gls{gls}\marg{pi}, \gls{gls}\marg{root2} and
\gls{gls}\marg{zeta3}.
\codepar
\cmd{section}\marg{Another Sample}
\gls{printunsrtglossary}
This section discusses \gls{gls}\marg{one}, \gls{gls}\marg{pi} and
\gls{gls}\marg{zero}.
\cend{document}
\end{codebox}
If the document is saved in the file \filefmt{myDoc.tex} then the
build process is:
\begin{terminal}
pdflatex myDoc
bib2gls myDoc
pdflatex myDoc
\end{terminal}
The first \LaTeX\ run adds the \records\ to the \ext{aux} file for
\app{bib2gls} to pick up, but also adds the
\gls{glsxtr@counterrecord} lines (which \app{bib2gls} ignores) that
setup the
\glslink{opt.glosfield.record.counter}{\fieldfmt{record.section}}
list field for the given entry.
This means that \gls{glsxtrfieldxifinlist} can be used to determine
whether or not the current section number (\thecounter{section}) is in
the list. If it is, then the entry is displayed in the current
\idx{glossarystyle} using the default \gls{glsxtrunsrtdo}. Otherwise
nothing is displayed.
The following command is provided that performs something similar:
\cmddef{printunsrtglossaryunit}
This is equivalent to:
\begin{compactcodebox}
\gls{printunsrtglossary*}\oarg{\printglossoptval{type}{\gls{glsdefaulttype}},\#1}\marg{\comment{}
\gls{printunsrtglossaryunitsetup}\marg{\#2}\comment{}
}%
\end{compactcodebox}
This initialises the hook via:
\cmddef{printunsrtglossaryunitsetup}
This is essentially does:
\begin{compactcodebox}
\comment{redefine handler to only show entries with a match:}
\cmd{renewcommand}\marg{\gls{printunsrtglossaryhandler}}[1]\marg{\comment{}
\gls{glsxtrfieldxifinlist}\marg{\#1}\marg{record.\meta{counter-name}}\marg{\thecountername}
\marg{\gls{glsxtrunsrtdo}\marg{\#1}}\comment{}
\marg{}\comment{}
}\comment{}
\meta{assign target name prefixes (see below)}
\comment{suppress section header:}
\cmd{renewcommand}*\marg{\gls{glossarysection}}[2][]\marg{}\comment{}
\comment{append vertical space after the glossary:}
\cmd{appto}\gls{glossarypostamble}\marg{\gls{printunsrtglossaryunitpostskip}}\comment{}
\end{compactcodebox}
This is more complicated than the original example as it also
suppresses the glossary section header and modifies the target name
prefix. Additionally, the following is appended to the end of the \idx{glossary}:
\cmddef{printunsrtglossaryunitpostskip}
This simply does:
\begin{compactcodebox}
\gls{glspar}\cmd{medskip}\gls{glspar}
\end{compactcodebox}
which creates a small vertical space. The target name prefix
(\printglossopt{targetnameprefix}) is assigned as follows. If
\theHcountername\ has been defined, the prefix is:
\begin{compactcodebox}
record.\meta{counter-name}.\theHcountername.\gls{@gobble}
\end{compactcodebox}
otherwise the prefix is:
\begin{compactcodebox}
record.\meta{counter-name}.\thecountername.\gls{@gobble}
\end{compactcodebox}
The use of \gls{@gobble} at the end discards \gls{glolinkprefix}.
The above example can be rewritten using
\gls{printunsrtglossaryunit}. I've added
\resourceopt{symbol-sort-fallback} to sort by the description and a
full glossary at the end of the document.
\begin{codebox}
\cmd{usepackage}\oarg{\opt{record},\opt{stylemods},\optval{style}{index}}\marg{glossaries-extra}
\gls{GlsXtrRecordCounter}\marg{\ctr{section}}
\gls{GlsXtrLoadResources}\oarg{\resourceoptvalm{src}{myentries},
\resourceoptval{symbol-sort-fallback}{\gloskey{description}}
}
\cbeg{document}
\cmd{section}\marg{Sample}
\gls{printunsrtglossaryunit}\marg{\ctr{section}}
This section discusses \gls{gls}\marg{pi}, \gls{gls}\marg{root2} and
\gls{gls}\marg{zeta3}.
\codepar
\cmd{section}\marg{Another Sample}
\gls{printunsrtglossaryunit}\marg{\ctr{section}}
This section discusses \gls{gls}\marg{one}, \gls{gls}\marg{pi} and
\gls{gls}\marg{zero}.
\codepar
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
The build process is the same as before:
\begin{terminal}
pdflatex myDoc
bib2gls myDoc
pdflatex myDoc
\end{terminal}
The resulting document is shown in \exampleref{ex:minigloss}. Note
that all glossaries show the \idxpl{locationlist}, which all contain
the page number~1, since the example document is only one page long.
\begin{resultbox}[float]
\createexample*[label={ex:minigloss},
title={Sub-glossary for a given counter value},
description={Example document demonstrating a mini-glossary that
only shows entries recorded in the current section},
arara={pdflatex,bib2gls,pdflatex,pdfcrop}
]
{\cbeg{filecontents*}\marg{\cmd{jobname}.bib}^^J%
\printunitexamplebib^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}\oarg{\opt{record},\opt{stylemods},\optval{style}{index}}\marg{glossaries-extra}^^J
\gls{GlsXtrRecordCounter}\marg{\ctr{section}}^^J
\gls{GlsXtrLoadResources}\oarg{\resourceoptvalm{src}{\cmd{jobname}},^^J
\resourceoptval{symbol-sort-fallback}{\gloskey{description}}^^J%
}
}{\cmd{section}\marg{Sample}^^J%
\gls{printunsrtglossaryunit}\marg{section}^^J%
This section discusses \gls{gls}\marg{pi}, \gls{gls}\marg{root2} and
\gls{gls}\marg{zeta3}.
\codepar
\cmd{section}\marg{Another Sample}^^J%
\gls{printunsrtglossaryunit}\marg{section}^^J%
This section discusses \gls{gls}\marg{one}, \gls{gls}\marg{pi} and
\gls{gls}\marg{zero}.
\codepar
\gls{printunsrtglossaries}
}
\end{resultbox}
Other variations include creating a secondary \idx{glossary} that's
ordered differently for the \idxpl{mini-glossary}. For example:
\begin{codebox}
\gls{newignoredglossary*}\marg{glossary2}
\gls{GlsXtrLoadResources}\oarg{\resourceoptvalm{src}{\cmd{jobname}},
\resourceoptval{symbol-sort-fallback}{\gloskey{description}},
\resourceoptval{secondary}{use:glossary2}
}
\end{codebox}
This orders the secondary glossary according to use (the first
record for the entire document not for the given unit).
The \idxpl{mini-glossary} will then need the \printglossopt{type} option:
\begin{codebox}
\gls{printunsrtglossaryunit}\oarg{\printglossoptval{type}{glossary2}}\marg{\ctr{section}}
\end{codebox}
There is an alternative method that ensures the
\idxpl{mini-glossary} are ordered by use
within the section. This can be done by redefining
\gls{glsxtrAddCounterRecordHook} to create a \idx{glossary} for each
unit (instead of using a secondary \idx{glossary}):
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glsxtrAddCounterRecordHook}}[3]\marg{\comment{}
\gls{provideignoredglossary}\marg{\#2.\#3}\comment{}
\gls{glsxtrcopytoglossary}*\marg{\#1}\marg{\#2.\#3}\comment{}
}
\end{codebox}
(Remember this needs to be done in the preamble, before the
\ext{aux} file is input.)
This creates a \idx{glossary} with the label
\code{\meta{counter}.\meta{value}}, if it's not already defined, and
adds the entry's label to it. This means that this \idx{glossary}
will only contain the entries for the matching \meta{counter} and
\meta{value}, and the entry labels are in the order they were added
to the \ext{aux} file.
The \idx{glossary} needs to be set appropriately. For example:
\begin{codebox}
\gls{printunsrtglossaryunit}\oarg{\printglossoptval{type}{section.\thecounter{section}}}\marg{\ctr{section}}
\end{codebox}
There's now no filtering required, but \gls{printunsrtglossaryunit}
is still useful as it automatically suppresses the section header,
alters the hyperlink prefix and adds extra spacing after the
glossary. However, if you prefer, you can simply do something like:
\begin{codebox}
\gls{printunsrtglossary*}\oarg{\printglossoptval{type}{section.\thecounter{section}},
\printglossoptval{target}{false}}
{\cmd{renewcommand}*\marg{\gls{glossarysection}}[2][]\marg{}}
\gls{printunsrtglossaryunitpostskip}
\end{codebox}
This is done in \exampleref{ex:minigloss2}.
\begin{resultbox}[float]
\createexample*[label={ex:minigloss2},
title={Sub-glossary for a given counter value ordered by use in the section},
description={Example document demonstrating a mini-glossary that
only shows entries recorded in the current section in the order they
were recorded in that section},
arara={pdflatex,bib2gls,pdflatex,pdfcrop}
]
{\cbeg{filecontents*}\marg{\cmd{jobname}.bib}^^J%
\printunitexamplebib^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}\oarg{\opt{record},\opt{stylemods},\optval{style}{index}}\marg{glossaries-extra}^^J
\gls{GlsXtrRecordCounter}\marg{\ctr{section}}^^J
\gls{GlsXtrLoadResources}\oarg{\resourceoptvalm{src}{\cmd{jobname}},^^J
\resourceoptval{symbol-sort-fallback}{\gloskey{description}}^^J%
}
\codepar
\cmd{renewcommand}\marg{\gls{glsxtrAddCounterRecordHook}}[3]\marg{\%^^J
\gls{provideignoredglossary}\marg{\#2.\#3}\%^^J
\gls{glsxtrcopytoglossary}*\marg{\#1}\marg{\#2.\#3}\%^^J%
}
\codepar
\cmd{newcommand}\marg{\cmd{minigloss}}\marg{\%^^J
\gls{printunsrtglossary*}\oarg{\printglossoptval{type}{section.\cmd{thesection}},^^J
\printglossoptval{target}{false}}^^J
{\cmd{renewcommand}*\marg{\gls{glossarysection}}[2][]\marg{}}^^J
\gls{printunsrtglossaryunitpostskip}^^J%
}
}{\cmd{section}\marg{Sample}^^J%
\cmd{minigloss}^^J%
This section discusses \gls{gls}\marg{pi}, \gls{gls}\marg{root2} and
\gls{gls}\marg{zeta3}.
\codepar
\cmd{section}\marg{Another Sample}^^J%
\cmd{minigloss}^^J%
This section discusses \gls{gls}\marg{one}, \gls{gls}\marg{pi} and
\gls{gls}\marg{zero}.
\codepar
\gls{printunsrtglossaries}
}
\end{resultbox}
\section{Standalone Entry Items}
\label{sec:glossentry}
It may be that you don't want a list but would rather display
entry details throughout the document. You can simply
do \gls{glsentryname} followed by \gls{glsentrydesc}.
(Remember that if you don't want a sorted list, use
\optval{sort}{none} or \optval{sort}{clear} to skip the preprocessing of the
\gloskey{sort} field.)
For example, in the preamble provide a custom command to display the
entry's name and description:
\begin{codebox}
\cmd{newcommand}\marg{\cmd{displayterm}}[1]\marg{\%
\cmd{par}\cmd{medskip}\cmd{par}\cmd{noindent}
Definition: \gls{glsentryname}\marg{\#1}.\cmd{par}
\gls{glsentrydesc}\marg{\#1}
\cmd{par}\cmd{medskip}
}
\end{codebox}
define your entries, for example:
\begin{codebox}
\gls{newglossaryentry}\marg{function}\marg{\gloskeyval{name}{function},
\gloskeyval{description}{a relation or expression involving variables}
}
\end{codebox}
and then later in the text:
\begin{codebox}
\cmd{displayterm}\marg{function}
\end{codebox}
However, if may be that you want to use \sty{hyperref} and
have commands like \gls{gls} link back to the place where
the term is described. Instead of using \gls{glsentryname}
use:
\cmddef{glsxtrglossentry}
where \meta{entry-label} is the entry's label.
This is designed to behave much like the way the name is displayed
in the glossary. It performs the following:
\begin{itemize}
\item Defines \gls{glscurrententrylabel} to the entry's label.
This is usually done at the start of the glossary style commands
\gls{glossentry} and \gls{subglossentry} and may be used by hooks,
such as the \idx{postnamehook}. Here the definition is localised
so that it's only available for use in \gls{glossentryname}.
\item Defines \gls{currentglossary} to the entry's glossary type.
This is usually done at the start of commands like
\gls{printglossary} and may be used by style hooks.
Here the definition is localised so that it's only available for use
in \gls{glsentryitem} and \gls{glssubentryitem}. The value is obtained
by fully expanding:
\cmddef{GlsXtrStandaloneGlossaryType}
which defaults to the value of the \gloskey{type} field for the
current entry.
\item Increments and display the entry counters
if the \opt{entrycounter} or \opt{subentrycounter}
package options are set. If the entry doesn't have a parent, then
this does:
\begin{compactcodebox}
\gls{glsentryitem}\margm{entry-label}
\end{compactcodebox}
otherwise it does:
\cmddef{GlsXtrStandaloneSubEntryItem}
which defaults to \code{\gls{glssubentryitem}\margm{entry-label}} if the entry
has a parent but not a grandparent.
This reflects the behaviour of the predefined hierarchical styles.
A bug in pre-version~1.31 used \gls{glsentryitem} for all child levels,
which doesn't match the hierarchical glossary styles. If you want to
restore this behaviour, just do:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{GlsXtrStandaloneSubEntryItem}}[1]\marg{\comment{}
\gls{glssubentryitem}\marg{\#1}}
\end{codebox}
\item Sets the hyper-target if supported (using \gls{glstarget})
and displays the entry name using:
\cmddef{GlsXtrStandaloneEntryName}
which uses
\code{\gls{glstarget}\margm{entry-label}\marg{\gls{glossentryname}\margm{entry-label}}}
by default.
Remember that \gls{glossentryname} uses \gls{glsnamefont} or picks up
the style from category attributes such as
\catattr{glossnamefont}.
\end{itemize}
If you have used \gls{nopostdesc} or \gls{glsxtrnopostpunc}
in any of your description fields, you can use:
\cmddef{glsxtractivatenopost}
to make these commands behave as they normally do within a glossary.
This needs to be placed before:
\begin{compactcodebox}
\gls{glossentrydesc}\margm{entry-label}\gls{glspostdescription}
\end{compactcodebox}
and scoped. Note that \gls{glsnonextpages} and \gls{glsnextpages} have no
effect outside of the glossary and are not intended for use in a
standalone context.
It's also possible to select a different field (rather than
using \gloskey{name}):
\cmddef{glsxtrglossentryother}
The \meta{field-label} must be given using its
\idx{internalfieldlabel}. The \meta{header} argument is the code to
pass to the third argument of \gls{glsxtrtitleorpdforheading}. It
may be left empty in which case the default is determined as
follows:
\begin{itemize}
\item If \csfmt{glsxtrhead\meta{field-label}} is defined (see
\sectionref{sec:headingsadvanced}), then \meta{header}
is \csfmt{glsxtrhead\meta{field-label}}\marg{entry-label}.
\item Otherwise \meta{header} is simply the field value.
\end{itemize}
The \gls{glsxtrglossentryother} command internally uses
\cmddef{GlsXtrStandaloneEntryOther}
instead of \gls{GlsXtrStandaloneEntryName}, which uses
\code{\gls{glossentrynameother}\margm{entry-label}\marg{field-label}} instead of
\code{\gls{glossentryname}\margm{entry-label}}.
If you have loaded the \sty{glossaries-accsupp} package (through the \opt{accsupp}
option) then accessibility support will be provided if
there's a corresponding command:
\begin{compactcodebox}
\cmd{gls\meta{field-label}accessdisplay}\margm{text}\margm{entry-label}
\end{compactcodebox}
(for example, \gls{glssymbolaccessdisplay}).
This means that my custom command can be changed to:
\begin{codebox}
\cmd{newcommand}\marg{\cmd{displayterm}}[1]\marg{\%
\cmd{par}\cmd{medskip}\cmd{par}\cmd{noindent}
Definition: \gls{glsxtrglossentry}\marg{\#1}.\cmd{par}
\gls{glsentrydesc}\marg{\#1}
\cmd{par}\cmd{medskip}
}
\end{codebox}
If I want numbered definitions, then I can use the
package options \opt{entrycounter} or \opt{subentrycounter}
and remove the colon:
\begin{codebox}
\cmd{newcommand}\marg{\cmd{displayterm}}[1]\marg{\%
\cmd{par}\cmd{medskip}\cmd{par}\cmd{noindent}
Definition \gls{glsxtrglossentry}\marg{\#1}.\cmd{par}
\gls{glsentrydesc}\marg{\#1}
\cmd{par}\cmd{medskip}
}
\end{codebox}
The counter label uses a dot after the number by default
but this can be changed to a colon:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsentrycounterlabel}}\marg{\gls{theglossaryentry}:\cmd{space}}
\end{codebox}
It's now possible to not only use \gls{gls} to link back to the
definition but also use \gls{glsrefentry} to reference
the counter and \gls{glsxtrpageref} to reference the page number.
If I want the description to behave more like it does
in a glossary in need to make the following modification:
\begin{codebox}
\cmd{newcommand}\marg{\cmd{displayterm}}[1]\marg{\%
\cmd{par}\cmd{medskip}\cmd{par}\cmd{noindent}
Definition \gls{glsxtrglossentry}\marg{\#1}.\cmd{par}
\cmd{begingroup}
\gls{glsxtractivatenopost}
\gls{glossentrydesc}\marg{\#1}\gls{glspostdescription}
\cmd{endgroup}
\cmd{par}\cmd{medskip}
}
\end{codebox}
(Note the grouping to localise \gls{glsxtractivatenopost}.)
You can also use \gls{glsxtrglossentry} within section headings.
For example:
\begin{codebox}
\cmd{section}\marg{\gls{glsxtrglossentry}\marg{function}}
\end{codebox}
If \gls{glsxtrglossentry} occurs in a section title and
\sty{hyperref} has been loaded, then \gls{glsxtrglossentry}
will expand in the PDF bookmark as:
\cmddef{GlsXtrStandaloneEntryPdfName}
This defaults to \code{\gls{glsentryname}\margm{entry-label}}
The page headers and table of contents will use
\cmddef{GlsXtrStandaloneEntryHeadName}
which defaults to \code{\gls{glsxtrheadname}\margm{entry-label}}.
For example, to ensure that the name is displayed in
\idx{sentencecase} in the title, PDF bookmarks and heading:
\begin{codebox}
\gls{glssetcategoryattribute}\marg{\cat{general}}\marg{\catattr{glossname}}\marg{firstuc}
\cmd{renewcommand}\marg{\gls{GlsXtrStandaloneEntryPdfName}}[1]\marg{\gls{Glsentryname}\marg{\#1}}
\cmd{renewcommand}\marg{\gls{GlsXtrStandaloneEntryHeadName}}[1]\marg{\gls{Glsentryname}\marg{\#1}}
\end{codebox}
Note that this requires \sty{glossaries} v4.50+ to ensure that
\gls{Glsentryname} expands. An alternative is to use
\gls{Glsxtrusefield}.
If \gls{glsxtrglossentryother} occurs in a section title and
\sty{hyperref} has been loaded, then \gls{glsxtrglossentryother}
will expand in the PDF bookmark as:
\cmddef{GlsXtrStandaloneEntryPdfOther}
This defaults to the value of the given field.
The page headers and table of contents will use the \meta{header}
argument, if not empty, otherwise it will use:
\cmddef{GlsXtrStandaloneEntryHeadOther}
This does \csfmt{glsxtrhead\meta{field-label}}, if it exists, or
otherwise it just does the value of the given field (which can be
obtained with \gls{glsxtrusefield}).
If you're using a page style or table of contents that doesn't use
\gls{markright} or \gls{markboth} or \gls{@starttoc} then you need
to insert \gls{glsxtrmarkhook} and \gls{@glsxtrinmark} at the start
of the header or table of contents either scoped or afterwards
cancelled with \gls{@glsxtrnotinmark} and
\gls{glsxtrrestoremarkhook}, see \sectionref{sec:headingsadvanced}.
\section{Glossary Style Modifications}
\label{sec:glosstylemods}
The \sty{glossaries-extra} package redefines \gls{setglossarystyle},
and it now includes a hook that's performed before the style is set:
\cmddef{glsxtrpreglossarystyle}
This allows for new style commands that aren't provided by the base
\sty{glossaries} package to be initialised in the
event that a style that doesn't redefine them is used. The default
definition is:
\begin{compactcodebox}
\cmd{newcommand}\marg{\gls{glsxtrpreglossarystyle}}\marg{\comment{}
\cmd{renewcommand}*\marg{\gls{glssubgroupheading}}[4]\marg{\gls{glsgroupheading}\marg{\#\#4}}\comment{}
}
\end{compactcodebox}
If you prefer a different default, you can redefine this command as
appropriate.
The commands \gls{glossentryname} and \gls{glossentrydesc} are
modified to take into account the \catattr{glossname},
\catattr{glossnamefont}, \catattr{glossdesc} and \catattr{glossdescfont}
attributes (see \sectionref{sec:categories}). This means you can
make simple font or case-changing modifications to the name and description
without defining a new glossary style.
The command \gls{glossentrysymbol} is modified to take into account
the \catattr{glosssymbolfont} attribute. Note that, unlike the above, there's
no corresponding attribute to change the case as it's usually not
appropriate to change the case of a symbol (and for some symbols,
such as pictographs, there's no concept of case). If
\gls{texorpdfstring} has been defined \gls{glossentrysymbol} will
be defined to do:
\begin{codebox}
\gls{texorpdfstring}\margm{\TeX\ code}\margm{PDF}
\end{codebox}
The \meta{\TeX\ code} part is robust and deals with the actual
typesetting of the symbol. The \meta{PDF} part is simply:
\cmddef{glsentrypdfsymbol}
which is defined to just do \code{\gls{glsentrysymbol}\margm{entry-label}}. The
chances are that the code in the \gloskey{symbol} key won't be valid
in the PDF bookmarks, so you can redefine \gls{glsentrypdfsymbol} to
use a more appropriate field. (If you do redefine this command,
remember that it needs to fully expand.)
For example, if you are using \sty{glossaries-accsupp}, you could
use the \gloskey{symbolaccess} field:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glsentrypdfsymbol}}[1]\marg{\comment{}
\gls{glsentrysymbolaccess}\marg{\#1}}
\end{codebox}
Alternatively, if you are using \app{bib2gls} you can use the \TeX\
parser library to interpret a copy of the \gloskey{symbol} field and
use that. For example, with the \idxpl{resourceopt}:
\begin{codebox}
\resourceoptvalm{replicate-fields}{\gloskey{symbol}=\gloskey{user1}},
\resourceoptval{interpret-fields}{\gloskey{user1}}
\end{codebox}
This copies the value of the \gloskey{symbol} field to the
\gloskey{user1} field (\resourceopt{replicate-fields}) and then
replaces the value of the \gloskey{user1} field with its interpreted
value (\resourceopt{interpret-fields}).
This means you can then do:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glsentrypdfsymbol}}[1]\marg{\comment{}
\gls{glsentryuseri}\marg{\#1}}
\end{codebox}
(You may need \XeLaTeX\ or \LuaLaTeX\ with this method.) This allows
\gls{glossentrysymbol} to be used in a section heading with
standalone definitions. See the \app{bib2gls} manual for further
details about the \TeX\ interpreter.
If you want to adapt a style to use another field instead
of \gloskey{name}, you can use:
\cmddef{glossentrynameother}
This behaves just like \gls{glossentryname} (that is, it obeys the
\catattr{glossname} attribute, uses either the
\catattr{glossnamefont} attribute or \gls{glsnamefont} to format the
text, and uses the \idx{postnamehook}) but the text is obtained from
the field given \meta{field-label} instead of \gloskey{name}. The
\meta{field-label} argument must be the \idx{internalfieldlabel} (for
example \code{desc} rather than \code{description}).
\subsection{Post-Name Hooks}
\label{sec:postnamehooks}
The \sty{glossaries-extra} package adds a hook to
\gls{glossentryname} and \gls{Glossentryname} (which is used in \idxpl{glossarystyle}
to display the entry's name):
\cmddef{glsxtrpostnamehook}
This is the main \idx{postnamehook}, which implements additional
hooks to allow for customisation. By default, \gls{glsxtrpostnamehook}
checks the \catattr{indexname} attribute.
If the attribute exists for the category to which the entry belongs,
then the name is automatically indexed using:
\begin{compactcodebox}
\gls{glsxtrdoautoindexname}\margm{entry-label}\marg{\catattr{indexname}}
\end{compactcodebox}
See \sectionref{sec:autoindex} for further details.
The post-name hook \gls{glsxtrpostnamehook} will also use:
\cmddef{glsxtrpostnamecategory}
if it exists.
You can use \gls{glscurrententrylabel} to obtain the entry label
with the definition of this command. For example, suppose you are
using a glossary style the doesn't display the symbol, you can
insert the symbol after the name for a particular category, say,
the \qt{symbol} category:
\begin{codebox}
\cmd{newcommand}*\marg{\cmd{glsxtrpostnamesymbol}}\marg{\cmd{space}
(\gls{glsentrysymbol}\marg{\gls{glscurrententrylabel}})}
\end{codebox}
For convenience, you can use:
\cmddef{glsdefpostname}
This is simply a shortcut for:
\begin{compactcodebox}
\gls{csdef}\marg{\gls{glsxtrpostnamecategory}}\margm{definition}
\end{compactcodebox}
Note that it doesn't check if the command has already been defined.
The \idx{postnamehook} also does:
\cmddef{glsextrapostnamehook}
(before \gls{glsxtrpostnamecategory}) to allow for additional
non-category related code. This does nothing by default.
\subsection{Post-Description Hooks}
\label{sec:postdeschooks}
The \sty{glossaries} package provides the hook
\gls{glspostdescription}, which is placed after the description in
some of the predefined styles. The \sty{glossaries-extra-stylemods}
package modifies the predefined styles to ensure that they all use
this hook. This provides a convenient way to make slight
adjustments, such as appending content after the description,
without having to define a custom glossary style.
The \sty{glossaries-extra} package redefines
\gls{glspostdescription} so that it includes the following hook:
\cmddef{glsxtrpostdescription}
This new hook simply performs the \idx{catpostdeschook}:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtrpostdescription}}\marg{\comment{}
\cmd{csuse}\marg{glsxtrpostdesc\gls{glscategory}\marg{\gls{glscurrententrylabel}}}\comment{}
}
\end{codebox}
\begin{information}
The punctuation that is automatically inserted with \opt{postdot} or
\opt{postpunc} is placed after \gls{glsxtrpostdescription}, not
before.
\end{information}
If you want to modify the hook for all entries (without affecting
the \opt{postpunc} or \opt{postdot} options), then redefine
\gls{glsxtrpostdescription}.
If you want to adjust this hook according to the entry's category,
then you can simply redefine the \idx{catpostdeschook}.
\cmddef{glsxtrpostdesccategory}
Some common \idxpl{catpostdeschook} are provided:
\cmddef*{glsxtrpostdescgeneral}
The \idx{postdeschook} for the \cat{general} category.
\cmddef*{glsxtrpostdescterm}
The \idx{postdeschook} for the \cat{term} category.
\cmddef*{glsxtrpostdescacronym}
The \idx{postdeschook} for the \cat{acronym} category.
\cmddef*{glsxtrpostdescabbreviation}
The \idx{postdeschook} for the \cat{abbreviation} category.
The above all do nothing by default. You can redefine them with
\gls{renewcommand} or use:
\cmddef{glsdefpostdesc}
This will define (or redefine) \gls{glsxtrpostdesccategory}.
The package options \opt{symbols}, \opt{numbers} and \opt{index}
provide corresponding \idxpl{catpostdeschook}.
You can reference the current entry within these hooks using
\gls{glscurrententrylabel}, which is defined within the
\idx{glossary} (any of the \csfmt{print\ldots glossary} commands)
and also within the standalone commands, such as
\gls{glsxtrglossentry}.
\cmddef{glsxtrnopostpunc}
Suppresses the post-description punctuation that is automatically
inserted by package options \opt{postdot} or \opt{postpunc}.
The \sty{glossaries} package provides \gls{nopostdesc}, which may be
used in the \gloskey{description} to suppress the \idx{postdeschook}
for that entry. This suppresses both the post-description
punctuation and the additional \gls{glsxtrpostdescription} hook.
If you only want to suppress to punctuation, then use
\gls{glsxtrnopostpunc} instead.
\begin{information}
The \idxpl{postdeschook} are implemented by \gls{glspostdescription}
within the glossary style. If this command isn't used in the style,
then the additional hooks won't be available.
\end{information}
\cmddef{glsxtrrestorepostpunc}
If this command is placed in the definition of
\gls{glsxtrpostdescription} or added to the \idx{catpostlinkhook},
then it will counter-act any use of \gls{glsxtrnopostpunc} to
restore the post-description punctuation.
These commands have no effect outside of the glossary (except with
standalone entries that use \gls{glsxtractivatenopost} and
\gls{glspostdescription}, see \sectionref{sec:glossentry}).
\subsection{Number (Location) List}
\label{sec:glosstylenumlist}
The \idx{locationlist} is now placed inside the argument of:
\cmddef{GlsXtrFormatLocationList}
This is internally used by \gls{glossaryentrynumbers}. The
\opt{nonumberlist} option redefines \gls{glossaryentrynumbers} so that it
doesn't display the \idx{numberlist}, but it still saves the
\idx{numberlist} in case it's required. The desired font formatting
for the \idx{locationlist} can now more easily be set by redefining
\gls{GlsXtrFormatLocationList}, without interfering with
\gls{glossaryentrynumbers}.
\begin{important}
If you want to suppress the \idx{numberlist} always use the
\opt{nonumberlist} option instead of redefining
\gls{glossaryentrynumbers} to do nothing.
\end{important}
Note that if you are using the \idx{unsrtfam} the \idx{locationlist}
will only be present if the appropriate field has been set (see
\sectionref{sec:printunsrtlocations}). There's no need to save
locations with \app{bib2gls} or with \gls{printnoidxglossary}
because this is performed automatically (unlike \gls{printglossary}
where the trick with \gls{glossaryentrynumbers} is required to
capture the \idx{locationlist}).
Sometimes users like to insert \qt{page} or \qt{pages} in front of
the \idx{locationlist}. This is quite fiddly to do with the base
\sty{glossaries} package, but \sty{glossaries-extra}
provides a way of doing this. First you need to enable this
option and specify the text to display using:
\cmddef{GlsXtrEnablePreLocationTag}
where \meta{page tag} is the text to display if the \idx{locationlist} only
contains a single location and \meta{pages tag} is the text to display
otherwise. For example:
\begin{codebox}
\gls{GlsXtrEnablePreLocationTag}\marg{Page: }\marg{Pages: }
\end{codebox}
An extra run is required when using this command.
\begin{important}
Use \encap{glsignore} not \encap{@gobble} as the format if you
want to suppress the page number (and only index the entry once).
\end{important}
See the accompanying sample file \file{sample-pages.tex} for an
example.
\begin{information}
Note that \app{bib2gls} the \resourceopt{loc-prefix} resource option
inserts a prefix at the start of non-empty location lists, which
can be used as an alternative to \gls{GlsXtrEnablePreLocationTag}.
There is also a corresponding \resourceopt{loc-suffix} option to
provide a suffix.
\end{information}
\Idxpl{locationlist} displayed with \gls{printnoidxglossary}
internally use:
\gls{glsnoidxdisplayloc}
This command is provided by \sty{glossaries}, but is modified by
\sty{glossaries-extra} to check for the start and end range
formation identifiers \verb|(| and \verb|)| which are discarded to
obtain the actual control sequence name that forms the location
formatting command.
If the range identifiers aren't present, this just uses
\cmddef{glsxtrdisplaysingleloc}
otherwise it uses
\cmddef{glsxtrdisplaystartloc}
for the start of a range (where the identifier has been stripped
from \meta{format}) or
\cmddef{glsxtrdisplayendloc}
for the end of a range (where the identifier has been stripped
from \meta{format}).
By default the start range command saves the format in:
\cmddef{glsxtrlocrangefmt}
and does:
\begin{compactcodebox}
\gls{glsxtrdisplaysingleloc}\margm{format}\margm{location}
\end{compactcodebox}
(If the format is empty, it will be replaced with \code{glsnumberformat}.)
The end command checks that the format matches the start of the
range, does:
\cmddef{glsxtrdisplayendlochook}
(which does nothing by default), followed by:
\begin{compactcodebox}
\gls{glsxtrdisplaysingleloc}\margm{format}\margm{location}
\end{compactcodebox}
and then sets \gls{glsxtrlocrangefmt} to empty.
This means that the list
\begin{codebox}
\gls{glsnoidxdisplayloc}\marg{}\marg{page}\marg{(textbf}\marg{1},
\gls{glsnoidxdisplayloc}\marg{}\marg{page}\marg{textbf}\marg{1},
\gls{glsnoidxdisplayloc}\marg{}\marg{page}\marg{)textbf}\marg{1}.
\end{codebox}
doesn't display any differently from
\begin{codebox}
\gls{glsnoidxdisplayloc}\marg{}\marg{page}\marg{textbf}\marg{1},
\gls{glsnoidxdisplayloc}\marg{}\marg{page}\marg{textbf}\marg{1},
\gls{glsnoidxdisplayloc}\marg{}\marg{page}\marg{textbf}\marg{1}.
\end{codebox}
but it does make it easier to define your own custom list handler
that can accommodate the ranges.
\subsection{Indexing Groups}
\label{sec:glosgroups}
The letter or symbol or number \idxpl{group} are a by-product of the
\idx{indexingapp}. These are usually determined during the sorting
according to the first (significant) character of the sort value. If
the first character is an alphabetical character, the group is a
letter group, with the group label the same as the letter. If the
sort value is numeric, the group is a number group, with the label
\code{glsnumbers}, otherwise the group is a symbol group with the label
\code{glssymbols}.
\begin{information}
For the \idx{unsrtfam}, see \sectionref{sec:printunsrtgroups} for
more details about how \idx{group} headers are inserted into the
\idx{glossary}. Only those commands are able to support
sub-\idxpl{group}.
\end{information}
With \app{xindy}, the number group is automatically provided with
the \optval{xindy}{glsnumbers} package option. It can be suppressed
with \optval{xindy}{\marg{glsnumbers=false}} (see the base
\sty{glossaries} user manual for further details).
With \app{bib2gls}, group formation requires \switch{group} (or
\switch{g}). This setting is off by default to allow for a
faster process where no groups are required. When this setting is
on, there are additional groups, depending on the sort method. For
example, if you use a date-time sort method, then you will have
date-time groups.
\begin{warning}
Take care not to confusion \idxpl{group} with hierarchy.
See \gallerypage{logicaldivisions}{Gallery: Logical Glossary Divisions
(type vs group vs parent)} for the difference between the
\gloskey{group}, \gloskey{type} and \gloskey{parent} fields.
\end{warning}
The base \sty{glossaries} package provides a simplistic way of
assigning a title to a group to allow for the use of language-sensitive
commands \gls{glssymbolsgroupname} and \gls{glsnumbersgroupname},
which correspond to the \code{glssymbols} and \code{glsnumbers}
groups. The more flexible groups that can be created with
\app{bib2gls} require a better approach that is less likely to cause
a conflict.
\cmddef{glsxtrsetgrouptitle}
Globally assigns the given title \meta{group-title} to the group identified
by \meta{group-label}. This command is used implicitly within the
\ext{glstex} file to assign titles to groups obtained by \app{bib2gls}.
Judicious definitions of the helper commands provided by
\app{bib2gls} can provide a more flexible way of assigning groups.
\cmddef{glsxtrlocalsetgrouptitle}
As above but the assignment is local.
\cmddef{glsxtrgetgrouptitle}
Obtains the title corresponding to the group identified by
\meta{group-label} and stores the result in \meta{cs}. This command
first checks if a title has been assigned by
\gls{glsxtrgetgrouptitle} and then, for compatibility with the base
\sty{glossaries} package, it will test for the existence of
\csfmt{\meta{group-label}groupname} if \meta{group-label} is
\code{glssymbols} or \code{glsnumbers} or a single character.
If no title is obtained from any of these tests, then the title will
be assumed to be the same as the label.
\begin{information}
The \gls{printnoidxglossary} command has a slightly different
method, which uses the character code so it's not suitable with
\idx{utf8}. In general, \gls{printnoidxglossary} is best avoided,
where possible, and is inappropriate for locale-sensitive sorting.
\end{information}
\subsection{\stytext{glossaries-extra-stylemods}}
\label{sec:stylemods}
The \sty{glossaries-extra-stylemods} package (more conveniently
loaded through the \sty{glossaries-extra}
\opt{stylemods} option) modifies some of the predefined
styles that are provided with the \sty{glossaries} package.
\begin{important}
Any styles loaded after \sty{glossaries-extra-stylemods} won't be
patched.
\end{important}
The \opt{stylemods} option may be provided without a value, in which
case all currently defined styles will be patched. Alternatively,
you can supply a comma-separated list as the value, which indicates
that, for each \meta{element} in the list, the package
\styfmt{glossary\dhyphen\meta{element}} should be loaded and, if
it's a package provided with the base \sty{glossaries} package,
patched. For example:
\begin{compactcodebox}
\cmd{usepackage}\marg{glossaries-extra}
\cmd{usepackage}\marg{glossary-longragged}
\cmd{usepackage}\marg{glossary-mcols}
\cmd{usepackage}\marg{glossaries-extra-stylemods}
\gls{setglossarystyle}\marg{\glostyle{mcolindex}}
\end{compactcodebox}
is equivalent to:
\begin{compactcodebox}
\cmd{usepackage}\oarg{\optvalm{stylemods}{longragged,mcols},\optval{style}{\glostyle{mcolindex}}}\marg{glossaries-extra}
\end{compactcodebox}
You may prefer to combine \optval{stylemods} with \opt{nostyles} to
reduce the overhead of loading unnecessary packages.
The \sty{glossaries-extra-stylemods} package adjusts the predefined
styles so that they all use \gls{glspostdescription} and replaces
any hard-coded space before the \idx{locationlist} with
\cmddef{glsxtrprelocation}
You can therefore redefine that command in
combination with \opt{postpunc} to alter the separator before the
\idx{locationlist}. For example, to have a comma followed by
\gls{hfil}:
\begin{codebox}
\cmd{usepackage}[\opteqvalref{postpunc}{comma},\opt{stylemods}]\marg{glossaries-extra}
\cmd{renewcommand}\marg{\gls{glsxtrprelocation}}\marg{\gls{hfil}}
\end{codebox}
\begin{warning}
Be careful with doing this as it will look odd if the \gls{locationlist} is
missing.
\end{warning}
With \app{bib2gls} you can instead redefine \gls{glsxtrprelocation}
to do nothing and set the location prefixes with \resourceopt{loc-prefix}
which will only apply if the entry has a \gls{locationlist}.
Alternatively, you could redefine \gls{glsxtrprelocation} to check
if the \gloskey{location} field is set.
\subsubsection{Inline Style}
\label{sec:stylemodsinline}
The patched \glostyle{inline} style is dealt with slightly
differently. The original definition provided by the
\sty{glossary-inline} package uses \gls{glspostdescription} at the
end of the glossary (not after each entry description) within the
definition of \gls{glspostinline}. The style modification changes
this so that \gls{glspostinline} just does a full stop followed by
space factor adjustment, and the description
\gls{glsinlinedescformat} and sub-entry description formats
\gls{glsinlinesubdescformat} are redefined to include
\gls{glsxtrpostdescription} (not \gls{glspostdescription}). This means
that the modified \glostyle{inline} style isn't affected by the
\opt{nopostdot} option, but the \idx{catpostdeschook}
can still be used.
\subsubsection{Tabular Styles}
\label{sec:stylemodstab}
The \env{tabular}-like styles, such as \glostyle{long} are
adjusted so that the \gls{ifglsnogroupskip} conditional (set with
\opt{nogroupskip}) is moved outside of the definition of
\gls{glsgroupskip} to avoid problems that cause an \qt{Incomplete
\csfmt{iftrue}} error with \gls{printunsrtglossary} and
\gls{printnoidxglossary}. This means that if you want to change this
conditional using \gls{setupglossaries} or using the
\printglossopt{nogroupskip} option in \gls{printglossary},
\gls{printnoidxglossary} or \gls{printunsrtglossary}, you must also
reset the \idx{glossarystyle}.
\subsubsection{List Styles}
\label{sec:stylemodslist}
The \glostyle{list} styles use:
\cmddef{glslistprelocation}
(which defaults to \gls{glsxtrprelocation}) for top-level items and:
\cmddef{glslistchildprelocation}
(which defaults to \gls{glslistprelocation}) for child items.
The description (including the post-description hook)
is governed by:
\cmddef{glslistdesc}
for the \glostyle{list} and \glostyle{altlist} styles (but not the
\glostyle{listdotted} variations).
The hard-coded \code{\gls{item}\oargm{target and name}} is replaced
with:
\cmddef{glslistitem}
The \glostyle{altlist} styles use:
\cmddef{glsaltlistitem}
which internally uses \gls{glslistitem}.
The header item (for the list styles that should the group title,
such as \glostyle{listgroup}) is governed by:
\cmddef{glslistgroupheaderitem}
This ignores the \meta{group-label} by default and simply places the
second argument in the optional argument of \gls{item}. The
\meta{header code} is the formatted group title, possibly including
a hypertarget. The spacing after the group item is given by:
\cmddef{glslistgroupafterheader}
For just the \glostyle{list} style and its letter group variations
(not the \glostyle{altlist} or \glostyle{listdotted} variations) the
\idx{locationlist} for child entries is followed by:
\cmddef{glslistchildpostlocation}
which defaults to a \idx{fullstop}.
The default value of \gls{glslistdottedwidth} is changed so that
it's set at the start of the document (if it hasn't been changed in
the preamble). This should take into account situations where
\gls{hsize} isn't set until the start of the document.
The separator between groups (if not \opt{nogroupskip}) is now
given by:
\cmddef{glslistgroupskip}
This defaults to \gls{indexspace} with penalties to deter page
breaks. This command isn't used if \opt{nogroupskip} is set.
\subsubsection{Tree Styles}
\label{sec:stylemodstree}
The group headings for styles like \glostyle{treegroup} are
formatted with:
\cmddef{glstreegroupheaderfmt}
The navigation elements for styles like \glostyle{treehypergroup} is
formatted with:
\cmddef{glstreenavigationfmt}
The above two commands are defined in terms of \gls{glstreenamefmt},
since that was the command originally used
for the group headings and navigation. This now allows these
different elements to be defined independently, but the most common
redefinition is for \gls{glstreenamefmt} to remove the bold in the
name. If the bold is still required for the group heading and navigation
elements, then both other commands also need redefining. To simplify
matters, all three commands have been defined to use:
\cmddef{glstreedefaultnamefmt}
This simply does \code{\gls+{textbf}\margm{text}}.
This means that if you want to change all three to use a particular
style you only need to redefine \gls{glstreedefaultnamefmt}, but if
you only want to redefine \gls{glstreenamefmt} without affecting the
other two commands, then you now can.
The separator between groups without headers is given by:
\cmddef{glstreegroupskip}
This defaults to just \gls{indexspace} without penalties. This
command isn't used if \opt{nogroupskip} is set. (The penalties
introduced in v1.41 were moved to \gls{glstreegroupheaderskip} in
v1.42 as they are inappropriate when there's no header.)
The separator between groups with headers is now given by:
\cmddef{glstreegroupheaderskip}
This defaults to \gls{glstreegroupskip} with penalties to deter page
breaks after the group heading.
The styles that display the \idx{group} titles now use:
\cmddef{glstreePreHeader}
This does nothing by default and is inserted before the group title.
You can redefine it to add the group title to the PDF bookmarks. For
example, if the \idx{glossary} title uses \gls{chapter} then:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glstreePreHeader}}[2]\marg{\comment{}
\gls{pdfbookmark}\oarg{1}\marg{\#2}\marg{\gls{currentglossary}.\#1}\comment{}
}
\end{codebox}
will insert section-level bookmarks. The use of \gls{currentglossary}
helps to provide unique bookmark labels in the event of multiple
glossaries.
The \sty{glossary-tree} package provides the commands
\cmddef{glstreepredesc}
and
\cmddef{glstreechildpredesc}
(which both default to a space) and uses them in the \glostyle{tree}-like
styles, but not for the \glostyle{alttree} style. The
\sty{glossaries-extra-stylemods} package modifies the
\glostyle{alttree} style so that it has equivalent hooks:
\cmddef{glsalttreepredesc}
and
\cmddef{glsalttreechildpredesc}
These do nothing by default.
The \glostyle{index}-like and \glostyle{tree}-like styles
insert the pre-\idx{locationlist} space with:
\cmddef{glstreeprelocation}
(which defaults to \gls{glsxtrprelocation}) for top-level items and
\cmddef{glstreechildprelocation}
(which defaults to \gls{glstreeprelocation}) for child items.
The styles like \glostyle{treenoname} use:
\cmddef{glstreenonamedesc}
to display the
pre-description separator, the description and the post-description
hook. Similarly for the symbol:
\cmddef{glstreenonamesymbol}
The above are just used for top-level entries. Child entries don't
have the name or symbol displayed for the \glostyle{treenoname}
styles, so there's only a command for the child description:
\cmddef{glstreenonamechilddesc}
For the \glostyle{tree} styles (but not the \glostyle{treenoname} or
\glostyle{alttree} styles), the description is displayed using:
\cmddef{glstreedesc}
and the symbol with:
\cmddef{glstreesymbol}
Again the above two commands are just for top-level entries. The
child entries use:
\cmddef{glstreechilddesc}
for the description and
\cmddef{glstreechildsymbol}
for the symbol.
There are now wrapper commands for
\gls{glstreedesc} and \gls{glstreechilddesc} that check for
the description and symbol to determine what separator to use
before the page list:
\cmddef{glstreeDescLoc}
for top-level entries and
\cmddef{glstreeChildDescLoc}
for sub-entries.
If either the symbol or description is present these will use
\gls{glstreeprelocation} or \gls{glstreechildprelocation},
respectively. Otherwise, both will use:
\cmddef{glstreeNoDescSymbolPreLocation}
The default is a space. This means that you could have, say, a
comma followed by a space for terms that are simply an alias, but
just have a space for terms that have a description that ends with a
full stop (or that just have a symbol without a description) where
the comma would be inappropriate.
\begin{information}
Version 1.42 has corrected an error that was introduced to
v1.41 that caused the name to run into the location list if there
was no symbol and no description.
\end{information}
There are some additional commands for use with the
\glostyle{alttree} style to make it easier to modify.
These commands are only defined if the
\sty{glossary-tree} package has already been loaded, which is
typically the case unless the \opt{notree} or \opt{nostyles} option has been used
when loading \sty{glossaries}.
\cmddef{gglssetwidest}
This is like \gls{glssetwidest} but performs a global assignment.
\cmddef{eglssetwidest}
This is like \gls{glssetwidest} but expands \meta{name}.
\cmddef{xglssetwidest}
This is like \gls{eglssetwidest} but performs a global assignment.
The following only set the value if \meta{name} is wider than the
current value. Local update:
\cmddef{glsupdatewidest}
Global update:
\cmddef{gglsupdatewidest}
Locale update (expands \meta{name}):
\cmddef{eglsupdatewidest}
Global update (expands \meta{name}):
\cmddef{xglsupdatewidest}
The widest entry value can later be retrieved using:
\cmddef{glsgetwidestname}
which expands to the widest top-level name and:
\cmddef{glsgetwidestsubname}
expands to either the widest name for the given
\idx{hierarchicallevel} or to the widest top-level name, if no
widest name set for \meta{level}.
Note that if you are using \app{bib2gls}, you can use the
resource option \resourceopt{set-widest} which will try to determine the
widest name of all the selected entries. This isn't guaranteed
to work as it may depend on fonts or commands that \app{bib2gls}
can't replicate, but it should be suitable for names that just
consist of text, and can be more efficient than iterating over all
the defined entries using \TeX.
The command \gls{glsfindwidesttoplevelname} provided by
\sty{glossary-tree} has a CamelCase synonym:
\cmddef{glsFindWidestTopLevelName}
Similar commands are also provided. If the optional \meta{glossary
labels} is omitted, the list of all non-\idxpl{ignoredglossary} is
assumed.
\cmddef{glsFindWidestUsedTopLevelName}
This has an additional check that the entry has been \idxc{firstuseflag}{used}.
Naturally this is only useful if the glossaries that use
the \glostyle{alttree} style occur at the end of the document.
This command should be placed just before the start of the glossary.
(Alternatively, place it at the end of the document and save
the value in the auxiliary file for the next run.)
\cmddef{glsFindWidestUsedAnyName}
This is like the previous command but if doesn't check the
\gloskey{parent} key. This is useful if all
\idxpl{hierarchicallevel} should have the same width for the name.
\cmddef{glsFindWidestAnyName}
This is like the previous command but doesn't check if the entry
has been used.
\cmddef{glsFindWidestUsedLevelTwo}
This is like \gls{glsFindWidestUsedTopLevelName} but also sets
the first two sub-levels as well. Any entry that has a
great-grandparent is ignored.
\cmddef{glsFindWidestLevelTwo}
This is like the previous command but doesn't check if the entry has
been used.
\cmddef{glsFindWidestUsedAnyNameSymbol}
This is like \gls{glsFindWidestUsedAnyName} but also measures the
symbol. The length of the widest symbol is stored in
\meta{register}.
\cmddef{glsFindWidestAnyNameSymbol}
This is like the previous command but it doesn't check if the entry
has been used.
\cmddef{glsFindWidestUsedAnyNameSymbolLocation}
This is like \gls{glsFindWidestUsedAnyNameSymbol} but also
measures the \idx{locationlist}. This requires
\gls{glsentrynumberlist}.
The length of the widest symbol is stored in \meta{register1}
and the length of the widest \idx{locationlist} is stored in
\meta{register2}.
\cmddef{glsFindWidestAnyNameSymbolLocation}
This is like the previous command but it doesn't check if the entry
has been used.
\cmddef{glsFindWidestUsedAnyNameLocation}
This is like \gls{glsFindWidestUsedAnyNameSymbolLocation} but doesn't
measure the symbol. The length of the widest \idx{locationlist}
is stored in \meta{register}.
\cmddef{glsFindWidestAnyNameLocation}
This is like the previous command but doesn't check if the entry has
been used.
The layout of the symbol, description and \idx{locationlist}
is governed by:
\cmddef{glsxtralttreeSymbolDescLocation}
for top-level entries and
\cmddef{glsxtralttreeSubSymbolDescLocation}
for sub-entries.
There is now a user level command that performs the initialisation
for the \glostyle{alttree} style:
\cmddef{glsxtralttreeInit}
The paragraph indent for subsequent paragraphs in multi-paragraph
descriptions is provided by the length:
\cmddef{glsxtrAltTreeIndent}
For additional commands that are available with the
\glostyle{alttree} style, see the documented code
(\filefmt{glossaries-extra-code.pdf}). See also
the accompanying sample files \file{sample-alttree.tex},
\file{sample-alttree-sym.tex} and
\file{sample-alttree-marginpar.tex}.
\section{New Glossary Styles}
\label{sec:newglossarystyles}
The \sty{glossaries-extra} package comes with some new styles.
The associated style package needs to be loaded. This can be done
with \csfmt{usepackage} but it's simpler to use the \opt{stylemods}
option. For example:
\begin{codebox}
\cmd{usepackage}\oarg{\optval{stylemods}{bookindex},\optval{style}{bookindex}}\marg{glossaries-extra}
\end{codebox}
If you don't require any of the base styles, use \opt{nostyles} (but
note that some style packages automatically load another style
package if it the style builds on an existing one).
\subsection{\stytext{glossary-bookindex} package}
\label{sec:bookindex}
\glsstartrange{opt.glostyle.bookindex,pkg.glossary-bookindex}%
The \inlineglsdef{pkg.glossary-bookindex} package provides the glossary style
\inlineglsdef{opt.glostyle.bookindex}. This is very similar to the
\glostyle{mcolindexgroup} style but is designed for indexes, so by
default only the name and location list are displayed. This style is
demonstrated in \exampleref{ex:bookindex} (using \app{bib2gls}).
Note that some entries don't have \idxpl{locationlist} because they
weren't \recorded\ in the document, but were included as
dependencies. See \sectionref{sec:seenoindex} for dealing with
cross-references that may not be required.
\begin{resultbox}[float]
\createexample*[label={ex:bookindex},
arara={pdflatex,bib2gls: { group: on },pdflatex,pdfcrop},
title={The \optfmt{bookindex} style},
description={Example document demonstrating the bookindex style}]
{\cmd{usepackage}\oarg{record,nostyles,stylemods=bookindex,style=bookindex}\marg{glossaries-extra}^^J%
\gls{GlsXtrLoadResources}\oarg{src=example-glossaries-xr,^^J
selection=\marg{recorded and deps and see not also}^^J%
}
}
{\gls{glsaddeach}\marg{lorem,amet,adipiscing,placerat,arcu,vulputate}^^J%
\gls{glsaddeach}\oarg{thevalue=2}\marg{arcu,consectetuer,donec,augue}^^J%
\gls{glsaddeach}\oarg{thevalue=3}\marg{arcu,lorem,nulla}^^J%
\gls{printunsrtglossary}
}
\end{resultbox}
The \glostyle{bookindex} style only supports a maximum
\idx{hierarchicallevel} of 2 (top-level, level~1 and level~2). It's
primarily designed for use with \app{bib2gls}. It may be used with
other indexing options, but some features may not be present and
\idx{utf8} characters may cause a problem with non-Unicode engines in
letter group headings or PDF bookmarks. (\app{bib2gls} uses numeric
identifies by default to avoid these problems, see \sectionref{sec:printunsrtgroups}.)
The number of columns is given by:
\cmddef{glsxtrbookindexcols}
which defaults to 2.
This style uses the \env{multicols} environment. If
the command:
\cmddef{glsxtrbookindexcolspread}
isn't empty then it's supplied as the optional argument
following \code{\cbeg{multicols}\margm{n}}. You can switch from
\env{multicols} to \env{multicols*} by redefining:
\cmddef{glsxtrbookindexmulticolsenv}
For example:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glsxtrbookindexmulticolsenv}}\marg{multicols*}
\end{codebox}
Each top-level entry is displayed using:
\cmddef{glsxtrbookindexname}
This just does \code{\gls{glossentryname}\margm{entry-label}} by default.
For example, if you want the symbol to be included:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsxtrbookindexname}}[1]\marg{\comment{}
\gls{glossentryname}\marg{\#1}\comment{}
\gls{ifglshassymbol}\marg{\#1}\marg{\cmd{space} (\gls{glossentrysymbol}\marg{\#1})}\marg{}\comment{}
}
\end{codebox}
or if you want the description (if set):
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsxtrbookindexname}}[1]\marg{\comment{}
\gls{glossentryname}\marg{\#1}\comment{}
\gls{ifglshasdesc}\marg{\#1}\marg{\cmd{space} \gls{glossentrydesc}\marg{\#1}\gls{glspostdescription}}{}\comment{}
}
\end{codebox}
(which picks up the \idx{postdeschook}).
Alternatively you can use the \gls{glsxtrpostnamecategory}
hook to append information after the name according to the entry's
category.
Sub-entries are displayed using:
\cmddef{glsxtrbookindexsubname}
which just defaults to \code{\gls{glsxtrbookindexname}\margm{entry-label}}.
The separator used before the \idx{locationlist} for top-level
entries is given by:
\cmddef{glsxtrbookindexprelocation}
where \meta{entry-label} is the entry's label. This checks if
the \gloskey{location} field has been set. If it has, it
does:
\begin{codebox}
,\gls{glsxtrprelocation}
\end{codebox}
otherwise it just does \gls{glsxtrprelocation} (which defaults to
\csfmt{space}) with no comma. If you're using \app{bib2gls}
with \resourceoptval{save-locations}{false}, the
\gloskey{location} field won't be set.
The separator used before the \idx{locationlist} for sub-entries is given by:
\cmddef{glsxtrbookindexsubprelocation}
which defaults to \code{\gls{glsxtrbookindexprelocation}\marg{entry-label}}.
The actual location list is encapsulated with:
\cmddef{glsxtrbookindexlocation}
for top-level entries and:
\cmddef{glsxtrbookindexsublocation}
for sub-entries. These both just do \meta{location list} by default.
The separator used between a top-level parent and child entry is
given by:
\cmddef{glsxtrbookindexparentchildsep}
This defaults to \csfmt{nopagebreak}.
The separator used between a sub-level parent and child entry is
given by:
\cmddef{glsxtrbookindexparentsubchildsep}
This defaults to \gls{glsxtrbookindexparentchildsep}.
The separator between top-level entries is given by:
\cmddef{glsxtrbookindexbetween}
This comes after the entry given by \meta{entry1-label}, if the entry
has no children, or after the last descendent otherwise,
so it always comes immediately before the entry given
by \meta{entry2-label} unless the entry occurs at the start of
a group. This does nothing by default.
The separator between two level~1 entries is given by:
\cmddef{glsxtrbookindexsubbetween}
The separator between two level~2 entries is given by:
\cmddef{glsxtrbookindexsubsubbetween}
At the end of each letter \idx{group}, the following hooks
are done in order:
\cmddef{glsxtrbookindexsubsubatendgroup}
where \meta{entry-label} is the label of the last level~2 entry
\cmddef{glsxtrbookindexsubatendgroup}
where \meta{entry-label} is the label of the last level~1 entry
\cmddef{glsxtrbookindexatendgroup}
where \meta{entry-label} is the label of the last level~0 entry.
For example, the resource option \resourceoptval{seealso}{omit}
instructs \app{bib2gls} to omit the \gloskey{seealso} cross-reference
from the \idx{locationlist}. (The \gloskey{see} cross-reference
will still be added unless you also have \resourceoptval{see}{omit}.)
The \gloskey{seealso} cross-reference can instead be appended after
the child entries using:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glsxtrbookindexatendgroup}}[1]\marg{\comment{}
\gls{glsxtrifhasfield}\marg{\gloskey{seealso}}\marg{\#1}\comment{}
\marg{\gls{glstreesubitem}\gls{glsxtruseseealso}\marg{\#1}}\marg{}\comment{}
}
\cmd{renewcommand}\marg{\gls{glsxtrbookindexbetween}}[2]\marg{\comment{}
\gls{glsxtrbookindexatendgroup}\marg{\#1}\comment{}
}%
\codepar
\cmd{renewcommand}\marg{\gls{glsxtrbookindexsubatendgroup}}[1]\marg{\comment{}
\gls{glsxtrifhasfield}\marg{\gloskey{seealso}}\marg{\#1}\comment{}
\marg{\gls{glstreesubsubitem}\gls{glsxtruseseealso}\marg{\#1}}\marg{}\comment{}
}
\codepar
\cmd{renewcommand}\marg{\gls{glsxtrbookindexsubbetween}}[2]\marg{\comment{}
\gls{glsxtrbookindexsubatendgroup}\marg{\#1}\comment{}
}
\codepar
\cmd{renewcommand}\marg{\gls{glsxtrbookindexsubsubatendgroup}}[1]\marg{\comment{}
\gls{glsxtrifhasfield}\marg{\gloskey{seealso}}\marg{\#1}\comment{}
\marg{\gls{glstreeitem}\cmd{hspace}*\marg{40pt}\gls{glsxtruseseealso}\marg{\#1}}\marg{}\comment{}
}
\codepar
\cmd{renewcommand}\marg{\gls{glsxtrbookindexsubsubbetween}}[2]\marg{\comment{}
\gls{glsxtrbookindexsubsubatendgroup}\marg{\#1}\comment{}
}
\end{codebox}
This uses \gls{glstreesubitem} and \gls{glstreesubsubitem}
to indent the cross-reference according to the next level down,
so the cross-reference for a top-level entry is aligned with
the sub-entries, and a level~1 entry has its cross-reference
aligned with sub-sub-entries. In the event that a level~2
entry has a cross-reference, this is indented a bit further
(but it won't be aligned with any deeper level as the
\glostyle{bookindex} style only supports a maximum of two
sub-levels).
The \glostyle{bookindex} style uses group headings. (If you
use \app{bib2gls} remember to invoke it with the \switch{group}
or \switch{g} switch, see \sectionref{sec:printunsrtgroups}.) The heading will use:
\cmddef{glsxtrbookindexbookmark}
If \gls{pdfbookmark} has been defined, this will
use that command to bookmark the group title. If
\optval{section}{chapter} is set (default if chapters are defined)
then this uses level~1 otherwise it uses level~2. You can
redefine this command if this isn't appropriate.
If \gls{pdfbookmark} hasn't been defined, this command does nothing.
The group heading is formatted according to:
\cmddef{glsxtrbookindexformatheader}
which is defined as:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtrbookindexformatheader}}[1]\marg{\comment{}
\cmd{par}\marg{\cmd{centering}\gls{glstreegroupheaderfmt}\marg{\#1}\cmd{par}}\comment{}
}
\end{codebox}
where \gls{glstreegroupheaderfmt} is provided by the
\sty{glossary-tree} package, which is automatically loaded.
Note that the entry names aren't encapsulated with
\gls{glstreenamefmt}.
The skip after a \idx{group} header is given by:
\cmddef{glsxtrbookindexpregroupskip}
The argument is the skip that would normally be inserted if there
wasn't a group header.
The \sty{glossary-bookindex} package provides some supplementary
commands that aren't used by default, but may be used when
adjusting the style. These commands should only be
used within one of the \csfmt{print\ldots glossary} commands.
(That is, they should only be used in \idxpl{glossarystyle} or in
hooks.)
\cmddef{glsxtrbookindexmarkentry}
This writes information to the \ext{aux} file that
can be read on the next run to obtain the first and last entry on
each page of the glossary.
You can display the first entry associated with the current page using:
\cmddef{glsxtrbookindexfirstmark}
and the last entry associated with the current page using:
\cmddef{glsxtrbookindexlastmark}
These do nothing if there are no entries marked on the current page
(or if the document build isn't up to date).
The entry is formatted using:
\cmddef{glsxtrbookindexfirstmarkfmt}
for the first instance and
\cmddef{glsxtrbookindexlastmarkfmt}
for the last.
These commands are designed for use in page headers or footers
where the page number is stable. For example, \gls{glsxtrbookindexname}
can be redefined to mark the current entry:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glsxtrbookindexname}}[1]\marg{\comment{}
\gls{glsxtrbookindexmarkentry}\marg{\#1}\comment{}
\gls{glossentryname}\marg{\#1}\comment{}
}
\end{codebox}
If you only want to mark the top-level entries, remember
to redefine \gls{glsxtrbookindexsubname} as it defaults
to \gls{glsxtrbookindexname}:
\begin{codebox}
\gls{renewcommand}\marg{\gls{glsxtrbookindexsubname}}[1]\marg{\comment{}
\gls{glossentryname}\marg{\#1}\comment{}
}
\end{codebox}
Then if you're using \sty{fancyhdr} you can set the page style
to show the first and last entry for the current page with:
\begin{codebox}
\cmd{pagestyle}\marg{fancy}\comment{}
\cmd{lhead}\marg{\gls{thepage}}\comment{}
\cmd{lfoot}\marg{\gls{glsxtrbookindexfirstmark}}\comment{}
\cmd{cfoot}\marg{}\comment{}
\cmd{rfoot}\marg{\gls{glsxtrbookindexlastmark}}\comment{}
\end{codebox}
\glsendrange{opt.glostyle.bookindex,pkg.glossary-bookindex}%
\subsection{\stytext{glossary-longextra} package}
\label{sec:longextra}
\glsstartrange{pkg.glossary-longextra}%
The \inlineglsdef{pkg.glossary-longextra} package provides additional
\env{tabular}-like styles similar to those provided by
\sty{glossary-longbooktabs} (which is automatically loaded). These don't support
\idxpl{hierarchicallevel} except for homographs (level~1 entries
with the same name as their parent).
By default, these styles use the
\env{longtable} environment, but if you know that your \idx{glossary} won't
span more than a page and you need to use it in a context that's
incompatible with \env{longtable}, you can instead setup these styles
to use \env{tabular} instead. In order to do this you must use:
\cmddef{GlsLongExtraUseTabulartrue}
\emph{before the style is set}. If you later want to switch back to
using \env{longtable} for another \idx{glossary}, use:
\cmddef{GlsLongExtraUseTabularfalse}
(or scope \gls{GlsLongExtraUseTabulartrue}). Again, the style must
be set after this change to the conditional is implemented. You can
test this setting with:
\cmddef{ifGlsLongExtraUseTabular}
For example:
\begin{codebox}
\gls{GlsLongExtraUseTabulartrue}
\gls{setglossarystyle}\marg{\glostyle{long-name-desc}}
\end{codebox}
or
\begin{codebox}
\gls{GlsLongExtraUseTabulartrue}
\gls{printunsrtglossary}\oarg{\printglossoptval{style}{\glostyle{long-name-desc}}}
\end{codebox}
If you switch to \env{tabular}, the default vertical
alignment is obtained from:
\cmddef{glslongextraTabularVAlign}
This should expand to one of: \code{c} (centred), \code{t} (top) or
\code{b} (bottom). The default is \code{c}.
For either \env{tabular} or \env{longtable}, the column titles are
formatted according to:
\cmddef{glslongextraHeaderFmt}
which simply does \code{\cmd{textbf}\margm{text}} by default.
As with the \glostyle{long}-like styles, the header text for the
columns are given by the language-sensitive commands:
\gls{entryname}, \gls{descriptionname}, \gls{symbolname} and
\gls{pagelistname}.
Most styles show the \gloskey{name} which, as with other predefined
styles, also includes the entry item number (if \opt{entrycounter} is
on) and hypertarget anchor. These are all performed for top-level
entries with:
\cmddef{glslongextraNameFmt}
This uses \gls{glossentryname}, so it supports the
\idx{postnamehook} and associated attributes. Child entries are
displayed with:
\cmddef{glslongextraSubNameFmt}
This includes the sub-entry item number (if \opt{subentrycounter} is
on) and the hypertarget anchor. The actual name isn't shown by
default.
The horizontal alignment for the name column is obtained with:
\cmddef{glslongextraNameAlign}
This expands to \code{l} by default.
For styles that show the \gloskey{description}, that's formatted
with:
\cmddef{glslongextraDescFmt}
for top-level entries, which uses \gls{glossentrydesc} and the
\idx{postdeschook}, and
\cmddef{glslongextraSubDescFmt}
for child entries (which just uses \gls{glslongextraDescFmt}).
The horizontal alignment for the description column is obtained with:
\cmddef{glslongextraDescAlign}
This expands to
\code{>\marg{\cmd{raggedright}}p\marg{\gls{glsdescwidth}}} by default.
This means ragged-right paragraph style with width given by
\gls{glsdescwidth}.
(See the documentation for the \sty{array} package for information
about this alignment syntax.) If a widest name has been set,
\gls{glsdescwidth} will be calculated according to the best fit for
the given style.
If you are using \app{bib2gls}, you may be able to use the
\resourceopt{set-widest} option, otherwise to set the widest name, use:
\cmddef{glslongextraSetWidest}
If you have already used \gls{glssetwidest} provided with the \glostyle{alttree}
style, the default widest name will be obtained from that, but note
that only level~0 is supported for the \sty{glossary-longextra}
styles.
You can update the widest name with:
\cmddef{glslongextraUpdateWidest}
This is like \gls{glslongextraSetWidest} but will only set the new
value if it's wider than the current widest name.
Although these styles don't support hierarchy, the following is
provided for child entries:
\cmddef{glslongextraUpdateWidestChild}
This does nothing by default. If \gls{glslongextraSubNameFmt} is
redefined to show the child name, then the above command will need
to be redefined to use \gls{glslongextraUpdateWidest}.
For styles that show the \idx{locationlist}, that's formatted
with:
\cmddef{glslongextraLocationFmt}
for top-level entries. Child \idxpl{locationlist} are formatted
with:
\cmddef{glslongextraSubLocationFmt}
Both of these simply do the \meta{location list} argument.
The horizontal alignment for the \idx{locationlist} column is obtained with:
\cmddef{glslongextraLocationAlign}
This expands to
\code{>\marg{\cmd{raggedright}}p\marg{\gls{glspagelistwidth}}} by default.
This means ragged-right paragraph style with width given by
\gls{glspagelistwidth}.
For styles that show the \gloskey{symbol} (in addition to the
\gloskey{name}), that's formatted with:
\cmddef{glslongextraSymbolFmt}
for top-level entries. This simply uses \gls{glossentrysymbol}.
Child entries use:
\cmddef{glslongextraSubSymbolFmt}
which uses \gls{glslongextraSymbolFmt}.
The horizontal alignment for the symbol column (except for the
\glostyle{long-sym-desc} and \glostyle{long-desc-sym} styles) is obtained with:
\cmddef{glslongextraSymbolAlign}
This expands to \code{c} by default.
Top-level \idx{group} headings are formatted with:
\cmddef{glslongextraGroupHeading}
The first argument is the total number of columns in the table. For
example, 2 for the \glostyle{long-name-desc} style or 3 for the
\glostyle{long-name-sym-desc} style. The second argument is the
\idx{group}['s] label (not the title). This command does nothing by
default. (If you are using \app{bib2gls}, remember that you need to
use the \switch{group} or \switch{g} switch to support
\idxpl{group}.)
Sub-level \idxpl{group} are only supported with the \idx{unsrtfam}
(see \sectionref{sec:printunsrtgroups}). When they are supported,
the heading will be formatted with:
\cmddef{glslongextraSubGroupHeading}
The styles are sub-divided below into the set of elements that are shown in each
column, which may consist of: \gloskey{name}, \gloskey{symbol},
\gloskey{description} or \idx{locationlist}. There will be
blank cells if any of the corresponding fields have not been set or
if the \idx{locationlist} has been suppressed.
\subsubsection{Name and Description Only}
\label{sec:longextranamedesc}
These styles don't display the symbol or \idx{locationlist},
regardless of whether or not they have been set. In each case, the
style starts with:
\cmddef{glslongextraSetDescWidth}
which updates \gls{glsdescwidth} according to the widest name,
identified with \gls{glslongextraSetWidest}. The column header
text is also taken into account. If a widest name hasn't been set
and the column header is shorter than one or more names, the
description column may be too wide.
The value of \gls{glsdescwidth} is calculated as
$\gls{linewidth}-4\gls{tabcolsep}-W$, where $W$ is the width of
the widest name.
If you want to set \gls{glsdescwidth} to a specific value, then redefine
\gls{glslongextraSetDescWidth} with the desired length assignment.
\optiondef{glostyle.long-name-desc}
This has two columns: the name on the left and the description on
the right.
The table header is given by:
\cmddef{glslongextraNameDescTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraNameDescTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraNameDescHeader}
which uses the above header and footer commands.
\optiondef{glostyle.long-desc-name}
This has two columns: the name on the right and the description on
the left.
The table header is given by:
\cmddef{glslongextraDescNameTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraDescNameTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraDescNameHeader}
which uses the above header and footer commands.
\subsubsection{Name, Symbol and Description Only}
\label{sec:longextranamesymdesc}
These styles don't show the \idx{locationlist}. In each case, the
style starts with:
\cmddef{glslongextraSymSetDescWidth}
which updates \gls{glsdescwidth} according to the widest name,
identified with \gls{glslongextraSetWidest}. This starts by
calculating \gls{glsdescwidth} with \gls{glslongextraSetDescWidth}
and then subtracts the width of the symbol column header text (which
is assumed to be the widest text in that column).
If you want to set \gls{glsdescwidth} to a specific value, then redefine
\gls{glslongextraSymSetDescWidth} with the desired length assignment.
\optiondef{glostyle.long-name-desc-sym}
This has three columns: the name on the left, the description in the
middle and the symbol on the right.
The table header is given by:
\cmddef{glslongextraNameDescSymTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraNameDescSymTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraNameDescSymHeader}
which uses the above header and footer commands.
\optiondef{glostyle.long-name-sym-desc}
This has three columns: the name on the left, the symbol in the
middle and the description on the right.
The table header is given by:
\cmddef{glslongextraNameSymDescTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraNameSymDescTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraNameSymDescHeader}
which uses the above header and footer commands.
\optiondef{glostyle.long-sym-desc-name}
This has three columns: the name on the right, the description in the
middle and the symbol on the left.
The table header is given by:
\cmddef{glslongextraSymDescNameTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraSymDescNameTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraSymDescNameHeader}
which uses the above header and footer commands.
\optiondef{glostyle.long-desc-sym-name}
This has three columns: the name on the right, the symbol in the
middle and the description on the left.
The table header is given by:
\cmddef{glslongextraDescSymNameTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraDescSymNameTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraDescSymNameHeader}
which uses the above header and footer commands.
\subsubsection{Name, Description and Location Only}
\label{sec:longextranamedescloc}
These styles don't display the symbol, regardless of whether or not
the \gloskey{symbol} field has been set. In each case, the
style starts with:
\cmddef{glslongextraLocSetDescWidth}
which updates \gls{glsdescwidth} according to the widest name,
identified with \gls{glslongextraSetWidest}. This starts by
calculating \gls{glsdescwidth} with \gls{glslongextraSetDescWidth}
and then subtracts $2\gls{tabcolsep}-\gls{glspagelistwidth}$.
If you want to set \gls{glsdescwidth} to a specific value, then redefine
\gls{glslongextraLocSetDescWidth} with the desired length assignment.
\optiondef{glostyle.long-name-desc-loc}
This has three columns: the name on the left, the description in the
middle and the \idx{locationlist} on the right.
The table header is given by:
\cmddef{glslongextraNameDescLocationTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraNameDescLocationTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraNameDescLocationHeader}
which uses the above header and footer commands.
\optiondef{glostyle.long-loc-desc-name}
This has three columns: the name on the right, the description in the
middle and the \idx{locationlist} on the left.
The table header is given by:
\cmddef{glslongextraLocationDescNameTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraLocationDescNameTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraLocationDescNameHeader}
which uses the above header and footer commands.
\subsubsection{Name, Description, Symbol and Location}
\label{sec:longextranamedescsymloc}
These styles show the name, description, symbol and
\idx{locationlist}. In each case, the
style starts with:
\cmddef{glslongextraSymLocSetDescWidth}
which updates \gls{glsdescwidth} according to the widest name,
identified with \gls{glslongextraSetWidest}. This starts by
calculating \gls{glsdescwidth} with \gls{glslongextraSymSetDescWidth}
and then subtracts $2\gls{tabcolsep}-\gls{glspagelistwidth}$.
If you want to set \gls{glsdescwidth} to a specific value, then redefine
\gls{glslongextraSymLocSetDescWidth} with the desired length assignment.
\optiondef{glostyle.long-name-desc-sym-loc}
This has four columns, from left to right: the name, description,
symbol and the \idx{locationlist}.
The table header is given by:
\cmddef{glslongextraNameDescSymLocationTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraNameDescSymLocationTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraNameDescSymLocationHeader}
which uses the above header and footer commands.
\optiondef{glostyle.long-name-sym-desc-loc}
This has four columns, from left to right: the name,
symbol, description and the \idx{locationlist}.
The table header is given by:
\cmddef{glslongextraNameSymDescLocationTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraNameSymDescLocationTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraNameSymDescLocationHeader}
which uses the above header and footer commands.
\optiondef{glostyle.long-loc-sym-desc-name}
This has four columns, from left to right: the \idx{locationlist},
symbol, description and the name.
The table header is given by:
\cmddef{glslongextraLocationSymDescNameTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraLocationSymDescNameTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraLocationSymDescNameHeader}
which uses the above header and footer commands.
\optiondef{glostyle.long-loc-desc-sym-name}
This has four columns, from left to right: the \idx{locationlist},
description, symbol and the name.
The table header is given by:
\cmddef{glslongextraLocationDescSymNameTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraLocationDescSymNameTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraLocationDescSymNameHeader}
which uses the above header and footer commands.
\subsubsection{Symbol and Description Only}
\label{sec:longextrasymdesc}
These are two-column styles designed to show only the symbol and
description. However, if the \gloskey{symbol} isn't set then the
name will be used instead. If this occurs, you may need to change
the width of the description column.
The horizontal alignment for the symbol column is obtained with:
\cmddef{glslongextraSymbolNameAlign}
which expands to \code{l} by default. Note that this is different
from the alignment used for styles like
\glostyle{long-name-sym-desc}.
These styles have the entry item number (if \opt{entrycounter} is
on) and the hypertarget anchor (if enabled) in the symbol column
since there's no name shown (unless the symbol is missing).
These are all performed by for
top-level entries by:
\cmddef{glslongextraSymbolTargetFmt}
The symbol is formatted according to \gls{glslongextraSymbolFmt}.
Child entries use:
\cmddef{glslongextraSubSymbolTargetFmt}
Unlike \gls{glslongextraSubNameFmt} this shows the field value
(formatted with \gls{glslongextraSymbolFmt}).
The following commands use the above if the \gloskey{symbol} field
is set, otherwise they show the name.
\cmddef{glslongextraSymbolOrName}
Shows the symbol, if set, or the name otherwise, with the target.
Child entries use:
\cmddef{glslongextraSubSymbolOrName}
Shows the symbol with \gls{glslongextraSubSymbolTargetFmt}, if set,
or the name otherwise, with the target.
In each case, the style starts with:
\cmddef{glslongextraSymNoNameSetDescWidth}
which calculates \gls{glsdescwidth} as
$\gls{linewidth}-4\gls{tabcolsep}-W$, where $W$ is the
width of the symbol column header. Note that this assumes the
content of the symbol column isn't wider than the column header.
If you want to set \gls{glsdescwidth} to a specific value, then redefine
\gls{glslongextraSymNoNameSetDescWidth} with the desired length assignment.
For example, if you have a mixture of entries with symbols and some
without, which means that there will be a name shown that's wider
than the symbol column header, then set the widest name (for
example, with the \resourceopt{set-widest} resource option) and add
the following redefinition:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glslongextraSymNoNameSetDescWidth}}\marg{\comment{}
\gls{glslongextraSetDescWidth}
}
\end{codebox}
Note that, in this case, if you don't set the widest name then the
description column will end up even wider (and therefore cause the
table to be even wider) if the name header is narrower than the
symbol header.
\optiondef{glostyle.long-sym-desc}
The symbol is in the left column (or the name, if the symbol isn't
set). The description is in the right.
The \idx{locationlist} isn't shown.
The table header is given by:
\cmddef{glslongextraSymDescTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraSymDescTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraSymDescHeader}
which uses the above header and footer commands.
\optiondef{glostyle.long-desc-sym}
The symbol is in the right column (or the name, if the symbol isn't
set). The description is in the left.
The \idx{locationlist} isn't shown.
The table header is given by:
\cmddef{glslongextraDescSymTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraDescSymTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraDescSymHeader}
which uses the above header and footer commands.
\subsubsection{Abbreviations Only}
\label{sec:longextraabbr}
These styles are designed for abbreviations. They display the short
and long forms, rather than the name and description, although these
may happen to match. They are primarily intended for
\idxpl{mini-glossary} or similar summary lists.
Although these styles don't show the name or description, they still
use some of the name and description settings provided by
\sty{glossary-longextra}.
The column for the short form uses the same alignment as for the
name columns (\gls{glslongextraNameAlign}). The column for the
long form uses the same alignment as for the description columns
(\gls{glslongextraDescAlign}) and has the width set to \gls{glsdescwidth}.
However, the name and description formatting commands or attributes
(such as \gls{glsnamefont}, \catattr{glossnamefont} or
\catattr{glossname}) aren't used as the formatting is left to the
abbreviation style.
If the \gloskey{short} field hasn't been set, the short column will
show the name instead, and if the \gloskey{long} field hasn't been
set, the long column will show the description instead (using the
same commands as for styles like \glostyle{long-name-desc}, which do
use the associated formatting commands and attributes).
These styles use the following commands:
\cmddef{glslongextraShortHeader}
The header for the column showing the short form. This is defined as:
\begin{compactcodebox}
\cmd{newcommand}\marg{\gls{glslongextraShortHeader}}\marg{\gls{entryname}}
\end{compactcodebox}
\cmddef{glslongextraLongHeader}
The header for the column showing the long form. This is defined as:
\begin{compactcodebox}
\cmd{newcommand}\marg{\gls{glslongextraLongHeader}}\marg{\gls{descriptionname}}
\end{compactcodebox}
\cmddef{glslongextraShortTargetFmt}
This governs the way that the short form should be displayed,
including the target. This is defined as:
\begin{compactcodebox}
\cmd{newcommand}\marg{\gls{glslongextraShortTargetFmt}}[1]\marg{\comment{}
\gls{glsentryitem}\marg{\#1}\gls{glstarget}\marg{\#1}\marg{\marg{\gls{glsxtrshort}\oarg{\glsopt{noindex},\glsoptval{hyper}{false}}\marg{\#1}}}\comment{}
\gls{glsxtrpostnamehook}\marg{\#1}%
}
\end{compactcodebox}
Note that the \idx{postnamehook} is included.
\cmddef{glslongextraLongFmt}
This governs the way that the long form should be displayed. This is defined as:
\begin{compactcodebox}
\cmd{newcommand}\marg{\gls{glslongextraLongFmt}}[1]\marg{\comment{}
\marg{\gls{glsxtrlong}\oarg{\glsopt{noindex},\glsopt{hyper}{false}}\marg{\#1}}\gls{glspostdescription}
}
\end{compactcodebox}
Note that the \idx{postdeschook} is included.
\cmddef{glslongextraSubShortTargetFmt}
This governs the way that the short form for child entries should be
displayed, including the target. This is defined as:
\begin{compactcodebox}
\cmd{newcommand}\marg{\gls{glslongextraSubShortTargetFmt}}[2]\marg{\comment{}
\gls{glssubentryitem}\marg{\#2}\gls{glstarget}\marg{\#2}\marg{\marg{\gls{glsxtrshort}\oarg{\glsopt{noindex},\glsoptval{hyper}{false}}\marg{\#2}}}\comment{}
\gls{glsxtrpostnamehook}\marg{\#2}%
}
\end{compactcodebox}
\cmddef{glslongextraSubLongFmt}
This governs the way that the long form for child entries should be
displayed. This is defined as:
\begin{compactcodebox}
\cmd{newcommand}\marg{\gls{glslongextraSubLongFmt}}[2]\marg{\gls{glslongextraLongFmt}\marg{\#2}}
\end{compactcodebox}
\cmddef{glslongextraShortNoNameSetDescWidth}
This is used to compute the value of \gls{glsdescwidth} and assumes
that none of the short forms are wider than
\gls{glslongextraShortHeader}.
\optiondef{glostyle.abbr-short-long}
A two column style.
The short form is in the left column. The long form is in the right.
The \idx{locationlist} isn't shown.
The table header is given by:
\cmddef{glslongextraShortLongTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraShortLongTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraShortLongHeader}
which uses the above header and footer commands.
\optiondef{glostyle.abbr-long-short}
A two column style.
The short form is in the right column. The long form is in the left.
The \idx{locationlist} isn't shown.
The table header is given by:
\cmddef{glslongextraLongShortTabularHeader}
which shows the column headers with horizontal rules.
The table footer is given by:
\cmddef{glslongextraLongShortTabularFooter}
which just does a horizontal rule.
With \env{longtable}, the table header and footer are set with:
\cmddef{glslongextraLongShortHeader}
which uses the above header and footer commands.
\subsubsection{Custom Fields}
\label{sec:longextracustom}
These styles allow one, two or three custom columns in addition to
the name column. The \qt{custom1} styles indicate one custom column,
the \qt{custom2} styles indicate two custom columns, and the
\qt{custom3} styles indicate three custom columns. Some styles also
include the description column. These styles don't display the
location. However, if you are using \app{bib2gls} you can set one of
the custom fields to \gloskey{location}, but if you have long
\idxpl{locationlist} you may need to change the corresponding
alignment command to switch to a paragraph column.
\begin{information}
The \qt{first custom column} means the first of the custom columns,
which may not be the first column in the table. Similarly the
\qt{second custom column} means the second of the custom columns (if
supported by the style), and the \qt{third custom column} means the
third of the custom columns (if supported by the style).
\end{information}
\cmddef{glslongextraCustomIField}
Expands to the \idx{internalfieldlabel} for the first custom column.
This will be used in the \qt{custom1}, \qt{custom2} and \qt{custom3}
styles.
\cmddef{glslongextraCustomIIField}
Expands to the \idx{internalfieldlabel} for the second custom column.
This will be used in the \qt{custom2} and \qt{custom3} styles.
\cmddef{glslongextraCustomIIIField}
Expands to the \idx{internalfieldlabel} for the third custom column.
This will be used in the \qt{custom3} style.
\cmddef{glslongextraCustomIHeader}
Expands to the header text for the first custom column. The default
definition is:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glslongextraCustomIField}}
\end{compactcodebox}
which means that it will be \qt{Useri} by default, which is unlikely
to be appropriate, but it may be suitable if you change the first
custom field.
\cmddef{glslongextraCustomIIHeader}
Expands to the header text for the second custom column. The default
likewise simply applies \idx{sentencecase} to the
\idx{internalfieldlabel}.
\cmddef{glslongextraCustomIIIHeader}
Expands to the header text for the third custom column. The default
likewise simply applies \idx{sentencecase} to the
\idx{internalfieldlabel}.
\cmddef{glslongextraCustomIFmt}
This is used to format each top-level entry in the first custom column. The
default definition is:
\begin{compactcodebox}
\gls{glsxtrusefield}\margm{entry-label}\marg{\gls{glslongextraCustomIField}}
\end{compactcodebox}
\cmddef{glslongextraSubCustomIFmt}
This is used to format each sub-entry in the first custom column. The
default definition is:
\begin{compactcodebox}
\gls{glslongextraCustomIFmt}\margm{entry-label}
\end{compactcodebox}
\cmddef{glslongextraCustomIIFmt}
This is used to format each top-level entry in the second custom column. The
default definition is:
\begin{compactcodebox}
\gls{glsxtrusefield}\margm{entry-label}\marg{\gls{glslongextraCustomIIField}}
\end{compactcodebox}
\cmddef{glslongextraSubCustomIIFmt}
This is used to format each sub-entry in the second custom column. The
default definition is:
\begin{compactcodebox}
\gls{glslongextraCustomIIFmt}\margm{entry-label}
\end{compactcodebox}
\cmddef{glslongextraCustomIIIFmt}
This is used to format each top-level entry in the third custom column. The
default definition is:
\begin{compactcodebox}
\gls{glsxtrusefield}\margm{entry-label}\marg{\gls{glslongextraCustomIIIField}}
\end{compactcodebox}
\cmddef{glslongextraSubCustomIIIFmt}
This is used to format each sub-entry in the third custom column. The
default definition is:
\begin{compactcodebox}
\gls{glslongextraCustomIIIFmt}\margm{entry-label}
\end{compactcodebox}
\cmddef{glslongextraCustomIAlign}
Expands to the alignment specifier for the first custom column.
\cmddef{glslongextraCustomIIAlign}
Expands to the alignment specifier for the second custom column.
\cmddef{glslongextraCustomIIIAlign}
Expands to the alignment specifier for the third custom column.
\cmddef{glslongextraCustomTabularFooter}
The footer used for all the custom styles. The default definition
simply does \gls{bottomrule}.
\cmddef{glslongextraNameCustomITabularHeader}
The table header for the \glostyle{long-name-custom1} style (which has two columns).
This command and the previous command are used in the following.
\cmddef{glslongextraNameCustomIHeader}
The \env{longtable} header and footer markup for the
\glostyle{long-name-custom1} style.
\cmddef{glslongextraCustomINameTabularHeader}
The table header for the \glostyle{long-custom1-name} style (which has two columns).
Used in the following.
\cmddef{glslongextraCustomINameHeader}
The \env{longtable} header and footer markup for the
\glostyle{long-custom1-name} style.
\cmddef{glslongextraNameCustomIITabularHeader}
The table header for the \glostyle{long-name-custom2} style (which
has three columns). Used in the following.
\cmddef{glslongextraNameCustomIIHeader}
The \env{longtable} header and footer markup for the
\glostyle{long-name-custom2} style.
\cmddef{glslongextraCustomIINameTabularHeader}
The table header for the \glostyle{long-custom2-name} style (which
has three columns). Used in the following.
\cmddef{glslongextraCustomIINameHeader}
The \env{longtable} header and footer markup for the
\glostyle{long-custom2-name} style.
\cmddef{glslongextraNameCustomIIITabularHeader}
The table header for the \glostyle{long-name-custom3} style (which
has four columns). Used in the following.
\cmddef{glslongextraNameCustomIIIHeader}
The \env{longtable} header and footer markup for the
\glostyle{long-name-custom3} style.
\cmddef{glslongextraCustomIIINameTabularHeader}
The table header for the \glostyle{long-custom3-name} style (which
has four columns). Used in the following.
\cmddef{glslongextraCustomIIINameHeader}
The \env{longtable} header and footer markup for the
\glostyle{long-custom3-name} style.
\optiondef{glostyle.long-name-custom1}
A two column style with the name in the first column and the first
custom field in the second. For top-level entries, the name is formatted with
\gls{glslongextraNameFmt} and the custom field is formatted with
\gls{glslongextraCustomIFmt}. Sub-entries use
\gls{glslongextraSubNameFmt} and \gls{glslongextraSubCustomIFmt}.
\optiondef{glostyle.long-custom1-name}
As \glostyle{long-name-custom1} but with the name in the last
column.
\optiondef{glostyle.long-name-custom2}
A three column style with the name in the first column, the first
custom field in the second and the second custom field in the third.
As \glostyle{long-name-custom1}, but additionally the second custom
field is formatted with \gls{glslongextraCustomIIFmt} for top-level
entries and with \gls{glslongextraSubCustomIIFmt} for child-entries.
\optiondef{glostyle.long-custom2-name}
As \glostyle{long-name-custom2} but with the name in the last
column.
\optiondef{glostyle.long-name-custom3}
A four column style with the name in the first column, the first
custom field in the second, the second custom field in the third,
and the third custom field in the fourth.
As \glostyle{long-name-custom2}, but additionally the third custom
field is formatted with \gls{glslongextraCustomIIIFmt} for top-level
entries and with \gls{glslongextraSubCustomIIIFmt} for child-entries.
\optiondef{glostyle.long-custom3-name}
As \glostyle{long-name-custom3} but with the name in the last
column.
The following styles also have a description column, which uses
\gls{glslongextraDescAlign} for the column alignment. These styles
attempt to calculate an appropriate width for \gls{glsdescwidth}.
\cmddef{glslongextraCustomISetDescWidth}
Sets \gls{glsdescwidth} for the \glostyle{long-name-custom1-desc} style.
This first uses \gls{glslongextraSetDescWidth} to calculate the
width $W$ if there were only a name and description column. It then
measures the width of the first custom column header $w$ and sets
\gls{glsdescwidth} to $w - 2\gls{tabcolsep} - w$. This assumes that
the first custom column header is wider than the value of each entry's
first custom field. If this isn't the case, then you will need to
redefined this command as appropriate.
\cmddef{glslongextraCustomIISetDescWidth}
Sets \gls{glsdescwidth} for the \glostyle{long-name-custom2-desc} style.
This first uses \gls{glslongextraCustomISetDescWidth} to calculate
the width $W$ if there were only a name column, first custom column,
and description column. It then measures the width of the second
custom column header $w$ and sets \gls{glsdescwidth} to
$w - 2\gls{tabcolsep} - w$. This assumes that the second custom column header is
wider than the value of each entry's second custom field. If this
isn't the case, then you will need to redefined this command as
appropriate.
\cmddef{glslongextraCustomIIISetDescWidth}
Sets \gls{glsdescwidth} for the \glostyle{long-name-custom3-desc} style.
This first uses \gls{glslongextraCustomIISetDescWidth} to calculate
the width $W$ if there were only a name column, first custom column,
second custom column, and description column. It then measures the
width of the third custom column header $w$ and sets \gls{glsdescwidth} to
$w - 2\gls{tabcolsep} - w$. This assumes that the third custom column header is
wider than the value of each entry's third custom field. If this
isn't the case, then you will need to redefined this command as
appropriate.
\cmddef{glslongextraNameCustomIDescTabularHeader}
The table header for the \glostyle{long-name-custom1-desc} style
(which has three columns). Used in the following.
\cmddef{glslongextraNameCustomIDescHeader}
The \env{longtable} header and footer markup for the
\glostyle{long-name-custom1-desc} style.
\cmddef{glslongextraDescCustomINameTabularHeader}
The table header for the \glostyle{long-desc-custom1-name} style
(which has three columns). Used in the following.
\cmddef{glslongextraDescCustomINameHeader}
The \env{longtable} header and footer markup for the
\glostyle{long-desc-custom1-name} style.
\cmddef{glslongextraNameCustomIIDescTabularHeader}
The table header for the \glostyle{long-name-custom2-desc} style
(which has four columns). Used in the following.
\cmddef{glslongextraNameCustomIIDescHeader}
The \env{longtable} header and footer markup for the
\glostyle{long-name-custom2-desc} style.
\cmddef{glslongextraDescCustomIINameTabularHeader}
The table header for the \glostyle{long-desc-custom2-name} style
(which has four columns). Used in the following.
\cmddef{glslongextraDescCustomIINameHeader}
The \env{longtable} header and footer markup for the
\glostyle{long-desc-custom2-name} style.
\cmddef{glslongextraNameCustomIIIDescTabularHeader}
The table header for the \glostyle{long-name-custom3-desc} style
(which has five columns). Used in the following.
\cmddef{glslongextraNameCustomIIIDescHeader}
The \env{longtable} header and footer markup for the
\glostyle{long-name-custom3-desc} style.
\cmddef{glslongextraDescCustomIIINameTabularHeader}
The table header for the \glostyle{long-desc-custom3-name} style
(which has five columns). Used in the following.
\cmddef{glslongextraDescCustomIIINameHeader}
The \env{longtable} header and footer markup for the
\glostyle{long-desc-custom3-name} style.
\optiondef{glostyle.long-name-custom1-desc}
A three column style with the name in the first column, the first
custom field in the second, and the description in the third. This is
like \glostyle{long-name-custom1} but additionally has the
description column formatted as per \glostyle{long-name-desc}.
\optiondef{glostyle.long-desc-custom1-name}
As \glostyle{long-name-custom1-desc} but the name and description
columns are swapped.
\optiondef{glostyle.long-name-custom2-desc}
A four column style with the name in the first column, the first
custom field in the second, the second custom field in the third,
and the description in the fourth. This is
like \glostyle{long-name-custom2} but additionally has the
description column formatted as per \glostyle{long-name-desc}.
\optiondef{glostyle.long-desc-custom2-name}
As \glostyle{long-name-custom2-desc} but the name and description
columns are swapped.
\optiondef{glostyle.long-name-custom3-desc}
A five column style with the name in the first column, the first
custom field in the second, the second custom field in the third,
the third custom field in the fourth, and the description in the
fifth. This is like \glostyle{long-name-custom3} but additionally
has the description column formatted as per
\glostyle{long-name-desc}.
\optiondef{glostyle.long-desc-custom3-name}
As \glostyle{long-name-custom3-desc} but the name and description
columns are swapped.
\glsendrange{pkg.glossary-longextra}%
\subsection{\stytext{glossary-topic} package}
\label{sec:topic}
\glsstartrange{pkg.glossary-topic}%
The \inlineglsdef{pkg.glossary-topic} package provides glossary
styles designed for hierarchical \idxpl{glossary} where the top-level
entries are topic titles. This package automatically loads the
\sty{multicol} package. If the \sty{glossary-tree} package is also
loaded then commands like \gls{glssetwidest} can be used on these
styles in much the same way as for the \glostyle{alttree} style. If
a widest value isn't set then these styles behave more like the
\glostyle{tree} style.
This package provides styles designed for \idxpl{glossary} that are lists
of topics. That is, the top-level entries are considered topic
titles (which may or may not have an associated symbol or
description) and the sub-entries are items within that topic. By
default the \idx{locationlist} isn't shown for the top-level entries but is
shown after the description for sub-entries (unless suppressed with
\opt{nonumberlist} or \resourceoptval{save-locations}{false}).
The following styles are provided:
\optiondef*{glostyle.topic}
This style is similar to the \glostyle{tree}
style but the indentation doesn't start until the second
sub-item level. The top-level entries have the name displayed
in a larger font with the description following in a new paragraph
(see \exampleref{ex:topicstyle}).
This style doesn't support the \opt{nogroupskip} setting.
\newcommand{\topicexampledefs}{%
\gls{newglossaryentry}\marg{pictograph}\marg{\gloskeyval{name}{pictograph},^^J
\gloskeyval{description}{picture or symbol representing a word or
phrase}}^^J%
\gls{newglossaryentry}\marg{copy}\marg{\gloskeyval{parent}{pictograph},^^J
\gloskeyval{name}{\cmd{faCopy}},^^J
\gloskeyval{description}{copy}}^^J%
\gls{newglossaryentry}\marg{cut}\marg{\gloskeyval{parent}{pictograph},^^J
\gloskeyval{name}{\cmd{faCut}},^^J
\gloskeyval{description}{cut}}^^J%
\gls{newglossaryentry}{edit}\marg{\gloskeyval{parent}{pictograph},^^J
\gloskeyval{name}{\cmd{faEdit}},
\gloskeyval{description}{edit}}
\gls{newglossaryentry}{paste}\marg{\gloskeyval{parent}{pictograph},^^J
\gloskeyval{name}{\cmd{faPaste}},
\gloskeyval{description}{paste}}
\codepar
\gls{newglossaryentry}\marg{symbols}\marg{\gloskeyval{name}{Symbols},^^J
\gloskeyval{description}{mathematical constants or functions}}^^J%
\gls{newglossaryentry}\marg{constant}\marg{\gloskeyval{parent}{symbols},^^J
\gloskeyval{name}{constant},^^J
\gloskeyval{description}{a fixed quantity or numerical value}}^^J%
\gls{newglossaryentry}\marg{pi}\marg{\gloskeyval{parent}{constant},^^J
\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{pi}}},^^J
\gloskeyval{description}{ratio of the length of the circumference
of a circle to its diameter}}^^J%
\gls{newglossaryentry}\marg{root2}\marg{\gloskeyval{parent}{constant},^^J
\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{surd}2}},^^J
\gloskeyval{description}{Pythagoras' constant}}^^J%
\gls{newglossaryentry}\marg{function}\marg{\gloskeyval{parent}{symbols},^^J
\gloskeyval{name}{function},^^J
\gloskeyval{description}{a rule that assigns a value to every
element of the domain}}^^J%
\gls{newglossaryentry}\marg{cosx}\marg{\gloskeyval{parent}{function},^^J
\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{cos}(x)}},^^J
\gloskeyval{description}{cosine}}^^J%
\gls{newglossaryentry}\marg{lnx}\marg{\gloskeyval{parent}{function},^^J
\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{ln}(x)}},^^J
\gloskeyval{description}{natural logarithm}}^^J%
\gls{newglossaryentry}\marg{parameter}\marg{\gloskeyval{parent}{symbols},^^J
\gloskeyval{name}{parameter},^^J
\gloskeyval{description}{a constant or variable that distinguishes
a specific form}}^^J%
\gls{newglossaryentry}\marg{x}\marg{\gloskeyval{parent}{parameter},^^J
\gloskeyval{name}{\cmd{ensuremath}\marg{x}},^^J
\gloskeyval{description}{the abscissa value}}^^J%
\gls{newglossaryentry}\marg{y}\marg{\gloskeyval{parent}{parameter},^^J
\gloskeyval{name}{\cmd{ensuremath}\marg{y}},^^J
\gloskeyval{description}{the ordinate value}}
\gls{newglossaryentry}\marg{z}\marg{\gloskeyval{parent}{parameter},^^J
\gloskeyval{name}{\cmd{ensuremath}\marg{z}},^^J
\gloskeyval{description}{the applicate value}}
}
\begin{resultbox}[float]
\createexample*[label={ex:topicstyle},
title={The \optfmt{topic} style},
description={Example document demonstrating the topic style}]
{%
\cmd{usepackage}\marg{fontawesome}^^J%
\cmd{usepackage}\oarg{\opt{postdot},\optval{stylemods}{topic},\optval{style}{\glostyle{topic}}}\marg{glossaries-extra}^^J%
\topicexampledefs
}
{\gls{printunsrtglossaries}}
\end{resultbox}
\optiondef*{glostyle.topicmcols}
This style is like the \glostyle{topic}
style but the sub-entries are placed inside a \env{multicols}
environment (unlike styles such as \glostyle{mcoltree} where the
entire glossary content is within a single \env{multicols}
environment). The environment name is supplied in the value of
the command:
\cmddef{glstopicColsEnv}
This defaults to \code{multicols}. You can change this to the
starred form. For example:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glstopicColsEnv}}\marg{multicols*}
\end{codebox}
The number of columns is given by the command:
\cmddef{glstopicCols}
This expands to 2, by default. This style is demonstrated in
\exampleref*{ex:topicmcolsstyle}.
\begin{resultbox}[float]
\createexample*[label={ex:topicmcolsstyle},
title={The \optfmt{topicmcols} style},
description={Example document demonstrating the topicmcols style}]
{%
\cmd{usepackage}\marg{fontawesome}^^J%
\cmd{usepackage}\oarg{\opt{postdot},\optval{stylemods}{topic},\optval{style}{\glostyle{topicmcols}}}\marg{glossaries-extra}^^J%
\topicexampledefs
}
{\gls{printunsrtglossaries}}
\end{resultbox}
Both styles can have a widest name set like the \glostyle{alttree}
style, using the commands provided by \sty{glossary-tree} and
\sty{glossaries-extra-stylemods} or with the
\resourceopt{set-widest} resource option. If a widest name is set,
then the sub-entry names will be placed in a box of the given width
otherwise they won't be placed in a box. In
\exampleref{ex:topicmcolsstylewidest}, the widest names have been
set for level~1 and level~2 using:
\begin{codebox}
\gls{glssetwidest}\oarg{1}\marg{parameter}
\gls{glssetwidest}\oarg{2}\marg{\gls{glsentryname}\marg{cosine}}
\end{codebox}
Note that this doesn't change the indentation at the start of the
level~2 items to match the width of the level~1 widest name.
\begin{resultbox}[float]
\createexample*[label={ex:topicmcolsstylewidest},
title={The \optfmt{topicmcols} style with the widest name set},
description={Example document demonstrating the topicmcols style}]
{%
\cmd{usepackage}\marg{fontawesome}^^J%
\cmd{usepackage}\oarg{\opt{postdot},\optval{stylemods}{topic},\optval{style}{\glostyle{topicmcols}}}\marg{glossaries-extra}^^J%
\topicexampledefs^^J%
\gls{glssetwidest}\oarg{1}\marg{parameter}^^J%
\gls{glssetwidest}\oarg{2}\marg{\gls{glsentryname}\marg{cosine}}
}
{\gls{printunsrtglossaries}}
\end{resultbox}
Both of the above styles use the following commands.
\cmddef{glstopicParIndent}
This command is a length that's used for the paragraph indentation
in any multi-paragraph description for top-level entries, but not
for the first paragraph (at the start of the description) which
isn't indented.
\cmddef{glstopicSubIndent}
This command is a length that's used to calculate the hanging
indentation for sub-entries. The level~1 sub-entries don't indent
the name. Level~$n$ sub-entries have the name indented by
$(n-1)\times\gls{glstopicSubIndent}$. The hanging indent depends
on whether or not a widest name has been set for the level.
There is also a length for additional indentation
used in the second paragraph onwards for child entries with
multi-paragraph descriptions:
\cmddef{glstopicSubItemParIndent}
This is initialised to \gls{parindent} when \sty{glossary-topic} is
loaded.
\cmddef{glstopicInit}
This hook is used at the start of the glossary. It does nothing by
default.
Although the styles don't support letter \idxpl{group} by default, if you
have many topics (top-level entries) and you feel that it would help
the reader to divide them up into headed letter groups, you can
redefine:
\cmddef{glstopicGroupHeading}
This does nothing by default. If you want to redefine it, you can
fetch the title corresponding to the group label with
\gls{glsxtrgetgrouptitle}. For example:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glstopicGroupHeading}}[1]\marg{\comment{}
\gls{glsxtrgetgrouptitle}\marg{\#1}\marg{\cmd{thisgrptitle}}\comment{}
\cmd{section}*\marg{\cmd{thisgrptitle}}\comment{}
}
\end{codebox}
Remember that if you are using \app{bib2gls}, you will need the
\switch{group} or \switch{g} switch to support \idxpl{group} (see
\sectionref{sec:printunsrtgroups}).
Sub-\idxpl{group} are only
available with \app{bib2gls} and the \resourceopt{group-level}
option. If they are supported, sub-group headings are formatted
according to:
\cmddef{glstopicSubGroupHeading}
This formats the sub-group heading. Note that unlike
\gls{glstopicGroupHeading} this command does actually format the
sub-group heading by default. This means that it you use
\resourceoptval{group-level}{all}, the top-level groups won't be
displayed, but the sub-groups will be.
Top-level entries are formatted according to:
\cmddef{glstopicItem}
This formats the name and (if provided) the symbol. The description
(if set) will follow in a new paragraph. At the start of
\gls{glstopicItem}, a vertical space is added with:
\cmddef{glstopicPreSkip}
which defaults to \csfmt{medskip}. There is then a hook:
\cmddef{glstopicMarker}
which does nothing by default, but may be redefined. For example,
to add a line to the table of contents.
The name and symbol are set in the form of a title using:
\cmddef{glstopicTitle}
This uses \gls{Glossentryname} which uses \idx{sentencecase}.
If there's a symbol, this is added in parentheses.
Both name and symbol (if present) are encapsulated by:
\cmddef{glstopicTitleFont}
This uses a bold, large font by default.
If the entry has the description key set (tested with
\gls{ifglshasdesc}) then a paragraph break is inserted followed by:
\cmddef{glstopicMidSkip}
which defaults to \csfmt{smallskip}. This is followed by the
description which is formatted according to:
\cmddef{glstopicDesc}
This just does \code{\gls{Glossentrydesc}\marg{entry-label}} followed
by the \idx{postdeschook}.
There is then a paragraph break followed by:
\cmddef{glstopicPostSkip}
regardless of whether or not the description was
displayed. This defaults to \csfmt{smallskip}. This is then followed
by:
\cmddef{glstopicLoc}
which may be used to display the \idx{locationlist}, but does nothing by
default.
The sub-entries first set up the paragraph and hanging indentations
using:
\cmddef{glstopicAssignSubIndent}
This uses:
\cmddef{glstopicAssignWidest}
to determine if a widest name has been set for the given level.
The sub-entry has its information displayed using:
\cmddef{glstopicSubItem}
This encapsulates the name with:
\cmddef{glstopicSubNameFont}
By default this just uses \csfmt{textbf}. This is followed by:
\cmddef{glstopicSubItemSep}
which defaults to \csfmt{quad}. The name and separator are
passed in the \meta{text} argument of:
\cmddef{glstopicSubItemBox}
If a widest name was set for the given level, this will
put \meta{text} inside a box of that width otherwise it just does
\meta{text}.
This is followed by the symbol in parentheses if set. Then, if the
description is set, the description and \idx{postdeschook} are
displayed followed by:
\cmddef{glstopicSubPreLocSep}
(This command isn't used if the description isn't set.)
Finally the location list is displayed using:
\cmddef{glstopicSubLoc}
which just does \meta{location} by default.
\glsendrange{pkg.glossary-topic}%
\subsection{\stytext{glossary-table} package}
\label{sec:table}
\glsstartrange{pkg.glossary-table}%
The \inlineglsdef{pkg.glossary-table} package is new to version 1.49.
It automatically loads the \sty{longtable}, \sty{array} and
\sty{booktabs} packages. If you want to use
\gls{glspenaltygroupskip} for the group skip, you will need to also
load \sty{glossary-longbooktabs}.
\begin{important}
This package is designed specifically for use with \app{bib2gls}.
It can be used to create a supplemental \idx{glossary} with other
\idx{indexing} options, but the entries will be listed in order of definition
and no child entries will be shown.
\end{important}
The \sty{glossary-table} package doesn't provide any general purpose
styles, but instead provides one highly customized style
(\inlineglsdef{opt.glostyle.table}), which is designed to
work with a supplied command:
\cmddef{printunsrttable}
The \glostyle{table} style should not be set with the \opt{style}
package option, \gls{setglossarystyle} or the \printglossopt{style}
option, as it's only intended for use within \gls{printunsrttable},
which sets up the appropriate hooks to allow the style to work with
\gls{printunsrtglossary} (which is used implicitly).
Tabular styles such as \gloskey{long} create a \env{longtable} with one entry
per row and no caption. The \glostyle{longheader} style is similar
but adds a header row, and the \glostyle{long-booktabs} style includes
rules above and below the header row and at the end of the table.
In all these \env{longtable} styles, the glossary title is outside of the style,
and is typically put in a sectioning command. Similarly, the
glossary preamble \gls{glossarypreamble} and postamble
\gls{glossarypostamble} are outside of \env{longtable}.
The \glostyle{table} style, on the other hand, allows multiple
entries per row. The glossary title (\printglossopt{title}) is the table caption
with what's normally the table of contents title (\printglossopt{toctitle})
as the caption title for the list of tables.
Similarly, the preamble and postamble are included in the table
header and footer, instead of being outside of the table.
This means that \gls{glossarysection}, \gls{glossarypreamble} and
\gls{glossarypostamble} are redefined by \gls{printunsrttable} to do
nothing so that they aren't shown outside of the \env{longtable} by
\gls{printunsrtglossary}, otherwise there would be a duplication of
the information in the header and footer of the table.
The \gls{printunsrtglossary} hooks are used to insert the
inter-block \idx{tab} character and new row command in the construction performed
outside of \env{longtable}, which would otherwise cause issues
if used directly in the \glostyle{table} style.
The block styles (see \sectionref{sec:blockstyles}) alter the way
the \glostyle{table} style sets up the \env{longtable} environment
and the way that the entries are formatted. The top level
\idx{glossarystyle} command \gls{glossentry} is defined to do the
block according to the designated block style, which includes the
child entries, if the \glosfield{childcount} field has been set and
is non-zero.
\begin{information}
The \gls{subglossentry} command is redefined to do nothing, but it
won't be used as the child entries are all filtered out. If you
don't use the \resourceopt{save-child-count} resource option, no
child entries will be shown. There's no recursive descent down the
\idxpl{hierarchicallevel}.
\end{information}
This means that the child entries will be listed in one of the
columns in the block, according to the style. This can make the column quite wide.
The child names aren't displayed by default but the block styles support the
\opt{subentrycounter} option. The child entries are
listed in a \env{tabular} environment, which means they are
contained in the same row as their parent and can't be broken across
a page.
A \qt{block} indicates a block of columns used to format one entry
(and, optionally, its children). One row of
the table may contain multiple blocks. For example, a block may consist
of two columns with the name in the first column and the description
in the second, or may consist of three columns with the name in the
first column, the symbol in the second, and the description in the
third. So if a block style has 3 columns, and the desired number
of blocks is set to 2, then the table will have a total of
$3\times2=6$ columns.
The style supports up to 1 \idx{hierarchicallevel}, but you will need the
\resourceopt{save-child-count} resource option if you want the
level~1 sub-entries to show. Deeper level entries are omitted.
Sub-entries are automatically filtered by a custom hook that
\gls{printunsrtglossaryentryprocesshook} is assigned to within
\gls{printunsrttable}. This custom hook allows additional filtering
to be employed with the command:
\cmddef{glstableiffilter}
This command should do \meta{true} if the entry identified by
\meta{entry-label} should be skipped, otherwise it should do
\meta{false}. The default definition simply does \meta{false}.
For example, the following will filter entries that
have the category set to \cat{general}:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glstableiffilter}}[1]{\comment{}
\gls{glsifcategory}\marg{\#1}\marg{general}}
\end{codebox}
Note that if this command is redefined to do neither \meta{true} nor
\meta{false} or does both, it will interfere with the width
calculations if \glstableopt{par} isn't set to the default
\glstableoptval{par}{false}.
You can use the \glstableopt{init} option to locally redefine
commands within \gls{printunsrttable}. For example:
\begin{codebox}
\gls{printunsrttable}\oarg{\glstableoptvalm{init}{\comment{}
\cmd{renewcommand}\marg{\gls{glstableiffilter}}[1]{\comment{}
\gls{glsifcategory}\marg{\#\#1}\marg{general}}\comment{}
}}
\end{codebox}
An extra field (the \qt{other} field) may be added with the \glstableopt{other}
key. If this value is empty, then no extra field will be added.
Some block styles, such as \glstableblockstyle{other-name}
and \glstableblockstyle{symbol-other} put
the other field in its own column. If the other field isn't set,
this will lead to an empty column.
If there isn't a designated column for the other field, then
block styles that show the description will put the other field in
before the description, but in the same column as the description.
Otherwise, block styles that don't show the description, will put the other
field after the name, but in the same column as the name.
The following example uses the \glstableblockstyle{name} block style,
which only has one column per block. The name is followed by the
description in parentheses (if set), which is then followed by the
child list. I redefined \gls{glstableNameFmt} to make the name appear in
bold, to highlight it.
I've used the \glstableoptval{par}{ragged} option,
otherwise the table will be too wide to fit the page.
\begin{codebox}
\cmd{usepackage}
[\opt{record},\optval{stylemods}{table},\opt{subentrycounter}]
\marg{glossaries-extra}
\codepar
\gls{GlsXtrLoadResources}\oarg{
\comment{entries in \file{example-glossaries-childnoname.bib}:}
\resourceoptval{src}{example-glossaries-childnoname},
\resourceoptval{selection}{all},
\resourceoptval{save-child-count}}
\cbeg{document}
\gls{printunsrttable}
\oarg{
\glstableoptval{block-style}{name},\glstableoptval{par}{ragged},
\printglossoptvalm{preamble}{Some preamble text},
\printglossoptvalm{postamble}{Some postamble text},
\glstableoptvalm{init}{\comment{}
\cmd{let}\gls{glstableNameFmt}\cmd{textbf}
\cmd{def}\gls{glstablenameheader}\marg{Summary}\comment{}
}
}
\cend{document}
\end{codebox}
This creates a table with two entries per row.
\begin{resultbox}
\createexample*[label={ex:table},
title={Two entries per row with \cmd{printunsrttable}},
description={Example document with a tabular glossary with two
entries per row. The child list is in the same cell as the parent.},
arara={pdflatex,bib2gls,pdflatex,pdfcrop}
]
{%
\cmd{usepackage}[record,stylemods=table,subentrycounter]\marg{glossaries-extra}
\codepar
\gls{GlsXtrLoadResources}\oarg{^^J
\comment{entries in example-glossaries-childnoname.bib:}
\resourceoptval{src}{example-glossaries-childnoname},^^J
\resourceoptval{selection}{all},^^J
\resourceoptval{save-child-count}}^^J%
}
{%
\gls{printunsrttable}^^J%
\oarg{^^J
block-style=name,par=ragged,^^J
preamble=\marg{Some preamble text},^^J
postamble=\marg{Some postamble text},^^J
init=\marg{\comment{}
\cmd{let}\gls{glstableNameFmt}\cmd{textbf}
\cmd{def}\gls{glstablenameheader}\marg{Summary}\comment{}
}^^J%
}
}
\end{resultbox}
Note that each row is as deep as the entry with the most children.
So where a row has one column with two children and another with
seven, the row is deep enough to accommodate the seven child
entries, which leaves a gap below the smaller list of two children.
\subsubsection{Child Entries}
\label{sec:tablechildren}
Entries with a \idx{hierarchicallevel} greater
than 0 are filtered out (see above). This takes the \printglossopt{leveloffset}
option into account. Child entries can be included, but only by
checking if the \glosfield{childcount} field has been set and is non-zero.
This is done by:
\cmddef{glstableChildEntries}
Note that \gls{glstableiffilter} filters top-level entries, and
their child entries will also be filtered. Child
entries for non-filtered top-level entries can be filtered by
redefining:
\cmddef{glstableiffilterchild}
where \meta{entry-label} is the child entry label. This command
should do \meta{true} if the child entry should be filtered and
\meta{false} otherwise.
If the child count is non-zero, taking both \glosfield{childcount}
and child filtering into account, then \gls{glstableChildEntries}
command will display the non-filtered children in the form:
\begin{compactcodebox}
\gls{glstablePreChildren}
\cbeg{glstablesubentries}
\gls{glstableblocksubentry}\margm{child-1-label}
\gls{glstableblocksubentrysep}
\gls{glstableblocksubentry}\margm{child-2-label}
\ldots
\gls{glstableblocksubentrysep}
\gls{glstableblocksubentry}\margm{child-n-label}
\cend{glstablesubentries}
\end{compactcodebox}
This consists of the following.
\cmddef{glstablePreChildren}
Occurs at the start. If \glstableoptval{par}{justified} or
\glstableoptval{par}{ragged}, this will do \cmd{par} otherwise it
does nothing.
\begin{warning}
In general, it's best not to list children with
\glstableoptval{par}{false}, except with a style like
\glstableblockstyle{name} or \glstableblockstyle{name-desc} with no
description, as the table can end up too wide for the page.
\end{warning}
\envdef{glstablesubentries}
This environment encapsulates the child list. By default, this does:
\begin{compactcodebox}
\cbeg{tabular}[t]\margm{align}
\meta{content}
\cend{tabular}
\end{compactcodebox}
The \meta{align} argument is obtained by expanding:
\cmddef{glstablesubentryalign}
which takes the \glstableopt{par} setting into account.
Each child item is display using \gls{glstableblocksubentry}
which is redefined by the block style.
The separator between each child item is given by:
\cmddef{glstableblocksubentrysep}
This just expands to \gls{glstablenewline}.
\subsubsection{Options}
\label{sec:tableoptions}
The optional argument of \gls{printunsrttable} may have the options
that can typically be passed to \gls{printunsrtglossary}, except
that the \printglossopt{nonumberlist} and \printglossopt{style}
options won't have an effect. If you want the \idx{locationlist}, it
can simply be obtained from the \gloskey{location} field in the
appropriate style hook.
Some default settings are changed:
\printglossoptval{groups}{false} and
\printglossopt{nogroupskip}{true}. If you want letter \idx{group}
headings, you will need to both add \printglossoptval{groups}{true} to
the options list and invoke \app{bib2gls} with the \switch{group}
switch. The group headings will span the entire width of the table.
This may result in empty blocks at the end of the previous row.
If you want a vertical gap before the group heading (but not before the
first group), you will need to add
\printglossopt{nogroupskip}{false}, but you will also need to load
\sty{glossary-longbooktabs}. Note that this option is designed to be
used with group headings and will have no effect with
\printglossoptval{groups}{false}.
Additionally, the following options may also be used.
\optiondef{printunsrttab.blocks}
The value is the number of blocks in the table.
The total number of columns in the table will be this value
multiplied by the number of columns per block, which is determined
by the block style. For example, the \glstableblockstyle{name-desc}
block style has two columns, so if there are three blocks then there will be a
total of six columns.
\optiondef{printunsrttab.caption}
A boolean option that determines whether or not to include a
caption. The caption on the first page of the table is produced
with:
\cmddef*{glstablecaption}
where \meta{label code} is the code to create the label, if one has
been supplied (either by an option such as \optval{numberedsection}{autolabel}
or by the \printglossopt{label} option). The \meta{title} argument
will be \gls{glossarytitle}, which can be changed with the
\printglossopt{title} option. The \meta{lot title} argument is the
title for the list of tables and is actually what would normally be
the title for the table of contents, which
can be set with the \printglossopt{toctitle} option. The default
definition simply does:
\begin{compactcodebox}
\gls{caption}\oargm{lot title}\marg{\meta{label code}\meta{title}}
\end{compactcodebox}
An empty \meta{lot title} (\printglossoptvalm{toctitle}{}) will prevent
the caption from being added to the list of tables.
\begin{important}
The \opt{numberedsection} option will only influence the
label, not the table numbering. If you don't want the table
numbered, redefine \gls{glstablecaption} to use \starredcs{caption}.
\end{important}
If the table spans across multiple pages, the caption for subsequent pages
will be produced with:
\cmddef*{glstablenextcaption}
This ignores the \meta{lot title} argument by default and does:
\begin{compactcodebox}
\gls{caption}\oarg{}\marg{\meta{title}\gls{glstablepostnextcaption}}
\end{compactcodebox}
This has an empty optional argument to prevent the caption from
being repeatedly added to the list of tables. The title is followed
by:
\cmddef*{glstablepostnextcaption}
You can either redefine this command to adjust the content after the
title or redefine \gls{glstablenextcaption}, as appropriate.
\optiondef{printunsrttab.header}
A boolean option to determine whether or not to show the header row.
Note that a header with three column block styles, such as
\glstableblockstyle{name-symbol-desc}, can result in overfull lines.
You may need to shorten the header text to fit.
The header text is produced with one of the following commands:
\cmddef*{glstablenameheader}
Expands to the header for the name column. Just uses \gls{entryname}
by default.
\cmddef*{glstabledescheader}
Expands to the header for the description column for block styles
like \glstableblockstyle{name-desc} and
\glstableblockstyle{name-symbol-desc}. Just uses
\gls{descriptionname} by default.
\cmddef*{glstablesymbolheader}
Expands to the header for the symbol column for block styles like
\glstableblockstyle{name-symbol} and
\glstableblockstyle{name-symbol-desc}. Just uses \gls{symbolname} by
default.
\cmddef*{glstableotherheader}
Expands to the header for the other column. The default definition
applies \gls{MFUsentencecase} to the other field label.
\optiondef{printunsrttab.rules}
A boolean option to determine whether or not to show the horizontal
rules (provided by \sty{booktabs}). If used with
\glstableoptval{header}{true}, there will be a rule above and below
the header row. If used with
\glstableoptval{header}{false}, there will only be one rule at the
top of the table. In both cases, there will be a rule at the bottom
of the table.
\optiondef{printunsrttab.blocksep}
The value is inserted into the alignment specifier list between
blocks. For example, the default value of the pipe character will
insert a vertical line. Set this value to empty to remove it.
\optiondef{printunsrttab.par}
Indicates whether or not the columns should be paragraphs. The value
may be one of: \optfmt{false}, \optfmt{justified} or
\optfmt{ragged}. The default \glstableoptval{par}{false} will just
use one of the column specifiers \code{l}, \code{r} or \code{c}.
The other values will use the \code{p} specifier, in which case
the column widths will be calculated.
\optiondef{printunsrttab.other}
This should be set to the \idx{internalfieldlabel} of the other
field or to empty if no other field should be included.
\optiondef{printunsrttab.init}
The \meta{code} will be added shortly before
\gls{printunsrtglossary} is called and any local changes will be
scoped.
\optiondef{printunsrttab.block-style}
The block style. Available styles are listed in
\sectionref{sec:blockstyles}.
\subsubsection{Block Styles}
\label{sec:blockstyles}
The block style may be set with the \glstableopt{block-style} option
or with:
\cmddef{glstablesetstyle}
\begin{warning}
The block styles are still under development, so the underlying
commands are not yet documented and liable to change.
\end{warning}
The following block styles are predefined.
\glstableblockstyledef{name}
Blocks have one column with the name, which is followed by the symbol and
the description, if they have been set, in parentheses. The child list
follows at the end of the column (if \glosfield{childcount} is set
and non-zero).
\glstableblockstyledef{name-desc}
This is the default style.
Blocks have two columns with the name in the first column of the
block and the description in the second. If the other field is set,
it will follow the description. The child entries will be at the end
of the second column (if \glosfield{childcount} is set and
non-zero).
\glstableblockstyledef{desc-name}
As \glstableblockstyle{name-desc} but with the columns swapped.
The child entries (if \glosfield{childcount} is set and
non-zero) will be at the end of the first column.
\glstableblockstyledef{name-symbol}
Blocks have two columns with the name in the first column of the
block and the symbol in the second.
If the other field is set, it will be placed after the name in the
first column. The child entries are at the end
of the first column (if \glosfield{childcount} is set and non-zero).
\glstableblockstyledef{symbol-name}
As \glstableblockstyle{name-symbol} but with the columns swapped.
The child entries (if \glosfield{childcount} is set and
non-zero) will be at the end of the second column.
\glstableblockstyledef{name-other}
This is like \glstableblockstyle{name-desc} but puts the other field
in the second column. The description and symbol aren't shown.
The child entries (if \glosfield{childcount} is set and
non-zero) will be at the end of the second column.
\glstableblockstyledef{other-name}
This is like \glstableblockstyle{desc-name} but puts the other field
in the second column. The description and symbol aren't shown.
The child entries (if \glosfield{childcount} is set and
non-zero) will be at the end of the first column.
\glstableblockstyledef{symbol-other}
This is like \glstableblockstyle{name-other} but shows the
symbol instead of the name.
The child entries (if \glosfield{childcount} is set and
non-zero) will be at the end of the second column.
\glstableblockstyledef{other-symbol}
This is like \glstableblockstyle{other-name} but shows the
symbol instead of the name.
The child entries (if \glosfield{childcount} is set and
non-zero) will be at the end of the first column.
\glstableblockstyledef{name-symbol-desc}
Blocks have three columns with the name in the first column of the
block, the symbol in the second, and the description in the third,
preceded by the other field, if set.
The child entries are at the end
of the third column (if \glosfield{childcount} is set and non-zero).
\glstableblockstyledef{name-desc-symbol}
Blocks have three columns with the name in the first column of the
block, the description in the second, preceded by the other field,
if set, and the symbol in the third.
The child entries are at the end
of the second column (if \glosfield{childcount} is set and non-zero).
\glstableblockstyledef{name-other-desc}
Blocks have three columns with the name in the first column of the
block, the other in the second, and the description in the third.
The child entries are at the end
of the third column (if \glosfield{childcount} is set and non-zero).
\glstableblockstyledef{desc-other-name}
Blocks have three columns with the description in the first column of the
block, the other in the second, and the name in the third.
The child entries are at the end
of the first column (if \glosfield{childcount} is set and non-zero).
\glstableblockstyledef{name-symbol-other-desc}
Blocks have four columns with the name in the first column of the
block, the symbol in the second, the other in the third, and the
description in the fourth.
The child entries are at the end
of the fourth column (if \glosfield{childcount} is set and non-zero).
\glstableblockstyledef{name-other-symbol-desc}
Blocks have four columns with the name in the first column of the
block, the other in the second, the symbol in the third, and the
description in the fourth.
The child entries are at the end
of the fourth column (if \glosfield{childcount} is set and non-zero).
\glstableblockstyledef{desc-symbol-other-name}
Blocks have four columns with the description in the first column of the
block, the symbol in the second, the other in the third, and the
name in the fourth.
The child entries are at the end
of the first column (if \glosfield{childcount} is set and non-zero).
\glstableblockstyledef{desc-other-symbol-name}
Blocks have four columns with the description in the first column of the
block, the other in the second, the symbol in the third, and the
name in the fourth.
The child entries are at the end
of the first column (if \glosfield{childcount} is set and non-zero).
\subsubsection{Associated Commands}
\label{sec:tablecommands}
The rows are separated with:
\cmddef{glstablenewline}
This simply does \gls{tabularnewline} (not \gls{bksl} which has a
different action in paragraph columns).
The following commands are used in the column specifier where a
left, right or centred column is required, taking the
\glstableopt{par} option into account. Note that with
\glstableoptval{par}{justified}, the result will always be
\code{p\margm{width}}, whereas with \glstableoptval{par}{ragged}
the paragraph will be ragged right or ragged left or have centring
applied.
\cmddef{glstableleftalign}
Expands to \code{l} or \code{p\margm{width}}
or \code{>{\cmd{protect}\cmd{raggedright}p\margm{width}}},
depending on the \glstableopt{par} setting.
This command is used in the column specifier where a left-justified
column is required.
\cmddef{glstablerightalign}
Expands to \code{r} or \code{p\margm{width}}
or \code{>{\cmd{protect}\cmd{raggedleft}p\margm{width}}},
depending on the \glstableopt{par} setting.
This command is used in the column specifier where a right-justified
column is required.
\cmddef{glstablecenteralign}
Expands to \code{c} or \code{p\margm{width}}
or \code{>{\cmd{protect}\cmd{centering}p\margm{width}}},
depending on the \glstableopt{par} setting.
This command is used in the column specifier where a centred
column is required.
\cmddef{glstablenamecolalign}
Expands to the alignment for the name column. The default definition
uses left alignment:
\begin{compactcodebox}
\gls{glstableleftalign}\marg{\gls{glstablenamewidth}}
\end{compactcodebox}
\cmddef{glstabledesccolalign}
Expands to the alignment for the description column. The default definition
uses left alignment:
\begin{compactcodebox}
\gls{glstableleftalign}\marg{\gls{glstabledescwidth}}
\end{compactcodebox}
\cmddef{glstablesymbolcolalign}
Expands to the alignment for the symbol column, in block styles where
the symbol has its own column. The default definition
uses centred alignment:
\begin{compactcodebox}
\gls{glstablecenteralign}\marg{\gls{glstablesymbolwidth}}
\end{compactcodebox}
\cmddef{glstableothercolalign}
Expands to the alignment for the other column, in block styles where
the other field has its own column. The default definition
uses left alignment:
\begin{compactcodebox}
\gls{glstableleftalign}\marg{\gls{glstableotherwidth}}
\end{compactcodebox}
If \glstableoptval{par}{justified} or \glstableoptval{par}{ragged},
the column widths will be calculated. The following length
registers will be set, where applicable to the block style.
\cmddef{glstablenamewidth}
The width of the name column.
\cmddef{glstabledescwidth}
The width of the description column.
\cmddef{glstablesymbolwidth}
The width of the symbol column.
\cmddef{glstableotherwidth}
The width of the other column.
Unless \glstableoptval{par}{false}, the table will be the width of a
line and each block will have equal width.
\cmddef{glstableblockwidth}
Note that in all the above, the width doesn't include the
inter-column space given by \gls{tabcolsep}.
The length registers below are initialise to 5pt, and can be
redefined as appropriate.
\cmddef{glstablepostpreambleskip}
The vertical skip after the preamble.
\cmddef{glstableprepostambleskip}
The vertical skip before the postamble.
Formatting for the name, symbol, description and other field values
are applied by the following commands.
\cmddef{glstableNameFmt}
Formatting applied to the name. Simply does \meta{text} by default.
Note that the argument \meta{text}
will \code{\gls{glossentryname}\margm{label}}, so any formatting applied
by that command will also be in effect.
\cmddef{glstableSubNameFmt}
Formatting applied to the child name. Does nothing by default, which
means that the child name won't show.
\cmddef{glstableSymbolFmt}
Formatting applied to the symbol. Simply does \meta{text} by default.
Note that the argument \meta{text}
will \code{\gls{glossentrysymbol}\margm{label}}, so any formatting applied
by that command will also be in effect.
\cmddef{glstableSubSymbolFmt}
Formatting applied to the child symbol. Just does
\gls{glstableSymbolFmt} by default.
\cmddef{glstableDescFmt}
Formatting applied to the description. Simply does \meta{text} by default.
Note that the argument \meta{text}
will be:
\begin{compactcodebox}
\gls{glossentrydesc}\margm{label}\gls{glspostdescription}
\end{compactcodebox}
so any formatting applied by \gls{glossentrydesc} will also be in effect.
Note that the \gls{postdeschook} is included in the formatted.
\cmddef{glstableSubDescFmt}
Formatting applied to the child description. Just does
\gls{glstableDescFmt} by default.
The other field's \idxc{internalfieldlabel}{internal label} is
provided by expanding:
\cmddef{glstableotherfield}
This is redefined by the \glstableopt{other} option, but
it may be redefined before \gls{printunsrttable} if a default
field is required.
\cmddef{glstableOtherFmt}
The formatting applied to the other field. This just does
\meta{text} by default. The field value itself is displayed with:
\cmddef{glstableOther}
The default definition does:
\begin{compactcodebox}
\gls{glstableOtherFmt}\marg{\comment{}
\gls{glsxtrusefield}\margm{entry-label}\marg{\gls{glstableotherfield}}}
\end{compactcodebox}
The value for the child entries is displayed with:
\cmddef{glstableSubOther}
The default definition simply does
\gls{glstableOther}\margm{entry-label}
You can test whether or not the other field is set for a given entry
with:
\cmddef{glstableifhasotherfield}
This does \meta{true} of the other field is non-void
(according to \gls{ifglsfieldvoid}) otherwise it does
\meta{false}. This will always do \meta{false} if
\gls{glstableotherfield} is void.
The column headers are supplied by the following commands, where
applicable.
\cmddef{glstablenameheader}
The header for the name column. The default definition is
\gls{entryname}.
\cmddef{glstabledescheader}
The header for the description column. The default definition is
\gls{descriptionname}.
\cmddef{glstablesymbolheader}
The header for the symbol column. The default definition is
\gls{symbolname}.
\cmddef{glstableotherheader}
The header for the other column. The default definition is:
\begin{compactcodebox}
\gls{MFUsentencecase}\marg{\gls{glstableotherfield}}
\end{compactcodebox}
The column headers are formatted according to:
\cmddef{glstableHeaderFmt}
The default definition is \code{\gls{textbf}\margm{text}}.
\begin{warning}
The remaining commands are undocumented as they are liable to
change.
\end{warning}
\glsendrange{pkg.glossary-table}%
\chapter{Accessibility Support}
\label{sec:accsupp}
The \sty{glossaries} package comes with a supplementary package
\sty{glossaries-accsupp} that helps provide accessibility support.
The \sty{glossaries-extra} package provides additional support, but
only if the \sty{glossaries-accsupp} package has already been loaded
when the relevant commands are defined. The best and simplest way to do this
is through the \opt{accsupp} package option.
See the \ctanmirrornofn{macros/latex/contrib/glossaries/glossaries-user.html\#sec:accsupp}{\qt{Accessibility
Support}} chapter in the \sty{glossaries} user
guide for further information about \sty{glossaries-accsupp}.
\section{Abbreviations}
\label{sec:accessabbr}
The accessibility fields relating to abbreviations are
\gloskey{shortaccess}, \gloskey{shortpluralaccess},
\gloskey{longaccess} and \gloskey{longpluralaccess}. These provide
the replacement text for the corresponding \gloskey{short},
\gloskey{shortplural}, \gloskey{long} and \gloskey{longplural}
fields. The \gloskey{access} field provides the replacement text for
the \gloskey{name} field.
Some of these accessibility fields are automatically assigned by
\gls{newabbreviation} if they haven't been set.
\cmddef{glsxtrassignactualsetup}
This command is used to locally redefine common formatting commands
so that they can be stripped to obtain only the text. You can add
additional commands with \gls{appto}. For example, the following
eccentric example has some strange styling in the abbreviation:
\begin{codebox}
\gls{newabbreviation}\marg{foo}\marg{f\gls+{textsuperscript}\marg{o}\gls+{textsubscript}\marg{o}}\marg{furry old otters}
\end{codebox}
If an accessibility field is being automatically assigned with text
obtained from the short value, then the subscript and superscript
commands will need to be stripped. These need to be locally
redefined to just do their arguments:
\begin{codebox}
\gls{appto}\gls{glsxtrassignactualsetup}\marg{\%
\gls+{letcs}\marg{\gls{textsuperscript}}\marg{@firstofone}\%
\gls{letcs}\marg{\gls{textsubscript}}\marg{@firstofone}\%
}
\end{codebox}
The attributes that specifically relate to accessibility in
abbreviations are listed below. The \qt{actual short value} means
the value obtained from the \gloskey{short} value after any markup
commands have have locally redefined using
\gls{glsxtrassignactualsetup}. The actual short value may then be
modified by these attributes. Similarly, for the \qt{actual long value}.
Finally, if \gloskey{shortaccess} hasn't already been set, it will be set to:
\begin{codebox}
\gls{glsdefaultshortaccess}\margm{actual long}\margm{actual short}
\end{codebox}
(with \gls{glsdefaultshortaccess} expanded). This command is
provided by \sty{glossaries-accsupp} and is defined to do just
\margm{actual long}. It was redefined by \sty{glossaries-extra}
v1.42 to do \code{\margm{actual long} (\margm{actual short})}, but
has been reverted back to its original definition in v1.49.
\optiondef{catattr.accessinsertdots}
If the \gloskey{shortaccess} key hasn't been set then this
attribute will be checked. If true, the actual short value
will have dots inserted (as per \catattr{insertdots}). Note that if
this attribute hasn't been set but \catattr{insertdots} is true (and the
\gloskey{shortaccess} key hasn't been set), then the actual short value
will also have dots inserted.
\optiondef{catattr.accessaposplural}
If the \gloskey{shortpluralaccess} key hasn't been set then this
attribute will be checked. If true, the actual short plural value
will have the apostrophe suffix (similar to \catattr{aposplural} but
using \gls{glsxtrabbrvpluralsuffix} instead of
\gls{abbrvpluralsuffix}). Note that if this attribute hasn't been
set but \catattr{aposplural} is true (and the
\gloskey{shortpluralaccess} key hasn't been set), then the actual
short plural value will also have the apostrophe suffix.
\optiondef{catattr.accessnoshortplural}
If the \gloskey{shortpluralaccess} key hasn't been set and the
\catattr{accessaposplural} attribute hasn't been set, then this
attribute will be checked. If true, the actual short plural value
will be the same as the singular (as \catattr{noshortplural}). Note
that if this attribute hasn't been set but \catattr{noshortplural}
is true (and the \gloskey{shortpluralaccess} key hasn't been set), then
the actual short plural value will also be the singular form.
\optiondef{catattr.nameshortaccess}
If the \gloskey{access} key hasn't been set and this attribute is
true, then the \gloskey{access} field will be set to the same as the
\gloskey{shortaccess}.
\optiondef{catattr.textshortaccess}
If the \gloskey{textaccess} key hasn't been set and this attribute is
true, then the \gloskey{textaccess} field will be set to the same as the
\gloskey{shortaccess}. Additionally, if the \gloskey{pluralaccess}
key hasn't been set, then it will be set to the same as the
\gloskey{shortpluralaccess} value.
\optiondef{catattr.firstshortaccess}
If the \gloskey{firstaccess} key hasn't been set and this attribute is
true, then the \gloskey{firstaccess} field will be set to the same as the
\gloskey{shortaccess}. Additionally, if the \gloskey{firstpluralaccess}
key hasn't been set, then it will be set to the same as the
\gloskey{shortpluralaccess} value.
\section{Accessibility Wrappers}
\label{sec:glsaccessfield}
The glossary style commands such as \gls{glossentryname}
incorporate accessibility support by using the
\csfmt{glsaccess\meta{field}} commands instead of the corresponding
\csfmt{glsentry\meta{field}} commands.
If the \sty{glossaries-accsupp} package hasn't been loaded or if the
relevant accessibility field hasn't been set, these commands
simply do the corresponding \csfmt{glsentry\meta{field}} command.
\cmddef{glsaccessname}
This shows the \gloskey{name} field encapsulated with
\gls{glsnameaccessdisplay} or just
\gls{glsentryname}\margm{entry-label}.
\cmddef{Glsaccessname}
As above but \idx{sentencecase}.
\cmddef{GLSaccessname}
As above but \idx{allcaps}.
\cmddef{glsaccesstext}
This shows the \gloskey{text} field encapsulated with
\gls{glstextaccessdisplay} or just
\gls{glsentrytext}\margm{entry-label}.
\cmddef{Glsaccesstext}
As above but \idx{sentencecase}.
\cmddef{GLSaccesstext}
As above but \idx{allcaps}.
\cmddef{glsaccessplural}
This shows the \gloskey{plural} field encapsulated with
\gls{glspluralaccessdisplay} or just
\gls{glsentryplural}\margm{entry-label}.
\cmddef{Glsaccessplural}
As above but \idx{sentencecase}.
\cmddef{GLSaccessplural}
As above but \idx{allcaps}.
\cmddef{glsaccessfirst}
This shows the \gloskey{first} field encapsulated with
\gls{glsfirstaccessdisplay} or just
\gls{glsentryfirst}\margm{entry-label}.
\cmddef{Glsaccessfirst}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfirst}
As above but \idx{allcaps}.
\cmddef{glsaccessfirstplural}
This shows the \gloskey{firstplural} field encapsulated with
\gls{glsfirstpluralaccessdisplay} or just
\gls{glsentryfirstplural}\margm{entry-label}.
\cmddef{Glsaccessfirstplural}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfirstplural}
As above but \idx{allcaps}.
\cmddef{glsaccesssymbol}
This shows the \gloskey{symbol} field encapsulated with
\gls{glssymbolaccessdisplay} or just
\gls{glsentrysymbol}\margm{entry-label}.
\cmddef{Glsaccesssymbol}
As above but \idx{sentencecase}.
\cmddef{GLSaccesssymbol}
As above but \idx{allcaps}.
\cmddef{glsaccesssymbolplural}
This shows the \gloskey{symbolplural} field encapsulated with
\gls{glssymbolpluralaccessdisplay} or just
\gls{glsentrysymbolplural}\margm{entry-label}.
\cmddef{Glsaccesssymbolplural}
As above but \idx{sentencecase}.
\cmddef{GLSaccesssymbolplural}
As above but \idx{allcaps}.
\cmddef{glsaccessdesc}
This shows the \gloskey{description} field encapsulated with
\gls{glsdescriptionaccessdisplay} or just
\gls{glsentrydesc}\margm{entry-label}.
\cmddef{Glsaccessdesc}
As above but \idx{sentencecase}.
\cmddef{GLSaccessdesc}
As above but \idx{allcaps}.
\cmddef{glsaccessdescplural}
This shows the \gloskey{descriptionplural} field encapsulated with
\gls{glsdescriptionpluralaccessdisplay} or just
\gls{glsentrydescplural}\margm{entry-label}.
\cmddef{Glsaccessdescplural}
As above but \idx{sentencecase}.
\cmddef{GLSaccessdescplural}
As above but \idx{allcaps}.
\cmddef{glsaccessshort}
This shows the \gloskey{short} field encapsulated with
\gls{glsshortaccessdisplay} or just
\gls{glsentryshort}\margm{entry-label}.
\cmddef{Glsaccessshort}
As above but \idx{sentencecase}.
\cmddef{GLSaccessshort}
As above but \idx{allcaps}.
\cmddef{glsaccessshortpl}
This shows the \gloskey{shortplural} field encapsulated with
\gls{glsshortpluralaccessdisplay} or just
\gls{glsentryshortpl}\margm{entry-label}.
\cmddef{Glsaccessshortpl}
As above but \idx{sentencecase}.
\cmddef{GLSaccessshortpl}
As above but \idx{allcaps}.
\cmddef{glsaccesslong}
This shows the \gloskey{long} field encapsulated with
\gls{glslongaccessdisplay} or just
\gls{glsentrylong}\margm{entry-label}.
\cmddef{Glsaccesslong}
As above but \idx{sentencecase}.
\cmddef{GLSaccesslong}
As above but \idx{allcaps}.
\cmddef{glsaccesslongpl}
This shows the \gloskey{longplural} field encapsulated with
\gls{glslongpluralaccessdisplay} or just
\gls{glsentrylongpl}\margm{entry-label}.
\cmddef{Glsaccesslongpl}
As above but \idx{sentencecase}.
\cmddef{GLSaccesslongpl}
As above but \idx{allcaps}.
\cmddef{glsaccessuseri}
This shows the \gloskey{user1} field encapsulated with
\gls{glsuseriaccessdisplay} or just
\gls{glsentryuseri}\margm{entry-label}.
\cmddef{Glsaccessuseri}
As above but \idx{sentencecase}.
\cmddef{GLSaccessuseri}
As above but \idx{allcaps}.
\cmddef{glsaccessuserii}
This shows the \gloskey{user2} field encapsulated with
\gls{glsuseriiaccessdisplay} or just
\gls{glsentryuserii}\margm{entry-label}.
\cmddef{Glsaccessuserii}
As above but \idx{sentencecase}.
\cmddef{GLSaccessuserii}
As above but \idx{allcaps}.
\cmddef{glsaccessuseriii}
This shows the \gloskey{user3} field encapsulated with
\gls{glsuseriiiaccessdisplay} or just
\gls{glsentryuseriii}\margm{entry-label}.
\cmddef{Glsaccessuseriii}
As above but \idx{sentencecase}.
\cmddef{GLSaccessuseriii}
As above but \idx{allcaps}.
\cmddef{glsaccessuseriv}
This shows the \gloskey{user4} field encapsulated with
\gls{glsuserivaccessdisplay} or just
\gls{glsentryuseriv}\margm{entry-label}.
\cmddef{Glsaccessuseriv}
As above but \idx{sentencecase}.
\cmddef{GLSaccessuseriv}
As above but \idx{allcaps}.
\cmddef{glsaccessuserv}
This shows the \gloskey{user5} field encapsulated with
\gls{glsuservaccessdisplay} or just
\gls{glsentryuserv}\margm{entry-label}.
\cmddef{Glsaccessuserv}
As above but \idx{sentencecase}.
\cmddef{GLSaccessuserv}
As above but \idx{allcaps}.
\cmddef{glsaccessuservi}
This shows the \gloskey{user6} field encapsulated with
\gls{glsuserviaccessdisplay} or just
\gls{glsentryuservi}\margm{entry-label}.
\cmddef{Glsaccessuservi}
As above but \idx{sentencecase}.
\cmddef{GLSaccessuservi}
As above but \idx{allcaps}.
\section{Inner Formatting Wrappers}
\label{sec:glsaccessfmtfield}
These \csfmt{glsaccessfmt\meta{field}} commands are similar to the
corresponding \csfmt{glsaccess\meta{field}} commands described
above, but they format the field value using \gls{glsfmtfield},
\gls{Glsfmtfield} or \gls{GLSfmtfield} with the
supplied \meta{cs} encapsulating command.
The default entry display style \gls{glsgenentryfmt}, and the predefined abbreviation
styles all incorporate accessibility support by using these commands
in order to support the \idx{innerformatting}.
\cmddef{glsaccessfmtname}
This shows the \gloskey{name} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glsnameaccessdisplay}.
\cmddef{Glsaccessfmtname}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtname}
As above but \idx{allcaps}.
\cmddef{glsaccessfmttext}
This shows the \gloskey{text} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glstextaccessdisplay}.
\cmddef{Glsaccessfmttext}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmttext}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtplural}
This shows the \gloskey{plural} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glspluralaccessdisplay}.
\cmddef{Glsaccessfmtplural}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtplural}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtfirst}
This shows the \gloskey{first} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glsfirstaccessdisplay}.
\cmddef{Glsaccessfmtfirst}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtfirst}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtfirstplural}
This shows the \gloskey{firstplural} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glsfirstpluralaccessdisplay}.
\cmddef{Glsaccessfmtfirstplural}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtfirstplural}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtsymbol}
This shows the \gloskey{symbol} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glssymbolaccessdisplay}.
\cmddef{Glsaccessfmtsymbol}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtsymbol}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtsymbolplural}
This shows the \gloskey{symbolplural} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glssymbolpluralaccessdisplay}.
\cmddef{Glsaccessfmtsymbolplural}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtsymbolplural}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtdesc}
This shows the \gloskey{description} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glsdescriptionaccessdisplay}.
\cmddef{Glsaccessfmtdesc}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtdesc}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtdescplural}
This shows the \gloskey{descriptionplural} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glsdescriptionpluralaccessdisplay}.
\cmddef{Glsaccessfmtdescplural}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtdescplural}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtshort}
This shows the \gloskey{short} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glsshortaccessdisplay}.
\cmddef{Glsaccessfmtshort}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtshort}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtshortpl}
This shows the \gloskey{shortplural} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glsshortpluralaccessdisplay}.
\cmddef{Glsaccessfmtshortpl}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtshortpl}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtlong}
This shows the \gloskey{long} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glslongaccessdisplay}.
\cmddef{Glsaccessfmtlong}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtlong}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtlongpl}
This shows the \gloskey{longplural} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glslongpluralaccessdisplay}.
\cmddef{Glsaccessfmtlongpl}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtlongpl}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtuseri}
This shows the \gloskey{user1} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glsuseriaccessdisplay}.
\cmddef{Glsaccessfmtuseri}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtuseri}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtuserii}
This shows the \gloskey{user2} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glsuseriiaccessdisplay}.
\cmddef{Glsaccessfmtuserii}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtuserii}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtuseriii}
This shows the \gloskey{user3} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glsuseriiiaccessdisplay}.
\cmddef{Glsaccessfmtuseriii}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtuseriii}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtuseriv}
This shows the \gloskey{user4} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glsuserivaccessdisplay}.
\cmddef{Glsaccessfmtuseriv}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtuseriv}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtuserv}
This shows the \gloskey{user5} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glsuservaccessdisplay}.
\cmddef{Glsaccessfmtuserv}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtuserv}
As above but \idx{allcaps}.
\cmddef{glsaccessfmtuservi}
This shows the \gloskey{user6} field formatted with \meta{cs} and, if
accessibility support provided, encapsulated with
\gls{glsuserviaccessdisplay}.
\cmddef{Glsaccessfmtuservi}
As above but \idx{sentencecase}.
\cmddef{GLSaccessfmtuservi}
As above but \idx{allcaps}.
\chapter{Categories}
\label{sec:categories}
\begin{information}
For multi-entry categories, see \sectionref{sec:multiglscategory}.
\end{information}
Each entry defined by \gls{newglossaryentry} (or commands that
internally use it such as \gls{newabbreviation}) is assigned a
category through the \gloskey{category} key. You may add any
category that you like, but since the category is a label used in
the creation of some control sequences, avoid problematic characters
within the category label. (So take care if you have \sty{babel}
shorthands on that make some characters active.)
The use of categories can give you more control over the way entries
are displayed in the text or glossary. Note that an entry's category
is independent of the glossary type. Be careful not to confuse
\gloskey{category} with \gloskey{type}.
\cmddef{glscategory}
Expands to the category of the given entry or does nothing if the
entry doesn't exist (analogous to \gls{glsentryname}).
\cmddef{glsifcategory}
Tests if the entry given by \meta{entry-label} has the
\gloskey{category} set to \meta{category}.
An entry may have its \gloskey{category} field changed using
commands such as \gls{GlsXtrSetField} (see
\sectionref{sec:setfields}). In addition, the following commands are
provided to batch set the \gloskey{category} for a collection of
entries.
\cmddef{glsxtrsetcategory}
Globally sets the \gloskey{category} field to the fully expanded \meta{category-label}
for each entry listed in \meta{entry-labels}.
\cmddef{glsxtrsetcategoryforall}
Globally sets the \gloskey{category} field to the fully
expanded \meta{category-label} for each entry belonging to the
\idxpl{glossary} listed in \meta{glossary-labels}.
There are also some iterative commands available:
\cmddef{glsforeachincategory}
This iterates through all entries in the \idxpl{glossary} identified by
the comma-separated list \meta{glossary-labels} that have the
category given by \meta{category-label} and performs \meta{body} for
each match. Within \meta{body}, you can use \meta{glossary-cs} and
\meta{label-cs} (which much be control sequences) to access the
current glossary and entry label. If \meta{glossary-labels} is
omitted, all glossaries are assumed.
\cmddef{glsforeachwithattribute}
This iterates over all entries in the given list of \idxpl{glossary}
that have a category with the given \meta{attribute-label} set to
\meta{attribute-value} and performs \meta{body} at each iteration.
If \meta{glossary-types} is omitted, the list of all non-\idxpl{ignoredglossary}
is assumed. The remaining arguments are as for
\gls{glsforeachincategory}.
\section{Known Categories}
\label{sec:knowncategories}
These are the category labels that are set or referenced by
\sty{glossaries-extra}.
\optiondef{cat.general}
The default category assumed by \gls{newglossaryentry}.
\optiondef{cat.abbreviation}
The default category assumed by \gls{newabbreviation}.
\optiondef{cat.acronym}
The default category assumed by \gls{newacronym}.
\optiondef{cat.index}
The default category assumed by \gls{newterm}.
\optiondef{cat.symbol}
The default category assumed by \gls{glsxtrnewsymbol}.
\optiondef{cat.number}
The default category assumed by \gls{glsxtrnewnumber}.
\section{Attributes}
\label{sec:attributes}
Each category may have a set of attributes, where each attribute has
an associated value for its given category. An entry's attribute set
corresponds to the attributes associated with the entry's category.
As with the category, the attribute name is also a label. You can
provide your own custom attributes, which you can set and access
with the commands described in \sectionref{sec:attributecmds}.
\subsection{Known Attributes}
\label{sec:knownattributes}
This section lists attributes that \sty{glossaries-extra} sets or
accesses. If an attribute hasn't been set, a default is assumed.
For boolean attributes, the test may simply be to determine if the
attribute has been set to \code{true}, in which case any other value
or a missing value will be interpreted as false. Conversely, the
test may be to determine if the attribute has been set to
\code{false}, in which case any other value or a missing value will
be interpreted as true.
\begin{information}
See \sectionref{sec:multiglscategory} for attributes relating to
multi-entry categories.
\end{information}
\subsubsection{Abbreviation Attributes}
\label{sec:abbrattr}
See \sectionref{sec:accessabbr} for abbreviation accessibility attributes.
\optiondef{catattr.regular}
This attribute indicates whether or not an entry should be
considered a regular entry. This enables \gls{glsentryfmt} to
determine whether to use \gls{glsgenentryfmt} or
\gls{glsxtrgenabbrvfmt}.
The \cat{general} and \cat{acronym} categories have the
\catattr{regular} attribute automatically set to \code{true}.
Some abbreviation styles change this value.
\optiondef{catattr.discardperiod}
If set to \qt{true}, the \idx{postlinkhook} will discard a
\idx{fullstop} that follows \emph{non-plural} commands like
\gls{gls} or \gls{glstext}(see \sectionref{sec:postlinkhook}).
\begin{information}
This attribute doesn't apply to the accessibility fields.
See \sectionref{sec:accessabbr} for attributes related to
accessibility support for abbreviations.
\end{information}
Note that this can cause a problem if you access a field that
doesn't end with a full stop. For example:
\begin{codebox}
\gls{newabbreviation}
\oarg{\gloskeyval{user1}{German Speaking \cmd{TeX}\cmd{ }User Group}}
\marg{dante}\marg{DANTE e.V.}\marg{Deutschsprachige Anwendervereinigung
\cmd{TeX}\cmd{ }e.V.}
\end{codebox}
Here the \gloskey{short} and \gloskey{long} fields end with a full stop, but the
\gloskey{user1} field doesn't. The simplest solution in this
situation is to put the sentence terminator in the final optional
argument. For example:
\begin{codebox}
\gls{glsuseri}\marg{dante}\oarg{.}
\end{codebox}
This will bring the punctuation character inside the \idx{linktext}
and it won't be discarded.
\optiondef{catattr.pluraldiscardperiod}
If this attribute is set to
\qt{true} \emph{and} the \catattr{discardperiod} attribute is set to
\qt{true}, this will behave as above for the plural commands like
\gls{glspl} or \gls{glsplural}.
\optiondef{catattr.retainfirstuseperiod}
If this attribute is set to \qt{true} then the discard is determined
by \gls{glsxtrdiscardperiodretainfirstuse}, regardless of the
\catattr{discardperiod} or \catattr{pluraldiscardperiod} attributes.
This is useful for \meta{short} (\meta{long}) abbreviation styles
where only the short form has a trailing \idx{fullstop}.
\begin{information}
This attribute doesn't apply to the accessibility fields.
See \sectionref{sec:accessabbr} for attributes related to
accessibility support for abbreviations.
\end{information}
\optiondef{catattr.markwords}
If this attribute is set to \qt{true}
any entry defined using \gls{newabbreviation} will automatically
have spaces in the long form replaced with:
\cmddef{glsxtrwordsep}
and each word is encapsulated with:
\cmddef{glsxtrword}
For example:
\begin{codebox}
\gls{glssetcategoryattribute}\marg{\cat{abbreviation}}\marg{\catattr{markwords}}\marg{true}
\gls{newabbreviation}\marg{ip}\marg{IP}\marg{Internet Protocol}
\end{codebox}
is essentially the same as
\begin{codebox}
\gls{newabbreviation}\marg{ip}\marg{IP}
\marg{\gls{glsxtrword}\marg{Internet}\gls{glsxtrwordsep}\gls{glsxtrword}\marg{Protocol}}
\end{codebox}
The \qt{hyphen} styles, such as
\abbrstyle{long-hyphen-short-hyphen}, take advantage of this
markup. If the inserted material (provided in the final argument
of \idx{glslike} commands) starts with a hyphen then
\gls{glsxtrwordsep} is locally redefined to a hyphen. (The default
value is a space). Note that this only applies to commands
like \gls{gls} and not like \gls{glsxtrlong}. You can provide your own
localised switch, if required. For example:
\begin{codebox}
\cmd{newcommand}\marg{\cmd{hyplong}}[2][]\marg{\%
\marg{\cmd{def}\gls{glsxtrwordsep}\marg{-}\gls{glsxtrlong}\oarg{\#1}\marg{\#2}}}
\end{codebox}
This setting will also adjust the long plural. This attribute is
only applicable to entries defined using \gls{newabbreviation} (or
\gls{newacronym} if it's using \gls{newabbreviation}.)
\begin{important}
This setting may result in the \gls{glsxtrword} and
\gls{glsxtrwordsep} markup ending up in the \gloskey{sort} field,
depending on the style in use.
\end{important}
\optiondef{catattr.markshortwords}
This is similar to
\catattr{markwords} but applies to the short form. (Only useful for
abbreviations that contain spaces.) This attribute is only applicable to entries
defined using \gls{newabbreviation} (or \gls{newacronym} if it's using
\gls{newabbreviation}.)
This setting will only adjust the short plural if the
\gloskey{shortplural} key isn't used. This setting will
take precedence over \catattr{insertdots}.
\begin{important}
This setting may result in the
\gls{glsxtrword} and \gls{glsxtrwordsep} markup ending up in the
\gloskey{sort} field, depending on the style in use.
\end{important}
\optiondef{catattr.insertdots}
If this attribute is set to \qt{true}
any entry defined using \gls{newabbreviation} will automatically
have \idxpl{fullstop} inserted after each letter. The entry will
be defined with those dots present as though they had been present
in the \meta{short} argument of \gls{newabbreviation} (rather than
inserting them every time the entry is used). The short plural
form defaults to the new dotted version of the original \meta{short}
form with the plural suffix appended. \emph{This setting is incompatible
with \catattr{markshortwords}.} This attribute is only applicable to entries
defined using \gls{newabbreviation} (or \gls{newacronym} if it's using
\gls{newabbreviation}.)
\begin{important}
If you explicitly override
the short plural using the \gloskey{shortplural} key, you must
explicitly insert the dots yourself (since there's no way for the
code to determine if the plural has a suffix that shouldn't be
followed by a dot).
\end{important}
This attribute is best used with the \catattr{discardperiod}
attribute set to \qt{true}.
\optiondef{catattr.aposplural}
If this attribute is set to \qt{true},
\gls{newabbreviation} will insert an apostrophe (') before
the plural suffix for the \emph{short} plural form (unless explicitly
overridden with the \gloskey{shortplural} key). The long plural form
is unaffected by this setting. This setting overrides
\catattr{noshortplural}. This attribute is only applicable to entries
defined using \gls{newabbreviation} (or \gls{newacronym} if it's using
\gls{newabbreviation}.) Check with your supervisor, publisher or
editor if you want to use this attribute as this
usage is controversial.
\optiondef{catattr.noshortplural}
If this attribute is set to
\qt{true}, \gls{newabbreviation} won't append the plural suffix for
the short plural form. This means the \gloskey{short} and
\gloskey{shortplural} values will be the same unless explicitly
overridden. \emph{This setting is incompatible with \catattr{aposplural}.} This attribute is only applicable to entries
defined using \gls{newabbreviation} (or \gls{newacronym} if it's using
\gls{newabbreviation}.)
\optiondef{catattr.tagging}
If this attribute is set to \qt{true},
the tagging command defined by \gls{GlsXtrEnableInitialTagging}
will be activated to use \gls{glsxtrtagfont} in the glossary
(see \sectionref{sec:tagging})
\subsubsection{Attributes that Alter \glsfmttext{glslink} Options}
\label{sec:glsoptsattr}
\optiondef{catattr.nohyperfirst}
When used with the \idx{glslike} commands, if this attribute is set
to \code{true}, this will automatically suppress the hyperlink on
\idx{firstuse}.
\begin{information}
This settings can be overridden by explicitly setting
the \glsopt{hyper} key on or off in the optional argument of
the \idx{glslike} command.
\end{information}
As from version 1.07, \gls{glsfirst},
\gls{Glsfirst}, \gls{GLSfirst} and their plural versions (which should ideally
behave in a similar way to the \idx{firstuse} of \gls{gls} or
\gls{glspl}) now honour
this attribute (but not the package-wide \optval{hyperfirst}{false}
option, which matches the behaviour of \sty{glossaries}). If you
want commands like \gls{glsfirst} to ignore the
\catattr{nohyperfirst} attribute then just redefine
\gls{glsxtrchecknohyperfirst} to do nothing.
\optiondef{catattr.nohypernext}
If set to \code{true}, this will automatically set
\glsoptval{hyper}{false} on \idx{subsequentuse} when using the \idx{glslike} commands.
\optiondef{catattr.nohyper}
If set to \code{true}, this will automatically set
\glsoptval{hyper}{false} when using the \idx{glslike} or
\idx{glstextlike} commands.
\optiondef{catattr.indexonlyfirst}
This is similar to the \opt{indexonlyfirst} package option but only
for entries that have a category with this attribute set to
\qt{true}.
\optiondef{catattr.wrgloss}
When using the \idx{glslike} or \idx{glstextlike} commands, this
will automatically set \glsoptval{wrgloss}{after} it this attribute
is set to \qt{after}.
\optiondef{catattr.textformat}
The \idx{glslike} and \idx{glstextlike} commands have the
\idx{linktext} encapsulated in the argument of \gls{glstextformat} by default
(the outer formatting, see \sectionref{sec:glstextformat}). If
the \catattr{textformat} attribute is set, the control sequence given by the attribute
value will be used instead. The attribute value
should be the name (without the leading backslash) of a command that
takes a single argument (the \idx{linktext}). Remember that the
abbreviation styles may apply an additional font change.
\optiondef{catattr.hyperoutside}
This boolean attribute may be \code{false}, \code{true} or unset. If unset,
\code{true} is assumed. This indicates the default setting
of the \glsopt{hyperoutside} option, described in
\sectionref{sec:glsopts}.
\subsubsection{Glossary Attributes}
\label{sec:glossattr}
\optiondef{catattr.glossdesc}
This attribute is checked by the \gls{glossentrydesc} to determine
whether or not to apply any \idx{casechange}. The value may be one
of:
\begin{deflist}
\itemtitle{\optfmt{firstuc}}
\begin{itemdesc}
Applies \idx+{sentencecase}. That is, the first letter of the
description will be converted to \idx{uppercase} (using \gls{Glsentrydesc}).
\end{itemdesc}
\itemtitle{\optfmt{title}}
\begin{itemdesc}
Applies \idx+{titlecase}.
If you have at least \sty{glossaries} v4.48, the title casing is indirectly performed
by \gls{glscapitalisewords}, which defaults to \gls{capitalisewords}
(provided by \sty{mfirstuc}). You can either redefine
\gls{glscapitalisewords} if you want the change to also affect
\gls{glsentrytitlecase} or if you only want the change to apply to
the attribute case-changing then redefine
\gls{glsxtrfieldtitlecasecs}. For example:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtrfieldtitlecasecs}}[1]\marg{\gls{xcapitalisefmtwords}*\marg{\#1}}
\end{codebox}
(Note that the argument to \gls{glsxtrfieldtitlecasecs}
will be a control sequence whose replacement text is the
entry's description, which is why \gls{xcapitalisefmtwords}
is needed instead of \gls{capitalisefmtwords}.)
\begin{warning}
If an error occurs with this setting, try redefining
\gls{glsxtrfieldtitlecasecs} as shown above.
\end{warning}
\end{itemdesc}
\end{deflist}
Any other values of this attribute are ignored. Remember
that there are design limitations for both the \idx{sentencecase} and the
\idx{titlecase} commands. See the \sty{mfirstuc} user manual for further details.
\begin{information}
If you are using \app{bib2gls}, you can use the
\resourceopt{description-case-change} setting instead.
\end{information}
\optiondef{catattr.glossdescfont}
If set, the value should be the name of a control sequence (without
the leading backslash) that takes one argument. This control
sequence will be applied by \gls{glossentrydesc} to the description text. For example:
\begin{codebox}
\gls{glssetcategoryattribute}\marg{\cat{general}}\marg{\catattr{glossdescfont}}\marg{emph}
\end{codebox}
\optiondef{catattr.glossname}
As \catattr{glossdesc} but applies to \gls{glossentryname}.
Additionally, if this attribute is set to \qt{uc} the name is
converted to \idx{allcaps}.
\begin{information}
If you are using \app{bib2gls}, you can use the
\resourceopt{name-case-change} setting instead.
\end{information}
\optiondef{catattr.indexname}
If set, the \idx{postnamehook} will index the entry using
\gls{index}. See \sectionref{sec:autoindex} for further details.
\optiondef{catattr.glossnamefont}
As \catattr{glossdescfont} but applies to \gls{glossentryname}.
Note that this overrides \gls{glsnamefont} which will only
be used if this attribute hasn't been set.
Remember that \idxpl{glossarystyle} may additionally apply a font change,
such as the list styles which put the name in the optional argument
of \gls{item}.
\optiondef{catattr.glosssymbolfont}
This is similar to \catattr{glossnamefont} and
\catattr{glossdescfont} but is used by \gls{glossentrysymbol}.
\subsubsection{Other Attributes}
\label{sec:otherattr}
\optiondef{catattr.headuc}
If this attribute is set to \qt{true},
commands like \gls{glsfmtshort} will use the upper case version
in the page headers.
\optiondef{catattr.entrycount}
The value of this attribute (if set) must be an integer and is used
in combination with \gls{glsenableentrycount}
(see \sectionref{sec:entrycount}). Leave blank or undefined
for categories that shouldn't have this facility enabled. The
value of this attribute is used by \gls{glsxtrifcounttrigger}
to determine how commands such as \gls{cgls} should behave.
\optiondef{catattr.linkcount}
This attribute is set to
\code{true} by \gls{GlsXtrEnableLinkCounting} (see
\sectionref{sec:linkcount}).
\optiondef{catattr.linkcountmaster}
This attribute is set by \gls{GlsXtrEnableLinkCounting} to
the name of the counter that requires the link counter to be added
to its reset list (see \sectionref{sec:linkcount}).
\optiondef{catattr.dualindex}
If this attribute is set, whenever a glossary entry
has information written to the external glossary file
through commands like \gls{gls} and \gls{glsadd}, a~corresponding
line will be written to the indexing file using \gls{index}.
The value may be \code{true} to simply enable this feature or the
value may be the encap to use with \gls{index}. See
\sectionref{sec:autoindex} for further details.
\optiondef{catattr.targeturl}
If set, the hyperlink generated by commands like \gls{gls} will be
set to the URL provided by this attribute's value. For example:
\begin{codebox}
\gls{glssetcategoryattribute}\marg{\cat{general}}\marg{\catattr{targeturl}}\marg{master-doc.pdf}
\end{codebox}
(See also the accompanying sample file
\file{sample-external.tex}.) If the URL contains awkward
characters (such as \verb|%| or \verb|~|) remember that the base
\sty{glossaries} package provides commands like
\gls{glspercentchar} and \gls{glstildechar} that expand to literal
characters.
\optiondef{catattr.targetname}
If you want to a named anchor within the target URL (notionally
adding \code{\#\meta{name}} to the URL), then you also
need to set \catattr{targetname} to the anchor \meta{name}. You may
use \gls{glslabel} within \meta{name} which is set by commands
like \gls{gls} to the entry's label.
All the predefined \idxpl{glossarystyle} start each entry
listing with \gls{glstarget} which sets the anchor to
\code{\gls{glolinkprefix}\gls{glslabel}}, so if you want entries to link
to glossaries in the URL given by \catattr{targeturl}, you
can just do:
\begin{codebox}
\gls{glssetcategoryattribute}\marg{\cat{general}}\marg{\catattr{targetname}}\marg{\gls{glolinkprefix}\gls{glslabel}}
\end{codebox}
(If the target document changed \gls{glolinkprefix} then you will
need to adjust the above as appropriate.)
\optiondef{catattr.targetcategory}
If the anchor is in the form \code{\meta{name1}.\meta{name2}}
then use \catattr{targetname} for the \meta{name2} part and
\catattr{targetcategory} for the \meta{name1} part.
For example:
\begin{codebox}
\gls{glssetcategoryattribute}\marg{\cat{general}}\marg{\catattr{targeturl}}\marg{master-doc.pdf}
\gls{glssetcategoryattribute}\marg{\cat{general}}\marg{\catattr{targetcategory}}\marg{page}
\gls{glssetcategoryattribute}\marg{\cat{general}}\marg{\catattr{targetname}}\marg{7}
\end{codebox}
will cause all link text for \cat{general} entries to
link to \filefmt{master-doc.pdf\#page.7} (page 7 of that PDF).
If you want a mixture in your document of entries that link to
an internal glossary and entries that link to an external URL
then you can use \gls{newignoredglossary*}
for the external list. For example:
\begin{codebox}
\gls{newignoredglossary*}\marg{external}
\codepar
\gls{glssetcategoryattribute}\marg{external}\marg{\catattr{targeturl}}\marg{master-doc.pdf}
\gls{glssetcategoryattribute}\marg{\cat{general}}\marg{\catattr{targetname}}\marg{\gls{glolinkprefix}\gls{glslabel}}
\codepar
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{local example}}
\codepar
\gls{newglossaryentry}\marg{sample2}\marg{\gloskeyval{name}{sample2},
\gloskeyval{type}{external},
\gloskeyval{category}{external},
\gloskeyval{description}{external example}}
\end{codebox}
\optiondef{catattr.externallocation}
The value should be the file name of the target document when
manually indexing an external location with \glsopt{thevalue}. In
general, it's better to use \app{bib2gls} v1.7+ which can handle
multiple external sources and doesn't require this attribute.
\subsection{Accessing and Setting Attributes}
\label{sec:attributecmds}
Attributes can be set using the following commands:
\cmddef{glssetcategoryattribute}
Locally sets the given attribute to \meta{value} for the given
category.
\cmddef{glssetcategoriesattribute}
Globally sets the given attribute to \meta{value} for all the
categories in the comma-separated list \meta{category list}.
\cmddef{glssetcategoryattributes}
Globally sets each attribute in the comma separated
\meta{attribute list} to \meta{value} for the given \meta{category}.
\cmddef{glssetcategoriesattributes}
Globally sets each attribute in the comma separated
\meta{attribute list} to \meta{value} for each
category in the comma-separated list \meta{category list}.
\cmddef{glssetattribute}
Locally sets the given attribute to \meta{value} for the
category associated with the entry identified by
\meta{entry-label}. This command can't be used to assign an
attribute for a multi-entry category.
\cmddef{glssetregularcategory}
A shortcut that sets the \catattr{regular} attribute to \code{true}
for the given category using \gls{glssetcategoryattribute}.
An attribute can be locally unset using:
\cmddef{glsunsetcategoryattribute}
Attribute values can be obtained with the following commands:
\cmddef{glsgetcategoryattribute}
Expands to the value of the given attribute for the given
category. Expands to nothing if the attribute hasn't been set.
\cmddef{glsgetattribute}
Expands to the value of the given attribute for the category
associated with the entry identified by \meta{entry-label}. Expands
to nothing if the attribute hasn't been set. This command can't be
used to assign an attribute for a multi-entry category.
Attributes can be tested with the following commands.
\cmddef{glshascategoryattribute}
This uses \sty{etoolbox}['s] \gls{ifcsvoid} and does \meta{true} if
the attribute has been set and isn't blank and isn't \gls{relax}
otherwise it does \meta{false}.
\cmddef{glshasattribute}
As \gls{glshascategoryattribute} but the category is obtained from
the given entry. This command can't be used to test an attribute
associated with a multi-entry category.
\cmddef{glsifcategoryattribute}
This tests if the given attribute for the given category is set and
equal to \meta{value}. If true, \meta{true} is done. If the
attribute isn't set or is set but isn't equal to \meta{value},
\meta{false} is done.
For example:
\begin{codebox}
\gls{glsifcategoryattribute}\marg{\cat{general}}\marg{\catattr{nohyper}}\marg{true}\marg{NO HYPER}\marg{HYPER}
\end{codebox}
This does \qt{NO HYPER} if the \cat{general} category has the
\catattr{nohyper} attribute set to \code{true} otherwise if
does \qt{HYPER}.
\cmddef{glsifattribute}
As \gls{glsifcategoryattribute} but the category is obtained from
the given entry. This command can't be used to test an attribute
associated with a multi-entry category.
\cmddef{glsifregularcategory}
A shortcut that tests if the given category has the
\catattr{regular} attribute set to \code{true}.
\cmddef{glsifnotregularcategory}
A shortcut that tests if the given category has the
\catattr{regular} attribute set to \code{false}.
\begin{warning}
If the \catattr{regular} attribute hasn't been set, both
\gls{glsifregularcategory} and \gls{glsifnotregularcategory} will do
\meta{false}. The choice of command needs to be determined by what
outcome should occur if the attribute hasn't been set.
\end{warning}
\cmddef{glsifregular}
As \gls{glsifregularcategory} but the category is obtained from
the given entry. This command can't be used to test an attribute
associated with a multi-entry category.
\cmddef{glsifnotregular}
As \gls{glsifnotregularcategory} but the category is obtained from
the given entry. This command can't be used to test an attribute
associated with a multi-entry category.
\cmddef{glsifcategoryattributetrue}
Expands to \meta{true} if the attribute is \code{true} and
\meta{false} otherwise. Expands to \meta{false} if there's no such
attribute for the given category.
\cmddef{glsifattributetrue}
As \gls{glsifcategoryattributetrue} but the category is obtained from
the given entry. Expands to \meta{false} if the entry isn't defined.
This command can't be used to test an attribute
associated with a multi-entry category.
\cmddef{glsifcategoryattributehasitem}
Does \meta{true} if the category has the attribute (whose
value is a comma-separated list) contains the given item and \meta{false}
otherwise. Does \meta{false} if there's
no such attribute for the given category. The item and list are
expanded and passed to \sty{datatool}['s] \gls{DTLifinlist} to
perform the test.
\chapter{\apptext{bib2gls}: Managing Reference Databases}
\label{sec:bib2gls}\glsstartrange{app.bib2gls}
The command line application \app{bib2gls} performs two functions in
one:
\begin{itemize}
\item selects entries according to \records\ found in the \ext+{aux} file
(similar to \BibTeX),
\item hierarchically sorts entries and collates \idxpl{locationlist}
(similar to \app{makeindex} or \app{xindy}).
\end{itemize}
Instead of storing all your entry definitions in a \ext+{tex} and
loading them using \gls{input} or \gls{loadglsentries}, the entries
can instead be stored in a \ext+{bib} file and \app{bib2gls} can
selectively write the appropriate commands to a \ext+{glstex}
file which is loaded using \gls{GlsXtrLoadResources}.
This means that you can use a reference managing system to maintain
the database and it reduces the \TeX\ overhead by only defining the
entries that are actually required in the document. If you currently
have a \ext{tex} file that contains hundreds of definitions, but
you only use a dozen or so in your document, then the build time is
needlessly slowed by the unrequired definitions that occur when the
file is input. (You can convert an existing \ext{tex} file
containing glossary definitions to a \ext{bib} file using
\app{convertgls2bib}, supplied with \app{bib2gls}.)
There are some new commands and options added to
\sty{glossaries-extra} to help assist the integration of
\app{bib2gls} into the document build process.
This chapter just provides a general overview of \app{bib2gls}.
The full details and some sample documents are provided
in the \app{bib2gls} \ctansupportmirror{bib2gls/bib2gls.pdf}{manual}
\texdocref{bib2gls}
\hypertarget{examplebib}{}An example of the contents of \ext{bib} file that stores
glossary entries that can be extracted with \app{bib2gls} called,
say, \filefmt{terms.bib}:
\newcommand{\termsbibcontent}{%
\atentry{entry}\marg{bird,\newline\space
\gloskeyval{name}{bird},\newline\space
\gloskeyval{description}{feathered animal},\newline\space
\gloskeyval{see}{[see also]duck,goose}\newline
}
\codepar
\atentry{entry}\marg{duck,\newline\space
\gloskeyval{name}{duck},\newline\space
\gloskeyval{description}{a waterbird with short legs}\newline
}
\codepar
\atentry{entry}\marg{goose,\newline\space
\gloskey{name}=\glsquote{goose},\newline\space
\gloskey{plural}=\glsquote{geese},\newline\space
\gloskeyval{description}{a waterbird with a long neck}\newline
}%
}%
\begin{codebox}
\termsbibcontent
\end{codebox}%
The following provides some abbreviations in a file called,
say, \filefmt{abbrvs.bib}:
\newcommand{\abbrvsbibcontent}{%
\atentry{string}\marg{ssi=\marg{server-side includes}}\newline
\atentry{string}\marg{html=\marg{hypertext markup language}}
\codepar
\atentry{abbreviation}\marg{shtml,\newline\space
\gloskey{short}=\glsquote{shtml},\newline\space
\gloskey{long}= ssi \# \glsquote{ enabled } \# html,\newline\space
\gloskeyval{description}{a combination of \gls{gls}\marg{html} and
\gls{gls}\marg{ssi}}\newline
}
\codepar
\atentry{abbreviation}\marg{html,\newline\space
\gloskey{short} =\glsquote{html},\newline\space
\gloskey{long} = html,\newline\space
\gloskeyval{description}{a markup language for creating web
pages}\newline
}
\codepar
\atentry{abbreviation}\marg{ssi,\newline\space
\gloskey{short}=\glsquote{ssi},\newline\space
\gloskey{long} = ssi,\newline\space
\gloskeyval{description}{a simple interpreted server-side
scripting language}\newline
}%
\codepar
\atentry{abbreviation}\marg{xml,\newline\space
\gloskey{short}=\marg{xml},
\gloskey{long}=\marg{extensible markup language},
\gloskey{description}=\marg{a simple text-base format for
representing structured information}
}%
}%
\begin{codebox}
\abbrvsbibcontent
\end{codebox}%
The above defines \ext{bib} strings (with \atentry{string}) and uses
string concatenation (with \code{\#}), which is a \BibTeX\
feature. Another supported \ext{bib} feature is \atentry{preamble},
which may be used to provide command definitions.
Here are some symbols in a file called,
say, \filefmt{symbols.bib}:
\newcommand{\symbolsbibcontent}{%
\atentry{preamble}\marg{\glsquote{\cmd{providecommand}\marg{\cmd{mtx}}[1]\marg{\cmd{boldsymbol}\marg{\#1}}}}
\codepar
\atentry{symbol}\marg{M,\newline\space
\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{mtx}\marg{M}}},\newline\space
\gloskeyval{description}{a matrix}\newline
}
\codepar
\atentry{symbol}\marg{v,\newline\space
\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{vec}\marg{v}}},\newline\space
\gloskeyval{description}{a vector}\newline
}
\codepar
\atentry{symbol}\marg{S,\newline\space
\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{mathcal}\marg{S}}},\newline\space
\gloskeyval{description}{a set}\newline
}%
}
\begin{codebox}
\symbolsbibcontent
\end{codebox}%
To ensure that \app{bib2gls} can find out which entries have been
used in the document, you need the \opt{record} package option:
\begin{codebox}
\cmd{usepackage}\oarg{\opt{record}}\marg{glossaries-extra}
\end{codebox}
If you are using \sty{hyperref}, you may prefer to use
\opteqvalref{record}{nameref}.
The \ext{glstex} file created by \app{bib2gls} is loaded using:
\cmddef{glsxtrresourcefile}
where \meta{basename} is the basename (without the extension) of the
\ext{glstex} file. This command will redefine \gls{glsindexingsetting}
to \code{bib2gls} (or \code{bib2gls-xindy} or
\code{bib2gls-makeindex} if \opteqvalref{record}{hybrid}).
There's a shortcut version:
\cmddef{GlsXtrLoadResources}
This internally uses \gls{glsxtrresourcefile} and sets the
\meta{basename} to \gls{jobname} in the first instance and to
\code{\gls{jobname}-\meta{n}} on subsequent instances (where
\meta{n} is incremented at the end of every \gls{GlsXtrLoadResources}).
For example:
\begin{codebox}
\cmd{usepackage}\oarg{record}\marg{glossaries-extra}
\gls{GlsXtrLoadResources}\oarg{\resourceoptvalm{src}{terms,moreterms}}
\gls{GlsXtrLoadResources}\oarg{\resourceoptvalm{src}{symbols,constants}}
\gls{GlsXtrLoadResources}\oarg{\resourceoptvalm{src}{abbreviations}}
\end{codebox}
is equivalent to:
\begin{codebox}
\cmd{usepackage}\oarg{record}\marg{glossaries-extra}
\gls{glsxtrresourcefile}\oarg{\resourceoptvalm{src}{terms,moreterms}}\marg{\gls{jobname}}
\gls{glsxtrresourcefile}\oarg{\resourceoptvalm{src}{symbols,constants}}\marg{\gls{jobname}-1}
\gls{glsxtrresourcefile}\oarg{\resourceoptvalm{src}{abbreviations}}\marg{\gls{jobname}-2}
\end{codebox}
If required, the value of \meta{n} is stored in the count register:
\cmddef{glsxtrresourcecount}
although there should be little need to use this.
\begin{information}
Since \gls{GlsXtrLoadResources} is more convenient to use than
\gls{glsxtrresourcefile}, all examples use
\gls{GlsXtrLoadResources}.
\end{information}
The \gls{glsxtrresourcefile} command writes the following to
the \ext{aux} file:
\cmddef{glsxtr@resource}
and will input \metafilefmt{}{filename}{.glstex} if it exists.
(Version 1.08 assumed \metafilefmt{}{filename}{.tex} but that's
potentially dangerous if, for example, \meta{filename} happens to be
the same as \gls{jobname}. The \ext+{glstex} extension was enforced
by version 1.11.)
If you are using or developing a build system that needs to know
which applications to run as part of the document build, you can
search the \ext{aux} for for instances of \gls{glsxtr@resource}. For
example, using \app{arara}:
\begin{codebox}
\% arara: bib2gls if found("aux", "glsxtr@resource")
\end{codebox}
Since the \ext{glstex} file won't exist on the first \LaTeX\ run, the
\opt{record} package option additionally switches on
\opteqvalref{undefaction}{warn}. Any use of commands like \gls{gls} or
\gls{glstext} will produce \idx{unknowntag} in the document, since the entries are
undefined at this point. Once \app{bib2gls} has created the
\ext{glstex} file the references should be resolved.
This may cause a shift in the locations if the actual text produced
once the entry is defined is significantly larger than the
placeholder \idx{unknowntag} (as this can alter the page breaking).
Note that as from v1.12, \gls{glsxtrresourcefile} temporarily
switches the category code of \code{@} to 11 (letter) while it
reads the file to allow for any internal commands.
\begin{information}
The package options \opteqvalref{record}{only} and
\opteqvalref{record}{nameref} automatically load
\sty{glossaries-extra-bib2gls}, which provides additional commands
that are useful with \app{bib2gls}. Since they cover sorting and
\idxpl{locationlist}, they're not relevant with the
\opteqvalref{record}{hybrid} option.
\end{information}
These commands are provided by \sty{glossaries-extra}
for use with \app{bib2gls}.
The information provided with \gls{GlsXtrLoadResources}
is written to the \ext{aux} file using:
\begin{compactcodebox}
\cmd{protected@write}\cmd{@auxout}\marg{\gls{glsxtrresourceinit}}\margm{information}
\end{compactcodebox}
where \meta{information} is the information to pass to
\app{bib2gls}. The command in the second argument:
\cmddef{glsxtrresourceinit}
may be used to temporarily redefine commands before the
information is written to the file. This does nothing
by default, but may be redefined to allow the use of
short commands for convenience. For example, with:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glsxtrresourceinit}}\marg{\cmd{let}\gls{u}\gls{glshex}}
\end{codebox}
you can just use, for example, \code{\gls{u} E6} instead of
\code{\gls{string}\gls{u}E6} in the custom rule. This redefinition of \gls{u}
is scoped so its original definition is restored after the write operation.
\cmddef{glsxtrMFUsave}
If you have \sty{mfirstuc} v2.08+, this command will be used on the
first instance of \gls{glsxtrresourcefile}, and will add
\gls{MFUsave} to the begin document hook and then disable itself.
This is provided to help \app{bib2gls} v3.0+ pick up any of
\sty{mfirstuc}['s] exclusions, blockers and mappings to assist with
its \idx{sentencecase} function. The assumption is that all
exclusions, blockers and mappings will be set up in the preamble. If
there are any within the \env{document} environment that you want
\app{bib2gls} to be aware of, redefine this command to do nothing
before the first instance of \gls{glsxtrresourcefile} (or
\gls{GlsXtrLoadResources}) and use \gls{MFUsaveatend} instead.
If you have multiple resource commands and you want a default set of
options you can supply them in the definition of:
\cmddef{GlsXtrDefaultResourceOptions}
For example:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{GlsXtrDefaultResourceOptions}}\marg{\resourceoptval{selection}{all}}
\end{codebox}
This should be done before the resource commands to which the
options should apply.
\section{Indexing (Recording)}
\label{sec:bib2glsindexing}
As with \app{makeindex} and \app{xindy}, the \idx{glslike} and
\idx{glstextlike} commands automatically index, but the underlying
\idx{indexing} mechanism is more like that used with
\gls{makenoidxglossaries}. Each indexing instance creates a \record\
in the \ext+{aux} file, which \app{bib2gls} can then pick up when it
parses the \ext{aux} file. Each record has an associated format (the
\idx{locationencap}) which can be set with the \glsopt{format} key
and an associated \idx{locationcounter} (as with the other indexing
methods).
The formatted \idx{locationlist} is stored in the \gloskey{location}
field (unless \resourceoptval{save-locations}{false}). Additionally,
the individual locations are stored in the \glosfield{loclist} field as
an \sty{etoolbox} internal list (as with \gls{makenoidxglossaries}).
This may be used to pick out individual locations to avoid the
complexity of parsing the formatted list.
See the \app{bib2gls} manual for information on how to separate the
\idx{locationlist} into groups associated with different counters.
\section{Selection}
\label{sec:bib2glsselection}
The default behaviour is for \app{bib2gls} to select all entries
that have a \record\ in the \ext{aux} file, and any dependent
entries (including parent and cross-references). The
\code{glsignore} format (for example,
\code{\gls{gls}\oarg{\glsoptval{format}{glsignore}}\marg{duck}}) is
recognised by \app{bib2gls} as a special
\idxc{ignoredlocation}{ignored record}. This means that it will
match the selection criteria but the record won't be added to the
location list. This means that you won't get spurious commas in the
\idx{locationlist} (as can happen with the other \idx{indexing}
methods), so you can do, for example,
\begin{codebox}
\gls{GlsXtrSetDefaultNumberFormat}\marg{glsignore}
\end{codebox}
at the start of the front matter and
\begin{codebox}
\gls{GlsXtrSetDefaultNumberFormat}\marg{glsnumberformat}
\end{codebox}
at the start of the main matter to prevent any records in the
front matter from occurring in the \idxpl{locationlist}.
\begin{warning}
Commands like \gls{glsaddall} and \gls{glsaddallunused} don't work
with \app{bib2gls} as the command has to iterate over each
\idx{glossary}['s] internal lists of defined entry labels, which
will be empty on the first run and on subsequent runs will only
contain those entries that have been selected by \app{bib2gls}.
Use \resourceoptval{selection}{all} to select all entries instead.
\end{warning}
The \resourceopt{selection} option indicates which entries should be
selected from the \ext{bib} files (listed in \resourceopt{src}).
For example, \resourceoptval{selection}{all} indicates to select all
entries, regardless of whether or not the entries have been
referenced in the document. This will lead to empty
\idxpl{locationlist} for some (or all) entries.
The default setting is \resourceoptval{selection}{recorded and
deps}, which indicates to select all entries that have \records\ and
any dependent entries. See the \app{bib2gls} user manual for more
details of this option.
\section{Sorting and Displaying the Glossary}
\label{sec:bib2glssortprint}
With \app{makeindex} and \app{xindy}, the terms (read from the
associated input file) are sorted and the code to typeset the
\idx{glossary} is written to an output file, which is then input by
\gls{printglossary}. With \app{bib2gls}, the entries supplied in the
\ext{bib} files are sorted and the entry definition code
(\gls{longnewglossaryentry} or \gls{newabbreviation}) is written to
the \ext{glstex} file in the order obtained by sorting. This means
that the \idx{glossary}['s] internal list is in the required order,
so the \idx{glossary} can be displayed with
\gls{printunsrtglossary} (see \sectionref{sec:printunsrt}).
The \idx{indexing} information, such as the \idx{locationlist} or
letter groups, is stored in fields such as \gloskey{location} or
\gloskey{group} (where applicable), so the information can be
included by \gls{printunsrtglossary}, but it means that the
information is also available for use elsewhere in the document (so
the \opt{savenumberlist} package option provided by \sty{glossaries}
is redundant).
There are many sorting options provided by \app{bib2gls}.
The default is to sort according to the system locale.
If the document has a language setting, you can use
\resourceoptval{sort}{doc} to instruct \app{bib2gls} to sort according to
that. (The language tag obtained from \sty{tracklang}['s]
interface is written to the \ext{aux} file.) For a multilingual
document you need to explicitly set the locale using a well-formed
language tag. For example:
\begin{codebox}
\gls{GlsXtrLoadResources}\oarg{
\resourceoptval{src}{terms}, \comment{ data in terms.bib}
\resourceoptval{sort}{de-DE-1996} \comment{ sort according to this locale}
}
\end{codebox}
The locale-sensitive sort methods usually ignore most
punctuation so for lists of symbols you may find it more
appropriate to use one of the letter-base sort methods
that sort according to the Unicode value of each character.
Alternatively you can provide a custom rule.
See the \app{bib2gls} manual for full details of all the available
sort methods.
Suppose the \ext{bib} examples shown \hyperlink{examplebib}{earlier}
have been stored in the files \filefmt{terms.bib},
\filefmt{abbrvs.bib} and \filefmt{symbols.bib} which may either be in
the current directory or on \TeX's path. Then the document might
look like:
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}\oarg{record}\marg{glossaries-extra}
\codepar
\gls{setabbreviationstyle}\marg{\abbrstyle{long-short-sc-desc}}
\codepar
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{terms,abbrvs,symbols}}
\codepar
\cbeg{document}
\gls{gls}\marg{bird}
\codepar
\gls{gls}\marg{shtml}
\codepar
\gls{gls}\marg{M}
\codepar
\gls{gls}\marg{printunsrtglossaries}
\cend{document}
\end{codebox}
The document build process (assuming the document is called
\filefmt{mydoc}) is:
\begin{terminal}
pdflatex mydoc
bib2gls mydoc
pdflatex mydoc
\end{terminal}
\begin{resultbox}
\createexample*[
label={ex:bib2gls},
title={Using \appfmt{bib2gls}: one resource set},
description={Example document using bib2gls with one resource set},
arara={pdflatex,bib2gls,pdflatex,pdfcrop}
]
{\cbeg{filecontents*}{terms.bib}^^J%
\termsbibcontent^^J%
\cend{filecontents*}^^J%
\cbeg{filecontents*}{abbrvs.bib}^^J%
\abbrvsbibcontent^^J%
\cend{filecontents*}^^J%
\cbeg{filecontents*}{symbols.bib}^^J%
\symbolsbibcontent^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}\oarg{record}\marg{glossaries-extra}
\codepar
\gls{setabbreviationstyle}\marg{long-short-sc-desc}
\codepar
\gls{GlsXtrLoadResources}\oarg{src=\marg{terms,abbrvs,symbols}}
\codepar
}
{\gls{gls}\marg{bird}
\codepar
\gls{gls}\marg{shtml}
\codepar
\gls{gls}\marg{M}
\codepar
\gls{printunsrtglossaries}
}
\end{resultbox}
This creates a single glossary containing the entries:
\code{bird}, \code{duck}, \code{goose},
\code{html}, \code{M}, \code{shtml} and \code{ssi} (in that
order). The \code{bird}, \code{shtml} and \code{M} entries
were added because \app{bib2gls} detected (from the \ext{aux}
file) that they had been used in the document. The other entries
were added because \app{bib2gls} detected (from the \ext{bib}
files) that they are referenced by the used entries. In the case of
\code{duck} and \code{goose}, they are in the \gloskey{see}
field for \code{bird}. In the case of \code{ssi} and
\code{html}, they are referenced in the \gloskey{description}
field of \code{shtml}. These cross-referenced entries won't have a
\idx{locationlist} when the \idx{glossary} is first displayed, but depending on
how they are referenced, they may pick up a \idx{locationlist} on the
next document build. The \code{xml} entry isn't required at all, and
so hasn't been defined (from LaTeX's point of view).
The entries can be separated into different glossaries with
different sort methods:
\begin{codebox}
\cmd{usepackage}\oarg{\opt{record},\opt{abbreviations},\opt{symbols}}\marg{glossaries-extra}
\codepar
\gls{setabbreviationstyle}\marg{\abbrstyle{long-short-sc-desc}}
\codepar
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{terms},\resourceoptval{sort}{en-GB},\resourceoptval{type}{main}}
\codepar
\gls{GlsXtrLoadResources}
\oarg{\resourceoptval{src}{abbrvs},\resourceoptval{sort}{letter-nocase},\resourceoptval{type}{abbreviations}}
\codepar
\gls{GlsXtrLoadResources}
\oarg{\resourceoptval{src}{symbols},\resourceoptval{sort}{use},\resourceoptval{type}{symbols}}
\codepar
\cbeg{document}
\gls{gls}\marg{bird}
\codepar
\gls{gls}\marg{shtml}
\codepar
\gls{gls}\marg{M}
\codepar
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*
[title={Using \appfmt{bib2gls}: multiple resource sets},
label={ex:bib2glsmultiresources},
description={Example document using bib2gls with multiple resource sets},
arara={pdflatex,bib2gls,pdflatex,pdfcrop}
]
{\cbeg{filecontents*}{terms.bib}^^J%
\termsbibcontent
\cend{filecontents*}^^J%
\cbeg{filecontents*}{abbrvs.bib}^^J%
\abbrvsbibcontent
\cend{filecontents*}^^J%
\cbeg{filecontents*}{symbols.bib}^^J%
\symbolsbibcontent^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}\oarg{record,abbreviations,symbols}\marg{glossaries-extra}
\codepar
\gls{setabbreviationstyle}\marg{long-short-sc-desc}
\codepar
\gls{GlsXtrLoadResources}\oarg{src=terms,sort=en-GB,type=main}
\codepar
\gls{GlsXtrLoadResources}
\oarg{src=abbrvs,sort=letter-nocase,type=abbreviations}
\codepar
\gls{GlsXtrLoadResources}
\oarg{src=symbols,sort=use,type=symbols}
}
{\gls{gls}\marg{bird}
\codepar
\gls{gls}\marg{shtml}
\codepar
\gls{gls}\marg{M}
\codepar
\gls{printunsrtglossaries}
}
\end{resultbox}
Or you can have multiple instance of \gls{GlsXtrLoadResources}
with the same \resourceopt{type}, which will produce a
\idx{glossary} with ordered sub-blocks. For example:
\begin{codebox}
\cmd{usepackage}\oarg{\opt{record},\optval{style}{\glostyle{indexgroup}}}\marg{glossaries-extra}
\codepar
\gls{setabbreviationstyle}\marg{\abbrstyle{long-short-sc-desc}}
\codepar
\gls{GlsXtrLoadResources}
\oarg{\resourceoptval{src}{abbrvs},\resourceoptval{sort}{letter-nocase},\resourceoptval{type}{main},
\resourceoptval{group}{abbreviations}}
\gls{glsxtrsetgrouptitle}\marg{abbreviations}\marg{Abbreviations}
\codepar
\gls{GlsXtrLoadResources}
\oarg{\resourceoptval{src}{symbols},\resourceoptval{sort}{use},\resourceoptval{type}{main},
\resourceoptval{group}{symbols}}
\gls{glsxtrsetgrouptitle}\marg{symbols}\marg{Abbreviations}
\codepar
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{terms},\resourceoptval{sort}{en-GB},\resourceoptval{type}{main}}
\codepar
\cbeg{document}
\gls{gls}\marg{bird}
\codepar
\gls{gls}\marg{shtml}
\codepar
\gls{gls}\marg{M}
\codepar
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
This sets the \gloskey{group} field for each resource set to the
label given by the \resourceopt{group} resource option.
This will result in a glossary where the first group has
the label \code{abbreviations} and title \qt{Abbreviations}, the second group has the
label \code{symbols} and title \qt{Symbols} and then follow the usual letter groups.
Note that for this example to work, you must run \app{bib2gls}
with the \switch{group} (or \switch{g}) switch. For example,
if the document is called \filefmt{myDoc.tex}:
\begin{terminal}
pdflatex myDoc
bib2gls \switch{g} myDoc
pdflatex myDoc
\end{terminal}
\begin{resultbox}
\createexample*[title={Using \appfmt{bib2gls}: sub-blocks},
label={ex:bib2glssubblocks},
description={Example document using bib2gls with multiple resource
sets for a single glossary to create a glossary with sub-blocks},
arara={pdflatex,bib2gls: { group: on },pdflatex,pdfcrop}
]
{\cbeg{filecontents*}{terms.bib}^^J%
\termsbibcontent
\cend{filecontents*}^^J%
\cbeg{filecontents*}{abbrvs.bib}^^J%
\abbrvsbibcontent
\cend{filecontents*}^^J%
\cbeg{filecontents*}{symbols.bib}^^J%
\symbolsbibcontent^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}\oarg{record,style=indexgroup}\marg{glossaries-extra}
\codepar
\gls{setabbreviationstyle}\marg{long-short-sc-desc}
\codepar
\gls{GlsXtrLoadResources}^^J
\oarg{src={abbrvs},sort=letter-nocase,type=main,^^J
group={abbreviations}}^^J%
\gls{glsxtrsetgrouptitle}\marg{abbreviations}\marg{Abbreviations}
\codepar
\gls{GlsXtrLoadResources}^^J
\oarg{src={symbols},sort=use,type=main,group=symbols}^^J%
\gls{glsxtrsetgrouptitle}\marg{symbols}\marg{Abbreviations}
\codepar
\gls{GlsXtrLoadResources}\oarg{src={terms},sort=en-GB,type=main}
}
{\gls{gls}\marg{bird}
\codepar
\gls{gls}\marg{shtml}
\codepar
\gls{gls}\marg{M}
\codepar
\gls{printunsrtglossaries}
}
\end{resultbox}
\begin{important}
The value of the \gloskey{group} field must always be a label (so
avoid special characters). You
can set the corresponding title with \code{glsxtrsetgrouptitle}
(see \sectionref{sec:glosstylemods}). If no title is set then the
label is used as the group title.
\end{important}
You can provide your own custom sort rule. For example,
if you are using \XeLaTeX\ or \LuaLaTeX:
\begin{codebox}
\gls{GlsXtrLoadResources}\oarg{
\resourceoptvalm{src}{terms}, \comment{entries in terms.bib}
\resourceoptval{sort}{custom}, \comment{custom sort rule}
\resourceoptvalm{sort-rule}{\comment{required with sort=custom}
< \ae;\AE\ < a;\'a;\aa;\"a,\"A;\'A;\AA;\"A < b,B
< c;\'c,C;\'C < d,D < e;\'e,E;\'E < f,F < g,G
< h,H < i;\'i,I;\'I < j,J < l;\l,L;\L < m,M < n,N
< o;\"o;\o,O;\"O;\O\ < p,P < q,Q < r,R < s;\'s,S;\'S
< t,T < u;\'u,U;\'U < v,V < w,W < x,X < y,Y <
z;\.z,Z;\.Z
}
}
\end{codebox}
\begin{warning}
With old versions of the \LaTeX\ kernel, \idx{utf8} characters,
such as \'e or \o, will expand when written to the \ext{aux} file.
\end{warning}
Some of the options, including \resourceopt{sort-rule},
allow Unicode characters to be indicated in the format
\gls{u}\meta{hex} (or \gls{u}~\meta{hex}). \app{bib2gls}
will recognise this as the character
given by the hexadecimal value \meta{hex}.
\begin{important}
The \meta{options} provided to \gls{GlsXtrLoadResources} will expand
as they are written to the \ext{aux} file (unless protected). This
includes \gls{u}, so with a non-Unicode aware engine or where the
document source is required to be \idx{ascii}, the character \ae\
needs to be written as \code{\gls{string}\gls{u} E6} and so on.
Alternatively, use the shortcut \code{\gls{string}\gls{u} E6}.
\end{important}
For example, the above can be rewritten as:
\begin{codebox}
\gls{GlsXtrLoadResources}\oarg{
\resourceoptvalm{src}{terms}, \comment{entries in terms.bib}
\resourceoptval{sort}{custom}, \comment{custom sort rule}
\resourceoptvalm{sort-rule}{\comment{required with sort=custom}
< \gls{glshex} E6;\gls{glshex} C6
< a;\gls{glshex} E1;\gls{glshex} E5,\gls{glshex} E4,A;\gls{glshex} C1;\gls{glshex} C5;\gls{glshex} C4
< b,B < c;\gls{glshex} 0107,C;\gls{glshex} 0106 < d,D
< e;\gls{glshex} E9,E;\gls{glshex} C9 < f,F < g,G
< h,H < i;\gls{glshex} ED,I;\gls{glshex} CD < j,J
< l;\gls{glshex} 0142,L;\gls{glshex} 0141 < m,M < n,N
< o;\gls{glshex} F6;\gls{glshex} F8,O;\gls{glshex} D6;\gls{glshex} D8
< p,P < q,Q < r,R < s;\gls{glshex} 013F,S;\gls{glshex} 015A
< t,T < u;\gls{glshex} FA,U;\gls{glshex} DA < v,V < w,W < x,X < y,Y
< z;\gls{glshex} 017C,Z;\gls{glshex} 017B
}
}
\end{codebox}
\section{Record Counting}
\label{sec:recordcount}
As from version 1.1 of \app{bib2gls}, you can save the total
record count for each entry by invoking \app{bib2gls}
with the \switch{record-count} or \switch{record-count-unit}
switches. These options will ensure that when each entry
is written to the \ext{glstex} file \app{bib2gls} will
additionally set the following internal fields for that entry:
\begin{itemize}
\item \glosfield{recordcount}: set to the total
number of \records\ found for the entry;
\item \glosfield{recordcount.counter}: set to the total
number of \records\ found for the entry for the given counter.
\end{itemize}
If \switch{record-count-unit} is used then additionally:
\begin{itemize}
\item \glosfield{recordcount.counter.location}: set to the total
number of \records\ found for the entry for the given counter with the
given location.
\end{itemize}
Only use the unit counting option if the locations don't contain any special
characters. With \sty{hyperref} use \theHcountername\ rather than
\thecountername. Otherwise, if you really need unit counting with locations
that may contain formatting commands, then you can try redefining:
\cmddef{glsxtrdetoklocation}
so that it detokenizes \meta{location} but take care when
using \gls{GlsXtrLocationRecordCount} with commands like
\gls{thepage} as they can end up becoming detokenized too early.
Note that the record count includes \locations\ that \app{bib2gls}
discards, such as \idxc{ignoredlocation}{ignored records}, duplicates and partial
duplicates (unless you filter them out with
\switch{record-count-rule}). It doesn't include cross-reference records. For
example, suppose a document has an entry with the label \code{bird}
that is \recorded\ (\indexed) as follows:
\begin{description}
\item[Page 1] two (2) instances of \code{\gls{gls}\marg{bird}};
\item[Page 2] one (1) instance of \code{\gls{gls}\marg{bird}};
\item[Page 3] four (4) instances of \code{\gls{gls}\marg{bird}};
\item[Section 3] one (1) instance of
\code{\gls{gls}\oarg{\glsoptval{counter}{section}}\marg{bird}}.
\end{description}
Then the total record count (stored in
the \glosfield{recordcount} field) is $2+1+4+1=8$, the total for the
\ctr{page} counter (stored in the
\glosfielddisp{recordcount.counter}{recordcount.page} field) is
$2+1+4=7$, and the total for the \ctr{section} counter (stored in
the \glosfielddisp{recordcount.counter}{recordcount.section} field)
is~1.
With the unit counting on as well, the following fields are assigned:
\begin{itemize}
\item \glosfielddisp{recordcount.counter.location}{recordcount.page.1} is
set to 2;
\item \glosfielddisp{recordcount.counter.location}{recordcount.page.2} is
set to 1;
\item \glosfielddisp{recordcount.counter.location}{recordcount.page.3} is
set to 4;
\item \glosfielddisp{recordcount.counter.location}{recordcount.section.3}
is set to~1.
\end{itemize}
You can access these fields using the following commands which
will expand to the field value if set or to 0 if unset:
\cmddef{GlsXtrTotalRecordCount}
This expands to the total record count for the entry given by
\meta{label}. For example:
\begin{codebox}
\gls{GlsXtrTotalRecordCount}\marg{bird}
\end{codebox}
expands to 8.
\cmddef{GlsXtrRecordCount}
This expands to the \idxc{locationcounter}{counter} total for the entry given by
\meta{entry-label} where \meta{counter} is the counter name.
For example:
\begin{codebox}
\gls{GlsXtrRecordCount}\marg{bird}\marg{\ctr{page}}
\end{codebox}
expands to 7 and
\begin{codebox}
\gls{GlsXtrRecordCount}\marg{bird}\marg{\ctr{section}}
\end{codebox}
expands to 1.
\cmddef{GlsXtrLocationRecordCount}
This expands to the total for the given \location. For example
\begin{codebox}
\gls{GlsXtrLocationRecordCount}\marg{bird}\marg{\ctr{page}}\marg{3}
\end{codebox}
expands to 4. Be careful about using \gls{thepage} in the
\meta{location} part. Remember that due to \TeX's asynchronous
output routine, \gls{thepage} may not be correct.
There are commands analogous to the entry counting commands like
\gls{cgls} and \gls{cglsformat} that are triggered by the record count.
These are listed below. The test to determine if the entry's record count
exceeds the trigger value (which should be stored in the
\catattr{recordcount} attribute) is obtained with:
\cmddef{glsxtrifrecordtrigger}
If the \catattr{recordcount} attribute is set and \meta{total}
exceeds the value given by the \catattr{recordcount} attribute, then
this does \meta{true} otherwise it does \meta{false}. The
\meta{total} is given by:
\cmddef{glsxtrrecordtriggervalue}
This should expand to the record count value that needs testing. The
default definition is:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{glsxtrrecordtriggervalue}}[1]\marg{\%
\gls{GlsXtrTotalRecordCount}\marg{\#1}\%
}
\end{compactcodebox}
This command may be redefined as appropriate. For example, it may be
redefined to use \gls{GlsXtrRecordCount} for a particular
\idx{locationcounter} or to use \gls{GlsXtrLocationRecordCount} for
a particular location.
The \catattr{recordcount} attribute may be set with
\gls{glssetcategoryattribute} or can be set for each listed category
with:
\cmddef{GlsXtrSetRecordCountAttribute}
The value must be an integer.
Commands like \gls{rgls} behave slightly differently to \gls{cgls}.
It's necessary for the command to add a \record\ to the \ext{aux}
file in order for the entry to be selected and for the record count
to be correct on the next \app{bib2gls}+\LaTeX\ run (for the default
\resourceoptvalm{selection}{recorded and deps}). The trigger record
is created with \glsoptval{format}{glstriggerrecordformat},
which \app{bib2gls} v1.1+ recognises as a special type of
\idx{ignoredlocation} format. This corresponds to the command:
\cmddef{glstriggerrecordformat}
As with \gls{glsignore}, this command does nothing and is considered
an ignored record (so it won't appear in the \idx{locationlist}),
but it indicates to \app{bib2gls} that the entry must be selected
and, if the \resourceopt{trigger-type} option has been set, the
entry will be assigned to the \resourceopt{trigger-type} glossary.
For example, to assign the entry to an \idx{ignoredglossary}:
\begin{codebox}
\gls{newignoredglossary}\marg{ignored}
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{trigger-type}{ignored}}
\end{codebox}
This ensures that the entry is defined but it won't show up the
normal glossary.
\begin{information}
The \idx{postlinkhook} won't be implemented if the record trigger is
tripped. (That is, if the \gls{rglsformat}-like command is used instead of
the \idx{glslike} command.)
\end{information}
\cmddef{rgls}
If the value has been supplied by the \catattr{recordcount}
attribute and is exceeded, this behaves like \gls{gls} otherwise it
creates a trigger record and uses:
\cmddef{rglsformat}
This has the same definition as \gls{cglsformat}.
\cmddef{rglspl}
If the value has been supplied by the \catattr{recordcount}
attribute and is exceeded, this behaves like \gls{glspl} otherwise
it creates a trigger record and uses:
\cmddef{rglsplformat}
which uses the appropriate plural fields.
\cmddef{rGls}
If the value has been supplied by the \catattr{recordcount}
attribute and is exceeded, this behaves like \gls{Gls} otherwise it
creates a trigger record and uses:
\cmddef{rGlsformat}
which performs the appropriate case-change.
\cmddef{rGlspl}
If the value has been supplied by the \catattr{recordcount}
attribute and is exceeded, this behaves like \gls{Glspl} otherwise
it creates a trigger record and uses:
\cmddef{rGlsplformat}
which uses the appropriate plural fields and case-change.
\cmddef{rGLS}
If the value has been supplied by the \catattr{recordcount}
attribute and is exceeded, this behaves like \gls{GLS} otherwise it
creates a trigger record and uses:
\cmddef{rGLSformat}
which performs the appropriate case-change.
\cmddef{rGLSpl}
If the value has been supplied by the \catattr{recordcount}
attribute and is exceeded, this behaves like \gls{GLSpl} otherwise
it creates a trigger record and uses:
\cmddef{rGLSplformat}
which uses the appropriate plural fields and case-change.
To make it easier to switch on record counting for an existing
document, you can use:
\cmddef{glsxtrenablerecordcount}
This redefines \gls{gls}, \gls{glspl}, \gls{Gls}, \gls{Glspl},
\gls{GLS}, \gls{GLSpl} to \gls{rgls}, \gls{rglspl}, \gls{rGls},
\gls{rGlspl}, \gls{rGLS}, \gls{rGLSpl}, respectively, for
convenience. This command will also switch the shortcut commands
such as \gls{ac} or \gls{ab}, if they have been enabled, from using
the \gls{cgls}-like commands to the corresponding \gls{rgls}
command.
For example, using the earlier
\hypertarget{examplebib}{\filefmt{terms.bib}, \filefmt{abbrvs.bib}
and \filefmt{symbols.bib}} example files:
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}
\cmd{usepackage}\oarg{\opt{record}}\marg{glossaries-extra}
\codepar
\gls{newignoredglossary}\marg{ignored}
\codepar
\gls{setabbreviationstyle}\marg{\abbrstyle{long-short-sc-desc}}
\gls{GlsXtrLoadResources}\oarg{
\resourceoptvalm{src}{terms,abbrvs,symbols},
\resourceoptval{trigger-type}{ignored},
\resourceoptvalm{category}{same as entry}
}
\codepar
\gls{glsxtrenablerecordcount}
\gls{GlsXtrSetRecordCountAttribute}\marg{\cat{general},\cat{abbreviation}}\marg{1}
\codepar
\gls{glsdefpostlink}\marg{entry}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}
\gls{glsdefpostlink}\marg{\cat{symbol}}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}
\codepar
\cbeg{document}
\gls{gls}\marg{bird}, \gls{gls}\marg{ssi}, \gls{gls}\marg{bird}, \gls{gls}\marg{html},
\gls{gls}\marg{M}, \gls{gls}\marg{html}.
\codepar
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
If the document is called \filefmt{myDoc.tex}, then the build
process is:
\begin{terminal}
pdflatex myDoc
bib2gls \switch{record-count} myDoc
pdflatex myDoc
\end{terminal}
The \resourceoptvalm{category}{same as entry} resource option
assigns the \gloskey{category} field to the \ext{bib} entry type
(without the initial \code{@}). This means that the entries defined
in \filefmt{terms.bib} (with \atentry{entry}) have their
\gloskey{category} set to \code{entry}, the entries defined
in \filefmt{abbrvs.bib} (with \atentry{abbreviation}) have their
\gloskey{category} set to \code{abbreviation}, and the entries defined
in \filefmt{symbols.bib} (with \atentry{symbol}) have their
\gloskey{category} set to \code{symbol}.
I've added \idxpl{postlinkhook} to the \catfmt{entry} and
\catfmt{symbol} categories to show the description on
\idx{firstuse} (but not for the \catfmt{abbreviation} category).
\begin{resultbox}
\createexample*[
label={ex:bib2glsrecordcounting},
title={Using \appfmt{bib2gls}: record counting},
description={Example document using bib2gls with multiple resource sets},
arara={pdflatex,bib2gls: { recordcount: on },pdflatex,pdfcrop}
]
{\cbeg{filecontents*}{terms.bib}^^J%
\termsbibcontent^^J%
\cend{filecontents*}^^J%
\cbeg{filecontents*}{abbrvs.bib}^^J%
\abbrvsbibcontent^^J%
\cend{filecontents*}^^J%
\cbeg{filecontents*}{symbols.bib}^^J%
\symbolsbibcontent^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}^^J%
\cmd{usepackage}\oarg{record}\marg{glossaries-extra}
\codepar
\gls{newignoredglossary}\marg{ignored}^^J%
\gls{setabbreviationstyle}\marg{long-short-sc-desc}
\codepar
\gls{GlsXtrLoadResources}\oarg{^^J
\resourceoptvalm{src}{terms,abbrvs,symbols},^^J
\resourceoptval{trigger-type}{ignored},^^J
\resourceoptvalm{category}{same as entry}^^J%
}
\codepar
\gls{glsxtrenablerecordcount}^^J%
\gls{GlsXtrSetRecordCountAttribute}\marg{symbol,abbreviation}\marg{1}
\codepar
\gls{glsdefpostlink}\marg{entry}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}^^J%
\gls{glsdefpostlink}\marg{symbol}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}
}
{\gls{gls}\marg{M}, \gls{gls}\marg{ssi}, \gls{gls}\marg{bird},
\gls{gls}\marg{html},^^J%
\gls{gls}\marg{M}, \gls{gls}\marg{html}.
\codepar
\gls{printunsrtglossaries}
}
\end{resultbox}
In the above, \code{ssi} and \code{bird} only have one record.
However, they have been treated differently. The \code{ssi} entry is
using \gls{rglsformat} whereas the \code{bird} entry is using the
normal \gls{gls} behaviour. This is because the record counting
hasn't been applied to the custom \catfmt{entry} category, whereas
it has been applied to the \catfmt{abbreviation} and
\catfmt{symbol} categories.
\subsection{Unit Record Counting}
\label{sec:unitrecordcount}
If you want unit record counting you need to remember to invoke
\app{bib2gls} with \switch{record-count-unit} and you will also need
to redefine \gls{glsxtrrecordtriggervalue} appropriately. For
example, suppose you want to reset all abbreviations at the start of each
chapter, so that the full form is shown again, but only if the
abbreviation isn't used elsewhere in the chapter.
This would require records with the \glsopt{counter} set to
\ctr{chapter}. This can be done with the \opt{counter} package
option:
\begin{codebox}
\cmd{usepackage}\oarg{\opt{record},\optval{counter}{\ctr{chapter}}}\marg{glossaries-extra}
\end{codebox}
However, this will have chapter numbers instead of page numbers in
the \idxpl{locationlist}. If you don't want \idxpl{locationlist}
then this isn't a problem. The list can simply be suppressed with
\opt{nonumberlist}.
If you want page numbers in the \idxpl{locationlist} then you will
need to \record\ each entry with both the \ctr{page} and
\ctr{chapter} counters. This can be done with the hook that occurs
before the \gls{gls} options are set:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glslinkpresetkeys}}\marg{\comment{}
\gls{glsadd}\oarg{\glsoptval{format}{glsignore},\glsoptval{counter}{\ctr{chapter}}}\marg{\gls{glslabel}}}
\end{codebox}
Note that I've used the ignored location format to prevent the
chapter number from being added to the \idx{locationlist}.
An alternative is to use the \resourceoptval{loc-counters}{\ctr{page}} resource
option to only show the locations that use the \ctr{page} counter.
The definition of \gls{glsxtrrecordtriggervalue} needs to be changed
so that it uses the total for the given location. If \sty{hyperref}
is used, you will need \theHcounter{chapter}:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsxtrrecordtriggervalue}}[1]\marg{\comment{}
\gls{GlsXtrLocationRecordCount}\marg{\#1}\marg{\ctr{chapter}}\marg{\theHcounter{chapter}}\comment{}
}
\end{codebox}
otherwise use \thecounter{chapter}.
Consider the following (using the abbreviations defined in the
earlier \filefmt{abbrvs.bib}):
\begin{codebox}
\cbeg{document}
\cmd{chapter}\marg{First}
\gls{gls}\marg{html}. \gls{gls}\marg{html}. \gls{gls}\marg{html}. \gls{gls}\marg{ssi}.
\codepar
\cmd{chapter}\marg{Second}
\gls{gls}\marg{html}. \gls{gls}\marg{ssi}. \gls{gls}\marg{ssi}.
\gls{gls}\marg{xml}.
\codepar
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
Note that the \code{xml} entry is only used once in the entire
document, but it will still be added to the glossary.
The previous example used the \resourceopt{trigger-type} resource
option to move entries with the \encap{glstriggerrecordformat} encap
(that is, they didn't exceed the trigger value) to another
glossary. Unfortunately, using that option in this case will move
all three abbreviations to the \resourceopt{trigger-type} glossary.
The \code{ssi} entry is only used once in the first chapter (but is
used twice in the second chapter), and the \code{html} is only used
once in the second chapter (but is used three times in the first
chapter). So all three will have \records\ in the \ext{aux} file
with the special \encap{glstriggerrecordformat} format.
A simple solution is to omit any entries that don't have the
\gloskey{location} field set when displaying the glossary:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{printunsrtglossaryentryprocesshook}}[1]\marg{\comment{}
\gls{glsxtrifhasfield}*\marg{\gloskey{location}}\marg{\#1}
\marg{}\marg{\gls{printunsrtglossaryskipentry}}\comment{}
}
\gls{printunsrtglossaries}
\end{codebox}
An alternative is to test the total record count, but remember that
each entry is being \recorded\ twice: once with the \ctr{page}
counter and once with the \ctr{chapter} counter, so the total count
for the \code{ssi} entry will be 2 not 1.
\begin{warning}
Take care not to strip entries from a
\glslink{hierarchicallevel}{hierarchical glossary} as it will
break the hierarchy and will cause formatting problems in the
glossary.
\end{warning}
The complete document is:
\begin{codebox}
\cmd{documentclass}\marg{scrreport}
\cmd{usepackage}\oarg{T1}\marg{fontenc}
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}
\cmd{usepackage}\oarg{\opt{record},\opt{postdot}}\marg{glossaries-extra}
\codepar
\gls{setabbreviationstyle}\marg{\abbrstyle{long-short-sc-desc}}
\codepar
\gls{GlsXtrLoadResources}\oarg{\resourceoptvalm{src}{abbrvs}}
\codepar
\cmd{preto}\marg{\cmd{chapter}}\marg{\gls{glsresetall}}
\gls{glsxtrenablerecordcount}
\gls{GlsXtrSetRecordCountAttribute}\marg{abbreviation}\marg{1}
\codepar
\cmd{renewcommand}\marg{\gls{glslinkpresetkeys}}\marg{\comment{}
\gls{glsadd}\oarg{\glsoptval{format}{glsignore},\glsoptval{counter}{\ctr{chapter}}}\marg{\gls{glslabel}}}
\codepar
\cmd{renewcommand}*\marg{\gls{glsxtrrecordtriggervalue}}[1]\marg{\comment{}
\gls{GlsXtrLocationRecordCount}\marg{\#1}\marg{\ctr{chapter}}\marg{\thecounter{chapter}}\comment{}
}
\cbeg{document}
\cmd{chapter}\marg{First}
\gls{gls}\marg{html}. \gls{gls}\marg{html}. \gls{gls}\marg{html}. \gls{gls}\marg{ssi}.
\codepar
\cmd{chapter}\marg{Second}
\gls{gls}\marg{html}. \gls{gls}\marg{ssi}. \gls{gls}\marg{ssi}. \gls{gls}\marg{xml}.
\codepar
\cmd{renewcommand}*\marg{\gls{printunsrtglossaryentryprocesshook}}[1]\marg{\comment{}
\gls{glsxtrifhasfield}*\marg{\gloskey{location}}\marg{\#1}
\marg{}\marg{\gls{printunsrtglossaryskipentry}}\comment{}
}
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
If the document is in a file called \filefmt{myDoc.tex} then the
document build is:
\begin{terminal}
pdflatex myDoc
bib2gls --record-count-unit myDoc
pdflatex myDoc
\end{terminal}
\begin{resultbox}
\createexample*[
label={ex:bib2glsunitrecordcounting},
title={Using \appfmt{bib2gls}: unit record counting},class=scrreport,pages={1,2,3},
description={Example document using bib2gls with unit records},
arara={pdflatex,bib2gls: { recordcountunit: on },pdflatex,pdfcrop}
]
{\cbeg{filecontents*}{abbrvs.bib}^^J%
\abbrvsbibcontent^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}\oarg{T1}\marg{fontenc}^^J%
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}^^J%
\cmd{usepackage}\oarg{record,postdot}\marg{glossaries-extra}
\codepar
\cmd{renewcommand}\marg{\cmd{chapterpagestyle}}\marg{empty}\comment{to assist cropping}%
\gls{setabbreviationstyle}\marg{long-short-sc-desc}
\codepar
\gls{GlsXtrLoadResources}\oarg{\resourceoptvalm{src}{abbrvs}}
\codepar
\cmd{preto}\marg{\cmd{chapter}}\marg{\gls{glsresetall}}^^J%
\gls{glsxtrenablerecordcount}^^J%
\gls{GlsXtrSetRecordCountAttribute}\marg{abbreviation}\marg{1}
\codepar
\cmd{renewcommand}\marg{\gls{glslinkpresetkeys}}\marg{\comment{}
\gls{glsadd}\oarg{format=glsignore,counter=chapter}\marg{\gls{glslabel}}}
\codepar
\cmd{renewcommand}*\marg{\gls{glsxtrrecordtriggervalue}}[1]\marg{\comment{}
\gls{GlsXtrLocationRecordCount}\marg{\#1}\marg{chapter}\marg{\cmd{theHchapter}}\comment{}%
}
}
{\cmd{chapter}\marg{First}
\gls{gls}\marg{html}. \gls{gls}\marg{html}. \gls{gls}\marg{html}. \gls{gls}\marg{ssi}.
\codepar
\cmd{chapter}\marg{Second}
\gls{gls}\marg{html}. \gls{gls}\marg{ssi}. \gls{gls}\marg{ssi}.
\gls{gls}\marg{xml}.
\codepar
\cmd{renewcommand}*\marg{\gls{printunsrtglossaryentryprocesshook}}[1]\marg{\comment{}
\gls{glsxtrifhasfield}*\marg{location}\marg{\#1}\marg{}\marg{\gls{printunsrtglossaryskipentry}}\comment{}%
}^^J%
\gls{printunsrtglossaries}
}
\end{resultbox}
\subsection{Mini-Glossaries}
\label{sec:unitrecordcountminigloss}
Record counting doesn't have to be used with the \gls{rgls} set of
commands. When \app{bib2gls} writes the code to the \ext{glstex}
file to save the record counting information, it does it with helper
commands that it provides in the \ext{glstex} file:
\cmddef{bibglssettotalrecordcount}
This sets the total record count and is defined in the
\ext{glstex} file as:
\begin{compactcodebox}
\cmd{providecommand}*\marg{\gls{bibglssettotalrecordcount}}[2]\marg{\comment{}
\gls{GlsXtrSetField}\marg{\#1}\marg{\glosfield{recordcount}}\marg{\#2}\comment{}
}
\end{compactcodebox}
\cmddef{bibglssetrecordcount}
This sets the total for the given counter and is defined as:
\begin{compactcodebox}
\cmd{providecommand}*\marg{\gls{bibglssetrecordcount}}[3]\marg{\comment{}
\gls{GlsXtrSetField}\marg{\#1}\marg{\recordcounterfield{\#2}}\marg{\#3}\comment{}
}
\end{compactcodebox}
The following is only available with \switch{record-count-unit}:
\cmddef{bibglssetlocationrecordcount}
This sets the total for the given location and is defined as:
\begin{compactcodebox}
\cmd{providecommand}*\marg{\gls{bibglssetlocationrecordcount}}[4]\marg{\comment{}
\gls{GlsXtrSetField}\marg{\#1}\marg{\recordcounterlocationfield{\#2}{\gls{glsxtrdetoklocation}\marg{\#3}}}\marg{\#4}\comment{}
}
\end{compactcodebox}
By defining one of more of these commands before the \ext{glstex}
file is input, it's possible to pick up the information, without the
need to iterate over all entries later. For example, the following
will create a \idx{mini-glossary} for each particular location and
populate it with entries that have a record for that location.
\begin{codebox}
\cmd{newcommand}*\marg{\gls{bibglssetlocationrecordcount}}[4]\marg{\comment{}
\gls{GlsXtrSetField}\marg{\#1}\marg{\recordcounterlocationfield{\#2}{\#3}}\marg{\#4}\comment{}
\gls{provideignoredglossary}\marg{minigloss.\#2.\#3}\comment{}
\gls{glsxtrcopytoglossary}\marg{\#1}{minigloss.\#2.\#3}\comment{}
}
\end{codebox}
I've omitted \gls{glsxtrdetoklocation} for clarity and because I'm
confident the locations won't be problematic. The
\idx{mini-glossary} can then be displayed at the start of the
chapter with:
\begin{codebox}
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{minigloss.chapter.\theHcounter{chapter}}}
\end{codebox}
The previous example can be altered to strip the \gls{rgls} commands
and instead add a \idx{mini-glossary} at the start of each chapter
(the redefinition of \gls{glslinkpresetkeys} remains to ensure there
are locations with the \ctr{chapter} counter). I've also provided a
command to make it easier to display the \idxpl{mini-glossary}:
\begin{codebox}
\cmd{newcommand}\marg{\cmd{minigloss}}\marg{\comment{}
\gls{printunsrtglossary*}\oarg{\printglossoptval{style}{\glostyle{abbr-short-long}},\printglossoptval{type}{minigloss.chapter.\theHcounter{chapter}},\printglossoptval{groups}{false},\printglossoptval{target}{false}}\comment{}
\marg{\cmd{renewcommand}\marg{\gls{glossarysection}}[2][]\marg{}\comment{}
\cmd{renewcommand}\marg{\gls{glslongextraShortLongTabularHeader}}\marg{\cmd{toprule}}\comment{}
}%
}
\end{codebox}
The document build is the same.
\begin{resultbox}
\createexample*[label=ex:recordcountminigloss,class=scrreport,pages={1,2,3},
title={Using \appfmt{bib2gls}: unit record counting mini-glossary},
description={Example document using bib2gls to create a mini-glossary with unit records},
arara={pdflatex,bib2gls: { recordcountunit: on },pdflatex,pdfcrop}
]
{\cbeg{filecontents*}{abbrvs.bib}^^J%
\abbrvsbibcontent^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}\oarg{T1}\marg{fontenc}^^J%
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}^^J%
\cmd{usepackage}\oarg{record,postdot,stylemods=longextra}\marg{glossaries-extra}
\codepar
\cmd{renewcommand}\marg{\cmd{chapterpagestyle}}\marg{empty}\comment{to assist cropping}%
\gls{setabbreviationstyle}\marg{long-short-sc-desc}
\codepar
\cmd{newcommand}*\marg{\gls{bibglssetlocationrecordcount}}[4]\marg{\comment{}
\gls{GlsXtrSetField}\marg{\#1}\marg{recordcount.\#2.\#3}\marg{\#4}\comment{}
\gls{provideignoredglossary}\marg{minigloss.\#2.\#3}\comment{}
\gls{glsxtrcopytoglossary}\marg{\#1}{minigloss.\#2.\#3}\comment{}%
}
\codepar
\gls{GlsXtrLoadResources}\oarg{\resourceoptvalm{src}{abbrvs}}
\codepar
\cmd{renewcommand}\marg{\gls{glslinkpresetkeys}}\marg{\comment{}
\gls{glsadd}\oarg{format=glsignore,counter=chapter}\marg{\gls{glslabel}}}^^J%
\cmd{newcommand}\marg{\cmd{minigloss}}\marg{\comment{}
\gls{printunsrtglossary*}\oarg{style=abbr-short-long,type=minigloss.chapter.\cmd{theHchapter},groups=false,target=false}\comment{}
\marg{\cmd{renewcommand}\marg{\gls{glossarysection}}[2][]\marg{}\comment{}
\cmd{renewcommand}\marg{\gls{glslongextraShortLongTabularHeader}}\marg{\cmd{toprule}}\comment{}%
}}
}
{\cmd{chapter}\marg{First}
\cmd{minigloss}
\gls{gls}\marg{html}. \gls{gls}\marg{html}. \gls{gls}\marg{html}. \gls{gls}\marg{ssi}.
\codepar
\cmd{chapter}\marg{Second}
\cmd{minigloss}
\gls{gls}\marg{html}. \gls{gls}\marg{ssi}. \gls{gls}\marg{ssi}.
\gls{gls}\marg{xml}.
\codepar
\cmd{renewcommand}*\marg{\gls{printunsrtglossaryentryprocesshook}}[1]\marg{\comment{}
\gls{glsxtrifhasfield}*\marg{location}\marg{\#1}\marg{}\marg{\gls{printunsrtglossaryskipentry}}\comment{}%
}^^J%
\gls{printunsrtglossaries}
}
\end{resultbox}
\section{The \stytext{glossaries-extra-bib2gls} package}
\label{sec:bib2glssty}
\pkgdef{glossaries-extra-bib2gls}
\glsstartrange{pkg.glossaries-extra-bib2gls}%
The package options \opteqvalref{record}{only} (or simply
\opt{record}) and \opteqvalref{record}{nameref} automatically
loads the supplementary package \sty{glossaries-extra-bib2gls},
which provides some commands that are specific to \app{bib2gls}, in
particular to sorting and \idxpl{locationlist} which aren't relevant
with \opteqvalref{record}{hybrid}.
If \sty{glossaries-extra-bib2gls} is loaded via the
\opt{record} package option then the check for associated
language files (see \sectionref{sec:lang}) will also
search for the existence of
\metafilefmt{glossariesxtr-}{script}{.ldf} for each
document dialect (where \meta{script} is the four letter
script identifier, such as \code{Latn}).
\subsection{Displaying Glossaries}
\label{sec:printunsrtshortcuts}
\Idxpl{glossary} are displayed with the \idx{unsrtfam} (see
\sectionref{sec:printunsrt}). Some styles, such as
\glostyle{bookindex}, are customized for use with \app{bib2gls}.
The following commands are shortcuts that use
\gls{printunsrtglossary}. However, they are only defined if a
corresponding package option has been set \emph{before}
\sty{glossaries-extra-bib2gls} is loaded. This means that the
options must be passed as a package option, not using
\gls{glossariesextrasetup}, if the shortcut commands are required.
\cmddef{printunsrtabbreviations}
This shortcut is provided if the \opt{abbreviations} package
option has been used. This is a shortcut for:
\begin{codebox}
\gls{printunsrtglossary}\oarg{type=abbreviations,\meta{options}}
\end{codebox}
\cmddef{printunsrtacronyms}
This shortcut is provided if the \opt{acronyms} (or
\opt{acronym}) package option has been used. This is a shortcut for:
\begin{codebox}
\gls{printunsrtglossary}\oarg{type=\gls{acronymtype},\meta{options}}
\end{codebox}
\cmddef{printunsrtsymbols}
This shortcut is provided if the \opt{symbols} package
option has been used. This is a shortcut for:
\begin{codebox}
\gls{printunsrtglossary}\oarg{type=symbols,\meta{options}}
\end{codebox}
\cmddef{printunsrtnumbers}
This shortcut is provided if the \opt{numbers} package
option has been used. This is a shortcut for:
\begin{codebox}
\gls{printunsrtglossary}\oarg{type=numbers,\meta{options}}
\end{codebox}
\cmddef{printunsrtindex}
This shortcut is provided if the \opt{index} package
option has been used. This is a shortcut for:
\begin{codebox}
\gls{printunsrtglossary}\oarg{type=index,\meta{options}}
\end{codebox}
\subsection{Helper Commands for Resource Options}
\label{sec:resourcecommands}
\cmddef{glshex}
This simply expands to \code{\gls{string}\gls{u}\meta{hex}}, which
is used to identify the Unicode character \meta{hex} in the value of
some \idxpl{resourceopt}.
\cmddef{glshashchar}
This expands to a literal \idx{sym.hash} character (similar to
\gls{glsbackslash}).
\cmddef{glscapturedgroup}
This simply expands to \code{\gls{string}\gls{dollar}\meta{n}}
which is used to indicate the \meta{n}th captured group in a regular expression
replacement in the value of some \idxpl{resourceopt} (requires
\app{bib2gls} v1.5+), such as \resourceopt{sort-replace}. For example:
\begin{codebox}
\resourceoptvalm{sort-replace}{\marg{([a-zA-Z])\gls{string}\cmd{.}}\marg{\gls{glscapturedgroup}1}}
\end{codebox}
This removes a full stop that follows any of the characters
a,\ldots,z or A,\ldots,Z.
A convenient shortcut for use in the \resourceopt{entry-type-aliases}
setting:
\cmddef{GlsXtrBibTeXEntryAliases}
This provides aliases for \BibTeX's standard entry types (such as
\atentry{article} and \atentry{book}) to \app{bib2gls}['s]
\atentry{bibtexentry} entry type (requires \app{bib2gls} v1.4+).
You may also want to provide storage keys for \BibTeX's standard
fields rather than having to alias them all. This can be done with:
\cmddef{GlsXtrProvideBibTeXFields}
This defines each \BibTeX\ field, such as \fieldfmt{author}, as a
glossary entry key:
\begin{compactcodebox}
\gls{glsaddstoragekey}\marg{address}\marg{}\marg{\inlineglsdef{glsxtrbibaddress}}\%
\gls{glsaddstoragekey}\marg{author}\marg{}\marg{\inlineglsdef{glsxtrbibauthor}}\%
\gls{glsaddstoragekey}\marg{booktitle}\marg{}\marg{\inlineglsdef{glsxtrbibbooktitle}}\%
\gls{glsaddstoragekey}\marg{chapter}\marg{}\marg{\inlineglsdef{glsxtrbibchapter}}\%
\gls{glsaddstoragekey}\marg{edition}\marg{}\marg{\inlineglsdef{glsxtrbibedition}}\%
\gls{glsaddstoragekey}\marg{howpublished}\marg{}\marg{\inlineglsdef{glsxtrbibhowpublished}}\%
\gls{glsaddstoragekey}\marg{institution}\marg{}\marg{\inlineglsdef{glsxtrbibinstitution}}\%
\gls{glsaddstoragekey}\marg{journal}\marg{}\marg{\inlineglsdef{glsxtrbibjournal}}\%
\gls{glsaddstoragekey}\marg{month}\marg{}\marg{\inlineglsdef{glsxtrbibmonth}}\%
\gls{glsaddstoragekey}\marg{note}\marg{}\marg{\inlineglsdef{glsxtrbibnote}}\%
\gls{glsaddstoragekey}\marg{number}\marg{}\marg{\inlineglsdef{glsxtrbibnumber}}\%
\gls{glsaddstoragekey}\marg{organization}\marg{}\marg{\inlineglsdef{glsxtrbiborganization}}\%
\gls{glsaddstoragekey}\marg{pages}\marg{}\marg{\inlineglsdef{glsxtrbibpages}}\%
\gls{glsaddstoragekey}\marg{publisher}\marg{}\marg{\inlineglsdef{glsxtrbibpublisher}}\%
\gls{glsaddstoragekey}\marg{school}\marg{}\marg{\inlineglsdef{glsxtrbibschool}}\%
\gls{glsaddstoragekey}\marg{series}\marg{}\marg{\inlineglsdef{glsxtrbibseries}}\%
\gls{glsaddstoragekey}\marg{title}\marg{}\marg{\inlineglsdef{glsxtrbibtitle}}\%
\gls{glsaddstoragekey}\marg{bibtextype}\marg{}\marg{\inlineglsdef{glsxtrbibtype}}\%
\gls{glsaddstoragekey}\marg{volume}\marg{}\marg{\inlineglsdef{glsxtrbibvolume}}\%
\end{compactcodebox}
This command should be placed before the first
\gls{GlsXtrLoadResources}.
\begin{warning}
\BibTeX's \fieldfmt{type} field clashes with the \sty{glossaries}
package's \gloskey{type} key, so this command provides the key
\fieldfmt{bibtextype} instead. You can alias it with
\resourceoptvalm{field-aliases}{\gloskey{type}=\fieldfmt{bibtextype}}
in the \idxpl{resourceopt}.
\end{warning}
\subsubsection{Custom Sort}
\label{sec:customsort}
There are many locale alphabetical rules provided with
\app{bib2gls}, such as \resourceoptval{sort}{de-1996} for German new
orthography. However, it may be that your particular locale isn't
supported, or you want a rule that covers multiple scripts or
non-alphabetic symbols.
The \resourceoptval{sort}{custom} setting combined with
\resourceopt{sort-rule} provides a way to define your own sort rule.
For example, suppose I have a file called \filefmt{animals.bib} that
contains:
\newcommand{\animalsbib}{%
\atentry{index}\marg{bee}\newline
\atentry{index}\marg{lion}\newline
\atentry{index}\marg{ant}\newline
\atentry{index}\marg{cow}\newline
\atentry{index}\marg{goose}\newline
\atentry{index}\marg{zebu}\newline
\atentry{index}\marg{egret}\newline
\atentry{index}\marg{elk}\newline
\atentry{index}\marg{llama}\newline
\atentry{index}\marg{lynx}\newline
\atentry{index}\marg{bat}%
}
\begin{codebox}
\animalsbib
\end{codebox}
Here's a very limited rule that only recognises five letters:
\begin{codebox}
\cmd{usepackage}\oarg{\opt{record},\opt{nostyles},\optval{stylemods}{bookindex},\optval{style}{\glostyle{bookindex}}}
\marg{glossaries-extra}
\codepar
\cmd{newcommand}\marg{\gls{bibglssetlastgrouptitle}}[2]\marg{\%
\gls{glsxtrsetgrouptitle}\marg{\#1\#2}\marg{Other}\%
}
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{animals},\resourceoptval{selection}{all},
\resourceoptval{sort}{custom},\resourceoptvalm{sort-rule}{ < a,A < b,B < e,E < l,L < ll,Ll,LL < z,Z}}
\codepar
\cbeg{document}
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
Any characters that aren't included in the rule (such as \qt{c} and
\qt{g}) are placed at the end. I've defined \gls{bibglssetlastgrouptitle}
to label that final group of characters \qt{Other}. If the document
is in a file called \filefmt{myDoc.tex}, the build process is:
\begin{terminal}
pdflatex myDoc
bib2gls \switch{g} myDoc
pdflatex myDoc
\end{terminal}
The result is:
\begin{resultbox}
\createexample*[arara={pdflatex,bib2gls: { group : on },pdflatex,pdfcrop},
label={ex:bib2glscustomsort},
title={Using \appfmt{bib2gls}: simple custom sort rule},
description={Example document that provides a simplistic custom
sort rule}
]
{\cbeg{filecontents*}{animals.bib}^^J%
\animalsbib^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}\oarg{\opt{record},\opt{nostyles},\optval{stylemods}{bookindex},\optval{style}{\glostyle{bookindex}}}^^J
\marg{glossaries-extra}
\codepar
\cmd{newcommand}\marg{\gls{bibglssetlastgrouptitle}}[2]\marg{\%^^J
\gls{glsxtrsetgrouptitle}\marg{\#1\#2}\marg{Other}\%^^J%
}
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{animals},\resourceoptval{selection}{all},^^J
\resourceoptval{sort}{custom},\resourceoptvalm{sort-rule}{ < a,A < b,B < e,E < l,L < ll,Ll,LL < z,Z}}
}
{\gls{printunsrtglossaries}}
\end{resultbox}
Note that \qt{egret} has been placed after \qt{elk}. This is because
\qt{l} is included in the rule but \qt{g} isn't. Whereas \qt{lynx}
comes before \qt{llama} because there's a separate \qt{ll} group
after the \qt{l} group.
The commands listed below provide common rule blocks for use in
the \resourceopt{sort-rule} resource option. If you want a rule for
a specific locale, you can provide similar commands in a file called
\metafilefmt{glossariesxtr-}{tag}{.ldf}, where \meta{tag}
identifies the dialect, locale, region or root language. See the
description of \gls{IfTrackedLanguageFileExists} in the
\sty{tracklang} documentation for further details. If this file is
on \TeX's path and the \sty{tracklang} package (automatically loaded
by \sty{glossaries}) detects that the document has requested that
language or locale, then the file will automatically be loaded.
For example, if you want to provide a rule block for Welsh, then
create a file called \filefmt{glossariesxtr-welsh.ldf} that contains:
\begin{codebox}
\gls{ProvidesGlossariesExtraLang}\marg{welsh}[2018/02/23 v1.0]
\codepar
\cmd{@ifpackageloaded}\marg{glossaries-extra-bib2gls}
\marg{
\cmd{newcommand}\marg{\cmd{glsxtrWelshRules}}\marg{\%
\gls{glsxtrLatinA}
\gls{string}<b,B
\gls{string}<c,C
\gls{string}<ch,CH
\gls{string}<d,D
\gls{string}<dd,DD
\gls{string}<\gls{glsxtrLatinE}
\gls{string}<f,F
\gls{string}<ff,FF
\gls{string}<g,G
\gls{string}<ng,NG
\gls{string}<\gls{glsxtrLatinH}
\gls{string}<\gls{glsxtrLatinI}
\gls{string}<j,J
\gls{string}<\gls{glsxtrLatinL}
\gls{string}<ll,Ll,LL
\gls{string}<\gls{glsxtrLatinM}
\gls{string}<\gls{glsxtrLatinN}
\gls{string}<\gls{glsxtrLatinO}
\gls{string}<\gls{glsxtrLatinP}
\gls{string}<ph,PH
\gls{string}<r,R
\gls{string}<rh,RH
\gls{string}<\gls{glsxtrLatinS}
\gls{string}<\gls{glsxtrLatinT}
\gls{string}<th,TH
\gls{string}<u,U
\gls{string}<w,W
\gls{string}<y,Y
}
}
\marg{}\comment{glossaries-extra-bib2gls.sty not loaded}
\end{codebox}
(The use of \gls{string} is in case the \code{<} character
has been made active.) You can provide more than one rule-block
per local, to allow for loanwords or foreign words. For example,
you could provide \csfmt{glsxtrWelshIRules}, \csfmt{glsxtrWelshIIRules}
etc.
If the rules are for a particular script (independent of language
or region) then they can be provided in a file given by
\metafilefmt{glossariesxtr-}{script}{.ldf} instead. For
example, the file \filefmt{glossariesxtr-Cyrl.ldf} could contain:
\begin{codebox}
\gls{ProvidesGlossariesExtraLang}\marg{Cyrl}[2018/02/23 v1.0]
\cmd{newcommand}*\marg{\cmd{glsxtrGeneralCyrillicIRules}}\marg{\%
\comment{Cyrillic rules}
}
\cmd{newcommand}*\marg{\cmd{glsxtrGeneralCyrillicIIRules}}\marg{\%
\comment{an alternative set of Cyrillic rules}
}
\end{codebox}
Remember that the required document language scripts need to be tracked
through the \sty{tracklang} package, in order for these files to be
automatically loaded. This essentially means ensuring you load the
appropriate language package before \sty{tracklang} is loaded by
the base \sty{glossaries} package or any other package that uses it.
See the \sty{tracklang} documentation for further details.
Alternatively, if the rules are specific to a subject rather than
a region or language, then you can provide a supplementary
package. For example, if you have a package called, say,
\styfmt{mapsymbols} that provides map symbols, then the file
\filefmt{mapsymbols.sty} might contain:
\begin{codebox}
\cmd{ProvidesPackage}\marg{mapsymbols}
\comment{some package or font loading stuff here to provide}
\comment{the appropriate symbols}
\cmd{newcommand}\marg{\cmd{Stadium}}\marg{...}
\cmd{newcommand}\marg{\cmd{Battlefield}}\marg{...}
\cmd{newcommand}\marg{\cmd{Harbour}}\marg{...}
\comment{etc}
\codepar
\comment{Provide a rule block:}
\cmd{newcommand}\marg{\cmd{MapSymbolOrder}}\marg{\%
\gls{glshex} 2694 \comment{crossed-swords 0x2694}
\gls{string}< \gls{glshex} 2693 \comment{anchor 0x2693}
\gls{string}< \gls{glshex} 26BD \comment{football 0x26BD}
}
\end{codebox}
and the supplementary file \filefmt{mapsymbols.bib} can provide
the appropriate definitions for \app{bib2gls}:
\begin{codebox}
\atentry{preamble}\marg{"\gls{glsxtrprovidecommand}\marg{\cmd{Harbour}}\marg{\cmd{char}"2693}
\gls{glsxtrprovidecommand}\marg{\cmd{Battlefield}}\marg{\cmd{char}"2694}
\gls{glsxtrprovidecommand}\marg{\cmd{Stadium}}\marg{\cmd{char}"26BD}"}
\end{codebox}
Now both the preamble and rule block can be used in the resource
set:
\begin{codebox}
\cmd{usepackage}\marg{mapsymbols}\comment{my custom package}
\cmd{usepackage}[\opt{record}]\marg{glossaries-extra}
\codepar
\gls{GlsXtrLoadResources}\oarg{
\resourceoptvalm{src}{mapsymbols,\comment{<--- \textbf{my custom mapsymbols.bib}}
entries\comment{data in entries.bib}
},
\resourceoptval{sort}{custom},
\resourceoptvalm{sort-rule}{\gls{glsxtrcontrolrules} \comment{control codes}
;\gls{glsxtrspacerules} \comment{space characters}
;\gls{glsxtrnonprintablerules} \comment{non-printable characters}
;\gls{glsxtrcombiningdiacriticrules} \comment{combining diacritics}
,\gls{glsxtrhyphenrules} \comment{hyphens}
<\gls{glsxtrgeneralpuncrules} \comment{general punctuation}
<\gls{glsxtrdigitrules} \comment{0, ..., 9}
<\gls{glsxtrfractionrules} \comment{fraction symbols}
<\cmd{MapSymbolOrder} \comment{<--- \textbf{custom map symbols}}
<\gls{glsxtrMathItalicGreekIrules} \comment{math-greek symbols}
<\gls{glsxtrGeneralLatinIrules} \comment{Latin letters}
}
}
\end{codebox}
(As before, you may need to use \gls{string} in front of characters
like \code{<} if they have been made active.)
The following commands are provided by
\sty{glossaries-extra-bib2gls}. They should be separated by
the rule separator characters \code{;}~(semi-colon) or \code{,}~(comma)
or \verb|&|~(ampersand) or \code{<}~(less than). See Java's
\href{http://docs.oracle.com/javase/8/docs/api/java/text/RuleBasedCollator.html}{Rule\-Based\-Collator}
documentation for details of the rule syntax.
For example, the following will place the mathematical Greek
symbols (\gls{alpha}, \gls{Alpha}, \gls{beta}, \gls{Beta} etc)
in a block before Latin characters:
\begin{codebox}
\resourceoptvalm{sort-rule}{\gls{glsxtrcontrolrules}
;\gls{glsxtrspacerules}
;\gls{glsxtrnonprintablerules}
;\gls{glsxtrcombiningdiacriticrules}
,\gls{glsxtrhyphenrules}
<\gls{glsxtrgeneralpuncrules}
<\gls{glsxtrdigitrules}
<\gls{glsxtrfractionrules}
<\gls{glsxtrMathItalicGreekIrules}
<\gls{glsxtrGeneralLatinIVrules}
<\gls{glsxtrLatinAA}
<\gls{glsxtrLatinOslash}
}
\end{codebox}
\paragraph{Non-Letters}
\label{sec:bib2glscustomsortnonletters}
\cmddef{glsxtrcontrolrules}
These are control characters that are usually placed at the start of
a rule in the ignored section. They typically won't occur in
any sort values, but if they do they should normally be ignored.
\cmddef{glsxtrspacerules}
These are space characters. They typically come after the control
characters with the two blocks separated by a \code{;}~(semi-colon).
\cmddef{glsxtrnonprintablerules}
These are non-printable characters (BOM, tabs, line feed and
carriage return). They typically come after the spaces separated by
a \code{;}~(semi-colon). These characters aren't checked for by
\app{bib2gls} when it determines whether or not to use the
interpreter, so a~TAB or newline character may end up in the sort
value if it wasn't interpreted.
\cmddef{glsxtrcombiningdiacriticrules}
These are combining diacritic marks which typically follow
the space and non-printable blocks (separated by a semi-colon). This command is
defined in terms of sub-block commands:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{glsxtrcombiningdiacriticrules}}\marg{\%
\gls{glsxtrcombiningdiacriticIrules}\gls{string};
\gls{glsxtrcombiningdiacriticIIrules}\gls{string};
\gls{glsxtrcombiningdiacriticIIIrules}\gls{string};
\gls{glsxtrcombiningdiacriticIVrules}
}
\end{compactcodebox}
If you prefer, you can use the sub-blocks directly in your
required ordered.
\cmddef{glsxtrcombiningdiacriticIrules}
This contains the combining diacritics: acute, grave, breve,
circumflex, caron, ring, vertical line above, diaeresis (umlaut),
double acute, tilde, dot above, combining macron.
\cmddef{glsxtrcombiningdiacriticIIrules}
This contains the combining diacritics: short solidus overlay,
cedilla, ogonek, dot below, low line, overline, hook above,
double vertical line above, double grave accent, candrabindu,
inverted breve, turned comma above, comma above, reversed comma
above, comma above right, grave accent below, acute accent below.
\cmddef{glsxtrcombiningdiacriticIIIrules}
This contains the combining diacritics: left tack below, right tack
below, left angle above, horn, left half ring below, up tack below,
down tack below, plus sign below, minus sign below, palatalized hook
below, retroflex hook below, diaresis below, ring below, comma
below, vertical line below, bridge below, inverted double arch
below, caron below, circumflex accent below, breve below, inverted
breve below, tilde below, macron below, double low line, tilde
overlay, short stroke overlay, long stroke overlay, long solidus
overlay, right half ring below, inverted bridge below, square below,
seagull below, x above, vertical tilde, double overline, Greek
perispomeni, Greek dialytika tonos, Greek ypogegrammeni, double
tilde, double inverted breve, Cyrillic titlo, Cyrillic
palatalization, Cyrillic dasia pneumata, Cyrillic psili pneumata.
\cmddef{glsxtrcombiningdiacriticIVrules}
This contains the combining diacritics:
left harpoon above, right harpoon above, long vertical line overlay,
short vertical line overlay, anticlockwise arrow above, clockwise
arrow above, left arrow above, right arrow above, ring overlay,
clockwise ring overlay, anticlockwise ring overlay, three dots
above, four dots above, enclosing circle, enclosing square,
enclosing diamond, enclosing circle backslash, left right arrow
above.
\cmddef{glsxtrhyphenrules}
This contains hyphens (including the minus sign 0x2212). This rule
block typically comes after the diacritic rules separated by a
comma.
\cmddef{glsxtrgeneralpuncrules}
This contains punctuation characters. This rule
block typically comes after the hyphen rules separated by a
less than (\code{<}). As with the combining diacritics, this
command is defined in terms of sub-blocks which may be used directly
instead if a different order is required:
\begin{codebox}
\cmd{newcommand}*\marg{\gls{glsxtrgeneralpuncrules}}\marg{\%
\gls{glsxtrgeneralpuncIrules}
\gls{string}<\gls{glsxtrcurrencyrules}
\gls{string}<\gls{glsxtrgeneralpuncIIrules}
}
\end{codebox}
\cmddef{glsxtrgeneralpuncIrules}
This is defined as:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{glsxtrgeneralpuncIrules}}\marg{\comment{}
\gls{glsxtrgeneralpuncmarksrules}
\cmd{string}<\gls{glsxtrgeneralpuncaccentsrules}
\cmd{string}<\gls{glsxtrgeneralpuncquoterules}
\cmd{string}<\gls{glsxtrgeneralpuncbracketrules}
\cmd{string}<\gls{glsxtrgeneralpuncsignrules}
}
\end{compactcodebox}
\cmddef{glsxtrgeneralpuncmarksrules}
This contains: underscore, macron, comma, semi-colon, colon, exclamation mark,
inverted exclamation mark, question mark, inverted question mark,
solidus, \idx{fullstop}.
\cmddef{glsxtrgeneralpuncaccentsrules}
This contains: acute accent, grave accent, circumflex accent,
diaeresis, tilde, middle dot, cedilla.
\cmddef{glsxtrgeneralpuncquoterules}
This contains: straight apostrophe, straight
double quote, left guillemet, right guillemet.
\cmddef{glsxtrgeneralpuncbracketrules}
This contains: left parenthesis,
right parenthesis, left square bracket, right square bracket, left
curly bracket, right curly bracket.
\cmddef{glsxtrgeneralpuncsignrules}
This contains: section sign, pilcrow sign,
copyright sign, registered sign, at sign.
\cmddef{glsxtrcurrencyrules}
This sub-block contains some currency symbols:
currency sign, Thai currency symbol baht, cent sign, colon sign,
cruzeiro sign, dollar sign, dong sign, euro sign, French franc sign,
lira sign, mill sign, naira sign, peseta sign, pound sign, rupee
sign, new sheqel sign, won sign, yen sign.
\cmddef{glsxtrgeneralpuncIIrules}
This sub-block contains some other punctuation symbols:
asterisk, backslash, ampersand, hash sign, percent sign, plus sign,
plus-minus sign, division sign, multiplication sign, less-than sign,
equals sign, greater-than sign, not sign, vertical bar (pipe),
broken bar, degree sign, micron sign.
\cmddef{glsxtrdigitrules}
This rule block contains the Basic Latin digits (0, \ldots, 9)
and the subscript and superscript digits (\textsubscript{0}
\textsuperscript{0} etc) made equivalent to the
corresponding Basic Latin digit. The digit block typically
comes after the punctuation rules separated by a less than
(\code{<}).
\cmddef{glsxtrBasicDigitrules}
This rule block contains just the Basic Latin digits (0, \ldots, 9).
\cmddef{glsxtrSubScriptDigitrules}
This rule block contains just the subscript digits
(\textsubscript{0} \ldots\ \textsubscript{9}).
\cmddef{glsxtrSuperScriptDigitrules}
This rule block contains just the superscript digits
(\textsuperscript{0} \ldots\ \textsuperscript{9}).
\cmddef{glsxtrfractionrules}
This rule block contains vulgar fraction characters from the Unicode
Number Forms block. The digit block typically comes after the digit
rules separated by a less than (\code{<}).
\cmddef{glsxtrIgnorableRules}
A shortcut that expands to the ignorable rules:
\begin{compactcodebox}
\gls{glsxtrcontrolrules}
;\gls{glsxtrspacerules}
;\gls{glsxtrnonprintablerules}
\end{compactcodebox}
\cmddef{glsxtrGeneralInitRules}
A shortcut that expands to common initial rules:
\begin{compactcodebox}
\gls{glsxtrIgnorableRules}
;\gls{glsxtrcombiningdiacriticrules}
;\gls{glsxtrhyphenrules}
<\gls{glsxtrgeneralpuncrules}
<\gls{glsxtrdigitrules}
<\gls{glsxtrfractionrules}
\end{compactcodebox}
Note that this includes the combining diacritic rules, which won't
be appropriate for languages with accented characters.
There are a number of Latin rule blocks. Some of these included
extended characters or ligatures (such as \ss\ or \oe) but they don't
include accented characters. If you require a Latin rule block
that includes accented characters, digraphs, trigraphs or
other extended characters, then it's best to provide
similar commands in a \metafilefmt{glossariesxtr-}{tag}{.ldf}
file for the particular language or region.
\paragraph{Latin Letters}
\label{sec:bib2glscustomsortlatin}
\cmddef{glsxtrGeneralLatinIrules}
This is just the basic (non-extended) Latin alphabet with the superscript
and subscript Latin letters (\textsuperscript{a} \textsubscript{a}
etc) treated as the equivalent basic Latin letter. (If you don't
want the subscripts and superscripts included you can redefine
\gls{glsxtrLatinA} etc to omit them.)
\cmddef{glsxtrGeneralLatinIIrules}
This is like \gls{glsxtrGeneralLatinIrules} but it includes eth
(\Eth) between \qt{D} and \qt{E} and eszett (\ss) treated as \qt{ss}.
\cmddef{glsxtrGeneralLatinIIIrules}
This is like \gls{glsxtrGeneralLatinIrules} but it includes eth
(\Eth) between \qt{D} and \qt{E} and eszett (\ss) treated as \qt{sz}.
\cmddef{glsxtrGeneralLatinIVrules}
This is like \gls{glsxtrGeneralLatinIrules} but it includes eth
(\Eth) between \qt{D} and \qt{E}, ae-ligature (\ae) is treated
as \qt{ae}, oe-ligature (\oe) is treated as \qt{oe}, eszett (\ss)
treated as \qt{ss} and thorn (\thorn) is treated as \qt{th}.
\cmddef{glsxtrGeneralLatinVrules}
This is like \gls{glsxtrGeneralLatinIrules} but it includes eth
(\Eth) between \qt{D} and \qt{E}, eszett (\ss) treated as \qt{ss}
and thorn (\thorn) treated as \qt{th}.
\cmddef{glsxtrGeneralLatinVIrules}
This is like \gls{glsxtrGeneralLatinIrules} but it includes eth
(\Eth) between \qt{D} and \qt{E}, eszett (\ss) treated as \qt{sz}
and thorn (\thorn) treated as \qt{th}.
\cmddef{glsxtrGeneralLatinVIIrules}
This is like \gls{glsxtrGeneralLatinIrules} but it includes
ae-ligature (\ae) between \qt{A} and \qt{B}, eth (\Eth) between \qt{D} and
\qt{E}, insular G (\insularg) instead of \qt{G}, oe-ligature (\oe)
between \qt{O} and \qt{P}, long~s (\longs) equivalent to \qt{s},
thorn (\thorn) between \qt{T} and \qt{U} and wynn (\wynn)
instead of \qt{W}.
\cmddef{glsxtrGeneralLatinVIIIrules}
This is like \gls{glsxtrGeneralLatinIrules} but ae-ligature (\ae) is
treated as \qt{ae}, oe-ligature (\oe) is treated as \qt{oe}, eszett
(\ss) treated as \qt{ss}, thorn (\thorn) is treated as \qt{th}, \O\
is treated as \qt{O} and \qt{\L} is treated as \qt{L}.
\cmddef{glsxtrGeneralLatinAtoMrules}
A mini-rule subset of General Latin~I rules that just covers A--M.
\cmddef{glsxtrGeneralLatinNtoZrules}
A mini-rule subset of General Latin~I rules that just covers N--Z.
\cmddef{glsxtrGeneralLatinAtoGrules}
A mini-rule subset of General Latin~I rules that just covers A--G.
\cmddef{glsxtrGeneralLatinHtoMrules}
A mini-rule subset of General Latin~I rules that just covers H--M.
\cmddef{glsxtrGeneralLatinNtoSrules}
A mini-rule subset of General Latin~I rules that just covers N--S.
\cmddef{glsxtrGeneralLatinTtoZrules}
A mini-rule subset of General Latin~I rules that just covers T--Z.
\cmddef{glsxtrLatinA}
A mini-rule that just covers \qt{A} but includes the sub- and
superscript A.
\cmddef{glsxtrLatinE}
A mini-rule that just covers \qt{E} but includes the subscript E.
\cmddef{glsxtrLatinH}
A mini-rule that just covers \qt{H} but includes the subscript H.
\cmddef{glsxtrLatinK}
A mini-rule that just covers \qt{K} but includes the subscript K.
\cmddef{glsxtrLatinI}
A mini-rule that just covers \qt{I} but includes the subscript I.
\cmddef{glsxtrLatinM}
A mini-rule that just covers \qt{M} but includes the subscript M.
\cmddef{glsxtrLatinN}
A mini-rule that just covers \qt{N} but includes the sub- and
superscript N.
\cmddef{glsxtrLatinO}
A mini-rule that just covers \qt{O} but includes the sub- and
superscript O.
\cmddef{glsxtrLatinP}
A mini-rule that just covers \qt{P} but includes the subscript P.
\cmddef{glsxtrLatinS}
A mini-rule that just covers \qt{S} but includes the subscript S.
\cmddef{glsxtrLatinT}
A mini-rule that just covers \qt{T} but includes the subscript T.
\cmddef{glsxtrLatinX}
A mini-rule that just covers \qt{X} but includes the subscript X.
\cmddef{glsxtrLatinEszettSs}
A mini-rule that just covers eszett (\ss) and makes \qt{\longs s} (long~s followed
by short~s) equivalent to \qt{\ss}. (This is used in the above blocks
that treat \qt{\ss} as \qt{ss}.)
\cmddef{glsxtrLatinEszettSz}
A mini-rule that just covers eszett (\ss) and makes \qt{\longs z} (long~s followed
by z) equivalent to \qt{\ss}. (This is used in the above blocks
that treat \qt{\ss} as \qt{sz}.)
\cmddef{glsxtrLatinEth}
A mini-rule for eth (\Eth, \eth) so you don't need to remember the
Unicode values.
\cmddef{glsxtrLatinThorn}
A mini-rule for thorn (\Thorn, \thorn) so you don't need to remember the
Unicode values.
\cmddef{glsxtrLatinAELigature}
A mini-rule for ae-ligature (\AE, \ae) so you don't need to remember the
Unicode values.
\cmddef{glsxtrLatinOELigature}
A mini-rule for oe-ligature (\OE, \oe) so you don't need to remember the
Unicode values.
\cmddef{glsxtrLatinOslash}
A mini-rule for o-slash (\O, \o) so you don't need to remember the
Unicode values.
\cmddef{glsxtrLatinLslash}
A mini-rule for l-slash (\L, \l) so you don't need to remember the
Unicode values.
\cmddef{glsxtrLatinWynn}
A mini-rule for wynn (\Wynn, \wynn) so you don't need to remember the
Unicode values.
\cmddef{glsxtrLatinInsularG}
A mini-rule for insular-G (\InsularG, \insularg) so you don't need to remember the
Unicode values.
\cmddef{glsxtrLatinSchwa}
A mini-rule for schwa (\Schwa, \schwa, \textsuperscript\schwa) so
you don't need to remember the Unicode values. (Not used in any of
the provided Latin rule blocks described above.)
\cmddef{glsxtrLatinAA}
A mini-rule for \qt{a with ring above} (\AA, \aa) so you don't need to remember the
Unicode values. (Not used in any of the provided Latin rule blocks
described above.)
\paragraph{Math Greek}
\label{sec:bib2glscustomsortmathgreek}
\cmddef{glsxtrMathGreekIrules}
A rule block for mathematical Greek (\gls{alpha}, \gls{beta} etc)
and upright Greek (\gls{upalpha}, etc, from the \sty{upgreek}
package) characters that includes digamma (\gls{digamma} and
\gls{Digamma}) between epsilon and zeta. The upright and italic
versions are gathered together into the same letter group.
\cmddef{glsxtrMathGreekIIrules}
As \gls{glsxtrMathGreekIrules} but doesn't include digamma.
\cmddef{glsxtrMathUpGreekIrules}
A rule block for upright Greek (\gls{upalpha}, etc, from the
\sty{upgreek} package) characters that includes digamma
(\gls{digamma} and \gls{Digamma}) between epsilon and zeta.
\cmddef{glsxtrMathUpGreekIIrules}
A rule block for upright Greek (\gls{upalpha}, etc, from
the \sty{upgreek} package) that doesn't include digamma.
\cmddef{glsxtrMathItalicGreekIrules}
A rule block for mathematical Greek (\gls{alpha}, \gls{Alpha}, etc)
characters that includes digamma (\gls{digamma} and \gls{Digamma})
between epsilon and zeta. Note that even though the \idx{uppercase}
\gls{Delta} etc are actually rendered upright by \LaTeX,
\app{bib2gls}['s] interpreter treats them as italic to help keep
them close to the \idx{lowercase} versions.
\cmddef{glsxtrMathItalicGreekIIrules}
A rule block for mathematical Greek (\gls{alpha}, \gls{Alpha}, etc)
characters that doesn't include digamma.
\cmddef{glsxtrMathItalicUpperGreekIrules}
A rule block for \idx{uppercase} mathematical Greek (\gls{Alpha},
\gls{Beta}, etc) characters that includes digamma (\gls{Digamma})
between epsilon and zeta.
\cmddef{glsxtrMathItalicUpperGreekIIrules}
A rule block for \idx{uppercase} mathematical Greek (\gls{Alpha},
\gls{Beta}, etc) characters that doesn't include digamma.
\cmddef{glsxtrMathItalicLowerGreekIrules}
A rule block for \idx{lowercase} mathematical Greek (\gls{alpha},
\gls{beta}, etc) characters that includes digamma (\gls{digamma})
between epsilon and zeta.
\cmddef{glsxtrMathItalicLowerGreekIIrules}
A rule block for lower case mathematical Greek (\gls{alpha},
\gls{beta}, etc) characters that doesn't include digamma.
Additionally, there are commands that just cover the \idx{uppercase} and
\idx{lowercase} forms of a special
Greek character (\gls{Upalpha}, \gls{upalpha} etc and \gls{Alpha},
\gls{alpha} etc):
\inlineglsdef{glsxtrUpAlpha},
\inlineglsdef{glsxtrMathItalicAlpha},
\inlineglsdef{glsxtrUpBeta},
\inlineglsdef{glsxtrMathItalicBeta},
\inlineglsdef{glsxtrUpGamma},
\inlineglsdef{glsxtrMathItalicGamma},
\inlineglsdef{glsxtrUpDelta},
\inlineglsdef{glsxtrMathItalicDelta},
\inlineglsdef{glsxtrUpEpsilon},
\inlineglsdef{glsxtrMathItalicEpsilon},
\inlineglsdef{glsxtrUpDigamma},
\inlineglsdef{glsxtrMathItalicDigamma},
\inlineglsdef{glsxtrUpZeta},
\inlineglsdef{glsxtrMathItalicZeta},
\inlineglsdef{glsxtrUpEta},
\inlineglsdef{glsxtrMathItalicEta},
\inlineglsdef{glsxtrUpTheta},
\inlineglsdef{glsxtrMathItalicTheta},
\inlineglsdef{glsxtrUpIota},
\inlineglsdef{glsxtrMathItalicIota},
\inlineglsdef{glsxtrUpKappa},
\inlineglsdef{glsxtrMathItalicKappa},
\inlineglsdef{glsxtrUpLambda},
\inlineglsdef{glsxtrMathItalicLambda},
\inlineglsdef{glsxtrUpMu},
\inlineglsdef{glsxtrMathItalicMu},
\inlineglsdef{glsxtrUpNu},
\inlineglsdef{glsxtrMathItalicNu},
\inlineglsdef{glsxtrUpXi},
\inlineglsdef{glsxtrMathItalicXi},
\inlineglsdef{glsxtrUpOmicron},
\inlineglsdef{glsxtrMathItalicOmicron},
\inlineglsdef{glsxtrUpPi},
\inlineglsdef{glsxtrMathItalicPi},
\inlineglsdef{glsxtrUpRho},
\inlineglsdef{glsxtrMathItalicRho},
\inlineglsdef{glsxtrUpSigma},
\inlineglsdef{glsxtrMathItalicSigma},
\inlineglsdef{glsxtrUpTau},
\inlineglsdef{glsxtrMathItalicTau},
\inlineglsdef{glsxtrUpUpsilon},
\inlineglsdef{glsxtrMathItalicUpsilon},
\inlineglsdef{glsxtrUpPhi},
\inlineglsdef{glsxtrMathItalicPhi},
\inlineglsdef{glsxtrUpChi},
\inlineglsdef{glsxtrMathItalicChi},
\inlineglsdef{glsxtrUpPsi},
\inlineglsdef{glsxtrMathItalicPsi},
\inlineglsdef{glsxtrUpOmega}, and
\inlineglsdef{glsxtrMathItalicOmega}.
Additionally, there are commands for math italic partial
differential $\partial$ (0x1D715)
\inlineglsdef{glsxtrMathItalicPartial} and nabla $\nabla$ (0x1D6FB)
\inlineglsdef{glsxtrMathItalicNabla}.
\subsection{Commands Used Within Resource Files}
\label{sec:glstexcmds}
A \ext{glstex} file will typically start with \gls{glsnoexpandfields},
since supporting field expansion is only necessary where entry
definitions may be programmatically performed within a loop or
some other command. (This may be suppressed.)
If you use the \resourceopt{set-widest} resource option, \app{bib2gls}
v1.8+ will write the following command in the \ext{glstex} file:
\cmddef{glsxtrSetWidest}
This sets the widest name for the given
\idx{glossary} type and \idx{hierarchicallevel}. This supports both
the \glostyle{alttree} style and the styles provided by
\sty{glossary-longextra}, which need to know the widest name.
If \app{bib2gls} can't determine the widest name (typically because
the \gloskey{name} field consists of commands that aren't recognised by the
interpreter) then \app{bib2gls} v1.8+ will write the following to
the \ext{glstex} file:
\cmddef{glsxtrSetWidestFallback}\marg{max depth}\marg{list}
Currently the maximum hierarchical depth \meta{max
depth} may only be 0 or 2. This command requires commands provided
by the \sty{glossaries-extra-stylemods} package with the
\glostyle{alttree} style enabled. In this case, it may be simpler
to just use \gls{glssetwidest}.
The \ext{glstex} files may also contain instances of
\gls{glsxtrprovidestoragekey} to provide new \idxpl{gloskey} or
\gls{provideignoredglossary} to provide \idxpl{glossary} to ensure
they are defined.
The \csfmt{bibgls\ldots} commands provided by \app{bib2gls} are
defined in the \ext{glstex} files with \gls{providecommand}. See the
\app{bib2gls} manual for further details of those commands.
\subsection{Hierarchy}
\label{sec:bib2glshier}
The \gloskey{parent} key identifies a parent entry (by its label),
so determining if an entry has a parent can easily be achieved by
testing if the \gloskey{parent} field has been set (using
\gls{ifglshasparent} or a command like \gls{glsxtrifhasfield}).
The other way around, testing if an entry has any children, is much
harder. The base \sty{glossaries} package provides
\gls{ifglshaschildren}, which is very inefficient as it has to
iterate over all entries in the entry's \idx{glossary} to determine
which ones have a matching \gloskey{parent} field.
It's much easier with \app{bib2gls}, as there are
\idxpl{resourceopt} available to save this information. The
\resourceopt{save-child-count} option saves the child count for each
entry in the \glosfield{childcount} internal field. This total only
includes the child entries that have been selected by the
\idx{resourceset}.
\cmddef{GlsXtrIfHasNonZeroChildCount}
A shortcut that uses \gls{GlsXtrIfFieldNonZero} to test if the value
supplied in the \glosfield{childcount} field is non-zero. The
starred form uses the starred form of \gls{GlsXtrIfFieldNonZero}.
\subsection{Supplemental Locations}
\label{sec:supplocations}
Locations in external documents can be manually added by explicitly
setting \glsopt{thevalue} when an entry is \indexed. However, this
is a bit inconvenient so \app{bib2gls} provides a way to do this
automatically. Both the main document and the supplemental document
need to use the \opt{record} option, and the entries provided via
\resourceopt{src} in the main document must have the same labels as
those in the supplementary document. The supplemental document is
identified by the \resourceopt{supplemental-locations} resource
option. See the \app{bib2gls} manual for further details.
\cmddef{glsxtrdisplaysupploc}
This is used by \app{bib2gls} version v1.7+ for supplemental
locations, instead of using \gls{glsxtrsupphypernumber} with the
\catattr{externallocation} attribute. This command sets up the
\idx{locationcounter} and prefix (used in the formation of hyperlinks)
and then uses:
\cmddef{glsxtrmultisupplocation}
to format the actual \location\ (with an external hyperlink, if
supported). The \meta{format} (the original \idx{locationencap}) is
ignored by default.
\subsection{Nameref Records}
\label{sec:recordnameref}
Nameref \records\ include the current title and hypertarget. These
\records\ are enabled with \opteqvalref{record}{nameref} and provide a
more reliable way of saving the \location\ hypertarget, which can't be
obtained with \app{makeindex} or \app{xindy}.
This option is best used with \optval{counter}{\ctr{chapter}} or
\optval{counter}{\ctr{section}} if you want the title included in the
location list. If the indexing counter is the default
\ctr{page}, only the \location\ number is shown. Similarly for
\optval{counter}{\ctr{equation}} (or \optval{equations}{true}).
Normally locations are \recorded\ in the \ext{aux} file
in the form:
\cmddef{glsxtr@record}
This is similar to the command used with \gls{makenoidxglossaries}
and provides the same information about the \location\ and how to
form the hypertarget as is passed to \app{makeindex} and
\app{xindy}. The \opteqvalref{record}{nameref} option, which requires at least
\app{bib2gls} v1.8, instead uses:
\cmddef{glsxtr@record@nameref}
where \meta{title} is obtained from \gls{@currentlabelname}
and \meta{href} is obtained from \gls{@currentHref}. These
commands require \sty{hyperref}. If they are undefined,
\meta{title} and \meta{href} will be left empty and \app{bib2gls}
will treat it as a regular \record.
\begin{important}
Be careful with this option as \meta{href} will globally change on every
instance of \gls{refstepcounter} but \meta{title} won't necessarily
change. It can therefore cause unexpected behaviour.
\end{important}
The final argument \meta{hcounter} is obtained from
\csfmt{theH}\meta{counter} which provides the partial target name associated
with the \idx{locationcounter}. With the original
\app{makeindex}\slash \app{xindy} approach, it's not possible to
include this information in the location, so the base
\sty{glossaries} package attempts to derive a prefix from which the
\meta{hcounter} value can be reconstituted by appending the prefix.
Unfortunately, not all definitions of \csfmt{theH}\meta{counter} are in
the form \meta{prefix}\gls{thecounter} (most notably the
\ctr{equation} counter with chapters) so this can fail.
Since \app{bib2gls} is customized specifically for use with
\sty{glossaries-extra}, it's now possible to save
\meta{hcounter}, so the \opt{record}{nameref} option does this.
By providing both \meta{href} and \meta{hcounter}, you can determine
which target you would rather use. The default is to use
\meta{hcounter}, which will take you to the place where the
corresponding counter was incremented with \gls{refstepcounter}.
However, you may choose to switch to using the \meta{href} target,
which will take you to the nearest target before the indexing took
place.
With \app{bib2gls} v1.8+, normal locations are displayed using:
\cmddef{glsnoidxdisplayloc}
This is provided by the base \sty{glossaries} package and is simply
defined to do:
\begin{compactcodebox}
\gls{setentrycounter}\oargm{prefix}\margm{counter}\cmd{csuse}\margm{format}\margm{location}
\end{compactcodebox}
Earlier versions of \app{bib2gls} only used this in the
\glosfield{loclist} field and explicitly used \gls{setentrycounter} in
the \gloskey{location} field followed by
\csfmt{}\meta{format}\marg{location}, which follows the code that's created
with the default \opt{makeindex} setting.
The \gls{setentrycounter} command sets up the prefix needed for
\gls{glshypernumber} to reform the target name from the given
\location.
The \locations\ identified by \gls{glsxtr@record@nameref} are written
by \app{bib2gls} to the \idx{locationlist} using:
\cmddef{glsxtrdisplaylocnameref}
With normal internal locations, \meta{file} will always be empty.
With supplemental locations, \meta{file} will be the external file
reference. If \sty{hyperref} hasn't been loaded, this command
behaves like \gls{glsnoidxdisplayloc}, so it will simply encapsulate
the location with the given formatting command.
If \sty{hyperref} has been loaded, then \gls{glsxtrdisplaylocnameref}
will try to work out the appropriate hyperlink anchor and text. The
\meta{prefix} argument is redundant.
It first defines the following commands:
\cmddef{glsxtrrecentanchor}
This expands to the \meta{href} argument, which corresponds to the
\gls{@currentHref} value at the time the location was \recorded.
If this is used as the anchor, the link will go to the most recent anchor
before the record was created. This is more likely to match the
given title, but won't necessarily match the corresponding counter.
For example, if the record was created with
\glsoptval{counter}{\ctr{section}} but occurred in a table caption,
then \gls{glsxtrrecentanchor} and the title will correspond to the
table caption. If you have defined
\glsdisp{glsxtrcounterlocfmt}{\csfmt{glsxtrsectionlocfmt}} to show
the section number (see below), then this may cause some confusion if clicking
on the section number leads to a table caption. However, it will
lead to the closest location to where the record was created, which
may be preferred.
\cmddef{glsxtrlocationanchor}
This expands to the anchor that corresponds to the record's
\idx{locationcounter}, which is constructed from the \meta{counter}
and \meta{hcounter} arguments.
In the above example with the \ctr{section} counter,
\meta{hcounter} will be the value of \theHcounter{section} when the
record was created, so the constructed anchor will be
\code{section.\meta{hcounter}} which corresponds to the anchor at
the start of the section. However, if you haven't defined
\glsdisp{glsxtrcounterlocfmt}{\csfmt{glsxtrsectionlocfmt}}, then the
title will correspond to the table caption, which may be a little
confusing.
The actual anchor used is obtained from the expansion of:
\cmddef{glsxtractualanchor}
This is initialised to the value of \gls{glsxtrlocationanchor} but
may be changed by:
\cmddef{glsxtrsetactualanchor}
The argument is the counter name, which may be used to set choose an
alternative anchor depending on the counter. This command does
nothing by default, which means that \gls{glsxtrlocationanchor}
will be used.
For example, to switch to \gls{glsxtrrecentanchor} if the counter is
\ctrfmt{page}:
\begin{codebox}
\cmd{renewcommand}\marg{\gls{glsxtrsetactualanchor}}[1]\marg{\comment{}
\cmd{ifstrequal}\marg{\#1}\marg{page}
{\cmd{let}\gls{glsxtractualanchor}\gls{glsxtrrecentanchor}}%
{}%
}
\end{codebox}
\begin{information}
If you are using \opt{indexcounter} then the recent
anchor will be the one created by the \ctr{wrglossary} increment
just before the \idx{indexing} occurs. This means that with
\glsoptval{counter}{wrglossary}, the location anchor and recent
anchor will be the same. With other counters, the recent anchor will
be the closest anchor to the place where \idx{indexing} occurred.
\end{information}
To allow for different formatting according to the counter name,
\gls{glsxtrdisplaylocnameref} first checks for the existence of:
\cmddef{glsxtrcounterlocfmt}
If this command is defined, the location will be displayed using:
\begin{compactcodebox}
\gls{glsxtrnamereflink}\margm{format}{\gls{glsxtrcounterlocfmt}\margm{location}\margm{title}}\margm{href}\margm{file}
\end{compactcodebox}
Note the above warning about the possible mismatch of the title with
the anchor. For example, if the following is defined for the
\ctr{section} counter:
\begin{compactcodebox}
\cmd{newcommand}\marg{\glsdisp{glsxtrcounterlocfmt}{\csfmt{glsxtrsectionlocfmt}}}[2]\marg{\cmd{S}\#1 (\#2)}
\end{compactcodebox}
then this could lead to the section number followed by the table
caption. A more compact form that omits the title is better:
\begin{codebox}
\cmd{newcommand}\marg{\glsdisp{glsxtrcounterlocfmt}{\csfmt{glsxtrsectionlocfmt}}}[2]\marg{\cmd{S}\#1}
\end{codebox}
The following location formats are predefined.
The \ctr{equation} counter:
\cmddef{glsxtrequationlocfmt}
This simply expands to \code{(\meta{location})} since equations
typically don't have a title, but are usually enclosed in
parentheses.
\cmddef{glsxtrwrglossarylocfmt}
This is used when the \opt{indexcounter} option creates records with the
\ctr{wrglossary} counter. This ensures that the page name is shown
rather than the value of the \ctr{wrglossary} counter.
If the corresponding \gls{glsxtrcounterlocfmt} hasn't been defined,
\gls{glsxtrdisplaylocnameref} will do one of the following:
\begin{itemize}
\item if \meta{title} is empty or the counter is \ctr{page},
\gls{glsxtrnamereflink} with the title set to the location;
\item otherwise it will do:
\cmddef{glsxtrtitlednamereflink}
which uses \gls{glsxtrnamereflink} with the given \meta{title}
and \gls{glsxtrrecentanchor} as the anchor. This has a better chance
of matching the title with the anchor, but it's not guaranteed as
some anchors are created without a title.
This is defined as:
\begin{compactcodebox}
\cmd{newcommand}\marg{\gls{glsxtrtitlednamereflink}}[4]\marg{\comment{}
\gls{glsxtrnamereflink}\marg{\#1}\marg{\#2}\marg{\gls{glsxtrrecentanchor}}\marg{\#4}\comment{}
}
\end{compactcodebox}
This shows the formatted title with the recent anchor. The location
isn't shown. If you would prefer to just show the location and use
the anchor corresponding to the location counter:
\begin{compactcodebox}
\cmd{renewcommand}\marg{\gls{glsxtrtitlednamereflink}}[4]\marg{\comment{}
\gls{glsxtrnamereflink}\marg{\#1}\marg{\#2}\marg{\gls{glsxtrlocationanchor}}\marg{\#3}\comment{}
}
\end{compactcodebox}
\end{itemize}
If \meta{file} is empty an internal link is created with:
\cmddef{glsxtrfmtinternalnameref}
otherwise an external link is created with:
\cmddef{glsxtrfmtexternalnameref}
The \meta{file} argument is set by \app{bib2gls} for supplemental
locations (obtained from \resourceopt{supplemental-locations}).
The link is encapsulated with the text-block command
whose name is given by \meta{format}, but \gls{glshypernumber} is
first locally redefined to \gls{@firstofone} to prevent a conflict with the
usual \location\ hyperlink formation. This means that if the
\meta{format} is \gls{hyperbf} then it will simply behave like
\gls{textbf}.
The following command is provided but not used by default:
\cmddef{glsxtrnameloclink}
This creates a hyperlink to the target in the given external file obtained from the
\meta{prefix}, \meta{counter} and \meta{location} but uses
\meta{text} as the hyperlink text. As with regular indexing, this
will fail if the target name can't be formed by prefixing the
location value.
For compactness, \app{bib2gls} merges normal records if the
\meta{prefix}, \meta{counter} and \meta{location} all match. (An
order of precedence can be provided for format conflicts.) With
\optfmt{nameref} records, you can use the \switch{merge-nameref-on} switch
provided by \app{bib2gls} v1.8+ to determine how to merge \optfmt{nameref}
records. This switch must be followed by one of the following
keywords: \code{hcounter} (merge on \meta{hcounter}, default)
\code{href} (merge on \meta{href}), \code{title} (merge
on \meta{title}) and \code{location} (merge on \meta{location}, as
regular records). In all cases, the \meta{counter} must also match.
\subsection{Dual Entry Commands}
\label{sec:dgls}
Dual entries can be defined with entry types like \atentry{dualentry} or
\atentry{dualindexabbreviation}. A single entry definition within
the \ext{bib} file creates two dependent entries that may be
referenced within the document and assigned to different
\idxpl{glossary}. The default \resourceoptvalm{selection}{recorded
and deps} will ensure that dependent entries are selected, even if
they don't have any \records.
For example, the following \ext{bib} entry:
\begin{codebox}
\atentry{dualindexsymbol}\marg{L,
\gloskeyval{name}{Lagrangian function},
\gloskeyval{symbol}{\cmd{ensuremath}\marg{L}},
\gloskeyval{description}{a function of generalized co-ordinates}
}
\end{codebox}
is essentially like:
\begin{codebox}
\atentry{index}\marg{L,
\gloskeyval{name}{Lagrangian function},
\gloskeyval{symbol}{\cmd{ensuremath}\marg{L}},
\gloskeyval{description}{a function of generalized co-ordinates}
}
\atentry{symbol}\marg{dual.L,
\gloskeyval{name}{\cmd{ensuremath}\marg{L}},
\gloskeyval{symbol}{Lagrangian function},
\gloskeyval{description}{a function of generalized co-ordinates}
}
\end{codebox}
but additionally the two entries (the primary \code{L} and the dual
\code{dual.L}) are dependent. The following document only references
the primary entry, but the dependency ensures that that the dual is
also selected:
\begin{codebox}
\cmd{usepackage}\oarg{\opt{record},\opt{symbols},\opt{nostyles},
\optvalm{stylemods}{tree,bookindex}}\marg{glossaries-extra}
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{entries},\resourceoptval{dual-type}{symbols}}
\gls{glsdefpostlink}\marg{index}\marg{\gls{glsxtrpostlinkAddDescOnFirstUse}}
\gls{glsdefpostname}\marg{index}\marg{\%
\gls{ifglshassymbol}\marg{\gls{glscurrententrylabel}}
\marg{ (\gls{glsentrysymbol}\marg{\gls{glscurrententrylabel}})}\marg{}}
\cbeg{document}
Primary: \gls{gls}\marg{L}.
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{symbols},\printglossoptval{style}{\glostyle{tree}}}
\gls{printunsrtglossary}\oarg{\printglossoptval{title}{Index},\printglossoptval{style}{bookindex}}
\cend{document}
\end{codebox}
The dependency ensures that the dual entry \code{dual.L} is
selected, and the \resourceopt{dual-type} setting adds the dual
entry to the \code{symbols} glossary (which was defined with the
\opt{symbols} package option).
It may be useful to have a hyperlink from the entry in one \idx{glossary}
to its dependent in the other \idx{glossary}. This can be achieved
by instructing \app{bib2gls} to save the label of the entry's
opposite using \resourceopt{dual-field}. The value of this
\idx{resourceopt} indicates the field in which to
save the label. If omitted, \code{dual} is assumed.
The \idx{glossarystyle} can then be adapted to check if the field
has been set and, if so, to create a hyperlink. The following
command is provided to assist with this:
\cmddef{GlsXtrDualBackLink}
This is defined as:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{GlsXtrDualBackLink}}[2]\marg{\%
\gls{glsxtrifhasfield}\marg{\gls{GlsXtrDualField}}\marg{\#2}\%
\marg{\gls{glshyperlink}\oarg{\#1}\marg{\gls{glscurrentfieldvalue}}}\%
\marg{\#1}\%
}
\end{compactcodebox}
This obtains the field from:
\cmddef{GlsXtrDualField}
This expands to \code{dual}, which is the default for
\resourceopt{dual-field} if no value is supplied.
The above example can be adapted as follows:
\begin{codebox}
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}
\cmd{usepackage}\oarg{\opt{record},\opt{symbols},\opt{nostyles},\optvalm{stylemods}{tree,bookindex}}\marg{glossaries-extra}
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{entries},%
\resourceoptval{dual-type}{symbols},\resourceopt{dual-field}%
}
\gls{glsdefpostlink}\marg{index}\marg{\gls{glsxtrpostlinkAddSymbolOnFirstUse}}
\gls{glsdefpostname}\marg{index}\marg{\%
\gls{ifglshassymbol}\marg{\gls{glscurrententrylabel}}
\marg{ (\gls{GlsXtrDualBackLink}\marg{\gls{glsentrysymbol}\marg{\gls{glscurrententrylabel}}}\marg{\gls{glscurrententrylabel}})}\marg{}}
\cbeg{document}
Primary: \gls{gls}\marg{L}.
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{symbols},\printglossoptval{style}{\glostyle{tree}}}
\gls{printunsrtglossary}\oarg{\printglossoptval{title}{Index},\printglossoptval{style}{bookindex}}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[title={Using \appfmt{bib2gls}: dual backlinks},
label={ex:bib2glsdualbacklinks},
description={Example document that has backlinks in the glossaries
between the primary and dual entries},
arara={pdflatex,bib2gls,pdflatex,pdfcrop}]
{\cbeg{filecontents*}\marg{\cmd{jobname}.bib}^^J%
\atentry{dualindexsymbol}\marg{L,^^J
\gloskeyval{name}{Lagrangian function},^^J
\gloskeyval{symbol}{\cmd{ensuremath}\marg{L}},^^J
\gloskeyval{description}{a function of generalized co-ordinates}^^J%
}^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}\oarg{colorlinks}\marg{hyperref}^^J%
\cmd{usepackage}\oarg{\opt{record},\opt{symbols},\opt{nostyles},\optvalm{stylemods}{tree,bookindex}}\marg{glossaries-extra}^^J%
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{\cmd{jobname}},^^J
\resourceoptval{dual-type}{symbols},\resourceopt{dual-field}^^J%
}^^J%
\gls{glsdefpostlink}\marg{index}\marg{\gls{glsxtrpostlinkAddSymbolOnFirstUse}}^^J%
\gls{glsdefpostname}\marg{index}\marg{\%^^J
\gls{ifglshassymbol}\marg{\gls{glscurrententrylabel}}^^J
\marg{ (\gls{GlsXtrDualBackLink}\marg{\gls{glsentrysymbol}\marg{\gls{glscurrententrylabel}}}\marg{\gls{glscurrententrylabel}})}\marg{}}
}{Primary: \gls{gls}\marg{L}.^^J%
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{symbols},\printglossoptval{style}{\glostyle{tree}}}^^J%
\gls{printunsrtglossary}\oarg{\printglossoptval{title}{Index},\printglossoptval{style}{bookindex}}
}
\end{resultbox}
This checks if the \gloskey{symbol} key has been set in both the
\idx{catpostlinkhook} and the \idx{catpostnamehook} to append the
symbol in parentheses. In addition, the \idx{catpostnamehook} adds a
link to the corresponding dual entry.
If you prefer instead to have the backlink on the \gloskey{name} in both
\idxpl{glossary}, then this can more easily be achieved with a
\idx{resourceopt} such as \resourceopt{dual-backlink}.
The commands described below were designed for use with \app{bib2gls}['s] dual
entries, but may also be used in other contexts where a label may
potentially have a number of possible prefixes.
It's possible to use commands like \gls{glsxtrnewgls} to create
\idx{glslike} commands that automatically insert a label prefix
(such as \code{dual.}\ for dual entries).
The commands described in this section provide a similar set of
\idx{glslike} commands that iterate over a set of possible prefixes
until a match is found.
Each possible prefix (which may be empty) is identified by:
\cmddef{glsxtraddlabelprefix}\marg{prefix}
These should be listed in order of precedence.
You can prepend a prefix to the list using:
\cmddef{glsxtrprependlabelprefix}
which gives it the highest order of precedence.
The list of known prefixes can be (locally) cleared with:
\cmddef{glsxtrclearlabelprefixes}
You can test if a prefix is already in the list with:
\cmddef{glsxtrifinlabelprefixlist}
This does \meta{true} if the given prefix has been added to the
list. No expansion is performed on \meta{label-prefix}.
In the event that there's no match for any of the prefixes (which
will occur on the first \LaTeX\ run before the \ext{glstex} file has
been created), the fallback is determined by the conditional:
\cmddef{ifGlsXtrPrefixLabelFallbackLast}
If true, this will fallback on the last prefix, otherwise it will
fallback on the first. This conditional can be set to true with:
\cmddef{GlsXtrPrefixLabelFallbackLasttrue}
and to false with:
\cmddef{GlsXtrPrefixLabelFallbackLastfalse}
The default is true.
\begin{information}
As from v1.49, all possible matches will be \recorded\ using a
special syntax if none are found. This ensures there will be at
least one match on the first run. However, note that this requires
\app{bib2gls} v3.0+.
\end{information}
In general it's best to avoid adding multiple instances of the same
prefix, so you can check with this command before adding a prefix to
the list. However, it can be useful to repeat a prefix at
the start or end of the list so that it can be used as a fallback for entries
that haven't yet been defined.
With the list of possible prefixes set up (including an empty
prefix if necessary), you can use:
\cmddef{dgls}
which behaves like
\begin{compactcodebox}
\gls{gls}\oargm{options}\marg{\meta{prefix}\marg{entry-label}}\oargm{insert}
\end{compactcodebox}
where \meta{prefix} is the first prefix in the list such that
\meta{prefix}\meta{label} matches a defined entry. This requires
\app{bib2gls} v3.0+ to work properly on the first \LaTeX\ run (when
no entries are defined).
There are also analogous commands for the plural and case-changing
versions:
\cmddef{dglspl}
(uses \gls{glspl}),
\cmddef{dGls}
(uses \gls{Gls}),
\cmddef{dGlspl}
(uses \gls{Glspl}),
\cmddef{dGLS}
(uses \gls{GLS}),
\cmddef{dGLSpl}
(uses \gls{GLSpl}),
\cmddef{dglslink}
(uses \gls{glslink}),
\cmddef{dGlslink}
(uses \gls{Glslink}),
\cmddef{dglsdisp}
(uses \gls{glsdisp}) and
\cmddef{dGlsdisp}
(uses \gls{Glsdisp}).
If you want to use a specific field you can instead use:
\cmddef{dglsfield}
This will find the first match that has the given field set (that
is, the field value has been defined and is not empty or \gls{relax}).
The field should be identified by its \idx{internalfieldlabel}.
There are also case-changing versions:
\cmddef{dGlsfield}
which applies a \idx{sentencecase} change and
\cmddef{dGLSfield}
which applies \idx{allcaps}. Note that at least one of the potential
labels must have the given field set in order for the reference to be
correctly resolved. For example:
\begin{codebox}
\gls{dglsfield}\marg{pi}\marg{symbol}
\end{codebox}
If you find this a bit long-winded to type and you want to provide a
shorter command that recognises the modifiers, then you can use:
\cmddef{newdglsfield}
For example:
\begin{codebox}
\gls{newdglsfield}\marg{symbol}\marg{\cmd{sym}}
\cmd{sym}\marg{pi}
\end{codebox}
If you also want \idx{sentencecase} and \idx{allcaps} versions use:
\cmddef{newdglsfieldlike}
where \meta{cs} is the command without a case-change (which will use
\gls{dglsfield}), \meta{Cs} is the \idx{sentencecase} command
(which will use \gls{dGlsfield}) and \meta{CS} is the \idx{allcaps}
command (which will use \gls{dGLSfield}). This will also use
\gls{glsmfuaddmap} and \gls{glsmfublocker} to establish the
\idx{sentencecase} mapping from \meta{cs} to \meta{Cs} and block the
\idx{casechange} for \meta{CS}.
\begin{information}
No expansion is performed on \meta{default-options} or \meta{field}
while the new commands are being defined.
\end{information}
This family of \gls{dglsfield} commands all define:
\cmddef{dglsfieldcurrentfieldlabel}
This expands to the given field label.
If the requested field isn't set (according to \gls{ifcsvoid}) then
the fallback field will be tried instead.
\cmddef{dglsfieldfallbackfieldlabel}
This expands to the fallback field, which defaults to the
\gloskey{text} field.
If you need to know whether the requested field or the fallback
field was used, the following will be set to the actual field used.
\cmddef{dglsfieldactualfieldlabel}
For example, suppose the file \filefmt{entries.bib} contains:
\begin{codebox}
\atentry{index}\marg{duck}
\atentry{dualindexabbreviation}\marg{svm,
\gloskeyval{short}{SVM},
\gloskeyval{long}{support vector machine}
}
\atentry{dualindexsymbol}\marg{pi,
\gloskeyval{symbol}{\cmd{ensuremath}\marg{\cmd{pi}}},
description={ratio of a circle's circumference to its diameter}
}
\end{codebox}
and suppose the document code is:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\marg{hyperref}
\cmd{usepackage}\oarg{\opt{record},\opt{abbreviations},\opt{symbols}}\marg{glossaries-extra}
\codepar
\cmd{newcommand}\marg{\gls{bibglsnewdualindexsymbolsecondary}}[5]\marg{\%
\gls{longnewglossaryentry}*\marg{\#1}\marg{\gloskeyval{name}{\#3},\gloskeyval{category}{symbol},
\gloskeyval{type}{symbols},\gloskeyval{symbol}{\#4},\#2}\marg{\#5}\%
}
\codepar
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{entries}}
\codepar
\cbeg{document}
First use: \gls{gls}\marg{duck}, \gls{gls}\marg{svm}, \gls{gls}\marg{pi}.
Next use: \gls{gls}\marg{duck}, \gls{gls}\marg{svm}, \gls{gls}\marg{pi}.
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
This uses the default empty primary prefix and \code{dual.}\ for
the dual prefix, so \code{\gls{gls}\marg{svm}} is referencing the primary
entry, which is (essentially) an \atentry{index} type not an
abbreviation. It therefore doesn't follow the abbreviation style, and
it also hyperlinks to the index not to the list of abbreviations.
Similarly for \code{\gls{gls}\marg{pi}}, which references the primary
\atentry{index} entry rather than the symbol.
What's really needed is:
\begin{codebox}
\gls{gls}\marg{duck}, \gls{gls}\marg{dual.svm}, \gls{gls}\marg{dual.pi}.
\end{codebox}
or use \resourceopt{label-prefix} and \resourceopt{dual-prefix} to
set the label prefixes:
\begin{codebox}
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{entries},
\resourceoptvalm{label-prefix}{idx.},\resourceoptvalm{dual-prefix}{}
}
\end{codebox}
then only the entries without a dual need a prefix:
\begin{codebox}
\gls{gls}\marg{idx.duck}, \gls{gls}\marg{svm}, \gls{gls}\marg{pi}.
\end{codebox}
Using \gls{glsxtrnewgls} or \gls{glsxtrnewglslike} (see \sectionref{sec:labelprefixes})
to define the custom \csfmt{idx}:
\begin{codebox}
\gls{glsxtrnewgls}\marg{idx.}\marg{\cmd{idx}}
\end{codebox}
the entry references can be simplified to:
\begin{codebox}
\cmd{idx}\marg{duck}, \gls{gls}{svm}, \gls{gls}{pi}.
\end{codebox}
but this requires remembering which terms have duals.
An alternative is to use \gls{dgls} instead:
\begin{codebox}
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{entries},
\resourceoptval{combine-dual-locations}{primary}}
\codepar
\gls{glsxtraddlabelprefix}\marg{dual.}
\gls{glsxtraddlabelprefix}\marg{}
\codepar
\cbeg{document}
First use: \gls{dgls}\marg{duck}, \gls{dgls}\marg{svm}, \gls{dgls}\marg{pi}.
Next use: \gls{dgls}\marg{duck}, \gls{dgls}\marg{svm}, \gls{dgls}\marg{pi}.
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}
\begin{resultbox}
\createexample*[arara={pdflatex,bib2gls,pdflatex,pdfcrop},
label={ex:bib2glsduallabelprefixes},
title={Using \appfmt{bib2gls}: dual entry label prefixes},
description={Example document that uses bib2gls's dual entries with
the primary and dual prefixes identified}
]
{%
\cbeg{filecontents*}\marg{\cmd{jobname}.bib}^^J%
\atentry{index}\marg{duck}^^J%
\atentry{dualindexabbreviation}\marg{svm,^^J
\gloskeyval{short}{SVM},^^J
\gloskeyval{long}{support vector machine}^^J%
}^^J
\atentry{dualindexsymbol}\marg{pi,^^J
\gloskeyval{symbol}{\cmd{ensuremath}\marg{\cmd{pi}}},^^J
description={ratio of a circle's circumference to its
diameter}^^J%
}^^J%
\cend{filecontents*}^^J%
\cmd{usepackage}\marg{hyperref}^^J%
\cmd{usepackage}\oarg{\opt{record},\opt{abbreviations},\opt{symbols}}\marg{glossaries-extra}
\codepar
\cmd{newcommand}\marg{\gls{bibglsnewdualindexsymbolsecondary}}[5]\marg{\%^^J
\gls{longnewglossaryentry}*\marg{\#1}\marg{\gloskeyval{name}{\#3},\gloskeyval{category}{symbol},^^J
\gloskeyval{type}{symbols},\gloskeyval{symbol}{\#4},\#2}\marg{\#5}\%^^J%
}
\codepar
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{\cmd{jobname}},^^J
\resourceoptval{combine-dual-locations}{primary}}^^J%
\gls{glsxtraddlabelprefix}\marg{dual.}^^J%
\gls{glsxtraddlabelprefix}\marg{}
}
{First use: \gls{dgls}\marg{duck}, \gls{dgls}\marg{svm},
\gls{dgls}\marg{pi}.^^J%
Next use: \gls{dgls}\marg{duck}, \gls{dgls}\marg{svm},
\gls{dgls}\marg{pi}.^^J%
\gls{printunsrtglossaries}
}
\end{resultbox}
On the first \LaTeX\ call (when the \ext{glstex} file doesn't exist),
neither \code{dual.svm} nor \code{svm} exists, so \gls{dgls}
uses the last prefix (which is empty in this case). This means
that on the first \LaTeX\ run, \code{\gls{dgls}\marg{svm}} behaves like
\code{\gls{gls}\marg{svm}}, which adds a record for the primary
\code{svm} entry. The default primary-dual dependency means
that this will cause both the primary (\code{svm}) and dual
(\code{dual.svm}) entry to be selected. The \location\ will be
added to the primary entry's \idx{locationlist}, unless overridden
by resource options, such as \resourceopt{combine-dual-locations}.
Once \app{bib2gls} has been run and the \ext{glstex} file
exists, then \code{dual.svm} exists. So \code{\gls{dgls}\marg{svm}} will
again first try \code{dual.svm} (as \code{dual.}\ is the
first in the list of label prefixes). That now exists, so
\code{\gls{dgls}\marg{svm}} now behaves like \code{\gls{gls}\marg{dual.svm}}, which
follows the abbreviation style and hyperlinks to the list
of abbreviations.
Similarly for the index-symbol combination \code{dual.pi} and
\code{pi}.
In the case of \code{\gls{dgls}\marg{duck}}, which doesn't have a
dual, the label \code{dual.duck} never exists, so that's never
selected. However, when there's no match, such as when the
\ext{glstex} file doesn't exist, the duck entry will be \recorded\
with both the \code{dual.}\ prefix and the empty prefix. This allows
\app{bib2gls} to test which prefix+label combination matches.
\begin{warning}
If you haven't used \resourceopt{combine-dual-locations} an extra
\app{bib2gls}+\LaTeX\ run may be required to correct the location
lists.
\end{warning}
If you change the label prefixes, remember to update the
corresponding \code{\gls{glsxtraddlabelprefix}\margm{label-prefix}}.
If no prefixes have been added to the list (or if the list is
cleared), just an empty prefix is assumed.
Note that \app{bib2gls} v1.8+ provides hooks that identify
the label prefixes in the \ext{glstex} file:
\begin{compactcodebox}
\inlineglsdef{bibglstertiaryprefixlabel}\margm{label-prefix}
\inlineglsdef{bibglsdualprefixlabel}\margm{label-prefix}
\inlineglsdef{bibglsprimaryprefixlabel}\margm{label-prefix}
\end{compactcodebox}
These do nothing by default, but they can be defined before
the resource file is loaded to set up the prefix list. For
example:
\begin{codebox}
\cmd{newcommand}\marg{\gls{bibglsprimaryprefixlabel}}[1]\marg{\%
\gls{glsxtraddlabelprefix}\marg{\#1}}
\cmd{newcommand}\marg{\gls{bibglsdualprefixlabel}}[1]\marg{\%
\gls{glsxtrprependlabelprefix}\marg{\#1}}
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{entries}}
\end{codebox}
Remember that this will only have an effect once the
\ext{glstex} file has been created. The prefix list will be empty
on the first run (which is treated as a single empty prefix).
If this isn't a suitable fallback, it may be necessary to add one
after all the resource commands:
\begin{codebox}
\cmd{newcommand}\marg{\gls{bibglsprimaryprefixlabel}}[1]\marg{\%
\gls{glsxtraddlabelprefix}\marg{\#1}}
\cmd{newcommand}\marg{\gls{bibglsdualprefixlabel}}[1]\marg{\%
\gls{glsxtrprependlabelprefix}\marg{\#1}}
\gls{GlsXtrLoadResources}\oarg{\resourceoptval{src}{entries},\resourceoptvalm{label-prefix}{idx.}}
\gls{glsxtraddlabelprefix}\marg{idx.}
\end{codebox}
Although this rather defeats the purpose of using the hooks as you
still have to keep track of the fallback prefix.
\subsection{Supplementary Commands}
\label{sec:bib2glssupplementarycommands}
\cmddef{glsdisplaynumberlist}
This command is provided by the base \sty{glossaries} package, but
it requires hooking into the \idx{locationlist} formatting within
the \idx{glossary} to obtain the list. This information is more
easily available with \app{bib2gls}, which stores the formatted
\idx{locationlist} in the \gloskey{location} field, so
\sty{glossaries-extra-bib2gls} redefines this command to use that
field value. Likewise for:
\cmddef{glsentrynumberlist}
which is redefined to simply do:
\begin{compactcodebox}
\gls{glsxtrusefield}\marg{\#1}\marg{\gloskey{location}}
\end{compactcodebox}
\cmddef{IfTeXParserLib}
This command is defined by \sty{glossaries-extra-bib2gls} to expand
to \code{\LaTeX\ code}, but is defined by the \TeX\
parser library used by \app{bib2gls}['s] to expand to \code{\TeX\
parser lib code}. May be used in the \atentry{preamble} or in field
values to provide \app{bib2gls} with alternative content.
\cmddef{glsxtrprovidecommand}
This command is intended for use in \atentry{preamble}.
It's simply defined to \gls{providecommand} in
\sty{glossaries-extra-bib2gls} but \app{bib2gls}['s] interpreter
treats it as \gls{renewcommand}. This means that you can
override \app{bib2gls}['s] internal definition of a command
without overriding the command definition in the document
(if it's already defined before the \idx{resourcefile} is input).
For example:
\begin{codebox}
\atentry{preamble}\marg{"\gls{glsxtrprovidecommand}\marg{\cmd{int}}\marg{integral}"}
\end{codebox}
This will force \app{bib2gls} to treat \csfmt{int} as the word
\qt{integral} to assist sorting but if this preamble code is written
to the \ext{glstex} file (as it is by default) then it won't
override the current definition (provided by the kernel or redefined
by a package).
The helper commands in the \idxpl{resourcefile} are defined using
\gls{providecommand}. For many of them, if you want to provide an
alternative definition then you need to define the command before
the \idx{resourcefile} is loaded. There are a few that may be redefined
afterwards but if you use \gls{renewcommand} then you will get an
error on the first \LaTeX\ run when the \ext{glstex} file
doesn't exist. In this case, you may prefer to use:
\cmddef{glsrenewcommand}
This behaves like \gls{renewcommand} but only generates a warning
rather than an error if the command isn't already defined so it
won't interrupt the document build.
\cmddef{GlsXtrIndexCounterLink}
For use with the \opt{indexcounter} package option and the
\resourceopt{save-index-counter} resource option.
This command creates a hyperlink (if supported) to the target obtained from
the \glosfield{indexcounter} field (which will be set in the
\ext{glstex} file, if applicable).
If then \glosfield{indexcounter} field is set for the entry
given by \meta{entry-label}, this command does
\code{\gls{hyperref}\oarg{wrglossary.\meta{value}}\margm{text}}, where
\meta{value} is the value of the \glosfield{indexcounter} field. If the
field isn't set or if \gls{hyperref} hasn't been defined, this just
does \meta{text}. See the \app{bib2gls} manual (v1.4+) for further details.
The \sty{glossaries-extra-bib2gls} package also provides definitions
of the missing mathematical Greek commands: \inlineglsdef{Alpha},
\inlineglsdef{Beta}, \inlineglsdef{Epsilon}, \inlineglsdef{Zeta},
\inlineglsdef{Eta}, \inlineglsdef{Iota},
\inlineglsdef{Kappa}, \inlineglsdef{Mu}, \inlineglsdef{Nu},
\inlineglsdef{Omicron}, \inlineglsdef{Rho},
\inlineglsdef{Tau}, \inlineglsdef{Chi}, \inlineglsdef{Digamma},
\inlineglsdef{omicron}.
These are all defined with \gls{providecommand}, so they won't override
any definitions provided by any package loaded before
\sty{glossaries-extra}. Since \app{bib2gls}['s] interpreter
recognises these commands, using them instead of explicitly using
the Latin characters with the same shape helps to keep the Greek
symbols together when sorting.
Similarly, if \sty{upgreek} has been loaded, the missing upright
Greek commands are also provided: \inlineglsdef{Upalpha},
\inlineglsdef{Upbeta}, \inlineglsdef{Upepsilon}, \inlineglsdef{Upzeta},
\inlineglsdef{Upeta}, \inlineglsdef{Upiota},
\inlineglsdef{Upkappa}, \inlineglsdef{Upmu}, \inlineglsdef{Upnu},
\inlineglsdef{Upomicron}, \inlineglsdef{Uprho},
\inlineglsdef{Uptau}, \inlineglsdef{Upchi}, \inlineglsdef{upomicron}.
\glsendrange{%
pkg.glossaries-extra-bib2gls,% end of glossaries-extra-bib2gls.sty
app.bib2gls% end of bib2gls chapter
}
\chapter{Auto-Indexing}
\label{sec:autoindex}
It's possible that you may also want a normal index as well as
the glossary, and you may want entries to automatically be
added to the index (as in this document).
There are two attributes that govern this: \catattr{indexname}
and \catattr{dualindex}.
\begin{important}
The auto-indexing is designed for \app+{makeindex} syntax. If you've
used the \opt{xindy} package option, the automatic escaping of
\app+{xindy} special characters in the \gloskey{sort} field may
result in an incorrect sort value for the \gls{index} command used by
the auto-indexing. Note also that \app{texindy} has a fixed set of
special characters (corresponding to \app{makeindex}['s] defaults)
that can't be customized. You may want to consider using \app{bib2gls} and
its dual entries as an alternative approach.
\end{important}
The \gls{glsxtrpostnamehook} macro, used at the end of
\gls{glossentryname} and \gls{Glossentryname}, checks the
\catattr{indexname} attribute for the category associated with that
entry. Since \gls{glossentryname} is used in the default glossary
styles, this makes a convenient way of automatically indexing each
entry name at its location in the glossary without fiddling around
with the value of the \gloskey{name} key.
The internal macro used by the \sty{glossaries} package to
write the information to the external glossary file is
modified to check for the \catattr{dualindex} attribute.
In both cases, the indexing is done through:
\cmddef{glsxtrdoautoindexname}
This uses the standard \gls{index} command with the sort value
taken from the entry's \gloskey{sort} key and the actual value
set to \code{\gls{glsentryname}\margm{entry-label}}. There are
user-level commands available to change the sort and actual
value used by the automated index.
The actual value is given by:
\cmddef{glsxtrautoindexentry}
where \meta{entry-label} is the entry's label. The default definition
is:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{glsxtrautoindexentry}}[1]\marg{\gls{string}\gls{glsentryname}\marg{\#1}}
\end{compactcodebox}
Note the use of \gls{string} to prevent \gls{glsentryname} from
being expanded as it's written to the index file.
The sort value is assigned using:
\cmddef{glsxtrautoindexassignsort}
where \meta{entry-label} is the entry label and \meta{cs} is the command
which needs to be set to the sort value. The default definition is:
\begin{compactcodebox}
\cmd{newcommand}*\marg{\gls{glsxtrautoindexassignsort}}[2]\marg{\%
\gls{glsletentryfield}\marg{\#1}\marg{\#2}\marg{\gloskey{sort}}\%
}
\end{compactcodebox}
After this macro is called, \meta{cs} is then processed to escape
any of \app{makeindex}['s] special characters. Note that this
escaping is only performed on the sort not on the actual value.
The escaping of the sort value is performed by
\cmddef{glsxtrautoindexesc}
You can redefine this to do nothing if you want to omit the
escaping. You may want to consider providing another field to obtain
the appropriate sort value if the one provided in the \gloskey{sort}
field isn't suitable (because it may already have had special
characters escaped or it may be a numeric value in the case of
sort by use or definition).
The command used to perform the actual indexing is:
\cmddef{glsxtrautoindex}
This just does \code{\gls{index}\margm{text}} by default.
\begin{important}
The entry's \gloskey{parent} field isn't referenced in this
automated indexing.
\end{important}
For example, to index the value of the \gloskey{first} key,
instead of the \gloskey{name} key:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsxtrautoindexentry}}[1]\marg{\gls{string}\gls{glsentryfirst}\marg{\#1}}
\end{codebox}
and if the sort value also needs to be set to the \gloskey{long}
field, if present, otherwise the \gloskey{sort} field:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsxtrautoindexassignsort}}[2]\marg{\%
\gls{ifglshaslong}\marg{\#2}\%
\marg{\gls{glsletentryfield}\marg{\#1}\marg{\#2}\marg{\gloskey{long}}}\%
\marg{\gls{glsletentryfield}\marg{\#1}\marg{\#2}\marg{\gloskey{sort}}}\%
}
\end{codebox}
If the value of the attribute is \qt{true}, no encap
will be added, otherwise the encap will be the
attribute value. For example:
\begin{codebox}
\gls{glssetcategoryattribute}\marg{\cat{general}}\marg{\catattr{indexname}}\marg{textbf}
\end{codebox}
will set the encap to \code{textbf} which will display the
relevant page number in bold whereas
\begin{codebox}
\gls{glssetcategoryattribute}\marg{\cat{general}}\marg{\catattr{dualindex}}\marg{true}
\end{codebox}
won't apply any formatting to the page number in the index.
\begin{important}
The location used in the index will always be the page number
not the counter used in the glossary. (Unless some other loaded
package has modified the definition of \gls{index} to use
some thing else.)
\end{important}
By default the \glsopt{format} key won't be used with
the \catattr{dualindex} attribute. You can allow the
\glsopt{format} key to override the attribute value
by using the preamble-only command:
\cmddef{GlsXtrEnableIndexFormatOverride}
If you use this command and \sty{hyperref} has been loaded,
then the \env{theindex} environment will be modified to redefine
\gls{glshypernumber} to allow formats that use that command.
\begin{important}
The \catattr{dualindex} attribute will still be used on
subsequent use even if the \catattr{indexonlyfirst} attribute
(or \opt{indexonlyfirst} package option) is set. However,
the \catattr{dualindex} attribute will honour the
\glsopt{noindex} key.
\end{important}
The \gls{glsxtrdoautoindexname} command will attempt to escape any of
\app{makeindex}'s special characters, but there may be special cases
where it fails, so take care. This assumes the default \app{makeindex} actual,
level, quote and encap values (unless any of the commands
\gls{actualchar}, \gls{levelchar}, \gls{quotechar} or
\gls{encapchar} have been defined before \sty{glossaries-extra}
is loaded).
If this isn't the case, you can use the following preamble-only
commands to set the correct characters.
\begin{important}
Be very careful of possible shifting category codes!
\end{important}
\cmddef{GlsXtrSetActualChar}
Set the actual character to \meta{char}.
\cmddef{GlsXtrSetLevelChar}
Set the level character to \meta{char}.
\cmddef{GlsXtrSetEscChar}
Set the escape (quote) character to \meta{char}.
\cmddef{GlsXtrSetEncapChar}
Set the encap character to \meta{char}.
\chapter{On-the-Fly Document Definitions}
\label{sec:onthefly}
\begin{important}
The commands described here may superficially look like
\code{\meta{word}\gls{index}\margm{word}}, but they behave rather
differently. If you want to use \gls{index} then just use
\gls{index}.
\end{important}
The base \sty{glossaries} package advises against defining entries
in the \env{document} environment. As mentioned in
\sectionref{sec:refindexopts}, this ability is disabled by
default with \sty{glossaries-extra} but can be enabled using
the \opt{docdef} package options.
Although this can be problematic, the \sty{glossaries-extra}
package provides a way of defining and using entries within
the \env{document} environment without the tricks used with the
\opt{docdef} option. \emph{There are limitations with this
approach, so take care with it.} This function is disabled by
default, but can be enabled using the preamble-only command:
\cmddef{GlsXtrEnableOnTheFly}
When used, this defines the commands described below. The starred
version was provided to help support \idx{utf8} with \sty{inputenc}.
Recent versions of the \LaTeX\ kernel now provide better support.
Both \sty{glossaries} and \sty{glossaries-extra} have been updated
to help integrate the new kernel features, so the unstarred version
may also work with \idx{utf8}.
\begin{warning}
If you use the starred version of \gls{GlsXtrEnableOnTheFly}
don't use any commands in the \meta{label}, even if they expand
to just text.
\end{warning}
\cmddef{glsxtr}
If an entry with the label \meta{entry-label} has already been defined,
this just does \code{\gls{gls}\oargm{gls-options}\margm{entry-label}}. If
\meta{entry-label} hasn't been defined, this will define the entry
using:
\begin{compactcodebox}
\gls{newglossaryentry}\margm{entry-label}\marg{\gloskeyval{name}{entry-label},
\gloskeyval{category}{\gls{glsxtrcat}},
\gloskeyval{description}{\gls{nopostdesc}},
\meta{dfn-options}}
\end{compactcodebox}
\begin{important}
The \meta{label} must contain any non-expandable commands, such as
formatting commands or problematic characters.
If the term requires any of these, they must be omitted from the
\meta{entry-label} and placed in the \gloskey{name} key within
the optional argument \meta{dfn-options}.
\end{important}
The second optional argument \meta{dfn-options} should be empty
if the entry has already been defined, since it's too late for
them. If it's not empty, a~warning will be generated with:
\cmddef{GlsXtrWarning}
For example, this warning will be generated on the second instance
of \gls{glsxtr} below:
\begin{codebox}
\gls{glsxtr}\oarg{}\oarg{\gloskey{plural}{geese}}\marg{goose}
\comment{... later}
\gls{glsxtr}\oarg{}\oarg{\gloskey{plural}{geese}}\marg{goose}
\end{codebox}
If you are considering doing something like:
\begin{codebox}
\cmd{newcommand}*\marg{\cmd{goose}}\marg{\gls{glsxtr}\oarg{}\oarg{\gloskeyval{plural}{geese}}\marg{goose}}
\cmd{renewcommand}*\marg{\gls{GlsXtrWarning}}[2]\marg{}
\comment{... later}
\cmd{goose}\cmd{ }some more text here
\end{codebox}
then don't bother. It's simpler and less problematic to just
define the entries in the preamble with \gls{newglossaryentry}
and then use \gls{gls} in the document.
There are also plural and case-changing alternatives to \gls{glsxtr}.
\cmddef{glsxtrpl}
This is like \gls{glsxtr} but uses \gls{glspl} instead of \gls{gls}.
\cmddef{Glsxtr}
This is like \gls{glsxtr} but uses \gls{Gls} instead of \gls{gls}.
\cmddef{Glsxtrpl}
This is like \gls{glsxtr} but uses \gls{Glspl} instead of \gls{gls}.
The category is set to:
\cmddef{glsxtrcat}
This should simply expand to the required category label.
The default definition is \code{general}.
\begin{important}
The commands \gls{glsxtr}, \gls{glsxtrpl}, \gls{Glsxtr}
and \gls{Glsxtrpl} can't be used after the \idxpl{glossary} have been
displayed (through \gls{printglossary} etc). It's best not to mix
these commands with the standard glossary commands, such
as \gls{gls} or there may be unexpected results.
\end{important}
\chapter{Supplementary Files}
\label{sec:extrafiles}
The \sty{glossaries-extra} package comes with some additional files.
Those listed in \sectionref{sec:exampleglossariesfiles} provide
dummy entries for testing various styles. They should be placed on
\TeX's path.
There are also some sample files listed in \sectionref{sec:samples}.
These should be located in the package documentation directory.
\section{Dummy Files for Testing}
\label{sec:exampleglossariesfiles}
The base \sty{glossaries} package provides files with dummy entries
for testing. The \sty{glossaries-extra} package provides an
additional file with entries.
\filedef{example-glossaries-xr.tex}
This file contains entries that have the \gloskey{see}, \gloskey{seealso} or
\gloskey{alias} keys set.
There are also \ext+{bib} files corresponding to all the available
\ext+{tex} files for use with \app{bib2gls}.
\filedef{example-glossaries-acronym.bib}
Corresponds to \filefmt{example-glossaries-acronym.tex}
\filedef{example-glossaries-acronym-desc.bib}
Corresponds to \filefmt{example-glossaries-acronym-desc.tex}
\filedef{example-glossaries-acronyms-lang.bib}
Corresponds to \filefmt{example-glossaries-acronyms-lang.tex}
\filedef{example-glossaries-brief.bib}
Corresponds to \filefmt{example-glossaries-brief.tex}
\filedef{example-glossaries-childmultipar.bib}
Corresponds to \filefmt{example-glossaries-childmultipar.tex}
\filedef{example-glossaries-childnoname.bib}
Corresponds to \filefmt{example-glossaries-childnoname.tex}
\filedef{example-glossaries-cite.bib}
Corresponds to \filefmt{example-glossaries-cite.tex}
\filedef{example-glossaries-images.bib}
Corresponds to \filefmt{example-glossaries-images.tex}
\filedef{example-glossaries-long.bib}
Corresponds to \filefmt{example-glossaries-long.tex}
\filedef{example-glossaries-longchild.bib}
Corresponds to \filefmt{example-glossaries-longchild.tex}
\filedef{example-glossaries-multipar.bib}
Corresponds to \filefmt{example-glossaries-multipar.tex}
\filedef{example-glossaries-parent.bib}
Corresponds to \filefmt{example-glossaries-parent.tex}
\filedef{example-glossaries-symbolnames.bib}
Corresponds to \filefmt{example-glossaries-symbolnames.tex}
\filedef{example-glossaries-symbols.bib}
Corresponds to \filefmt{example-glossaries-symbols.tex}
\filedef{example-glossaries-url.bib}
Corresponds to \filefmt{example-glossaries-url.tex}
\filedef{example-glossaries-user.bib}
Corresponds to \filefmt{example-glossaries-user.tex}
\filedef{example-glossaries-xr.bib}
Corresponds to \filefmt{example-glossaries-xr.tex}
\section{Sample Files}
\label{sec:samples}
The \sty{glossaries-extra} package comes with some sample files
that are listed below. There are also sample files provided with the
\sty{glossaries} package and with \app{bib2gls}. See also
the \gallery{Dickimaw Books Gallery}.
\filedef{sample.tex}
Simple sample file that uses one of the dummy
files provided by the \sty{glossaries} package for testing.
\begin{terminal}
pdflatex sample
makeglossaries sample
pdflatex sample
pdflatex sample
\end{terminal}
\filedef{sample-abbr-styles.tex}
\begin{terminal}
pdflatex sample-abbr-styles
makeglossaries sample-abbr-styles
pdflatex sample-abbr-styles
pdflatex sample-abbr-styles
\end{terminal}
Demonstrates all predefined abbreviation styles.
\filedef{sample-mixture.tex}
\begin{terminal}
pdflatex sample-mixture
makeglossaries sample-mixture
pdflatex sample-mixture
makeglossaries sample-mixture
pdflatex sample-mixture
\end{terminal}
General entries, acronyms and initialisms all treated differently.
\filedef{sample-name-font.tex}
\begin{terminal}
pdflatex sample-name-font
makeglossaries sample-name-font
pdflatex sample-name-font
pdflatex sample-name-font
\end{terminal}
Categories and attributes are used to
customize the way different entries appear.
\filedef{sample-abbrv.tex}
\begin{terminal}
pdflatex sample-abbrv
makeglossaries sample-abbrv
pdflatex sample-abbrv
pdflatex sample-abbrv
\end{terminal}
General abbreviations.
\filedef{sample-acronym.tex}
\begin{terminal}
pdflatex sample-acronym
makeglossaries sample-acronym
pdflatex sample-acronym
\end{terminal}
Acronyms aren't initialisms and don't expand on \idx{firstuse}.
\filedef{sample-acronym-desc.tex}
\begin{terminal}
pdflatex sample-acronym-desc
makeglossaries sample-acronym-desc
pdflatex sample-acronym-desc
makeglossaries sample-acronym-desc
pdflatex sample-acronym-desc
\end{terminal}
Acronyms that have a separate long form and description.
\filedef{sample-crossref.tex}
\begin{terminal}
pdflatex sample-crossref
makeglossaries sample-crossref
pdflatex sample-crossref
\end{terminal}
Unused entries that have been cross-referenced automatically are
added at the end of the document.
\filedef{sample-indexhook.tex}
\begin{terminal}
pdflatex sample-indexhook
makeglossaries sample-indexhook
pdflatex sample-indexhook
\end{terminal}
Use the index hook to track which entries have been indexed (and
therefore find out which ones haven't been indexed).
\filedef{sample-footnote.tex}
\begin{terminal}
pdflatex sample-footnote
makeglossaries sample-footnote
pdflatex sample-footnote
\end{terminal}
Footnote abbreviation style that moves
the footnote marker outside of the hyperlink generated by \gls{gls}
and moves it after certain punctuation characters for neatness.
\filedef{sample-undef.tex}
\begin{terminal}
pdflatex sample-undef
makeglossaries sample-undef
pdflatex sample-undef
pdflatex sample-undef
\end{terminal}
Warn on undefined entries instead of
generating an error.
\filedef{sample-mixed-abbrv-styles.tex}
\begin{terminal}
pdflatex sample-mixed-abbrv-styles
makeglossaries sample-mixed-abbrv-styles
pdflatex sample-mixed-abbrv-styles
\end{terminal}
Different abbreviation styles for different entries.
\filedef{sample-initialisms.tex}
\begin{terminal}
pdflatex sample-initialisms
makeglossaries sample-initialisms
pdflatex sample-initialisms
\end{terminal}
Automatically insert dots into initialisms.
\filedef{sample-postdot.tex}
\begin{terminal}
pdflatex sample-postdot
makeglossaries sample-postdot
pdflatex sample-postdot
\end{terminal}
Another initialisms example.
\filedef{sample-postlink.tex}
\begin{terminal}
pdflatex sample-postlink
makeglossaries sample-postlink
pdflatex sample-postlink
\end{terminal}
Automatically inserting text after
the \idx{linktext} produced by commands like \gls{gls} (outside
of hyperlink, if present).
\filedef{sample-header.tex}
\begin{terminal}
pdflatex sample-header
makeglossaries sample-header
pdflatex sample-header
pdflatex sample-header
\end{terminal}
Using entries in section\slash chapter headings.
\filedef{sample-autoindex.tex}
\begin{terminal}
pdflatex sample-autoindex
makeglossaries sample-autoindex
pdflatex sample-autoindex
makeindex sample-autoindex
pdflatex sample-autoindex
\end{terminal}
Using the \catattr{dualindex} and \catattr{indexname} attributes to
automatically add glossary entries to the index (in addition to the
glossary \idx{locationlist}).
\filedef{sample-autoindex-hyp.tex}
\begin{terminal}
pdflatex sample-autoindex-hyp
makeglossaries sample-autoindex-hyp
pdflatex sample-autoindex-hyp
makeindex sample-autoindex-hyp
pdflatex sample-autoindex-hyp
\end{terminal}
As previous but uses \sty{hyperref}.
\filedef{sample-nested.tex}
\begin{terminal}
pdflatex sample-nested
makeglossaries sample-nested
pdflatex sample-nested
\end{terminal}
Using \gls{gls} within the value of the \gloskey{name} key.
\filedef{sample-entrycount.tex}
\begin{terminal}
pdflatex sample-entrycount
pdflatex sample-entrycount
makeglossaries sample-entrycount
pdflatex sample-entrycount
\end{terminal}
Enable entry-use counting (only index if used more than $n$ times,
see \sectionref{sec:entrycount}).
\filedef{sample-unitentrycount.tex}
\begin{terminal}
pdflatex sample-unitentrycount
pdflatex sample-unitentrycount
makeglossaries sample-unitentrycount
pdflatex sample-unitentrycount
\end{terminal}
Enable use of per-unit entry-use counting (\sectionref{sec:entrycount}).
\filedef{sample-onelink.tex}
\begin{terminal}
pdflatex sample-onelink
makeglossaries sample-onelink
pdflatex sample-onelink
\end{terminal}
Using the per-unit entry counting (\sectionref{sec:entrycount}) to
only have one hyperlink per entry per page.
\filedef{sample-linkcount.tex}
\begin{terminal}
pdflatex sample-linkcount
makeglossaries sample-linkcount
pdflatex sample-linkcount
\end{terminal}
Using link counting (\sectionref{sec:linkcount})
to only have one hyperlink per entry.
\filedef{sample-pages.tex}
\begin{terminal}
pdflatex sample-pages
makeglossaries sample-pages
pdflatex sample-pages
pdflatex sample-pages
\end{terminal}
Insert \qt{page} or \qt{pages} before the \idx{locationlist}.
\filedef{sample-altmodifier.tex}
\begin{terminal}
pdflatex sample-altmodifier
makeglossaries sample-altmodifier
pdflatex sample-altmodifier
pdflatex sample-altmodifier
\end{terminal}
Set the default options for commands like \gls{gls} and add an
alternative modifier.
\filedef{sample-mixedsort.tex}
\begin{terminal}
pdflatex sample-mixedsort
pdflatex sample-mixedsort
\end{terminal}
Uses the optional argument of \gls{makeglossaries} to allow a
mixture of \gls{printglossary} and \gls{printnoidxglossary}.
\filedef{sample-external.tex}
\begin{terminal}
pdflatex sample-external
makeglossaries sample-external
pdflatex sample-external
\end{terminal}
Uses the \catattr{targeturl} attribute to allow for entries that
should link to an external URL rather than to an internal glossary.
\filedef{sample-fmt.tex}
\begin{terminal}
pdflatex sample-fmt
makeglossaries sample-fmt
pdflatex sample-fmt
\end{terminal}
Provides text-block commands associated
with entries in order to use \gls{glsxtrfmt}.
\filedef{sample-alias.tex}
\begin{terminal}
pdflatex sample-alias
makeglossaries sample-alias
pdflatex sample-alias
\end{terminal}
Uses the \gloskey{alias} key (see \sectionref{sec:alias}).
\filedef{sample-alttree.tex}
\begin{terminal}
pdflatex sample-alttree
makeglossaries sample-alttree
pdflatex sample-alttree
\end{terminal}
Uses the \sty{glossaries-extra-stylemods} package with the
\glostyle{alttree} style (see \sectionref{sec:stylemods}).
\filedef{sample-alttree-sym.tex}
\begin{terminal}
pdflatex sample-alttree-sym
makeglossaries sample-alttree-sym
pdflatex sample-alttree-sym
\end{terminal}
Another \glostyle{alttree} example that measures the symbol widths.
\filedef{sample-alttree-marginpar.tex}
\begin{terminal}
pdflatex sample-alttree-marginpar
makeglossaries sample-alttree-marginpar
pdflatex sample-alttree-marginpar
\end{terminal}
Another \glostyle{alttree} example
that puts the \idx{locationlist} in the margin.
\filedef{sample-onthefly.tex}
\begin{terminal}
pdflatex sample-onthefly
makeglossaries sample-onthefly
pdflatex sample-onthefly
\end{terminal}
Using on-the-fly commands. Terms with accents must have the
\gloskey{name} key explicitly set.
\filedef{sample-onthefly-xetex.tex}
\begin{terminal}
xelatex sample-onthefly-xetex
makeglossaries sample-onthefly-xetex
xelatex sample-onthefly-xetex
\end{terminal}
Using on-the-fly commands with \XeLaTeX. Terms with UTF-8 characters
don't need to have the \gloskey{name} key explicitly set. Terms that
contain commands must have the \gloskey{name} key explicitly set
with the commands removed from the label.
\filedef{sample-onthefly-utf8.tex}
\begin{terminal}
pdflatex sample-onthefly-utf8
makeglossaries sample-onthefly-utf8
pdflatex sample-onthefly-utf8
\end{terminal}
Tries to emulate the previous
sample file for use with \LaTeX\ through the starred version
of \gls{GlsXtrEnableOnTheFly}. This is a bit iffy and may not
always work. Terms that contain commands must have the
\gloskey{name} key explicitly set with the commands removed from
the label.
\filedef{sample-accsupp.tex}
\begin{terminal}
pdflatex sample-accsupp
makeglossaries sample-accsupp
pdflatex sample-accsupp
\end{terminal}
Integrate \sty{glossaries-accsupp}.
\filedef{sample-prefix.tex}
\begin{terminal}
pdflatex sample-prefix
makeglossaries sample-prefix
pdflatex sample-prefix
\end{terminal}
Integrate \sty{glossaries-prefix}.
\filedef{sample-suppl-main.tex}
\begin{terminal}
pdflatex sample-suppl
pdflatex sample-suppl-main
makeglossaries sample-suppl-main
pdflatex sample-suppl-main
\end{terminal}
Uses \glsopt{thevalue} to reference a location in the supplementary
file \inlineglsdef{file.sample-suppl.tex}.
\filedef{sample-suppl-main-hyp.tex}
\begin{terminal}
pdflatex sample-suppl-hyp
makeglossaries sample-suppl-hyp
pdflatex sample-suppl-hyp
pdflatex sample-suppl-main-hyp
makeglossaries sample-suppl-main-hyp
pdflatex sample-suppl-main-hyp
\end{terminal}
A more complicated version to the
above that uses the \sty{hyperref} package to reference a location
in the supplementary file \inlineglsdef{file.sample-suppl-hyp.tex}.
\chapter{Multi-Lingual Support}
\label{sec:lang}
There's only one command provided by \sty{glossaries-extra}
that you're likely to want to change in your document and that's
\gls{abbreviationsname} if you use
the \opt{abbreviations} package option to automatically
create the glossary labelled \code{abbreviations}. If this
command doesn't already exist, it will be defined to
\qt{Abbreviations} if \sty{babel} hasn't been loaded, otherwise
it will be defined as \gls{acronymname} (provided by
\sty{glossaries}), which is language-sensitive.
You can redefine \gls{abbreviationsname} in the usual way. For example:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{abbreviationsname}}\marg{List of Abbreviations}
\end{codebox}
Or using \sty{babel} or \sty{polyglossia} captions hook:
\begin{codebox}
\cmd{appto}\cmd{captionsenglish}\marg{\comment{}
\cmd{renewcommand}*\marg{\gls{abbreviationsname}}\marg{List of Abbreviations}\comment{}
}
\end{codebox}
Alternatively you can use the \printglossopt{title}
key when you print the list of abbreviations. For example:
\begin{codebox}
\gls{printabbreviations}\oarg{\printglossoptvalm{title}{List of Abbreviations}}
\end{codebox}
or
\begin{codebox}
\gls{printabbreviations}\oarg{\printglossopt{type}{abbreviations},\printglossoptvalm{title}{List of Abbreviations}}
\end{codebox}
The other fixed text commands are the diagnostic messages, which
shouldn't appear in the final draft of your document.
The \sty{glossaries-extra} package has the facility to load
language modules (whose filename is in the form
\metafilefmt{glossariesxtr\dhyphen}{language}{.\ext+{ldf}}) if they exist,
but won't warn if they don't. If \sty{glossaries-extra-bib2gls} is
loaded via the \opt{record} package option then the check for
language resource files will additionally search for an associated
language script file given by
\metafilefmt{glossariesxtr-}{script}{.\ext{ldf}} where
\meta{script} is the four letter script identifier, such as
\code{Latn}, associated with the given dialect. There's no warning if the
associated file isn't found. The script file is loaded after the
dialect file.
If you want to write your own language module, you just need to
create a file called
\metafilefmt{glossariesxtr\dhyphen}{lang}{.\ext{ldf}}, where \meta{lang}
identifies the language or dialect (see the \sty{tracklang}
package). For example, \filefmt{glossariesxtr-french.ldf}.
The file should start with:
\cmddef{ProvidesGlossariesExtraLang}
The simplest code for this file is:
\begin{codebox}
\gls{ProvidesGlossariesExtraLang}\marg{french}\oarg{2015/12/09 v1.0}
\codepar
\cmd{newcommand}*\marg{\cmd{glossariesxtrcaptionsfrench}}\marg{\comment{}
\cmd{def}\gls{abbreviationsname}\marg{Abr\cmd{'}eviations}\comment{}
}
\cmd{glossariesxtrcaptionsfrench}
\codepar
\cmd{ifcsdef}\marg{captions\gls+{CurrentTrackedDialect}}
\marg{\comment{}
\cmd{csappto}\marg{captions\gls{CurrentTrackedDialect}}\comment{}
\marg{\comment{}
\cmd{glossariesxtrcaptionsfrench}
}\comment{}
}\comment{}
\marg{\comment{}
\cmd{ifcsdef}\marg{captions\gls+{CurrentTrackedLanguage}}
\marg{\comment{}
\cmd{csappto}\marg{captions\gls{CurrentTrackedLanguage}}\comment{}
\marg{\comment{}
\cmd{glossariesxtrcaptionsfrench}
}\comment{}
}\comment{}
\marg{}\comment{}
}
\end{codebox}
You can adapt this for other languages by replacing
all instances of the language identifier \code{french} and
the translated text \code{Abr\cmd{'}eviations} as appropriate.
You can also use the \ext+{ldf} file to provide rule
blocks for a particular language for use with \app{bib2gls}['s] custom
sort rule. See \sectionref{sec:bib2glssty} for further details.
\begin{information}
For further information on \sty{tracklang}, see the \sty{tracklang}
documentation or \dickimawhref{latex/tracklang/}{Localisation with
\filefmt{tracklang.tex}}.
\end{information}
This \ext{ldf} file then needs to be put somewhere on \TeX's
path so that it can be found by \sty{glossaries-extra}.
You might also want to consider uploading it to \ctanref{}{CTAN} so that
it can be useful to others. (Please don't send it to me. I already
have more packages than I am able to maintain.)
If you additionally want to provide translations for the diagnostic
messages used when a glossary is missing, you need to redefine
the following commands:
\cmddef{GlsXtrNoGlsWarningHead}
This produces the following text in English:
\begin{quote}
\GlsXtrNoGlsWarningHead{\meta{glossary-label}}{\meta{file}}
\end{quote}
\cmddef{GlsXtrNoGlsWarningEmptyStart}
This produces the following text in English:
\begin{quote}
\GlsXtrNoGlsWarningEmptyStart
\end{quote}
\cmddef{GlsXtrNoGlsWarningEmptyMain}
This produces the following text in English:
\begin{quote}
\GlsXtrNoGlsWarningEmptyMain
\end{quote}
\cmddef{GlsXtrNoGlsWarningEmptyNotMain}
This produces the following text in English:
\begin{quote}
\GlsXtrNoGlsWarningEmptyNotMain{\meta{glossary-label}}
\end{quote}
\cmddef{GlsXtrNoGlsWarningCheckFile}
This produces the following text in English:
\begin{quote}
\GlsXtrNoGlsWarningCheckFile{\meta{file}}
\end{quote}
\cmddef{GlsXtrNoGlsWarningMisMatch}
This produces the following text in English:
\begin{quote}
\GlsXtrNoGlsWarningMisMatch
\end{quote}
\cmddef{GlsXtrNoGlsWarningNoOut}
This produces the following text in English:
\begin{quote}
\GlsXtrNoGlsWarningNoOut{\meta{file}}
\end{quote}
\cmddef{GlsXtrNoGlsWarningTail}
This produces the following text in English:
\begin{quote}
\GlsXtrNoGlsWarningTail
\end{quote}
\cmddef{GlsXtrNoGlsWarningBuildInfo}
This is advice on how to generate the glossary files.
\cmddef{GlsXtrNoGlsWarningAutoMake}
This is the message produced when the \opt{automake} option
is used, but the document needs a rerun or the shell escape
setting doesn't permit the execution of the external application.
This command also generates a warning in the transcript file.
See the documented code (\filefmt{glossaries-extra-code.pdf})
for further details.
\part{Summaries and Index}
\backmatter
\printterms[title={Terms}]
\printcommonoptions[label=sec:gloskeys]{idx.gloskey}
\printcommonoptions{idx.glosfield}
\printcommonoptions{idx.glsopt}
\printcommonoptions{idx.mglsopt}
\printcommonoptions{idx.printglossopt}
\printcommonoptions{idx.abbrvstyle}
\printcommonoptions{idx.glossarystyle}
\printsummary
\printuserguideindex
\end{document}
|