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
|
% \iffalse (meta-comment)
%
% Doc-Source file to use with LaTeX2e
%
% Copyright 1994-2020 by Tobias Oetiker (tobi@oetiker.ch) and many Contributors.
% All rights reserved.
%
% This work may be distributed and/or modified under the conditions of
% the LaTeX Project Public License, either version 1.3 of this license
% or (at your option) any later version. The latest version of the
% license is in
%
% http://www.latex-project.org/lppl.txt
%
% and version 1.3 or later is part of all distributions of LaTeX
% version 2003/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
% The Current Maintainer of this work is Tobias Oetiker (tobi@oetiker.ch).
%
%<*driver>
\documentclass{ltxdoc}
\usepackage{acronym} % to get file info
\EnableCrossrefs
%\DisableCrossrefs % say \DisableCrossrefs if index is ready
\CodelineIndex
\RecordChanges % gather update information
%\OnlyDescription % comment out for implementation details
%\OldMakeindex % use if your MakeIndex is pre-v2.9
\setlength\hfuzz{15pt} % dont make so many
\hbadness=7000 % over and under full box warnings
\begin{document}
\DocInput{acronym.dtx}
\end{document}
%</driver>
% \fi
%
% \CheckSum{1526}
%
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
%%
%
%
% \DoNotIndex{\@auxout, \@bsphack, \@car, \@esphack, \@firstoftwo,
% \@gobble, \@ifnextchar,
% \@ifpackageloaded, \@nil, \@secondoftwo, \\}
% \DoNotIndex{\addtolength, \AtBeginDocument}
% \DoNotIndex{\begin, \begingroup, \bflabel}
% \DoNotIndex{\csname}
% \DoNotIndex{\DeclareOption, \def, \documentclass}
% \DoNotIndex{\edef, \else, \end, \endcsname, \endgroup, \endinput,
% \ensuremath, \expandafter}
% \DoNotIndex{\fi, \footnote}
% \DoNotIndex{\gdef, \global}
% \DoNotIndex{\hfill, \hyperlink, \hyperref, \hypertarget}
% \DoNotIndex{\if@filesw, \ifx, \item}
% \DoNotIndex{\label, \labelsep, \labelwidth, \leftmargin, \let,
% \long}
% \DoNotIndex{\makelabel, \mathrm}
% \DoNotIndex{\NeedsTeXFormat, \newcommand, \newenvironment,
% \newif, \newtoks, \noexpand, \nolinebreak, \null}
% \DoNotIndex{\PackageWarning, \ProcessOptions, \protect,
% \protected@write, \providecommand, \ProvidesPackage}
% \DoNotIndex{\raggedright, \ref, \relax, \renewcommand,
% \RequirePackage}
% \DoNotIndex{\S, \section, \setlength, \settowidth, \string,
% \subsection}
% \DoNotIndex{\textbf, \textsf, \textsmaller, \textsuperscript, \the}
% \DoNotIndex{\usepackage}
%
% \changes{v1.47}{2020/04/10}{Tobi Oetiker and Marcus Meeßen \cmd{hskip} Fixed several bugs in macros that use capitalisation, a bug were the output depends on the position of the list of acronyms, and a bug were nested hyperlinks could cause errors.}
% \changes{v1.46}{2020/03/13}{Tobi Oetiker \cmd{hskip} Fixed miss merge}
% \changes{v1.45}{2020/03/13}{Marcus Meeßen \cmd{hskip} Fixed hyperref and "missing aux" regressions.}
% \changes{v1.44}{2020/02/07}{Marcus Meeßen \cmd{hskip} Added the |printonlyreused| option, which allows to automatically exclude acronyms from the list of acronyms if they are used only once}
% \changes{v1.43}{2020/02/05}{Marcus Meeßen \cmd{hskip} Fixed unconventional dots spacing in list of acronyms, enhanced list of acronyms with hyperrefs, and fixed collisions between acronyms and package commands, which can be turned of with the |noacroprefix| option}
% \changes{v1.42}{2019/11/11}{Philippe Chauvat \cmd{hskip} Fix the carriage return with long lines, Tobi Oetiker and Horst Schirmeier fixed usedflag and page number entries for acfi and Acfi}
% \changes{v1.41}{2015/03/21}{Tobi Oetiker and Jason Mills \cmd{hskip} fix nameing conflicts with pageslts package}
% \changes{v1.40}{2014/09/29}{Hartmut Henkel - remove \cmd{hskip} instances, since they cause bad formating since space at the end of a line can not be collapsed anymore}
% \changes{v1.39}{2014/08/14}{Yann Leprince - make the appearance of labels consistent whether or not the acronym environment has its optional argument provided}
% \changes{v1.38}{2012/10/09}{Ash Hughes - add support for dynamic indefinite articles depending on the acronym form used}
% \changes{v1.37}{2012/09/04}{Martin Falk - ac* should NOT set the used flag ... now it does not. Martin Ruessler found fix for non hyphenation in the first word of the long form of the acronym}
% \changes{v1.36}{2010/09/08}{Uwe Bieling disable hyperlinks in nolist mode, prevent hyphenation of short form of acronyms}
% \changes{v1.35}{2009/10/20}{Sergio Callegari added support for nonstandard plural forms and fixed management of default short form.}
% \changes{v1.34}{2009/01/25}{make sure that the s of acp get smaller as well when the smaller option is active}
% \changes{v1.33}{2008/12/19}{enrico.gregorio provided a patch for makeing non-description acronym lists work}
% \changes{v1.32}{2008/05/28}{Ulrich Diez again altered code to redefine labels in order to cope with unreproducable bug-reports. Warnings turnrd into infos for the sake of decreasing frightening-level}
% \changes{v1.31}{2008/05/21}{Philipp Lehman noted a nameconflict with jurabib. Renamed clearlist to AC@clearlist since it is internal anyway}
% \changes{v1.30}{2008/04/22}{Ulrich Diez corrected code to redefine labels and adjusted behavior with \cmd{\AC@used}}
% \changes{v1.29}{2008/04/22}{added code to redefine labels as acronyms are used multiple times, makeing the right page numbers show up for the withpage option (code by Ulrich Diez on comp.text.tex, integration by Domagoj Babic, babic AT cs.ubc.ca)}
% \changes{v1.28}{2008/04/19}{add linebreak to items list by tobi}
% \changes{v1.27}{2008/04/18}{Added withpage option to print page numbers into acronym list by tobi and Domagoj Babic, babic AT cs.ubc.ca}
% \changes{v1.26}{2006/06/26}{Don't put out an empty item if nolist is in effect by Immo.Koester@rwth-aachen.de}
% \changes{v1.25}{2005/11/11}{Properly handle acronym commands in PDF Bookmarks by Heiko Oberdiek oberdiek@uni-freiburg.de}
% \changes{v1.24}{2005/10/25}{Now the acronyms commands and fixed a bug in the option nolist, by Jose Emilio Vila Forcen, jemilio@ieee.org}
% \changes{v1.23}{2005/10/24}{Fix fpr nolist option by Tobi}
% \changes{v1.22}{2005/10/04}{added starred versions of ac(p), acf(p), acs(p), acl(p), acfi, acsu \& aclu by Stefan Pinnow (Mo-Gul@gmx.net)}
% \changes{v1.21}{2005/09/20}{fixed acused again by Tobi. added option nolist, by Jose Emilio Vila Forcen, jemilio@ieee.org}
% \changes{v1.20}{2005/08/16}{make acused actually work. by Richard.Walker with cs.anu.edu.au}
% \changes{v1.19}{2005/04/26}{three new commands acused (set-used), acsu (adds to used), aclu (adds to used) by Lee Netherton ltn100@ohm.york.ac.uk}
% \changes{v1.18}{2005/04/01}{added additionaly format option for Full Name (acfi) command by Manuel G"ortz mgoertz@kom.tu-darmstadt.de}
% \changes{v1.17}{2004/11/10}{added don't use acronyms (dua) option by Oliver Creighton}
% \changes{v1.16}{2004/11/03}{fixed version number -- tobi}
% \changes{v1.15}{2004/11/02}{make acresetall work even when ac is called in environments by ctt}
% \changes{v1.14}{2004/10/08}{fix acsp and acfp for footnote mode by Markus Ortner m.ortner@icie.jku.at}
% \changes{v1.13}{2004/07/29}{deflist renamed to AC@deflist to
% avoid unnecessary nameing conflict. Found by peter.may@philips.com.
% fixed prinonlyused option, it was ON all the time by Tobi. Foonotes were
% not adding to the clear list by Tobi.}
% \changes{v1.12}{2004/06/08}{Make acronyms robust and compatible
% with pdf bookmarks by Danie Els (dnjels@sun.ac.za).}
% \changes{v1.11}{2004/06/04}{make hyperlinks work inside optional
% item text by replaceing hypertarget with raisedhypertarget by
% Martin Salois (Martin.Salois@drdc-rddc.gc.ca). Added note on fragility by Tobi}
% \changes{v1.10a}{2004/05/26}{Fix for the bug of a \cs{}\cs{} following
% an acronym. Add footnote optional out for \cmd{\acs} by Danie Els
% (dnjels@sun.ac.za).}
% \changes{v1.10}{2004/05/25}{Fix for list of acronyms in front
% matter and addition of \cmd{\acroextra} command by Danie Els
% (dnjels@sun.ac.za).}
% \changes{v1.09}{2003/10/26}{Fixed hyperref support by Danie Els
% (dnjels@sun.ac.za), make sure not only \cmd{\ac} sets acronyms
% as used but direct calls to \cmd{\acs} and \cmd{\acf} and
% \cmd{\acl} as well by Tobi.}
% \changes{v1.08}{2003/10/20}{Added hyperref support and the
% option \texttt{nohyperref} provided by Martin Salois
% (martin.salois@drdc-rddc.gc.ca)}
% \changes{v1.07}{2003/02/11}{Added \cs{acresetall} to reset the
% 'uses' - flag of \cmd{\ac}, new option \texttt{printonlyused},
% new possible format for the list. provided by Sebastian Max
% (smx@comnets.rwth-aachen.de)}
% \changes{v1.06}{2000/05/21}{Added the smaller option and
% macros to control the appearance of \cmd{\acf} and \cmd{\acs}
% provided by Ingo Lepper (lepper@math.uni-muenster.de)}
% \changes{v1.05}{2000/05/11}{Added new commands for handling
% English plural forms of acronyms and the \texttt{footnote}
% option provided by David.C.Sterratt@ed.ac.uk}
% \changes{v1.04}{2000/02/09}{Optional argument for \cmd{\acro} and
% \cmd{\acrodef}, allowing formatting of the acronym itself
% provided by Heiko Oberdiek (oberdiek@ruf.uni-freiburg.de)}
% \changes{v1.03}{1996/09/19}{Fixed dtx file ... could not be printed}
% \changes{v1.02}{1996/08/14}{Added \cmd{\acl} command patch provided by
% Ted Stern (stern@amath.washington.edu)}
%
%
% \GetFileInfo{acronym.sty}
%
% \title{An Acronym Environment for \LaTeXe\thanks{^^A
% This file has version number \fileversion,
% last revised \filedate.}}
% \author{Tobias Oetiker}
% \date{\filedate}
% \maketitle
%
%
% \section{Introduction}
% When writing a paper on cellular mobile radio I started to use a
% lot of acronyms. This can be very disturbing for the reader,
% as he might not know all the used acronyms. To help the reader
% I kept a list of all the acronyms at the end of my paper.
%
% This package makes sure, that all acronyms used in the text are
% spelled out in full at least once.
%
% \section{The user interface}
% The package provides several commands and one environment
% for dealing with acronyms. Their appearance can be controlled by
% two package options and three macros.
%
% \subsection{Acronyms in the Text}
%
% \DescribeMacro{\ac}
% To enter an acronym inside the text, use the
% \begin{quote}
% |\ac[|\meta{linebreak penalty}|]{|\meta{acronym}|}|
% \end{quote}
% command. The first time you use an acronym, the full name of the
% acronym along with the acronym in brackets will be printed. If you
% specify the |footnote| option while loading the package, the full
% name of the acronym is printed as a footnote.
% The next time you access the acronym only the acronym will
% be printed.
%
% When an acronym is being used, for the first time (with the |footnote|
% option not specified), next to the end of the line, a line break between
% the full name of the acronym and the acronym in brackets can be
% encountered. The optional variable represents the penalty level of
% breaking the line at that place, taking integer values between 0 and 4.
% A higher number corresponds to a higher penalty.
%
% \DescribeMacro{\Ac}
% Works in the same way as \cmd{\ac}, but starts the long form with an
% upper case letter. Use case: when the acronym is used for the first
% time, at the beginning of a sentence.
%
% \DescribeMacro{\acresetall}
% The 'memory' of the macro \cmd{\ac} can be flushed by calling the macro
% \cmd{\acresetall}. Afterwards, \cmd{\ac} will print the full name of any
% acronym and the acronym in brackets the next time it is used.
%
% \DescribeMacro{\acf}
% If later in the text again the Full Name of the acronym should be
% printed, use the command
% \begin{quote}
% |\acf[|\meta{linebreak penalty}|]{|\meta{acronym}|}|
% \end{quote}
% to access the acronym. It stands for ``full acronym'' and it
% always prints the full name and the acronym in brackets.
%
% When an full acronym is being used next to the end of the line, a line
% break between the full name of the acronym and the acronym in brackets
% can be encountered. The optional variable represents the penalty level
% of breaking the line at that place, taking integer values between 0
% and 4. A higher number corresponds to a higher penalty.
%
% \DescribeMacro{\Acf}
% Works in the same way as \cmd{\acf}, but starts the long form with an
% upper case letter.
%
% \DescribeMacro{\acs}
% To get the short version of the acronym, use the command
% \begin{quote}
% |\acs{|\meta{acronym}|}|
% \end{quote}
%
% \DescribeMacro{\acl}
% Gives you the expanded acronym without even mentioning the
% acronym.
% \begin{quote}
% |\acl{|\meta{acronym}|}|
% \end{quote}
%
% \DescribeMacro{\Acl}
% Works in the same way as \cmd{\acl}, but starts with an upper case
% letter.
%
% \DescribeMacro{\acp}
% Works in the same way as \cmd{\ac}, but makes the short and/or
% long forms into plurals.
%
% \DescribeMacro{\Acp}
% Works in the same way as \cmd{\acp}, but starts the long form with an
% upper case letter.
%
% \DescribeMacro{\acfp}
% Works in the same way as \cmd{\acf}, but makes the short and
% long forms into plurals.
%
% \DescribeMacro{\Acfp}
% Works in the same way as \cmd{\acfp}, but starts the long form with an
% upper case letter.
%
% \DescribeMacro{\acsp}
% Works in the same way as \cmd{\acs}, but makes the short
% form into a plural.
%
% \DescribeMacro{\aclp}
% Works in the same way as \cmd{\acl}, but makes the long form
% into a plural.
%
% \DescribeMacro{\Aclp}
% Works in the same way as \cmd{\aclp}, but starts with an upper case
% letter.
%
% \DescribeMacro{\acfi}
% Works in the same way as \cmd{\acf}, but prints the Full Name acronym
% (\cmd{\acl}) in italics and the abbreviated form (\cmd{\acs}) in
% upshaped form.
%
% \DescribeMacro{\Acfi}
% Works in the same way as \cmd{\acfi}, but starts the long form with an
% upper case letter.
%
% \DescribeMacro{\acused}
% Marks an acronym as used, as if it had been called with \cmd{\ac},
% but without printing anything. This means that in the future only the
% short form of the acronym will be printed.
%
% \DescribeMacro{\acsu}
% Prints the short form of the acronym and marks it as used.
%
% \DescribeMacro{\aclu}
% Prints the long form of the acronym and marks it as used.
%
% \DescribeMacro{\Aclu}
% Works in the same way as \cmd{\aclu}, but starts with an upper case
% letter.
%
% Example: |\acl{lox}/\acl{lh2} (\acsu{lox}/\acsu{lh2})|
%
% \DescribeMacro{\iac}
% Works in the same way as the \cmd{\ac} command but prefixes it with
% an appropriate indefinite article.
%
% \DescribeMacro{\Iac}
% Works in the same way as the \cmd{\ac} command but prefixes it with
% an appropriate upper case indefinite article.
%
% \DescribeMacro{\...*}
% The following commands do the same as their unstarred forms, except
% that the acronym will not be marked as used. If you work with the 'onlyused'
% option then macros which have only been used with starred commands will
% not show up.\\
% \cmd{\ac*}, \cmd{\Ac*}, \cmd{\acs*}, \cmd{\acl*}, \cmd{\Acl*}, \cmd{\acf*},
% \cmd{\Acf*}, \cmd{\acp*}, \cmd{\Acp*}, \cmd{\acsp*}, \cmd{\aclp*}, \cmd{\Aclp*},
% \cmd{\acfp*}, \cmd{\Acfp*}, \cmd{\acfi*}, \cmd{\Acfi*}, \cmd{\acsu*},
% \cmd{\aclu*}, \cmd{\Aclu*}, \cmd{\iac*} and \cmd{\Iac*}.
%
% \subsection{Customization}
%
% The appearance of \cmd{\acs} and \cmd{\acf} can be configured
% in various ways. Of main importance are the package options:
% \begin{description}
% \item[\normalfont|footnote|]
% makes the full name of the acronym appear as a footnote.
% \item[\normalfont|smaller|]
% lets the acronyms appear a bit smaller than the surrounding
% text. This is in accord with typographic convention.
% The |relsize| package is required.
% \end{description}
%
% There are three lower-level macros controlling the output.
% Any acronym printed by \cmd{\acs} is formatted
% by \DescribeMacro{\acsfont}\cmd{\acsfont}. Similarly, unless the
% option |footnote| is specified, \DescribeMacro{\acffont}\cmd{\acffont}
% handles the output of \cmd{\acf}, where the included acronym
% goes through \DescribeMacro{\acfsfont}\cmd{\acfsfont} (and
% \cmd{\acsfont}).
% The plural and upper case forms are treated accordingly. Usually the
% three macros do nothing. To give an example, the option |smaller|
% makes \cmd{\acsfont} use the command \cmd{\textsmaller} from the
% |relsize| package:
% \begin{quote}
% |\renewcommand*{\acsfont}[1]{\textsmaller{#1}}|
% \end{quote}
%
% \subsection{Defining Acronyms}
% Acronyms can either defined from an environment specifically
% introduced for that purpose or by direct definitions.
%
% \DescribeEnv{acronym}
% The |acronym| environment allows one to define all the acronyms
% needed by a document at a single place and is self-documenting,
% since a table of acronyms is automatically produced.
%
% In the |acronym| environment, acronyms are defined with the
% \DescribeMacro{\acro} command:
% \begin{quote}
% |\acro{|\meta{acronym}|}[|\meta{short name}|]{|\meta{full name}|}|
% \end{quote}
% The first argument \meta{acronym} is the acronym string itself
% and is used in the commands of the previous section such as
% \cmd{\ac} or \cmd{\acl}, that print the different forms of the
% acronym.
%
% Because internal commands take \meta{acronym} for storing
% the different forms of the acronym, the \TeX\ code for the
% acronym is limited by \cmd{\csname}.
% If the acronym requires problematic or complicate \TeX\ stuff
% (font commands, \dots), then this code
% can be given in the optional argument \meta{short name}.
% The first argument \meta{acronym} is then a simpler string
% to identify the acronym.
% For example, an acronym for water can look like this:
% \begin{quote}
% |\acro{H2O}[$\mathrm{H_2O}$]{water}|
% \end{quote}
% Then |\acs{H2O}| gets ``$\mathrm{H_2O}$'' and
% |\acl{H2O}| prints ``water''.
%%
% Inside the |acronym| environment \DescribeMacro{\acroextra}
% additional information can be added to the list of acronyms
% with the \cmd{\acroextra} command that will not be included
% in the normal inline acronyms.
%
% \begin{quote}
% |\acroextra{|\meta{additional info}|}|
% \end{quote}
%
% \noindent
% for example:
%
% \begin{quote}
% |\acro{H2O}[$\mathrm{H_2O}$]|\\
% | {Dihydrogen Monoxide\acroextra{ (water)}}|\\[1ex]
% |\acro{NA}[\ensuremath{N_{\mathrm A}}]|\\
% | {Number of Avogadro\acroextra{ (See \S\protect\ref{A1})}}|
% \end{quote}
%
% \noindent
% Note that \cmd{\acroextra} must be inserted inside the
% \cmd{\acro} definition and that fragile commands must be
% protected. Be careful of unnecessary spaces.
%
% The standard format of the acronym list is a \cmd{\description}
% environment. If you pass an optional parameter to the |acronym|
% environment, the width of the acronym-column will be fitted to the
% width of the given parameter (which should be the longest acronym).
% For example, if \textit{HBCI} is the longest acronym used, the
% list should start with
% \begin{quote}
% |\begin{acronym}[HBCI]|
% \end{quote}
%
% \DescribeMacro{\aclabelfont}
% The short form of each acronym in the list is formatted using
% \cmd{\aclabelfont}, which typesets its arguments in bold font by
% default. It can be redefined to produce bold sans-serif labels, for
% example, with
% \begin{quote}
% |\renewcommand*{\aclabelfont}[1]{\textbf{\textsf{\acsfont{#1}}}}|
% \end{quote}
%
% In standard mode, the acronym-list will consist of all defined
% acronyms, regardless if the the acronym was used in the text
% before or not. This behavior can be changed by loading the
% package with the parameter \texttt{printonlyused} (used at least once) or
% \texttt{printonlyreused} (use more than once):
% \begin{quote}
% |\usepackage[printonlyused]{acronym}|
% \end{quote}
% In \texttt{printonly(re)used}-mode you can add to each acronym the
% the page number where it was first used by additionally specifying
% the option \texttt{withpage}.
% \begin{quote}
% |\usepackage[printonlyused,withpage]{acronym}|
% \end{quote}
%
% If one does not want an acronym list to be produced at all,
% acronyms can be defined directly thanks to the two commands
% \DescribeMacro{\newacro}%
% \DescribeMacro{\acrodef}%
% \begin{quote}
% |\newacro{|\meta{acronym}|}[|\meta{short name}|]{|\meta{full name}|}|\\
% |\acrodef{|\meta{acronym}|}[|\meta{short name}|]{|\meta{full name}|}|
% \end{quote}
% \noindent the difference between the two consisting in the fact
% that the latter makes the acronym definition stored in the |.aux|
% file. Therefore, the acronym becomes available from start-up in
% the next run.
%
% Note that all the acronym definitions made by \cmd{\acro} in the
% |acronym| environment are also similarly added to the |.aux|
% file.
%
% \subsubsection{Non standard indefinite articles}
%
% Sometimes the indefinite article of an acronym differs between its
% short form and its long form, for example ``a Federal Bureau of
% Investigation (FBI) agent'' and ``an FBI agent''. To deal with this,
% the package provides the following three commands
% \DescribeMacro{\newacroindefinite}
% \DescribeMacro{\acrodefindefinite}
% \DescribeMacro{\acroindefinite}
% \begin{quote}
% |\acroindefinite{|\meta{acronym}|}{|\meta{short indefinite article}|}{|%
% \meta{long indefinite article}|}|\\
% |\newacroindefinite{|\meta{acronym}|}{|\meta{short indefinite article}|}{|%
% \meta{long indefinite article}|}|\\
% |\acrodefindefinite{|\meta{acronym}|}{|\meta{short indefinite article}|}{|%
% \meta{long indefinite article}|}|\\
% \end{quote}
% \noindent that allow one to define indefinite articles. The \cmd{\acroindefinite}
% command is meant to be used in the |acronym| environment. The
% difference among the latter two is that \cmd{\acrodefindefinite} puts
% the acronym definition in the |.aux| file, so that the acronym
% exception is available at the next run from start-up.
%
% When using \cmd{\iac} and \cmd{\Iac} without first defining an
% article, the default article is ``a''.
%
% \subsubsection{Non standard and foreign plural forms}
%
% When the plural form of an acronym is required, the package
% typically obtains it as an English plural, by adding an `s'. This
% happens both for long and short forms. For instance, for an
% acronym defined as
% \begin{quote}
% |\newacro{IC}{Integrated Circuit}|
% \end{quote}
% \noindent the |\acsp{IC}| command produces ``ICs'', and the
% |\aclp{IC}| command produces ``Integrated Circuits''.
%
% Unfortunately, this is generally not suitable for typesetting in
% languages different from English, and at times it is not correct
% even for English. For instance consider the ``MP'' acronym,
% commonly used to refer to a ``Member of the Parlament''. Of
% course, its long form plural is not ``Member of the Parlaments'',
% but ``Members of the Parlament''. For the short form plural,
% ``MPs'' is anyway commonly accepted. The same happens with ``SOC
% (System on a Chip)'' or ``BUT (Block Under Test)''.
%
% In foreign languages, things can be even more complicated. For
% instance, in Italian, there are different rules for English
% acronyms used in Italian text and Italian acronyms used in
% Italian text. The former do not get a plural at all, neither for
% the long, nor for the short form as in ``Un paio di
% \emph{Integrated Circuit (IC)}''. The latter get a plural long
% form following the natural Italian rules for plurals, and a
% plural short form that can either be the same as the singular
% short form, or --- at times --- a form obtained by doubling those
% letter of the short form that correspond to words that get a
% plural in the long form. For instance: ``Nucleo Investigativo
% (NI)'' could take a plural as in ``Nuclei Investigativi (NNII)'',
% although in modern texts one is more likely to find ``Nuclei
% Investigativi (NI)''.
%
% To deal with all these different situations, the package (since
% version 1.35) has been enriched with the following three commands
% \DescribeMacro{\acroplural}
% \DescribeMacro{\newacroplural}
% \DescribeMacro{\acrodefplural}
% \begin{quote}
% |\acroplural{|\meta{acronym}|}[|\meta{short plural}|]{|%
% \meta{long plural}|}|\\
% |\newacroplural{|\meta{acronym}|}[|\meta{short plural}|]{|%
% \meta{long plural}|}|\\
% |\acrodefplural{|\meta{acronym}|}[|\meta{short plural}|]{|%
% \meta{long plural}|}|\\
% \end{quote}
% \noindent that allow one to define plural exceptions. The \cmd{\acroplural}
% command is meant to be used in the |acronym| environment. The
% difference among the latter two is that \cmd{\acrodefplural} puts
% the acronym definition in the |.aux| file, so that the acronym
% exception is available at the next run from start-up. When the
% optional short form is not provided, the acronym name plus an `s'
% is used.
%
% Plural exceptions are never reported in tables of acronyms.
%
%
% \subsection{Miscellaneous}
% \subsubsection{Sectioning and pdf marks}
% Acronyms are robust (since version 1.12) and can be used in
% sectional headers such as \cmd{\chapter}, \cmd{\section}, etc.,
% but please note the following:
% \begin{itemize}
% \item Do not use the general form (\cmd{\ac} or \cmd{\acp}) in
% sectional headers, because it will uses the full name the first time,
% that is in the table of contents, and the short form further on.
%
% \item The text of \meta{acronym} is used verbatim in bookmarks and
% not \meta{short name} for pdf\TeX\ with \texttt{hyperref}.
%
% \item When the long form of the acronym is used in sectional headers
% (for pdf\TeX\ with \texttt{hyperref}), it will end up in the pdf
% bookmarks. In that case it is good to hide unusual text such as
% math inside the \cmd{\texorpdfstring} defined by \texttt{hyperref},
% for example:
% \begin{quote}
% |\acro{Nx}[\ensuremath{N_{\chi}}]|\\
% | {\texorpdfstring{$\chi$}{X}-factor}|
% \end{quote}
% which will then give
% \begin{quote}\begin{tabbing}
% pdf bookmark:\quad\=|\acf{Nx}| $\rightarrow$ \textsf{X-factor (Nx)}\\
% text: \>|\acf{Nx}| $\rightarrow$ $\chi$-factor~($N_{\chi}$)
% \end{tabbing}\end{quote}
%
% \item For acronyms in sectional headers, the file must be \textsc{pdf}\LaTeX'ed
% 3 times before the bookmarks are correct.
%
%
% \item Acronyms in sectional headers together with the |footnote| option
% will not give reliable results, because it will end up in the running
% heads and table of contents. If you really need it, use the optional
% argument of the sectioning commands. For example:
% \begin{quote}
% |\chapter[The water \texorpdfstring{$\mathrm{H_2O}$}{H2O}) ...]|\\
% | {The \acf{H2O} ...}|
% \end{quote}
% \end{itemize}
%
% \clearpage
% \section{An example file}
%
% \begin{macrocode}
%<*acrotest>
\documentclass{article}
\usepackage[colorlinks]{hyperref}
\usepackage[printonlyused,withpage]{acronym}
\begin{document}
\section{Intro}
In the early nineties, \acs{GSM} was deployed in many European
countries. \ac{GSM} offered for the first time international
roaming for mobile subscribers. The \acs{GSM}'s use of \ac{TDMA} as
its communication standard was debated at length. And every now
and then there are big discussion whether \ac{CDMA} should have
been chosen over \ac{TDMA}.
\section{Furthermore}
\acresetall
The reader could have forgotten all the nice acronyms, so we repeat the
meaning again.
If you want to know more about \acf{GSM}, \acf{TDMA}, \acf{CDMA}
and other acronyms, just read a book about mobile communication. Just
to mention it: There is another \ac{UA}, just for testing purposes!
\begin{figure}[h]
Figure
\caption{A float also admits references like \ac{GSM} or \acf{CDMA}.}
\end{figure}
\subsection{Some chemistry and physics}
\label{Chem}
\ac{NAD+} is a major electron acceptor in the oxidation
of fuel molecules. The reactive part of \ac{NAD+} is its nictinamide
ring, a pyridine derivate.
One mol consists of \acs{NA} atoms or molecules. There is a relation
between the constant of Boltzmann and the \acl{NA}:
\begin{equation}
k = R/\acs{NA}
\end{equation}
\acl{lox}/\acl{lh2} (\acsu{lox}/\acsu{lh2})
\Acp{LFVP} are processes in which the lepton number of the initial
and final states are different. An example for \iac{LFVP} is
neutrinoless double beta decay.
\subsection{Some testing fundamentals}
When testing \acp{IC}, one typically wants to identify functional
blocks to be tested separately. The latter are commonly indicated as
\acp{BUT}. To test a \ac{BUT} requires defining a testing strategy\dots{}
\Iac{IC} popped up unexpectedly.
\section{Acronyms}
\begin{acronym}[TDMA]
\acro{CDMA}{Code Division Multiple Access}
\acro{GSM}{Global System for Mobile communication}
\acro{NA}[\ensuremath{N_{\mathrm A}}]
{Number of Avogadro\acroextra{ (see \S\ref{Chem})}}
\acro{NAD+}[NAD\textsuperscript{+}]{Nicotinamide Adenine Dinucleotide}
\acro{LFVP}{lepton flavor violating process}
\acroindefinite{LFVP}{an}{a}
\acro{NUA}{Not Used Acronym}
\acro{TDMA}{Time Division Multiple Access}
\acro{UA}{Used Acronym}
\acro{lox}[\ensuremath{LOX}]{Liquid Oxygen}%
\acro{lh2}[\ensuremath{LH_2}]{Liquid Hydrogen}%
\acro{IC}{Integrated Circuit}%
\acro{BUT}{Block Under Test}%
\acrodefplural{BUT}{Blocks Under Test}%
\acroindefinite{IC}{an}{an}
\end{acronym}
\end{document}
%</acrotest>
% \end{macrocode}
%
% \StopEventually{}
% \clearpage
%
% \newcommand{\fnacro}{\cmd{\fn@}\texttt{\textsl{<acronym>}}}
%
%
%
% \section{The implementation}
% \begin{macrocode}
%<*acronym>
% \end{macrocode}
%
%
% \subsection{Identification}
%
% First we test that we got the right format and name the package.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{acronym}[2020/04/17
v1.47
Support for acronyms (Tobias Oetiker)]
\RequirePackage{suffix,xstring}
% \end{macrocode}
%
%
%
% \subsection{Options}
%
% \begin{macro}{\ifAC@footnote}
% The option |footnote| leads to a redefinition of \cmd{\acf},
% \cmd{\Acf}, \cmd{\acfp}, and \cmd{\Acfp}, making the full name appear
% as a footnote.
% \begin{macrocode}
\newif\ifAC@footnote
\AC@footnotefalse
% \end{macrocode}
% \begin{macrocode}
\DeclareOption{footnote}{\AC@footnotetrue}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ifAC@nohyperlinks}
% If hyperref is loaded, all acronyms will link to their glossary entry.
% With the option |nohyperlinks| these links can be suppressed.
% \begin{macrocode}
\newif\ifAC@nohyperlinks
\AC@nohyperlinksfalse
% \end{macrocode}
% \begin{macrocode}
\DeclareOption{nohyperlinks}{\AC@nohyperlinkstrue}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ifAC@noacroprefix}
% With the |noacroprefix| option the acronym commands are not prefixed. This
% reproduces the old behavior of version <1.43, but can cause collisions
% between user-defined acronyms and commands of this package.
% \begin{macrocode}
\newif\ifAC@noacroprefix
\AC@noacroprefixfalse
% \end{macrocode}
% \begin{macrocode}
\DeclareOption{noacroprefix}{\AC@noacroprefixtrue}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ifAC@printonlyused}
% We need a marker
% which is set if the option |printonlyused| was used.
% \begin{macrocode}
\newif\ifAC@printonlyused
\AC@printonlyusedfalse
% \end{macrocode}
% \begin{macrocode}
\DeclareOption{printonlyused}{\AC@printonlyusedtrue}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ifAC@printonlyreused}
% With the |printonlyreused| option, only those acronyms are included in the
% list of acronyms that have been used more than once, i.e. at least twice.
% \begin{macrocode}
\newif\ifAC@printonlyreused
\AC@printonlyreusedfalse
% \end{macrocode}
% \begin{macrocode}
\DeclareOption{printonlyreused}{\AC@printonlyreusedtrue}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ifAC@withpage}
% A marker which tells us to print page numbers.
% \begin{macrocode}
\newif\ifAC@withpage
\AC@withpagefalse
% \end{macrocode}
% \begin{macrocode}
\DeclareOption{withpage}{\AC@withpagetrue}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ifAC@smaller}
% The option |smaller| leads to a redefinition of \cmd{\acsfont}.
% We want to make the acronym appear smaller. Since this should
% be done in a context-sensitive way, we rely on the macro
% \cmd{\textsmaller} provided by the |relsize| package.
% As \cmd{\RequirePackage} cannot be used inside
% \cmd{\DeclareOption}, we need a boolean variable.
% \begin{macrocode}
\newif\ifAC@smaller
\AC@smallerfalse
\DeclareOption{smaller}{\AC@smallertrue}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ifAC@dua}
% The option |dua| stands for ``don't use acronyms''.
% It leads to a redefinition of \cmd{\ac}, \cmd{\Ac}, \cmd{\acp},
% and \cmd{\Acp}, making the full name appear all the time
% and suppressing all acronyms but the explicity requested by
% \cmd{\acf}, \cmd{\Acf}, \cmd{\acfp} or \cmd{\Acfp}.
% \begin{macrocode}
\newif\ifAC@dua
\AC@duafalse
\DeclareOption{dua}{\AC@duatrue}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ifAC@nolist}
% The option |nolist| stands for ``don't write the list of acronyms''.
% \begin{macrocode}
\newif\ifAC@nolist
\AC@nolistfalse
\DeclareOption{nolist}{\AC@nolisttrue\AC@nohyperlinkstrue}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ifAC@nolinebreak}
% The option |nolinebreak| dictates whether to forbid, by defalt, a line break
% between the full name and the short name, when they are presented together.
% \begin{macrocode}
\newif\ifAC@nolinebreak
\AC@nolinebreakfalse
\DeclareOption{nolinebreak}{\AC@nolinebreaktrue}
% \end{macrocode}
% \end{macro}
%
% Now we process the options.
% \begin{macrocode}
\ProcessOptions\relax
% \end{macrocode}
%
%
%
%
% \subsection{Setup macros}
%
% \begin{macro}{\acsfont}
% \begin{macro}{\acffont}
% \begin{macro}{\acfsfont}
% The appearance of the output of the commands \cmd{\acs} and
% \cmd{\acf} is partially controlled by \cmd{\acsfont},
% \cmd{\acffont}, and \cmd{\acfsfont}. By default, they do nothing
% except when the |smaller| option is loaded.
%
% The option |smaller| leads to a redefinition of \cmd{\acsfont}.
% We want to make the acronym appear smaller. Since this should
% be done in a context-sensitive way, we rely on the macro
% \cmd{\textsmaller} provided by the |relsize| package.
% \begin{macrocode}
\ifAC@smaller
\RequirePackage{relsize}
\newcommand*{\acsfont}[1]{\textsmaller{#1}}
\else
\newcommand*{\acsfont}[1]{#1}
\fi
\newcommand*{\acffont}[1]{#1}
\newcommand*{\acfsfont}[1]{#1}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\AC@linebreakpenalty}
% When the option |nolinebreak| is specified, the default penalty for a line break
% is being set to the maximum. Otherwise, the default penalty is one level below
% the maximum, meaning that most of the times, by default, the line will not get
% broken.
%
% \begin{macrocode}
\ifAC@nolinebreak
\def\AC@linebreakpenalty{4}
\else
\def\AC@linebreakpenalty{3}
\fi
% \end{macrocode}
% \end{macro}
%
% \subsection{Hyperlinks and PDF support}
%
% \begin{macro}{\AC@hyperlink}
% \begin{macro}{\AC@hyperref}
% \begin{macro}{\AC@hypertarget}
% \begin{macro}{\AC@phantomsection}
% Define dummy hyperlink commands
% \begin{macrocode}
\def\AC@hyperlink#1#2{#2}
\def\AC@hyperref[#1]#2{#2}
\def\AC@hypertarget#1#2{#2}
\def\AC@phantomsection{}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\AC@raisedhypertarget}
% Make sure that hyperlink processing gets enabled before we process
% the document if hyperref has been loaded in the mean time.
% \begin{macrocode}
\ifAC@nohyperlinks
\else
\AtBeginDocument{%
\@ifpackageloaded{hyperref}
{\let\AC@hyperlink=\hyperlink
\let\AC@hyperref=\hyperref
\newcommand*\AC@raisedhypertarget[2]{%
\Hy@raisedlink{\hypertarget{#1}{}}#2}%
\let\AC@hypertarget=\AC@raisedhypertarget
\def\AC@phantomsection{%
\Hy@GlobalStepCount\Hy@linkcounter
\edef\@currentHref{section*.\the \Hy@linkcounter}%
\Hy@raisedlink{%
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%
}%
}{}}%
\fi
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\AC@pageref}
% Use |\pageref*| instead of |\pageref| when the |hyperref| package is used.
% \begin{macrocode}
\AtBeginDocument{%
\@ifpackageloaded{hyperref}{%
\let\AC@pageref=\@pagerefstar%
}{%
\let\AC@pageref=\pageref%
}%
}
% \end{macrocode}
% \end{macro}
%
% \noindent
% The \texttt{hyperref} package defines \cmd{\pdfstringdefDisableCommands}
% and \cmd{\texorpdfstring} for text in bookmarks. If undefined, then provide them
% it at the beginning of the document.
%
% \begin{macrocode}
\AtBeginDocument{%
\providecommand\texorpdfstring[2]{#1}%
\providecommand\pdfstringdefDisableCommands[1]{}%
\pdfstringdefDisableCommands{%
\csname AC@starredfalse\endcsname
\csname AC@footnotefalse\endcsname
\let\AC@hyperlink\@secondoftwo
\let\acsfont\relax
\let\acffont\relax
\let\acfsfont\relax
\let\acused\relax
\let\null\relax
\def\AChy@call#1#2{%
\ifx*#1\@empty
\expandafter #2%
\else
#2{#1}%
\fi
}%
\def\acs#1{\AChy@call{#1}\AC@acs}%
\def\acl#1{\AChy@call{#1}\@acl}%
\def\Acl#1{\AChy@call{#1}\@Acl}%
\def\acf#1{\AChy@call{#1}\AChy@acf}%
\def\Acf#1{\AChy@call{#1}\AChy@Acf}%
\def\ac#1{\AChy@call{#1}\@ac}%
\def\Ac#1{\AChy@call{#1}\@Ac}%
\def\acsp#1{\AChy@call{#1}\@acsp}%
\def\aclp#1{\AChy@call{#1}\@aclp}%
\def\Aclp#1{\AChy@call{#1}\@Aclp}%
\def\acfp#1{\AChy@call{#1}\AChy@acfp}%
\def\Acfp#1{\AChy@call{#1}\AChy@Acfp}%
\def\acp#1{\AChy@call{#1}\@acp}%
\def\Acp#1{\AChy@call{#1}\@Acp}%
\def\acfi#1{\AChy@call{#1}\AChy@acf}%
\def\Acfi#1{\AChy@call{#1}\AChy@Acf}%
\let\acsu\acs
\let\aclu\acl
\let\Aclu\Acl
\def\AChy@acf#1{\AC@acl{#1} (\AC@acs{#1})}%
\def\AChy@Acf#1{\AC@Acl{#1} (\AC@acs{#1})}%
\def\AChy@acfp#1{\AC@aclp{#1} (\AC@acsp{#1})}%
\def\AChy@Acfp#1{\AC@Aclp{#1} (\AC@acsp{#1})}%
}%
}
% \end{macrocode}
%
%
%
% \subsection{Additional Helper macros}
%
%
% We need a list of the used acronyms after the last \cmd{\acresetall}
% (or since beginning), a token list is very useful for this purpose
%
% \begin{macro}{AC@clearlist}
% \begin{macrocode}
\newtoks\AC@clearlist
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\AC@addtoAC@clearlist}
% Adds acronyms to the clear list
% \begin{macrocode}
\newcommand*\AC@addtoAC@clearlist[1]{%
\global\AC@clearlist\expandafter{\the\AC@clearlist\AC@reset{#1}}%
}
% \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\acresetall}
% \begin{macro}{\AC@reset}
% This macro resets the |AC@FN| - tag of each acronym, therefore |\ac|
% will use Full Name (FN) next time it is called
% \begin{macrocode}
\newcommand*\acresetall{\the\AC@clearlist\AC@clearlist={}}
% \end{macrocode}
% \begin{macrocode}
\def\AC@reset#1{%
\global\expandafter\let\csname AC@\AC@prefix#1\endcsname\relax
}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\AC@used}
% We also need a markers for 'used'.
% \begin{macrocode}
\newcommand*\AC@used{@<>@<>@}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\AC@populated}
% An on/off flag to note if any acronyms were logged. This
% is needed for the first run with |printonly(re)used| option,
% because the acronym list are then empty, resulting in a
% |"missing item"| error.
%
% \begin{macrocode}
\newcommand{\AC@populated}{}
% \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\AC@logged}
% \begin{macro}{\acronymused}
% Log the usage by writing the \cmd{\acronymused}
% to the |aux| file and
% by reading it back again at the beginning of the
% document (performed automatically by LaTeX).
% This results in processing the document twice,
% but it is needed anyway for the rest of the
% package.
%
% This methodology is needed when the list of
% acronyms is in the front matter of the document.
% \begin{macrocode}
\newcommand*{\AC@logged}[1]{%
\@bsphack
\protected@write\@auxout{}{\string\acronymused{#1}}%
\@esphack}
% \end{macrocode}
% Keep it out of bookmarks.
% \begin{macrocode}
\AtBeginDocument{%
\pdfstringdefDisableCommands{%
\let\AC@logged\@gobble
}%
}
% \end{macrocode}
% Flag the acronym at the beginning of the document as used
% (called by the \texttt{aux} file).
% \begin{macrocode}
\newcommand*{\acronymused}[1]{%
\expandafter\ifx\csname acused@#1@once\endcsname\AC@used%
\expandafter\ifx\csname acused@#1@twice\endcsname\AC@used%
\relax%
\else%
\global\expandafter\let\csname acused@#1@twice\endcsname\AC@used%
\global\let\AC@populated\AC@used%
\fi%
\else%
\global\expandafter\let\csname acused@#1@once\endcsname\AC@used%
\ifAC@printonlyreused%
\relax%
\else%
\global\let\AC@populated\AC@used%
\fi%
\fi%
}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\@firstupper}
% Internal commands for making a first letter upper case.
% \begin{macrocode}
\newcommand{\@firstupper}[1]{%
\StrSplit{#1}{1}{\head}{\tail}%
\MakeUppercase\head\tail%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{AC@prefix}
% Returns the prefix used to build the defined acronym commands as long as
% the |noacroprefix| option is disabled. Otherwise the output is empty, so
% the old behaviour from version <1.43 is reproduced.
% \begin{macrocode}
\ifAC@noacroprefix
\newcommand*\AC@prefix{}
\else
\newcommand*\AC@prefix{acronyms@}
\fi
% \end{macrocode}
% \end{macro}
%
% \subsection{Defining acronyms}
%
% There are three commands that define acronyms:
% \cmd{\newacro}, \cmd{\acrodef}, and \cmd{\acro}.
% They are called with the following arguments:
% \begin{quote}
% |\acro{|\meta{acronym}|}[|\meta{short name}^^A
% |]{|\meta{full name}|}|
% \end{quote}
% The mechanism used in this package is to make the
% optional \meta{short name} identical to the \meta{acronym} when it
% is empty (no optional argument), thereby only the second (optional) argument
% is stored together with the \meta{full name}.
%
% \begin{macro}{\newacro}
% \begin{macro}{\AC@newacro}
% The internal macro \cmd{\newacro} stores the
% \meta{short name} and the \meta{full name} in the
% command \fnacro.
% \begin{macrocode}
\newcommand*\newacro[1]{%
\@ifnextchar[{\AC@newacro{#1}}{\AC@newacro{#1}[#1]}}
% \end{macrocode}
% \begin{macrocode}
\newcommand\AC@newacro{}
\def\AC@newacro#1[#2]#3{%
\expandafter\gdef\csname fn@#1\endcsname{{#2}{#3}}%
}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\acrodef}
% \begin{macro}{\AC@acrodef}
% The user command \cmd{\acrodef} calls \cmd{\newacro} and
% writes it into the |.aux| file.
% \begin{macrocode}
\newcommand*\acrodef[1]{%
\@ifnextchar[{\AC@acrodef{#1}}{\AC@acrodef{#1}[#1]}}
% \end{macrocode}
% \begin{macrocode}
\newcommand\AC@acrodef{}
\def\AC@acrodef#1[#2]#3{%
\@bsphack
\protected@write\@auxout{}{\string\newacro{#1}[#2]{#3}}%
\@esphack}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
%
% \begin{environment}{AC@deflist}
% In standard mode, the acronym - list is formatted with a description
% environment. If an optional argument is passed to the acronym
% environment, the list is formatted as a AC@deflist, which needs the
% longest appearing acronym as parameter. If the option 'nolist' is selected
% the enviroment is empty.
% \begin{macrocode}
\newcommand*{\aclabelfont}[1]{\textbf{\acsfont{#1}}}
\def\AC@makelabel#1{#1\hfil}
\newenvironment{AC@deflist}[1]%
{\ifAC@nolist%
\else%
\raggedright\begin{list}{}%
{\settowidth{\labelwidth}{\AC@makelabel{\aclabelfont{#1}}}%
\setlength{\leftmargin}{\labelwidth}%
\addtolength{\leftmargin}{\labelsep}%
\renewcommand{\makelabel}{\AC@makelabel}}%
\fi}%
{\ifAC@nolist%
\else%
\end{list}%
\fi}%
% \end{macrocode}
% \end{environment}
%
% \begin{environment}{acronym}
% In the 'acronym' - environment, all acronyms are defined, and printed
% if they have been used before, which is indicated by the acused-tag.
%
% \begin{quote}
% |\begin{acronym}|\\
% |\acro{CDMA}{Code Division Multiple Access\acroextra{\ ...}}|\\
% |\end{acronym}|
% \end{quote}
%
% \begin{macro}{\acroextra}
% Additional information can be added after to \cmd{\acro}
% definition for display in the list of acronyms. This command
% is only active inside the |acronym| environment. Outside it
% gobbles up its argument.
% \begin{macrocode}
\newcommand{\acroextra}[1]{}
% \end{macrocode}
%
% \begin{macro}{\acro}
% Acronyms can be defined with the user command \cmd{\acro}
% in side the |acronym| environment.
%
% \begin{macrocode}
\newenvironment{acronym}[1][1]{%
\providecommand*{\acro}{\AC@acro}%
\providecommand*{\acroplural}{\AC@acroplural}%
\providecommand*{\acroindefinite}{\AC@acroindefinite}%
\long\def\acroextra##1{##1}%
\def\@tempa{1}\def\@tempb{#1}%
\ifx\@tempa\@tempb%
\global\expandafter\let\csname AC@des@mark\endcsname\AC@used%
\ifAC@nolist%
\else%
\begin{description}%
\fi%
\else%
\begin{AC@deflist}{#1}%
\fi%
}%
{%
\ifx\AC@populated\AC@used\else%
\ifAC@nolist%
\else%
\item[]\relax%
\fi%
\fi%
\expandafter\ifx\csname AC@des@mark\endcsname\AC@used%
\ifAC@nolist%
\else%
\end{description}%
\fi%
\else%
\end{AC@deflist}%
\fi}%
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{environment}
%
% \begin{macro}{\AC@acro}
% \begin{macro}{\AC@@acro}
% \begin{macrocode}
\newcommand*\AC@acro[1]{%
\@ifnextchar[{%
\csname AC@\AC@prefix{}@acro\endcsname{#1}%
}{%
\csname AC@\AC@prefix{}@acro\endcsname{#1}[#1]%
}%
}
% \end{macrocode}
% \begin{macrocode}
\expandafter\newcommand\csname AC@\AC@prefix{}@acro\endcsname{}
\expandafter\def\csname AC@\AC@prefix{}@acro\endcsname#1[#2]#3{%
\ifAC@nolist%
\else%
\ifnum%
\ifAC@printonlyused 1%
\else\ifAC@printonlyreused 1%
\else 0\fi\fi%
=1\relax%
\ifnum%
\ifAC@printonlyused%
\expandafter\ifx\csname acused@#1@once\endcsname\AC@used 1 \else 0 \fi%
\else\ifAC@printonlyreused%
\expandafter\ifx\csname acused@#1@twice\endcsname\AC@used 1 \else 0 \fi%
\else 0 \fi\fi%
=1\relax%
\item[\protect\AC@hypertarget{#1}{%
\AC@hyperref[acro:#1]{\aclabelfont{#2}\hfill}%
}]\AC@hyperref[acro:#1]{#3}%
\ifAC@withpage%
\expandafter\ifx\csname r@acro:#1\endcsname\relax%
\PackageInfo{acronym}{%
Acronym #1 used in text but not spelled out in
full in text}%
\else%
\nobreak\leaders\hbox{$\m@th\mkern\@dotsep mu\hbox{.}\mkern\@dotsep mu$}\hfill%
\nobreak\hb@xt@\@pnumwidth{%
\hfil\normalfont\normalcolor\AC@pageref{acro:#1}%
}%
\fi%
\fi\\%
\fi%
\else%
\item[\protect\AC@hypertarget{#1}{\AC@hyperref[acro:#1]{\aclabelfont{#2}\hfill}}]\AC@hyperref[acro:#1]{#3}%
\fi%
\fi%
\begingroup
\def\acroextra##1{}%
\@bsphack
\ifAC@printonlyreused%
\protected@write\@auxout{}{%
\string\newacro{#1}[%
\expandafter\ifx\csname acused@#1@twice\endcsname\AC@used%
\string\AC@hyperlink{#1}{#2}%
\else%
{#2}%
\fi%
]{#3}%
}%
\else%
\protected@write\@auxout{}{%
\string\newacro{#1}[\string\AC@hyperlink{#1}{#2}]{#3}%
}%
\fi%
\@esphack
\endgroup
\ignorespaces}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
%
% \subsubsection{Nonstandard indefinite articles}
%
% \begin{macro}{\newacroindefinite}
% Sets up a non standard indefinite article for a given acronym.
% \begin{macrocode}
\newcommand*\newacroindefinite[3]{%
\expandafter\gdef\csname fn@#1@IS\endcsname{#2}%
\expandafter\gdef\csname fn@#1@IL\endcsname{#3}%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\acrodefindefinite}
% Same as above, storing content in aux file.
% \begin{macrocode}
\newcommand*\acrodefindefinite[3]{%
\@bsphack
\protected@write\@auxout{}{\string\newacroindefinite{#1}{#2}{#3}}%
\@esphack
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\AC@acroindefinite}
% Internal command to set up an indefinite article in the
% acronym environment.
% \begin{macrocode}
\newcommand\AC@acroindefinite[3]{
\@bsphack
\protected@write\@auxout{}%
{\string\newacroindefinite{#1}{#2}{#3}}%
\@esphack
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Non standard or foreign plural forms}
%
% \begin{macro}{\newacroplural}
% \begin{macro}{\AC@newacroplurali}
% \begin{macro}{\AC@newacropluralii}
% Sets up a non standard plural form for a given acronym.
% \begin{macrocode}
\newcommand*\newacroplural[1]{%
\@ifnextchar[%]
{\AC@newacroplurali{#1}}{\AC@newacropluralii{#1}}%
}
\newcommand\AC@newacroplurali{}
\def\AC@newacroplurali#1[#2]#3{%
\expandafter\gdef\csname fn@#1@PS\endcsname{#2}%
\expandafter\gdef\csname fn@#1@PL\endcsname{#3}%
}
\newcommand\AC@newacropluralii[2]{%
\expandafter\gdef\csname fn@#1@PL\endcsname{#2}%
}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\acrodefplural}
% \begin{macro}{\AC@acrodefplurali}
% \begin{macro}{\AC@acrodefpluralii}
% Same as above, storing content in aux file.
% \begin{macrocode}
\newcommand*\acrodefplural[1]{%
\@ifnextchar[%]
{\AC@acrodefplurali{#1}}{\AC@acrodefpluralii{#1}}%
}
\newcommand\AC@acrodefplurali{}
\def\AC@acrodefplurali#1[#2]#3{%
\@bsphack
\protected@write\@auxout{}{\string\newacroplural{#1}[#2]{#3}}%
\@esphack
}
\newcommand\AC@acrodefpluralii[2]{%
\@bsphack
\protected@write\@auxout{}{\string\newacroplural{#1}{#2}}%
\@esphack
}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\AC@acroplural}
% \begin{macro}{\AC@acroplurali}
% \begin{macro}{\AC@acropluralii}
% Internal commands to set up a plural version of an acronym in the
% acronym environment.
% \begin{macrocode}
\newcommand*\AC@acroplural[1]{%
\@ifnextchar[%]
{\AC@acroplurali{#1}}{\AC@acropluralii{#1}}%
}
\newcommand\AC@acroplurali{}
\def\AC@acroplurali#1[#2]#3{%
\@bsphack
\protected@write\@auxout{}%
{\string\newacroplural{#1}[\string\AC@hyperlink{#1}{#2}]{#3}}%
\@esphack
}
\newcommand\AC@acropluralii[2]{
\@bsphack
\protected@write\@auxout{}%
{\string\newacroplural{#1}[\string\AC@hyperlink{#1}{\AC@acs{#1}}]{#2}}%
\@esphack
}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
%
% \begin{macro}{\AC@aclp}
% \begin{macro}{\AC@Aclp}
% \begin{macro}{\AC@acsp}
% Deliver either standard or nonstandard plural form (long and short
% respectively).
% \begin{macrocode}
\newcommand*\AC@aclp[1]{%
\ifcsname fn@#1@PL\endcsname
\csname fn@#1@PL\endcsname
\else
\AC@acl{#1}s%
\fi
}
\newcommand*\AC@Aclp[1]{%
\AC@uppertrue%
\AC@aclp{#1}%
\AC@upperfalse%
}
\newcommand*\AC@acsp[1]{%
\ifcsname fn@#1@PS\endcsname
\csname fn@#1@PS\endcsname
\else
\AC@acs{#1}s%
\fi
}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsection{Using acronyms}
%
%
% \begin{macro}{\ifAC@starred}
% Before the macros are defined, we need a boolean variable which will
% be set to true or false, when the following commands are used in the
% starred or unstarred form. If it is true, the acronym will be not be
% logged, otherwhise it will be logged.
% \begin{macrocode}
\newif\ifAC@starred
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\ifAC@upper}
% If an acronym needs to be capitalized, this flag is used to indicate
% this at an appropriate point in the code. In that case, the firstupper
% command will be called at a time when the acronym is expandable, otherwise
% the xstring command will not work properly.
% \begin{macrocode}
\newif\ifAC@upper
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\AC@get}
% If the acronym is undefined, the internal macro \cmd{\AC@get}
% warns the user by printing the name in bold with an exclamation
% mark at the end.
% If defined, \cmd{\AC@get} uses the same mechanism used by the LaTeX
% kernel commands \cmd{\ref} and \cmd{\pageref} to return the short
% \cmd{\AC@acs} and long forms \cmd{\AC@acl} of the acronym
% saved in \fnacro.
% \begin{macrocode}
\newcommand*\AC@get[3]{%
\ifx#1\relax
\PackageWarning{acronym}{Acronym `#3' is not defined}%
\textbf{#3!}%
\else
\ifAC@upper
\@firstupper{\expandafter#2#1}%
\else
\expandafter#2#1%
\fi
\fi
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\AC@acs}
% \begin{macro}{\AC@acl}
% \begin{macro}{\AC@Acl}
% The internal commands \cmd{\AC@acs} and \cmd{\AC@acl} returns
% the (unformatted) short and the long forms of an acronym as
% saved in \fnacro. Mbox to prevent hyphenation of short form.
% \begin{macrocode}
\newcommand*\AC@acs[1]{%
\mbox{\expandafter\AC@get\csname fn@#1\endcsname\@firstoftwo{#1}}}
% \end{macrocode}
% \begin{macrocode}
\newcommand*\AC@acl[1]{%
\expandafter\AC@get\csname fn@#1\endcsname\@secondoftwo{#1}}
% \end{macrocode}
% \begin{macrocode}
\newcommand*\AC@Acl[1]{%
\AC@uppertrue%
\AC@acl{#1}%
\AC@upperfalse%
}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\acs}
% \begin{macro}{\acsa}
% \begin{macro}{\@acs}
% The user macro \cmd{\acs} prints the short form of the acronym
% using the font specified by \cmd{\acsfont}.
% \begin{macrocode}
\newcommand*{\acs}{\AC@starredfalse\protect\acsa}%
\WithSuffix\newcommand\acs*{\AC@starredtrue\protect\acsa}%
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\acsa}[1]{%
\texorpdfstring{\protect\@acs{#1}}{#1}}
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\@acs}[1]{%
\acsfont{\AC@acs{#1}}%
%% having a footnote on acs sort of defeats the purpose
%% \ifAC@footnote
%% \footnote{\AC@acl{#1}{}}%
%% \fi
\ifAC@starred\else\AC@logged{#1}\fi}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\acl}
% \begin{macro}{\@acl}
% \begin{macro}{\Acl}
% \begin{macro}{\@Acl}
% The user macro \cmd{\acl} prints the full name of the
% acronym.
% \begin{macrocode}
\newcommand*{\acl}{\AC@starredfalse\protect\@acl}%
\WithSuffix\newcommand\acl*{\AC@starredtrue\protect\@acl}%
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\Acl}{\AC@starredfalse\protect\@Acl}%
\WithSuffix\newcommand\Acl*{\AC@starredtrue\protect\@Acl}%
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\@acl}[1]{%
\AC@acl{#1}%
\ifAC@starred\else\AC@logged{#1}\fi}
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\@Acl}[1]{%
\AC@Acl{#1}%
\ifAC@starred\else\AC@logged{#1}\fi}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsection{Helper functions to unset labels}
%
% \begin{macro}{\@verridelabel} The internal \cmd{\@verridelabel}
% command lets us 'redefine' an acronym label such that the page
% reference in the acronym list points where it should be pointing and
% not just to the very first occurrence of the acronym, where it may not
% even be expanded. (code by Ulrich Diez)
%
% \begin{macrocode}
\newcommand*\@verridelabel[1]{%
\@bsphack
\protected@write\@auxout{}{\string\AC@undonewlabel{#1}}%
\label{#1}%
\AC@overriddenmessage rs{#1}%
\@esphack
}%
\newcommand*\AC@undonewlabel{\AC@und@newl@bel rs}%
\newcommand*\AC@und@newl@bel[3]{%
\@ifundefined{#1@#3}%
{%
\global\expandafter\let\csname#2@#3\endcsname\@nnil
}%
{%
\global\expandafter\let\csname#1@#3\endcsname\relax
}%
}%
\newcommand*\AC@overriddenmessage[3]{%
\expandafter\ifx\csname#2@#3\endcsname\@nnil
\expandafter\@firstoftwo
\else
\@ifundefined{#1@#3}%
{%
\@ifundefined{#2@#3}%
{\expandafter\@firstoftwo}%
{\expandafter\@secondoftwo}%
}%
{\expandafter\@secondoftwo}%
\fi
{%
\PackageInfo{acronym}{Label `#3' newly defined as it
shall be overridden^^Jalthough it is yet undefined}%
\global\expandafter\let\csname#2@#3\endcsname\empty
}%
{%
\PackageInfo{acronym}{Label `#3' overridden}%
\@ifundefined{#2@#3}{%
\global\expandafter\let\csname#2@#3\endcsname\empty}{}%
\expandafter\g@addto@macro\csname#2@#3\endcsname{i}%
}%
}%
\newcommand*\AC@testdef[3]{%
\@ifundefined{s@#2}\@secondoftwo\@firstofone
{%
\expandafter\ifx\csname s@#2\endcsname\empty
\expandafter\@firstofone
\else
\expandafter\xdef\csname s@#2\endcsname{%
\expandafter\expandafter
\expandafter\@gobble
\csname s@#2\endcsname
}%
\expandafter\@gobble
\fi
}%
{%
\@testdef{#1}{#2}{#3}%
}%
}%
\AtBeginDocument{\immediate\write\@auxout{\string\AC@reset@newl@bel}}
\newcommand*\AC@reset@newl@bel{%
\ifx\@newl@bel\@testdef
\let\@newl@bel\AC@testdef
\let\AC@undonewlabel\@gobble
\fi
}%
\newcommand*\AC@placelabel[1]{%
\expandafter\ifx\csname AC@\AC@prefix#1\endcsname\AC@used
\else
{\AC@phantomsection\@verridelabel{acro:#1}}%
\ifAC@starred\else%
\global\expandafter\let\csname AC@\AC@prefix#1\endcsname\AC@used
\fi%
\AC@addtoAC@clearlist{#1}%
\fi
}%
% \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{\acf}
% \begin{macro}{\acfa}
% \begin{macro}{\@acf}
% \begin{macro}{\Acf}
% \begin{macro}{\Acfa}
% \begin{macro}{\@Acf}
% The user macro \cmd{\acf} always prints the full name with
% the acronym. The format depends on \cmd{\acffont} and
% \cmd{\acfsfont}, and on the option |footnote| handled below.
% The acronym is added to the clear list to keep track of the
% used acronyms and it is marked as used by by |\gdef|ining
% the |\AC@FN| to be |\AC@used| after its first use.
%
% The option |footnote| leads to a redefinition of \cmd{\acf},
% making the full name appear as a footnote. There is then
% no need for \cmd{\acffont} and \cmd{\acfsfont}. If the option
% |footnote| is not specified, the optional variable determines
% the penalty for a line break.
% \begin{macrocode}
\newcommand*{\acf}{\AC@starredfalse\protect\acfa}%
\WithSuffix\newcommand\acf*{\AC@starredtrue\protect\acfa}%
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\Acf}{\AC@starredfalse\protect\Acfa}%
\WithSuffix\newcommand\Acf*{\AC@starredtrue\protect\Acfa}%
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\acfa}[2][\AC@linebreakpenalty]{%
\texorpdfstring{\protect\@acf[#1]{#2}}{\AC@acl{#2} (#2)}}
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\Acfa}[2][\AC@linebreakpenalty]{%
\texorpdfstring{\protect\@Acf[#1]{#2}}{\AC@Acl{#2} (#2)}}
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\@acf}[2][\AC@linebreakpenalty]{%
\ifAC@footnote
\acsfont{\AC@acs{#2}}%
\footnote{\AC@placelabel{#2}\AC@acl{#2}{}}%
\else
\acffont{%
\AC@placelabel{#2}\AC@acl{#2}%
\nolinebreak[#1] %
\acfsfont{(\acsfont{\AC@acs{#2}})}%
}%
\fi
\ifAC@starred\else\AC@logged{#2}\fi}
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\@Acf}[2][\AC@linebreakpenalty]{%
\ifAC@footnote
\acsfont{\AC@acs{#2}}%
\footnote{\AC@placelabel{#2}\AC@Acl{#2}{}}%
\else
\acffont{%
\AC@placelabel{#2}\AC@Acl{#2}%
\nolinebreak[#1] %
\acfsfont{(\acsfont{\AC@acs{#2}})}%
}%
\fi
\ifAC@starred\else\AC@logged{#2}\fi}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\ac}
% \begin{macro}{\@ac}
% \begin{macro}{\Ac}
% \begin{macro}{\@Ac}
% The first time an acronym is accessed its Full Name (FN) is
% printed. The next time just (FN). When the |footnote| option is
% used the short form (FN) is always used. The optional variable
% is being passed to \cmd{\acf}, in case it is used.
% \begin{macrocode}
\newcommand*{\ac}{\AC@starredfalse\protect\@ac}%
\WithSuffix\newcommand\ac*{\AC@starredtrue\protect\@ac}%
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\Ac}{\AC@starredfalse\protect\@Ac}%
\WithSuffix\newcommand\Ac*{\AC@starredtrue\protect\@Ac}%
% \end{macrocode}
% \begin{macrocode}
\newcommand{\@ac}[2][\AC@linebreakpenalty]{%
\ifAC@dua
\ifAC@starred\acl*{#2}\else\acl{#2}\fi%
\else
\expandafter\ifx\csname AC@\AC@prefix#2\endcsname\AC@used%
\ifAC@starred\acs*{#2}\else\acs{#2}\fi%
\else
\ifAC@starred\acf*[#1]{#2}\else\acf[#1]{#2}\fi%
\fi
\fi}
% \end{macrocode}
% \begin{macrocode}
\newcommand{\@Ac}[2][\AC@linebreakpenalty]{%
\ifAC@dua
\ifAC@starred\Acl*{#2}\else\Acl{#2}\fi%
\else
\expandafter\ifx\csname AC@\AC@prefix#2\endcsname\AC@used%
\ifAC@starred\acs*{#2}\else\acs{#2}\fi%
\else
\ifAC@starred\Acf*[#1]{#2}\else\Acf[#1]{#2}\fi%
\fi
\fi}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\iac}
% \begin{macro}{\@iac}
% \begin{macro}{\@iaci}
% \begin{macro}{\Iac}
% \begin{macro}{\@Iac}
% Indefinite article correct expansion. The optional variable
% is being passed to \cmd{\ac}.
% \begin{macrocode}
\newcommand*{\iac}{\AC@starredfalse\protect\@iac}%
\WithSuffix\newcommand\iac*{\AC@starredtrue\protect\@iac}%
\newcommand*{\Iac}{\AC@starredfalse\protect\@Iac}%
\WithSuffix\newcommand\Iac*{\AC@starredtrue\protect\@Iac}%
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\@iaci}[1]{%
\ifcsname fn@#1@IL\endcsname
\ifAC@dua
\csname fn@#1@IL\endcsname%
\else
\expandafter\ifx\csname AC@\AC@prefix#1\endcsname\AC@used%
\csname fn@#1@IS\endcsname%
\else
\csname fn@#1@IL\endcsname%
\fi
\fi
\else
a%
\fi
}
\newcommand*{\@iac}[2][\AC@linebreakpenalty]{%
\@iaci{#2} \ifAC@starred\ac*[#1]{#2}\else\ac[#1]{#2}\fi%
}
\newcommand*{\@Iac}[2][\AC@linebreakpenalty]{%
\@firstupper{\@iaci{#2}}\space%
\ifAC@starred\ac*[#1]{#2}\else\ac[#1]{#2}\fi%
}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\acsp}
% \begin{macro}{\acspa}
% \begin{macro}{\@acsp}
% The user macro \cmd{\acsp} prints the plural short form of the
% acronym.
% This is the acronym itself or the \meta{short name}, if the
% optional argument is given in the definition of the acronym plus
% an `s'.
% \begin{macrocode}
\newcommand*{\acsp}{\AC@starredfalse\protect\acspa}%
\WithSuffix\newcommand\acsp*{\AC@starredtrue\protect\acspa}%
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\acspa}[1]{%
\texorpdfstring{\protect\@acsp{#1}}{\AC@acsp{#1}}}
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\@acsp}[1]{%
\acsfont{\AC@acsp{#1}}%
\ifAC@starred\else\AC@logged{#1}\fi}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\aclp}
% \begin{macro}{\@aclp}
% \begin{macro}{\Aclp}
% \begin{macro}{\@Aclp}
% The user macro \cmd{\aclp} prints the plural full name of the
% acronym.
% \begin{macrocode}
\newcommand*{\aclp}{\AC@starredfalse\protect\@aclp}%
\WithSuffix\newcommand\aclp*{\AC@starredtrue\protect\@aclp}%
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\Aclp}{\AC@starredfalse\protect\@Aclp}%
\WithSuffix\newcommand\Aclp*{\AC@starredtrue\protect\@Aclp}%
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\@aclp}[1]{%
\AC@aclp{#1}%
\ifAC@starred\else\AC@logged{#1}\fi}
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\@Aclp}[1]{%
\AC@Aclp{#1}%
\ifAC@starred\else\AC@logged{#1}\fi}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\acfp}
% \begin{macro}{\acfpa}
% \begin{macro}{\@acfp}
% \begin{macro}{\Acfp}
% \begin{macro}{\Acfpa}
% \begin{macro}{\@Acfp}
% The user macro \cmd{\acfp} always prints the plural full name with
% the plural of the acronym. The format depends on \cmd{\acffont} and
% \cmd{\acfsfont}, and on the option |footnote| handled below.
%
% The option |footnote| leads to a redefinition of \cmd{\acfp},
% making the full name appear as a footnote. There is then no need
% for \cmd{\acffont} and \cmd{\acfsfont}. If the option |footnote| is
% not specified, the optional variable determines the penalty for a
% line break.
% \begin{macrocode}
\newcommand*{\acfp}{\AC@starredfalse\protect\acfpa}%
\WithSuffix\newcommand\acfp*{\AC@starredtrue\protect\acfpa}%
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\Acfp}{\AC@starredfalse\protect\Acfpa}%
\WithSuffix\newcommand\Acfp*{\AC@starredtrue\protect\Acfpa}%
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\acfpa}[2][\AC@linebreakpenalty]{%
\texorpdfstring{\protect\@acfp[#1]{#2}}{\AC@aclp{#2} (\AC@acsp{#2})}}
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\Acfpa}[2][\AC@linebreakpenalty]{%
\texorpdfstring{\protect\@Acfp[#1]{#2}}{\AC@Aclp{#2} (\AC@acsp{#2})}}
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\@acfp}[2][\AC@linebreakpenalty]{%
\ifAC@footnote
\acsfont{\AC@acsp{#2}}%
\footnote{\AC@placelabel{#2}\AC@aclp{#2}{}}%
\else
\acffont{%
\AC@placelabel{#2}\AC@aclp{#2}%
\nolinebreak[#1] %
\acfsfont{(\acsfont{\AC@acsp{#2}})}%
}%
\fi
\ifAC@starred\else\AC@logged{#2}\fi}
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\@Acfp}[2][\AC@linebreakpenalty]{%
\ifAC@footnote
\acsfont{\AC@acsp{#2}}%
\footnote{\AC@placelabel{#2}\AC@Aclp{#2}{}}%
\else
\acffont{%
\AC@placelabel{#2}\AC@Aclp{#2}%
\nolinebreak[#1] %
\acfsfont{(\acsfont{\AC@acsp{#2}})}%
}%
\fi
\ifAC@starred\else\AC@logged{#2}\fi}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\acp}
% \begin{macro}{\@acp}
% \begin{macro}{\Acp}
% \begin{macro}{\@Acp}
% The first time an acronym is accessed Full Names (FNs) is
% printed. The next time just (FNs).The optional variable
% is being passed to \cmd{\acfp}, in case it is used.
% \begin{macrocode}
\newcommand*{\acp}{\AC@starredfalse\protect\@acp}%
\WithSuffix\newcommand\acp*{\AC@starredtrue\protect\@acp}%
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\Acp}{\AC@starredfalse\protect\@Acp}%
\WithSuffix\newcommand\Acp*{\AC@starredtrue\protect\@Acp}%
% \end{macrocode}
% \begin{macrocode}
\newcommand{\@acp}[2][\AC@linebreakpenalty]{%
\ifAC@dua
\ifAC@starred\aclp*{#2}\else\aclp{#2}\fi%
\else
\expandafter\ifx\csname AC@\AC@prefix#2\endcsname\AC@used
\ifAC@starred\acsp*{#2}\else\acsp{#2}\fi%
\else
\ifAC@starred\acfp*[#1]{#2}\else\acfp[#1]{#2}\fi%
\fi
\fi}
% \end{macrocode}
% \begin{macrocode}
\newcommand{\@Acp}[2][\AC@linebreakpenalty]{%
\ifAC@dua
\ifAC@starred\Aclp*{#2}\else\Aclp{#2}\fi%
\else
\expandafter\ifx\csname AC@\AC@prefix#2\endcsname\AC@used
\ifAC@starred\acsp*{#2}\else\acsp{#2}\fi%
\else
\ifAC@starred\Acfp*[#1]{#2}\else\Acfp[#1]{#2}\fi%
\fi
\fi}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
%
% \begin{macro}{\acfi}
% \begin{macro}{\acfia}
% \begin{macro}{\Acfi}
% \begin{macro}{\Acfia}
% The Full Name is printed in italics and the abbreviated is printed in upshape.
% The optional variable determines the penalty for a line break.
% \begin{macrocode}
\newcommand*{\acfi}{\AC@starredfalse\protect\acfia}%
\WithSuffix\newcommand\acfi*{\AC@starredtrue\protect\acfia}%
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\Acfi}{\AC@starredfalse\protect\Acfia}%
\WithSuffix\newcommand\Acfi*{\AC@starredtrue\protect\Acfia}%
% \end{macrocode}
% \begin{macrocode}
\newcommand{\acfia}[2][\AC@linebreakpenalty]{%
\texorpdfstring{\protect\@acfi[#1]{#2}}{{\AC@acl{#2}} (#2)}}
% \end{macrocode}
% \begin{macrocode}
\newcommand{\Acfia}[2][\AC@linebreakpenalty]{%
\texorpdfstring{\protect\@Acfi[#1]{#2}}{{\AC@Acl{#2}} (#2)}}
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\@acfi}[2][\AC@linebreakpenalty]{%
\acffont{%
\AC@placelabel{#2}{\itshape\AC@acl{#2}}%
\nolinebreak[#1] %
\acfsfont{(\acsfont{\AC@acs{#2}})}%
}%
\ifAC@starred\else\AC@logged{#2}\fi}
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\@Acfi}[2][\AC@linebreakpenalty]{%
\acffont{%
\AC@placelabel{#2}{\itshape\AC@Acl{#2}}%
\nolinebreak[#1] %
\acfsfont{(\acsfont{\AC@acs{#2}})}%
}%
\ifAC@starred\else\AC@logged{#2}\fi}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\acused}
% Marks the acronym as used. Don't confuse this with
% \cmd{\acronymused}!
% \begin{macrocode}
\newcommand{\acused}[1]{%
\global\expandafter\let\csname AC@\AC@prefix#1\endcsname\AC@used%
\AC@addtoAC@clearlist{#1}}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\acsu}
% \begin{macro}{\acsua}
% Print the short form of the acronym and mark it as used.
% \begin{macrocode}
\newcommand*{\acsu}{\AC@starredfalse\protect\acsua}%
\WithSuffix\newcommand\acsu*{\AC@starredtrue\protect\acsua}%
% \end{macrocode}
% \begin{macrocode}
\newcommand{\acsua}[1]{%
\ifAC@starred\acs*{#1}\else\acs{#1}\fi\acused{#1}}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\aclu}
% \begin{macro}{\aclua}
% \begin{macro}{\Aclu}
% \begin{macro}{\Aclua}
% Print the long form of the acronym and mark it as used.
% \begin{macrocode}
\newcommand*{\aclu}{\AC@starredfalse\protect\aclua}%
\WithSuffix\newcommand\aclu*{\AC@starredtrue\protect\aclua}%
% \end{macrocode}
% \begin{macrocode}
\newcommand*{\Aclu}{\AC@starredfalse\protect\Aclua}%
\WithSuffix\newcommand\Aclu*{\AC@starredtrue\protect\Aclua}%
% \end{macrocode}
% \begin{macrocode}
\newcommand{\aclua}[1]{%
\ifAC@starred\acl*{#1}\else\acl{#1}\fi\acused{#1}}
% \end{macrocode}
% \begin{macrocode}
\newcommand{\Aclua}[1]{%
\ifAC@starred\Acl*{#1}\else\Acl{#1}\fi\acused{#1}}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macrocode}
\endinput
%</acronym>
% \end{macrocode}
% That's it.
% \Finale
|