summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/glossaries/glossariesbegin.tex
blob: 983766842e229316ed6fb2d979946ea0fcc2e158 (plain)
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
% arara: lualatex
% arara: bib2gls: { group: on }
% arara: lualatex
% arara: bib2gls: { group: on } if found ("log", "Glossary entry `sym.")
% arara: lualatex
% arara: lualatex if found ("log", "Rerun to")
\documentclass[titlepage=false,oneside,
 fontsize=12pt,captions=tableheading]{scrarticle}

\usepackage{pifont}
\usepackage[noatsymgroup]{nlctuserguide}

\renewcommand*{\thispackagename}{glossaries}

\glsxtrnewgls{opt.glostyle.}{\glostyle}
\glsxtrnewgls{opt.acrstyle.}{\acrstyle}
\glsxtrnewgls{opt.abbrstyle.}{\abbrstyle}

\defsemanticcmd{\glostylefmt}{\textsf}{}
\defsemanticcmd{\acrstylefmt}{\textsf}{}
\defsemanticcmd{\abbrstylefmt}{\textsf}{}

\newcommand{\atentry}[1]{\texorpdfstring{\code{@#1}}{@#1}}

\glsxtrnewgls{opt.printgloss.}{\printglossopt}
\newcommand{\printglossoptval}[2]{\optval{printgloss.#1}{#2}}
\newcommand{\printglossoptvalm}[2]{\optval{printgloss.#1}{\marg{#2}}}

\glsxtrnewgls{opt.gloskey.}{\gloskey}
\newcommand{\gloskeyval}[2]{\optval{gloskey.#1}{\marg{#2}}}

\newcommand*{\catfmt}{\csoptfmt}

\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}}}

\renewcommand{\optionlistprefix}{idx.opt.}
\renewcommand{\glsxtrtaggedlistsep}{~}
\newcommand{\idxoptiondef}[1]{\hypertarget{option\glsentrytext{idx.opt.#1}}{}\inlineidxdef{opt.#1}}

\renewcommand{\nlctuserguidecustomentryaliases}{%
   glossarystyle=index,
   acronymstyle=index,
   abbreviationstyle=index,
}

\newcommand{\comxr}{\comment{\glslink{pkg.glossaries-extra}{glossaries-extra.sty}}}
\newcommand{\comxronly}{\comment{\glslink{pkg.glossaries-extra}{glossaries-extra.sty} only}}
\newcommand{\comxrkey}{\comment{\glslink{pkg.glossaries-extra}{glossaries-extra.sty} key}}
\newcommand{\comxropt}[1]{\comment{requires \glslink{pkg.glossaries-extra}{glossaries-extra.sty} '\opt{#1}' option}}

\nlctuserguidegls
{
  \def\gprintglossopt#1#2{%
   \glsbibwriteentry{commandoption}{opt.printgloss.#1}{%
    \field{name}{\csoptfmt{#1}}\parent{idx.printglossopt}#2}}%
  \def\gglosty#1#2{\glsbibwriteentry{glossarystyle}{opt.glostyle.#1}%
    {\field{name}{\glostylefmt{#1}}\parent{idx.glossarystyle}#2}}%
  \def\gacrsty#1#2{\glsbibwriteentry{acronymstyle}{opt.acrstyle.#1}%
    {\field{name}{\acrstylefmt{#1}}\parent{idx.acrstyle}#2}}%
  \def\gabbrsty#1#2{\glsbibwriteentry{abbreviationstyle}{opt.abbrstyle.#1}%
    {\field{name}{\abbrstylefmt{#1}}\parent{idx.abbrstyle}#2}}%
  \def\ggloskey#1#2{%
   \glsbibwriteentry{commandoption}{opt.gloskey.#1}{%
    \field{name}{\csoptfmt{#1}}\parent{idx.gloskey}#2}}%
  \def\gglsopt#1#2{%
   \glsbibwriteentry{commandoption}{opt.glsopt.#1}{%
    \field{name}{\csoptfmt{#1}}\parent{gls}#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\gresourceopt#1#2{%
   \glsbibwriteentry{commandoption}{opt.resource.#1}{%
    \field{name}{\csoptfmt{#1}}\parent{GlsXtrLoadResources}#2}}%
  \gidx{category}{\field{plural}{categories}}
  \gidx{glossarystyle}{\name{glossary styles}\field{text}{glossary style}}
  \gidx{acrstyle}{\name{acronym styles}\field{text}{acronym style}
   \field{see}{setacronymstyle}}
  \gidx{abbrstyle}{\name{abbreviation styles}\field{text}{abbreviation style}
   \field{see}{setabbreviationstyle}}
  \gidx{printglossopt}{\name{print [unsrt|noidx] glossary options}%
    \field{text}{print glossary option}%
  }
  % \newglossary
  \gcmd{new\-glossary}
  {
    \providedby{\sty{glossaries}}
    \syntax{\oargm{log-ext}\margm{glossary-label}\margm{out-ext}\margm{in-ext}\margm{title}}
    \desc{defines a \idx{glossary} identified by \meta{glossary-label} (which can
    be referenced by the \gloskey{type} key when defining an entry)}
  }
  % \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}\marg{\meta{glossary-label}-glo}\margm{title}\oargm{counter}%
\end{compactcodebox}\glsxtrnopostpunc
}
  }
  % \GlsSetQuote
  \gcmd{Gls\-Set\-Quote}
  {
    \providedby{\sty{glossaries} v4.24+}
    \syntax{\margm{character}}
    \desc{set \app{makeindex}['s] quote character to \meta{character}}
  }
  % \glsdisablehyper
  \gcmd{gls\-disable\-hyper}
  {
    \providedby{\sty{glossaries}}%
    \desc{suppresses all \idx{glossary} related hyperlinks}
  }
  % \glsenablehyper
  \gcmd{gls\-enable\-hyper}
  {
    \providedby{\sty{glossaries}}%
    \desc{enables \idx{glossary} related hyperlinks. This is the
    default if \sty{hyperref} is loaded. Has no effect if
    \sty{hyperref} wasn't loaded}
  }
  % \setglossarystyle
  \gcmd{set\-glossary\-style}
  {
    \providedby{\sty{glossaries}}%
    \syntax{\margm{style name}}
    \desc{set the current \idx{glossarystyle} to \meta{style name}}
  }
  % \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}}
  }
  % \printglossaries
  \gcmd{print\-glossaries}
  {
    \providedby{\sty{glossaries}}%
    \desc{iterates over all glossaries and does
     \code{\gls{printglossary}\oarg{\printglossoptval{type}{\meta{type}}}}
     for each \idx{glossary}}
  }
  % \printnoidxglossary
  \gcmd{print\-noidx\-glossary}%
  {%
    \providedby{\sty{glossaries} v4.04+}
    \syntax{\oargm{options}}
    \desc{displays the \idx{glossary} by obtaining the \gls{indexing} information from
     the \ext+{aux} file and using \TeX\ to sort and collate. Must be used with
     \gls{makenoidxglossaries}. This method can be very slow and has limitations}
  }%
  % \printnoidxglossaries
  \gcmd{print\-noidx\-glossaries}%
  {%
    \providedby{\sty{glossaries} v4.04+}
    \desc{iterates over all glossaries and does
     \code{\gls{printnoidxglossary}\oarg{\printglossoptval{type}{\meta{type}}}}
     for each \idx{glossary}}
  }
  % \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}). The location lists and group headers
     will only be present if the associated fields have been set
     (typically by \app{bib2gls})}
  }%
  % \printunsrtglossaries
  \gcmd{print\-unsrt\-glossaries}%
  {%
    \providedby{\sty{glossaries-extra} v1.08+}
    \desc{iterates over all glossaries and does
     \code{\gls{printunsrtglossary}\oarg{\printglossoptval{type}{\meta{type}}}}
     for each \idx{glossary}}
  }
  % \glsdefaulttype
  \gcmd{gls\-default\-type}%
  {%
    \providedby{\sty{glossaries}}
    \initval{main}%
    \desc{expands to the label of the default \idx{glossary}}
  }%
  % \acronymname
  \gcmd{acronym\-name}%
  {% 
    \providedby{\sty{glossaries}}
    \initval{Acronyms}%
    \note{language-sensitive}
    \desc{expands to the title of the \code{acronym} \idx{glossary}}
  }%
  % \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 within
     \meta{filename} have the \gloskey{type} key set (including
     implicitly in commands like \gls{newacronym}), then this will
     override the type given in the optional argument}
  }
  % \makeglossaries
  \gcmd{make\-glossaries}
  {
    \providedby{\sty{glossaries}}
    \desc{opens the associated \idx{glossary} files that need to be
     processed by \app+{makeindex} or \app+{xindy}}
  }
  % \makenoidxglossaries
  \gcmd{make\-noidx\-glossaries}%
  {%
    \providedby{\sty{glossaries} v4.04+}
    \desc{sets up all glossaries so that they can be displayed
    with \gls{printnoidxglossary}}
  }
  % \GlsXtrLoadResources
  \gcmd{Gls\-Xtr\-Load\-Resources}%
  {%
    \providedby{\sty{glossaries-extra} v1.11+}
    \syntax{\oargm{options}}
    \desc{for use with \app{bib2gls}, this both sets up the resource options
     (which \app{bib2gls} can detect from the \ext{aux} file) and
     inputs the \ext{glstex} file created by \app{bib2gls}}
  }
  % \newglossaryentry
  \gcmd{new\-glossary\-entry}
  {
    \providedby{\sty{glossaries}}
    \syntax{\margm{label}\marg{\keyvallist}}
    \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}}
    \syntax{\margm{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}
  }
  % \newterm
  \gcmd{new\-term}%
  {%
    \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}
  }
  % \glsnamefont
  \gcmd{gls\-name\-font}
  {  
    \providedby{\sty{glossaries}}
    \syntax{\margm{text}}
    \desc{used within the predefined glossary styles to apply a font change to the
    \gloskey{name}}
  } 
  % \gls
  \gcmdsp{gls}
  {
    \providedby{\sty{glossaries}}
    \syntax{\oargm{options}\margm{label}\oargm{insert}}
    \desc{references the entry identified by \meta{label}. The text
    produced may vary depending on whether or not this is the \idx{firstuse}}
  }
  % \glspl
  \gcmdsp{glspl}
  {
    \providedby{\sty{glossaries}}
    \syntax{\oargm{options}\margm{label}\oargm{insert}}
    \desc{as \gls{gls} but uses the plural form}
  }
  % \Gls
  \gcmdsp{Gls}
  {
    \providedby{\sty{glossaries}}
    \syntax{\oargm{options}\margm{label}\oargm{insert}}
    \desc{as \gls{gls} but converts the first character of the
    \gls{linktext} to \idx{uppercase}\glsadd{idx.sentencecase} (for
    the start of a sentence) using \gls{makefirstuc}}
  }
  % \Glspl
  \gcmdsp{Glspl}
  {
    \providedby{\sty{glossaries}}
    \syntax{\oargm{options}\margm{label}\oargm{insert}}
    \desc{as \gls{Gls} but uses the plural form}
  }
  % \glssymbol
  \gcmdsp{gls\-symbol}{%
    \syntax{\oargm{options}\margm{label}\oargm{insert}}
    \desc{references the entry identified by \meta{label}. The text
    produced is obtained from the \gloskey{symbol} value.
    The \meta{insert} argument will be inserted at the end of the
    \gls{linktext}. This command does not alter or depend on the
    \idx{firstuseflag}}
  }
  % \glslink
  \gcmdsp{glslink}
  {
    \providedby{\sty{glossaries}}
    \syntax{\oargm{options}\margm{label}\margm{text}}
    \desc{references the entry identified by \meta{label} with the
     given \meta{text} as the \gls{linktext}. This command doesn't
     change the \idx{firstuseflag}}
  }
  % \glsadd
  \gcmd{glsadd}
  {
    \providedby{\sty{glossaries}}
    \syntax{\oargm{options}\margm{label}}
    \desc{indexes the entry identified by \meta{label} without
    producing any text. This ensures the entry appears in the
    \idx{glossary}}
  }
  % \glsfmttext
  \gcmd{gls\-fmt\-text}
  {
     \syntax{\margm{entry-label}}
     \desc{for use within captions or section titles to display the
      formatted \gloskey{text}}
  }
  % \glsfmtshort
  \gcmd{gls\-fmt\-short}
  {
     \syntax{\margm{entry-label}}
     \desc{for use within captions or section titles to display the
      formatted short form}
  }  
  % \glsentrytext
  \gcmd{gls\-entry\-text}
  {%
    \providedby{\sty{glossaries}}
    \syntax{\margm{entry-label}}
    \desc{simply expands to the value of the \gloskey{text} field.
     Does nothing if the entry hasn't been defined. May be used in
     expandable contexts provided that the \gloskey{text} field doesn't
     contain any fragile commands}
  }
  % \glsentryshort
  \gcmd{gls\-entry\-short}
  {%
    \providedby{\sty{glossaries}}
    \syntax{\margm{entry-label}}
    \desc{simply expands to the value of the \gloskey{short} field.
     Does nothing if the entry hasn't been defined. May be used in
     expandable contexts provided that the \gloskey{short} field doesn't
     contain any fragile commands}
  }
  % \glsentrylong
  \gcmd{gls\-entry\-long}
  {%  
    \providedby{\sty{glossaries}}
    \syntax{\margm{entry-label}}
    \desc{simply expands to the value of the \gloskey{long} field.
     Does nothing if the entry hasn't been defined. May be used in
     expandable contexts provided that the \gloskey{long} field doesn't
     contain any fragile commands}
  } 
  % \glsabbrvscfont
  \gcmd{gls\-abbrv\-sc\-font}
  {
    \providedby{\sty{glossaries-extra} v1.17+}
    \syntax{\margm{text}} 
    \desc{short form font used by the small-caps \qt{sc} abbreviation styles}   
  }  
  % \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}
  }   
  % \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}
  }
  % \glsxtrnewsymbol
  \gcmd{gls\-xtr\-new\-symbol}%
  {%
    \syntax{\oargm{key=value list}\margm{label}\margm{sym}}
    \providedby{\sty{glossaries-extra}}
    \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{label}. The optional argument is a comma-separated list of \idxpl{gloskey},
    which can be used to override the defaults}
  }
  % \newacronym
  \gcmd{new\-acronym}
  {
    \providedby{\sty{glossaries}}
    \syntax{\oargm{options}\margm{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}. With just the base \sty{glossaries} package, use
     \gls{setacronymstyle} to set the style. With
     \sty{glossaries-extra}, use
     \code{\gls{setabbreviationstyle}\oarg{\cat{acronym}}\margm{style}} to
     set the style that governs \gls{newacronym}}
  }
  % \setacronymstyle
  \gcmd{set\-acronym\-style}
  {
    \providedby{\sty{glossaries}}
    \syntax{\oargm{glossary-type}\margm{style-name}}
    \desc{sets the acronym style. Don't use with \sty{glossaries-extra}}
  }
  % \newabbreviation
  \gcmd{new\-abbreviation}
  {
    \providedby{\sty{glossaries-extra}}
    \syntax{\oargm{options}\margm{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}}
  }
  % \setabbreviationstyle
  \gcmd{set\-abbreviation\-style}
  {
    \providedby{\sty{glossaries-extra}}
    \syntax{\oargm{category}\margm{style-name}}
     \desc{sets the current \idx{abbrstyle} to \meta{style-name}
      for the category identified by \meta{category}. If the
      optional argument is omitted, \cat{abbreviation} is assumed}
  }
  % \acrlong
  \gcmdsp{acr\-long}
  {
    \providedby{\sty{glossaries}}
    \syntax{\oargm{options}\margm{label}\oargm{insert}}
    \desc{displays the long form of an acronym. Only for use with
     the base \sty{glossaries} package's acronym mechanism. With
    \sty{glossaries-extra}, use \gls{glsxtrlong} instead}
  }
  % \acrshort
  \gcmdsp{acr\-short}
  {
    \providedby{\sty{glossaries}}
    \syntax{\oargm{options}\margm{label}\oargm{insert}}
    \desc{displays the short form of an acronym. Only for use with
     the base \sty{glossaries} package's acronym mechanism. With
    \sty{glossaries-extra}, use \gls{glsxtrshort} instead}
  }
  % \glsxtrlong
  \gcmdsp{gls\-xtr\-long}
  {
    \providedby{\sty{glossaries-extra}}
    \syntax{\oargm{options}\margm{label}\oargm{insert}}
    \desc{displays the long form of an abbreviation}
  }
  % \glsxtrshort
  \gcmdsp{gls\-xtr\-short}
  {
    \providedby{\sty{glossaries-extra}}
    \syntax{\oargm{options}\margm{label}\oargm{insert}}
    \desc{displays the short form of an abbreviation}
  }
  % \ifglsused
  \gcmd{if\-gls\-used}
  {
    \providedby{\sty{glossaries}}
    \syntax{\margm{label}\margm{true text}\margm{false text}}
    \desc{does \meta{true} if the entry has been marked as
    \idxc{firstuseflag}{used} and does \meta{false} if the entry is
    marked as \idxc{firstuseflag}{unused}}
  }
  % \glsnoexpandfields
  \gcmd{gls\-no\-expand\-fields}
  {
    \providedby{\sty{glossaries}}
    \desc{don't expand field values when defining entries, except
     for those that explicitly have expansion enabled}
  }
  % \glsreset
  \gcmd{gls\-reset}
  {
    \providedby{\sty{glossaries}}
    \syntax{\margm{label}}
    \desc{globally resets the entry's \idx{firstuseflag}. That is, this marks the entry
     as \qt{not used}}
  }
  % \glsunset
  \gcmd{gls\-unset}
  {
    \providedby{\sty{glossaries}}
    \syntax{\margm{label}}
    \desc{globally unsets the entry's \idx{firstuseflag}. That is, this marks the entry
     as \qt{used}}
  }
  % \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}
  }
  % \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}
  }
  % \glslowercase
  \gcmd{gls\-lower\-case}
  {
    \providedby{\sty{glossaries} v4.50+}
    \syntax{\margm{text}}
    \desc{converts \meta{text} to \idx{lowercase} using the modern \LaTeX3
    case-changing command, which is expandable}
  }
  % \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} (\idx{sentencecase}). See the \sty{mfirstuc} 
    documentation for further details, either:
    \texdocref{mfirstuc} or visit \ctanpkg{mfirstuc}}
  }
  % \nopostdesc
  \gcmd{no\-post\-desc}
  {%
    \providedby{\sty{glossaries} v1.17+}
    \desc{when placed at the end of the \gloskey{description}, this
     switches off the post-description punctuation (if it has been
     enabled). Does nothing outside of the \idx{glossary}}
  }
  % \seename
  \gcmd{see\-name}
  {
    \providedby{\sty{glossaries}}
    \initval{see}
    \note{language-sensitive}
    \desc{used as a cross-reference tag}
  }
  % \seealsoname
  \gcmd{see\-also\-name}
  {
    \providedby{\sty{glossaries-extra}}
    \initval{see also}
    \note{language-sensitive}
    \desc{used as a cross-reference tag}
  }
  % \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}}
  }
  % glossentry description
  \ggloskey{description}%
  {%
    \syntax{\margm{text}}
    \desc{the entry's description, as displayed in the \idx{glossary}}
  }
  % glossentry type
  \ggloskey{type}%
  {%
    \syntax{\meta{\idx{glossary}-label}}
    \initval{\gls{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
    hierarchical level 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 see
  \ggloskey{see}%
  {%
    \syntax{\oargm{tag}\margm{label-list}}
    \desc{indexes each item in \meta{label-list} with the
     cross-reference in place of a normal location}
  }
  % glossentry seealso
  \ggloskey{see\-also}%
  {%
    \providedby{\sty{glossaries-extra}}
    \syntax{\margm{label-list}}
    \desc{like \gloskey{see} but always uses \gls{seealsoname} as the tag}
  }
  % glossentry text
  \ggloskey{text}%
  {%
    \syntax{\margm{text}}
    \desc{the entry's text, as displayed on \idx{subsequentuse} of
     \gls{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 \gls{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}%
  {%
    \initval{\gls{relax}}
    \syntax{\margm{symbol}}
    \desc{the entry's associated symbol (optional), which can be
     displayed with \gls{glssymbol} (if \gls{indexing} and hyperlinks are
     required) or with \gls{glsentrysymbol}}
  }
  % glossentry first
  \ggloskey{first}%
  {%
    \syntax{\margm{first}}
    \desc{the entry's text, as displayed on \idx{firstuse} of
     \gls{glslike} commands. 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 \gls{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 key that is set implicitly by \gls{newabbreviation}
     and \gls{newacronym} to the entry's short (abbreviated) form. It
     typically shouldn't be used explicitly with
     \gls{newglossaryentry}. However, if you are using \app{bib2gls}
     then this field should be used in the \ext{bib} file when
     defining abbreviations}
  }
  % glossentry long
  \ggloskey{long}%
  {%
    \syntax{\margm{long form}}
    \desc{a key that is set implicitly by \gls{newabbreviation}
     and \gls{newacronym} to the entry's long (unabbreviated) form. It
     typically shouldn't be used explicitly with
     \gls{newglossaryentry}. However, 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{plural short form}}
    \desc{the plural corresponding to the \gloskey{short} key if the
    default value is inappropriate}
  }
  % glossentry longplural
  \ggloskey{long\-plural}%
  {%
    \syntax{\margm{plural long form}}
    \desc{the plural corresponding to the \gloskey{long} key if the
    default value is inappropriate}
  }
  % glossentry user1
  \ggloskey{user1}%
  {%
    \syntax{\margm{text}}
    \desc{a generic field, which can be
     displayed with \gls{glsuseri} (if \gls{indexing} and hyperlinks are
     required) or with \gls{glsentryuseri}}
  }
  % package option style
  \gstyopt{style}%
  {%
    \syntax{\meta{style-name}}
  }
  % package option nogroupskip
  \gstyopt{no\-group\-skip}
  {
    \initval{false}
    \defval{true}
    \syntax{\meta{boolean}}
  }
  % package option nopostdot
  \gstyopt{no\-post\-dot}
  {
    \initval{false}
    \defval{true}
    \syntax{\meta{boolean}}
  }
  % package option postdot
  \gstyopt{post\-dot}{\providedby{\sty{glossaries-extra}}}
  % package option nonumberlist
  \gstyopt{no\-number\-list}{}
  % package option symbols
  \gstyopt{symbols}{}
  % package option numbers
  \gstyopt{numbers}{}
  % package option index
  \gstyopt{index}{}
  % package option abbreviations
  \gstyopt{abbreviations}{}
  % package option counter
  \gstyopt{counter}%
  {%
    \syntax{\meta{counter-name}}
  }
  % package option toc
  \gstyopt{toc}%
  {%
    \syntax{\meta{boolean}}
  }
  % package option section
  \gstyopt{section}
  {
    \syntax{\meta{value}}
  }
  % package option acronym
  \gstyopt{acronym}%
  {%
    \initval{false}
    \defval{true}
    \syntax{\meta{boolean}}
  }
  % package option acronyms
  \gstyopt{acronyms}{}
  % package option stylemods
  \gstyopt{style\-mods}{}
  % package option sort
  \gstyopt{sort}%
  {%
    \syntax{\meta{setting}}
  }
  % package option sanitizesort
  \gstyopt{sanitize\-sort}{}
  % package option record
  \gstyopt{record}%
  {%
    \initval{off}
    \defval{only}
    \syntax{\meta{setting}}
  }
  % package option automake
  \gstyopt{auto\-make}{}
  % package option xindy
  \gstyopt{xindy}{}
  % package option order
  \gstyopt{order}{}
  % package option nohypertypes
  \gstyopt{no\-hyper\-types}{\syntax{\margm{label list}}}
  % package option hyperfirst
  \gstyopt{hyper\-first}
  {
     \initval{true}
     \defval{true}
     \syntax{\meta{boolean}}
  }
  % category: abbreviation
  \gcat{abbreviation}{}
  % category: acronym
  \gcat{acronym}{}
  % glossary style: index
  \gglosty{index}{}
  % glossary style: indexgroup
  \gglosty{index\-group}{}
  % glossary style: mcolindex
  \gglosty{mcol\-index}{}
  % glossary style: altlist
  \gglosty{alt\-list}{}
  % glossary style: long4col
  \gglosty{long4col}{}
  % acronym style: long-short
  \gacrsty{long\dhyphen short}{}
  % acronym style: long-sc-short
  \gacrsty{long\dhyphen sc\dhyphen short}{}
  % acronym style: long-short-desc
  \gacrsty{long\dhyphen short\dhyphen desc}{}
  % acronym style: short-long
  \gacrsty{short\dhyphen long}{}
  % acronym style: short-long-desc
  \gacrsty{short\dhyphen long\dhyphen desc}{}
  % abbreviation style: long-short
  \gabbrsty{long\dhyphen short}{}
  % abbreviation style: long-short-sc
  \gabbrsty{long\dhyphen short\dhyphen sc}{}
  % abbreviation style: short-nolong
  \gabbrsty{short\dhyphen nolong}{}
  % abbreviation style: long-only-short-only
  \gabbrsty{long\dhyphen only\dhyphen short\dhyphen only}{}
  % resource option src
  \gresourceopt{src}{\syntax{bib list}}
  % resource option type
  \gresourceopt{type}{\syntax{glossary-label}}
  % resource option sort
  \gresourceopt{sort}{\syntax{method}}
  % resource option sort-field
  \gresourceopt{sort\dhyphen field}{\syntax{field name}}
  % resource option save-locations
  \gresourceopt{save\dhyphen locations}{\syntax{\meta{boolean}}}
  % printgloss style
  \gprintglossopt{style}{%
    \syntax{\meta{style-name}}
  }
  % printgloss type
  \gprintglossopt{type}{%
    \syntax{\meta{glossary-label}}
  }
  % printgloss nonumberlist
  \gprintglossopt{no\-number\-list}{}
  % printgloss toctitle
  \gprintglossopt{toc\-title}{}
  % printgloss sort
  \gprintglossopt{sort}{}
  % general commands and environments
  \gcmd{textsc}{}% \textsc
  \gcmd{item}{}% \item
  \gcmd{tex\-or\-pdf\-string}{}% \texorpdfstring
  \genv{description}{}
  % applications:
  \gapp{makeindex}{}
  \gapp{xindy}{}
  \gapp{makeglossaries}{}
  \gapp{makeglossaries\dhyphen lite}{}% makeglossaries-lite
  \gapp{bib2gls}{}
  \gapp{arara}{}
  % --group
  \glongswitch{group}{\inapp{bib2gls}}
  % -g
  \gshortswitch{g}{\inapp{bib2gls}\field{alias}{switch.group}}
  % packages
  \gpkg{glossaries}{\common}% glossaries.sty
  \gpkg{glossaries\dhyphen extra}{\common}% glossaries-extra.sty
  \gpkg{glossary\dhyphen mcols}{}% glossary-mcols.sty
  \gpkg{mfirst\-uc}{}% mfirstuc.sty
  \gpkg{hyper\-ref}{}% hyperref.sty
  \gpkg{babel}{}% babel.sty
  \gpkg{poly\-glossia}{}% polyglossia.sty
  \gpkg{input\-enc}{}% inputenc.sty
  \gpkg{font\-enc}{}% fontenc.sty
  % files
  \gfilemeta{glossaries\dhyphen}{language}{}{}% glossaries-<language>
  \gfile{glossaries\dhyphen french}{}% glossaries-french
  \gfile{glossaries\dhyphen german}{}% glossaries-german
  \gext{log}{}
  \gext{tex}{}
  \gext{bib}{}
  \gext{glo}{}
  \gext{gls}{}
  \gext{glg}{}
  \gext{ist}{}
  \gext{xdy}{}
  \gext{aux}{}
  \gext{glstex}{}
  \gext{alg}{}
  \gext{acr}{}
  \gext{acn}{}
  % terms
  \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}}
  }
  \gterm{indexing}{%
    \name{indexing (or recording)}
    \field{text}{indexing}
    \desc{the process of saving the location (for example, the page number) and any
      associated information that is required in the \idx{glossary}.
      The data may be sorted and collated by an indexing application
      as part of the document build}
  }
  \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 \styfmt{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}
  }
  \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 \gls{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)}
  }
  \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)}
  }
  \gterm{firstusetext}{\name{first use text}%
    \common
    \desc{the \gls{linktext} that is displayed on \idx{firstuse} of
    the \gls{glslike} commands}
  }
  \gterm{subsequentuse}{\name{subsequent use}
    \common
    \desc{using an entry that unsets the \idx{firstuseflag} when it
    has already been unset}
  }
  \gterm{glslike}{\common\name{{}\csfmt{gls}-like}
    \desc{commands like \gls{gls} 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}}
  }
  \gterm{linktext}{\name{link text}%
    \desc{the text produced by commands like \gls{gls} that have the 
    potential to be a hyperlink}
  }
  \gterm{semanticcommand}{\name{semantic command}
    \desc{essentially, a semantic command is one that's associated with a
    particular document element, idea or topic that hides the font
    and other stylistic formatting inside its definition. For
    example, Latin taxonomy is usually displayed in italic.
    Explicitly using font commands, for example
    \code{\cmd{textit}\marg{Clostridium}}, is syntactic markup.
    Whereas defining a command called, say, \csfmt{bacteria} that
    displays its argument in italics is a semantic command. The
    actual styling is hidden and the command relates specifically to
    a particular concept.
\begin{codebox}
Syntactic: \cmd{textit}\marg{Clostridium}\codepar
\cmd{newrobustcmd}*\marg{\cmd{bacteria}}[1]\marg{\cmd{emph}\marg{\#1}}\%\newline
Semantic: \cmd{bacteria}\marg{Clostridium}
\end{codebox}
    The end result is the same:
\begin{resultbox}
Syntactic: \textit{Clostridium}\glspar
Semantic: \emph{Clostridium}
\end{resultbox}
    The advantage with semantic commands is that it's much easier to
    change the style, simply by adjusting the command definition.
    Note that I've used \csfmt{newrobustcmd} to make the semantic
    command robust as the style commands can cause a problem if they
    expand too soon}
  }
  % index only
  \gidx{uppercase}{\field{seealso}{idx.sentencecase}}
  \gidx{lowercase}{}
  \gidx{sentencecase}{\name{sentence case}}
  \gidx{allcaps}{\name{all caps}}
  % punctuation
  \gpunc{sym.nbsp}{\name{\code{\textasciitilde} (non-breaking space)}
    \field{see}{idx.nbsp}
  }
  \gidx{nbsp}{\name{non-breaking space (\code{\textasciitilde})}
    \field{symbol}{\code{\textasciitilde}}
  }
  \gpunc{sym.colon}{\name{\code{:} (colon)}}
  \gpunc{unknowntag}{\name{\code{??} (unknown entry marker)}
    \field{text}{\code{??}}}
  % indexing options
  \gidx{opt.noidx}{\name{Option 1 (\qt{noidx})}\field{text}{1}}
  \gidx{opt.mkidx}{\name{Option 2 (\appfmt{makeindex})}\field{text}{2}}
  \gidx{opt.xdy}{\name{Option 3 (\appfmt{xindy})}\field{text}{3}}
  \gidx{opt.b2g}{\name{Option 4 (\appfmt{bib2gls})}\field{text}{4}}
}

\title{The glossaries package v4.50: 
a guide for beginners}
\author{Nicola L.C. Talbot\\\href{https://www.dickimaw-books.com/}{\nolinkurl{dickimaw-books.com}}}
\date{2022-10-14}

\begin{document}
\maketitle

\begin{abstract}
The \sty{glossaries} package is very flexible, but this means
that it has a~lot of options, and since a user guide is supposed to
provide a complete list of all the high-level user commands, the main
user manual is quite big. This can be rather
daunting for beginners, so this document is a brief introduction
just to help get you started. If you find yourself saying, \qt{Yeah,
but how can I do\ldots?} then it's time to move on to the 
\docref{main user manual}{glossaries-user}.

I've made some statements in this document that don't actually tell
you the full truth, but it would clutter the document and cause
confusion if I keep writing \qt{except when \ldots} or \qt{but you can
also do this, that or the other} or \qt{you can do it this way but
you can also do it that way, but that way may cause complications
under certain circumstances}.
\end{abstract}

\tableofcontents

\section{Getting Started}
\label{sec:start}

As with all packages, you need to load \sty+{glossaries} with
\csfmt{usepackage}, but there are certain packages that must be loaded
before \styfmt{glossaries}, \emph{if} they are required: \sty{hyperref},
\sty{babel}, \sty{polyglossia}, \sty{inputenc} and \sty{fontenc}.
(You don't have to load these packages, but if you want them, you
must load them before \sty{glossaries}.)

\begin{important}
If you require multilingual support you must also install 
the relevant language module. Each language module is called
\file{glossaries-language}, where \meta{language} is the
root language name. For example, \file{glossaries-french}
or \file{glossaries-german}. If a language module is required,
the \sty{glossaries} package will automatically try to load it
and will give a warning if the module isn't found.
\end{important}

Once you have loaded \sty{glossaries}, you need to define
your terms in the preamble and then you can use them throughout the
document. Here's a simple example:
\begin{codebox*}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\marg{glossaries}
\comment{define a term:}
\gls{newglossaryentry}\marg{ex}\marg{\gloskeyval{name}{sample},\gloskeyval{description}{an example}}
\cbeg{document}
Here's my \gls{gls}\marg{ex} term.
\cend{document}
\end{codebox*}
This produces:
\begin{resultbox}
Here's my sample term.
\end{resultbox}
Another example:
\begin{codebox*}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\marg{glossaries}
\gls{setacronymstyle}\marg{\acrstyle{long-short}}
\gls{newacronym}\marg{svm}\marg{SVM}\marg{support vector machine}
\cbeg{document}
First use: \gls{gls}\marg{svm}. Second use: \gls{gls}\marg{svm}.
\cend{document}
\end{codebox*}
This produces:
\begin{resultbox}
First use: support vector machine (SVM). Second use: SVM.
\end{resultbox}
In this case, the text (the \qt{\gls{linktext}}) produced by 
\code{\gls{gls}\marg{svm}}
changed after the \idx{firstuse}. The \idx{firstuse} produced the
long form followed by the short form in parentheses because I set
the acronym style to \acrstyle{long-short}. The \idx{subsequentuse}
just showed the short form.

I suggest you try the above two examples to make sure you have the
package correctly installed.  If you get an \qt{undefined control
sequence} error, check that the version number at the top of this
document matches the version you have installed. (Open the
\ext+{log} file and search for the line that starts with
\qt{Package: glossaries} followed by a date and version.) 

\begin{important}
Be careful of fragile commands. If a command causes a problem when
used in one of the \gls{newglossaryentry} fields, consider adding
\gls{glsnoexpandfields} before you start defining your entries.
Where possible use robust \idxpl{semanticcommand}.
\end{important}

Abbreviations are slightly different if you use the extension package
\sty+{glossaries-extra} (which needs to be installed separately):
\begin{codebox*}
\cmd{documentclass}\marg{article}
\comment{glossaries.sty is automatically loaded by glossaries-extra.sty}
\cmd{usepackage}\marg{glossaries-extra}
\comment{commands provided by \sty{glossaries-extra}:}
\gls{setabbreviationstyle}\marg{\abbrstyle{long-short}}
\gls{newabbreviation}\marg{svm}\marg{SVM}\marg{support vector machine}
\cbeg{document}
First use: \gls{gls}\marg{svm}. Second use: \gls{gls}\marg{svm}.
\cend{document}
\end{codebox*}
Since \abbrstyle{long-short} happens to be the default for
\gls{newabbreviation} you may omit the \gls{setabbreviationstyle} 
line in this example.

If you still want to use \gls{newacronym} (rather than
\gls{newabbreviation}) then you need the optional
argument of \gls{setabbreviationstyle}:
\begin{codebox*}
\cmd{documentclass}\marg{article}
\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}. Second use: \gls{gls}\marg{svm}.
\cend{document}
\end{codebox*}
In this example, if you omit the \gls{setabbreviationstyle} line you
will notice a difference because the \abbrstyle{short-nolong} style (not
the \abbrstyle{long-short} style) is the default with \gls{newacronym}.
With the \abbrstyle{short-nolong} style the first use simply shows just
the short form.

\begin{important}
You can't use \gls{setacronymstyle} with \sty{glossaries-extra}.
\end{important}

If you like, you can put all your definitions in another file (for
example, \filefmt{defns.tex}) and load that file in the preamble using
\gls{loadglsentries} with the filename as the argument. For example:
\begin{codebox}
\gls{loadglsentries}\marg{defns}
\end{codebox}
If you find you have a really large number of definitions that are
hard to manage in a \ext+{tex} file, you might want to have a
look at \app{bib2gls} (installed separately) which requires 
a \ext+{bib} format instead that can be managed by an application
such as JabRef.

Don't try inserting formatting commands into the definitions as they
can interfere with the underlying mechanism. Instead, the
formatting should be done by the style. For example, suppose I~want
to replace \code{SVM} with \code{\gls{textsc}\marg{svm}}, then
I~need to select a style that uses \gls{textsc}, like this (for the
base \sty{glossaries} style):
\begin{codebox*}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\marg{glossaries}
\gls{setacronymstyle}\marg{\acrstyle{long-sc-short}}
\gls{newacronym}\marg{svm}\marg{svm}\marg{support vector machine}
\cbeg{document}
First use: \gls{gls}\marg{svm}. Second use: \gls{gls}\marg{svm}.
\cend{document}
\end{codebox*}
The abbreviation styles have a different naming scheme with
\sty{glossaries-extra}:
\begin{codebox*}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\marg{glossaries-extra}
\gls{setabbreviationstyle}\marg{\abbrstyle{long-short-sc}}\comxr
\gls{newabbreviation}\marg{svm}\marg{svm}\marg{support vector machine}
\cbeg{document}
First use: \gls{gls}\marg{svm}. Second use: \gls{gls}\marg{svm}.
\cend{document}
\end{codebox*}
With \sty{glossaries-extra} you can have multiple abbreviation
styles for different categories. Many of these styles have their
own associated formatting commands that can be redefined 
for minor adjustments. For example:
\begin{codebox*}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\marg{glossaries-extra}
\gls{setabbreviationstyle}\oarg{statistical}\marg{\abbrstyle{long-short-sc}}
\gls{setabbreviationstyle}\oarg{bacteria}\marg{\abbrstyle{long-only-short-only}}
\comment{Formatting commands used by '\abbrstyle{long-only-short-only}' style:}
\cmd{renewcommand}*\marg{\gls{glsabbrvonlyfont}}[1]\marg{\cmd{emph}\marg{\#1}}
\cmd{renewcommand}*\marg{\gls{glslongonlyfont}}[1]\marg{\cmd{emph}\marg{\#1}}
\codepar
\comment{Formatting command used by '\abbrstyle{long-short-sc}' style:}
\comment{(the following converts the abbreviation to \idx{lowercase})}
\cmd{renewcommand}*\marg{\gls{glsabbrvscfont}}[1]\marg{\gls{textsc}\marg{\gls{glslowercase}\marg{\#1}}}
\codepar
\gls{newabbreviation}
 \oarg{
   \gloskeyval{category}{statistical}\comxrkey
 }
 \marg{svm}\marg{SVM}\marg{support vector machine}
\codepar
\gls{newabbreviation}
 \oarg{
   \gloskeyval{category}{bacteria}\comxrkey
 }
 \marg{cbot}\marg{C.\glssymbol{idx.nbsp}botulinum}\marg{Clostridium botulinum}
\codepar
\cbeg{document}
First use: \gls{gls}\marg{svm}, \gls{gls}\marg{cbot}.
\codepar
Next use: \gls{gls}\marg{svm}, \gls{gls}\marg{cbot}.
\cend{document}
\end{codebox*}
This produces:
\begin{resultbox}
First use: support vector machine (\textsc{svm}), \emph{Clostridium
botulinum}.

Next use: \textsc{svm}, \emph{C.~botulinum}.
\end{resultbox}

As you can hopefully see from the above examples, there are two main ways of
defining a term: as a general entry (\gls{newglossaryentry}) or as an
abbreviation (\gls{newacronym} or, with \sty{glossaries-extra},
\gls{newabbreviation}).

Regardless of the method of defining a term, the term is always 
given a label. In the first example, the label was
\code{ex} and in the other examples the label was \code{svm}
(and \code{cbot} in the last example). The
label is used to uniquely identify the term (like the standard
\csfmt{label}\slash\csfmt{ref} or \csfmt{cite} mechanism). The label may be
the same as the text produced with \gls{gls} (provided it doesn't
contain any formatting commands) or may be completely different.

The labels are identified in bold in the following:
\begin{codebox}
\gls{newglossaryentry}\marg{\strong{elite}}\marg{\gloskeyval{name}{\'elite},
 \gloskeyval{description}{select group}}
\gls{newglossaryentry}\marg{\strong{set}}\marg{\gloskeyval{name}{set},
 \gloskeyval{description}{collection of distinct elements}}
\gls{newglossaryentry}\marg{\strong{sym.set}}\marg{
 \gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{mathcal}\marg{S}}},
 \gloskeyval{description}{a set}}
\gls{newacronym}\marg{\strong{tool.cnc}}\marg{CNC}\marg{computer numerical control}
\gls{newacronym}\marg{\strong{police.cnc}}\marg{CNC}\marg{civil nuclear constabulary}
\gls{newacronym}\marg{\strong{miltary.cnc}}\marg{CNC}\marg{commander in chief}
\end{codebox}

With modern \TeX\ installations you may now be able to use UTF-8
characters in the label, but beware of active characters. For
example, \sty{babel} makes some punctuation characters, such as 
\idx{sym.colon}, active. This means that the character behaves like a
command, which allows extra spacing to be inserted before or after
the punctuation mark or provides a shortcut to apply an accent to a
following character.

For example, the following works:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\marg{glossaries}
\gls{newglossaryentry}\marg{sym:set}\marg{\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{mathcal}\marg{S}}},
 \gloskeyval{description}{a set}}
\cbeg{document}
\gls{gls}\marg{sym:set}
\cend{document}
\end{codebox}
However, if \sty{babel} is loaded with \optfmt{french} then the
\idx{sym.colon} character becomes active.
\begin{badcodebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}[T1]\marg{fontenc}
\cmd{usepackage}[french]\marg{babel}
\cmd{usepackage}\marg{glossaries}
\codepar
\comment{the colon : is a normal character here}
\gls{newglossaryentry}\marg{sym:set}\marg{\gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{mathcal}\marg{S}}},
 \gloskeyval{description}{a set}}
\codepar
\cbeg{document}
\comment{the colon : is now an active character}
\gls{gls}\marg{sym:set}
\cend{document}
\end{badcodebox}
You may find that the above example seems to work, but a problem
will occur if \sty{hyperref} and a \idx{glossary} are added to the
document as the active character will interfere with the hyperlink
target name.

\begin{important}
Don't use \gls{gls} in chapter or section headings as it can have
some unpleasant side-effects. Instead use \gls{glsentrytext} for
regular entries and either \gls{glsentryshort} or \gls{glsentrylong}
for acronyms. Alternatively use
\sty{glossaries-extra} which provides special commands for use in
section headings and captions, such as \gls{glsfmttext} and \gls{glsfmtshort}.
\end{important}

The above examples are reasonably straightforward. The difficulty
comes if you want to display a \emph{sorted} list of all the entries you
have used in the document. The \sty{glossaries-extra} package
provides an easy way of listing all the defined entries:
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}[\optval{sort}{none}]\marg{glossaries-extra}
\codepar
\gls{newglossaryentry}\marg{potato}\marg{\gloskeyval{name}{potato},\gloskeyval{plural}{potatoes},
 \gloskeyval{description}{starchy tuber}}
\codepar
\gls{newglossaryentry}\marg{cabbage}\marg{\gloskeyval{name}{cabbage},
 \gloskeyval{description}{vegetable with thick green or purple leaves}}
\codepar 
\gls{newglossaryentry}\marg{turnip}\marg{\gloskeyval{name}{turnip},
  \gloskeyval{description}{round pale root vegetable}}
\codepar
\gls{newglossaryentry}\marg{carrot}\marg{\gloskeyval{name}{carrot},
  \gloskeyval{description}{orange root}}
\codepar
\cbeg{document}
Chop the \gls{gls}\marg{cabbage}, \gls{glspl}\marg{potato} and \gls{glspl}\marg{carrot}.
\codepar
\gls+{printunsrtglossaries} \comment{list all entries}
\cend{document}
\end{codebox}
However this method doesn't sort the entries (they're listed in
order of definition) and it will display all the defined entries,
regardless of whether or not you've used them all in the document,
so \qt{turnip} appears in the glossary even though there's
no \code{\gls{gls}\marg{turnip}} (or similar) in the document.

The \optval{sort}{none} option isn't essential in this case (there's
no other sort option available for this document), but it prevents
the automatic construction of the sort value and so slightly
improves the document build time.

Note that this example document uses the same command
(\gls{printunsrtglossaries}) that's used with \app{bib2gls} (\option{b2g})
but with \app{bib2gls} you instead need to use the 
\opt{record} package option and one or more instances of
\gls{GlsXtrLoadResources} in the preamble (see below).

Most users prefer to have an automatically sorted list that only
contains entries that have been used in the document, optionally
with a page list (\gls{indexing}).
The \sty{glossaries} package provides
three options: use \TeX\ to perform the sorting (\option{noidx}); use
\app{makeindex} to perform the sorting (\option{mkidx}); use \app{xindy} to
perform the sorting (\option{xdy}). The extension package \sty{glossaries-extra}
provides a fourth method: use \app{bib2gls} (\option{b2g}).

The first option (using \TeX) is the simplest method, as it doesn't
require an external tool, but it's very inefficient and the sorting
is done according to lower case character code (which matches basic Latin
alphabets, such as English, but not extended Latin alphabets, such
as Icelandic) or non-Latin alphabets. To use this method, add
\gls{makenoidxglossaries} to the preamble and put
\gls{printnoidxglossaries} at the place where you want your glossary.
For example:
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}\marg{glossaries}
\codepar
\gls{makenoidxglossaries} \comment{use TeX to sort}
\codepar
\gls{newglossaryentry}\marg{potato}\marg{\gloskeyval{name}{potato},\gloskeyval{plural}{potatoes},
 \gloskeyval{description}{starchy tuber}}
\codepar
\gls{newglossaryentry}\marg{cabbage}\marg{\gloskeyval{name}{cabbage},
 \gloskeyval{description}{vegetable with thick green or purple leaves}}
\codepar
\gls{newglossaryentry}\marg{turnip}\marg{\gloskeyval{name}{turnip},
 \gloskeyval{description}{round pale root vegetable}}
\codepar
\gls{newglossaryentry}\marg{carrot}\marg{\gloskeyval{name}{carrot},
 \gloskeyval{description}{orange root}}
\codepar
\cbeg{document}
Chop the \gls{gls}\marg{cabbage}, \gls{glspl}\marg{potato} and \gls{glspl}\marg{carrot}.
\codepar
\gls{printnoidxglossaries}
\cend{document}
\end{codebox}

\begin{important}
The \gls{makenoidxglossaries} method is very slow, uses an ASCII
comparator and often breaks if there are commands in the
\code{name} key. See
\dickimawhrefnofn{gallery/glossaries-performance.shtml}{Glossaries
Performance} for a comparison.
\end{important}

Try this out and run \LaTeX\ (or pdf\LaTeX) \emph{twice}. The first
run won't show the \idx{glossary}. It will only appear on the second run.
This doesn't include \qt{turnip} in the \idx{glossary} because that term
hasn't been used (with commands like \code{\gls{gls}\marg{turnip}}) in the document.

The glossary has a vertical gap between the \qt{carrot} term and the
\qt{potato} term. This is because the entries in the glossaries are
grouped according to their first letter. If you don't want this gap,
just add \opt{nogroupskip} to the package options:
\begin{codebox}
\cmd{usepackage}[\opt{nogroupskip}]\marg{glossaries}
\end{codebox}
or you may want to try out a style that shows the group headings:
\begin{codebox*}
\cmd{usepackage}[\optval{style}{\glostyle{indexgroup}}]\marg{glossaries}
\end{codebox*}
If you try out this example you may also notice that the description
is followed by a full stop (period) and a number. The number is the
location in the document where the entry was used (page~1 in this
case), so you can lookup the term in the \idx{glossary} and be directed to
the relevant pages. It may be that you don't want this
back-reference, in which case you can suppress it using the
\opt{nonumberlist} package option:
\begin{codebox}
\cmd{usepackage}[\opt{nonumberlist}]\marg{glossaries}
\end{codebox}
If you don't like the terminating full stop, you can suppress that
with the \opt{nopostdot} package option:
\begin{codebox}
\cmd{usepackage}[\opt{nopostdot}]\marg{glossaries}
\end{codebox}

If you try out the earlier example with \sty{glossaries-extra}
and \gls{printunsrtglossaries} you may notice that the terminating full stop is missing
and there are no number lists. You can add the full stop back with
\begin{codebox*}
\cmd{usepackage}[\optval{nopostdot}{false}]\marg{glossaries-extra}
\end{codebox*}
or
\begin{codebox*}
\cmd{usepackage}[\opt{postdot}]\marg{glossaries-extra}
\end{codebox*}
If you want the number lists then you need to use an indexing option.

You may have noticed that I've used another command in the above examples:
\glsadd{glslike}\gls{glspl}. This displays the plural form. By default, this is just
the singular form with the letter \qt{s} appended, but in the case of
\qt{potato} I had to specify the correct plural using the
\gloskey{plural} key.

As I mentioned earlier, using \TeX\ to sort the entries is the
simplest but least efficient method. If you have a large \idx{glossary} or
if your terms contain non-Latin or extended Latin characters, then
you will have a much faster build time if you use \app{makeindex}
(\option{mkidx}) or \app{xindy} (\option{xdy}) or \app{bib2gls} (\option{b2g}). If
you are using extended Latin or non-Latin characters, then
\app{xindy} or \app{bib2gls} are the recommended methods.
These methods are described in more detail in
\sectionref{sec:printglossaries}.

The rest of this document briefly describes the main commands
provided by the \sty{glossaries} package. (Most of these are also
available with \sty{glossaries-extra} but may behave slightly
differently.)

\section{Defining Terms}
\label{sec:defterm}

When you use the \sty{glossaries} package, you need to define
glossary entries before you can reference them. This is best 
done in the document preamble, as shown in the earlier examples, or
in a separate file that's input in the preamble.

These entries could be a~word, phrase, abbreviation or symbol.
They're usually accompanied by a~description, which could be a short
sentence or an in-depth explanation that spans multiple paragraphs.
The simplest method of defining an entry is to use:
\cmddef{newglossaryentry}
The two most important keys are \gloskey{name} and
\gloskey{description}:
\begin{compactcodebox}
\gls{newglossaryentry}\margm{label}
\marg{
  \gloskeyval{name}{\meta{name}},
  \gloskeyval{description}{\meta{description}},
  \meta{other options}
}
\end{compactcodebox}
where \meta{label} is a unique label that identifies this entry.
(Don't include the angle brackets \meta{ }. They just indicate the parts of
the code that you need to change when you use this command in your document.) 
The \meta{name} is the word, phrase or symbol you are defining,
and \meta{description} is the description to be displayed in the
glossary.

This command is a \qt{short} command, which means that
\meta{description} can't contain a~paragraph break. If you have
a~long description, you can instead use:
\cmddef{longnewglossaryentry}
In this case the \gloskey{name} key is in the second argument but the
description is supplied in the third argument instead of via a key.
\begin{compactcodebox}
\gls{longnewglossaryentry}\margm{label}
\marg{
  \gloskeyval{name}{\meta{name}},
  \meta{other options}
}
\margm{description}
\end{compactcodebox}

Examples:
\begin{enumerate}
\item Define the term \qt{set} with the label \code{set}:
\begin{codebox}
\gls{newglossaryentry}\marg{set}
\marg{
  \gloskeyval{name}{set},
  \gloskeyval{description}{a collection of objects}
}
\end{codebox}

\item Define the symbol $\emptyset$ with the label
\code{emptyset}:
\begin{codebox}
\gls{newglossaryentry}\marg{emptyset}
\marg{
  \gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{emptyset}}},
  \gloskeyval{description}{the empty set}
}
\end{codebox}
(This will also need a \gloskey{sort} key if you use \optionsor{noidx,xdy}, see
below.)

\item Define the phrase \qt{Fish Age} with the label
\code{fishage}:
\begin{codebox}
\gls{longnewglossaryentry}\marg{fishage}
\marg{\gloskeyval{name}{Fish Age}}
\marg{\%
  A common name for the Devonian geologic period 
  spanning from the end of the Silurian Period to
  the beginning of the Carboniferous Period.
\codepar
  This age was known for its remarkable variety of 
  fish species.
}
\end{codebox}
(The percent character discards the end of line character that would
otherwise cause an unwanted space to appear at the start of the
description.)

\item If you are using UTF-8 characters with the \sty{inputenc}
package, make sure you have \sty{mfirstuc} v2.08+ installed:
\begin{codebox}
\comment{\sty{mfirstuc} v2.08+}
\gls{newglossaryentry}\marg{elite}
\marg{
  \gloskeyval{name}{\'elite},
  \gloskeyval{description}{select group or class}
}
\end{codebox}
If you have an older version of \sty{mfirstuc} then any initial
character that is an extended Latin or non-Latin character must be
grouped in order to work with sentence-casing commands, such as
\gls{Gls}:
\begin{codebox}
\comment{\sty{mfirstuc} v2.07 or older}
\gls{newglossaryentry}\marg{elite}
\marg{
  \gloskeyval{name}{\marg{\'e}lite},
  \gloskeyval{description}{select group or class}
}
\end{codebox}
Or
\begin{codebox}
\comment{\sty{mfirstuc} v2.07 or older}
\gls{newglossaryentry}\marg{elite}
\marg{
  \gloskeyval{name}{\marg{\cmd{'}e}lite},
  \gloskeyval{description}{select group or class}
}
\end{codebox}
\end{enumerate}

If you use \app{bib2gls} with \sty{glossaries-extra} then the
terms must be defined in a \ext+{bib} file. For example:
\begin{codebox}
\comment{Encoding: UTF-8}
\codepar
\atentry{entry}\marg{set,
  \gloskeyval{name}{set},
  \gloskeyval{description}{a collection of objects}
}
\codepar
\atentry{entry}\marg{emptyset,
  \gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{emptyset}}},
  \gloskeyval{description}{the empty set}
}
\codepar
\atentry{entry}\marg{fishage,
  \gloskeyval{name}{Fish Age},
  \gloskeyval{description}{A common name for the Devonian geologic period 
  spanning from the end of the Silurian Period to
  the beginning of the Carboniferous Period.
\codepar
  This age was known for its remarkable variety of 
  fish species.}
}
\codepar
\atentry{entry}\marg{elite,
  \gloskeyval{name}{\'elite},
  \gloskeyval{description}{select group or class}
}
\end{codebox}
(The \ext+{bib} format doesn't allow spaces in labels so you can't
have \code{fish age} as the label, but you can have 
\code{fish-age}.)
This method requires \sty{glossaries-extra}['s] \opt{record}
package option:
\begin{codebox}
\cmd{usepackage}[\opt{record}]\marg{glossaries-extra}
\end{codebox}
and the \ext{bib} file is specified in the resource command. For
example, if the \ext{bib} file is called \filefmt{entries.bib}
then put the following line in the document preamble:
\begin{codebox}
\gls{GlsXtrLoadResources}\oarg{\resourceoptvalm{src}{entries}}
\end{codebox}
You can have a comma-separated list. For example, if you also
have entries defined in the file \filefmt{entries2.bib}:
\begin{codebox}
\gls{GlsXtrLoadResources}\oarg{\resourceoptvalm{src}{entries,entries2}}
\end{codebox}

There are other keys you can use when you define an entry. For
example, the \gloskey{name} key indicates how the term
should appear in the list of entries (\idx{glossary}), but if the term should
appear differently when you reference it with \code{\gls{gls}\margm{label}} in 
the document, you need to use the \gloskey{text} key as well.

For example:
\begin{codebox}
\gls{newglossaryentry}\marg{latinalph}
\marg{
  \gloskeyval{name}{Latin Alphabet},
  \gloskeyval{text}{Latin alphabet},
  \gloskeyval{description}{alphabet consisting of the letters 
  a, \cmd{ldots}, z, A, \cmd{ldots}, Z}
}
\end{codebox}
This will appear in the text as \qt{Latin alphabet} but will be listed in
the glossary as \qt{Latin Alphabet}.
With \app{bib2gls} this entry is defined in the \ext{bib}
file as:
\begin{codebox}
\atentry{entry}\marg{latinalph,
  \gloskeyval{name}{Latin Alphabet},
  \gloskeyval{text}{Latin alphabet},
  \gloskeyval{description}{alphabet consisting of the letters 
  a, \cmd{ldots}, z, A, \cmd{ldots}, Z}
}
\end{codebox}

Another commonly used key is \gloskey{plural} for specifying the
plural of the term. This defaults to the value of the \gloskey{text}
key with an \qt{s} appended, but if this is incorrect, just use the
\gloskey{plural} key to override it:
\begin{codebox}
\gls{newglossaryentry}\marg{oesophagus}
\marg{
  \gloskeyval{name}{\oe{}sophagus},
  \gloskeyval{plural}{\oe{}sophagi},
  \gloskeyval{description}{canal from mouth to stomach}
}
\end{codebox}

Abbreviations can be defined using:
\cmddef{newacronym}
where \meta{label} is the label (as per \gls{newglossaryentry}), 
\meta{short} is the short form and \meta{long} is the long form. 
For example, the
following defines an abbreviation:
\begin{codebox}
\gls{newacronym}\marg{svm}\marg{SVM}\marg{support vector machine}
\end{codebox}
This internally uses \gls{newglossaryentry} to define an entry with
the label \code{svm}. By default, the \gloskey{name} key is set to
\meta{short} (\qt{SVM} in the above example) and the
\gloskey{description} key is set to \meta{long} (\qt{support vector
machine} in the above example). If, instead, you want to be able to
specify your own description you can do this using the optional
argument:
\begin{codebox}
\gls{newacronym}
 \oarg{\gloskeyval{description}{statistical pattern recognition technique}}
 \marg{svm}\marg{SVM}\marg{support vector machine}
\end{codebox}

Before you define your acronyms, you need to specify which style to use with:
\cmddef{setacronymstyle}
where \meta{style-name} is the name of the style. There are a number
of predefined styles, such as: \acrstyle{long-short} (on \idx{firstuse}
display the long form with the short form in parentheses);
\acrstyle{short-long} (on \idx{firstuse} display the short form with the
long form in parentheses); \acrstyle{long-short-desc} (like
\acrstyle{long-short} but you need to specify the description); or
\acrstyle{short-long-desc} (like \acrstyle{short-long} but you need to
specify the description). There are some other styles as well that
use \gls{textsc} to typeset the acronym in small-caps or that use a footnote on
first use. See the main user guide for further details.

The \sty{glossaries-extra} package provides improved abbreviation
handling with \dickimawhref{gallery/sample-abbr-styles.shtml}{a lot more predefined styles}.
With this extension package, abbreviations are defined using:
\cmddef{newabbreviation}
You can still use \gls{newacronym} but it's redefined to 
use the new abbreviation interface. The style must now be set using:
\cmddef{setabbreviationstyle}
The default \meta{category} is \cat{abbreviation}. If you use
\gls{newacronym} the category is \cat{acronym}, which is why you
need to use the optional argument if you define abbreviations with
\gls{newacronym} when \sty{glossaries-extra} has been loaded:
\begin{compactcodebox*}
\gls{setabbreviationstyle}\oarg{\cat{acronym}}\margm{style name}
\end{compactcodebox*}
If you use \app{bib2gls} then abbreviations are defined in the
\ext{bib} file in the format:
\begin{compactcodebox*}
\atentry{abbreviation}\marg{\meta{label},
  \gloskeyval{long}{long form},
  \gloskeyval{short}{short form}
}
\end{compactcodebox*}

The plural forms for abbreviations can be specified using the
\gloskey{longplural} and \gloskey{shortplural} keys. For example:
\begin{codebox}
\gls{newacronym}
 \oarg{\gloskeyval{longplural}{diagonal matrices}}
 \marg{dm}\marg{DM}\marg{diagonal matrix}
\end{codebox}
or (with \sty{glossaries-extra}):
\begin{codebox}
\gls{newabbreviation} \comxr
 \oarg{\gloskeyval{longplural}{diagonal matrices}}
 \marg{dm}\marg{DM}\marg{diagonal matrix}
\end{codebox}
If omitted, the defaults are again obtained by appending an \qt{s} to
the singular versions. (The \sty{glossaries-extra} package provides
a way of not appending \qt{s} for abbreviation plurals via category
attributes.) With \app{bib2gls}, the definition in the
\ext{bib} file is:
\begin{codebox}
\atentry{abbreviation}\marg{dm,
  \gloskeyval{short}{DM},
  \gloskeyval{long}{diagonal matrix},
  \gloskeyval{longplural}{diagonal matrices}
}
\end{codebox}

It's also possible to have both a~name and a~corresponding symbol.
Just use the \gloskey{name} key for the name and the \gloskey{symbol} key
for the symbol. For example:
\begin{codebox}
\gls{newglossaryentry}\marg{emptyset}
\marg{
  \gloskeyval{name}{empty set},
  \gloskeyval{symbol}{\cmd{ensuremath}\marg{\cmd{emptyset}}},
  \gloskeyval{description}{the set containing no elements}
}
\end{codebox}
or with \app{bib2gls} the definition in the \ext{bib} file is:
\begin{codebox}
\atentry{entry}\marg{emptyset,
  \gloskeyval{name}{empty set},
  \gloskeyval{symbol}{\cmd{ensuremath}\marg{\cmd{emptyset}}},
  \gloskeyval{description}{the set containing no elements}
}
\end{codebox}
If you want the symbol in the \gloskey{name} field then you must
supply a \gloskey{sort} value with \options{noidx,xdy} otherwise you'll end up
with errors from \TeX\ or \app{xindy}. With \option{mkidx}
(\app{makeindex}) it's not quite so important but you may find
the resulting order is a little odd. For example:
\begin{codebox}
\gls{newglossaryentry}\marg{emptyset}
\marg{
  \gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{emptyset}}},
  \gloskeyval{sort}{empty set},
  \gloskeyval{description}{the set containing no elements}
}
\end{codebox}
This displays the symbol as $\emptyset$ but sorts according to
\qt{empty set}. You may want to consider using
\sty{glossaries-extra}['s] \opt{symbols} package option which
provides
\cmddef{glsxtrnewsymbol}
This internally uses \gls{newglossaryentry} but automatically sets
the \gloskey{sort} key to the \meta{label}. For example:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}[\opt{symbols}]\marg{glossaries-extra}
\gls{makeglossaries}
\gls{glsxtrnewsymbol} \comxropt{symbols}
 \oarg{\gloskeyval{description}{the set containing no elements}}
 \marg{emptyset}\comment{label (and sort value)}
 \marg{\cmd{ensuremath}\marg{\cmd{emptyset}}}\comment{symbol}
\cbeg{document}
\gls{gls}\marg{emptyset}
\gls{printglossaries}
\cend{document}
\end{codebox}
Now the sort value is set to the label \qt{emptyset}.

With \app{bib2gls} you can define this entry in the \ext{bib} file
as
\begin{codebox}
\atentry{entry}\marg{emptyset,
  \gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{emptyset}}},
  \gloskeyval{description}{the set containing no elements}
}
\end{codebox}
in which case \app{bib2gls} will try to interpret the \gloskey{name} 
field to determine the sort value. Alternatively you can use:
\begin{codebox}
\atentry{symbol}\marg{emptyset,
  \gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{emptyset}}},
  \gloskeyval{description}{the set containing no elements}
}
\end{codebox}
which will use the label (\code{emptyset}) as the sort value.
(You don't need the \opt{symbols} package option in this case,
unless you want a separate symbols list.) The corresponding document
(where the definition is in the file \filefmt{entries.bib}) is now:
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}[\opt{record}]\marg{glossaries-extra}
\gls{GlsXtrLoadResources}\oarg{\resourceoptvalm{src}{entries}}
\cbeg{document}
\gls{gls}\marg{emptyset}
\gls{printunsrtglossaries}
\cend{document}
\end{codebox}

Note that while the \gloskey{sort} key is advised for symbols when
using \gls{makeglossaries} or \gls{makenoidxglossaries} it shouldn't
be used with \app{bib2gls}. Instead, \app{bib2gls} has its own
algorithm for determining the sort value based on the entry type
(\atentry{entry}, \atentry{symbol} etc). See
\gallerypage{bib2gls-sorting}{bib2gls gallery: sorting} for further
details.

\section{Using Entries}
\label{sec:useterm}

Once you have defined your entries, as described above, you can
reference them in your document. There are a~number of commands to
do this, but the most common one is:
\cmddef{gls}
where \meta{label} is the label you assigned to the entry when you
defined it. For example, \code{\gls{gls}\marg{fishage}} will display \qt{Fish
Age} in the text (given the definition from the previous section).
If you are using \app{bib2gls} then this will display \idx{unknowntag} (like
\csfmt{ref} and \csfmt{cite}) until \app{bib2gls} has created the
relevant files and \LaTeX\ is rerun.

If you are using the \sty{hyperref} package (remember to load it
before \sty{glossaries}) \gls{gls} will create a hyperlink to the
corresponding entry in the glossary. If you want to suppress the
hyperlink for a particular instance, use the starred form \code{\gls{gls}*}
for example, \code{\gls{gls}*\marg{fishage}}. The other commands described in
this section all have a similar starred form.

If the entry was defined as an acronym (using \gls{newacronym} with
\sty{glossaries} described above) or an abbreviation (using
\gls{newabbreviation} with \sty{glossaries-extra}), then \gls{gls}
will display the full form the first time it's used (\idx{firstuse}) and just the
short form on \idx{subsequentuse}. For example, if the style is
set to \acrstyle{long-short}, then \code{\gls{gls}\marg{svm}} will display
\qt{support vector machine (SVM)} the first time it's used, but the
next occurrence of \code{\gls{gls}\marg{svm}} will just display \qt{SVM}.
(If you use \gls{newacronym} with \sty{glossaries-extra} the default
doesn't show the long form on \idx{firstuse}. You'll need to change the
style first, as described earlier.)

If you want the plural form, you can use:
\cmddef{glspl}
instead of \code{\gls{gls}\margm{label}}. For example,
\code{\gls{glspl}\marg{set}} displays \qt{sets}.

If the term appears at the start of a~sentence, you can convert the
first letter to \idx{uppercase} (\idx{sentencecase}) using:
\cmddef{Gls}
for the singular form or
\cmddef{Glspl}
for the plural form. For example:
\begin{codebox}
\gls{Glspl}\marg{set} are collections.
\end{codebox}
produces \qt{Sets are collections}.

If you've specified a symbol using the \gloskey{symbol} key, you can
display it using:
\cmddef{glssymbol}
For example
\begin{codebox}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\marg{glossaries}
\gls{newglossaryentry}\marg{emptyset}
\marg{
  \gloskeyval{name}{empty set},
  \gloskeyval{symbol}{\cmd{ensuremath}\marg{\cmd{emptyset}}},
  \gloskeyval{description}{the set containing no elements}
}
\cbeg{document}
The \gls{gls}\marg{emptyset} is denoted \gls{glssymbol}\marg{emptyset}.
\cend{document}
\end{codebox}
\begin{resultbox}
The empty set is denoted $\emptyset$.
\end{resultbox}

\section{Displaying a List of Entries}
\label{sec:printglossaries}

In \sectionref{sec:start}, I mentioned that there are three options
you can choose from to create an automatically sorted glossary with the base 
\sty{glossaries} package. These are also available with the
extension package \sty{glossaries-extra} along with a fourth
option. These four options are listed below in a little more detail.
\Tableref{tab:optionsp+c} summarises the main advantages and
disadvantages.  (There's a more detailed summary in the main
\sty{glossaries} user manual.) See also
\dickimawhref{latex/buildglossaries/}{Incorporating makeglossaries or makeglossaries-lite or bib2gls into the document build}.

\begin{table}[htbp]
 \caption{Comparison of Glossary Options}
 \label{tab:optionsp+c}
 {%
 \centering
 \begin{tabular}{>{\raggedright}p{0.3\textwidth}cccc}
   & \bfseries \option{noidx} 
   & \bfseries \option{mkidx} 
   & \bfseries \option{xdy}
   & \bfseries \option{b2g}\\
   Requires \sty{glossaries-extra}? &
   \conno & \conno & \conno & \conyes\\
   Requires an external application? &
   \conno & \conyes & \conyes & \conyes\\
   Requires Perl? &
   \conno & \conno & \conyes & \conno\\
   Requires Java? &
   \conno & \conno & \conno & \conyes\\
   Can sort extended Latin
   or non-Latin alphabets? &
   \prono & \prono & \proyes & \proyes\\
   Efficient sort algorithm? &
   \prono & \proyes & \proyes & \proyes\\
   Can use different sort methods for each glossary? &
   \proyes & \prono & \prono & \proyes\\
   Any problematic sort values? &
   \conyes & \conyes & \conyes & \conno\\
   Can form ranges in the location lists? &
   \prono & \proyes & \proyes & \proyes\\
   Can have non-standard locations? &
   \proyes & \prono & \proyes\tablefnmark{\textdagger} & \proyes
 \end{tabular}
 \par}\medskip\tablefntext{\textdagger}{Requires some setting up.}
\end{table}

\begin{deflist}
\itemtitle{\idxoptiondef{noidx}}

\begin{itemdesc}
 This is the simplest option but it's slow and if
 you want a sorted list, it doesn't work for extended or non-Latin alphabets.
 The \gloskey{name} mustn't contain commands (or, if it does, the
 \gloskey{sort} value must be supplied) unless you 
 have the package option \opt{sanitizesort} or \optval{sort}{def} 
 or \optval{sort}{use}.

  \begin{enumerate}
    \item Add \gls{makenoidxglossaries} to your preamble (before you
    start defining your entries, as described in
    \sectionref{sec:defterm}).

    \item Put
\begin{compactcodebox*}
\gls{printnoidxglossary}\oarg{\printglossoptval{sort}{\meta{order}},\meta{other options}}
\end{compactcodebox*}
    where you want your list of entries to appear. The sort
    \meta{order} may be one of: \code{word} (word ordering),
    \code{letter} (letter ordering), \code{case} (case-sensitive
    letter ordering), \code{def} (in order of definition) or
    \code{use} (in order of use). Alternatively, use
\begin{compactcodebox*}
\gls{printnoidxglossaries}
\end{compactcodebox*}
    to display all your glossaries (if you have more than one). This
    command doesn't have any arguments.

    This option allows you to have different sort methods. For
    example:
\begin{codebox}
\gls{printnoidxglossary}\oarg{\printglossoptval{sort}{word}}\comment{main glossary}
\gls{printnoidxglossary}\oarg{\printglossoptval{type}{symbols},\comment{symbols glossary}
 \printglossoptval{sort}{use}}
\end{codebox}

    \item Run \LaTeX\ twice on your document. (As you would do to
    make a~table of contents appear.) For example, click twice on
    the \qt{typeset} or \qt{build} or \qt{PDF\LaTeX} button in your editor.
  \end{enumerate}
Here's a complete document (\filefmt{myDoc.tex}):
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}\marg{glossaries}
\codepar
\gls{makenoidxglossaries} % use TeX to sort
\codepar
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},
  \gloskeyval{description}{an example}}
\codepar
\cbeg{document}
A \gls{gls}\marg{sample}.
\codepar
\gls{printnoidxglossaries} \comment{iterate over all indexed entries}
\cend{document}
\end{codebox}
Document build:
\begin{terminal}
pdflatex myDoc
pdflatex myDoc
\end{terminal}
\end{itemdesc}

\itemtitle{\idxoptiondef{mkidx}}

\begin{itemdesc}
   This option uses an application called \app{makeindex} to sort 
   the entries. This application comes with all modern \TeX\ distributions, 
   but it's hard-coded for the non-extended Latin alphabet. This process 
   involves making \LaTeX\ write the glossary information to a temporary 
   file which \app{makeindex} reads. Then \app{makeindex} writes 
   a~new file containing the code to typeset the glossary. \LaTeX\ then 
   reads this file on the next run. The \app{makeindex}
   application is automatically invoked by the helper
   \app{makeglossaries} script, which works out all the
   appropriate settings from the \ext+{aux} file.

   \begin{enumerate}
    \item If you are using a package that
makes the double-quote character \verb|"| a shorthand (an active
character), then use
\gls{GlsSetQuote} to change this to some other character. For
example:
\begin{codebox}
\gls{GlsSetQuote}\marg{+}
\end{codebox}
    Use this as soon as possible after you've loaded the
\sty{glossaries} package. (This may not be necessary if you define
all your entries in the preamble.)

    \item Add \gls{makeglossaries} to your preamble (before you start
    defining your entries).

    \item Put
\begin{compactcodebox*}
\gls{printglossary}\oargm{options}
\end{compactcodebox*}
    where you want your list of entries (\idx{glossary}) to appear. (The
    \printglossopt{sort} key isn't available in \meta{options}.)
    Alternatively, use
\begin{compactcodebox*}
\gls{printglossaries}
\end{compactcodebox*}
    which will display all glossaries (if you have more than one).
    This command doesn't have any arguments.

\begin{important}
All glossaries are sorted using the same method
which may be identified with one of the package options:
\optval{sort}{standard} (default), \optval{sort}{use}
or \optval{sort}{def}.
\end{important}

    \item Run \LaTeX\ on your document. This creates files with the
    extensions \ext+{glo} and \ext+{ist} (for example, if your 
    \LaTeX\ document is called \filefmt{myDoc.tex}, then you'll have 
    two extra files called \filefmt{myDoc.glo} and \filefmt{myDoc.ist}).
    If you look at your document at this point, you won't see the 
    \idx{glossary} as it hasn't been created yet.

    \item Run \app{makeglossaries} with the base name of your 
    document (without the \ext{tex} extension). If
    you have access to a terminal or a command prompt then you need 
    to run the command:
\begin{terminal}
makeglossaries myDoc
\end{terminal}
   (Replace \filefmt{myDoc} with the base name of your \LaTeX\
    document file without the extension. 
    Avoid spaces in the file name.) If you don't have Perl installed
    use \app{makeglossaries-lite} instead:
\begin{terminal}
makeglossaries-lite myDoc
\end{terminal}

\begin{important}
Some beginners get confused by \app{makeglossaries} the
application (run as a system command) and \gls{makeglossaries}
the \LaTeX\ command which should be typed in the document
preamble. These are two different concepts that happen to have
similar looking names.
\end{important}

    If you don't know how to use the command prompt, then you can 
    probably configure your text editor to add 
    \app{makeglossaries} (or \app{makeglossaries-lite})
    as a build tool, but each editor has a
    different method of doing this, so I~can't give a~general
    description. However, there are some guidelines in
\dickimawhref{latex/buildglossaries/}{Incorporating
makeglossaries or makeglossaries-lite or bib2gls into the document
build}.
    If you still have problems, try adding the \opt{automake}
    package option:
\begin{compactcodebox}
\cmd{usepackage}[\opt{automake}]\marg{glossaries}
\end{compactcodebox}

    The default sort is word order (\qt{sea lion} comes before \qt{seal}). 
    If you want letter ordering you need to add the
    \optval{order}{letter} package option
\begin{compactcodebox}
\cmd{usepackage}[\optval{order}{letter}]\marg{glossaries}
\end{compactcodebox}

    \item Once you have successfully completed the previous step,
    you can now run \LaTeX\ on your document again.
   \end{enumerate}
Here's a complete document (\filefmt{myDoc.tex}):
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}\marg{glossaries}
\codepar
\gls{makeglossaries} \comment{create \app{makeindex} files}
\codepar
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},
  \gloskeyval{description}{an example}}
\codepar
\cbeg{document}
A \gls{gls}\marg{sample}.
\codepar
\gls{printglossaries} \comment{input files created by makeindex}
\cend{document}
\end{codebox}
Document build:
\begin{terminal}
pdflatex myDoc
makeglossaries myDoc
pdflatex myDoc
\end{terminal}
or
\begin{terminal}
pdflatex myDoc
makeglossaries-lite myDoc
pdflatex myDoc
\end{terminal}
\end{itemdesc}

\itemtitle{\idxoptiondef{xdy}}

\begin{itemdesc}
   This option uses an application called
   \app{xindy} to sort the entries. This application is more
   flexible than \app{makeindex} and is able to sort extended
   Latin or non-Latin alphabets. It comes with both \TeX~Live and 
   MiK\TeX. Since \app{xindy} is a Perl script, you will also 
   need to ensure that Perl is installed. In a~similar way to \option{mkidx}, this 
   option involves making \LaTeX\ write the glossary information to 
   a~temporary file which \app{xindy} reads. Then \app{xindy} 
   writes a~new file containing the code to typeset the glossary. 
   \LaTeX\ then reads this file on the next run. The \app{xindy}
   application is automatically invoked by the helper
   \app{makeglossaries} script, which works out all the
   appropriate settings from the \ext+{aux} file.

   \begin{enumerate}
     \item Add the \opt{xindy} option to the \sty{glossaries}
package option list:
\begin{compactcodebox}
\cmd{usepackage}[\opt{xindy}]\marg{glossaries}
\end{compactcodebox}
If you aren't using a Latin script, you may need to suppress the
default number group:
\begin{compactcodebox}
\cmd{usepackage}[\optvalm{xindy}{glsnumbers=false}]\marg{glossaries}
\end{compactcodebox}

     \item Add \gls{makeglossaries} to your preamble (before you start
     defining your entries).

    \item Put
\begin{compactcodebox*}
\gls{printglossary}\oargm{options}
\end{compactcodebox*}
    where you want your list of entries (glossary) to appear. (The
    \printglossopt{sort} key isn't available in \meta{options}.)
    Alternatively, use
\begin{compactcodebox*}
\gls{printglossaries}
\end{compactcodebox*}

\begin{important}
All \idxpl{glossary} are sorted using the same method
which may be identified with one of the package options:
\optval{sort}{standard} (default), \optval{sort}{use}
or \optval{sort}{def}.
\end{important}

    \item Run \LaTeX\ on your document. This creates files with the
    extensions \ext+{glo} and \ext+{xdy} (for example, if your 
    \LaTeX\ document is called \filefmt{myDoc.tex}, then you'll have 
    two extra files called \filefmt{myDoc.glo} and \filefmt{myDoc.xdy}).
    If you look at your document at this point, you won't see the 
    \idx{glossary} as it hasn't been created yet.

    \item Run \app{makeglossaries} with the base name of the
    document (omitting the \ext{tex} extension).
    If you have access to a terminal or a command prompt then 
    you need to run the command:
\begin{terminal}
makeglossaries myDoc
\end{terminal}
    (Replace \filefmt{myDoc} with the base name of your \LaTeX\
    document file without the \ext{tex} extension.)
     Avoid spaces in the file name. If you don't know
    how to use the command prompt, then as mentioned above, you may
    be able to configure your text editor to add
    \app{makeglossaries} as a build tool. Note that the \opt{automake} option
    won't work in \TeX's restricted mode, as \app{xindy} isn't on the
    list of trusted applications.

    The default sort is word order (\qt{sea lion} comes before \qt{seal}). 
    If you want letter ordering you need to add the
    \optval{order}{letter} package option:
\begin{compactcodebox}
\cmd{usepackage}[\opt{xindy},\optval{order}{letter}]\marg{glossaries}
\end{compactcodebox}

    \item Once you have successfully completed the previous step,
    you can now run \LaTeX\ on your document again.

   \end{enumerate}
Here's a complete document (\filefmt{myDoc.tex}):
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}[\opt{xindy}]\marg{glossaries}
\codepar
\gls{makeglossaries} \comment{create \app{xindy} files}
\codepar
\gls{newglossaryentry}\marg{sample}\marg{\gloskeyval{name}{sample},
  \gloskeyval{description}{an example}}
\codepar
\cbeg{document}
A \gls{gls}\marg{sample}.
\codepar
\gls{printglossaries} \comment{input files created by \app{xindy}}
\cend{document}
\end{codebox}
Document build:
\begin{terminal}
pdflatex myDoc
makeglossaries myDoc
pdflatex myDoc
\end{terminal}
\end{itemdesc}

\itemtitle{\idxoptiondef{b2g}}

\begin{itemdesc}
   This requires the extension package \sty+{glossaries-extra} and
   an application called \app{bib2gls}. This application is able
   to sort extended Latin or non-Latin alphabets. It comes with both
   \TeX~Live and MiK\TeX\ but requires at least Java~8. This method
   works differently to \options{mkidx,xdy}. Instead of creating a file
   containing the code to typeset the glossary it creates a
   \ext+{glstex} file containing the entry definitions fetched 
   from the \ext+{bib} file (or files), but only those entries 
   that are required in the document are defined and they are 
   defined in the order obtained from the chosen sort method. 
   This means that you can just use
   \gls{printunsrtglossary} to display each glossary (or
   \gls{printunsrtglossaries} to display them all).

   \begin{enumerate}
   \item Add the \opt{record} option to the \sty{glossaries-extra}
   package option list:
\begin{compactcodebox}
\cmd{usepackage}\oarg{\opt{record}}\marg{glossaries-extra}
\end{compactcodebox}

   \item Add one or more 
\begin{compactcodebox*}
\gls{GlsXtrLoadResources}\oarg{\resourceoptvalm{src}{\meta{bib list}},\meta{options}}
\end{compactcodebox*}
   to your preamble where \meta{bib list} is the
   list of \ext{bib} files containing the entries. You may
   use different sort methods for each resource set. For example:
\begin{codebox*}
\cmd{usepackage}\oarg{record,\comment{using \app{bib2gls}}
 \opt{abbreviations},\comment{create abbreviations list}
 \opt{symbols},\comment{create symbols list}
 \opt{numbers}\comment{create numbers list}
}\marg{glossaries-extra}
\codepar
\gls{GlsXtrLoadResources}\oarg{
  \resourceoptvalm{src}{terms},\comment{entries in terms.bib}
  \comment{put these entries in the 'main' (default) list:}
  \resourceoptval{type}{main},
  \resourceoptval{sort}{de-CH-1996}\comment{sort according to this locale}
}
\gls{GlsXtrLoadResources}\oarg{
  \resourceoptvalm{src}{abbrvs},\comment{entries in abbrvs.bib}
  \comment{put these entries in the 'abbreviations' list:}
  \resourceoptvalm{type}{abbreviations},
  \comment{case-sensitive letter (non-locale) sort:}
  \resourceoptval{sort}{letter-case}
}
\gls{GlsXtrLoadResources}\oarg{
  \resourceoptvalm{src}{syms},\comment{entries in syms.bib}
  \resourceoptval{type}{symbols},\comment{put these entries in the 'symbols' list}
  \resourceoptval{sort}{use}\comment{sort according to first use in the document}
}
\gls{GlsXtrLoadResources}\oarg{
  \resourceoptvalm{src}{constants},\comment{entries in constants.bib}
  \resourceoptval{type}{numbers},\comment{put these entries in the 'numbers' list}
  \resourceoptval{sort-field}{user1},\comment{sort according to this field}
  \resourceoptval{sort}{double}\comment{double-precision sort}
}
\end{codebox*}
The last resource set assumes that the entries defined in the
file \filefmt{constants.bib} have a number stored in the \gloskey{user1}
field. For example:
\begin{compactcodebox}
\atentry{number}\marg{pi,
  \gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{pi}}},
  \gloskeyval{description}{pi},
  \gloskeyval{user1}{3.141592654}
}
\end{compactcodebox}

   \item Put 
\begin{compactcodebox*}
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{\meta{type}},\meta{options}}
\end{compactcodebox*}
    where you want your list of entries (\idx{glossary}) to appear. (The
    \printglossopt{sort} key isn't available in \meta{options}. The
    \resourceopt{sort} setting needs to be
    used in \gls{GlsXtrLoadResources} instead.)
    Alternatively, use
\begin{compactcodebox*}
\gls{printunsrtglossaries}
\end{compactcodebox*}

    \item Run \LaTeX\ on your document. The \opt{record} option 
    adds information to the \ext+{aux} file that provides
    \app{bib2gls} with all required details for each resource set.
    For example, if the file is called \filefmt{myDoc.tex}:
\begin{terminal}
pdflatex myDoc
\end{terminal}

    \item Run \app{bib2gls}
\begin{terminal}
bib2gls myDoc
\end{terminal}
or (if you need letter groups)
\begin{terminal}
bib2gls \switch{group} myDoc
\end{terminal}

    \item Run \LaTeX\ again.
   \end{enumerate}
Here's a complete document (\filefmt{myDoc.tex}):
\begin{codebox}
\cmd{documentclass}\marg{article}
\codepar
\cmd{usepackage}[\opt{record}]\marg{glossaries-extra}
\comment{input the \ext{glstex} file created by \app{bib2gls}:}
\gls{GlsXtrLoadResources}
 \oarg{\comment{instructions to \app{bib2gls}:}
   \resourceoptvalm{src}{entries}, \comment{terms are defined in entries.bib}
   \resourceoptval{sort}{en-GB}\comment{sort according to this locale}
 }
\codepar
\cbeg{document}
A \gls{gls}\marg{sample}.
\codepar
\gls{printunsrtglossaries} \comment{iterate over all defined entries}
\cend{document}
\end{codebox}
The accompanying \filefmt{entries.bib} file:
\begin{compactcodebox}
\atentry{entry}\marg{sample,
  \gloskeyval{name}{sample},
  \gloskeyval{description}{an example}
}
\end{compactcodebox}
Document build:
\begin{terminal}
pdflatex myDoc
bib2gls myDoc
pdflatex myDoc
\end{terminal}
\end{itemdesc}

\end{deflist}

If you are having difficulty integrating \app{makeglossaries} (or
\app{makeglossaries-lite}) or \app{bib2gls}
into your document build process, you may want to consider using
\app{arara}, which is a Java application that searches the
document for special comment lines that tell \app{arara} which
applications to run. For example, the file \filefmt{myDoc.tex} might
start with:
\begin{codebox}
\araraline{pdflatex}
\araraline{makeglossaries}
\araraline{pdflatex}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\marg{glossaries}
\gls{makeglossaries}
\end{codebox}
then to build the document you just need the single system call:
\begin{terminal}
arara myDoc
\end{terminal}
Alternatively, if you want to use \app{makeglossaries-lite}, change
the second line to:
\begin{compactcodebox}
\araraline{makeglossarieslite}
\end{compactcodebox}
There's also a rule for \app{bib2gls}. For example, the following
indicates that letter groups are required:
\begin{codebox}
\araraline{pdflatex}
\araraline{bib2gls: \marg{ group: on }}
\araraline{pdflatex}
\cmd{documentclass}\marg{article}
\cmd{usepackage}\oarg{\opt{record}}\marg{glossaries-extra}
\gls{GlsXtrLoadResources}
\end{codebox}

When sorting the entries, the string comparisons are made according
to each entry's \gloskey{sort} key. If this is omitted, the
\gloskey{name} key is used. For example, consider the
definition:
\begin{codebox}
\gls{newglossaryentry}\marg{elite}
\marg{
  \gloskeyval{name}{\cmd{'}elite},
  \gloskeyval{description}{select group or class}
}
\end{codebox}
The \gloskey{sort} key isn't present, so it's set to the same as the
\gloskey{name} key: \code{\cmd{'}elite}. How this is interpreted depends
on which option you have used:
\begin{description}
\item[\option{noidx}] By default, the accent command will be stripped so the
sort value will be \code{elite}. This will put the entry in the
\qt{E} letter group. However if you use the
\optval{sanitizesort}{true} package option, the sort value will be
interpreted as the sequence of characters: \verb|\| \code{'} \code{e}
\code{l} \code{i} \code{t} and \code{e}. This will place
this entry in the \qt{symbols} group since it starts with a symbol.

\item[\option{mkidx}] The sort value will be interpreted as the sequence of characters:
\verb|\| \verb|'| \code{e} \code{l} \code{i} \code{t}
and \code{e}. The first character is a backslash
so \app{makeindex} will put this entry in the
\qt{symbols} group. 

\item[\option{xdy}]
\app{xindy} disregards \LaTeX\ commands so it sorts on
\code{elite}, which puts this entry in the \qt{E} group.
If stripping all commands leads to an empty string (such as
would happen with \code{\cmd{ensuremath}\marg{\cmd{emptyset}}}) then \app{xindy} will fail, so in
those situations you need to provide an appropriate \gloskey{sort}
value that \app{xindy} will accept.
\begin{important}
\app{xindy} merges entries with duplicate sort values. 
\app{xindy} forbids empty sort values.
A sort value may degrade into an empty or duplicate value once
\app{xindy} has stripped all commands and braces.
\end{important}

\item[\option{b2g}]
\app{bib2gls} has a primitive \LaTeX\ parser that recognises a
limited set of commands, which includes the standard accent commands
and some maths commands, so it can convert \code{\cmd{'}elite} to
\code{\'elite}. It disregards unknown commands. This may lead to
an empty sort value, but \app{bib2gls} doesn't mind that. (It has
fallbacks, depending on the sort method and various settings, that
can be used to determine the order if the sort value is empty or a
duplicate.)

Note that even if the name is given as \code{\cmd{'}elite}, the letter
group heading (if the \switch{group} switch is used) may end up with
the character \'E depending on the locale used by the sort
comparator. In this case you will need to ensure the document can
support this character either with \sty{inputenc} or by switching to
a \LaTeX\ engine with native UTF-8 support. (Modern \LaTeX\ kernels
default to UTF-8.)

There's more information on how \app{bib2gls} obtains the sort value
in
\gallerypage{label=bib2gls-sorting}{bib2gls gallery: sorting}.

\end{description}

If the \sty{inputenc} package is used:
\begin{codebox}
\cmd{usepackage}[utf8]\marg{inputenc}
\end{codebox}
and the entry is defined as:
\begin{compactcodebox}
\gls{newglossaryentry}\marg{elite}
\marg{
  \gloskeyval{name}{\'elite},
  \gloskeyval{description}{select group or class}
}
\end{compactcodebox}
then:
\begin{description}
\item[\option{noidx}:] With old \LaTeX\ kernels, this entry was placed in the
\qt{E} letter group. With new \LaTeX\ kernels you will have to set
the \gloskey{sort} key to Basic Latin (for example,
\code{\gloskeyval{sort}{elite}}) but, where possible, it's better to
use \app{xindy} or \app{bib2gls}.

\item[\option{mkidx}] \app{makeindex} sees \code{\'e} as two octets (0xC3
0xA9) rather than a single character so it tries to put
\code{\'elite} in the 0xC3 (\qt{\~A}) letter group (which, in this
case, comes after \qt{Z}). You will either have to set the
\gloskey{sort} key to Basic Latin (for example,
\gloskeyval{sort}{elite}) or switch to \app{xindy} or
\app{bib2gls}.

\item[\option{xdy}] \app{xindy} will correctly recognise the sort value
\code{\'elite} and will place it in whatever letter group is
appropriate for the given language setting. (In English, this would
just be the \qt{E} letter group, but another language
might put it in the \qt{\'E} letter group.)

\item[\option{b2g}] The \sty{inputenc} package doesn't affect the
encoding used with \ext{bib} entry definitions, since these are dependent
on the encoding used to save the \ext{bib} file. The \ext{glstex}
file created by \app{bib2gls} will be written in the encoding
required by your document. (In general, it's best to use the same
encoding across all files.) 

You can help \app{bib2gls} by putting an encoding comment at the 
start of the \ext{bib} file:
\begin{codebox}
\% Encoding: UTF-8
\end{codebox}

With the correct encoding set up, \app{bib2gls} will determine that
the sort value is \code{\'elite} and will place it in whatever
letter group is appropriate for the given sort rule.  For example,
\resourceoptval{sort}{en-GB} (or just \resourceoptval{sort}{en})
will put \code{\'elite} in the \qt{E} letter group, but another
language might put it in the \qt{\'E} letter group.

\end{description}

Therefore if you have extended Latin or non-Latin characters, your
best option is to use either \app{xindy} (\option{xdy}) or \app{bib2gls}
(\option{b2g}).
If you use \app{makeindex} (\option{mkidx}) you need to specify the
\code{sort} key like this:
\begin{codebox}
\gls{newglossaryentry}\marg{elite}
\marg{
  \gloskeyval{name}{\'elite},
  \gloskeyval{sort}{elite},
  \gloskeyval{description}{select group or class}
}
\end{codebox}
If you use \option{noidx}, you may or may not need to use the \gloskey{sort}
key, but you will need to be careful about fragile commands in the
\gloskey{name} key if you don't set the \gloskey{sort} key.

If you use \option{xdy} and the \gloskey{name} only contains a command or
commands (such as \csfmt{P} or
\code{\cmd{ensuremath}\marg{\cmd{pi}}}) you must add the
\gloskey{sort} key. This is also advisable for the other options
(except \option{b2g}), but is essential for \option{xdy}. For example:
\begin{codebox}
\gls{newglossaryentry}\marg{P}\marg{\gloskeyval{name}{\cmd{P}},\gloskeyval{sort}{P},
  \gloskeyval{description}{paragraph symbol}}
\end{codebox}

\section{Customising the Glossary}
\label{sec:glosstyle}

The default glossary style uses the \env{description} environment
to display the entry list. Each entry name is set in the optional
argument of \gls{item} which means that it will typically be
displayed in bold. You can switch to medium weight by redefining
\gls{glsnamefont}:
\begin{codebox}
\cmd{renewcommand}*\marg{\gls{glsnamefont}}[1]\marg{\cmd{textmd}\marg{\#1}}
\end{codebox}
Some classes and packages redefine the \env{description} environment
in such as way that's incompatible with the \sty{glossaries}
package. In which case you'll need to select a different glossary
style (see below).

By default, a~full stop is appended to the description (unless you
use \sty{glossaries-extra}). To prevent
this from happening use the \opt{nopostdot} package option:
\begin{codebox}
\cmd{usepackage}[\opt{nopostdot}]\marg{glossaries}
\end{codebox}
or to add it with \sty{glossaries-extra}:
\begin{codebox}
\cmd{usepackage}[\opt{postdot}]\marg{glossaries-extra}
\end{codebox}

By default, a~location list is displayed for each entry (unless you
use \gls{printunsrtglossary} without \app{bib2gls}). This refers
to the document locations (for example, the page number) where the
entry has been referenced. If you use \optionsor{mkidx,xdy} described in
\sectionref{sec:printglossaries} or \option{b2g} (with \app{bib2gls} and
\sty{glossaries-extra}) then location ranges will be compressed.
For example, if an entry was used on pages~1, 2 and~3, with
\optionsor{mkidx,xdy,b2g} the location list will appear as 1--3, but
with \option{noidx} it
will appear as 1, 2, 3. If you don't want the locations displayed
you can hide them using the \opt{nonumberlist} package option:
\begin{codebox}
\cmd{usepackage}[\opt{nonumberlist}]\marg{glossaries}
\end{codebox}
or with \app{bib2gls} use \resourceoptval{save-locations}{false} in the
optional argument of the appropriate \gls{GlsXtrLoadResources}
(it's possible to have some resource sets with locations and some
without).

Entries are grouped according to the first letter of
each entry's \gloskey{sort} key. By default a~vertical gap is placed
between letter groups for most of the predefined styles. You can suppress this with the
\opt{nogroupskip} package option:
\begin{codebox}
\cmd{usepackage}[\opt{nogroupskip}]\marg{glossaries}
\end{codebox}

If the default style doesn't suit your document, you can change the
style using:
\cmddef{setglossarystyle}
\dickimawhref{gallery/glossaries-styles/}{There are a~number of predefined styles.} Glossaries can vary from
a~list of symbols with a~terse description to a~list of words or
phrases with descriptions that span multiple paragraphs, so there's
no \qt{one style fits all} solution. You need to choose a~style that
suits your document. For example:
\begin{codebox*}
\gls{setglossarystyle}\marg{\glostyle{index}}
\end{codebox*}
You can also use the \opt{style} package option for the preloaded
styles. For example:
\begin{codebox}
\cmd{usepackage}[\optval{style}{index}]\marg{glossaries}
\end{codebox}

Examples:
\begin{enumerate}
 \item You have entries where the name is a~symbol and the
 description is a~brief phrase or short sentence. Try one of the 
 \qt{mcol} styles defined in the \sty{glossary-mcols} package. For example:
\begin{codebox}
\cmd{usepackage}[\opt{nopostdot}]\marg{glossaries}
\cmd{usepackage}\marg{glossary-mcols}
\gls{setglossarystyle}\marg{\glostyle+{mcolindex}}
\end{codebox}
or
\begin{codebox*}
\cmd{usepackage}[\optval{stylemods}{mcols},\optval{style}{mcolindex}]\marg{glossaries-extra}
\end{codebox*}

 \item You have entries where the name is a~word or phrase and the
description spans multiple paragraphs. Try one of the \qt{altlist} styles. For
example:
\begin{codebox}
\cmd{usepackage}[\opt{nopostdot}]\marg{glossaries}
\gls{setglossarystyle}\marg{\glostyle+{altlist}}
\end{codebox}
or
\begin{codebox}
\cmd{usepackage}[\opt{stylemods},\optval{style}{altlist}]\marg{glossaries-extra}
\end{codebox}

 \item You have entries where the name is a~single word, the
  description is brief, and an associated symbol has been set.
  Use one of the styles that display the symbol (not all of them do). 
  For example, one of the tabular styles:
\begin{codebox}
\cmd{usepackage}[\opt{nopostdot},\opt{nonumberlist},\optval{style}{\glostyle+{long4col}}]{glossaries}
\end{codebox}
or one of the \qt{tree} styles:
\begin{codebox}
\cmd{usepackage}[\opt{nopostdot},\opt{nonumberlist},\optval{style}{tree}]\marg{glossaries}
\end{codebox}
\end{enumerate}

If your glossary consists of a~list of abbreviations and you also want to
specify a~description as well as the long form, then you need to use
an abbreviation style that will suit the glossary style. For example,
use the \acrstyle{long-short-desc} acronym style:
\begin{codebox*}
\gls{setacronymstyle}\marg{\acrstyle{long-short-desc}}
\end{codebox*}
Define the acronyms with a~description:
\begin{codebox*}
\gls{newacronym}
 \oarg{\gloskeyval{description}{statistical pattern recognition technique}}
 \marg{svm}\marg{SVM}\marg{support vector machine}
\end{codebox*}
Alternatively with \sty{glossaries-extra}:
\begin{codebox*}
\gls{setabbreviationstyle}\marg{\acrstyle{long-short-desc}}
\codepar
\gls{newabbreviation}
 \oarg{\gloskeyval{description}{statistical pattern recognition technique}}
 \marg{svm}\marg{SVM}\marg{support vector machine}
\end{codebox*}

Choose a~glossary style that suits wide entry names. For example:
\begin{codebox*}
\gls{setglossarystyle}\marg{\glostyle{altlist}}
\end{codebox*}

\section{Multiple Glossaries}
\label{sec:multigloss}

The \sty{glossaries} package predefines a~default \code{main}
\idx{glossary}. When you define an entry (using one of the commands
described in \sectionref{sec:defterm}), that entry is automatically
assigned to the default \idx{glossary}, unless you indicate otherwise 
using the \gloskey{type} key. However you first need to
make sure the desired \idx{glossary} has been defined. This is done using:
\cmddef{newglossary}
The \meta{glossary-label} is a~label that uniquely identifies this new
\idx{glossary}. As with other types of identifying labels, be careful not
to use active characters in \meta{label}. The final argument
\meta{title} is the section or chapter title used by
\gls{printglossary}, \gls{printnoidxglossary} or
\gls{printunsrtglossary}. The other arguments
indicate the file extensions used by
\app{makeindex} or \app{xindy} (described in
\sectionref{sec:printglossaries}). If you're not using either
\app{makeindex} or \app{xindy}, 
then the \meta{log-ext}, \meta{in-ext} and \meta{out-ext} arguments aren't
relevant, in which case you may prefer to use the starred version
where those arguments are omitted:
\cmddef{newglossary*}

In the case of \optionsor{mkidx,xdy}, all new \idxpl{glossary} must
be defined before \gls{makeglossaries}. (\emph{Entry} definitions
should come after \gls{makeglossaries}.) In the case of
\option{b2g}, all new \idxpl{glossary} must be defined before any
\gls{GlsXtrLoadResources} that requires them.

Since it's quite common for documents to have both a~list of terms
and a~list of abbreviations, the \sty{glossaries} package provides the
package option \opt{acronyms} (or \opt{acronym}), which 
is a~convenient shortcut for
\begin{compactcodebox}
\gls{newglossary}\oarg{\ext+{alg}}\marg{acronym}\marg{\ext+{acr}}\marg{\ext+{acn}}\marg{\gls+{acronymname}}
\end{compactcodebox}
The option also changes the behaviour of \gls{newacronym} so that acronyms
are automatically put in the list of acronyms instead of the main
glossary. The \sty{glossaries-extra} package also supports the
\opt{acronyms} option for abbreviations defined using \gls{newacronym} but
additionally has the package option \opt{abbreviations} to create
a list of abbreviations for \gls{newabbreviation}.

There are some other package options for creating commonly used
lists: \opt{symbols} (lists of symbols), \opt{numbers} (lists
of numbers), \opt{index} (an index). Since indexes don't
typically have descriptions, the \opt{index} option also defines:
\cmddef{newterm}
This is just a shortcut that uses \gls{newglossaryentry} with the
\gloskey{name} set to \meta{entry-label} and the \gloskey{description} is
suppressed.

For example, suppose you want a~main glossary for terms, a~list of
acronyms and a~list of notation:
\begin{codebox}
\cmd{usepackage}[\opt{acronyms}]\marg{glossaries}
\gls{newglossary}\oarg{nlg}\marg{notation}\marg{not}\marg{ntn}\marg{Notation}
\end{codebox}
After \gls{makeglossaries} (or \gls{makenoidxglossaries}) you can
define the entries in the preamble. For example:
\begin{codebox}
\gls{newglossaryentry}\marg{gls:set}
\marg{\comment{This entry goes in the `main' glossary}
  \gloskeyval{name}{set},
  \gloskeyval{description}{A collection of distinct objects}
}
\codepar
\comment{This entry goes in the `acronym' glossary:}
\gls{newacronym}\marg{svm}\marg{svm}\marg{support vector machine}
\codepar
\gls{newglossaryentry}\marg{not:set}
\marg{\comment{This entry goes in the `notation' glossary:}
  \gloskeyval{type}{notation},
  \gloskeyval{name}{\cmd{ensuremath}\marg{\cmd{mathcal}\marg{S}}},
  \gloskeyval{description}{A set},
  \gloskeyval{sort}{S}}
\end{codebox}
or if you don't like using \csfmt{ensuremath}:
\begin{codebox}
\gls{newglossaryentry}\marg{not:set}
\marg{\comment{This entry goes in the `notation' glossary:}
  \gloskeyval{type}{notation},
  \gloskeyval{name}{\$\cmd{mathcal}\marg{S}\$},
  \gloskeyval{text}{\cmd{mathcal}\marg{S}},
  \gloskeyval{description}{A set},
  \gloskeyval{sort}{S}
}
\end{codebox}

Each glossary is displayed using:
\begin{compactcodebox*}
\gls{printnoidxglossary}\oarg{\printglossoptval{type}{\meta{type}}}
\end{compactcodebox*}
(\option{noidx}) or
\begin{compactcodebox*}
\gls{printglossary}\oarg{\printglossoptval{type}{\meta{type}}}
\end{compactcodebox*}
(\options{mkidx,xdy}). Where \meta{type} is the glossary label. If the
type is omitted the default \code{main} glossary is assumed.

If you're using \app{bib2gls} then each glossary is displayed
using:
\begin{compactcodebox*}
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{\meta{type}}}
\end{compactcodebox*}
With this method you don't use \gls{makeglossaries} or
\gls{makenoidxglossaries}. Instead you can assign the entry type
with the resource command. For example:
\begin{codebox*}
\cmd{usepackage}[\opt{record},\opt{abbreviations},\opt{symbols}]\marg{glossaries-extra}
\codepar
\gls{GlsXtrLoadResources}\oarg{
 \resourceoptvalm{src}{terms}, \comment{entries defined in terms.bib}
 \resourceoptval{type}{main}\comment{put in main glossary}
}
\gls{GlsXtrLoadResources}\oarg{
 \resourceoptvalm{src}{abbrvs}, \comment{entries defined in abbrvs.bib}
 \resourceoptval{type}{abbreviations}\comment{put in abbreviations glossary}
}
\gls{GlsXtrLoadResources}\oarg{
 \resourceoptvalm{src}{syms}, \comment{entries defined in syms.bib}
 \resourceoptval{type}{symbols}\comment{put in symbols glossary}
}
\end{codebox*}
Later in the document:
\begin{codebox*}
\gls{printunsrtglossary} \comment{main}
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{abbreviations}}
\gls{printunsrtglossary}\oarg{\printglossoptval{type}{symbols}}
\end{codebox*}

There's a~convenient shortcut that will display all the defined
glossaries depending on the indexing method:
\cmddef{printnoidxglossaries}
(\option{noidx}) or
\cmddef{printglossaries}
(\options{mkidx,xdy}) or (\sty{glossaries-extra} only)
\cmddef{printunsrtglossaries}

If you use \optionsor{noidx,b2g}, you don't need to do anything different
for a document with multiple \idxpl{glossary}. If you use
\optionsor{mkidx,xdy} with the \app{makeglossaries} Perl script or the
\app{makeglossaries-lite} Lua script, you
similarly don't need to do anything different to the document build
(compared to building a document with only one \idx{glossary}).

If you use \optionsor{mkidx,xdy} without the \app{makeglossaries}
Perl script or \app{makeglossaries-lite} Lua script then you need to
make sure you run \app{makeindex}\slash\app{xindy} \emph{for each
defined glossary}. The \meta{gls} and \meta{glo} arguments of
\gls{newglossary} specify the file extensions to use instead of
\ext+{gls} and \ext+{glo}. The optional argument \meta{glg} is the
file extension for the transcript file. This should be different for
each glossary in case you need to check for
\app{makeindex}\slash\app{xindy} errors or warnings if things go
wrong.

For example, suppose you have three glossaries in your document
(\code{main}, \code{acronym} and \code{notation}), 
specified using:
\begin{codebox}
\cmd{usepackage}[\opt{acronyms}]\marg{glossaries}
\gls{newglossary}\oarg{nlg}\marg{notation}\marg{not}\marg{ntn}\marg{Notation}
\end{codebox}
Then (assuming your \LaTeX\ document is in a~file called
\filefmt{myDoc.tex}):

\begin{description}
\item\option{mkidx}:
Either use one \app{makeglossaries} or
\app{makeglossaries-lite} call:
\begin{terminal}
makeglossaries myDoc
\end{terminal}
or
\begin{terminal}
makeglossaries-lite myDoc
\end{terminal}
Or you need to run \app{makeindex} three times:
\begin{terminal}
makeindex -t myDoc.glg -s myDoc.ist -o myDoc.gls myDoc.glo
makeindex -t myDoc.alg -s myDoc.ist -o myDoc.acr myDoc.acn
makeindex -t myDoc.nlg -s myDoc.ist -o myDoc.not myDoc.ntn
\end{terminal}

\item\option{xdy}:
Either use one \app{makeglossaries} call:
\begin{terminal}
makeglossaries myDoc
\end{terminal}
Or you need to run \app{xindy} three times (be careful not to insert
line breaks where the line has wrapped.)
\begin{terminal}
xindy -L english -C utf8 -I xindy -M myDoc -t myDoc.glg -o myDoc.gls myDoc.glo
xindy -L english -C utf8 -I xindy -M myDoc -t myDoc.alg -o myDoc.acr myDoc.acn
xindy -L english -C utf8 -I xindy -M myDoc -t myDoc.nlg -o myDoc.not myDoc.ntn
\end{terminal}

\item\option{b2g}:
With \app{bib2gls} only one call is required:
\begin{terminal}
pdflatex myDoc
bib2gls \switch{group} myDoc
pdflatex myDoc
\end{terminal}
(Omit \switch{group} if you don't need letter groups.)
\end{description}

\section{Hyperlinks (\stytext{glossaries} and \stytext{hyperref})}
\label{sec:hyperref}

Take care if you use the \sty{glossaries} package with
\sty{hyperref}. Contrary to the usual advice that \sty{hyperref}
should be loaded last, \sty{glossaries} (and \sty{glossaries-extra}) 
must be loaded \emph{after} \sty{hyperref}:
\begin{codebox}
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}\marg{glossaries}
\end{codebox}
If you use \sty{hyperref} make sure you use \pdfLaTeX\ rather than
the \LaTeX\ to DVI engine. The DVI format can't break hyperlinks across
a~line so long glossary entries (such as the full form of acronyms)
won't line wrap with the DVI engine. Also, hyperlinks in sub- or
superscripts aren't correctly sized with the DVI format.

By default, if the \sty{hyperref} package has been loaded, commands
like \gls{gls} will form a~hyperlink to the relevant entry in the
\idx{glossary}. If you want to disable this for \emph{all} your
glossaries, then use:
\cmddef{glsdisablehyper}
If you want hyperlinks suppressed for entries in specific
glossaries, then use the \opt{nohypertypes} package option. For
example, if you don't want hyperlinks for entries in the \code{acronym} and
\code{notation} glossaries but you do want them for entries in the
\code{main} glossary, then do:
\begin{codebox}
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}[\opt{acronym},\optvalm{nohypertypes}{acronym,notation}]\marg{glossaries}
\gls{newglossary}\oarg{nlg}\marg{notation}\marg{not}\marg{ntn}\marg{Notation}
\end{codebox}

If you want the hyperlinks suppressed the first time an entry is
used, but you want hyperlinks for subsequence references then use
the \optval{hyperfirst}{false} package option:
\begin{codebox}
\cmd{usepackage}[colorlinks]\marg{hyperref}
\cmd{usepackage}[\optval{hyperfirst}{false}]\marg{glossaries}
\end{codebox}
The \sty{glossaries-extra} extension package provides another method
using category attributes. See the \sty{glossaries-extra} user
manual for further details.

Take care not to use non-expandable commands in PDF bookmarks. This
isn't specific to the \sty{glossaries} package but is a~limitation
of PDF bookmarks. Non-expandable commands include commands like 
\gls{gls}, \gls{glspl}, \gls{Gls} and \gls{Glspl}. The \sty{hyperref}
package provides a~way of specifying alternative text for the PDF
bookmarks via \gls{texorpdfstring}. For example:
\begin{codebox}
\cmd{section}\marg{The \gls{texorpdfstring}\marg{\gls{gls}\marg{fishage}}\marg{Fish Age}}
\end{codebox}
However, it's not a~good idea to use commands like \gls{gls} in
a~section heading as you'll end up with the table of contents page in 
your location list and it will unset the \idx{firstuseflag} too soon. 
Instead you can use
\cmddef{glsentrytext}
This is expandable provided that the \gloskey{text} key doesn't
contain non-expandable code. For example, the following works:
\begin{codebox}
\cmd{section}\marg{The \gls{glsentrytext}\marg{fishage}}
\end{codebox}
and it doesn't put the table of contents in the location list.

If you use \sty{glossaries-extra} then use the commands that are
provided specifically for use in section headers. For example:
\begin{codebox*}
\cmd{section}\marg{The \gls{glsfmttext}\marg{fishage}}
\end{codebox*}

\section{Cross-References}
\label{sec:xr}

You can add a~reference to another entry in a~location list using
the \gloskeyval{see}{\meta{label-list}} key when you define an entry. 
The referenced entry (or entries) must also be defined.

For example:
\begin{codebox}
\gls{longnewglossaryentry}\marg{devonian}\marg{\gloskeyval{name}{Devonian}}\comment{}
\marg{\comment{}
  The geologic period spanning from the end of the 
  Silurian Period to the beginning of the Carboniferous Period.
\codepar
  This age was known for its remarkable variety of 
  fish species.
}
\codepar
\gls{newglossaryentry}\marg{fishage}
\marg{
  \gloskeyval{name}{Fish Age},
  \gloskeyval{description}{Common name for the Devonian period},
  \gloskeyval{see}{devonian}
}
\end{codebox}
The cross-reference will appear as \qt{\emph{see} Devonian}. You can
change the \qt{see} tag for an individual entry using the format
\gloskeyval{see}{\oargm{tag}\meta{label-list}}. For example:
\begin{codebox}
\gls{newglossaryentry}\marg{latinalph}
\marg{
  \gloskeyval{name}{Latin alphabet},
  \gloskeyval{description}{alphabet consisting of the letters 
  a, \cmd{ldots}, z, A, \cmd{ldots}, Z},
  \gloskey{see}=[see also]\marg{exlatinalph}
}
\gls{newglossaryentry}\marg{exlatinalph}
\marg{
   \gloskeyval{name}{extended Latin alphabet},
   \gloskeyval{description}{The Latin alphabet extended to include 
   other letters such as ligatures or diacritics.}
}
\end{codebox}
In the above, I haven't enclosed the entire value of the
\gloskey{see} key in braces.
If you use the \gloskey{see} key in an optional argument, such as
the optional argument of \gls{newacronym}, make sure you enclose the 
value (including the optional tag) in braces. For example:
\begin{codebox}
\gls{newacronym}\marg{ksvm}\marg{ksvm}\marg{kernel support vector machine}
\gls{newacronym}
 \oarg{\gloskeyval{see}{[see also]\marg{ksvm}}}
 \marg{svm}\marg{svm}\marg{support vector machine}
\end{codebox}
The \sty{glossaries-extra} package provides a \gloskey{seealso}
key. This doesn't allow a tag but behaves much like
\gloskeyval{see}{[\gls{seealsoname}]\margm{label-list}}. For example:
\begin{codebox}
\gls{newabbreviation}\marg{ksvm}\marg{ksvm}\marg{kernel support vector machine}
\gls{newabbreviation}
 \oarg{\gloskeyval{seealso}{ksvm}}
 \marg{svm}\marg{svm}\marg{support vector machine}
\end{codebox}

Since the cross-reference appears in the location list, if you
suppress the location list using the \opt{nonumberlist} package
option, then the cross-reference will also be suppressed. With
\app{bib2gls}, don't use the \opt{nonumberlist} package
option. Instead use \resourceoptval{save-locations}{false} in the resource
options. For example:
\begin{codebox}
\cmd{usepackage}[\opt{record},\opt{abbreviations},\opt{symbols}]\marg{glossaries-extra}
\codepar
\gls{GlsXtrLoadResources}\oarg{
 \resourceoptvalm{src}{terms}, \comment{entries defined in terms.bib}
 \resourceoptval{type}{main}\comment{put in main glossary}
}
\gls{GlsXtrLoadResources}\oarg{
 \resourceoptvalm{src}{abbrvs}, \comment{entries defined in abbrvs.bib}
 \resourceoptval{type}{abbreviations},\comment{put in abbreviations glossary}
 \resourceoptval{save-locations}{false}\comment{no number list for these entries}
}
\gls{GlsXtrLoadResources}\oarg{
 \resourceoptvalm{src}{syms}, \comment{entries defined in syms.bib}
 \resourceoptval{type}{symbols}\comment{put in symbols glossary}
}
\end{codebox}

\section{Further Information}
\label{sec:moreinfo}

\begin{itemize}
\item \ctanmirrordocnofn{support/bib2gls/bib2gls-begin}{\styfmt{glossaries-extra}
and \appfmt{bib2gls}: an introductory guide}.
\item The main \sty{glossaries} \docref{user manual}{glossaries-user}.
\item The \dickimawhrefnofn{faqs/glossariesfaq.html}{glossaries FAQ}.
\item \dickimawhrefnofn{latex/buildglossaries/}{Incorporating
makeglossaries or makeglossaries-lite or bib2gls into the document
build}.
\item The \href{https://ctan.org/pkg/glossaries-extra}{\styfmt{glossaries-extra}} package.
\item The \href{https://ctan.org/pkg/bib2gls}{\appfmt{bib2gls}}
application.
\end{itemize}
The \gallery{Dickimaw Books Gallery} provides additional example documents.

\printterms
\printsummary
\printuserguideindex

\end{document}