1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
|
% \iffalse
%% File: hyperref.dtx Copyright 1995-2001 Sebastian Rahtz,
%% with portions written by David Carlisle and Heiko Oberdiek,
%% 2001-2009 Heiko Oberdiek.
%%
%% This file is part of the `Hyperref Bundle'.
%% -------------------------------------------
%%
%% It may be distributed under the conditions of the LaTeX Project Public
%% License, either version 1.2 of this license or (at your option) any
%% later version. The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.2 or later is part of all distributions of LaTeX
%% version 1999/12/01 or later.
%%
%% The list of all files belonging to the `Hyperref Bundle' is
%% given in the file `manifest.txt'.
%%
%<package|nohyperref|driver|check>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{hyperref}
%<nohyperref>\ProvidesPackage{nohyperref}
%<driver>\ProvidesFile{hyperref.drv}
%<check>\ProvidesFile{hycheck.tex}
%<hypertex>\ProvidesFile{hypertex.def}
%<pdftex>\ProvidesFile{hpdftex.def}
%<pdfmark>\ProvidesFile{pdfmark.def}
%<vtexpdfmark>\ProvidesFile{hvtexmrk.def}
%<dvips>\ProvidesFile{hdvips.def}
%<dvipsone>\ProvidesFile{hdvipson.def}
%<textures>\ProvidesFile{htexture.def}
%<dviwindo>\ProvidesFile{hdviwind.def}
%<dvipdfm>\ProvidesFile{hdvipdfm.def}
%<vtex>\ProvidesFile{hvtex.def}
%<vtexhtml>\ProvidesFile{hvtexhtml.def}
%<tex4ht>\ProvidesFile{htex4ht.def}
%<tex4htcfg>\ProvidesFile{htex4ht.cfg}
%<pd1enc>\ProvidesFile{pd1enc.def}
%<puenc>\ProvidesFile{puenc.def}
%<puvnenc>\ProvidesFile{puvnenc.def}
%<puarenc>\ProvidesFile{puarenc.def}
%<!none> [2009/11/25 v6.79h
%<package> Hypertext links for LaTeX]
%<nohyperref> Dummy hyperref (SR)]
%<driver> Hyperref documentation driver file]
%<check> Hyperref test file]
%<hypertex> Hyperref driver for HyperTeX specials]
%<pdftex> Hyperref driver for pdfTeX]
%<pdfmark> Hyperref definitions for pdfmark specials]
%<vtexpdfmark> Hyperref driver for VTeX in PDF/PS mode (pdfmark specials)]
%<dvips> Hyperref driver for dvips]
%<dvipsone> Hyperref driver for dvipsone]
%<textures> Hyperref driver for Textures]
%<dviwindo> Hyperref driver for dviwindo]
%<dvipdfm> Hyperref driver for dvipdfm]
%<vtex> Hyperref driver for VTeX in PDF/PS mode]
%<vtexhtml> Hyperref driver for VTeX in HTML mode]
%<tex4ht> Hyperref driver for TeX4ht]
%<tex4htcfg> Hyperref configuration file for TeX4ht]
%<pd1enc> Hyperref: PDFDocEncoding definition (HO)]
%<puenc> Hyperref: PDF Unicode definition (HO)]
%<puvnenc> Hyperref: Additions to puenc.def for VnTeX]
%<puarenc> Hyperref: Additions to puenc.def for Arabi]
%<*driver>
\documentclass{ltxdoc}
\usepackage{array,times}
\def\ttdefault{cmtt}
\usepackage[%
colorlinks,%
hyperindex=false,% done by hypdoc
pdfusetitle,%
pdfpagelabels%
]{hyperref}
\usepackage[numbered]{hypdoc}
\usepackage{bmhydoc}
\pdfstringdefDisableCommands{\let\\\textbackslash}%
\EnableCrossrefs
\CodelineIndex
\begin{document}
%
% title
%
\GetFileInfo{hyperref.drv}%
\title{Hypertext marks in \LaTeX}%
\author{Sebastian Rahtz\\%
Email: \texttt{sebastian.rahtz@oucs.ox.ac.uk}\\[1.5ex]%
Heiko Oberdiek\\%
Email: \texttt{oberdiek@uni-freiburg.de}}%
% \date{processed \today}%
\date{\filedate\space\fileversion}%
\maketitle
%
% overview
%
\makeatletter
\@ifundefined{HyperrefOverview}{}{%
\HyperrefOverview\relax
\newpage
}%
%
% table of contents
%
\section{\contentsname}%
\makeatletter
\@starttoc{toc}%
\newpage
%
% source code documentation
%
\let\Email\texttt
\DocInput{hyperref.dtx}%
%
% index
%
\PrintIndex
\end{document}
%</driver>
% \fi
% \CheckSum{24927}
%
% \MakeShortVerb{|}
% \StopEventually{}
%
% \DoNotIndex{\def,\edef,\gdef,\xdef,\global,\long,\let}
% \DoNotIndex{\expandafter,\string,\the,\ifx,\else,\fi}
% \DoNotIndex{\csname,\endcsname,\relax,\begingroup,\endgroup}
% \DoNotIndex{\DeclareTextCommand,\DeclareTextCompositeCommand}
% \DoNotIndex{\space,\@empty,\special}
% \DoNotIndex{\\,\0,\1,\2,\8}
% \makeatletter
% \let\SavedTheIndex\theindex
% \def\theindex{^^A
% \clearpage
% \addtolength{\textwidth}{\marginparwidth}^^A
% \addtolength{\textwidth}{\marginparsep}^^A
% \setlength{\linewidth}{\textwidth}^^A
% \setlength{\hsize}{\textwidth}^^A
% \setlength{\oddsidemargin}{\paperwidth}^^A
% \addtolength{\oddsidemargin}{-\textwidth}^^A
% \setlength{\oddsidemargin}{.5\oddsidemargin}^^A
% \addtolength{\oddsidemargin}{-1in}^^A
% \setlength{\evensidemargin}{\oddsidemargin}^^A
% \SavedTheIndex
% }
% \g@addto@macro\theindex{^^A
% \parfillskip=0pt plus 1fil
% }
% \makeatother
%
% \providecommand*{\eTeX}{\mbox{$\varepsilon$-\TeX}}
%
% \section{File hycheck.tex}
%
% Many commands of \LaTeX\ or other packages cannot be
% overloaded, but have to be redefined by hyperref directly.
% If these commands change in newer versions, these
% changes are not noticed by hyperref.
% With this test file this situation can be checked.
% It defines the command \cmd{\checkcommand} that
% is more powerful than \LaTeX's \cmd{\CheckCommand},
% because it takes \cmd{\DeclareRobustCommand} and
% optional parameters better into account.
%
% \begin{macrocode}
%<*check>
\documentclass{article}
\makeatletter
% \end{macrocode}
%
% \begin{macro}{\checklatex}
% Optional argument: release date of \LaTeX.
% \begin{macrocode}
\newcommand*{\checklatex}[1][]{%
\typeout{}%
\typeout{* Format: `LaTeX2e' #1}%
\typeout{\space\space Loaded: `\fmtname' \fmtversion}%
}%
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\checkpackage}
% The argument of \cmd{\checkpackage} is the package name
% without extension optionally followed by a release date.
% \begin{macrocode}
\newcommand*{\checkpackage}[1]{%
\def\HyC@package{#1}%
\let\HyC@date\@empty
\@ifnextchar[\HyC@getDate\HyC@checkPackage
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyC@getDate}
% The release date is scanned.
% \begin{macrocode}
\def\HyC@getDate[#1]{%
\def\HyC@date{#1}%
\HyC@checkPackage
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyC@checkPackage}
% \begin{macrocode}
\def\HyC@checkPackage{%
\typeout{}%
\begingroup
\edef\x{\endgroup
\noexpand\RequirePackage{\HyC@package}%
\ifx\HyC@date\@empty\relax\else[\HyC@date]\fi%
}%
\x
\typeout{}%
\typeout{%
* Package `\HyC@package'%
\ifx\HyC@date\@empty
\else
\space\HyC@date
\fi
}%
\@ifundefined{ver@\HyC@package.sty}{%
}{%
\typeout{%
\space\space Loaded: `\HyC@package' %
\csname ver@\HyC@package.sty\endcsname
}%
}%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\checkcommand}
% The macro \cmd{\checkcommand} parses the next
% tokens as a \LaTeX\ definition and compares
% this definition with the current meaning of
% that command.
% \begin{macrocode}
\newcommand*{\checkcommand}[1]{%
\begingroup
\ifx\long#1\relax
\expandafter\HyC@checklong
\else
\def\HyC@defcmd{#1}%
\expandafter\let\expandafter\HyC@next
\csname HyC@\expandafter\@gobble\string#1\endcsname
\expandafter\HyC@checkcommand
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyC@checklong}
% The definition command \cmd{\def} or \cmd{\edef}
% is read.
% \begin{macrocode}
\def\HyC@checklong#1{%
\def\HyC@defcmd{\long#1}%
\expandafter\let\expandafter\HyC@next
\csname HyC@\expandafter\@gobble\string#1\endcsname
\HyC@checkcommand
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyC@checkcommand}
% The optional star of \LaTeX's definitions is parsed.
% \begin{macrocode}
\def\HyC@checkcommand{%
\ifx\HyC@next\relax
\PackageError{hycheck}{%
Unknown command `\expandafter\strip@prefix\meaning\HyC@cmd'%
}\@ehd
\expandafter\endinput
\fi
\@ifstar{%
\def\HyC@star{*}%
\HyC@check
}{%
\let\HyC@star\@empty
\HyC@check
}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyC@check}
% The macro \cmd{\HyC@check} reads the
% definition command.
% \begin{macrocode}
\def\HyC@check#1{%
\def\HyC@cmd{#1}%
\let\HyC@org@cmd#1%
\let#1\relax
\let\HyC@param\@empty
\HyC@Toks{}%
\let\HyC@org@optcmd\HyC@noValue
\let\HyC@org@robustcmd\HyC@noValue
\let\HyC@org@robustoptcmd\HyC@noValue
\HyC@next
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyC@noValue}
% \begin{macrocode}
\def\HyC@noValue{NoValue}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyC@newcommand}
% The code for \cmd{\newcommand}.
% \begin{macrocode}
\def\HyC@newcommand{%
\let\HyC@@cmd\HyC@cmd
\@ifnextchar[\HyC@nc@opt\HyC@nc@noopt
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyC@Toks}
% A register for storing the default value of an
% optional argument.
% \begin{macrocode}
\newtoks\HyC@Toks
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyC@nc@noopt}
% This macro \cmd{\HyC@nc@noopt} is called, if the
% parser has reached the definition text.
% \begin{macrocode}
\long\def\HyC@nc@noopt#1{%
\edef\x{%
\expandafter\noexpand\HyC@defcmd
\HyC@star
\expandafter\noexpand\HyC@cmd
\HyC@param\the\HyC@Toks
}%
\x{#1}%
\HyC@doCheck
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyC@nc@opt}
% This macro scans the first optional argument
% of a \LaTeX\ definition (number of arguments).
% \begin{macrocode}
\def\HyC@nc@opt[#1]{%
\def\HyC@param{[{#1}]}%
\@ifnextchar[\HyC@nc@default\HyC@nc@noopt
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyC@nc@default}
% Macro \cmd{\HyC@nc@default} scans the
% default for an optional argument.
% \begin{macrocode}
\def\HyC@nc@default[#1]{%
\HyC@Toks={[{#1}]}%
\edef\HyC@optcmd{%
\expandafter\noexpand
\csname\expandafter\string\HyC@@cmd\endcsname
}%
\expandafter\let\expandafter\HyC@org@optcmd\HyC@optcmd
\HyC@nc@noopt
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HyC@DeclareRobustCommand}
% \cmd{\DeclareRobustCommand}|{\cmd}| makes the command
% \cmd{\cmd} robust, that then calls |\cmd|\verb*| |
% with an space at the end of the command name, defined by
% \cmd{\newcommand}. Therefore the further parsing
% is done by \cmd{\HyC@nc@opt} or \cmd{\Hy@nc@noopt}
% of the \cmd{\HyC@newcommand} chain.
% \begin{macrocode}
\def\HyC@DeclareRobustCommand{%
\edef\HyC@robustcmd{%
\expandafter\noexpand
\csname\expandafter\expandafter\expandafter\@gobble
\expandafter\string\HyC@cmd\space\endcsname
}%
\expandafter\let\expandafter\HyC@org@robustcmd\HyC@robustcmd
\expandafter\let\HyC@robustcmd\relax
\let\HyC@@cmd\HyC@robustcmd
\@ifnextchar[\HyC@nc@opt\HyC@nc@noopt
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HyC@def}
% \begin{macro}{\HyC@edef}
% The parameter text of \cmd{\def} or \cmd{\edef} is
% stored in the token register \cmd{\HyC@Toks}.
% \begin{macrocode}
\def\HyC@def#1#{%
\HyC@Toks={#1}%
\HyC@nc@noopt
}
\let\HyC@edef\HyC@def
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\HyC@doCheck}
% This command performs the checks and prints the result.
% \begin{macrocode}
\def\HyC@doCheck{%
\typeout{* Checking `\HyC@string\HyC@cmd':}%
\HyC@checkItem{cmd}%
\HyC@checkItem{robustcmd}%
\HyC@checkItem{optcmd}%
\HyC@checkItem{robustoptcmd}%
\endgroup
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyC@checkItem}
% A single check.
% \begin{macrocode}
\def\HyC@checkItem#1{%
\expandafter\ifx\csname HyC@org@#1\endcsname\HyC@noValue
\else
\expandafter\expandafter\expandafter\ifx
\csname HyC@#1\expandafter\endcsname
\csname HyC@org@#1\endcsname
\expandafter\HyC@checkOk\csname HyC@#1\endcsname
\else
\expandafter\HyC@checkFailed
\csname HyC@#1\expandafter\endcsname
\csname HyC@org@#1\endcsname
\fi
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyC@string}
% \begin{macro}{\HyC@meaning}
% Some shorthands.
% \begin{macrocode}
\def\HyC@string#1{\expandafter\string#1}
\def\HyC@meaning#1{\expandafter\meaning#1}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \begin{macro}{\HyC@checkOk}
% The result, if the check succeeds.
% \begin{macrocode}
\def\HyC@checkOk#1{%
\typeout{\space\space`\HyC@string#1' ok.}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyC@checkFailed}
% The result, if the check fails.
% \begin{macrocode}
\def\HyC@checkFailed#1#2{%
\typeout{\space\space`\HyC@string#1' failed.}%
\typeout{\space\space* original: \meaning#2}%
\typeout{\space\space* expected: \HyC@meaning#1}%
}
% \end{macrocode}
% \end{macro}
% \begin{macrocode}
% **************************************************
%</check>
% \end{macrocode}
%
% \begin{macrocode}
%<*package>
% \end{macrocode}
% \section{Package options and setup}\label{options}
%
% \subsection{Save catcodes}
% There are many packages that change the standard catcodes.
%
% First we save the original meaning of |`| and |=|
% in the token register |\toks@|, because we need the two
% characters in the macros \cmd{\Hy@SetCatcodes} and
% \cmd{\Hy@RestoreCatcodes}.
% \begin{macrocode}
\begingroup
\@makeother\`%
\@makeother\=%
\edef\x{%
\edef\noexpand\x{%
\endgroup
\noexpand\toks@{%
\catcode 96=\noexpand\the\catcode`\noexpand\`\relax
\catcode 61=\noexpand\the\catcode`\noexpand\=\relax
}%
}%
\noexpand\x
}%
\x
\@makeother\`
\@makeother\=
% \end{macrocode}
% \begin{macro}{\Hy@SetCatcodes}
% \begin{macrocode}
\def\Hy@SetCatcodes{%
\@makeother\`%
\@makeother\=%
\catcode`\$=3 %
\catcode`\&=4 %
\catcode`\^=7 %
\catcode`\_=8 %
\@makeother\|%
\@makeother\:%
\@makeother\(%
\@makeother\)%
\@makeother\[%
\@makeother\]%
\@makeother\/%
\@makeother\!%
\@makeother\<%
\@makeother\>%
\@makeother\.%
\@makeother\;%
\@makeother\+%
\@makeother\-%
\@makeother\"%
\@makeother\'%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\Hy@RestoreCatcodes}
% \begin{macrocode}
\begingroup
\def\x#1{\catcode`\noexpand#1=\the\catcode`#1\relax}%
\xdef\Hy@RestoreCatcodes{%
\the\toks@
\x\$%
\x\&%
\x\^%
\x\_%
\x\|%
\x\:%
\x\(%
\x\)%
\x\[%
\x\]%
\x\/%
\x\!%
\x\<%
\x\>%
\x\.%
\x\;%
\x\+%
\x\-%
\x\"%
\x\'%
}%
\endgroup
% \end{macrocode}
% \end{macro}
% \begin{macrocode}
\Hy@SetCatcodes
% \end{macrocode}
%
% It needs the December 95 release of \LaTeX, because it uses
% |\protected@write|, and it defines commands in options; and the page
% setup internal code changed at that point. It'll probably break
% with the later releases!
% \begin{macrocode}
\RequirePackage{keyval}[1997/11/10]
\RequirePackage{ifpdf}[2006/02/20]
\RequirePackage{ifvtex}
\RequirePackage{ifxetex}[2006/08/21]
\RequirePackage{hycolor}
\def\Hy@Warning#1{\PackageWarning{hyperref}{#1}}
\def\Hy@WarningNoLine#1{\PackageWarningNoLine{hyperref}{#1}}
\def\Hy@Info#1{\PackageInfo{hyperref}{#1}}
% \end{macrocode}
%
% \subsection{Compatibility with format dumps}
%
% \begin{macro}{\AfterBeginDocument}
% For use with pre-compiled formats, created using the
% |ldump| package, there needs to be 2 hooks for adding
% material delayed until |\begin{document}|.
% These are called \cmd{\AfterBeginDocument} and
% \cmd{\AtBeginDocument}.
% If |ldump| is not loaded, then a single hook suffices
% for normal \LaTeX{} processing.
%
% The default definition of |\AfterBeginDocument| cannot
% be done by |\let| because of problems with |xypic|.
% \begin{macrocode}
\@ifundefined{AfterBeginDocument}{%
\def\AfterBeginDocument{\AtBeginDocument}%
}{}%
% \end{macrocode}
% \end{macro}
%
% \subsection{Switches}
% \begin{macrocode}
\newif\ifHy@typexml
\newif\ifHy@activeanchor
\newif\ifHy@backref
\newif\ifHy@bookmarks
\newif\ifHy@bookmarksnumbered
\newif\ifHy@bookmarksopen
\newif\ifHy@breaklinks
\newif\ifHy@centerwindow
\newif\ifHy@CJKbookmarks
\newif\ifHy@colorlinks
\newif\ifHy@draft
\let\Hy@finaltrue\Hy@draftfalse
\let\Hy@finalfalse\Hy@drafttrue
\newif\ifHy@escapeform
\newif\ifHy@figures
\newif\ifHy@fitwindow
\newif\ifHy@frenchlinks
\newif\ifHy@hyperfootnotes
\newif\ifHy@hyperindex
\newif\ifHy@hypertexnames
\newif\ifHy@implicit
\newif\ifHy@linktocpage
\newif\ifHy@menubar
\newif\ifHy@naturalnames
\newif\ifHy@nesting
\newif\ifHy@newwindowset
\newif\ifHy@newwindow
\newif\ifHy@ocgcolorlinks
\newif\ifHy@pageanchor
\newif\ifHy@pagelabels
\newif\ifHy@pdfpagehidden
\newif\ifHy@pdfstring
\newif\ifHy@plainpages
\newif\ifHy@psize
\newif\ifHy@raiselinks
\newif\ifHy@seminarslides
\newif\ifHy@setpagesize
\newif\ifHy@texht
\newif\ifHy@toolbar
\newif\ifHy@unicode
\newif\ifHy@usetitle
\newif\ifHy@verbose
\newif\ifHy@windowui
\newif\ifHy@displaydoctitle
\newif\ifHy@pdfa
% \end{macrocode}
% Defaults for the switches are now set.
% \begin{macrocode}
\Hy@backreffalse
\Hy@bookmarksnumberedfalse
\Hy@bookmarksopenfalse
\Hy@bookmarkstrue
\Hy@breaklinksfalse
\Hy@centerwindowfalse
\Hy@CJKbookmarksfalse
\Hy@escapeformfalse
\Hy@figuresfalse
\Hy@fitwindowfalse
\Hy@hyperfootnotestrue
\Hy@hyperindextrue
\Hy@hypertexnamestrue
\Hy@implicittrue
\Hy@linktocpagefalse
\Hy@menubartrue
\Hy@naturalnamesfalse
\Hy@nestingfalse
\Hy@newwindowsetfalse
\Hy@newwindowfalse
\Hy@pageanchortrue
\Hy@pagelabelstrue
\Hy@pdfpagehiddenfalse
\Hy@pdfstringfalse
\Hy@plainpagesfalse
\Hy@raiselinksfalse
\Hy@setpagesizetrue
\Hy@texhtfalse
\Hy@toolbartrue
\Hy@typexmlfalse
\Hy@unicodefalse
\Hy@usetitlefalse
\Hy@verbosefalse
\Hy@windowuitrue
\Hy@displaydoctitlefalse
\Hy@pdfafalse
% \end{macrocode}
%
% \section{Common help macros}
%
% \begin{macro}{\Hy@StepCount}
% \begin{macrocode}
\def\Hy@StepCount#1{\advance#1 by 1 }%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\Hy@GlobalStepCount}
% \begin{macrocode}
\def\Hy@GlobalStepCount#1{\global\advance#1 by 1 }%
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
\newdimen\@linkdim
\let\Hy@driver\@empty
\let\MaybeStopEarly\relax
\newcount\Hy@linkcounter
\newcount\Hy@pagecounter
\Hy@linkcounter0
\Hy@pagecounter0
% \end{macrocode}
%
% \subsection{Macros for recursions}
%
% \begin{macro}{\Hy@ReturnAfterElseFi}
% \begin{macro}{\Hy@ReturnAfterFi}
% The commands \cs{Hy@ReturnAfterElseFi} and \cs{Hy@ReturnAfterFi}
% avoid a too deep \cs{if}-nesting especially for recursive macros.
% \begin{macrocode}
\long\def\Hy@ReturnAfterElseFi#1\else#2\fi{\fi#1}
\long\def\Hy@ReturnAfterFi#1\fi{\fi#1}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \begin{macrocode}
\let\Hy@ReturnEnd\@empty
\long\def\Hy@ReturnAfterFiFiEnd#1\fi#2\Hy@ReturnEnd{\fi\fi#1}
\long\def\Hy@ReturnAfterElseFiFiEnd#1\else#2\Hy@ReturnEnd{\fi\fi#1}
% \end{macrocode}
%
% \subsection{Babel's protection of shorthand characters}
%
% \begin{macro}{\Hy@safe@activestrue}
% \begin{macro}{\Hy@safe@activesfalse}
% Babel's switch setting commands cannot used directly,
% because they can be undefined if babel is not loaded.
% \begin{macrocode}
\def\Hy@safe@activestrue{\csname @safe@activestrue\endcsname}
\def\Hy@safe@activesfalse{\csname @safe@activesfalse\endcsname}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \subsection{Coordinate transformations}
%
% At some places numbers in pdf units are
% expected (eg: FitBH, ...). The following macros
% perform the transformation from TeX units (pt)
% to PDF units (bp).
%
% \begin{macro}{\hypercalcbp}
% The user macro \cmd{\hypercalcbp} can be used, for example,
% inside option values:
%\begin{verbatim}
%pdfstartview={FitBH \hypercalcbp{\paperheight-\topmargin-1in}}
%\end{verbatim}
% \begin{itemize}
% \item
% It cannot be used inside \cmd{\usepackage}, because
% LaTeX expands the options before package hyperref
% is loaded and \cmd{\hypercalcbp} is defined.
% \item
% With e-TeX extensions an expandable implementation
% is very easy; \cmd{\hypercalcbp} can be used
% everywhere and is expanded at use.
% \item
% Without e-TeX's features \cmd{\hypercalcbp} cannot be
% implemented expandable (practically) and have to
% be supported by \cmd{\hypercalcbpdef}.
% Limitations:
% \begin{itemize}
% \item Works only in options that use \cmd{\hypercalcbpdef}
% (currently only |pdfstartview|).
% \item For calculations package |calc| has to be loaded.
% \item The expansion of the argument is done at definition time.
% \end{itemize}
% \end{itemize}
% Example (\TeX):
%\begin{verbatim}
%\usepackage{calc}
%\usepackage[...]{hyperref}
%\hypersetup{
% pdfstartview={FitBH \hypercalcbp{\paperheight-\topmargin-1in
% -\headheight-\headsep}
%}
%\end{verbatim}
% \begin{macro}{\hypercalcbp}
% \begin{macrocode}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname dimexpr\endcsname\relax
\def\hypercalcbpdef#1#2{%
\begingroup
\toks@{}%
\HyCal@scan#2\hypercalcbp\@nil
\expandafter\endgroup
\expandafter\def\expandafter#1\expandafter{\the\toks@}%
}%
\def\HyCal@scan#1\hypercalcbp#2\@nil{%
\toks@\expandafter{\the\toks@ #1}%
\ifx\\#2\\%
\else
\Hy@ReturnAfterFi{%
\HyCal@do#2\@nil
}%
\fi
}%
\def\HyCal@do#1#2\@nil{%
\@ifpackageloaded{calc}{}{%
\Hy@Warning{%
For calculations \string\hypercalcbp\space needs\MessageBreak
package calc or e-TeX%
}%
}%
\setlength{\dimen@}{#1}%
\setlength{\dimen@}{0.99626401\dimen@}%
\edef\x{%
\toks@{%
\the\toks@
\strip@pt\dimen@
}%
}\x
\HyCal@scan#2\@nil
}%
\else
\def\hypercalcbp#1{%
\strip@pt\dimexpr 0.99626401\dimexpr #1\relax\relax
}%
\def\hypercalcbpdef{\def}%
\fi
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \section{Dealing with PDF strings}\label{sec:pdfstring}
% The PDF string stuff done by Heiko Oberdiek.\\
% Email: \Email{oberdiek@uni-freiburg.de}.
%
% Naming convention: All internal commands that are only
% needed by \cs{pdfstringdef} are prefixed with \cs{HyPsd@}.
%
% \subsection{Description of PDF strings}
% The PDF specification defines several places to hold
% text strings (bookmark names, document information,
% text annotations, etc.).
% The PDF strings have following properties:
% \begin{itemize}
% \item They are surrounded by parentheses. The hexadecimal form
% is not supported.
% \item Like PostScript language strings they use the same
% escaping mechanism:\\
% \begin{tabular}{ll}
% |\\|& the backslash itself\\
% \cs{)}, \cs{(}& unbalanced parentheses\\
% \cs{n}, \cs{r}, \cs{t}, \cs{b}, \cs{f}& special white space
% escape sequences\\
% |\|\textit{|ddd|}& octal character code \textit{|ddd|}
% \end{tabular}
% \item Strings are stored either in PDFDocEncoding, which is a superset of
% ISOLatin1 and is compatible with Unicode with character codes
% below 256, or in Unicode.
% \end{itemize}
%
% \subsection{Definition of
% \texorpdfstring{\cs{pdfstringdef}}{\\pdfstringdef}}
% The central macro for dealing with PDF strings is \cs{pdfstringdef}.
% It defines a command |#1| to be the result of the conversion
% from the string in |#2| to a legal PDFDocEncoded string.
% Currently the definition is global, but this can be changed in
% the future.
%
% Important: In \TeX's view PDF strings are written to a file and
% are expanded only in its mouth. Stomach commands that cannot
% be expanded further aren't executed, they are written verbatim.
% But the PDF reader that reads such a string isn't a \TeX{}
% interpreter!
%
% The macro \cs{pdfstringdef} consists of three main parts:
% \begin{enumerate}
% \item Preprocessing. Here the expansion is prepared. The encoding
% is set and many commands are redefined, so that they work
% appropriate.
% \item Expansion. The \TeX{} string is expanded the first time
% to get a PDF string.
% \item Postprocessing. The result of the expansion is checked and
% converted to the final form.
% \end{enumerate}
%
% \begin{macro}{\pdfstringdef}
% \cs{pdfstringdef} works on the tokens in |#2| and converts them to
% a PDF string as far as possible:
% \begin{itemize}
% \item The result should obey the rules of the PDF specification
% for strings.
% \item The string can safely processed by \TeX, because the
% tokens have only catcodes 10 until 12.
% \end{itemize}
% The result is stored in the command token given in |#1|.
% \begin{macrocode}
\def\pdfstringdef#1#2{%
% \end{macrocode}
% Many redefinitions are needed, so all the work is done in a group.
% \begin{macrocode}
\begingroup
% \end{macrocode}
%
% \subsubsection{Preprocessing}
% \paragraph{Octal escape sequences.}
% To avoid problems with eight bit or non printable characters, the octal
% escape notation is supported. So most glyphs in the encoding definitions
% for PD1 and PU produce these octal escape sequences.
% All three octal digits have to be used:
% \begin{itemize}
% \item Wrong results are avoided, if digits follow that are not part of the
% octal sequence.
% \item Macros rely on the fact that the octal sequences always consist of
% three digits (vtex driver, Unicode support).
% \end{itemize}
% The escape sequences start with a backslash. By \cs{string} it will be
% printed. Therefore it is ensured that the \TeX{} escape character indeed
% prints as a normal backslash.
% Eventually this line can be removed, because this is standard
% \LaTeX{} behaviour.
% \begin{macrocode}
\escapechar`\\%
% \end{macrocode}
% From the view of \TeX{} a octal sequence consists of the command tokens
% \cs{0} until \cs{3} and two digits.
% For saving tokens \cs{0}, \cs{1}, \cs{2}, and \cs{3} are directly
% used without a preceding \cs{string} in the glyph definitions.
% This is done here locally
% by defining the \cs{0} until \cs{3} commands. So the user
% can use octal escape sequences directly, the disadvantage is
% that a previous definition of this short commands does not apply.
% \begin{macrocode}
\edef\0{\string\0}%
\edef\1{\string\1}%
\edef\2{\string\2}%
\edef\3{\string\3}%
% \end{macrocode}
% \paragraph{Setting font encoding.}
% The unicode encoding
% uses \cs{8} and \cs{9} as marker for the higher byte.
% \cs{8} is an abbreviation for the higher bytes 0 until 7
% that can be expressed by one digit. \cs{8} will be
% converted to \cs{00}. However \cs{9} only marks the next
% three digits as higher byte and will be removed later.
%
% The encoding is set by \cs{enc@update} for optimizing reasons.
% \begin{macrocode}
\ifHy@unicode
\edef\8{\string\8}%
\edef\9{\string\9}%
\fontencoding{PU}%
\HyPsd@UTFviii
\def\ifpdfstringunicode##1##2{##1}%
\else
\fontencoding{PD1}%
\def\ifpdfstringunicode##1##2{##2}%
\fi
\enc@update
% \end{macrocode}
%
% \paragraph{Internal encoding commands.}
% \cs{pdfstringdef} interpretes text strings which are not allowed
% to contain mathematical stuff. The text glyph commands will produce
% a warning, if called in math mode. But this warning disturbs while
% expanding. Therefore we check for math mode here, before
% \cs{@inmathwarn} will be disabled (see below).
% \begin{macrocode}
\@inmathwarn\pdfstringdef
% \end{macrocode}
% If a glyph is used, that isn't in the PD1/PU encoding there will
% be an infinite error loop, because the NFSS encoding stuff
% have to be expanded unprotected (\cs{edef}), so that the
% assigments of \cs{@changed@cmd} don't take place.
% To patch this behaviour I only found \cs{@inmathwarn}
% as a usable hook. While an \cs{edef} a warning message by
% \cs{@inmathwarn} or \cs{TextSymbolUnavailable} cannot be give out,
% so \cs{@inmathwarn} should be disabled. And with the help of it
% the assignments in \cs{@changed@cmd} can easily be caught
% (see below).
% \begin{macrocode}
\let\@inmathwarn\HyPsd@inmathwarn
% \end{macrocode}
%
% Unknown composite characters are built with \cs{add@accent},
% so it is redefined to provide a warning.
% \begin{macrocode}
\let\add@accent\HyPsd@add@accent
% \end{macrocode}
%
% \paragraph{Commands that don't use NFSS directly.}
% There are several commands that prints characters in the
% printable ASCII area that don't obey the NFSS, so they have
% to be redefined here.
% \begin{macrocode}
\let\{\textbraceleft
\let\}\textbraceright
\let\\\textbackslash
\let\#\textnumbersign
\let\$\textdollar
\let\%\textpercent
\let\&\textampersand
% \let\~\textasciitilde
\let\_\textunderscore
\let\P\textparagraph
\let\ldots\textellipsis
\let\dots\textellipsis
% \end{macrocode}
%
% \paragraph{Newline}
% \cmd{\newline} or \cmd{\\} do not work in bookmarks, in text
% annotations they should expand to \cmd{\r}. In pdf strings
% \cmd{\\} stands for a backslash. Therefore the commands
% are disabled now. The user can redefine them for a result
% what he want:
% \begin{description}
% \item[backslash:]
% |\pdfstringdefDisableCommands{\let\\\textbackslash}|
% \item[new line:]
% |\pdfstringdefDisableCommands{\let\\\textCR}|
% \item[disabled:]
% |\pdfstringdefDisableCommands{\let\\\empty}|
% \end{description}
% At any case, however, the optional argument or the star
% cannot be scanned in a 100\% sure manner.
% \begin{macrocode}
\def\\{\pdfstringdefWarn\\}%
\def\newline{\pdfstringdefWarn\newline}%
% \end{macrocode}
%
% \paragraph{Logos.}
% Because the box shifting
% used in the \TeX{} logo does not work while writing to a file,
% the standard \TeX{} logos are redefined.
% \begin{macrocode}
\def\TeX{TeX}%
\def\LaTeX{La\TeX}%
\def\LaTeXe{\LaTeX2e}%
\def\eTeX{e-\TeX}%
\def\SliTeX{Sli\TeX}%
\def\MF{Metafont}%
\def\MP{Metapost}%
% \end{macrocode}
%
% \paragraph{Standard font commands.}
% Because font changes do not work, the standard font
% switching commands are disabled.
% \begin{macrocode}
\let\emph\@firstofone
\let\textnormal\@firstofone
\let\textrm\@firstofone
\let\textsf\@firstofone
\let\texttt\@firstofone
\let\textbf\@firstofone
\let\textmd\@firstofone
\let\textit\@firstofone
\let\textsc\@firstofone
\let\textsl\@firstofone
\let\textup\@firstofone
\let\normalfont\@empty
\let\rmfamily\@empty
\let\sffamily\@empty
\let\ttfamily\@empty
\let\bfseries\@empty
\let\mdseries\@empty
\let\itshape\@empty
\let\scshape\@empty
\let\slshape\@empty
\let\upshape\@empty
\let\em\@empty
\let\rm\@empty
\let\Huge\@empty
\let\LARGE\@empty
\let\Large\@empty
\let\footnotesize\@empty
\let\huge\@empty
\let\large\@empty
\let\normalsize\@empty
\let\scriptsize\@empty
\let\small\@empty
\let\tiny\@empty
\let\mathversion\@gobble
\let\phantom\@gobble
\let\vphantom\@gobble
\let\hphantom\@gobble
% \end{macrocode}
%
% \paragraph{Package color.}
% \begin{macrocode}
\def\textcolor##1##{\@secondoftwo}%
% \end{macrocode}
%
% \paragraph{Upper- and lowercase.}
% \begin{macrocode}
\def\MakeUppercase{\MakeUppercaseIsNotSupportedInPdfStrings}%
\def\MakeLowercase{\MakeLowercaseIsNotSupportedInPdfStrings}%
% \end{macrocode}
%
% \paragraph{Package babel.}
% Whereever ``naturalnames'' is used, disable \cs{textlatin}
% (from Babel 3.6k). Thanks to Felix Neubauer
% (Email: \Email{Felix.Neubauer@gmx.net}).
% \begin{macrocode}
\let\textlatin\@firstofone
\@ifundefined{language@group}{}{%
\csname HyPsd@babel@\language@group\endcsname
}%
\HyPsd@GreekPatch
% \end{macrocode}
%
% \begin{macrocode}
\let\@safe@activestrue\relax
\let\@safe@activesfalse\relax
% \end{macrocode}
%
% Disable \cs{cyr}, used in russianb.ldf.
% \begin{macrocode}
\let\cyr\relax
% \end{macrocode}
%
% Redefine \cs{es@roman}, used in spanish.ldf.
% \begin{macrocode}
\let\es@roman\@Roman
% \end{macrocode}
%
% \paragraph{Package german.}
% \begin{macrocode}
\let\glqq\textglqq
\let\grqq\textgrqq
\let\glq\textglq
\let\grq\textgrq
\let\flqq\textflqq
\let\frqq\textfrqq
\let\flq\textflq
\let\frq\textfrq
% \end{macrocode}
%
% \paragraph{Package french.} The support is deferred, because
% it needs |\GenericError| to be disabled (see below).
%
% \paragraph{Package FrenchPro.} This package uses:
% \begin{quote}
% |\if@mid@expandable{|not fully expandable code|}{|fully expandable code|}|
% \end{quote}
% \begin{macrocode}
\let\if@mid@expandable\@firstoftwo
% \end{macrocode}
%
% \paragraph{AMS classes.}
% \begin{macrocode}
\HyPsd@AMSclassfix
% \end{macrocode}
%
% \paragraph{Redefinition of \cs{hspace}}
% \cs{hspace} don't work in bookmarks, the following fix
% tries to set a space if the argument is a positive length.
% \begin{macrocode}
\let\hspace\HyPsd@hspace
% \end{macrocode}
%
% \paragraph{Commands of referencing and indexing systems.}
% Some \LaTeX{} commands that are legal in \cs{section} commands
% have to be disabled here.
% \begin{macrocode}
\let\label\@gobble
\let\index\@gobble
\let\glossary\@gobble
\let\href\@secondoftwo
\let\@mkboth\@gobbletwo
% \end{macrocode}
%
% The \cs{ref} and \cs{pageref} is much more complicate because of their
% star form.
% \begin{macrocode}
\let\ref\HyPsd@ref
\let\pageref\HyPsd@pageref
\let\nameref\HyPsd@nameref
\let\autoref\HyPsd@autoref
% \end{macrocode}
%
% \paragraph{Miscellaneous commands.}
% \begin{macrocode}
\let\leavevmode\@empty
\let\mbox\@empty
% \end{macrocode}
% \cs{halign} causes error messages because of the template
% character |#|.
% \begin{macrocode}
\def\halign{\pdfstringdefWarn\halign\@gobble}%
% \end{macrocode}
% \begin{macrocode}
\let\ignorespaces\HyPsd@ignorespaces
% \end{macrocode}
%
% \paragraph{Patch for cjk bookmarks.}
% \begin{macrocode}
\ifHy@CJKbookmarks
\HyPsd@CJKhook
\fi
% \end{macrocode}
%
% \paragraph{User hook.}
% The switch \cs{Hy@pdfstring} is turned on. So user commands
% can detect that they are processed not to be typesetted within
% \TeX's stomach,
% but to be expanded by the mouth to give a PDF string.
% At this place before interpreting the string in |#2| additional
% redefinitions can by added by the hook \cs{pdfstringdefPreHook}.
%
% The position in the middle of the redefinitions is a compromise:
% The user should be able to provide his own (perhaps better)
% redefinitions, but some commands should have their original
% meaning, because they can be used in the hook (\cs{bgroup},
% or \cs{@protected@testopt}, and \cs{@ifnextchar}
% for \cs{renewcommand}).
% \begin{macrocode}
\Hy@pdfstringtrue
\pdfstringdefPreHook
% \end{macrocode}
%
% \paragraph{Spaces.}
% For checking the token of the string, spaces must be masked, because
% they cannot by caught by undelimited arguments.
% \begin{macrocode}
\HyPsd@LetUnexpandableSpace\space
\HyPsd@LetUnexpandableSpace\ %
\HyPsd@LetUnexpandableSpace~%
\HyPsd@LetUnexpandableSpace\nobreakspace
% \end{macrocode}
%
% \paragraph{Package xspace.}
% \begin{macrocode}
\@ifundefined{@xspace}{%
\let\xspace\HyPsd@ITALCORR
}{%
\let\xspace\HyPsd@XSPACE
}%
\let\/\HyPsd@ITALCORR
\let\bgroup\/%
\let\egroup\/%
% \end{macrocode}
%
% \paragraph{Redefinitions of miscellaneous commands.}
% Hyphenation does not make sense.
% \begin{macrocode}
\let\discretionary\@gobbletwo
% \end{macrocode}
%
% \cs{@ifstar} is defined in \LaTeX\ as follows:
%\begin{verbatim}
%\def\@ifstar#1{\@ifnextchar *{\@firstoftwo{#1}}}
%\end{verbatim}
% \cs{@ifnextchar} doesn't work, because it uses stomach
% commands like \cs{let} and \cs{futurelet}. But it
% doesn't break. Whereas |\@firstoftwo{#1}}| gives an
% error message because \cs{@firstoftwo} misses its second
% argument.
%
% A mimicry of \cs{@ifnextchar} only with expandible commands
% would be very extensive and the result would be only an
% approximation. So here a cheaper solution follows
% in order to get rid of the error message at least:
% \begin{macrocode}
\def\@ifnextchar{\HyPsd@ifnextchar\@ifnextchar}%
\def\kernel@ifnextchar{\HyPsd@ifnextchar\kernel@ifnextchar}%
\def\new@ifnextchar{\HyPsd@ifnextchar\new@ifnextchar}%
\let\@protected@testopt\HyPsd@protected@testopt
% \end{macrocode}
% Support for package `xargs':
% \begin{macrocode}
\let\@protected@testopt@xargs\HyPsd@protected@testopt
% \end{macrocode}
%
% \subsubsection{Expansion}
% There are several possibilities to
% expand tokens within \LaTeX:
% \begin{description}
% \item[\cs{protected@edef}:]
% The weakest form isn't usable, because
% it does not expand the font encoding commands. They are
% made roboust and protect themselves.
% \item[\cs{csname}:] First the string is
% expanded whithin a \cs{csname} and \cs{endcsname}.
% Then the command name is converted to characters
% with catcode 12 by \cs{string} and the first
% escape character removed by \cs{@gobble}.
% This method has the great \emph{advantage} that
% stomach tokens that aren't allowed in PDF strings are detected
% by \TeX{} and reported as errors in order to force the user
% to write correct things. So he get no wrong results by
% forgetting the proofreading of his text.
% But the \emph{disadvantage} is that old wrong code cannot
% processed without errors. Mainly the error message is very cryptic
% and for the normal user hard to understand. \TeX{} provides
% no way to catch the error caused by \cs{csname} or allows to
% support the user with a descriptive error message. Therefore
% the experienced user had to enable this behaviour by an
% option |exactdef| in previous versions less or equal 6.50.
% \item[\cs{edef}] This version uses this standard form for expansion.
% It is stronger than \LaTeX's \cs{protected@edef}.
% So the font encoding mechanism works and the glyph commands
% are converted to the correct tokens for PDF strings whith the
% definitions of the PD1 encoding.
% Because the protecting mechanism of \LaTeX{} doesn't work
% within an \cs{edef}, there are situations thinkable where
% code can break. For example, assignments and definitions aren't
% performed and so undefined command errors or argument
% parsing errors can occur. But this is only a compatibility problem
% with old texts. Now there are possibilities to write
% code that gives correct PDF strings (see \cs{texorpdfstring}).
% In the most cases unexpandable commands and tokens
% (math shift, grouping characters) remains. They
% don't cause an error like with \cs{csname}. However a PDF reader
% isn't \TeX{}, so these tokens are viewed verbatim. So
% this version detects them now, and removes them with an
% descriptive warning for the user. As additional features
% xspace support is possible and grouping characters can be
% used without problems, because they are removed silently.
% \end{description}
%
% \paragraph{Generic messages.}
% While expanding via \cs{xdef} the |\Generic...| messages
% don't work and causes problems (error messages, invalid |.out|
% file). So they are disabled while expanding and removed silently,
% because a user warning would be too expensive (memory and runtime,
% |\pdfstringdef| is slow enough).
% \begin{macrocode}
\begingroup
\let\GenericError\@gobblefour
\let\GenericWarning\@gobbletwo
\let\GenericInfo\@gobbletwo
% \end{macrocode}
%
% \paragraph{Package french.}
% This fix only works, if \cs{GenericError} is disabled.
% \begin{macrocode}
\ifx\nofrenchguillemets\@undefined
\else
\nofrenchguillemets
\fi
% \end{macrocode}
%
% \paragraph{Definition commands and expansion.}
% Redefining the defining commands (see sec. \ref{defcmd}).
% The original meaning of \cs{xdef} is saved in \cs{Hy@temp}.
% \begin{macrocode}
\let\Hy@temp\xdef
\let\def\HyPsd@DefCommand
\let\gdef\HyPsd@DefCommand
\let\edef\HyPsd@DefCommand
\let\xdef\HyPsd@DefCommand
\let\futurelet\HyPsd@LetCommand
\let\let\HyPsd@LetCommand
\Hy@temp#1{#2}%
\endgroup
% \end{macrocode}
%
% \subsubsection{Postprocessing}
% If the string is empty time can be saved by omitting the
% postprocessing process.
% \begin{macrocode}
\ifx#1\@empty
\else
% \end{macrocode}
%
% \paragraph{Protecting spaces and removing grouping characters.}
% In order to check the tokens we must separate them. This will be
% done with \TeX's argument parsing. With this method
% we must the following item takes into account, that makes
% makes things a litte more complicate:
% \begin{itemize}
% \item \TeX{} does not accept a space as an undelimited argument,
% it cancels space tokens while looking for an undelimited
% argument. Therefore we must protect the spaces now.
% \item An argument can be a single token or a group of many tokens.
% And within curly braces tokens aren't find by \TeX's
% argument scanning process. Third curly braces as grouping characters
% cannot be expanded further, so they don't vanish by the string
% expansion above. So these characters with catcode 1 and 2 are
% removed in the following and replaced by an marker for the xspace
% support.
% \item \TeX{} silently removes the outmost pair of braces of an
% argument. To prevent this on unwanted places, in the following
% the character \verb+|+ is appended to the string to make an outer
% brace to an inner one.
% \end{itemize}
% First the top level spaces are protected by replacing. Then the
% string is scanned to detect token groups. Each token group
% will now be space protected and again scanned for another
% token groups.
% \begin{macrocode}
\HyPsd@ProtectSpaces#1%
\let\HyPsd@String\@empty
\expandafter\HyPsd@RemoveBraces\expandafter{#1|}%
\global\let#1\HyPsd@String
% \end{macrocode}
%
% \paragraph{Check tokens.}
% After removing the spaces and the grouping characters
% the string now should only consists of the following tokens/catcodes:\\
% \begin{tabular}{rl}
% 0&command names with start with an escape character.\\
% 3&math shift\\
% 4&alignment tabs\\
% 6¶meter, but this is unlikely.\\
% 7&superscript\\
% 8&subscript\\
% 11&letter\\
% 12&other\\
% 13&commands that are active characters.
% \end{tabular}
%
% After \cs{HyPsd@CheckCatcodes} the command \cs{HyPsd@RemoveMask} is
% reused to remove the group protection character \verb+|+.
% This character is needed to ensure that the string at least
% consists of one token if \cs{HyPsd@CheckCatcodes}
% is called.
%
% Because of internal local assignments and tabulars
% group braces are used.
% \begin{macrocode}
\let\HyPsd@SPACEOPTI\relax
{%
\let\HyPsd@String\@empty
\expandafter\HyPsd@CheckCatcodes#1\HyPsd@End
\global\let#1\HyPsd@String
}%
\expandafter\HyPsd@RemoveMask\expandafter
|\expandafter\@empty#1\HyPsd@End#1%
% \end{macrocode}
% \cs{HyPsd@CheckCatcodes} should no have removed the tokens with
% catcode 3, 4, 7, and 8. Because a parameter token (6) would
% cause to many errors before, there should now be only tokens
% with catcodes 11 or 12. So I think there is no need for
% a safety step like:
%\begin{verbatim}
%\xdef#1{\expandafter\strip@prefix\meaning#1}%
%\end{verbatim}
% \paragraph{Looking for wrong glyphs.}
% The case that glyphs aren't defined in the PD1 encoding
% is caught above in such a way, that the glyph name and
% a marker is inserted into the string. Now we can safely
% scan the string for this marker and provide a descriptive
% warning.
% \begin{macrocode}
\expandafter\HyPsd@Subst\expandafter{\HyPsd@GLYPHERR}{\relax}#1%
\let\HyPsd@String\@empty
\expandafter\HyPsd@GlyphProcess#1\relax\@empty
\global\let#1\HyPsd@String
% \end{macrocode}
%
% \paragraph{Backslash.}
% The double backslash disturbs parsing octal sequenzes, for
% example in an string like |abc\\051| the sequence \cs{051}
% is detected although the second \cs{} belongs to the
% first backslash.
% \begin{macrocode}
\HyPsd@StringSubst{\\}{\textbackslash}#1%
% \end{macrocode}
%
% \paragraph{Spaces.}
% All spaces have already the form \cs{040}.
% The last postprocessing step will
% be an optimizing of the spaces, so we already introduce
% already the necessary command \cs{HyPsd@SPACEOPTI}.
% But first it is defined to be \cs{relax} in order to
% prevent a too early expansion by an \cs{edef}.
% Secondly a \cs{relax} serves as a marker for
% a token that is detected by \cs{xspace}.
%
% The code of |frenchb.ldf| can produce an additional
% space before \cs{guillemotright}, because \cs{lastskip}
% and \cs{unskip} do not work. Therefore it is removed here.
% \begin{macrocode}
\ifHy@unicode
\expandafter\HyPsd@StringSubst\csname 80\040\endcsname
\HyPsd@SPACEOPTI#1%
\edef\Hy@temp@A{\HyPsd@SPACEOPTI\HyPsd@SPACEOPTI\80\273}%
\expandafter\HyPsd@Subst\expandafter{\Hy@temp@A}%
{\HyPsd@SPACEOPTI\80\273}#1%
\else
\HyPsd@StringSubst{\040}\HyPsd@SPACEOPTI#1%
\expandafter\HyPsd@Subst\expandafter{%
\expandafter\HyPsd@SPACEOPTI\expandafter\HyPsd@SPACEOPTI
\string\273}{\HyPsd@SPACEOPTI\273}#1%
\fi
% \end{macrocode}
%
% \paragraph{Right parenthesis.}
% Also \cs{xspace} detects a right parenthesis.
% For the \cs{xspace} support and the following
% parenthesis check the different parenthesis
% notations |)|, \cs{)}, and \cs{051} are converted
% to one type \cs{)} and before \cs{HyPsd@empty}
% with the meaning of \cs{relax} is introduced for
% \cs{xspace}. By redefining to \cs{@empty} \cs{HyPsd@empty}
% can easily removed later.
% \begin{macrocode}
\ifHy@unicode
\HyPsd@StringSubst{\)}{\80\051}#1%
\HyPsd@Subst){\80\051}#1%
\let\HyPsd@empty\relax
\expandafter\HyPsd@StringSubst\csname 80\051\endcsname
{\HyPsd@empty\80\051}#1%
\else
\HyPsd@StringSubst{\)}{\051}#1%
\HyPsd@Subst){\051}#1%
\let\HyPsd@empty\relax
\HyPsd@StringSubst{\051}{\HyPsd@empty\string\)}#1%
\fi
% \end{macrocode}
%
% \paragraph{Support for package \texttt{xspace}.}
% \cs{xspace} looks for the next token and decides if it
% expands to a space or not. Following tokens prevent its
% transformation to a space: Beginning and end of group,
% handled above by replacing by an italic correction,
% several punctuation marks, a closing parentheses, and
% several spaces.
%
% Without package |xspace| there are tokens with catcode 11 and 12,
% \cs{HyPsd@empty} and \cs{HyPsd@SPACEOPTI}. With package |xspace|
% marker for the italic correction \cs{/} and \cs{xspace} come with.
% In the package |xspace| case the two markers are replaced by
% commands and an \cs{edef} performs the \cs{xspace} processing.
%
% In the opposite of the original \cs{xspace} \cs{HyPsd@xspace} uses
% an argument instead of a \cs{futurelet}, so we have to provide
% such an argument, if \cs{HyPsd@xspace} comes last. Because
% \cs{HyPsd@Subst} with several equal tokens (|--|) needs a safe
% last token, in both cases
% the string gets an additional \cs{HyPsd@empty}.
% \begin{macrocode}
\expandafter\HyPsd@Subst\expandafter{\/}\HyPsd@empty#1%
\@ifundefined{@xspace}{%
}{%
\let\HyPsd@xspace\relax
\expandafter\HyPsd@Subst\expandafter
{\HyPsd@XSPACE}\HyPsd@xspace#1%
\let\HyPsd@xspace\HyPsd@doxspace
}%
\xdef#1{#1\HyPsd@empty}%
% \end{macrocode}
%
% \paragraph{Ligatures.}
% \TeX{} forms ligatures in its stomach, but the PDF strings are
% treated only by \TeX's mouth. The PDFDocEncoding contains
% some ligatures, but the current
% version 3 of the AcrobatReader lacks the |fi| and |fl| glyphs, and
% the Linux version lacks the |emdash| and |endash| glyphs.
% So the necessary code is provided here, but currently disabled,
% hoping that version 4 of the AcrobatReader is better.
% To break the ligatures the user can use an empty group,
% because it leads to an insertion of an \cs{HyPsd@empty}.
% If this ligature code will be enabled some day, then the italic
% correction should also break the ligatures. Currently this occurs
% only, if package |xspace| is loaded.
%
% Since newer AcrobatReader versions now show the en- and emdash in
% a correct way (AR7/Linux, AR8/Linux), the substitution code
% for them is enabled starting with version 6.78l.
% \begin{macrocode}
\HyPsd@Subst{---}\textemdash#1%
\HyPsd@Subst{--}\textendash#1%
% \HyPsd@Subst{fi}\textfi#1%
% \HyPsd@Subst{fl}\textfl#1%
\HyPsd@Subst{!`}\textexclamdown#1%
\HyPsd@Subst{?`}\textquestiondown#1%
% \end{macrocode}
% With the next \cs{edef} we get rid of the token \cs{HyPsd@empty}.
% \begin{macrocode}
\let\HyPsd@empty\@empty
% \end{macrocode}
%
% \paragraph{Left parentheses.}
% Left parentheses are now converted to safe forms to avoid
% problems with unmatched ones (\cs{(} with PDFDocEncoding,
% the octal sequence with Unicode.
%
% An optimization is possible. Matched parentheses can replaced
% by a |()| pair. But this code is removed to save \TeX{} memory
% and time.
% \begin{macrocode}
\ifHy@unicode
\HyPsd@StringSubst\(\textparenleft#1%
\HyPsd@Subst(\textparenleft#1%
\else
\HyPsd@StringSubst\({\050}#1%
\HyPsd@Subst({\050}#1%
\HyPsd@StringSubst{\050}{\string\(}#1%
\fi
% \end{macrocode}
%
% \paragraph{Optimizing spaces.}
% Spaces are often used, but they have a very long form \cs{040}.
% They are converted back to real spaces, but not all, so that
% no space follows after another. In the bookmark case several
% spaces are written to the |.out| file, but if the entries
% are read back, several spaces are merged to a single one.
%
% With Unicode the spaces are replaced by their octal sequences.
% \begin{macrocode}
\ifHy@unicode
\edef\HyPsd@SPACEOPTI{\80\040}%
\else
\let\HyPsd@SPACEOPTI\HyPsd@spaceopti
\fi
\xdef#1{#1\@empty}%
\fi
% \end{macrocode}
%
% \paragraph{Converting to Unicode.}
% At last the eight bit letters have to be converted to Unicode,
% the masks \cs{8} and \cs{9} are removed and the Unicode
% marker is added.
% \begin{macrocode}
\endgroup
\begingroup
\ifHy@unicode
\HyPsd@ConvertToUnicode#1%
% \end{macrocode}
%
% \paragraph{Try conversion back to PDFDocEncoding.}
%
% \begin{macrocode}
\ifx\HyPsd@pdfencoding\HyPsd@pdfencoding@auto
\@ifundefined{StringEncodingConvertTest}{%
}{%
\EdefUnescapeString\HyPsd@temp#1%
\StringEncodingConvertTest\HyPsd@temp\HyPsd@temp
{utf16be}{pdfdoc}{%
\EdefEscapeString\HyPsd@temp\HyPsd@temp
\global\let#1\HyPsd@temp
\Hy@unicodefalse
}{}%
}%
\fi
\fi
% \end{macrocode}
%
% \paragraph{User hook.}
% The hook \cs{pdfstringdefPostHook} can be used
% for the purpose to postprocess the string further.
% \begin{macrocode}
\pdfstringdefPostHook#1%
\endgroup
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Hy@pdfstringdef}
% \begin{macrocode}
\def\Hy@pdfstringdef#1#2{%
\pdfstringdef\Hy@gtemp{#2}%
\let#1\Hy@gtemp
}
% \end{macrocode}
% \end{macro}
%
% \subsection{Encodings}
%
% \subsubsection{Workaround for package linguex}
%
% \begin{macrocode}
\@ifpackageloaded{linguex}{%
\let\HyLinguex@OrgB\b
\let\HyLinguex@OrgC\c
\let\HyLinguex@OrgD\d
\def\HyLinguex@Restore{%
\let\b\HyLinguex@OrgB
\let\c\HyLinguex@OrgC
\let\d\HyLinguex@OrgD
}%
\AtEndOfPackage{%
\pdfstringdefDisableCommands{%
\@ifundefined{oldb}{}{\let\b\oldb}%
\@ifundefined{oldc}{}{\let\c\oldc}%
\@ifundefined{oldd}{}{\let\d\oldd}%
}%
}%
}{%
\let\HyLinguex@Restore\relax
}%
% \end{macrocode}
%
% \subsubsection{PD1 encoding}
% The PD1 encoding implements the PDFDocEncoding for use with
% \LaTeXe's NFSS. Because the informational strings are not set by
% \TeX's typesetting mechanism but for interpreting by the PDF reader,
% the glyphs of the PD1 encoding are implemented to be safely written
% to a file (PDF output file, |.out| file).
%
% The PD1 encoding can be specified as an option of the 'fontenc' package
% or loaded here. It does not matter what font family is selected,
% as \TeX{} does not process it anyway. So use CM.
% \begin{macrocode}
\@ifundefined{T@PD1}{%
\input{pd1enc.def}%
\HyLinguex@Restore
}{}
\DeclareFontFamily{PD1}{pdf}{}
\DeclareFontShape{PD1}{pdf}{m}{n}{ <-> cmr10 }{}
\DeclareFontSubstitution{PD1}{pdf}{m}{n}
% \end{macrocode}
%
% \subsubsection{PU encoding}
% The PU encoding implements the Unicode encoding for use with
% \LaTeX's NFSS. Because of large memory requirements the
% encoding file for Unicode support is only loaded, if option
% |unicode| is specified as package option.
% \begin{macro}{\HyPsd@InitUnicode}
% Because the file |puenc.def| takes a lot of memory, the loading
% is defined in the macro \cs{HyPsd@InitUnicode} called by
% the package option |unicode|.
% \begin{macrocode}
\def\HyPsd@InitUnicode{%
\@ifundefined{T@PU}{%
\input{puenc.def}%
\HyLinguex@Restore
}{}%
\DeclareFontFamily{PU}{pdf}{}%
\DeclareFontShape{PU}{pdf}{m}{n}{ <-> cmr10 }{}%
\DeclareFontSubstitution{PU}{pdf}{m}{n}%
\let\HyPsd@InitUnicode\relax
}
% \end{macrocode}
% \end{macro}
%
% \subsection{Additional user commands}
%
% \subsubsection{^^A
% \texorpdfstring{\cs{texorpdfstring}}{\\texorpdfstring}^^A
% }
% \begin{macro}{\texorpdfstring}
% While expanding the string in \cs{pdfstringdef} the switch
% \cs{ifHy@pdfstring} is set. This is used by the
% full expandible macro \cs{texorpdfstring}. It expects
% two arguments, the first contains the string that will be
% set and processed by \TeX's stomach, the second
% contains the replacement for PDF strings.
% \begin{macrocode}
\def\texorpdfstring{%
\ifHy@pdfstring
\expandafter\@secondoftwo
\else
\expandafter\@firstoftwo
\fi
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Hooks for
% \texorpdfstring{\cs{pdfstringdef}}{\\pdfstringdef}^^A
% }
% \begin{macro}{\pdfstringdefPreHook}
% \begin{macro}{\pdfstringdefPostHook}
% Default definition of the hooks for \cs{pdfstringdef}.
% The construct \cs{@ifundefined} with \cs{let} is a little bit
% faster than \cs{providecommand}.
% \begin{macrocode}
\@ifundefined{pdfstringdefPreHook}{%
\let\pdfstringdefPreHook\@empty
}{}
\@ifundefined{pdfstringdefPostHook}{%
\let\pdfstringdefPostHook\@gobble
}{}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\pdfstringdefDisableCommands}
% In \cmd{\pdfstringdefPreHook} the user can add
% code that is executed before the string, that have
% to be converted by \cmd{\pdfstringdef}, is expanded.
% So replacements for problematic macros can be given.
% The code in \cmd{\pdfstringdefPreHook} should not
% be replaced perhaps by an \cmd{\renewcommand},
% because a previous meaning gets lost.
%
% Macro \cmd{\pdfstringdefDisableCommands} avoids this,
% because it reuses the old meaning of the hook and appends
% the new code to \cmd{\pdfstringdefPreHook}, e.g.:
%\begin{verbatim}
%\pdfstringdefDisableCommands{%
% \let~\textasciitilde
% \def\url{\pdfstringdefWarn\url}%
% \let\textcolor\@gobble
%}%
%\end{verbatim}
% In the argument of \cmd{\pdfstringdefDisableCommands} the
% character |@| can be used in command names. So it is easy
% to use useful \LaTeX{} commands like \cmd{\@gobble} or
% \cmd{\@firstofone}.
% \begin{macrocode}
\def\pdfstringdefDisableCommands{%
\begingroup
\makeatletter
\HyPsd@DisableCommands
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@DisableCommands}
% \begin{macrocode}
\long\def\HyPsd@DisableCommands#1{%
\toks0=\expandafter{\pdfstringdefPreHook}%
\toks1={#1}%
\xdef\pdfstringdefPreHook{\the\toks0 \the\toks1}%
\endgroup
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\pdfstringdefWarn}
% The purpose of \cmd{\pdfstringdefWarn} is to produce
% a warning message, so the user can see, that something
% can go wrong with the conversion to PDF strings.
%
% The prefix |\<>-| is added to the token. \cmd{\noexpand}
% protects the probably undefined one during the first
% expansion step. Then \cmd{\HyPsd@CheckCatcodes} can
% detect the not allowed token, \cmd{\HyPsd@CatcodeWarning}
% prints a warning message, after \cmd{\HyPsd@RemovePrefix}
% has removed the prefix.
%
% \cmd{\pdfstringdefWarn} is intended for document authors or
% package writers, examples for use can be seen in the definition
% of \cmd{\HyPsd@ifnextchar} or \cmd{\HyPsd@protected@testopt}.
% \begin{macrocode}
\def\pdfstringdefWarn#1{%
\expandafter\noexpand\csname<>-\string#1\endcsname
}
% \end{macrocode}
% \end{macro}
%
% \subsection{Help macros for expansion}
%
% \subsubsection{\cs{ignorespaces}}
%
% \begin{macro}{\HyPsd@ignorespaces}
% With the help of a trick using \cs{romannumeral} the
% effect of \cs{ignorespaces} can be simulated a little,
% In a special case using an alphabetic constant
% \cs{romannumeral} eats an optional space. If the constant
% is zero, then the \cs{romannumeral} expression vanishes.
% The following macro uses this trick twice, thus \cs{HyPsd@ignorespaces}
% eats up to two following spaces.^^A
% \begin{macrocode}
\begingroup
\catcode0=12 %
\def\x{\endgroup
\def\HyPsd@ignorespaces{%
\romannumeral\expandafter`\expandafter^^@%
\romannumeral`^^@%
}%
}%
\x
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Babel languages}
% \begin{macrocode}
\newif\ifHy@next
% \end{macrocode}
%
% Nothing to do for english.
% \begin{macrocode}
\@ifundefined{danish@sh@"@sel}{}{%
\def\HyPsd@babel@danish{%
\declare@shorthand{danish}{"|}{}%
\declare@shorthand{danish}{"~}{-}%
}%
}
\@ifundefined{dutch@sh@"@sel}{}{%
\def\HyPsd@babel@dutch{%
\declare@shorthand{dutch}{"|}{}%
\declare@shorthand{dutch}{"~}{-}%
}%
}
\@ifundefined{finnish@sh@"@sel}{}{%
\def\HyPsd@babel@finnish{%
\declare@shorthand{finnish}{"|}{}%
}%
}
\@ifundefined{french@sh@:@sel}{}{%
\def\HyPsd@babel@frenchb{%
\def\guill@spacing{ }%
}%
}
\@ifundefined{german@sh@"@sel}{}{%
\def\HyPsd@babel@german{%
\declare@shorthand{german}{"f}{f}%
\declare@shorthand{german}{"|}{}%
\declare@shorthand{german}{"~}{-}%
}%
}
\@ifundefined{macedonian@sh@"@sel}{}{%
\def\HyPsd@babel@macedonian{%
\declare@shorthand{macedonian}{"|}{}%
\declare@shorthand{macedonian}{"~}{-}%
}%
}{}
\@ifundefined{ngerman@sh@"@sel}{}{%
\def\HyPsd@babel@ngerman{%
\declare@shorthand{ngerman}{"|}{}%
\declare@shorthand{ngerman}{"~}{-}%
}%
}
\@ifundefined{portuges@sh@"@sel}{}{%
\def\HyPsd@babel@portuges{%
\declare@shorthand{portuges}{"|}{}%
}%
}
\@ifundefined{russian@sh@"@sel}{}{%
\def\HyPsd@babel@russian{%
\declare@shorthand{russian}{"|}{}%
\declare@shorthand{russian}{"~}{-}%
}%
}
\@ifundefined{slovene@sh@"@sel}{}{%
\def\HyPsd@babel@slovene{%
\declare@shorthand{slovene}{"|}{}%
}%
}
% \end{macrocode}
% Nested quoting environments are not supported (|<<|, |>>|).
% \begin{macrocode}
\@ifundefined{spanish@sh@>@sel}{}{%
\def\HyPsd@babel@spanish{%
\declare@shorthand{spanish}{<<}{\guillemotleft}%
\declare@shorthand{spanish}{>>}{\guillemotright}%
\declare@shorthand{spanish}{"=}{-}%
\declare@shorthand{spanish}{"~}{-}%
\declare@shorthand{spanish}{"!}{\textexclamdown}%
\declare@shorthand{spanish}{"?}{\textquestiondown}%
}%
}
\@ifundefined{swedish@sh@"@sel}{}{%
\def\HyPsd@babel@swedish{%
\declare@shorthand{swedish}{"|}{}%
\declare@shorthand{swedish}{"~}{-}%
}%
}
\@ifundefined{ukrainian@sh@"@sel}{}{%
\def\HyPsd@babel@ukrainian{%
\declare@shorthand{ukrainian}{"|}{}%
\declare@shorthand{ukrainian}{"~}{-}%
}%
}
\@ifundefined{usorbian@sh@"@sel}{}{%
\def\HyPsd@babel@usorbian{%
\declare@shorthand{usorbian}{"f}{f}%
\declare@shorthand{usorbian}{"|}{}%
}%
}
% \end{macrocode}
% \begin{macrocode}
\@ifundefined{greek@sh@\string~@sel}{%
\let\HyPsd@GreekPatch\@empty
}{%
\def\HyPsd@GreekPatch{%
\let\greeknumeral\HyPsd@greeknumeral
\let\Greeknumeral\HyPsd@Greeknumeral
}%
}
\def\HyPsd@greeknumeral#1{%
\HyPsd@GreekNum\@firstoftwo{#1}%
}
\def\HyPsd@Greeknumeral#1{%
\HyPsd@GreekNum\@secondoftwo{#1}%
}
\def\HyPsd@GreekNum#1#2{%
\ifHy@unicode
\ifnum#2<\@ne
\@arabic{#2}%
\else
\ifnum#2<1000000 %
\HyPsd@@GreekNum#1{#2}%
\else
\@arabic{#2}%
\fi
\fi
\else
\@arabic{#2}%
\fi
}
\def\HyPsd@@GreekNum#1#2{%
\ifnum#2<\@m
\ifnum#2<10 %
\expandafter\HyPsd@GreekNumI
\expandafter\@gobble\expandafter#1\number#2%
\else
\ifnum#2<100 %
\expandafter\HyPsd@GreekNumII
\expandafter\@gobble\expandafter#1\number#2%
\else
\expandafter\HyPsd@GreekNumIII
\expandafter\@gobble\expandafter#1\number#2%
\fi
\fi
\ifnum#2>\z@
\textnumeralsigngreek
\fi
\else
\ifnum#2<\@M
\expandafter\HyPsd@GreekNumIV\expandafter#1\number#2%
\else
\ifnum#2<100000 %
\expandafter\HyPsd@GreekNumV\expandafter#1\number#2%
\else
\expandafter\HyPsd@GreekNumVI\expandafter#1\number#2%
\fi
\fi
\fi
}
\def\HyPsd@GreekNumI#1#2#3{%
#1{%
\ifnum#3>\z@
\textnumeralsignlowergreek
\fi
}%
\expandafter#2%
\ifcase#3 %
{}{}%
\or\textalpha\textAlpha
\or\textbeta\textBeta
\or\textgamma\textGamma
\or\textdelta\textDelta
\or\textepsilon\textEpsilon
\or\textstigmagreek\textStigmagreek
\or\textzeta\textZeta
\or\texteta\textEta
\or\texttheta\textTheta
\else
{}{}%
\fi
}
\def\HyPsd@GreekNumII#1#2#3#4{%
#1{%
\ifnum#3>\z@
\textnumeralsignlowergreek
\fi
}%
\expandafter#2%
\ifcase#3 %
{}{}%
\or\textiota\textIota
\or\textkappa\textKappa
\or\textlambda\textLambda
\or\textmu\textMu
\or\textnu\textNu
\or\textxi\textXi
\or\textomicron\textOmicron
\or\textpi\textPi
\or\textkoppagreek\textKoppagreek
\else
{}{}%
\fi
\HyPsd@GreekNumI#1#2#4%
}
\def\HyPsd@GreekNumIII#1#2#3#4#5{%
#1{%
\ifnum#3>\z@
\textnumeralsignlowergreek
\fi
}%
\expandafter#2%
\ifcase#3 %
{}{}%
\or\textrho\textRho
\or\textsigma\textSigma
\or\texttau\textTau
\or\textupsilon\textUpsilon
\or\textphi\textPhi
\or\textchi\textChi
\or\textpsi\textPsi
\or\textomega\textOmega
\or\textsampigreek\textSampigreek
\else
{}{}%
\fi
\HyPsd@GreekNumII#1#2#4#5%
}
\def\HyPsd@GreekNumIV#1#2#3#4#5{%
\HyPsd@GreekNumI\@firstofone#1#2%
\HyPsd@@GreekNum#1{#3#4#5}%
}
\def\HyPsd@GreekNumV#1#2#3#4#5#6{%
\HyPsd@GreekNumII\@firstofone#1#2#3%
\HyPsd@@GreekNum#1{#4#5#6}%
}
\def\HyPsd@GreekNumVI#1#2#3#4#5#6#7{%
\HyPsd@GreekNumIII\@firstofone#1#2#3#4%
\HyPsd@@GreekNum#1{#5#6#7}%
}
% \end{macrocode}
%
% \subsubsection{CJK bookmarks}
%
% \begin{macro}{\HyPsd@CJKhook}
% Some internal commands of package cjk are redefined
% to avoid error messages. For a rudimental support
% of CJK bookmarks the active characters are
% redefined so that they print themselves.
%
% After preprocessing of Big5 encoded data the
% following string for a double-byte character
% is emitted:
%\begin{verbatim}
%^^7f<arg1>^^7f<arg2>^^7f
%\end{verbatim}
% \verb|<arg1>| is the first byte in the range (always $>$ 0x80);
% \verb|<arg2>| is the second byte in decimal notation
% ($\ge$ 0x40).
% \begin{macrocode}
\begingroup
\catcode"7F=\active
\toks@{%
\let\CJK@ignorespaces\empty
\def\CJK@char#1{\@gobbletwo}%
\let\CJK@charx\@gobblefour
\let\CJK@punctchar\@gobblefour
\def\CJK@punctcharx#1{\@gobblefour}%
\catcode"7F=\active
\def^^7f#1^^7f#2^^7f{%
\string #1\HyPsd@DecimalToOctal{#2}%
}%
% ... ?
\ifHy@unicode
\def\Hy@cjkpu{\80}%
\else
\let\Hy@cjkpu\@empty
\fi
\HyPsd@CJKActiveChars
}%
\count@=127 %
\@whilenum\count@<255 \do{%
\advance\count@ by 1 %
\lccode`\~=\count@
\lowercase{%
\toks@\expandafter{\the\toks@ ~}%
}%
}%
\toks@\expandafter{\the\toks@ !}%
\xdef\HyPsd@CJKhook{\the\toks@}%
\endgroup
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@CJKActiveChars}
% The macro \cmd{\HyPsd@CJKActiveChars} is only defined
% to limit the memory consumption of \cmd{\HyPsd@CJKhook}.
% \begin{macrocode}
\def\HyPsd@CJKActiveChars#1{%
\ifx#1!%
\let\HyPsd@CJKActiveChars\relax
\else
\edef#1{\noexpand\Hy@cjkpu\string#1}%
\fi
\HyPsd@CJKActiveChars
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@DecimalToOctal}
% A character, given by the decimal number is converted
% to a PDF character.
% \begin{macrocode}
\def\HyPsd@DecimalToOctal#1{%
\ifcase #1 %
\000\or \001\or \002\or \003\or \004\or \005\or \006\or \007%
\or \010\or \011\or \012\or \013\or \014\or \015\or \016\or \017%
\or \020\or \021\or \022\or \023\or \024\or \025\or \026\or \027%
\or \030\or \031\or \032\or \033\or \034\or \035\or \036\or \037%
\or \040\or \041\or \042\or \043\or \044\or \045\or \046\or \047%
\or \050\or \051\or \052\or \053\or \054\or \055\or \056\or \057%
\or 0\or 1\or 2\or 3\or 4\or 5\or 6\or 7%
\or 8\or 9\or \072\or \073\or \074\or \075\or \076\or \077%
\or @\or A\or B\or C\or D\or E\or F\or G%
\or H\or I\or J\or K\or L\or M\or N\or O%
\or P\or Q\or R\or S\or T\or U\or V\or W%
\or X\or Y\or Z\or \133\or \134\or \135\or \136\or \137%
\or \140\or a\or b\or c\or d\or e\or f\or g%
\or h\or i\or j\or k\or l\or m\or n\or o%
\or p\or q\or r\or s\or t\or u\or v\or w%
\or x\or y\or z\or \173\or \174\or \175\or \176\or \177%
\or \200\or \201\or \202\or \203\or \204\or \205\or \206\or \207%
\or \210\or \211\or \212\or \213\or \214\or \215\or \216\or \217%
\or \220\or \221\or \222\or \223\or \224\or \225\or \226\or \227%
\or \230\or \231\or \232\or \233\or \234\or \235\or \236\or \237%
\or \240\or \241\or \242\or \243\or \244\or \245\or \246\or \247%
\or \250\or \251\or \252\or \253\or \254\or \255\or \256\or \257%
\or \260\or \261\or \262\or \263\or \264\or \265\or \266\or \267%
\or \270\or \271\or \272\or \273\or \274\or \275\or \276\or \277%
\or \300\or \301\or \302\or \303\or \304\or \305\or \306\or \307%
\or \310\or \311\or \312\or \313\or \314\or \315\or \316\or \317%
\or \320\or \321\or \322\or \323\or \324\or \325\or \326\or \327%
\or \330\or \331\or \332\or \333\or \334\or \335\or \336\or \337%
\or \340\or \341\or \342\or \343\or \344\or \345\or \346\or \347%
\or \350\or \351\or \352\or \353\or \354\or \355\or \356\or \357%
\or \360\or \361\or \362\or \363\or \364\or \365\or \366\or \367%
\or \370\or \371\or \372\or \373\or \374\or \375\or \376\or \377%
\fi
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{\texorpdfstring{\cs{@inmathwarn}}{\\@inmathwarn}-Patch}
% \begin{macro}{\HyPsd@inmathwarn}
% The patch of \cs{@inmathwarn} is needed to get rid of the
% infinite error loop with glyphs of other encodings
% (see the explanation above). Potentially the patch is
% dangerous, if the code in |ltoutenc.dtx| changes.
% Checked with \LaTeXe{} versions [1998/06/01] and
% [1998/12/01]. I expect that versions below [1995/12/01]
% don't work.
%
% To understand the patch easier, the original code of
% \cs{@current@cmd} and \cs{@changed@cmd} follows
% (\LaTeXe{} release [1998/12/01]).
% In the normal case \cs{pdfstringdef} is executed in a context
% where \cs{protect} has the meaning of \cs{@typesetprotect}
% (=\cs{relax}).
%\begin{verbatim}
%\def\@current@cmd#1{%
% \ifx\protect\@typeset@protect
% \@inmathwarn#1%
% \else
% \noexpand#1\expandafter\@gobble
% \fi}
%\def\@changed@cmd#1#2{%
% \ifx\protect\@typeset@protect
% \@inmathwarn#1%
% \expandafter\ifx\csname\cf@encoding\string#1\endcsname\relax
% \expandafter\ifx\csname ?\string#1\endcsname\relax
% \expandafter\def\csname ?\string#1\endcsname{%
% \TextSymbolUnavailable#1%
% }%
% \fi
% \global\expandafter\let
% \csname\cf@encoding \string#1\expandafter\endcsname
% \csname ?\string#1\endcsname
% \fi
% \csname\cf@encoding\string#1%
% \expandafter\endcsname
% \else
% \noexpand#1%
% \fi}
%\gdef\TextSymbolUnavailable#1{%
% \@latex@error{%
% Command \protect#1 unavailable in encoding \cf@encoding%
% }\@eha}
%\def\@inmathwarn#1{%
% \ifmmode
% \@latex@warning{Command \protect#1 invalid in math mode}%
% \fi}
%\end{verbatim}
% \begin{macrocode}
\def\HyPsd@inmathwarn#1#2{%
\ifx#2\expandafter
\expandafter\ifx\csname\cf@encoding\string#1\endcsname\relax
\HyPsd@GLYPHERR
\expandafter\@gobble\string#1%
>%
\expandafter\expandafter\expandafter\HyPsd@EndWithElse
\else
\expandafter\expandafter\expandafter\HyPsd@GobbleFiFi
\fi
\else
\expandafter#2%
\fi
}
\def\HyPsd@GobbleFiFi#1\fi#2\fi{}
\def\HyPsd@EndWithElse#1\else{\else}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HyPsd@add@accent}
% \begin{macrocode}
\def\HyPsd@add@accent#1#2{%
\HyPsd@GLYPHERR\expandafter\@gobble\string#1+\string#2>%
#2%
}%
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Unexpandable spaces}
%
% \begin{macro}{\HyPsd@LetUnexpandableSpace}
% In \cmd{\HyPsd@@ProtectSpaces} the space tokens are replaced
% by not expandable commands, that work like spaces:
% \begin{itemize}
% \item So they can caught by undelimited arguments.
% \item And they work in number, dimen, and skip
% assignments.
% \end{itemize}
% These properties are used in \cmd{\HyPsd@CheckCatcodes}.
% \begin{macrocode}
\def\HyPsd@LetUnexpandableSpace#1{%
\expandafter\futurelet\expandafter#1\expandafter\@gobble\space\relax
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@UnexpandableSpace}
% \cmd{\HyPsd@UnexpandableSpace} is used
% in \cmd{\HyPsd@@ProtectSpaces}.
% In \cmd{HyPsd@@ProtectSpaces} the space tokens are replaced
% by unexpandable commands \cmd{\HyPsd@UnexpandableSpace},
% but that have the effect of spaces.
% \begin{macrocode}
\HyPsd@LetUnexpandableSpace\HyPsd@UnexpandableSpace
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Marker for commands}
% \begin{macro}{\HyPsd@XSPACE}
% \begin{macro}{\HyPsd@ITALCORR}
% \begin{macro}{\HyPsd@GLYPHERR}
% Some commands and informations cannot be utilized before
% the string expansion and the checking process.
% Command names are filtered out, so we need another way
% to transport the information: An unusual |#| with catcode
% 12 marks the beginning of the extra information.
% \begin{macrocode}
\edef\HyPsd@XSPACE{\string#\string X}
\edef\HyPsd@ITALCORR{\string#\string I}
\edef\HyPsd@GLYPHERR{\string#\string G}
% \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsubsection{\texorpdfstring{\cs{hspace}}{\\hspace} fix}
% \begin{macro}{\HyPsd@hspace}
% \begin{macrocode}
\def\HyPsd@hspace#1{\HyPsd@@hspace#1*\END}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@@hspace}
% \cs{HyPsd@@hspace} checks whether \cs{hspace}
% is called in its star form.
% \begin{macrocode}
\def\HyPsd@@hspace#1*#2\END{%
\ifx\\#2\\%
\HyPsd@hspacetest{#1}%
\else
\expandafter\HyPsd@hspacetest
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@hspacetest}
% \cs{HyPsd@hyspacetest} replaces the \cs{hspace} by a space, if
% the length is greater than zero.
% \begin{macrocode}
\def\HyPsd@hspacetest#1{\ifdim#1>\z@\space\fi}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Fix for AMS classes}
%
% \begin{macrocode}
\@ifundefined{tocsection}{%
\let\HyPsd@AMSclassfix\relax
}{%
\def\HyPsd@AMSclassfix{%
\let\tocpart\HyPsd@tocsection
\let\tocchapter\HyPsd@tocsection
\let\tocappendix\HyPsd@tocsection
\let\tocsection\HyPsd@tocsection
\let\tocsubsection\HyPsd@tocsection
\let\tocsubsubsection\HyPsd@tocsection
\let\tocparagraph\HyPsd@tocsection
}%
\def\HyPsd@tocsection#1#2#3{%
\if @#2@\else\if @#1@\else#1 \fi#2. \fi
#3%
}%
}
% \end{macrocode}
%
% \subsubsection{Reference commands}
%
% \begin{macro}{\HyPsd@ref}
% Macro \cs{HyPsd@ref} calls the macro \cs{HyPsd@@ref} for star checking.
% The same methods like in \cs{HyPsd@hspace} is used.
% \begin{macrocode}
\def\HyPsd@ref#1{\HyPsd@@ref#1*\END}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@@ref}
% Macro \cs{HyPsd@@ref} checks if a star is present.
% \begin{macrocode}
\def\HyPsd@@ref#1*#2\END{%
\ifx\\#2\\%
\HyPsd@@@ref{#1}%
\else
\expandafter\HyPsd@@@ref
\fi
}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@@@ref}
% \cs{HyPsd@@@ref} does the work and extracts the first argument.
% \begin{macrocode}
\def\HyPsd@@@ref#1{%
\expandafter\ifx\csname r@#1\endcsname\relax
??%
\else
\expandafter\expandafter\expandafter
\@car\csname r@#1\endcsname\@nil
\fi
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HyPsd@pageref}
% Macro \cs{HyPsd@pageref} calls the macro \cs{HyPsd@@pageref} for star checking.
% The same methods like in \cs{HyPsd@hspace} is used.
% \begin{macrocode}
\def\HyPsd@pageref#1{\HyPsd@@pageref#1*\END}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@@pageref}
% Macro \cs{HyPsd@@pageref} checks if a star is present.
% \begin{macrocode}
\def\HyPsd@@pageref#1*#2\END{%
\ifx\\#2\\%
\HyPsd@@@pageref{#1}%
\else
\expandafter\HyPsd@@@pageref
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@@@pageref}
% \cs{HyPsd@@@pageref} does the work and extracts the second argument.
% \begin{macrocode}
\def\HyPsd@@@pageref#1{%
\expandafter\ifx\csname r@#1\endcsname\relax
??%
\else
\expandafter\expandafter\expandafter\expandafter
\expandafter\expandafter\expandafter\@car
\expandafter\expandafter\expandafter\@gobble
\csname r@#1\endcsname{}\@nil
\fi
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HyPsd@nameref}
% Macro \cs{HyPsd@nameref} calls the macro \cs{HyPsd@@nameref} for star checking.
% The same methods like in \cs{HyPsd@hspace} is used.
% \begin{macrocode}
\def\HyPsd@nameref#1{\HyPsd@@nameref#1*\END}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@@nameref}
% Macro \cs{HyPsd@@nameref} checks if a star is present.
% \begin{macrocode}
\def\HyPsd@@nameref#1*#2\END{%
\ifx\\#2\\%
\HyPsd@@@nameref{#1}%
\else
\expandafter\HyPsd@@@nameref
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@@@nameref}
% \cs{HyPsd@@@nameref} does the work and extracts the third argument.
% \begin{macrocode}
\def\HyPsd@@@nameref#1{%
\expandafter\ifx\csname r@#1\endcsname\relax
??%
\else
\expandafter\expandafter\expandafter\expandafter
\expandafter\expandafter\expandafter\@car
\expandafter\expandafter\expandafter\@gobbletwo
\csname r@#1\endcsname{}{}\@nil
\fi
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HyPsd@autoref}
% Macro \cs{HyPsd@autoref} calls the macro \cs{HyPsd@@autoref} for star checking.
% The same methods like in \cs{HyPsd@hspace} is used.
% \begin{macrocode}
\def\HyPsd@autoref#1{\HyPsd@@autoref#1*\END}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@@autoref}
% Macro \cs{HyPsd@@autoref} checks if a star is present.
% \begin{macrocode}
\def\HyPsd@@autoref#1*#2\END{%
\ifx\\#2\\%
\HyPsd@@@autoref{#1}%
\else
\expandafter\HyPsd@@@autoref
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@@@autoref}
% \cs{HyPsd@@@autoref} does the work and extracts the second argument.
% \begin{macrocode}
\def\HyPsd@@@autoref#1{%
\expandafter\ifx\csname r@#1\endcsname\relax
??%
\else
\expandafter\expandafter\expandafter\HyPsd@autorefname
\csname r@#1\endcsname{}{}{}{}\@nil
\expandafter\expandafter\expandafter
\@car\csname r@#1\endcsname\@nil
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@autorefname}
% At least a basic definition for getting the \cs{autoref} name.
% \begin{macrocode}
\def\HyPsd@autorefname#1#2#3#4#5\@nil{%
\ifx\\#4\\%
\else
\HyPsd@@autorefname#4.\@nil
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@@autorefname}
% \begin{macrocode}
\def\HyPsd@@autorefname#1.#2\@nil{%
\@ifundefined{#1autorefname}{%
\@ifundefined{#1name}{%
}{%
\csname#1name\endcsname\space
}%
}{%
\csname#1autorefname\endcsname\space
}%
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Redefining the defining commands}
% \label{defcmd}
% Definitions aren't allowed, because they aren't executed in
% an only expanding context. So the command to be defined
% isn't defined and can perhaps be undefined. This would causes
% TeX to stop with an error message.
% With a deep trick it is possible to define commands in such
% a context: \cs{csname} does the job, it defines the command
% to be \cs{relax}, if it has no meaning.
%
% Active characters cannot be defined with this trick. It is
% possible to define all undefined active characters
% (perhaps that they have the meaning of \cs{relax}).
% To avoid side effects this should be done in \cs{pdfstringdef}
% shortly before the \cs{xdef} job. But checking and defining
% all possible active characters of the full range (0 until 255)
% would take a while. \cs{pdfstringdef} is slow enough, so
% this isn't done.
%
% \cs{HyPsd@DefCommand} and \cs{HyPsd@LetCommand} expands to the
% commands \cs{<def>-command} and \cs{<let>-command}
% with the meaning of \cs{def} and \cs{let}. So it is detected by
% \cs{HyPsd@CheckCatcodes} and the command name \cs{<def>-command}
% or \cs{<let>-command} should indicate a forbidden definition
% command.
%
% The command to be defined is converted to a string and back
% to a command name with the help of \cs{csname}. If the
% command is already defined, \cs{noexpand} prevents a
% further expansion, even though the command would
% expand to legal stuff. If the command don't have the meaning
% of \cs{relax}, \cs{HyPsd@CheckCatcodes} will produce a warning.
% (The command itself can be legal, but the warning is legitimate
% because of the position after a defining command.)
%
% The difference between \cs{HyPsd@DefCommand} and
% \cs{HyPsdLetCommand} is that the first one also cancels this
% arguments, the parameter and definition text. The right side
% of the \cs{let} commands cannot be canceled with an undelimited
% parameter because of a possible space token after \cs{futurelet}.
%
% To avoid unmachted \cs{if...} tokens, the cases
% \verb|\let\if...\iftrue| and \verb|\let\if...\iffalse|
% are checked and ignored.
%
% \begin{macro}{\HyPsd@DefCommand}
% \begin{macro}{\HyPsd@LetCommand}
% \begin{macrocode}
\begingroup
\def\x#1#2{%
\endgroup
\let#1\def
\def\HyPsd@DefCommand##1##2##{%
#1%
\expandafter\noexpand
\csname\expandafter\@gobble\string##1\@empty\endcsname
\@gobble
}%
\let#2\let
\def\HyPsd@@LetCommand##1{%
\expandafter\ifx\csname##1\expandafter\endcsname
\csname iftrue\endcsname
\pdfstringdefWarn\let
\expandafter\@gobble
\else
\expandafter\ifx\csname##1\expandafter\endcsname
\csname iffalse\endcsname
\pdfstringdefWarn\let
\expandafter\expandafter\expandafter\@gobble
\else
#2%
\expandafter\noexpand
\csname##1\expandafter\expandafter\expandafter\endcsname
\fi
\fi
}%
}%
\expandafter\x\csname <def>-command\expandafter\endcsname
\csname <let>-command\endcsname
\def\HyPsd@LetCommand#1{%
\expandafter\expandafter\expandafter\HyPsd@@LetCommand
\expandafter\expandafter\expandafter{%
\expandafter\@gobble\string#1\@empty
}%
}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \subsubsection{^^A
% \texorpdfstring{\cs{ifnextchar}}{\\ifnextchar}^^A
% }
% \begin{macro}{\HyPsd@ifnextchar}
% In \cs{pdfstringdef} \cs{@ifnextchar} is disabled
% via a \cs{let} command to save time. First a
% warning message is given, then the three arguments
% are canceled. \cs{@ifnextchar} cannot work in a correct
% manner, because it uses \cs{futurelet}, but this is a
% stomach feature, that doesn't work in an expanding context.
% There are several variants of \cs{@ifnextchar}:
% \begin{itemize}
% \item \cs{@ifnextchar}
% \item \cs{kernel@ifnextchar}
% \item \cs{new@ifnextchar} from package \verb|amsgen.sty|
% (bug report latex/3662).
% \end{itemize}
% \begin{macrocode}
\def\HyPsd@ifnextchar#1{%
\pdfstringdefWarn#1%
\expandafter\@gobbletwo\@gobble
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{^^A
% \texorpdfstring{\cs{@protected@testoptifnextchar}}^^A
% {\\@protected@testopt}^^A
% }
% \begin{macro}{\HyPsd@protected@testopt}
% Macros with optional arguments doesn't work properly, because
% they call \cmd{\@ifnextchar} to detect the optional argument
% (see the explanation of \cmd{\HyPsd@ifnextchar}).
% But a warning, that \cmd{\@ifnextchar} doesn't work, doesn't
% help the user very much. Therefore \cmd{\@protected@testopt}
% is also disabled, because its first argument is the problematic
% macro with the optional argument and it is called before
% \cmd{\@ifnextchar}.
% \begin{macrocode}
\def\HyPsd@protected@testopt#1{%
\pdfstringdefWarn#1%
\@gobbletwo
}
% \end{macrocode}
% \end{macro}
%
% \subsection{Help macros for postprocessing}
%
% \subsubsection{Generic warning.}
% \begin{macro}{\HyPsd@Warning}
% For several reasons \cs{space} is masked and does not have its
% normal meaning. But it is used in warning messages, so it is
% redefined locally:
% \begin{macrocode}
\def\HyPsd@Warning#1{%
\begingroup
\def\space{ }%
\Hy@Warning{#1}%
\endgroup
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Protecting spaces}
%
% \begin{macrocode}
\RequirePackage{etexcmds}[2007/09/09]
\ifetex@unexpanded
\expandafter\@secondoftwo
\else
\expandafter\@firstoftwo
\fi
{%
% \end{macrocode}
%
% \begin{macro}{\HyPsd@ProtectSpaces}
% \cs{HyPsd@ProtectSpaces} calls with the expanded
% string \cs{HyPsd@@ProtectSpacesFi}. The expanded string is
% protected by \verb+|+ at the beginning and end of
% the expanded string. Because of this there can be no group
% at the beginning or end of the string and grouping characters
% are not removed by the call of \cs{HyPsd@@ProtectSpacesFi}.
% \begin{macrocode}
\def\HyPsd@ProtectSpaces#1{%
\iftrue
\expandafter\HyPsd@@ProtectSpacesFi
\expandafter|\expandafter\@empty#1| \HyPsd@End#1%
\fi
}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@@ProtectSpacesFi}
% The string can contain command tokens, so it is better
% to use an \cs{def} instead of an \cs{edef}.
% \begin{macrocode}
\def\HyPsd@@ProtectSpacesFi#1 #2\HyPsd@End#3\fi{%
\fi
\ifx\scrollmode#2\scrollmode
\HyPsd@RemoveMask#1\HyPsd@End#3%
\else
\gdef#3{#1\HyPsd@UnexpandableSpace#2}%
\expandafter\HyPsd@@ProtectSpacesFi#3\HyPsd@End#3%
\fi
}%
% \end{macrocode}
% \end{macro}
%
% \paragraph{Remove mask.}
% \begin{macro}{\HyPsd@RemoveMask}
% \cs{HyPsd@RemoveMask} removes the protecting \verb+|+.
% It is used by \cs{HyPsd@@ProtectSpacesFi} and by the code in
% \cs{pdfstringdef} that removes the grouping chararcters.
% \begin{macrocode}
\def\HyPsd@RemoveMask|#1|\HyPsd@End#2{%
\toks@\expandafter{#1}%
\xdef#2{\the\toks@}%
}%
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
}{%
\let\HyPsd@fi\fi
\def\HyPsd@ProtectSpaces#1{%
\xdef#1{%
\iftrue
\expandafter\HyPsd@@ProtectSpacesFi
\expandafter|\expandafter\@empty#1| %
\HyPsd@fi
}%
\expandafter\HyPsd@RemoveMask#1\HyPsd@End#1%
}%
\def\HyPsd@@ProtectSpacesFi#1 #2\HyPsd@fi{%
\fi
\etex@unexpanded{#1}%
\ifx\scrollmode#2\scrollmode
\else
\HyPsd@@ProtectSpacesFi\HyPsd@UnexpandableSpace#2%
\HyPsd@fi
}%
\def\HyPsd@RemoveMask|#1|\HyPsd@End#2{%
\xdef#2{\etex@unexpanded\expandafter{#1}}%
}%
}
% \end{macrocode}
%
% \subsubsection{Remove grouping braces}
% \begin{macro}{\HyPsd@RemoveBraces}
% |#1| contains the expanded string, the result will
% be locally written in command \cs{HyPsd@String}.
% \begin{macrocode}
\def\HyPsd@RemoveBraces#1{%
\ifx\scrollmode#1\scrollmode
\else
\HyPsd@@RemoveBracesFi#1\HyPsd@End{#1}%
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@@RemoveBraces}
% \cs{HyPsd@@RemoveBraces} is called with the expanded string,
% the end marked by \cs{HyPsd@End}, the expanded string again, but
% enclosed in braces and the string command. The first expanded
% string is scanned by the parameter text |#1#2|.
% By a comparison with the original form in |#3| we can decide
% whether |#1| is a single token or a group. To avoid the
% case that |#2| is a group, the string is extended by a \verb+|+
% before.
%
% While removing the grouping braces an italic correction
% marker is inserted for supporting package |xspace| and
% letting ligatures broken.
%
% Because the string is already expanded, the \cs{if} commands
% should disappeared. So we can move some parts out
% of the argument of \cs{Hy@ReturnAfterFi}.
% \begin{macrocode}
\def\HyPsd@@RemoveBracesFi#1#2\HyPsd@End#3\fi{%
\fi
\def\Hy@temp@A{#1#2}%
\def\Hy@temp@B{#3}%
\ifx\Hy@temp@A\Hy@temp@B
\expandafter\def\expandafter\HyPsd@String\expandafter{%
\HyPsd@String#1%
}%
\ifx\scrollmode#2\scrollmode
\else
\Hy@ReturnAfterFiFiEnd{%
\HyPsd@RemoveBraces{#2}%
}%
\fi
\else
\def\Hy@temp@A{#1}%
\HyPsd@AppendItalcorr\HyPsd@String
\ifx\Hy@temp@A\@empty
\Hy@ReturnAfterElseFiFiEnd{%
\HyPsd@RemoveBraces{#2}%
}%
\else
\HyPsd@ProtectSpaces\Hy@temp@A
\HyPsd@AppendItalcorr\Hy@temp@A
\Hy@ReturnAfterFiFiEnd{%
\expandafter\HyPsd@RemoveBraces\expandafter
{\Hy@temp@A#2}%
}%
\fi
\fi
\Hy@ReturnEnd
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@AppendItalcorr}
% \begin{macro}{\HyPsd@@AppendItalcorr}
% The string can contain commands yet, so it is better
% to use \cs{def} instead of a shorter \cs{edef}.
% The two help macros limit the count of \cs{expandafter}.
% \begin{macrocode}
\def\HyPsd@AppendItalcorr#1{%
\expandafter\HyPsd@@AppendItalcorr\expandafter{\/}#1%
}
\def\HyPsd@@AppendItalcorr#1#2{%
\expandafter\def\expandafter#2\expandafter{#2#1}%
}
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \subsubsection{Catcode check}
% \paragraph{Check catcodes.}
% \begin{macro}{\HyPsd@CheckCatcodes}
% Because \cs{ifcat} expands its arguments, this is
% prevented by \cs{noexpand}. In case of command tokens
% and active characters \cs{ifcat} now sees a \cs{relax}.
% After protecting spaces and removing braces |#1| should
% be a single token, no group of several tokens, nor an
% empty group. (So the \cs{expandafter}\cs{relax} between
% \cs{ifcat} and \cs{noexpand} is only for safety and
% it should be possible to remove it.)
%
% \cs{protect} and \cs{relax} should be removed silently.
% But it is too dangerous and breaks some code giving them
% the meaning of \cs{@empty}. So commands with the meaning
% of \cs{protect} are removed here. (\cs{protect} should
% have the meaning of \cs{@typeset@protect} that
% is equal to \cs{relax}).
%
% \begin{macrocode}
\def\HyPsd@CheckCatcodes#1#2\HyPsd@End{%
\global\let\HyPsd@Rest\relax
\ifcat\relax\noexpand#1\relax
\ifx#1\protect
\else
\ifx#1\penalty
\setbox\z@=\hbox{%
\afterassignment\HyPsd@AfterCountRemove
\count@=#2\HyPsd@End
}%
\else
\ifx#1\kern
\setbox\z@=\hbox{%
\afterassignment\HyPsd@AfterDimenRemove
\dimen@=#2\HyPsd@End
}%
\else
\ifx#1\hskip
\setbox\z@=\hbox{%
\afterassignment\HyPsd@AfterSkipRemove
\skip@=#2\HyPsd@End
}%
\else
\HyPsd@CatcodeWarning{#1}%
\fi
\fi
\fi
\fi
\else
\ifcat#1A% letter
\expandafter\def\expandafter\HyPsd@String\expandafter{%
\HyPsd@String#1%
}%
\else
\ifcat#1 % SPACE
\expandafter\def\expandafter\HyPsd@String\expandafter{%
\HyPsd@String\HyPsd@SPACEOPTI
}%
\else
\ifcat$#1%
\HyPsd@CatcodeWarning{math shift}%
\else
\ifcat%
\HyPsd@CatcodeWarning{alignment tab}%
\else
\ifcat^#1%
\HyPsd@CatcodeWarning{superscript}%
\else
\ifcat_#1%
\HyPsd@CatcodeWarning{subscript}%
\else
\expandafter\def\expandafter\HyPsd@String\expandafter{%
\HyPsd@String#1%
}%
\fi
\fi
\fi
\fi
\fi
\fi
\fi
\ifx\HyPsd@Rest\relax
\ifx\scrollmode#2\scrollmode
\else
\Hy@ReturnAfterFiFiEnd{%
\HyPsd@CheckCatcodes#2\HyPsd@End
}%
\fi
\else
\ifx\HyPsd@Rest\@empty
\else
\Hy@ReturnAfterFiFiEnd{%
\expandafter\HyPsd@CheckCatcodes\HyPsd@Rest\HyPsd@End
}%
\fi
\fi
\Hy@ReturnEnd
}
% \end{macrocode}
% \end{macro}
%
% \paragraph{Remove counts, dimens, skips.}
% \begin{macro}{\HyPsd@AfterCountRemove}
% Counts like \cs{penalty} are removed silently.
% \begin{macrocode}
\def\HyPsd@AfterCountRemove#1\HyPsd@End{%
\gdef\HyPsd@Rest{#1}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@AfterDimenRemove}
% If the value of the dimen (\cs{kern}) is zero, it can be
% removed silently. All other values are difficult to interpret.
% Negative values do not work in bookmarks. Should positive
% values be removed or should they be replaced by space(s)?
% The following code replaces positive values greater than
% |1ex| with a space and removes them else.
% \begin{macrocode}
\def\HyPsd@AfterDimenRemove#1\HyPsd@End{%
\ifdim\ifx\HyPsd@String\@empty\z@\else\dimen@\fi>1ex %
\HyPsd@ReplaceSpaceWarning{\string\kern\space\the\dimen@}%
\gdef\HyPsd@Rest{\HyPsd@UnexpandableSpace #1}%
\else
\ifdim\dimen@=\z@
\else
\HyPsd@RemoveSpaceWarning{\string\kern\space\the\dimen@}%
\fi
\gdef\HyPsd@Rest{#1}%
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@AfterSkipRemove}
% The glue part of skips do not work in PDF strings and are ignored.
% Skips (\cs{hskip}), that are not zero, have the same
% interpreting problems like dimens (see above).
% \begin{macrocode}
\def\HyPsd@AfterSkipRemove#1\HyPsd@End{%
\ifdim\ifx\HyPsd@String\@empty\z@\else\skip@\fi>1ex %
\HyPsd@ReplaceSpaceWarning{\string\hskip\space\the\skip@}%
\gdef\HyPsd@Rest{\HyPsd@UnexpandableSpace #1}%
\else
\ifdim\skip@=\z@
\else
\HyPsd@RemoveSpaceWarning{\string\kern\space\the\skip@}%
\fi
\gdef\HyPsd@Rest{#1}%
\fi
}
% \end{macrocode}
% \end{macro}
%
% \paragraph{Catcode warnings.}
% \begin{macro}{\HyPsd@CatcodeWarning}
% \cs{HyPsd@CatcodeWarning} produces a warning for the user.
% \begin{macrocode}
\def\HyPsd@CatcodeWarning#1{%
\HyPsd@Warning{%
Token not allowed in a PDF string (%
\ifHy@unicode
Unicode%
\else
PDFDocEncoding%
\fi
):%
\MessageBreak removing `\HyPsd@RemoveCmdPrefix#1'%
}%
}
\begingroup
\catcode`\|=0 %
\catcode`\\=12 %
% \end{macrocode}
% \SpecialEscapechar{\|}
% \vspace{-2\MacrocodeTopsep}
% \vspace{-\parskip}
% \vspace{-\partopsep}
% \begin{macrocode}
|gdef|HyPsd@RemoveCmdPrefix#1{%
|expandafter|HyPsd@@RemoveCmdPrefix
|string#1|@empty\<>-|@empty|@empty
}%
|gdef|HyPsd@@RemoveCmdPrefix#1\<>-#2|@empty#3|@empty{#1#2}%
|endgroup
% \end{macrocode}
% \SpecialEscapechar{\\}
% \end{macro}
% \begin{macro}{\HyPsd@RemoveSpaceWarning}
% \begin{macrocode}
\def\HyPsd@RemoveSpaceWarning#1{%
\HyPsd@Warning{%
Token not allowed in a PDF string (%
\ifHy@unicode
Unicode%
\else
PDFDocEncoding%
\fi
):%
\MessageBreak #1\MessageBreak
removed%
}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@ReplaceSpaceWarning}
% \begin{macrocode}
\def\HyPsd@ReplaceSpaceWarning#1{%
\HyPsd@Warning{%
Token not allowed in a PDF string (%
\ifHy@unicode
Unicode%
\else
PDFDocEncoding%
\fi
):%
\MessageBreak #1\MessageBreak
replaced by space%
}%
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Check for wrong glyphs}
% A wrong glyph is marked with \cs{relax}, the glyph
% name follows, delimited by |>|. \cs{@empty} ends
% the string.
% \begin{macrocode}
\def\HyPsd@GlyphProcess#1\relax#2\@empty{%
\expandafter\def\expandafter\HyPsd@String\expandafter{%
\HyPsd@String#1%
}%
\ifx\\#2\\%
\else
\Hy@ReturnAfterFi{%
\HyPsd@GlyphProcessWarning#2\@empty
}%
\fi
}
\def\HyPsd@GlyphProcessWarning#1>#2\@empty{%
\HyPsd@@GlyphProcessWarning#1++>%
\HyPsd@GlyphProcess#2\@empty
}
\def\HyPsd@@GlyphProcessWarning#1+#2+#3>{%
\ifx\\#2\\%
\HyPsd@Warning{%
Glyph not defined in %
P\ifHy@unicode U\else D1\fi\space encoding,\MessageBreak
removing `\@backslashchar#1'%
}%
\else
\HyPsd@Warning{%
Composite letter `\@backslashchar#1+#2'\MessageBreak
not defined in P\ifHy@unicode U\else D1\fi\space encoding,%
\MessageBreak
removing `\@backslashchar#1'%
}%
\fi
}
% \end{macrocode}
%
% \paragraph{Spaces.}
% \begin{macro}{\HyPsd@spaceopti}
% In the string the spaces are represented by \cs{HyPsd@spaceopti}
% tokens. Within an \cs{edef} it prints itself as
% a simple space and looks for its next argument.
% If another space follows, so it replaces the next \cs{HyPsd@spaceopti}
% by an protected space \cs{040}.
% \begin{macrocode}
\def\HyPsd@spaceopti#1{ % first space
\ifx\HyPsd@spaceopti#1%
\040%
\else
#1%
\fi
}%
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Replacing tokens}
% \begin{macro}{\HyPsd@Subst}
% To save tokens \cs{HyPsd@StringSubst} is an wrapper for the
% command \cs{HyPsd@Subst} that does all the work:
% In string stored in command |#3| it replaces the tokens
% |#1| with |#2|.\\
% \begin{tabular}{ll}
% |#1|& Exact the tokens that should be replaced.\\
% |#2|& The replacement (don't need to be expanded).\\
% |#3|& Command with the string.
% \end{tabular}
% \begin{macrocode}
\def\HyPsd@Subst#1#2#3{%
\def\HyPsd@@ReplaceFi##1#1##2\END\fi{%
\fi
##1%
\ifx\scrollmode##2\scrollmode
\else
#2%
\HyPsd@@ReplaceFi##2\END
\fi
}%
\xdef#3{%
\iftrue
\expandafter\HyPsd@@ReplaceFi#3#1\END
\fi
}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@StringSubst}
% To save tokens in \cs{pdfstringdef} \cs{HyPsd@StringSubst} is a wrapper,
% that expands argument |#1| before calling \cs{HyPsd@Subst}.
% \begin{macrocode}
\def\HyPsd@StringSubst#1{%
\expandafter\HyPsd@Subst\expandafter{\string#1}%
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Support for package \texttt{xspace}}
% \begin{macro}{\HyPsd@doxspace}
% \cs{xspace} does not work, because it uses a \cs{futurelet}
% that cannot be executed in \TeX's mouth. So this implementation
% uses an argument to examine the next token. In a previous version
% I reused \cs{@xspace}, but this version is shorter and easier
% to understand.
% \begin{macrocode}
\def\HyPsd@doxspace#1{%
\ifx#1\relax\else
\ifx#1.\else
\ifx#1:\else
\ifx#1,\else
\ifx#1;\else
\ifx#1!\else
\ifx#1?\else
\ifx#1/\else
\ifx#1-\else
\ifx#1'\else
\HyPsd@SPACEOPTI
\fi
\fi
\fi
\fi
\fi
\fi
\fi
\fi
\fi
\fi
#1%
}%
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Converting to Unicode}
% Eight bit characters are converted to the sixteen bit ones,
% \cs{8} is replaced by \cs{00}, and \cs{9} is removed.
% The result should be a valid Unicode PDF string without the
% Unicode marker at the beginning.
% \begin{macrocode}
\begingroup
\catcode`\|=0 %
\catcode`\\=12 %
% \end{macrocode}
% \SpecialEscapechar{\|}
% \begin{macro}{\HyPsd@ConvertToUnicode}
% \begin{macrocode}
|gdef|HyPsd@ConvertToUnicode#1{%
|xdef#1{%
|expandafter|HyPsd@DoConvert#1|@empty|@empty|@empty
}%
|ifx#1|@empty
|else
|xdef#1{%
\376\377%
#1%
}%
|fi
}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@DoConvert}
% \begin{macrocode}
|gdef|HyPsd@DoConvert#1{%
|ifx#1|@empty
|else
|Hy@ReturnAfterFi{%
|ifx#1\%%
\%%
|expandafter|HyPsd@DoEscape
|else
|HyPsd@Char{#1}%
|expandafter|HyPsd@DoConvert
|fi
}%
|fi
}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@DoEscape}
% \begin{macrocode}
|gdef|HyPsd@DoEscape#1{%
|ifx#19%
|expandafter|HyPsd@GetTwoBytes
|else
|Hy@ReturnAfterFi{%
|ifx#18%
00%
|expandafter|HyPsd@GetTwoBytes
|else
#1%
|expandafter|HyPsd@GetOneByte
|fi
}%
|fi
}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@GetTwoBytes}
% \begin{macrocode}
|gdef|HyPsd@GetTwoBytes#1\#2#3#4{%
#1\#2#3#4%
|HyPsd@DoConvert
}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@GetOneBye}
% \begin{macrocode}
|gdef|HyPsd@GetOneByte#1#2{%
#1#2%
|HyPsd@DoConvert
}%
|endgroup
% \end{macrocode}
% \end{macro}
% \SpecialEscapechar{\\}
% \begin{macro}{\HyPsd@@GetNextTwoTokens}
% \TeX{} does only allow nine parameters, so we need another macro
% to get more arguments.
% \begin{macrocode}
\def\HyPsd@GetNextTwoTokens#1#2#3\END#4{%
\xdef#4{#4#1#2}%
\HyPsd@@ConvertToUnicode#3\END#4%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPsd@Char}
% \begin{macrocode}
\begingroup
\catcode0=9 %
\catcode`\^=7 %
\catcode`\^^^=12 %
\def\x{^^^^0000}%
\expandafter\endgroup
\ifx\x\@empty
\def\HyPsd@Char#1{%
\ifnum`#1<128 %
\@backslashchar 000#1%
\else
\ifnum`#1<65536 %
\expandafter\HyPsd@CharTwoByte\number`#1!%
\else
\expandafter\expandafter\expandafter\HyPsd@CharSurrogate
\intcalcSub{`#1}{65536}!%
\fi
\fi
}%
\def\HyPsd@CharTwoByte#1!{%
\expandafter\expandafter\expandafter\HyPsd@CharOctByte
\IntCalcDiv#1!256!!%
\expandafter\expandafter\expandafter\HyPsd@CharOctByte
\IntCalcMod#1!256!!%
}%
\def\HyPsd@CharOctByte#1!{%
\@backslashchar
\IntCalcDiv#1!64!%
\intcalcDiv{\IntCalcMod#1!64!}{8}%
\IntCalcMod#1!8!%
}%
\def\HyPsd@CharSurrogate#1!{%
\@backslashchar 33%
\IntCalcDiv#1!262144!%
\expandafter\expandafter\expandafter\HyPsd@CharOctByte
\intcalcDiv{\IntCalcMod#1!262144!}{1024}!%
\@backslashchar 33%
\expandafter\expandafter\expandafter\IntCalcAdd
\intcalcDiv{\IntCalcMod#1!1024!}{256}!4!%
\expandafter\expandafter\expandafter\HyPsd@CharOctByte
\IntCalcMod#1!256!!%
}%
\else
\def\HyPsd@Char#1{%
\@backslashchar 000#1%
}%
\fi
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Support for UTF-8 input encoding}
%
% After |\usepackage[utf8]{inputenc}| there are macros that
% expect the UTF-8 octets as arguments. Therefore we can
% calculate the PDF octal sequences directly. Because the
% PDF format is limited to UCS-2, conversion macros are
% needed for UTF-8 sequences with two and three octets only.
%
% This calculation must be done in an expandable context,
% so we use e\TeX here for performance reasons. Unhappily
% the results of divisions are rounded. Thus a
% circumvention via |\dimexpr| is used, e.g.:
% \begin{quote}
% |\numexpr 123/4\relax| is replaced by\\
% |\number\dimexpr.25\dimexpr 123sp\relax\relax|
% \end{quote}
% \begin{macrocode}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname numexpr\endcsname\relax
\let\HyPsd@UTFviii\relax
\else
\begingroup
\lccode`\~=`^^f4\relax
\lowercase{\endgroup
\def\HyPsd@UTFviii{%
\let\UTFviii@two@octets\HyPsd@UTFviii@two
\let\UTFviii@three@octets\HyPsd@UTFviii@three
\let\UTFviii@four@octets\HyPsd@UTFviii@four
\ifx~\HyPsd@UTFviii@ccxliv@undef
\let~\HyPsd@UTFviii@ccxliv@def
\fi
\let\unichar\HyPsd@unichar
}%
}%
\def\HyPsd@UTFviii@ccxliv@undef{\@inpenc@undefined@{utf8}}%
\edef\HyPsd@UTFviii@ccxliv@def{%
\noexpand\UTFviii@four@octets\string ^^f4%
}%
% \end{macrocode}
%
% The two octet form of UTF-8 |110aaabb| (A) and |10cccddd| (B)
% must be converted into octal numbers |00a| and |bcd|. The
% result is |\8a\bcd| (with a, b, c, d as octal numbers).
% The conversion equations.
% \begin{eqnarray}
% a &:= A/4 - 48\\
% b &:= A - 4*(A/4)\\
% c &:= B/8 - 8*((8*(B/8))/8)\\
% d &:= B - 8*(B/8)\\
% \end{eqnarray}
% ^^A #1 = A/4 #2 = A
% ^^A #3 = B/8 #4 = B
% \begin{macrocode}
\def\HyPsd@UTFviii@two#1#2{%
\expandafter\HyPsd@UTFviii@@two
\number\dimexpr.25\dimexpr`#1sp\expandafter\relax\expandafter|%
\number`#1\expandafter|%
\number\dimexpr.125\dimexpr`#2sp\expandafter\relax\expandafter|%
\number`#2 \@nil
}%
\def\HyPsd@UTFviii@@two#1|#2|#3|#4\@nil{%
\expandafter\8%
\number\numexpr #1-48\expandafter\relax
\csname\number\numexpr #2-4*#1\relax\expandafter\endcsname
\number\numexpr #3-8*%
\number\dimexpr.125\dimexpr#3sp\relax\relax\expandafter\relax
\number\numexpr #4-8*#3\relax
}%
% \end{macrocode}
%
% Three octet form: |1110aabb| (A), |10bcccdd| (B), and |10eeefff|
% (C). The result is |\9abc\def| (with a, \dots, f as octal numbers).
% The conversion equations:
% \begin{eqnarray}
% a &:= A/4 - 56\\
% b &:= 2*(A - 4*(A/4)) + ((B-128 < 32) ? 0 : 1)\\
% c &:= B/4 - 32 - ((B-128 < 32) ? 0 : 8)\\
% d &:= B - 4*(B/4)\\
% e &:= C/8 - 16\\
% f &:= C - 8*(C/8)\\
% \end{eqnarray}
% ^^A #1 = A/4 #2 = A
% ^^A #3 = (B-128 < 32) ? 0 : 1
% ^^A #4 = B/4 #5 = B
% ^^A #6 = C/8 #7 = C
% \begin{macrocode}
\def\HyPsd@UTFviii@three#1#2#3{%
\expandafter\HyPsd@UTFviii@@three
\number\dimexpr.25\dimexpr`#1sp\expandafter\relax\expandafter|%
\number`#1\expandafter|%
\number\ifnum\numexpr`#2-128\relax <32 0\else 1\fi\expandafter|%
\number\dimexpr.25\dimexpr`#2sp\expandafter\relax\expandafter|%
\number`#2\expandafter|%
\number\dimexpr.125\dimexpr`#3sp\expandafter\relax\expandafter|%
\number`#3 \@nil
}%
\def\HyPsd@UTFviii@@three#1|#2|#3|#4|#5|#6|#7\@nil{%
\expandafter\9%
\number\numexpr #1-56\expandafter\relax
\number\numexpr 2*(#2-4*#1)+#3\expandafter\relax
\number\numexpr #4 - 32 -\ifcase#3 0\else 8\fi\expandafter\relax
\csname\number\numexpr #5-4*#4\relax\expandafter\endcsname
\number\numexpr #6-16\expandafter\relax
\number\numexpr #7-8*#6\relax
}%
% \end{macrocode}
%
% Surrogates: 4 octets in UTF-8, a surrogate pair in UTF-16.
% High surrogate range: U+D800--U+DBFF, low surrogate range:
% U+DC00-U+DFFF.
%
%\begin{quote}
%\begin{verbatim}
%UTF-8: 11110uuu 10uuzzzz 10yyyyyy 10xxxxxx
%wwww = uuuuu - 1
%UTF-16: 110110ww wwzzzzyy 110111yy yyxxxxxx
%octal: 011 011 0ww 0ww zzz zyy 011 011 1yy 0yy xxx xxx
%\end{verbatim}
%\end{quote}
% \begin{macrocode}
\def\HyPsd@UTFviii@four#1#2{%
\expandafter\HyPsd@@UTFviii@four\number
\numexpr-1+(`#1-240)*4+\dimexpr.0625\dimexpr`#2sp-128sp%
\expandafter|\number
\numexpr`#2-16*\dimexpr.0625\dimexpr`#2sp|%
}%
\def\HyPsd@@UTFviii@four#1|#2|#3{%
\933\number\dimexpr.25\dimexpr#1sp\relax\relax
\csname\number\numexpr#1-4*\dimexpr.25\dimexpr#1sp\endcsname
\ifodd#2 %
\number\numexpr(#2-1)/2\relax
\else
\number\numexpr#2/2\relax
\fi
\number\numexpr\ifodd#2 4+\fi
\dimexpr.0625\dimexpr`#3sp-128sp\relax\relax\relax
\933%
\expandafter\HyPsd@@@UTFviii@four\number
\numexpr`#3-16*\dimexpr.0625\dimexpr`#3sp|%
}%
\def\HyPsd@@@UTFviii@four#1|#2{%
\number\numexpr4+\dimexpr.25\dimexpr#1sp\relax\relax\relax
\csname\number\numexpr#1-4*\dimexpr.25\dimexpr#1sp\endcsname
\number\dimexpr.125\dimexpr`#2sp-128sp\relax\relax
\number\numexpr`#2-8*\dimexpr.125\dimexpr`#2sp\relax\relax\relax
}%
% \end{macrocode}
%
% Input encoding |utf8x| of package |ucs| uses macro \cmd{\unichar}.
% Values greater than |"FFFF| are not supported.
% \begin{macrocode}
\def\HyPsd@unichar#1{%
\ifHy@unicode
\ifnum#1>"10FFFF %
\HyPsd@UnicodeReplacementCharacter % illegal
\else
\ifnum#1>"FFFF %
% \end{macrocode}
% High-surrogate code point.
% (|"D800| = |55296|, |\p@| = |1pt| = |65536sp|)
% \begin{macrocode}
\expandafter\HyPsd@unichar\expandafter{%
\number\numexpr 55296+%
\dimexpr.0009765625\dimexpr\number#1sp-\p@
\relax\relax\relax
}%
% \end{macrocode}
% Low-surrogate code point.
% (|"DC00| = 56320, |"DC00| - |65536| = |-9216|)
% \begin{macrocode}
\expandafter\HyPsd@unichar\expandafter{%
\number\numexpr#1-9216%
-1024*\dimexpr.0009765625\dimexpr\number#1sp-\p@
\relax\relax\relax
}%
\else
\ifnum#1>"7FF %
\9%
\expandafter\HyPsd@unichar@first@byte\expandafter{%
\number
\dimexpr.00390625\dimexpr\number#1sp\relax\relax
}%
\else
\8%
\number\dimexpr.00390625\dimexpr\number#1sp\relax\relax
\fi
\expandafter\HyPsd@unichar@second@byte\expandafter{%
\number
\numexpr#1-256*\number
\dimexpr.00390625\dimexpr\number#1sp\relax\relax\relax
}%
\fi
\fi
\else
.% unsupported (Unicode -> PDF Doc Encoding)
\fi
}%
\def\HyPsd@UnicodeReplacementCharacter{\9377\375}%
\def\HyPsd@unichar@first@byte#1{%
\number\dimexpr.015625\dimexpr#1sp\relax\relax
\expandafter\HyPsd@unichar@octtwo\expandafter{%
\number
\numexpr#1-64*\number\dimexpr.015625\dimexpr#1sp%
\relax\relax\relax
}%
}%
\def\HyPsd@unichar@second@byte#1{%
\csname\number\dimexpr.015625\dimexpr#1sp\relax\relax\endcsname
\expandafter\HyPsd@unichar@octtwo\expandafter{%
\number
\numexpr#1-64*\number\dimexpr.015625\dimexpr#1sp%
\relax\relax\relax
}%
}%
\def\HyPsd@unichar@octtwo#1{%
\number\dimexpr.125\dimexpr#1sp\relax\relax
\number\numexpr#1-8*\number\dimexpr.125\dimexpr#1sp%
\relax\relax\relax
}%
% \end{macrocode}
% \begin{macrocode}
\fi
% \end{macrocode}
%
% \section{Support of other packages}
%
% \subsection{Class memoir}
%
% \begin{macrocode}
\@ifclassloaded{memoir}{%
\AtEndOfPackage{\RequirePackage{memhfixc}}%
}{}
% \end{macrocode}
%
% \subsection{Package subfigure}
% Added fix for version 2.1. Here \cmd{\sub@label} is defined.
% \begin{macrocode}
\@ifpackageloaded{subfigure}{%
\@ifundefined{sub@label}{%
\Hy@hypertexnamesfalse
}{%
\renewcommand*{\sub@label}[1]{%
\@bsphack
\subfig@oldlabel{#1}%
\if@filesw
\begingroup
\edef\@currentlabstr{%
\expandafter\strip@prefix\meaning\@currentlabelname
}%
\protected@write\@auxout{}{%
\string\newlabel{sub@#1}{%
{\@nameuse{@@thesub\@captype}}%
{\thepage}%
{%
\expandafter\strip@period\@currentlabstr
\relax.\relax\@@@%
}%
{\@currentHref}%
{}%
}%
}%
\endgroup
\fi
\@esphack
}%
\@ifpackagelater{subfigure}{2002/03/26}{}{%
\providecommand*{\toclevel@subfigure}{1}%
\providecommand*{\toclevel@subtable}{1}%
}%
}%
}{}
% \end{macrocode}
%
% \subsection{Package xr and xr-hyper}
% The beta version of xr that supports \cmd{\XR@addURL} is called
% \verb|xr-hyper|. Therefore we test for the macro itself and not
% for the package name:
% \begin{macrocode}
\@ifundefined{XR@addURL}{%
}{%
% \end{macrocode}
% If reading external aux files check whether they have a non zero
% fourth field in |\newlabel| and if so, add the URL as the fifth field.
% \begin{macrocode}
\def\XR@addURL#1{\XR@@dURL#1{}{}{}{}\\}%
\def\XR@@dURL#1#2#3#4#5\\{%
{#1}{#2}%
\if!#4!%
\else
{#3}{#4}{\XR@URL}%
\fi
}%
}
% \end{macrocode}
%
% \begin{macrocode}
\def\Hy@true{true}
\def\Hy@false{false}
% \end{macrocode}
%
% Providing dummy definitions.
% \begin{macrocode}
\let\literalps@out\@gobble
\newcommand\pdfbookmark[3][]{}
\def\Acrobatmenu#1#2{\leavevmode#2}
\def\Hy@writebookmark#1#2#3#4#5{}%
% \end{macrocode}
%
% \section{Help macros for links}
% Anchors get created on the baseline of where they occur. If an
% XYZ PDF view is set, this means that the link places the top of the
% screen \emph{on the baseline} of the target. If this is an equation,
% for instance, it means that you cannot see anything. Some links, of
% course, are created at the start of environments, and so it works. To
% allow for this, anchors are raised, where possible, by some small
% amount. This defaults to |\baselineskip|, but users can set it to
% something else in two ways (thanks to Heiko Oberdiek for suggesting this):
% \begin{enumerate}
% \item Redefine |\HyperRaiseLinkDefault| to be eg the height of a |\strut|
% \item Redefine |\HyperRaiseLinkHook| to do something complicated;
% it must give a value to |\HyperRaiseLinkLength|, which is what
% actually gets used
% \end{enumerate}
% \begin{macrocode}
\let\HyperRaiseLinkHook\@empty
\def\HyperRaiseLinkDefault{\baselineskip}
% \end{macrocode}
% |\HyperRaiseLinkHook| allows the user to reassign
% |\HyperRaiseLinkLength|.
% \begin{macrocode}
\def\Hy@raisedlink#1{%
\ifvmode
#1%
\else
\penalty\@M
\smash{%
\begingroup
\let\HyperRaiseLinkLength\@tempdima
\setlength\HyperRaiseLinkLength\HyperRaiseLinkDefault
\HyperRaiseLinkHook
\expandafter\endgroup
\expandafter\raise\the\HyperRaiseLinkLength\hbox{#1}%
}%
\fi
}
% \end{macrocode}
%
% \begin{macro}{\Hy@SaveLastskip}
% \begin{macro}{\Hy@RestoreLastskip}
% Inserting a \cmd{\special} command to set a
% destination destroys the \cmd{\lastskip} value.
%
% \begin{macrocode}
\def\Hy@SaveLastskip{%
\let\Hy@RestoreLastskip\relax
\ifvmode
\ifdim\lastskip=\z@
\let\Hy@RestoreLastskip\nobreak
\else
\begingroup
\skip@=-\lastskip
\edef\x{%
\endgroup
\def\noexpand\Hy@RestoreLastskip{%
\noexpand\ifvmode
\noexpand\nobreak
\vskip\the\skip@
\vskip\the\lastskip\relax
\noexpand\fi
}%
}%
\x
\fi
\else
\ifhmode
\ifdim\lastskip=\z@
\let\Hy@RestoreLastskip\nobreak
\else
\begingroup
\skip@=-\lastskip
\edef\x{%
\endgroup
\def\noexpand\Hy@RestoreLastskip{%
\noexpand\ifhmode
\noexpand\nobreak
\hskip\the\skip@
\hskip\the\lastskip\relax
\noexpand\fi
}%
}%
\x
\fi
\fi
\fi
}%
% \end{macrocode}
% \end{macro}
% \end{macro}
%
% \section{Options}
%
% \subsection{Help macros}
%
% \begin{macro}{\Hy@boolkey}
% \begin{macrocode}
\def\Hy@boolkey{\@dblarg\Hy@@boolkey}
\def\Hy@@boolkey[#1]#2#3{%
\edef\Hy@tempa{#3}%
\lowercase\expandafter{%
\expandafter\def\expandafter\Hy@tempa\expandafter{\Hy@tempa}%
}%
\ifx\Hy@tempa\@empty
\let\Hy@tempa\Hy@true
\fi
\ifx\Hy@tempa\Hy@true
\else
\ifx\Hy@tempa\Hy@false
\else
\let\Hy@tempa\relax
\fi
\fi
\ifx\Hy@tempa\relax
\Hy@WarnOptionValue{#3}{#1}{`true' or 'false'}%
\else
\Hy@Info{Option `#1' set `\Hy@tempa'}%
\csname Hy@#2\Hy@tempa\endcsname
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\Hy@WarnOptionValue}
% \begin{macrocode}
\def\Hy@WarnOptionValue#1#2#3{%
\Hy@Warning{%
Unexpected value `#1'\MessageBreak
of option `#2' instead of\MessageBreak
#3%
}%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Hy@DisableOption}
% \begin{macrocode}
\def\Hy@DisableOption#1{%
\@ifundefined{KV@Hyp@#1@default}{%
\define@key{Hyp}{#1}%
}{%
\define@key{Hyp}{#1}[]%
}%
{\Hy@WarnOptionDisabled{#1}}%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Hy@WarnOptionDisabled}
% \begin{macrocode}
\def\Hy@WarnOptionDisabled#1{%
\Hy@Warning{%
Option `#1' has already been used,\MessageBreak
setting the option has no effect%
}%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Hy@CheckOptionValue}
% Some options take a string value out of a limited set of values.
% Macro \cs{Hy@CheckOptionValue} checks whether the given value |#1|
% for option |#2| is a member of the value list |#3|.
% \begin{macrocode}
\def\Hy@CheckOptionValue#1#2#3{%
\begingroup
\edef\x{#1}%
\@onelevel@sanitize\x
\let\y=y%
\def\do##1##2{%
\def\z{##1}%
\@onelevel@sanitize\z
\ifx\x\z
\let\y=n%
\let\do\@gobbletwo
\fi
}%
#3%
\ifx\y y%
\def\do##1##2{%
* `##1'%
\ifx\\##2\\\else\space(##2)\fi
\MessageBreak
}%
\Hy@Warning{%
Values of option `#2':\MessageBreak
#3%
* An empty value disables the option.\MessageBreak
Unknown value `\x'%
}%
\fi
\endgroup
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Hy@DefNameKey}
% \noindent
% |#1|: option name\\
% |#2|: \cs{do} list with known values, first
% argument of \cs{do} is value, second argument is a comment.
% \begin{macrocode}
\def\Hy@DefNameKey#1{%
\expandafter\Hy@@DefNameKey\csname @#1\endcsname{#1}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\Hy@@DefNameKey}
% \noindent
% |#1|: macro for value storage\\
% |#2|: option name\\
% |#3|: \cs{do} list with known values.
% \begin{macrocode}
\def\Hy@@DefNameKey#1#2#3{%
\define@key{Hyp}{#2}{%
\edef#1{##1}%
\ifx#1\@empty
\else
\Hy@CheckOptionValue{##1}{#2}{#3}%
\fi
}%
\let#1\@empty
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\Hy@UseNameKey}
% \begin{macrocode}
\def\Hy@UseNameKey#1#2{%
\ifx#2\@empty
\else
/#1/#2%
\fi
}
% \end{macrocode}
% \end{macro}
%
% \subsection{Defining the options}
% \begin{macrocode}
\define@key{Hyp}{implicit}[true]{%
\Hy@boolkey{implicit}{#1}%
}
\define@key{Hyp}{draft}[true]{%
\Hy@boolkey{draft}{#1}%
}
\define@key{Hyp}{final}[true]{%
\Hy@boolkey{final}{#1}%
}
\let\KV@Hyp@nolinks\KV@Hyp@draft
\define@key{Hyp}{a4paper}[true]{%
\def\special@paper{210mm,297mm}%
\def\Hy@pageheight{842}%
}
\define@key{Hyp}{a5paper}[true]{%
\def\special@paper{148mm,210mm}%
\def\Hy@pageheight{595}%
}
\define@key{Hyp}{b5paper}[true]{%
\def\special@paper{176mm,250mm}%
\def\Hy@pageheight{709}%
}
\define@key{Hyp}{letterpaper}[true]{%
\def\special@paper{8.5in,11in}%
\def\Hy@pageheight{792}%
}
\define@key{Hyp}{legalpaper}[true]{%
\def\special@paper{8.5in,14in}%
\def\Hy@pageheight{1008}%
}
\define@key{Hyp}{executivepaper}[true]{%
\def\special@paper{7.25in,10.5in}%
\def\Hy@pageheight{720}%
}
\define@key{Hyp}{setpagesize}[true]{%
\Hy@boolkey{setpagesize}{#1}%
}
\define@key{Hyp}{debug}[true]{%
\Hy@boolkey[debug]{verbose}{#1}%
}
\define@key{Hyp}{linktocpage}[true]{%
\Hy@boolkey{linktocpage}{#1}%
\ifHy@linktocpage
\let\Hy@linktoc\Hy@linktoc@page
\else
\let\Hy@linktoc\Hy@linktoc@section
\fi
}
\chardef\Hy@linktoc@none=0 %
\chardef\Hy@linktoc@section=1 %
\chardef\Hy@linktoc@page=2 %
\chardef\Hy@linktoc@all=3 %
\ifHy@linktocpage
\let\Hy@linktoc\Hy@linktoc@page
\else
\let\Hy@linktoc\Hy@linktoc@section
\fi
\define@key{Hyp}{linktoc}{%
\@ifundefined{Hy@linktoc@#1}{%
\Hy@Warning{%
Unexpected value `#1' of\MessageBreak
option `linktoc' instead of `none',\MessageBreak
`section', `page' or `all'%
}%
}{%
\expandafter\let\expandafter\Hy@linktoc
\csname Hy@linktoc@#1\endcsname
}%
}
\define@key{Hyp}{extension}{\def\XR@ext{#1}}
\let\XR@ext\relax
\define@key{Hyp}{verbose}[true]{%
\Hy@boolkey{verbose}{#1}%
}
\define@key{Hyp}{typexml}[true]{%
\Hy@boolkey{typexml}{#1}%
}
% \end{macrocode}
% If we are going to PDF via HyperTeX |\special| commands,
% the dvips (-z option) processor does not know
% the \emph{height} of a link, as it works solely on the
% position of the closing |\special|. If we use this option,
% the |\special| is raised up by the right amount, to fool
% the dvi processor.
% \begin{macrocode}
\define@key{Hyp}{raiselinks}[true]{%
\Hy@boolkey{raiselinks}{#1}%
}
% \end{macrocode}
% Most PDF-creating drivers do not allow links to be broken
% \begin{macrocode}
\def\Hy@setbreaklinks#1{%
\csname breaklinks#1\endcsname
}
% \end{macrocode}
% \begin{macrocode}
\def\Hy@breaklinks@unsupported{%
\ifx\Hy@setbreaklinks\@gobble
\ifHy@breaklinks
\Hy@WarningNoLine{%
You have enabled option `breaklinks'.\MessageBreak
But driver `\Hy@driver.def' does not suppport this.\MessageBreak
Expect trouble with the link areas of broken links%
}%
\fi
\fi
}
% \end{macrocode}
% \begin{macrocode}
\define@key{Hyp}{breaklinks}[true]{%
\Hy@boolkey{breaklinks}{#1}%
\let\Hy@setbreaklinks\@gobble
}
% \end{macrocode}
% Determines whether an automatic anchor is put on each page
% \begin{macrocode}
\define@key{Hyp}{pageanchor}[true]{%
\Hy@boolkey{pageanchor}{#1}%
}
% \end{macrocode}
% Are the page links done as plain arabic numbers, or do
% they follow the formatting of the package? The latter loses
% if you put in typesetting like |\textbf| or the like.
% \begin{macrocode}
\define@key{Hyp}{plainpages}[true]{%
\Hy@boolkey{plainpages}{#1}%
}
% \end{macrocode}
% Are the names for anchors made as per the HyperTeX system,
% or do they simply use what \LaTeX\ provides?
% \begin{macrocode}
\define@key{Hyp}{naturalnames}[true]{%
\Hy@boolkey{naturalnames}{#1}%
}
% \end{macrocode}
% Completely ignore the names as per the HyperTeX system,
% and use unique counters.
% \begin{macrocode}
\define@key{Hyp}{hypertexnames}[true]{%
\Hy@boolkey{hypertexnames}{#1}%
}
% \end{macrocode}
% Currently, |dvips| doesn't allow anchors nested within targets,
% so this option tries to stop that happening. Other processors
% may be able to cope.
% \begin{macrocode}
\define@key{Hyp}{nesting}[true]{%
\Hy@boolkey{nesting}{#1}%
}
% \end{macrocode}
%
% \begin{macrocode}
\define@key{Hyp}{unicode}[true]{%
\Hy@boolkey{unicode}{#1}%
\ifHy@unicode
\def\HyPsd@pdfencoding{unicode}%
\else
\def\HyPsd@pdfencoding{pdfdoc}%
\fi
\HyPsd@LoadUnicode
}
\def\HyPsd@LoadUnicode{%
\@ifundefined{T@PU}{%
\input{puenc.def}%
\HyLinguex@Restore
}{}%
\DeclareFontFamily{PU}{pdf}{}%
\DeclareFontShape{PU}{pdf}{m}{n}{ <-> cmr10 }{}%
\DeclareFontSubstitution{PU}{pdf}{m}{n}%
\global\let\HyPsd@LoadUnicode\relax
}
\AtBeginDocument{%
\ifx\HyPsd@LoadUnicode\relax
\else
\def\HyPsd@LoadUnicode{%
\PackageError{hyperref}{%
Unicode support for bookmarks is not available.\MessageBreak
Activate unicode support by using one of the options\MessageBreak
`unicode', `pdfencoding=unicode', `pdfencoding=auto'\MessageBreak
in the preamble%
}\@ehc
\global\let\HyPsd@LoadUnicode\relax
\global\Hy@unicodefalse
\global\let\Hy@unicodetrue\Hy@unicodefalse
}%
\fi
}
% \end{macrocode}
% \begin{macrocode}
\define@key{Hyp}{pdfencoding}{%
\edef\HyPsd@temp{#1}%
\ifx\HyPsd@temp\HyPsd@pdfencoding@pdfdoc
\let\HyPsd@pdfencoding\HyPsd@temp
\Hy@unicodefalse
\else
\ifcase\ifx\HyPsd@temp\HyPsd@pdfencoding@unicode
\z@
\else
\ifx\HyPsd@temp\HyPsd@pdfencoding@auto
\z@
\else
\@ne
\fi
\fi
\let\HyPsd@pdfencoding\HyPsd@temp
\hypersetup{unicode}%
\ifHy@unicode
\def\HyPsd@pdfencoding{#1}%
\ifx\HyPsd@pdfencoding\HyPsd@pdfencoding@auto
\HyPsd@LoadStringEnc
\fi
\else
\Hy@Warning{Cannot switch to unicode bookmarks}%
\let\HyPsd@pdfencoding\HyPsd@pdfencoding@pdfdoc
\fi
\else
\@onelevel@sanitize\HyPsd@temp
\Hy@Warning{%
Values of option `pdfencoding':\MessageBreak
`pdfdoc', `unicode', `auto'.\MessageBreak
Ignoring unknown value `\HyPsd@temp'%
}%
\fi
\fi
}
\def\HyPsd@pdfencoding@auto{auto}
\def\HyPsd@pdfencoding@pdfdoc{pdfdoc}
\def\HyPsd@pdfencoding@unicode{unicode}
\let\HyPsd@pdfencoding\Hy@pdfencoding@pdfdoc
\def\HyPsd@LoadStringEnc{%
\RequirePackage{stringenc}[2007/06/14]%
\let\HyPsd@LoadStringEnc\relax
}
\AtBeginDocument{%
\@ifpackageloaded{stringenc}{%
\let\HyPsd@LoadStringEnc\relax
}{%
\def\HyPsd@LoadStringEnc{%
\Hy@WarningNoLine{%
Missing package `stringenc'. Use `pdfencoding=auto'\MessageBreak
in the preamble or load the package there%
}%
}%
}%
}
% \end{macrocode}
% \begin{macrocode}
\newif\ifHy@setpdfversion
\define@key{Hyp}{pdfversion}{%
\@ifundefined{Hy@pdfversion@#1}{%
\PackageWarning{hyperref}{%
Unsupported PDF version `#1'.\MessageBreak
Valid values: 1.2 until 1.9%
}%
}{%
\Hy@setpdfversiontrue
\edef\Hy@pdfversion{\@nameuse{Hy@pdfversion@#1}}%
}%
}
\@namedef{Hy@pdfversion@1.2}{2}%
\@namedef{Hy@pdfversion@1.3}{3}%
\@namedef{Hy@pdfversion@1.4}{4}%
\@namedef{Hy@pdfversion@1.5}{5}%
\@namedef{Hy@pdfversion@1.6}{6}%
\@namedef{Hy@pdfversion@1.7}{7}%
\@namedef{Hy@pdfversion@1.8}{8}%
\@namedef{Hy@pdfversion@1.9}{9}%
\def\Hy@pdfversion{2}
% \end{macrocode}
%
% \section{Options for different drivers}\label{drivers}
% \begin{macrocode}
\define@key{Hyp}{hyperref}[true]{}
\define@key{Hyp}{tex4ht}[true]{%
\Hy@texhttrue
\setkeys{Hyp}{colorlinks=true}%
\def\BeforeTeXIVht{\usepackage{color}}%
\def\Hy@driver{htex4ht}%
\def\MaybeStopEarly{%
\typeout{Hyperref stopped early}%
\AfterBeginDocument{%
\PDF@FinishDoc
\gdef\PDF@FinishDoc{}%
}%
\endinput
}%
}
\define@key{Hyp}{pdftex}[true]{%
\def\Hy@driver{hpdftex}%
}
\define@key{Hyp}{nativepdf}[true]{%
\def\Hy@driver{hdvips}%
}
\define@key{Hyp}{dvipdfm}[true]{%
\def\Hy@driver{hdvipdfm}%
}
\define@key{Hyp}{dvipdfmx}[true]{%
\def\Hy@driver{hdvipdfm}%
}
\define@key{Hyp}{dvipdfmx-outline-open}[true]{%
\expandafter\ifx\csname if#1\expandafter\endcsname
\csname iftrue\endcsname
\chardef\SpecialDvipdfmxOutlineOpen\@ne
\else
\chardef\SpecialDvipdfmxOutlineOpen\z@
\fi
}
\define@key{Hyp}{xetex}[true]{%
\def\Hy@driver{hdvipdfm}%
}
\define@key{Hyp}{pdfmark}[true]{%
\def\Hy@driver{hdvips}%
}
\define@key{Hyp}{dvips}[true]{%
\def\Hy@driver{hdvips}%
}
\define@key{Hyp}{hypertex}[true]{%
\def\Hy@driver{hypertex}%
}
\let\Hy@MaybeStopNow\relax
\define@key{Hyp}{vtex}[true]{%
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname OpMode\endcsname\relax
\@latex@error{Non-VTeX processor}{}%
\global\let\Hy@MaybeStopNow\endinput
\endinput
\else
\ifnum 0\ifnum\OpMode<1 1\fi \ifnum\OpMode>3 1\fi =0 %
\def\Hy@driver{hvtex}%
\else
\ifnum\OpMode=10\relax
\def\Hy@driver{hvtexhtm}%
\def\MaybeStopEarly{%
\typeout{Hyperref stopped early}%
\AfterBeginDocument{%
\PDF@FinishDoc
\gdef\PDF@FinishDoc{}%
}%
\endinput
}%
\else
\@latex@error{Mode (\the\OpMode) has no hyperref driver}{}%
\global\let\Hy@MaybeStopNow\endinput
\endinput
\fi
\fi
\fi
}
\define@key{Hyp}{vtexpdfmark}[true]{%
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname OpMode\endcsname\relax
\@latex@error{Non-VTeX processor}{}%
\let\Hy@MaybeStopNow\endinput
\endinput
\else
\ifnum 0\ifnum\OpMode<1 1\fi \ifnum\OpMode>3 1\fi =0 %
\def\Hy@driver{hvtexmrk}%
\else
\@latex@error{Mode (\the\OpMode) has no hyperref driver}{}%
\let\Hy@MaybeStopNow\endinput
\endinput
\fi
\fi
}
\define@key{Hyp}{dviwindo}[true]{%
\def\Hy@driver{hdviwind}%
\setkeys{Hyp}{colorlinks}%
\PassOptionsToPackage{dviwindo}{color}%
}
\define@key{Hyp}{dvipsone}[true]{%
\def\Hy@driver{hdvipson}%
}
\define@key{Hyp}{textures}[true]{%
\def\Hy@driver{htexture}%
}
\define@key{Hyp}{latex2html}[true]{%
\AtBeginDocument{\@@latextohtmlX}%
}
% \end{macrocode}
% No more special treatment for ps2pdf. Let it sink or swim.
% \begin{macrocode}
\define@key{Hyp}{ps2pdf}[true]{%
\def\Hy@driver{hdvips}%
\providecommand*\@pdfborder{0 0 1}%
}
% \end{macrocode}
%
% \section{Options to add extra features}\label{features}
% Make included figures (assuming they use the standard graphics
% package) be hypertext links. Off by default. Needs more work.
% \begin{macrocode}
\define@key{Hyp}{hyperfigures}[true]{%
\Hy@boolkey[hyperfigures]{figures}{#1}%
}
% \end{macrocode}
%
% The automatic footnote linking can be disabled
% by option hyperfootnotes.
% \begin{macrocode}
\define@key{Hyp}{hyperfootnotes}[true]{%
\Hy@boolkey{hyperfootnotes}{#1}%
}
% \end{macrocode}
%
% Set up back-referencing to be hyper links, by page,
% slide or section number,
% \begin{macrocode}
\def\back@none{none}
\def\back@section{section}
\def\back@page{page}
\def\back@slide{slide}
\define@key{Hyp}{backref}[section]{%
\lowercase{\def\Hy@tempa{#1}}%
\ifx\Hy@tempa\@empty
\let\Hy@tempa\back@section
\fi
\ifx\Hy@tempa\Hy@false
\let\Hy@tempa\back@none
\fi
\ifx\Hy@tempa\back@slide
\let\Hy@tempa\back@section
\fi
\ifx\Hy@tempa\back@page
\PassOptionsToPackage{hyperpageref}{backref}%
\Hy@backreftrue
\else
\ifx\Hy@tempa\back@section
\PassOptionsToPackage{hyperref}{backref}%
\Hy@backreftrue
\else
\ifx\Hy@tempa\back@none
\Hy@backreffalse
\else
\Hy@WarnOptionValue{#1}{backref}{%
`section', `slide', `page', `none',\MessageBreak
or `false'}%
\fi
\fi
\fi
}
\define@key{Hyp}{pagebackref}[true]{%
\edef\Hy@tempa{#1}%
\lowercase\expandafter{%
\expandafter\def\expandafter\Hy@tempa\expandafter{\Hy@tempa}%
}%
\ifx\Hy@tempa\@empty
\let\Hy@tempa\Hy@true
\fi
\ifx\Hy@tempa\Hy@true
\PassOptionsToPackage{hyperpageref}{backref}%
\Hy@backreftrue
\else
\ifx\Hy@tempa\Hy@false
\Hy@backreffalse
\else
\Hy@WarnOptionValue{#1}{pagebackref}{`true' or `false'}%
\fi
\fi
}
% \end{macrocode}
% Make index entries be links back to the relevant pages. By default
% this is turned on, but may be stopped.
% \begin{macrocode}
\define@key{Hyp}{hyperindex}[true]{%
\Hy@boolkey{hyperindex}{#1}%
}
% \end{macrocode}
% Configuration of encap char.
% \begin{macrocode}
\define@key{Hyp}{encap}[\|]{%
\def\HyInd@EncapChar{#1}%
}
% \end{macrocode}
%
% \section{Language options}
%
% The \cmd{\autoref} feature depends on the language.
% \begin{macrocode}
\def\HyLang@afrikaans{%
\def\equationautorefname{Vergelyking}%
\def\footnoteautorefname{Voetnota}%
\def\itemautorefname{Item}%
\def\figureautorefname{Figuur}%
\def\tableautorefname{Tabel}%
\def\partautorefname{Deel}%
\def\appendixautorefname{Bylae}%
\def\chapterautorefname{Hoofstuk}%
\def\sectionautorefname{Afdeling}%
\def\subsectionautorefname{Subafdeling}%
\def\subsubsectionautorefname{Subsubafdeling}%
\def\paragraphautorefname{Paragraaf}%
\def\subparagraphautorefname{Subparagraaf}%
\def\FancyVerbLineautorefname{Lyn}%
\def\theoremautorefname{Teorema}%
\def\pageautorefname{Bladsy}%
}
\def\HyLang@english{%
\def\equationautorefname{Equation}%
\def\footnoteautorefname{footnote}%
\def\itemautorefname{item}%
\def\figureautorefname{Figure}%
\def\tableautorefname{Table}%
\def\partautorefname{Part}%
\def\appendixautorefname{Appendix}%
\def\chapterautorefname{chapter}%
\def\sectionautorefname{section}%
\def\subsectionautorefname{subsection}%
\def\subsubsectionautorefname{subsubsection}%
\def\paragraphautorefname{paragraph}%
\def\subparagraphautorefname{subparagraph}%
\def\FancyVerbLineautorefname{line}%
\def\theoremautorefname{Theorem}%
\def\pageautorefname{page}%
}
\def\HyLang@french{%
\def\equationautorefname{\'Equation}%
\def\footnoteautorefname{note}%
\def\itemautorefname{item}%
\def\figureautorefname{Figure}%
\def\tableautorefname{Tableau}%
\def\partautorefname{Partie}%
\def\appendixautorefname{Appendice}%
\def\chapterautorefname{chapitre}%
\def\sectionautorefname{section}%
\def\subsectionautorefname{sous-section}%
\def\subsubsectionautorefname{sous-sous-section}%
\def\paragraphautorefname{paragraphe}%
\def\subparagraphautorefname{sous-paragraphe}%
\def\FancyVerbLineautorefname{ligne}%
\def\theoremautorefname{Th\'eor\`eme}%
\def\pageautorefname{page}%
}
\def\HyLang@german{%
\def\equationautorefname{Gleichung}%
\def\footnoteautorefname{Fu\ss note}%
\def\itemautorefname{Punkt}%
\def\figureautorefname{Abbildung}%
\def\tableautorefname{Tabelle}%
\def\partautorefname{Teil}%
\def\appendixautorefname{Anhang}%
\def\chapterautorefname{Kapitel}%
\def\sectionautorefname{Abschnitt}%
\def\subsectionautorefname{Unterabschnitt}%
\def\subsubsectionautorefname{Unterunterabschnitt}%
\def\paragraphautorefname{Absatz}%
\def\subparagraphautorefname{Unterabsatz}%
\def\FancyVerbLineautorefname{Zeile}%
\def\theoremautorefname{Theorem}%
\def\pageautorefname{Seite}%
}
\def\HyLang@italian{%
\def\equationautorefname{Equazione}%
\def\footnoteautorefname{nota}%
\def\itemautorefname{punto}%
\def\figureautorefname{Figura}%
\def\tableautorefname{Tabella}%
\def\partautorefname{Parte}%
\def\appendixautorefname{Appendice}%
\def\chapterautorefname{Capitolo}%
\def\sectionautorefname{sezione}%
\def\subsectionautorefname{sottosezione}%
\def\subsubsectionautorefname{sottosottosezione}%
\def\paragraphautorefname{paragrafo}%
\def\subparagraphautorefname{sottoparagrafo}%
\def\FancyVerbLineautorefname{linea}%
\def\theoremautorefname{Teorema}%
\def\pageautorefname{Pag.\@}%
}
\def\HyLang@magyar{%
\def\equationautorefname{Egyenlet}%
\def\footnoteautorefname{l\'abjegyzet}%
\def\itemautorefname{Elem}%
\def\figureautorefname{\'Abra}%
\def\tableautorefname{T\'abl\'azat}%
\def\partautorefname{R\'esz}%
\def\appendixautorefname{F\"uggel\'ek}%
\def\chapterautorefname{fejezet}%
\def\sectionautorefname{szakasz}%
\def\subsectionautorefname{alszakasz}%
\def\subsubsectionautorefname{alalszakasz}%
\def\paragraphautorefname{bekezd\'es}%
\def\subparagraphautorefname{albekezd\'es}%
\def\FancyVerbLineautorefname{sor}%
\def\theoremautorefname{T\'etel}%
\def\pageautorefname{oldal}%
}
\def\HyLang@portuges{%
\def\equationautorefname{Equa\c c\~ao}%
\def\footnoteautorefname{Nota de rodap\'e}%
\def\itemautorefname{Item}%
\def\figureautorefname{Figura}%
\def\tableautorefname{Tabela}%
\def\partautorefname{Parte}%
\def\appendixautorefname{Ap\^endice}%
\def\chapterautorefname{Cap\'itulo}%
\def\sectionautorefname{Se\c c\~ao}%
\def\subsectionautorefname{Subse\c c\~ao}%
\def\subsubsectionautorefname{Subsubse\c c\~ao}%
\def\paragraphautorefname{par\'agrafo}%
\def\subparagraphautorefname{subpar\'agrafo}%
\def\FancyVerbLineautorefname{linha}%
\def\theoremautorefname{Teorema}%
\def\pageautorefname{P\'agina}%
}
% \end{macrocode}
%
% Next commented section for Russian is provided by Olga Lapko.
%
% Next follow the checked reference names with commented variants and
% explanations. All they are abbreviated and they won't create a
% grammatical problems in the \emph{middle} of sentences.
%
% The most weak points in these abbreviations are the
% |\equationautorefname|, |\theoremautorefname| and the
% |\FancyVerbLineautorefname|. But those three, and also the
% |\footnoteautorefname| are not \emph{too} often referenced.
% Another rather weak point is the |\appendixautorefname|.
% \begin{macrocode}
\def\HyLang@russian{%
% \end{macrocode}
% The abbreviated reference to the equation:
% it is not for ``the good face of the book'', but maybe it will be
% better to get the company for the |\theoremautorefname|?
% \begin{macrocode}
\def\equationautorefname{\cyr\cyrv\cyrery\cyrr.}%
% \end{macrocode}
% The name of the equation reference has common form for both
% nominative and accusative but changes in other forms, like
% ``of |\autoref{auto}|'' etc. The full name must follow full
% name of the |\theoremautorefname|.
% \begin{macrocode}
% \def\equationautorefname{%
% \cyr\cyrv\cyrery\cyrr\cyra\cyrzh\cyre\cyrn\cyri\cyre
% }%
% \end{macrocode}
%
% The variant of footnote has abbreviation form of the synonym
% of the word ``footnote''. This variant of abbreviated synonym
% has alternative status (maybe obsolete?).
% \begin{macrocode}
\def\footnoteautorefname{%
\cyr\cyrp\cyro\cyrd\cyrs\cyrt\cyrr.\ \cyrp\cyrr\cyri\cyrm.%
}%
% \end{macrocode}
% Commented form of the full synonym for ``footnote''.
% It has common form for both nominative and accusative but
% changes in other forms, like ``of |\autoref{auto}|''
% \begin{macrocode}
% \def\footnoteautorefname{%
% \cyr\cyrp\cyro\cyrd\cyrs\cyrt\cyrr\cyro\cyrch\cyrn\cyro\cyre\ %
% \cyrp\cyrr\cyri\cyrm\cyre\cyrch\cyra\cyrn\cyri\cyre
% }%
% \end{macrocode}
% Commented forms of the ``footnote'': have different forms, the
% same is for the nominative and accusative. (The others needed?)
% \begin{macrocode}
% \def\Nomfootnoteautorefname{\cyr\cyrs\cyrn\cyro\cyrs\cyrk\cyra}%
% \def\Accfootnoteautorefname{\cyr\cyrs\cyrn\cyro\cyrs\cyrk\cyru}%
% \end{macrocode}
%
% Name of the list item, can be confused with the paragraph
% reference name, but reader could understand meaning from context(?).
% Commented variant has common form for both nominative and accusative
% but changes in other forms, like ``of |\autoref{auto}|'' etc.
% \begin{macrocode}
\def\itemautorefname{\cyr\cyrp.}%
% \def\itemautorefname{\cyr\cyrp\cyru\cyrn\cyrk\cyrt}%
% \end{macrocode}
%
% Names of the figure and table have stable (standard) abbreviation
% forms. No problem in the middle of sentence.
% \begin{macrocode}
\def\figureautorefname{\cyr\cyrr\cyri\cyrs.}%
\def\tableautorefname{\cyr\cyrt\cyra\cyrb\cyrl.}%
% \end{macrocode}
%
% Names of the part, chapter, section(s) have stable (standard)
% abbreviation forms. No problem in the middle of sentence.
% \begin{macrocode}
\def\partautorefname{\cyr\cyrch.}%
\def\chapterautorefname{\cyr\cyrg\cyrl.}%
\def\sectionautorefname{\cyr\cyrr\cyra\cyrz\cyrd.}%
% \end{macrocode}
%
% Name of the appendix can use this abbreviation, but it is not
% standard for books, i.e, not for ``the good face of the book''.
% Commented variant has common form for both nominative and
% accusative but changes in other forms, like ``of
% |\autoref{auto}|'' etc.
% \begin{macrocode}
\def\appendixautorefname{\cyr\cyrp\cyrr\cyri\cyrl.}%
% \def\appendixautorefname{%
% \cyr\cyrp\cyrr\cyri\cyrl\cyro\cyrzh\cyre\cyrn\cyri\cyre
% }%
% \end{macrocode}
%
% The sectioning command have stable (almost standard) and common
% abbreviation form for all levels (the meaning of these references
% visible from the section number). No problem.
% \begin{macrocode}
\def\subsectionautorefname{\cyr\cyrr\cyra\cyrz\cyrd.}%
\def\subsubsectionautorefname{\cyr\cyrr\cyra\cyrz\cyrd.}%
% \end{macrocode}
%
% The names of references to paragraphs also have stable
% (almost standard) and common abbreviation form for all
% levels (the meaning of these references is visible from
% the section number). No problem in the middle of sentence.
% \begin{macrocode}
\def\paragraphautorefname{\cyr\cyrp.}%
\def\subparagraphautorefname{\cyr\cyrp.}%
% \end{macrocode}
% Commented variant can be used in books but since it
% has common form for both nominative and accusative but it
% changes in other forms, like ``of |\autoref{auto}|'' etc.
% \begin{macrocode}
% \def\paragraphautorefname{\cyr\cyrp\cyru\cyrn\cyrk\cyrt}%
% \def\subparagraphautorefname{\cyr\cyrp\cyru\cyrn\cyrk\cyrt}%
% \end{macrocode}
%
% The name of verbatim line. Here could be a standard of the
% abbreviation (used very rare). But the author preprint
% publications (which have not any editor or corrector)
% can use this abbreviation for the page reference. So the
% meaning of the line reference can be read as reference to
% the page.
% \begin{macrocode}
\def\FancyVerbLineautorefname{\cyr\cyrs\cyrt\cyrr.}%
% \end{macrocode}
% Commented names of the ``verbatim line'': have different forms,
% also the nominative and accusative.
% \begin{macrocode}
% \def\NomFancyVerbLineautorefname{\cyr\cyrs\cyrt\cyrr\cyro\cyrk\cyra}%
% \def\AccFancyVerbLineautorefname{\cyr\cyrs\cyrt\cyrr\cyro\cyrk\cyru}%
% \end{macrocode}
% The alternative, ve-e-e-ery professional abbreviation,
% was used in typography markup for typesetters.
% \begin{macrocode}
% \def\FancyVerbLineautorefname{\cyr\cyrs\cyrt\cyrr\cyrk.}%
% \end{macrocode}
%
% The names of theorem: if we want have ``the good face of
% the book'', so the theorem reference must have the full name
% (like equation reference). But \ldots
% \begin{macrocode}
\def\theoremautorefname{\cyr\cyrt\cyre\cyro\cyrr.}%
% \end{macrocode}
% Commented forms of the ``theorem'': have different forms, also
% the nominative and accusative.
% \begin{macrocode}
% \def\Nomtheoremautorefname{\cyr\cyrt\cyre\cyro\cyrr\cyre\cyrm\cyra}%
% \def\Acctheoremautorefname{\cyr\cyrt\cyre\cyro\cyrr\cyre\cyrm\cyru}%
% \end{macrocode}
%
% Name of the page stable (standard) abbreviation form. No problem.
% \begin{macrocode}
\def\pageautorefname{\cyr\cyrs.}%
}
% \end{macrocode}
%
% \begin{macrocode}
\def\HyLang@spanish{%
\def\equationautorefname{Ecuaci\'on}%
\def\footnoteautorefname{Nota a pie de p\'agina}%
\def\itemautorefname{Elemento}%
\def\figureautorefname{Figura}%
\def\tableautorefname{Tabla}%
\def\partautorefname{Parte}%
\def\appendixautorefname{Ap\'endice}%
\def\chapterautorefname{Cap\'itulo}%
\def\sectionautorefname{Secci\'on}%
\def\subsectionautorefname{Subsecci\'on}%
\def\subsubsectionautorefname{Subsubsecci\'on}%
\def\paragraphautorefname{P\'arrafo}%
\def\subparagraphautorefname{Subp\'arrafo}%
\def\FancyVerbLineautorefname{L\'inea}%
\def\theoremautorefname{Teorema}%
\def\pageautorefname{P\'agina}%
}
\def\HyLang@vietnamese{%
\def\equationautorefname{Ph\uhorn{}\ohorn{}ng tr\`inh}%
\def\footnoteautorefname{Ch\'u th\'ich}%
\def\itemautorefname{m\d{u}c}%
\def\figureautorefname{H\`inh}%
\def\tableautorefname{B\h{a}ng}%
\def\partautorefname{Ph\`\acircumflex{}n}%
\def\appendixautorefname{Ph\d{u} l\d{u}c}%
\def\chapterautorefname{ch\uhorn{}\ohorn{}ng}%
\def\sectionautorefname{m\d{u}c}%
\def\subsectionautorefname{m\d{u}c}%
\def\subsubsectionautorefname{m\d{u}c}%
\def\paragraphautorefname{\dj{}o\d{a}n}%
\def\subparagraphautorefname{\dj{}o\d{a}n}%
\def\FancyVerbLineautorefname{d\`ong}%
\def\theoremautorefname{\DJ{}\d{i}nh l\'y}%
\def\pageautorefname{Trang}%
}
% \end{macrocode}
%
% Instead of package babel's definition of \cmd{\addto} the
% implementation of package varioref is used. Additionally
% argument |#1| is checked for \cmd{\relax}.
% \begin{macrocode}
\def\HyLang@addto#1#2{%
#2%
\@temptokena{#2}%
\ifx#1\relax
\let#1\@empty
\fi
\ifx#1\undefined
\edef#1{\the\@temptokena}%
\else
\toks@\expandafter{#1}%
\edef#1{\the\toks@\the\@temptokena}%
\fi
\@temptokena{}\toks@\@temptokena
}
% \end{macrocode}
%
% \begin{macrocode}
\def\HyLang@DeclareLang#1#2#3{%
\begingroup
\edef\x##1##2{%
\noexpand\ifx##2\relax
\errmessage{No definitions for language #2' found!}%
\noexpand\fi
\endgroup
\noexpand\define@key{Hyp}{#1}[]{%
\noexpand\HyLang@addto{\noexpand##1}{\noexpand##2}%
#3%
}%
}%
\expandafter\x\csname extras#1\expandafter\endcsname
\csname HyLang@#2\endcsname
}
\HyLang@DeclareLang{english}{english}{}
\HyLang@DeclareLang{UKenglish}{english}{}
\HyLang@DeclareLang{british}{english}{}
\HyLang@DeclareLang{USenglish}{english}{}
\HyLang@DeclareLang{american}{english}{}
\HyLang@DeclareLang{german}{german}{}
\HyLang@DeclareLang{austrian}{german}{}
\HyLang@DeclareLang{ngerman}{german}{}
\HyLang@DeclareLang{naustrian}{german}{}
\HyLang@DeclareLang{russian}{russian}{\noexpand\hypersetup{unicode}}
\HyLang@DeclareLang{brazil}{portuges}{}
\HyLang@DeclareLang{brazilian}{portuges}{}
\HyLang@DeclareLang{portuguese}{portuges}{}
\HyLang@DeclareLang{spanish}{spanish}{}
\HyLang@DeclareLang{afrikaans}{afrikaans}{}
\HyLang@DeclareLang{french}{french}{}
\HyLang@DeclareLang{frenchb}{french}{}
\HyLang@DeclareLang{francais}{french}{}
\HyLang@DeclareLang{acadian}{french}{}
\HyLang@DeclareLang{canadien}{french}{}
\HyLang@DeclareLang{italian}{italian}{}
\HyLang@DeclareLang{magyar}{magyar}{}
\HyLang@DeclareLang{hungarian}{magyar}{}
% \end{macrocode}
% More work is needed in case of options |vietnamese| and |vietnam|.
% \begin{macrocode}
\define@key{Hyp}{vietnamese}[]{%
\HyLang@addto\extrasvietnamese\HyLang@vietnamese
\AtEndOfPackage{%
\@ifundefined{T@PU}{}{%
\input{puvnenc.def}%
}%
}%
}
\define@key{Hyp}{vietnam}[]{%
\HyLang@addto\extrasvietnam\HyLang@vietnamese
\AtEndOfPackage{%
\@ifundefined{T@PU}{}{%
\input{puvnenc.def}%
}%
}%
}
% \end{macrocode}
% Similar for option |arabic| that just loads the additions
% to PU encoding for Arabi.
% \begin{macrocode}
\define@key{Hyp}{arabic}[]{%
\AtEndOfPackage{%
\@ifundefined{T@PU}{}{%
\input{puarenc.def}%
}%
}%
}
% \end{macrocode}
%
% \section{Options to change appearance of links}\label{appearance}
% Colouring links at the \LaTeX\ level is useful for debugging, perhaps.
% \begin{macrocode}
\define@key{Hyp}{colorlinks}[true]{%
\Hy@boolkey{colorlinks}{#1}%
}
\define@key{Hyp}{ocgcolorlinks}[true]{%
\Hy@boolkey{ocgcolorlinks}{#1}%
}
\AtBeginDocument{%
\begingroup
\@ifundefined{OBJ@OCG@view}{%
\ifHy@ocgcolorlinks
\Hy@Warning{%
Driver does not support `ocgcolorlinks',\MessageBreak
using `colorlinks' instead%
}%
\fi
}{}%
\endgroup
}
\define@key{Hyp}{frenchlinks}[true]{%
\Hy@boolkey{frenchlinks}{#1}%
}
% \end{macrocode}
%
% \section{Bookmarking}
%
% \begin{macrocode}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname chapter\endcsname\relax
\def\toclevel@part{0}%
\else
\def\toclevel@part{-1}%
\fi
\def\toclevel@chapter{0}
\def\toclevel@section{1}
\def\toclevel@subsection{2}
\def\toclevel@subsubsection{3}
\def\toclevel@paragraph{4}
\def\toclevel@subparagraph{5}
\def\toclevel@figure{0}
\def\toclevel@table{0}
\@ifpackageloaded{listings}{%
\providecommand*\theHlstlisting{\thelstlisting}%
\providecommand*\toclevel@lstlisting{0}%
}{}
\@ifpackageloaded{listing}{%
\providecommand*\theHlisting{\thelisting}%
\providecommand*\toclevel@listing{0}%
}{}
% \end{macrocode}
%
% \begin{macrocode}
\define@key{Hyp}{bookmarks}[true]{%
\Hy@boolkey{bookmarks}{#1}%
}
% \end{macrocode}
% \begin{macrocode}
\define@key{Hyp}{bookmarksopen}[true]{%
\Hy@boolkey{bookmarksopen}{#1}%
}
% \end{macrocode}
%
% The depth of the outlines is controlled by option
% \verb|bookmarksdepth|.
% The option acts globally and distinguishes three cases:
% \begin{itemize}
% \item \verb|bookmarksdepth|: Without value hyperref uses
% counter \texttt{tocdepth} (compatible behaviour and default).
% \item \verb|bookmarksdepth=<number>|: the depth is set to
% \verb|<number>|.
% \item \verb|bookmarksdepth=<name>|: The \verb|<name>| must
% not start with a number or minus sign. It is a document
% division name (part, chapter, section, \dots). Internally
% the value of macro \verb|\toclevel@<name>| is used.
% \end{itemize}
% \begin{macrocode}
\let\Hy@bookmarksdepth\c@tocdepth
\define@key{Hyp}{bookmarksdepth}[]{%
\begingroup
\edef\x{#1}%
\ifx\x\empty
\global\let\Hy@bookmarksdepth\c@tocdepth
\else
\@ifundefined{toclevel@\x}{%
\@onelevel@sanitize\x
\edef\y{\expandafter\@car\x\@nil}%
\ifcase 0\expandafter\ifx\y-1\fi
\expandafter\ifnum\expandafter`\y>47 %
\expandafter\ifnum\expandafter`\y<58 1\fi\fi\relax
\Hy@Warning{Unknown document division name (\x)}%
\else
\setbox\z@=\hbox{%
\count@=\x
\xdef\Hy@bookmarksdepth{\the\count@}%
}%
\fi
}{%
\setbox\z@=\hbox{%
\count@=\csname toclevel@\x\endcsname
\xdef\Hy@bookmarksdepth{\the\count@}%
}%
}%
\fi
\endgroup
}
% \end{macrocode}
%
% `bookmarksopenlevel' to specify the open level. From Heiko Oberdiek.
% \begin{macrocode}
\define@key{Hyp}{bookmarksopenlevel}{%
\def\@bookmarksopenlevel{#1}%
}
\def\@bookmarksopenlevel{\maxdimen}
% `bookmarkstype' to specify which `toc' file to mimic
\define@key{Hyp}{bookmarkstype}{%
\def\Hy@bookmarkstype{#1}%
}
\def\Hy@bookmarkstype{toc}
% \end{macrocode}
% Richard Curnow <richard@curnow.demon.co.uk> suggested this
% functionality. It adds section numbers etc to bookmarks.
% \begin{macrocode}
\define@key{Hyp}{bookmarksnumbered}[true]{%
\Hy@boolkey{bookmarksnumbered}{#1}%
}
% \end{macrocode}
%
% Option CJKbookmarks enables the patch for
% CJK bookmarks.
% \begin{macrocode}
\define@key{Hyp}{CJKbookmarks}[true]{%
\Hy@boolkey{CJKbookmarks}{#1}%
}
% \end{macrocode}
%
% \begin{macrocode}
\def\Hy@temp#1{%
\expandafter\Hy@@temp\csname @#1color\endcsname{#1}%
}
\def\Hy@@temp#1#2#3{%
\define@key{Hyp}{#2color}{%
\HyColor@HyperrefColor{##1}#1%
}%
\def#1{#3}%
}
\Hy@temp{link}{red}
\Hy@temp{anchor}{black}
\Hy@temp{cite}{green}
\Hy@temp{file}{cyan}
\Hy@temp{url}{magenta}
\Hy@temp{menu}{red}
\Hy@temp{run}{\@filecolor}
\define@key{Hyp}{pagecolor}{%
\Hy@WarningPageColor
}
\def\Hy@WarningPageColor{%
\Hy@WarningNoLine{Option `pagecolor' is not available anymore}%
\global\let\Hy@WarningPageColor\relax
}
% \end{macrocode}
%
% \begin{macrocode}
\def\hyperbaseurl#1{\def\@baseurl{#1}}
\define@key{Hyp}{baseurl}{\hyperbaseurl{#1}}
\let\@baseurl\@empty
\def\hyperlinkfileprefix#1{\def\Hy@linkfileprefix{#1}}
\define@key{Hyp}{linkfileprefix}{\hyperlinkfileprefix{#1}}
\hyperlinkfileprefix{file:}
% \end{macrocode}
%
% \section{PDF-specific options}\label{pdfopt}
%
% \begin{macro}{\@pdfpagetransition}
% The value of option |pdfpagetransition| is stored in
% \cmd{\@pdfpagetransition}. Its initial value is set
% to \cmd{\relax} in order to be able to differentiate
% between a not used option and an option with an empty
% value.
% \begin{macrocode}
\let\@pdfpagetransition\relax
\define@key{Hyp}{pdfpagetransition}{\def\@pdfpagetransition{#1}}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\@pdfpageduration}
% The value of option |pdfpageduration| is stored in
% \cmd{\@pdfpageduration}. Its initial value is set
% to \cmd{\relax} in order to be able to differentiate
% between a not used option and an option with an empty
% value.
% \begin{macrocode}
\let\@pdfpageduration\relax
\define@key{Hyp}{pdfpageduration}{\def\@pdfpageduration{#1}}
% \end{macrocode}
% \end{macro}
%
% The entry for the |/Hid| key in the page object is
% only necessary, if it is used and set to true for
% at least one time. If it is always false, then
% the |/Hid| key is not written to the pdf page
% object in order not to enlarge the pdf file.
% \begin{macrocode}
\newif\ifHy@useHidKey
\Hy@useHidKeyfalse
\define@key{Hyp}{pdfpagehidden}[true]{%
\Hy@boolkey{pdfpagehidden}{#1}%
\ifHy@pdfpagehidden
\global\Hy@useHidKeytrue
\fi
}
% \end{macrocode}
%
% The value of the |bordercolor| options are not processed
% by the color package. Therefore the value consists of
% space separated rgb numbers in the range 0 until 1.
%
% Package |xcolor| provides |\XC@bordercolor| since version 1.1.
% If the two spaces in the color specification are missing,
% then the value is processed as color specification from
% package |xcolor| by using |\XC@bordercolor| (since
% xcolor 2004/05/09 v1.11, versions 2005/03/24 v2.02 until
% 2006/11/28 v2.10 do not work because of a bug that is
% fixed in 2007/01/21 v2.11).
% \begin{macrocode}
\def\Hy@ColorList{cite,file,link,menu,run,url}
\@for\Hy@temp:=\Hy@ColorList\do{%
\edef\Hy@temp{%
\noexpand\define@key{Hyp}{\Hy@temp bordercolor}{%
\noexpand\HyColor@HyperrefBorderColor
{##1}%
\expandafter\noexpand\csname @\Hy@temp bordercolor\endcsname
{hyperref}%
{\Hy@temp bordercolor}%
}%
}%
\Hy@temp
}
\define@key{Hyp}{pagebordercolor}{%
\Hy@WarningPageBorderColor
}
\def\Hy@WarningPageBorderColor{%
\Hy@WarningNoLine{Option `pagebordercolor' is not available anymore}%
\global\let\Hy@WarningPageBorderColor\relax
}
% \end{macrocode}
%
% \begin{macrocode}
\define@key{Hyp}{pdfhighlight}{\def\@pdfhighlight{#1}}
\Hy@DefNameKey{pdfhighlight}{%
\do{/I}{Invert}%
\do{/N}{None}%
\do{/O}{Outline}%
\do{/P}{Push}%
}
\define@key{Hyp}{pdfborder}{\def\@pdfborder{#1}}
\define@key{Hyp}{pdfborderstyle}{\def\@pdfborderstyle{#1}}
\def\Hy@setpdfborder{%
\ifx\@pdfborder\@empty
\else
/Border[\@pdfborder]%
\fi
\ifx\@pdfborderstyle\@empty
\else
/BS<<\@pdfborderstyle>>%
\fi
}
\Hy@DefNameKey{pdfpagemode}{%
\do{UseNone}{}%
\do{UseOutlines}{}%
\do{UseThumbs}{}%
\do{FullScreen}{}%
\do{UseOC}{PDF 1.5}%
\do{UseAttachments}{PDF 1.6}%
}
\Hy@DefNameKey{pdfnonfullscreenpagemode}{%
\do{UseNone}{}%
\do{UseOutlines}{}%
\do{UseThumbs}{}%
\do{FullScreen}{}%
\do{UseOC}{PDF 1.5}%
\do{UseAttachments}{PDF 1.6}%
}
\Hy@DefNameKey{pdfdirection}{%
\do{L2R}{Left to right}%
\do{R2L}{Right to left}%
}
\Hy@DefNameKey{pdfviewarea}{%
\do{MediaBox}{}%
\do{CropBox}{}%
\do{BleedBox}{}%
\do{TrimBox}{}%
\do{ArtBox}{}%
}
\Hy@DefNameKey{pdfviewclip}{%
\do{MediaBox}{}%
\do{CropBox}{}%
\do{BleedBox}{}%
\do{TrimBox}{}%
\do{ArtBox}{}%
}
\Hy@DefNameKey{pdfprintarea}{%
\do{MediaBox}{}%
\do{CropBox}{}%
\do{BleedBox}{}%
\do{TrimBox}{}%
\do{ArtBox}{}%
}
\Hy@DefNameKey{pdfprintclip}{%
\do{MediaBox}{}%
\do{CropBox}{}%
\do{BleedBox}{}%
\do{TrimBox}{}%
\do{ArtBox}{}%
}
\Hy@DefNameKey{pdfprintscaling}{%
\do{AppDefault}{}%
\do{None}{}%
}
\Hy@DefNameKey{pdfduplex}{%
\do{Simplex}{}%
\do{DuplexFlipShortEdge}{}%
\do{DuplexFlipLongEdge}{}%
}
\Hy@DefNameKey{pdfpicktraybypdfsize}{%
\do{true}{}%
\do{false}{}%
}
\define@key{Hyp}{pdfprintpagerange}{%
\def\@pdfprintpagerange{#1}%
}
\Hy@DefNameKey{pdfnumcopies}{%
\do{2}{two copies}%
\do{3}{three copies}%
\do{4}{four copies}%
\do{5}{five copies}%
}
\define@key{Hyp}{pdfusetitle}[true]{%
\Hy@boolkey[pdfusetitle]{usetitle}{#1}%
}
\define@key{Hyp}{pdftitle}{\pdfstringdef\@pdftitle{#1}}
\define@key{Hyp}{pdfauthor}{\pdfstringdef\@pdfauthor{#1}}
\define@key{Hyp}{pdfproducer}{\pdfstringdef\@pdfproducer{#1}}
\define@key{Hyp}{pdfcreator}{\pdfstringdef\@pdfcreator{#1}}
\define@key{Hyp}{pdfcreationdate}{%
\begingroup
\Hy@unicodefalse
\pdfstringdef\@pdfcreationdate{#1}%
\endgroup
}
\define@key{Hyp}{pdfmoddate}{%
\begingroup
\Hy@unicodefalse
\pdfstringdef\@pdfmoddate{#1}%
\endgroup
}
\define@key{Hyp}{pdfsubject}{\pdfstringdef\@pdfsubject{#1}}
\define@key{Hyp}{pdfkeywords}{\pdfstringdef\@pdfkeywords{#1}}
\define@key{Hyp}{pdfview}{\calculate@pdfview#1 \\}
\define@key{Hyp}{pdflinkmargin}{\setpdflinkmargin{#1}}
\let\setpdflinkmargin\@gobble
\def\calculate@pdfview#1 #2\\{%
\def\@pdfview{#1}%
\ifx\\#2\\%
\def\@pdfviewparams{ -32768}%
\else
\def\@pdfviewparams{ #2}%
\fi
}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname numexpr\endcsname\relax
\def\Hy@number#1{%
\expandafter\@firstofone\expandafter{\number#1}%
}%
\else
\def\Hy@number#1{%
\the\numexpr#1\relax
}%
\fi
\define@key{Hyp}{pdfstartpage}{%
\ifx\\#1\\%
\def\@pdfstartpage{}%
\else
\edef\@pdfstartpage{\Hy@number{#1}}%
\fi
}%
\define@key{Hyp}{pdfstartview}{%
\ifx\\#1\\%
\def\@pdfstartview{}%
\else
\hypercalcbpdef\@pdfstartview{ /#1 }%
\fi
}
\define@key{Hyp}{pdfpagescrop}{\edef\@pdfpagescrop{#1}}
\define@key{Hyp}{pdftoolbar}[true]{%
\Hy@boolkey[pdftoolbar]{toolbar}{#1}%
}
\define@key{Hyp}{pdfmenubar}[true]{%
\Hy@boolkey[pdfmenubar]{menubar}{#1}%
}
\define@key{Hyp}{pdfwindowui}[true]{%
\Hy@boolkey[pdfwindowui]{windowui}{#1}%
}
\define@key{Hyp}{pdffitwindow}[true]{%
\Hy@boolkey[pdffitwindow]{fitwindow}{#1}%
}
\define@key{Hyp}{pdfcenterwindow}[true]{%
\Hy@boolkey[pdfcenterwindow]{centerwindow}{#1}%
}
\define@key{Hyp}{pdfdisplaydoctitle}[true]{%
\Hy@boolkey[pdfdisplaydoctitle]{displaydoctitle}{#1}%
}
\define@key{Hyp}{pdfa}[true]{%
\Hy@boolkey{pdfa}{#1}%
}
\define@key{Hyp}{pdfnewwindow}[true]{%
\def\Hy@temp{#1}%
\ifx\Hy@temp\@empty
\Hy@newwindowsetfalse
\else
\Hy@newwindowsettrue
\Hy@boolkey[pdfnewwindow]{newwindow}{#1}%
\fi
}
\def\Hy@SetNewWindow{%
\ifHy@newwindowset
/NewWindow %
\ifHy@newwindow true\else false\fi
\fi
}
\Hy@DefNameKey{pdfpagelayout}{%
\do{SinglePage}{}%
\do{OneColumn}{}%
\do{TwoColumnLeft}{}%
\do{TwoColumnRight}{}%
\do{TwoPageLeft}{PDF 1.5}%
\do{TwoPageRight}{PDF 1.5}%
}
\define@key{Hyp}{pdflang}{%
\def\@pdflang{#1}%
}
\define@key{Hyp}{pdfpagelabels}[true]{%
\Hy@boolkey[pdfpagelabels]{pagelabels}{#1}%
}
\define@key{Hyp}{pdfescapeform}[true]{%
\Hy@boolkey[pdfescapeform]{escapeform}{#1}%
}
% \end{macrocode}
% Default values:
% \begin{macrocode}
\def\@linkbordercolor{1 0 0}
\def\@urlbordercolor{0 1 1}
\def\@menubordercolor{1 0 0}
\def\@filebordercolor{0 .5 .5}
\def\@runbordercolor{0 .7 .7}
\def\@citebordercolor{0 1 0}
\def\@pdfhighlight{/I}
\def\@pdftitle{}
\def\@pdfauthor{}
\let\@pdfproducer\relax
\def\@pdfcreator{LaTeX with hyperref package}
\def\@pdfcreationdate{}
\def\@pdfmoddate{}
\def\@pdfsubject{}
\def\@pdfkeywords{}
\def\@pdfpagescrop{}
\def\@pdfstartview{ /Fit }
\def\@pdfstartpage{1}
\def\@pdfprintpagerange{}
\def\@pdflang{}
\let\PDF@SetupDoc\@empty
\let\PDF@FinishDoc\@empty
\let\phantomsection\@empty
\let\special@paper\@empty
\def\HyperDestNameFilter#1{#1}
\@ifundefined{stockwidth}{%
\ifdim\paperwidth>\z@
\ifdim\paperheight>\z@
\edef\special@paper{\the\paperwidth,\the\paperheight}%
\fi
\fi
}{%
\ifdim\stockwidth>\z@
\ifdim\stockheight>\z@
\edef\special@paper{\the\stockwidth,\the\stockheight}%
\fi
\fi
}
\begingroup
\edef\x{\@ifundefined{stockheight}\paperheight\stockheight}%
\dimen@=\x\relax
\ifdim\dimen@>\z@
\else
\dimen@=11in\relax
\Hy@WarningNoLine{%
Height of page (\expandafter\string\x) %
is invalid (\the\x),\MessageBreak
using 11in%
}%
\fi
\dimen@=0.99626401\dimen@
\xdef\Hy@pageheight{\strip@pt\dimen@}%
\endgroup
\def\HyInd@EncapChar{\|}
% \end{macrocode}
%
% \begin{macrocode}
\def\hypersetup{\setkeys{Hyp}}
% \end{macrocode}
%
% Allow the user to use |\ExecuteOptions| in the cfg file even though
% this package does not use the normal option mechanism.
% Use |\hyper@normalise| as a scratch macro, since it is going to
% be defined in a couple of lines anyway.
% \begin{macrocode}
\let\hyper@normalise\ExecuteOptions
\let\ExecuteOptions\hypersetup
\Hy@RestoreCatcodes
\InputIfFileExists{hyperref.cfg}{}{}
\Hy@SetCatcodes
\let\ExecuteOptions\hyper@normalise
\Hy@MaybeStopNow
% \end{macrocode}
% To add flexibility, we will not use the ordinary processing of
% package options, but put them through the \emph{keyval} package.
% This section was written by David Carlisle.
%
% Package kvoptions is used for processing options that are
% given as key value pairs. The package provides
% |\ProcessKeyvalOptions|, formerly known as
% |\ProcessOptionsWithKV|.
% \begin{macrocode}
\RequirePackage{kvoptions}[2006/08/17]
% \end{macrocode}
%
% Add option |tex4ht| if package |tex4ht| is loaded.
% \begin{macrocode}
\@ifpackageloaded{tex4ht}{%
\@ifpackagewith{hyperref}{tex4ht}{}{%
\PassOptionsToPackage{tex4ht}{hyperref}%
}%
}{}
% \end{macrocode}
%
% \begin{macrocode}
\let\ReadBookmarks\relax
\ProcessKeyvalOptions{Hyp}
% \end{macrocode}
%
% After processing options.
%
% \begin{macrocode}
\AtBeginDocument{%
\ifHy@draft
\let\hyper@@anchor\@gobble
\gdef\hyper@link#1#2#3{#3}%
\let\hyper@anchorstart\@gobble
\let\hyper@anchorend\@empty
\let\hyper@linkstart\@gobbletwo
\let\hyper@linkend\@empty
\def\hyper@linkurl#1#2{#1}%
\def\hyper@linkfile#1#2#3{#1}%
\def\hyper@link@[#1]#2#3{}%
\def\Acrobatmenu#1#2{\leavevmode#2}%
\let\PDF@SetupDoc\@empty
\let\PDF@FinishDoc\@empty
\let\@fifthoffive\@secondoftwo
\let\@secondoffive\@secondoftwo
\let\ReadBookmarks\relax
\let\WriteBookmarks\relax
\Hy@WarningNoLine{ draft mode on}%
\fi
\Hy@DisableOption{draft}%
\Hy@DisableOption{nolinks}%
\Hy@DisableOption{final}%
}
% \end{macrocode}
%
% \subsection{PDF/A}
%
% \begin{macrocode}
\Hy@DisableOption{pdfa}
% \end{macrocode}
%
% \begin{macrocode}
\ifHy@pdfa
\setkeys{Hyp}{pdfversion=1.4}%
\def\Hy@Acrobatmenu#1#2{%
\leavevmode
\begingroup
\edef\x{#1}%
\@onelevel@sanitize\x
\ifx\x\Hy@NextPage
\let\y=Y%
\else
\ifx\x\Hy@PrevPage
\let\y=Y%
\else
\ifx\x\Hy@FirstPage
\let\y=Y%
\else
\ifx\x\Hy@LastPage
\let\y=Y%
\else
\let\y=N%
\fi
\fi
\fi
\fi
\expandafter\endgroup
\ifx\y Y%
\else
\PackageError{hyperref}{%
PDF/A: Named action `#1' is not permitted%
}\@ehc
{#2}%
\expandafter\@gobble
\fi
}%
\def\Hy@temp#1{%
\expandafter\def\csname Hy@#1\endcsname{#1}%
\expandafter\@onelevel@sanitize\csname Hy@#1\endcsname
}%
\Hy@temp{NextPage}%
\Hy@temp{PrevPage}%
\Hy@temp{FirstPage}%
\Hy@temp{LastPage}%
\else
\def\Hy@Acrobatmenu#1#2{\leavevmode}%
\fi
% \end{macrocode}
%
% \subsection{Patch for babel's
% \texorpdfstring{\cs{texttilde}}{\\texttilde}}
% Babel does not define \cmd{\texttilde} in NFSS2 manner,
% so the NFSS2 definitions of PD1 or PU encoding is not
% compatible. To fix this, \cmd{\texttilde} is defined
% in babel manner.
% \begin{macrocode}
\Hy@nextfalse
\@ifundefined{spanish@sh@"@sel}{}{\Hy@nexttrue}
\@ifundefined{galician@sh@"@sel}{}{\Hy@nexttrue}
\@ifundefined{estonian@sh@"@sel}{}{\Hy@nexttrue}
\ifHy@next
\let\texttilde\~%
\fi
% \end{macrocode}
%
% \subsection{Patch for babel 3.8j}
% Babel 2008/03/16 v3.8j adds a patch to disable shorthands
% for bookmarks. That reduces warnings, but the bookmarks
% are ugly. Therefore the following patch tries to undo this.
% \begin{macrocode}
\@ifpackageloaded{babel}{%
\@ifpackagelater{babel}{2008/03/16}{%
\def\Hy@PatchLanguageShorthands#1{%
\begingroup
\edef\x{#1}%
\@onelevel@sanitize\x
\def\y{system}%
\@onelevel@sanitize\y
\expandafter\endgroup
\ifx\x\y
\else
\HyOrg@languageshorthands{#1}%
\fi
}%
\AtBeginDocument{%
\begingroup
\toks0=\expandafter{\pdfstringdefPreHook}%
\xdef\pdfstringdefPreHook{%
\let\noexpand\HyOrg@languageshorthands
\noexpand\languageshorthands
\let\noexpand\languageshorthands
\noexpand\Hy@PatchLanguageShorthands
\the\toks0 %
\let\noexpand\languageshorthands
\noexpand\HyOrg@languageshorthands
}%
\endgroup
}%
}{}%
}{}
% \end{macrocode}
%
% \begin{macrocode}
\ifHy@figures
\Hy@Info{Hyper figures ON}%
\else
\Hy@Info{Hyper figures OFF}%
\fi
\ifHy@nesting
\Hy@Info{Link nesting ON}%
\else
\Hy@Info{Link nesting OFF}%
\fi
\ifHy@hyperindex
\Hy@Info{Hyper index ON}%
\else
\Hy@Info{Hyper index OFF}%
\fi
\ifHy@plainpages
\Hy@Info{Plain pages ON}%
\else
\Hy@Info{Plain pages OFF}%
\fi
\ifHy@backref
\Hy@Info{Backreferencing ON}%
\else
\Hy@Info{Backreferencing OFF}%
\fi
\ifHy@typexml
\AtEndOfPackage{%
\RequirePackage{color}%
\RequirePackage{nameref}%
}%
\fi
\Hy@DisableOption{typexml}
\ifHy@implicit
\typeout{Implicit mode ON; LaTeX internals redefined}%
\else
\typeout{Implicit mode OFF; no redefinition of LaTeX internals}%
\def\MaybeStopEarly{%
\typeout{Hyperref stopped early}%
\AfterBeginDocument{%
\PDF@FinishDoc
\gdef\PDF@FinishDoc{}%
}%
\endinput
}%
\AtBeginDocument{%
\let\autoref\ref
\let\autopageref\pageref
\ifx\@pdfpagemode\@empty
\gdef\@pdfpagemode{UseNone}%
\fi
\global\Hy@backreffalse
}%
\AtEndOfPackage{%
\global\let\ReadBookmarks\relax
\global\let\WriteBookmarks\relax
}%
\fi
\Hy@DisableOption{implicit}
% \end{macrocode}
%
% \subsubsection{Driver loading}
%
% \begin{macrocode}
\AtEndOfPackage{%
\@ifpackageloaded{tex4ht}{%
\def\Hy@driver{htex4ht}%
\Hy@texhttrue
}{}%
% \end{macrocode}
% Some drivers can be detected. Check for these drivers,
% whether the given driver option is ok. Otherwise force
% the right driver or use the default driver.
% \begin{macrocode}
\ifx\Hy@driver\@empty
\else
\def\Hy@temp{hpdftex}%
\ifpdf
\ifx\Hy@driver\Hy@temp
\else
\Hy@WarningNoLine{%
Wrong driver `\Hy@driver.def';\MessageBreak
pdfTeX is running in PDF mode.\MessageBreak
Forcing driver `\Hy@temp.def'%
}%
\let\Hy@driver\Hy@temp
\fi
\else
\ifx\Hy@driver\Hy@temp
\Hy@WarningNoLine{%
Wrong driver `\Hy@driver.def';\MessageBreak
pdfTeX is not running in PDF mode.\MessageBreak
Using default driver%
}%
\let\Hy@driver\@empty
\fi
\fi
\fi
\ifx\Hy@driver\@empty
\else
\def\Hy@temp{hdvipdfm}%
\ifxetex
\ifx\Hy@driver\Hy@temp
\else
\Hy@WarningNoLine{%
Wrong driver `\Hy@driver.def';\MessageBreak
XeTeX is running.\MessageBreak
Forcing driver `\Hy@temp.def' for XeTeX%
}%
\let\Hy@driver\Hy@temp
\fi
\fi
\fi
\ifx\Hy@driver\@empty
\else
\def\Hy@temp{hvtexhtm}%
\ifvtexhtml
\ifx\Hy@driver\Hy@temp
\else
\Hy@WarningNoLine{%
Wrong driver `\Hy@driver.def';\MessageBreak
VTeX is running in HTML mode.\MessageBreak
Forcing driver `\Hy@temp.def'%
}%
\let\Hy@driver\Hy@temp
\fi
\else
\ifx\Hy@driver\Hy@temp
\Hy@WarningNoLine{%
Wrong driver `\Hy@driver.def';\MessageBreak
VTeX is not running in HTML mode.\MessageBreak
Using default driver%
}%
\let\Hy@driver\@empty
\fi
\fi
\fi
% \end{macrocode}
% If the driver is not given, find the right driver or
% use the default driver.
% \begin{macrocode}
\ifx\Hy@driver\@empty
\providecommand*{\Hy@defaultdriver}{hypertex}%
\ifpdf
\def\Hy@driver{hpdftex}%
\else
\ifxetex
\def\Hy@driver{hdvipdfm}%
\else
\ifvtexhtml
\def\Hy@driver{hvtexhtm}%
\def\MaybeStopEarly{%
\typeout{Hyperref stopped early}%
\AfterBeginDocument{%
\PDF@FinishDoc
\gdef\PDF@FinishDoc{}%
}%
\endinput
}%
\else
\ifvtexpdf
\def\Hy@driver{hvtex}%
\else
\ifvtexps
\def\Hy@driver{hvtex}%
\else
\let\Hy@driver\Hy@defaultdriver
\fi
\fi
\fi
\fi
\fi
\ifx\Hy@driver\Hy@defaultdriver
\def\Hy@temp{hdviwind}%
\ifx\Hy@temp\Hy@driver
\setkeys{Hyp}{colorlinks}%
\PassOptionsToPackage{dviwindo}{color}%
\fi
\fi
\typeout{*hyperref using default driver \Hy@driver*}%
\else
\typeout{*hyperref using driver \Hy@driver*}%
\fi
\input{\Hy@driver.def}%
\let\@unprocessedoptions\relax
\Hy@RestoreCatcodes
}
% \end{macrocode}
% Support for open outlines is enabled for Xe\TeX\ >= 0.9995.
% I don't know, if older versions also support this.
% AFAIK older dvipdfmx versions will break, thus the
% switch cannot be turned on by default.
% \begin{macrocode}
\newif\ifHy@DvipdfmxOutlineOpen
\ifxetex
\ifdim\number\XeTeXversion\XeTeXrevision in<0.9995in %
\else
\Hy@DvipdfmxOutlineOpentrue
\fi
\fi
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname SpecialDvipdfmxOutlineOpen\endcsname\relax
\else
\ifnum\SpecialDvipdfmxOutlineOpen>\z@
\Hy@DvipdfmxOutlineOpentrue
\fi
\fi
\Hy@DisableOption{tex4ht}
\Hy@DisableOption{pdftex}
\Hy@DisableOption{nativepdf}
\Hy@DisableOption{dvipdfm}
\Hy@DisableOption{dvipdfmx}
\Hy@DisableOption{dvipdfmx-outline-open}
\Hy@DisableOption{pdfmark}
\Hy@DisableOption{dvips}
\Hy@DisableOption{hypertex}
\Hy@DisableOption{vtex}
\Hy@DisableOption{vtexpdfmark}
\Hy@DisableOption{dviwindo}
\Hy@DisableOption{dvipsone}
\Hy@DisableOption{textures}
\Hy@DisableOption{latex2html}
\Hy@DisableOption{ps2pdf}
\Hy@DisableOption{xetex}
\AtEndOfPackage{%
\Hy@DisableOption{pdfversion}%
}
% \end{macrocode}
%
% \subsubsection{Bookmarks}
% \begin{macrocode}
\def\WriteBookmarks{0}
\def\@bookmarkopenstatus#1{%
\ifHy@bookmarksopen
% \end{macrocode}
% The purpose of the |\@firstofone|-number-space-construct
% is that no |\relax| will be inserted by \TeX{} before the |\else|:
% \begin{macrocode}
\ifnum#1<\expandafter\@firstofone\expandafter
{\number\@bookmarksopenlevel} % explicit space
\else
-%
\fi
\else
-%
\fi
}
\ifHy@bookmarks
\Hy@Info{Bookmarks ON}%
\ifx\@pdfpagemode\@empty
\def\@pdfpagemode{UseOutlines}%
\fi
\else
\def\@bookmarkopenstatus#1{}%
\Hy@Info{Bookmarks OFF}%
\AtEndOfPackage{%
\global\let\ReadBookmarks\relax
\global\let\WriteBookmarks\relax
}%
\ifx\@pdfpagemode\@empty
\def\@pdfpagemode{UseNone}%
\fi
\fi
\Hy@DisableOption{bookmarks}
% \end{macrocode}
%
% Add wrapper for setting standard catcodes (babel's shorthands).
% \begin{macrocode}
\def\Hy@CatcodeWrapper#1{%
\def\Hy@EndWrap{}%
\def\TMP@EnsureCode##1##2{%
\edef\Hy@EndWrap{%
\Hy@EndWrap
\catcode##1 \the\catcode##1\relax
}%
\catcode##1 ##2\relax
}%
\TMP@EnsureCode{10}{12}% ^^J
\TMP@EnsureCode{33}{12}% !
\TMP@EnsureCode{34}{12}% "
\TMP@EnsureCode{36}{3}% $ (math)
\TMP@EnsureCode{38}{4}% & (alignment)
\TMP@EnsureCode{39}{12}% '
\TMP@EnsureCode{40}{12}% (
\TMP@EnsureCode{41}{12}% )
\TMP@EnsureCode{42}{12}% *
\TMP@EnsureCode{43}{12}% +
\TMP@EnsureCode{44}{12}% ,
\TMP@EnsureCode{45}{12}% -
\TMP@EnsureCode{46}{12}% .
\TMP@EnsureCode{47}{12}% /
\TMP@EnsureCode{58}{12}% :
\TMP@EnsureCode{59}{12}% ;
\TMP@EnsureCode{60}{12}% <
\TMP@EnsureCode{61}{12}% =
\TMP@EnsureCode{62}{12}% >
\TMP@EnsureCode{63}{12}% ?
\TMP@EnsureCode{91}{12}% [
\TMP@EnsureCode{93}{12}% ]
\TMP@EnsureCode{94}{7}% ^ (superscript)
\TMP@EnsureCode{95}{8}% _ (subscript)
\TMP@EnsureCode{96}{12}% `
\TMP@EnsureCode{124}{12}% |
\TMP@EnsureCode{126}{13}% ~ (active)
#1\relax
\Hy@EndWrap
}
% \end{macrocode}
%
% |\HyColor@UseColor| expects a macro as argument. It contains
% the color specification.
% \begin{macrocode}
\AtBeginDocument{%
\ifHy@ocgcolorlinks
\setkeys{Hyp}{colorlinks}%
\ifHy@pdfa
\Hy@Warning{%
PDF/A: Optional Content Groups are prohibited,\MessageBreak
using `colorlinks' instead of `ocgcolorlinks'%
}%
\Hy@ocgcolorlinksfalse
\fi
\fi
\ifHy@ocgcolorlinks
\else
\Hy@DisableOption{ocgcolorlinks}%
\fi
\ifHy@colorlinks
\def\@pdfborder{0 0 0}%
\let\@pdfborderstyle\@empty
\ifHy@typexml
\else
\Hy@CatcodeWrapper{%
\RequirePackage{color}%
}%
\fi
\def\Hy@colorlink#1{%
\begingroup
\HyColor@UseColor#1%
}%
\def\Hy@endcolorlink{\endgroup}%
\Hy@Info{Link coloring ON}%
\else
\ifHy@frenchlinks
\def\Hy@colorlink#1{\begingroup\fontshape{sc}\selectfont}%
\def\Hy@endcolorlink{\endgroup}%
\Hy@Info{French linking ON}%
\else
% \end{macrocode}
% for grouping consistency:
% \begin{macrocode}
\def\Hy@colorlink#1{\begingroup}%
\def\Hy@endcolorlink{\endgroup}%
\Hy@Info{Link coloring OFF}%
\fi
\fi
\Hy@DisableOption{colorlinks}%
\Hy@DisableOption{frenchlinks}%
\ifHy@texht
\long\def\@firstoffive#1#2#3#4#5{#1}%
\long\def\@secondoffive#1#2#3#4#5{#2}%
\long\def\@thirdoffive#1#2#3#4#5{#3}%
\long\def\@fourthoffive#1#2#3#4#5{#4}%
\long\def\@fifthoffive#1#2#3#4#5{#5}%
\providecommand*\@safe@activestrue{}%
\providecommand*\@safe@activesfalse{}%
\def\T@ref#1{%
\Hy@safe@activestrue
\expandafter\@setref\csname r@#1\endcsname\@firstoffive{#1}%
\Hy@safe@activesfalse
}%
\def\T@pageref#1{%
\Hy@safe@activestrue
\expandafter\@setref\csname r@#1\endcsname\@secondoffive{#1}%
\Hy@safe@activesfalse
}%
\else
\ifHy@typexml
\else
\Hy@CatcodeWrapper{%
\RequirePackage{nameref}%
}%
\fi
\fi
\DeclareRobustCommand\ref{\@ifstar\@refstar\T@ref}%
\DeclareRobustCommand\pageref{%
\@ifstar\@pagerefstar\T@pageref
}%
}
\AfterBeginDocument{%
\ifHy@texht
\else
\Hy@CatcodeWrapper{%
\ReadBookmarks
}%
\fi
}
% \end{macrocode}
% \begin{macrocode}
\ifHy@backref
\RequirePackage{backref}%
\else
\let\Hy@backout\@gobble
\fi
\Hy@DisableOption{backref}
\Hy@DisableOption{pagebackref}
% \end{macrocode}
% \begin{macrocode}
\Hy@activeanchorfalse
% \end{macrocode}
%
% \section{User hypertext macros}\label{usermacros}
% We need to normalise all user commands taking a URL argument;
% Within the argument the following special definitions apply:
% |\#|, |\%|, |~| produce |#|, |%|, |~| respectively.
% for consistency |\~| produces |~| as well.
% At the \emph{top level only} ie not within the argument of another
% command, you can use |#| and |%| unescaped, to produce themselves.
% even if, say, |#| is entered as |#| it will be converted to |\#|
% so it does not die if written to an aux file etc. |\#| will write
% as |#| locally while making |\special|s.
% \begin{macrocode}
\begingroup
\endlinechar=-1 %
\catcode`\^^A=14 %
\catcode`\^^M\active
\catcode`\%\active
\catcode`\#\active
\catcode`\_\active
\catcode`\$\active
\catcode`\&\active
\gdef\hyper@normalise{^^A
\begingroup
\catcode`\^^M\active
\def^^M{ }^^A
\catcode`\%\active
\let%\@percentchar
\let\%\@percentchar
\catcode`\#\active
\def#{\hyper@hash}^^A
\def\#{\hyper@hash}^^A
\@makeother\&^^A
\edef&{\string&}^^A
\edef\&{\string&}^^A
\edef\textunderscore{\string_}^^A
\let\_\textunderscore
\catcode`\_\active
\let_\textunderscore
\let~\hyper@tilde
\let\~\hyper@tilde
\let\textasciitilde\hyper@tilde
\let\\\@backslashchar
\edef${\string$}^^A
\Hy@safe@activestrue
\hyper@n@rmalise
}^^A
\catcode`\#=6 ^^A
\gdef\Hy@ActiveCarriageReturn{^^M}^^A
\gdef\hyper@n@rmalise#1#2{^^A
\def\Hy@tempa{#2}^^A
\ifx\Hy@tempa\Hy@ActiveCarriageReturn
\Hy@ReturnAfterElseFi{^^A
\hyper@@normalise{#1}^^A
}^^A
\else
\Hy@ReturnAfterFi{^^A
\hyper@@normalise{#1}{#2}^^A
}^^A
\fi
}^^A
\gdef\hyper@@normalise#1#2{^^A
\edef\Hy@tempa{^^A
\endgroup
\noexpand#1{\Hy@RemovePercentCr#2%^^M\@nil}^^A
}^^A
\Hy@tempa
}^^A
\gdef\Hy@RemovePercentCr#1%^^M#2\@nil{^^A
#1^^A
\ifx\limits#2\limits
\else
\Hy@ReturnAfterFi{^^A
\Hy@RemovePercentCr #2\@nil
}^^A
\fi
}^^A
\endgroup
\providecommand*\hyper@chars{%
\let\#\hyper@hash
\let\%\@percentchar
\Hy@safe@activestrue
}
% \end{macrocode}
%
% \begin{macrocode}
\def\hyperlink#1#2{%
\hyper@@link{}{#1}{#2}%
}
% \end{macrocode}
%
% \begin{macrocode}
\DeclareRobustCommand*{\href}{%
\@ifnextchar\bgroup\Hy@href{\hyper@normalise\href@}%
}
\def\Hy@href#{%
\hyper@normalise\href@
}
\begingroup
\catcode`\$=6 %
\catcode`\#=12 %
\gdef\href@$1{\expandafter\href@split$1##\\}%
\gdef\href@split$1#$2#$3\\{%
\hyper@@link{$1}{$2}%
}%
\endgroup
% \end{macrocode}
% Load package |url.sty| and save the meaning of
% the original \cmd{\url} in \cmd{\nolinkurl}.
% \begin{macrocode}
\RequirePackage{url}
\let\HyOrg@url\url
\def\Hurl{\begingroup \Url}
\DeclareRobustCommand*{\nolinkurl}{\hyper@normalise\nolinkurl@}
\def\nolinkurl@#1{\Hurl{#1}}
\DeclareRobustCommand*{\url}{\hyper@normalise\url@}
\def\url@#1{\hyper@linkurl{\Hurl{#1}}{#1}}
% \end{macrocode}
%
% \begin{macrocode}
\DeclareRobustCommand*{\hyperimage}{\hyper@normalise\hyper@image}
\providecommand\hyper@image[2]{#2}
% \end{macrocode}
%
% \begin{macrocode}
\def\hypertarget#1#2{%
\ifHy@nesting
\hyper@@anchor{#1}{#2}%
\else
\hyper@@anchor{#1}{\relax}#2%
\fi
}
% \end{macrocode}
% |\hyperref| is more complicated, as it includes the concept of a
% category of link, used to make the name. This is not really used in this
% package. |\hyperdef| sets up an anchor in the same way. They each have
% three parameters of category, linkname, and marked text, and |\hyperref|
% also has a first parameter of URL.
% If there is an optional first parameter to |\hyperdef|,
% it is the name of a \LaTeX\ label which can be used in
% a short form of |\hyperref| later, to avoid
% remembering the name and category.
% \begin{macrocode}
\DeclareRobustCommand*{\hyperref}{%
\@ifnextchar[{\Hy@babelnormalise\label@hyperref}\@hyperref
}
\def\Hy@babelnormalise#1[#2]{%
\begingroup
\Hy@safe@activestrue
\edef\Hy@tempa{%
\endgroup
\noexpand#1[{#2}]%
}%
\Hy@tempa
}
\def\@hyperref{\hyper@normalise\@@hyperref}
\def\@@hyperref#1#2#3{%
\edef\ref@one{\ifx\\#2\\\else#2.\fi#3}%
\expandafter\tryhyper@link\ref@one\\{#1}%
}
\def\tryhyper@link#1\\#2{%
\hyper@@link{#2}{#1}%
}
% \end{macrocode}
%
% \begin{macrocode}
\def\hyperdef{\@ifnextchar[{\label@hyperdef}{\@hyperdef}}
\def\@hyperdef#1#2#3{%, category, name, text
\ifHy@nesting
\hyper@@anchor{#1.#2}{#3}%
\else
\hyper@@anchor{#1.#2}{\relax}#3%
\fi
}
% \end{macrocode}
% We also have a need to give a \LaTeX\ \emph{label} to a
% hyper reference, to ease the pain of referring to it later.
% \begin{macrocode}
\def\label@hyperref[#1]{%
\expandafter\label@@hyperref\csname r@#1\endcsname{#1}%
}%
\def\label@@hyperref#1#2#3{%
\ifx#1\relax
\protect\G@refundefinedtrue
\@latex@warning{%
Hyper reference `#2' on page \thepage \space undefined%
}%
\hyper@@link{}{??}{#3}%
\else
\hyper@@link{\expandafter\@fifthoffive#1}%
{\expandafter\@fourthoffive#1\@empty\@empty}{#3}%
\fi
}
\def\label@hyperdef[#1]#2#3#4{% label name, category, name,
% anchor text
\@bsphack
\if@filesw
\protected@write\@auxout{}%
{\string\newlabel{#1}{{}{}{}\##2.#3}}%
\fi
\@esphack
\ifHy@nesting
\hyper@@anchor{#2.#3}{#4}%
\else
\hyper@@anchor{#2.#3}{\relax}#4%
\fi
}
% \end{macrocode}
% \section{Underlying basic hypertext macros}\label{coremacros}
% Links have an optional type, a filename (possibly a URL),
% an internal name, and some marked text. (Caution: the internal
% name may contain babel shorthand characters.)
% If the second parameter is empty, its an internal link,
% otherwise we need to open another file or a URL.
% A link start has a type, and a URL.
% \begin{macrocode}
\def\hyper@@link{\let\Hy@reserved@a\relax
\@ifnextchar[{\hyper@link@}{\hyper@link@[link]}%
}
\def\hyper@link@[#1]#2#3#4{%
\begingroup
\protected@edef\Hy@tempa{#2}%
\Hy@safe@activestrue
\edef\x{#3}%
\ifx\Hy@tempa\@empty
\toks0{\hyper@link{#1}}%
\else
\toks0{\expandafter\hyper@readexternallink#2\\{#1}}%
\fi
\toks2{%
\Hy@safe@activesfalse
#4%
}%
\edef\Hy@tempa{\the\toks2}%
\edef\x{\endgroup
\ifx\Hy@tempa\@empty
\noexpand\Hy@Warning{Suppressing empty link}%
\else
\the\toks0 {\x}{\the\toks2}%%
\fi
}%
\x
}
% \end{macrocode}
% The problem here is that the first (URL) parameter may be a
% local \texttt{file:} reference
% (in which case some browsers treat it differently)
% or a genuine URL, in which case we'll have to activate
% a real Web browser.
% Note that a simple name is also a URL, as that is interpreted
% as a relative file name. We have to worry about |#| signs in a local
% file as well.
%
% \begin{macrocode}
\def\hyper@readexternallink#1\\#2#3#4{%
% \end{macrocode}
% Parameters are:
% \begin{enumerate}
% \item The URL or file name
% \item The type
% \item The internal name
% \item The link string
% \end{enumerate}
% We need to get the 1st parameter properly expanded,
% so we delimit the arguments rather than passing it inside a group.
% \begin{macrocode}
\expandafter\@hyper@readexternallink{#2}{#3}{#4}#1::\\{#1}%
}
% \end{macrocode}
% Now (potentially), we are passed:
% 1) The link type
% 2) The internal name,
% 3) the link string,
% 4) the URL type (http, mailto, file etc),
% 5) the URL details
% 6) anything after a real : in the URL
% 7) the whole URL again
% \begin{macrocode}
\def\@pdftempwordfile{file}%
\def\@pdftempwordrun{run}%
\def\@hyper@readexternallink#1#2#3#4:#5:#6\\#7{%
% \end{macrocode}
% If there are no colons at all (|#6| is blank), its a local
% file; if the URL type (|#4|) is blank, its probably a Mac filename,
% so treat it like a \texttt{file:} URL. The only flaw is if
% its a relative Mac path, with several colon-separated elements ---
% then we lose. Such names must be prefixed with an explicit |dvi:|
% \begin{macrocode}
\ifx\\#6\\%
\expandafter\@hyper@linkfile file:#7\\{#3}{#2}%
\else
\ifx\\#4\\%
\expandafter\@hyper@linkfile file:#7\\{#3}{#2}%
\else
% \end{macrocode}
% If the URL type is `file', pass it for local opening
% \begin{macrocode}
\def\@pdftempa{#4}%
\ifx\@pdftempa\@pdftempwordfile
\expandafter\@hyper@linkfile#7\\{#3}{#2}%
\else
% \end{macrocode}
% if it starts `run:', its to launch an application.
% \begin{macrocode}
\ifx\@pdftempa\@pdftempwordrun
\ifHy@pdfa
\PackageError{hyperref}{%
PDF/A: Launch action is prohibited%
}\@ehc
\begingroup
\leavevmode
#2%
\endgroup
\else
\expandafter\@hyper@launch#7\\{#3}{#2}%
\fi
\else
% \end{macrocode}
% otherwise its a URL
% \begin{macrocode}
\hyper@linkurl{#3}{#7\ifx\\#2\\\else\hyper@hash#2\fi}%
\fi
\fi
\fi
\fi
}
% \end{macrocode}
% By default, turn |run:| into |file:|
% \begin{macrocode}
\def\@hyper@launch run:#1\\#2#3{% filename, anchor text, linkname
\hyper@linkurl{#2}{%
\Hy@linkfileprefix
#1%
\ifx\\#3\\%
\else
\hyper@hash
#3%
\fi
}%
}
% \end{macrocode}
% D P Story <story@uakron.edu> pointed out that relative paths
% starting .. fell over. Switched to using |\filename@parse| to
% solve this.
% \begin{macrocode}
\def\@hyper@linkfile file:#1\\#2#3{%
%file url,link string, name
\filename@parse{#1}%
\ifx\filename@ext\relax
\edef\filename@ext{\XR@ext}%
\fi
\def\use@file{\filename@area\filename@base.\filename@ext}%
\ifx\filename@ext\XR@ext
\hyper@linkfile{#2}{\use@file}{#3}%
\else
\ifx\@baseurl\@empty
\hyper@linkurl{#2}{%
\Hy@linkfileprefix\use@file\ifx\\#3\\\else\hyper@hash#3\fi
}%
\else
\hyper@linkurl{#2}{\use@file\ifx\\#3\\\else\hyper@hash#3\fi}%
\fi
\fi
}
% \end{macrocode}
% Anchors have a name, and marked text.
% We have to be careful with the marked text, as if we break
% off part of something to put a |\special| around it, all hell breaks
% loose. Therefore, we check the category code of the first token,
% and only proceed if its safe. Tanmoy sorted this out.
%
% A curious case arises if the original parameter
% was in braces. That means that |#2| comes here a multiple
% letters, and the |noexpand| just looks at the first one,
% putting the rest in the output. Yuck.
% \begin{macrocode}
\long\def\hyper@@anchor#1#2{\@hyper@@anchor#1\relax#2\relax}
\long\def\@hyper@@anchor#1\relax#2#3\relax{%
\ifx\\#1\\%
#2\Hy@WarningNoLine{empty link? #1: #2#3}%
\else
\def\anchor@spot{#2#3}%
\let\put@me@back\@empty
\ifx\relax#2\relax
\else
\ifHy@nesting
\else
\ifcat a\noexpand#2\relax
\else
\ifcat 0\noexpand#2 \relax
\else
% \typeout{Anchor start is not alphanumeric %
% on input line\the\inputlineno%
% }%
\let\anchor@spot\@empty
\def\put@me@back{#2#3}%
\fi
\fi
\fi
\fi
\ifHy@activeanchor
\anchor@spot
\else
\hyper@anchor{#1}%
\fi
\expandafter\put@me@back
\fi
\let\anchor@spot\@empty
}
% \end{macrocode}
% \section{Compatibility with the \emph{\LaTeX{}2html} package}\label{latex2html}
% Map our macro names on to Nikos', so that documents prepared
% for that system will work without change.
%
% Note, however, that the whole complicated structure for
% segmenting documents is not supported; it is assumed that the user
% will load |html.sty| first, and then |hyperref.sty|, so that the
% definitions in |html.sty| take effect, and are then overridden
% in a few circumstances by this package.
% \begin{macrocode}
\let\htmladdimg\hyperimage
% \end{macrocode}
%
% \begin{macrocode}
\def\htmladdnormallink#1#2{\href{#2}{#1}}
\def\htmladdnormallinkfoot#1#2{\href{#2}{#1}\footnote{#2}}
\def\htmlref#1#2{% anchor text, label
\label@hyperref[{#2}]{#1}%
}
% \end{macrocode}
% This is really too much. The \LaTeX2html package defines its own
% |\hyperref| command, with a different syntax. Was this always here?
% Its weird, anyway. We interpret it in the `printed' way, since
% we are about fidelity to the page.
% \begin{macrocode}
\def\@@latextohtmlX{%
\let\hhyperref\hyperref
\def\hyperref##1##2##3##4{% anchor text for HTML
% text to print before label in print
% label
% post-label text in print
##2\ref{##4}##3%
}%
}
% \end{macrocode}
%
% \section{Forms creation}
% Allow for creation of PDF or HTML forms. The effects here are
% limited somewhat by the need to support both output formats,
% so it may not be as clever as something which only wants
% to make PDF forms.
%
% I (Sebastian) could not have started this without the
% encouragement of T V Raman.
%
% \subsection{Field flags}
%
% The field flags are organized in a bit set.
% \begin{macrocode}
\RequirePackage{bitset}
% \end{macrocode}
%
% Each flag has a option name, an \cs{if} switch,
% and a bit position. The default is always `false', the
% flag is clear.
% This is also the default of the switch created by \cs{newif}.
%
% The names of the flags in the PDF specification (1.7)
% are used as lowercase option names.
% \begin{macro}{\HyField@NewFlag}
% |#1|: type: |F| annot flags, |Ff| field flags\\
% |#2|: PDF name\\
% |#3|: PDF position
% \begin{macrocode}
\def\HyField@NewFlag#1#2{%
\lowercase{\HyField@NewOption{#2}}%
\lowercase{\HyField@NewBitsetFlag{#2}}{#2}{#1}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyField@NewFlagOnly}
% \begin{macrocode}
\def\HyField@NewFlagOnly#1#2{%
\lowercase{\HyField@NewBitsetFlag{#2}}{#2}{#1}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyField@NewOption}
% |#1|: option name
% \begin{macrocode}
\def\HyField@NewOption#1{%
\expandafter\newif\csname ifFld@#1\endcsname
\define@key{Field}{#1}[true]{%
\lowercase{\Field@boolkey{##1}}{#1}%
}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyField@NewBitsetFlag}
% Package `bitset' uses zero based positions, the
% PDF specification starts with one.\\
% |#1|: option\\
% |#2|: PDF name\\
% |#3|: type: |F| annot flags, |Ff| field flags\\
% |#4|: PDF position
% \begin{macrocode}
\def\HyField@NewBitsetFlag#1#2#3#4{%
\begingroup
\count@=#4\relax
\advance\count@\m@ne
\def\x##1{%
\endgroup
\expandafter\def\csname HyField@#3@#1\endcsname{##1}%
\expandafter\ifx\csname HyField@#3@##1\endcsname\relax
\expandafter\edef\csname HyField@#3@##1\endcsname{%
(\number#4) #2%
}%
\else
\expandafter\edef\csname HyField@#3@##1\endcsname{%
\csname HyField@#3@##1\endcsname
/#2%
}%
\fi
}%
\expandafter\x\expandafter{\the\count@}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyField@UseFlag}
% The bit set is |HyField@#1|
% \begin{macrocode}
\def\HyField@UseFlag#1#2{%
\lowercase{\HyField@@UseFlag{#2}}{#1}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyField@@UseFlag}
% \begin{macrocode}
\def\HyField@@UseFlag#1#2{%
\bitsetSetValue{HyField@#2}{%
\csname HyField@#2@#1\endcsname
}{%
\csname ifFld@#1\endcsname 1\else 0\fi
}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyField@SetFlag}
% The bit set is |HyField@#1|
% \begin{macrocode}
\def\HyField@SetFlag#1#2{%
\lowercase{\HyField@@SetFlag{#2}}{#1}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyField@@SetFlag}
% \begin{macrocode}
\def\HyField@@SetFlag#1#2{%
\bitsetSetValue{HyField@#2}{%
\csname HyField@#2@#1\endcsname
}{1}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyField@PrintFlags}
% \begin{macrocode}
\def\HyField@PrintFlags#1#2{%
\ifHy@verbose
\begingroup
\let\Hy@temp\@empty
\let\MessageBreak\relax
\expandafter\@for\expandafter\x\expandafter:\expandafter=%
\bitsetGetSetBitList{HyField@#1}\do{%
\edef\Hy@temp{%
\Hy@temp
\csname HyField@#1@\x\endcsname\MessageBreak
}%
}%
\edef\x{\endgroup
\noexpand\Hy@Info{%
Field flags: %
\expandafter\ifx\@car#1\@nil S\else/\fi
#1 %
\bitsetGetDec{HyField@#1} %
(0x\bitsetGetHex{HyField@#1}{32})\MessageBreak
\Hy@temp
for #2%
}%
}\x
\fi
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Declarations of field flags}
%
% ``Table 8.70 Field flags common to all field types''
% \begin{macrocode}
\HyField@NewFlag{Ff}{ReadOnly}{1}
\HyField@NewFlag{Ff}{Required}{2}
\HyField@NewFlag{Ff}{NoExport}{3}
% \end{macrocode}
% ``Table 8.75 Field flags specific to button fields''
% \begin{macrocode}
\HyField@NewFlag{Ff}{NoToggleToOff}{15}
\HyField@NewFlag{Ff}{Radio}{16}
\HyField@NewFlag{Ff}{Pushbutton}{17}
\HyField@NewFlag{Ff}{RadiosInUnison}{26}
% \end{macrocode}
% ``Table 8.77 Field flags specific to text fields''
% \begin{macrocode}
\HyField@NewFlag{Ff}{Multiline}{13}
\HyField@NewFlag{Ff}{Password}{14}
\HyField@NewFlag{Ff}{FileSelect}{21}% PDF 1.4
\HyField@NewFlag{Ff}{DoNotSpellCheck}{23}% PDF 1.4
\HyField@NewFlag{Ff}{DoNotScroll}{24}% PDF 1.4
\HyField@NewFlag{Ff}{Comb}{25}% PDF 1.4
\HyField@NewFlag{Ff}{RichText}{26}% PDF 1.5
% \end{macrocode}
% ``Table 8.79 field flags specific to choice fields''
% \begin{macrocode}
\HyField@NewFlag{Ff}{Combo}{18}
\HyField@NewFlag{Ff}{Edit}{19}
\HyField@NewFlag{Ff}{Sort}{20}
\HyField@NewFlag{Ff}{MultiSelect}{22}% PDF 1.4
% \HyField@NewFlag{Ff}{DoNotSpellCheck}{23}% PDF 1.4
\HyField@NewFlag{Ff}{CommitOnSelChange}{27}% PDF 1.5
% \end{macrocode}
% Signature fields are not supported.
%
% Until 6.76i hyperref uses field option `combo' to set
% three flags `Combo', `Edit', and `Sort'. Option `popdown' sets
% flag `Combo' only.
% \begin{macrocode}
\newif\ifFld@popdown
\define@key{Field}{popdown}[true]{%
\lowercase{\Field@boolkey{#1}}{popdown}%
}
% \end{macrocode}
%
% Annotation flags. The form objects are widget annotations.
% There are two flags for readonly settings, the one in the annotation
% flags is ignored, instead the other in the field flags is used.
%
% Flag |Print| is not much useful, because hyperref do not
% use the appearance entry of the annotations for most fields.
% \begin{macrocode}
\HyField@NewFlag{F}{Invisible}{1}
\HyField@NewFlag{F}{Hidden}{2}% PDF 1.2
\HyField@NewFlag{F}{Print}{3}% PDF 1.2
\HyField@NewFlag{F}{NoZoom}{4}% PDF 1.2
\HyField@NewFlag{F}{NoRotate}{5}% PDF 1.3
\HyField@NewFlag{F}{NoView}{6}% PDF 1.3
\HyField@NewFlag{F}{Locked}{8}% PDF 1.4
\HyField@NewFlag{F}{ToggleNoView}{9}% PDF 1.5
\HyField@NewFlag{F}{LockedContents}{10}% PDF 1.7
% \end{macrocode}
%
% \begin{macrocode}
\ifHy@pdfa
\def\HyField@PDFAFlagWarning#1#2{%
\Hy@Warning{%
PDF/A: Annotation flag `#1' must\MessageBreak
be set to `#2'%
}%
}%
\Fld@invisiblefalse
\def\Fld@invisibletrue{%
\HyField@PDFAFlagWarning{invisible}{false}%
}%
\Fld@hiddenfalse
\def\Fld@hiddentrue{%
\HyField@PDFAFlagWarning{hidden}{false}%
}%
\Fld@printtrue
\def\Fld@printfalse{%
\HyField@PDFAFlagWarning{print}{true}%
}%
\Fld@nozoomtrue
\def\Fld@nozoomfalse{%
\HyField@PDFAFlagWarning{nozoom}{true}%
}%
\Fld@norotatetrue
\def\Fld@norotatefalse{%
\HyField@PDFAFlagWarning{norotate}{true}%
}%
\Fld@noviewfalse
\def\Fld@noviewtrue{%
\HyField@PDFAFlagWarning{noview}{false}%
}%
\fi
% \end{macrocode}
%
% Submit flags. Flag 1 Include/Exclude is not supported,
% use option noexport instead.
% \begin{macrocode}
\HyField@NewFlag{Submit}{IncludeNoValueFields}{2}
\HyField@NewFlagOnly{Submit}{ExportFormat}{3}
\HyField@NewFlag{Submit}{GetMethod}{4}
\HyField@NewFlag{Submit}{SubmitCoordinates}{5}
\HyField@NewFlagOnly{Submit}{XFDF}{6}
\HyField@NewFlag{Submit}{IncludeAppendSaves}{7}
\HyField@NewFlag{Submit}{IncludeAnnotations}{8}
\HyField@NewFlagOnly{Submit}{SubmitPDF}{9}
\HyField@NewFlag{Submit}{CanonicalFormat}{10}
\HyField@NewFlag{Submit}{ExclNonUserAnnots}{11}
\HyField@NewFlag{Submit}{ExclFKey}{12}
\HyField@NewFlag{Submit}{EmbedForm}{14}
% \end{macrocode}
% \begin{macrocode}
\define@key{Field}{export}{%
\lowercase{\def\Hy@temp{#1}}%
\@ifundefined{Fld@export@\Hy@temp}{%
\@onelevel@sanitize\Hy@temp
\PackageError{hyperref}{%
Unknown export format `\Hy@temp'.\MessageBreak
Known formats are `FDF', `HTML', `XFDF', and `PDF'%
}\@ehc
}{%
\let\Fld@export\Hy@temp
}%
}
\def\Fld@export{fdf}
\@namedef{Fld@export@fdf}{0}%
\@namedef{Fld@export@html}{1}%
\@namedef{Fld@export@xfdf}{2}%
\@namedef{Fld@export@pdf}{3}%
% \end{macrocode}
%
% \subsubsection{Set submit flags}
%
% \begin{macro}{\HyField@FlagsSubmit}
% \begin{macrocode}
\def\HyField@FlagsSubmit{%
\bitsetReset{HyField@Submit}%
\ifcase\@nameuse{Fld@export@\Fld@export} %
% FDF
\HyField@UseFlag{Submit}{IncludeNoValueFields}%
\HyField@UseFlag{Submit}{SubmitCoordinates}%
\HyField@UseFlag{Submit}{IncludeAppendSaves}%
\HyField@UseFlag{Submit}{IncludeAnnotations}%
\HyField@UseFlag{Submit}{CanonicalFormat}%
\HyField@UseFlag{Submit}{ExclNonUserAnnots}%
\HyField@UseFlag{Submit}{ExclFKey}%
\HyField@UseFlag{Submit}{EmbedForm}%
\or % HTML
\HyField@SetFlag{Submit}{ExportFormat}%
\HyField@UseFlag{Submit}{IncludeNoValueFields}%
\HyField@UseFlag{Submit}{GetMethod}%
\HyField@UseFlag{Submit}{SubmitCoordinates}%
\HyField@UseFlag{Submit}{CanonicalFormat}%
\or % XFDF
\HyField@SetFlag{Submit}{XFDF}%
\HyField@UseFlag{Submit}{IncludeNoValueFields}%
\HyField@UseFlag{Submit}{SubmitCoordinates}%
\HyField@UseFlag{Submit}{CanonicalFormat}%
\or % PDF
\HyField@SetFlag{Submit}{SubmitPDF}%
\HyField@UseFlag{Submit}{GetMethod}%
\fi
\HyField@PrintFlags{Submit}{submit button field}%
\bitsetIsEmpty{HyField@Submit}{%
\def\Fld@submitflags{}%
}{%
\edef\Fld@submitflags{/Flags \bitsetGetDec{HyField@Submit}}%
}%
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Set annot flags in fields}
%
% \begin{macro}{\HyField@FlagsAnnot}
% \begin{macrocode}
\def\HyField@FlagsAnnot#1{%
\bitsetReset{HyField@F}%
\HyField@UseFlag{F}{Invisible}%
\HyField@UseFlag{F}{Hidden}%
\HyField@UseFlag{F}{Print}%
\HyField@UseFlag{F}{NoZoom}%
\HyField@UseFlag{F}{NoRotate}%
\HyField@UseFlag{F}{NoView}%
\HyField@UseFlag{F}{Locked}%
\HyField@UseFlag{F}{ToggleNoView}%
\HyField@UseFlag{F}{LockedContents}%
\HyField@PrintFlags{F}{#1}%
\bitsetIsEmpty{HyField@F}{%
\def\Fld@annotflags{}%
}{%
\edef\Fld@annotflags{/F \bitsetGetDec{HyField@F}}%
}%
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Pushbutton field}
%
% \begin{macro}{\HyField@FlagsPushButton}
% \begin{macrocode}
\def\HyField@FlagsPushButton{%
\HyField@FlagsAnnot{push button field}%
\bitsetReset{HyField@Ff}%
\HyField@UseFlag{Ff}{ReadOnly}%
\HyField@UseFlag{Ff}{Required}%
\HyField@UseFlag{Ff}{NoExport}%
\HyField@SetFlag{Ff}{Pushbutton}%
\HyField@PrintFlags{Ff}{push button field}%
\bitsetIsEmpty{HyField@Ff}{%
\def\Fld@flags{}%
}{%
\edef\Fld@flags{/Ff \bitsetGetDec{HyField@Ff}}%
}%
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Check box field}
%
% \begin{macro}{\HyField@FlagsCheckBox}
% \begin{macrocode}
\def\HyField@FlagsCheckBox{%
\HyField@FlagsAnnot{check box field}%
\bitsetReset{HyField@Ff}%
\HyField@UseFlag{Ff}{ReadOnly}%
\HyField@UseFlag{Ff}{Required}%
\HyField@UseFlag{Ff}{NoExport}%
\HyField@PrintFlags{Ff}{check box field}%
\bitsetIsEmpty{HyField@Ff}{%
\def\Fld@flags{}%
}{%
\edef\Fld@flags{/Ff \bitsetGetDec{HyField@Ff}}%
}%
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Radio button field}
%
% \begin{macro}{\HyField@FlagsRadioButton}
% \begin{macrocode}
\def\HyField@FlagsRadioButton{%
\HyField@FlagsAnnot{radio button field}%
\bitsetReset{HyField@Ff}%
\HyField@UseFlag{Ff}{ReadOnly}%
\HyField@UseFlag{Ff}{Required}%
\HyField@UseFlag{Ff}{NoExport}%
\HyField@UseFlag{Ff}{NoToggleToOff}%
\HyField@SetFlag{Ff}{Radio}%
\HyField@UseFlag{Ff}{RadiosInUnison}%
\HyField@PrintFlags{Ff}{radio button field}%
\bitsetIsEmpty{HyField@Ff}{%
\def\Fld@flags{}%
}{%
\edef\Fld@flags{/Ff \bitsetGetDec{HyField@Ff}}%
}%
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Text fields}
%
% \begin{macro}{\HyField@FlagsText}
% \begin{macrocode}
\def\HyField@FlagsText{%
\HyField@FlagsAnnot{text field}%
\bitsetReset{HyField@Ff}%
\HyField@UseFlag{Ff}{ReadOnly}%
\HyField@UseFlag{Ff}{Required}%
\HyField@UseFlag{Ff}{NoExport}%
\HyField@UseFlag{Ff}{Multiline}%
\HyField@UseFlag{Ff}{Password}%
\HyField@UseFlag{Ff}{FileSelect}%
\HyField@UseFlag{Ff}{DoNotSpellCheck}%
\HyField@UseFlag{Ff}{DoNotScroll}%
\ifFld@comb
\ifcase0\ifFld@multiline
\else\ifFld@password
\else\ifFld@fileselect
\else 1\fi\fi\fi\relax
\PackageError{hyperref}{%
Field option `comb' cannot used together with\MessageBreak
`multiline', `password', or `fileselect'%
}\@ehc
\else
\HyField@UseFlag{Ff}{Comb}%
\fi
\fi
\HyField@UseFlag{Ff}{RichText}%
\HyField@PrintFlags{Ff}{text field}%
\bitsetIsEmpty{HyField@Ff}{%
\def\Fld@flags{}%
}{%
\edef\Fld@flags{/Ff \bitsetGetDec{HyField@Ff}}%
}%
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Choice fields}
%
% \begin{macro}{\HyField@FlagsChoice}
% \begin{macrocode}
\def\HyField@FlagsChoice{%
\HyField@FlagsAnnot{choice field}%
\bitsetReset{HyField@Ff}%
\HyField@UseFlag{Ff}{ReadOnly}%
\HyField@UseFlag{Ff}{Required}%
\HyField@UseFlag{Ff}{NoExport}%
\HyField@UseFlag{Ff}{Combo}%
\ifFld@combo
\HyField@UseFlag{Ff}{Edit}%
\fi
\HyField@UseFlag{Ff}{Sort}%
\HyField@UseFlag{Ff}{MultiSelect}%
\ifFld@combo
\ifFld@edit
\HyField@UseFlag{Ff}{DoNotSpellCheck}%
\fi
\fi
\HyField@UseFlag{Ff}{CommitOnSelChange}%
\HyField@PrintFlags{Ff}{choice field}%
\bitsetIsEmpty{HyField@Ff}{%
\def\Fld@flags{}%
}{%
\edef\Fld@flags{/Ff \bitsetGetDec{HyField@Ff}}%
}%
}
% \end{macrocode}
% \end{macro}
%
% \subsection{Choice field}
%
% \begin{macrocode}
\RequirePackage{kvsetkeys}[2007/09/29]
% \end{macrocode}
% \begin{macro}{\HyField@PDFChoices}
% |#1|: list of choices in key value syntax, key = exported name,
% value = displayed text.\\
% Input: \cs{Fld@default}, \cs{Fld@value}, \cs{ifFld@multiselect}\\
% Result: \cs{Fld@choices} with entries: |/Opt|, |/DV|, |/V|, |/I|.
% \begin{macrocode}
\def\HyField@PDFChoices#1{%
\begingroup
\gdef\Fld@choices{}%
\def\HyTmp@optlist{}%
\let\HyTmp@optitem\relax
\count@=0 %
\kv@parse{#1}{%
\Hy@pdfstringdef\kv@key\kv@key
\ifx\kv@value\relax
\ifnum\Hy@pdfversion<3 % implementation note 122, PDF spec 1.7
\xdef\Fld@choices{\Fld@choices[(\kv@key)(\kv@key)]}%
\else
\xdef\Fld@choices{\Fld@choices(\kv@key)}%
\fi
\else
\Hy@pdfstringdef\kv@value\kv@value
\xdef\Fld@choices{\Fld@choices[(\kv@value)(\kv@key)]}%
\fi
\edef\HyTmp@optlist{%
\HyTmp@optlist
\HyTmp@optitem{\the\count@}{\kv@key}0%
}%
\advance\count@ by 1 %
\@gobbletwo
}%
\xdef\Fld@choices{/Opt[\Fld@choices]}%
\ifFld@multiselect
\HyField@@PDFChoices{DV}\Fld@default
\HyField@@PDFChoices{V}\Fld@value
\else
\ifx\Fld@default\relax
\else
\pdfstringdef\Hy@gtemp\Fld@default
\xdef\Fld@choices{\Fld@choices/DV(\Hy@gtemp)}%
\fi
\ifx\Fld@value\relax
\else
\pdfstringdef\Hy@gtemp\Fld@value
\xdef\Fld@choices{\Fld@choices/V(\Hy@gtemp)}%
\fi
\fi
\endgroup
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyField@@PDFChoices}
% \begin{macrocode}
\def\HyField@@PDFChoices#1#2{%
\ifx#2\relax
\else
\count@=0 %
\def\HyTmp@optitem##1##2##3{%
\def\HyTmp@key{##2}%
\ifx\HyTmp@key\Hy@gtemp
\expandafter\def\expandafter\HyTmp@optlist\expandafter{%
\HyTmp@optlist
\HyTmp@optitem{##1}{##2}1%
}%
\let\HyTmp@found=Y%
\else
\expandafter\def\expandafter\HyTmp@optlist\expandafter{%
\HyTmp@optlist
\HyTmp@optitem{##1}{##2}##3%
}%
\fi
}%
\expandafter\comma@parse\expandafter{#2}{%
\pdfstringdef\Hy@gtemp\comma@entry
\let\HyTmp@found=N %
\expandafter\let\expandafter\HyTmp@optlist\expandafter\@empty
\HyTmp@optlist
\ifx\HyTmp@found Y%
\advance\count@ by 1 %
\else
\@onelevel@sanitize\comma@entry
\PackageWarning{hyperref}{%
\string\ChoiceBox: Ignoring value `\comma@entry',%
\MessageBreak
it cannot be found in the choices%
}%
\fi
\@gobble
}%
\def\HyTmp@optitem##1##2##3{%
\ifnum##3=1 %
(##2)%
\fi
}%
\ifcase\count@
\or
\xdef\Fld@choices{\Fld@choices/#1\HyTmp@optlist}%
\else
\xdef\Fld@choices{\Fld@choices/#1[\HyTmp@optlist]}%
\ifx#1V%
\def\HyTmp@optitem##1##2##3{%
\ifnum##3=1 %
\@firstofone{ ##1}%
\fi
}%
\edef\HyTmp@optlist{\HyTmp@optlist}%
\xdef\Fld@choices{%
\Fld@choices
/I[\expandafter\@firstofone\HyTmp@optlist]%
}%
\fi
\fi
\fi
}
% \end{macrocode}
% \end{macro}
%
% \subsection{Forms}
%
% \begin{macro}{\HyField@SetKeys}
% \begin{macrocode}
\def\HyField@SetKeys{%
\setkeys{Field}%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
\newif\ifFld@checked
\newif\ifFld@disabled
\Fld@checkedfalse
\Fld@disabledfalse
\newcount\Fld@menulength
\newdimen\Field@Width
\newdimen\Fld@charsize
\Fld@charsize=10\p@
\def\Fld@maxlen{0}
\def\Fld@align{0}
\def\Fld@color{0 0 0 rg}
\def\Fld@bcolor{1 1 1}
\def\Fld@bordercolor{1 0 0}
\def\Fld@bordersep{1\p@}
\def\Fld@borderwidth{1}
\def\Fld@borderstyle{S}
\def\Fld@cbsymbol{4}
\def\Fld@radiosymbol{H}
\def\Fld@rotation{0}
\def\Form{\@ifnextchar[{\@Form}{\@Form[]}}
\def\endForm{\@endForm}
\newif\ifForm@html
\Form@htmlfalse
\def\Form@boolkey#1#2{%
\csname Form@#2\ifx\relax#1\relax true\else#1\fi\endcsname
}
\define@key{Form}{action}{%
\hyper@normalise\Hy@DefFormAction{#1}%
}
\def\Hy@DefFormAction{\def\Form@action}
\def\enc@@html{html}
\define@key{Form}{encoding}{%
\def\Hy@tempa{#1}%
\ifx\Hy@tempa\enc@@html
\Form@htmltrue
\def\Fld@export{html}%
\else
\typeout{hyperref: form `encoding' key set to #1 %
-- unknown type%
}%
\Form@htmlfalse
\fi
}
\define@key{Form}{method}{%
\lowercase{\def\Hy@temp{#1}}%
\@ifundefined{Form@method@\Hy@temp}{%
\@onelevel@sanitize\Hy@temp
\PackageError{hyperref}{%
Unknown method `\Hy@temp'.\MessageBreak
Known values are `post' and `get'%
}\@ehc
}{%
\let\Form@method\Hy@temp
\ifcase\@nameuse{Form@method@\Hy@temp} %
\Fld@getmethodfalse
\else
\Fld@getmethodtrue
\fi
}%
}
\def\Form@method{}
\@namedef{Form@method@post}{0}
\@namedef{Form@method@get}{1}
\def\Field@boolkey#1#2{%
\csname Fld@#2\ifx\relax#1\relax true\else#1\fi\endcsname
}
\newtoks\Field@toks
\Field@toks={ }%
\def\Field@addtoks#1#2{%
\edef\@processme{\Field@toks{\the\Field@toks\space #1="#2"}}%
\@processme
}
\def\Fld@checkequals#1=#2=#3\\{%
\def\@currDisplay{#1}%
\ifx\\#2\\%
\def\@currValue{#1}%
\else
\def\@currValue{#2}%
\fi
}
\define@key{Field}{loc}{%
\def\Fld@loc{#1}%
}
\define@key{Field}{checked}[true]{%
\lowercase{\Field@boolkey{#1}}{checked}%
}
\define@key{Field}{disabled}[true]{%
\lowercase{\Field@boolkey{#1}}{disabled}%
}
\define@key{Field}{accesskey}{%
\Field@addtoks{accesskey}{#1}%
}
\define@key{Field}{tabkey}{%
\Field@addtoks{tabkey}{#1}%
}
\define@key{Field}{name}{%
\def\Fld@name{#1}%
}
\define@key{Field}{width}{%
\def\Fld@width{#1}%
\Field@Width#1\setbox0=\hbox{m}%
}
\define@key{Field}{maxlen}{%
\def\Fld@maxlen{#1}%
}
\define@key{Field}{menulength}{%
\Fld@menulength=#1\relax
}
\define@key{Field}{height}{%
\def\Fld@height{#1}%
}
\define@key{Field}{charsize}{%
\Fld@charsize#1%
}
\define@key{Field}{borderwidth}{%
\def\Fld@borderwidth{#1}%
}
\define@key{Field}{borderstyle}{%
\def\Fld@borderstyle{#1}%
}
\define@key{Field}{bordersep}{%
\def\Fld@bordersep{#1}%
}
\define@key{Field}{default}{%
\def\Fld@default{#1}%
}
\define@key{Field}{align}{%
\def\Fld@align{#1}%
}
\define@key{Field}{value}{%
\def\Fld@value{#1}%
}
\define@key{Field}{checkboxsymbol}{%
\Fld@DingDef\Fld@cbsymbol{#1}%
}
\define@key{Field}{radiosymbol}{%
\Fld@DingDef\Fld@radiosymbol{#1}%
}
\def\Fld@DingDef#1#2{%
\def\Fld@temp{}%
\Fld@@DingDef#2\ding{}\@nil
\let#1\Fld@temp
}
\def\Fld@@DingDef#1\ding#2#3\@nil{%
\expandafter\def\expandafter\Fld@temp\expandafter{%
\Fld@temp
#1%
}%
\ifx\\#3\\%
\expandafter\@gobble
\else
\begingroup
\lccode`0=#2\relax
\lowercase{\endgroup
\expandafter\def\expandafter\Fld@temp\expandafter{%
\Fld@temp
0%
}%
}%
\expandafter\@firstofone
\fi
{%
\Fld@@DingDef#3\@nil
}%
}
% \end{macrocode}
% \begin{macrocode}
\define@key{Field}{rotation}{%
\def\Fld@rotation{#1}%
}
% \end{macrocode}
% \begin{macrocode}
\define@key{Field}{backgroundcolor}{%
\HyColor@FieldBColor{#1}\Fld@bcolor{hyperref}{backgroundcolor}%
}
\define@key{Field}{bordercolor}{%
\HyColor@FieldBColor{#1}\Fld@bordercolor{hyperref}{bordercolor}%
}
\define@key{Field}{color}{%
\HyColor@FieldColor{#1}\Fld@color{hyperref}{color}%
}
% \end{macrocode}
% \begin{macrocode}
\def\Fld@onclick@code{}
\def\Fld@format@code{}
\def\Fld@validate@code{}
\def\Fld@calculate@code{}
\def\Fld@keystroke@code{}
\def\Fld@onfocus@code{}
\def\Fld@onblur@code{}
\def\Fld@onmousedown@code{}
\def\Fld@onmouseup@code{}
\def\Fld@onenter@code{}
\def\Fld@onexit@code{}
\def\Hy@temp#1{%
\expandafter\Hy@@temp\csname Fld@#1@code\endcsname{#1}%
}
\def\Hy@@temp#1#2{%
\ifHy@pdfa
\define@key{Field}{#2}{%
\PackageError{hyperref}{%
PDF/A: Additional action `#2' is prohibited%
}\@ehc
}%
\else
\define@key{Field}{#2}{%
\def#1{##1}%
}%
\fi
}
\Hy@temp{keystroke}
\Hy@temp{format}
\Hy@temp{validate}
\Hy@temp{calculate}
\Hy@temp{onfocus}
\Hy@temp{onblur}
\Hy@temp{onenter}
\Hy@temp{onexit}
\def\Hy@temp#1{%
\define@key{Field}{#1}{%
\Field@addtoks{#1}{##1}%
}%
}
\Hy@temp{onselect}
\Hy@temp{onchange}
\Hy@temp{ondblclick}
\Hy@temp{onmousedown}
\Hy@temp{onmouseup}
\Hy@temp{onmouseover}
\Hy@temp{onmousemove}
\Hy@temp{onmouseout}
\Hy@temp{onkeypress}
\Hy@temp{onkeydown}
\Hy@temp{onkeyup}
\ifHy@pdfa
\define@key{Field}{onclick}{%
\PackageError{hyperref}{%
PDF/A: Action `onclick' is prohibited%
}\@ehc
}%
\else
\define@key{Field}{onclick}{%
\def\Fld@onclick@code{#1}%
\Field@addtoks{onclick}{#1}%
}%
\fi
% \end{macrocode}
% \begin{macrocode}
\DeclareRobustCommand\TextField{%
\@ifnextchar[{\@TextField}{\@TextField[]}%
}
\DeclareRobustCommand\ChoiceMenu{%
\@ifnextchar[{\@ChoiceMenu}{\@ChoiceMenu[]}%
}
\DeclareRobustCommand\CheckBox{%
\@ifnextchar[{\@CheckBox}{\@CheckBox[]}%
}
\DeclareRobustCommand\PushButton{%
\@ifnextchar[{\@PushButton}{\@PushButton[]}%
}
\DeclareRobustCommand\Gauge{%
\@ifnextchar[{\@Gauge}{\@Gauge[]}%
}
\DeclareRobustCommand\Submit{%
\@ifnextchar[{\@Submit}{\@Submit[]}%
}
\DeclareRobustCommand\Reset{%
\@ifnextchar[{\@Reset}{\@Reset[]}%
}
\def\LayoutTextField#1#2{% label, field
#1 #2%
}
\def\LayoutChoiceField#1#2{% label, field
#1 #2%
}
\def\LayoutCheckField#1#2{% label, field
#1 #2%
}
\def\LayoutPushButtonField#1{% button
#1%
}
\def\MakeRadioField#1#2{\vbox to #2{\hbox to #1{\hfill}\vfill}}
\def\MakeCheckField#1#2{\vbox to #2{\hbox to #1{\hfill}\vfill}}
\def\MakeTextField#1#2{\vbox to #2{\hbox to #1{\hfill}\vfill}}
\def\MakeChoiceField#1#2{\vbox to #2{\hbox to #1{\hfill}\vfill}}
\def\MakeButtonField#1{%
\sbox0{%
\hskip\Fld@borderwidth bp#1\hskip\Fld@borderwidth bp%
}%
\@tempdima\ht0 %
\advance\@tempdima by \Fld@borderwidth bp %
\advance\@tempdima by \Fld@borderwidth bp %
\ht0\@tempdima
\@tempdima\dp0 %
\advance\@tempdima by \Fld@borderwidth bp %
\advance\@tempdima by \Fld@borderwidth bp %
\dp0\@tempdima
\box0\relax
}
\def\DefaultHeightofSubmit{14pt}
\def\DefaultWidthofSubmit{2cm}
\def\DefaultHeightofReset{14pt}
\def\DefaultWidthofReset{2cm}
\def\DefaultHeightofCheckBox{\baselineskip}
\def\DefaultWidthofCheckBox{\baselineskip}
\def\DefaultHeightofChoiceMenu{\baselineskip}
\def\DefaultWidthofChoiceMenu{\baselineskip}
\def\DefaultHeightofText{\baselineskip}
\def\DefaultHeightofTextMultiline{4\baselineskip}
\def\DefaultWidthofText{3cm}
\def\DefaultOptionsofSubmit{print,name=Submit,noexport}
\def\DefaultOptionsofReset{print,name=Reset,noexport}
\def\DefaultOptionsofPushButton{print}
\def\DefaultOptionsofCheckBox{print}
\def\DefaultOptionsofText{print}
% \end{macrocode}
% Default options for the types of \cs{ChoiceMenu}.
% \begin{macrocode}
\def\DefaultOptionsofListBox{print}
\def\DefaultOptionsofComboBox{print,edit,sort}
\def\DefaultOptionsofPopdownBox{print}
\def\DefaultOptionsofRadio{print,notoggletooff}
% \end{macrocode}
%
% \section{Setup}
% \begin{macrocode}
\ifHy@figures
\Hy@Info{Hyper figures ON}%
\else
\Hy@Info{Hyper figures OFF}%
\fi
\ifHy@nesting
\Hy@Info{Link nesting ON}%
\else
\Hy@Info{Link nesting OFF}%
\fi
\ifHy@hyperindex
\Hy@Info{Hyper index ON}%
\else
\Hy@Info{Hyper index OFF}%
\fi
\ifHy@backref
\Hy@Info{backreferencing ON}%
\else
\Hy@Info{backreferencing OFF}%
\fi
\ifHy@colorlinks
\Hy@Info{Link coloring ON}%
\else
\Hy@Info{Link coloring OFF}%
\fi
\ifHy@ocgcolorlinks
\Hy@Info{Link coloring with OCG ON}%
\else
\Hy@Info{Link coloring with OCG OFF}%
\fi
\ifHy@pdfa
\Hy@Info{PDF/A mode ON}%
\else
\Hy@Info{PDF/A mode OFF}%
\fi
% \end{macrocode}
% \section{Low-level utility macros}
% We need unrestricted access to the |#|, |~| and |"| characters, so make
% them nice macros.
% \begin{macrocode}
\edef\hyper@hash{\string#}
\edef\hyper@tilde{\string~}
\edef\hyper@quote{\string"}
\let\@currentHref\@empty
\let\Hy@footnote@currentHref\@empty
% \end{macrocode}
% We give the start of document a special label; this is used
% in backreferencing-by-section, to allow for cites before
% any sectioning commands. Set up PDF info.
% \begin{macrocode}
\AfterBeginDocument{%
\Hy@pdfstringtrue
\PDF@SetupDoc
\let\PDF@SetupDoc\@empty
\Hy@DisableOption{pdfpagescrop}%
\Hy@DisableOption{pdfpagemode}%
\Hy@DisableOption{pdfnonfullscreenpagemode}%
\Hy@DisableOption{pdfdirection}%
\Hy@DisableOption{pdfviewarea}%
\Hy@DisableOption{pdfviewclip}%
\Hy@DisableOption{pdfprintarea}%
\Hy@DisableOption{pdfprintclip}%
\Hy@DisableOption{pdfprintscaling}%
\Hy@DisableOption{pdfduplex}%
\Hy@DisableOption{pdfpicktraybypdfsize}%
\Hy@DisableOption{pdfprintpagerange}%
\Hy@DisableOption{pdfnumcopies}%
\Hy@DisableOption{pdfstartview}%
\Hy@DisableOption{pdfstartpage}%
\Hy@DisableOption{pdftoolbar}%
\Hy@DisableOption{pdfmenubar}%
\Hy@DisableOption{pdfwindowui}%
\Hy@DisableOption{pdffitwindow}%
\Hy@DisableOption{pdfcenterwindow}%
\Hy@DisableOption{pdfdisplaydoctitle}%
\Hy@DisableOption{pdfpagelayout}%
\Hy@DisableOption{pdflang}%
\Hy@DisableOption{baseurl}%
\ifHy@texht\else\hyper@anchorstart{Doc-Start}\hyper@anchorend\fi
\Hy@pdfstringfalse
}
% \end{macrocode}
%
% \section{Localized nullifying of package}
% Sometimes we just don't want the wretched package interfering
% with us. Define an environment we can put in manually, or include
% in a style file, which stops the hypertext functions doing anything.
% This is used, for instance, in the Elsevier classes, to stop
% |hyperref| playing havoc in the front matter.
% \begin{macrocode}
\def\NoHyper{%
\def\hyper@link@[##1]##2##3##4{##4}%
\def\hyper@@anchor##1{}%
\global\let\hyper@livelink\hyper@link
\gdef\hyper@link##1##2##3{##3}%
\def\hyper@anchorstart##1{}%
\let\hyper@anchorend\@empty
\def\hyper@linkstart##1##2{}%
\let\hyper@linkend\@empty
\def\hyper@linkurl##1##2{##1}%
\def\hyper@linkfile##1##2##3{##1}%
\def\hyper@link@[##1]##2##3{}%
\let\Hy@backout\@gobble
}
\def\stop@hyper{%
\def\hyper@link@[##1]##2##3##4{##4}%
\let\Hy@backout\@gobble
\def\hyper@@anchor##1{}%
\def\hyper@link##1##2##3{##3}%
\def\hyper@anchorstart##1{}%
\let\hyper@anchorend\@empty
\def\hyper@linkstart##1##2{}%
\let\hyper@linkend\@empty
\def\hyper@linkurl##1##2{##1}%
\def\hyper@linkfile##1##2##3{##1}%
\def\hyper@link@[##1]##2##3{}%
}
\def\endNoHyper{%
\global\let\hyper@link\hyper@livelink
}
%</package>
% \end{macrocode}
%
% \section{Package nohyperref}
%
% This package is introduced by Sebastian Rahtz.
%
% Package nohyperref is a dummy package that defines
% some low level and some top-level commands.
% It is done for jadetex, which calls hyperref
% low-level commands, but it would also be useful with people using
% normal hyperref, who really do not want the package loaded at all.
%
% Some low-level commands:
% \begin{macrocode}
%<*nohyperref>
\let\hyper@@anchor\@gobble
\def\hyper@link#1#2#3{#3}%
\let\hyper@anchorstart\@gobble
\let\hyper@anchorend\@empty
\let\hyper@linkstart\@gobbletwo
\let\hyper@linkend\@empty
\def\hyper@linkurl#1#2{#1}%
\def\hyper@linkfile#1#2#3{#1}%
\def\hyper@link@[#1]#2#3{}%
\let\PDF@SetupDoc\@empty
\let\PDF@FinishDoc\@empty
\def\nohyperpage#1{#1}
% \end{macrocode}
% Some top-level commands:
% \begin{macrocode}
\def\Acrobatmenu#1#2{\leavevmode#2}
\let\pdfstringdefDisableCommands\@gobbletwo
\let\texorpdfstring\@firstoftwo
\let\pdfbookmark\@undefined
\newcommand\pdfbookmark[3][]{}
\let\phantomsection\@empty
\let\hypersetup\@gobble
\let\hyperbaseurl\@gobble
\let\href\@gobble
\let\hyperdef\@gobbletwo
\let\hyperlink\@gobble
\let\hypertarget\@gobble
\def\hyperref{%
\@ifnextchar[\@gobbleopt{\expandafter\@gobbletwo\@gobble}%
}
\long\def\@gobbleopt[#1]{}
\let\hyperpage\@empty
% \end{macrocode}
% Ignore star from referencing macros:
% \begin{macrocode}
\let\NoHy@OrgRef\ref
\def\ref{%
\@ifstar\NoHy@OrgRef\NoHy@OrgRef
}
\let\NoHy@OrgPageRef\pageref
\def\pageref{%
\@ifstar\NoHy@OrgPageRef\NoHy@OrgPageRef
}
%</nohyperref>
% \end{macrocode}
%
% \section{The Mangling Of Aux and Toc Files}
% Some extra tests so that the hyperref package may be removed or added
% to a document without having to remove .aux and .toc files
% (this section is by David Carlisle)
% All the code is delayed to |\begin{document}|
% \begin{macrocode}
%<*package>
\AfterBeginDocument{%
% \end{macrocode}
% First the code to deal with removing the hyperref package from
% a document.
%
% Write some stuff into the aux file so if the next run is done
% without hyperref, then |\contentsline| and |\newlabel| are defined
% to cope with the extra arguments.
% \begin{macrocode}
\if@filesw
\ifHy@typexml
\immediate\closeout\@mainaux
\immediate\openout\@mainaux\jobname.aux\relax
\immediate\write\@auxout{<relaxxml>\relax}%
\fi
\immediate\write\@auxout{%
% \end{macrocode}
%
% \begin{macrocode}
\string\ifx\string\hyper@anchor\string\@undefined^^J%
% \end{macrocode}
%
% \begin{macrocode}
\global\let\string\oldcontentsline\string\contentsline^^J%
\gdef\string\contentsline%
\string#1\string#2\string#3\string#4{%
\string\oldcontentsline%
{\string#1}{\string#2}{\string#3}}^^J%
\global\let\string\oldnewlabel\string\newlabel^^J%
\gdef\string\newlabel\string#1\string#2{%
\string\newlabelxx{\string#1}\string#2}^^J%
\gdef\string\newlabelxx%
\string#1\string#2\string#3\string#4\string#5\string#6{%
\string\oldnewlabel{\string#1}{{\string#2}{\string#3}}}^^J%
% \end{macrocode}
%
% But the new aux file will be read again at the end, with the normal
% definitions expected, so better put things back as they were.
% \begin{macrocode}
\string\AtEndDocument{%
\let\string\contentsline\string\oldcontentsline^^J%
\let\string\newlabel\string\oldnewlabel}^^J%
% \end{macrocode}
%
% If the document is being run with hyperref put this definition
% into the aux file, so we can spot it on the next run.
% \begin{macrocode}
\string\else^^J%
\global\let\string\hyper@last\relax^^J%
\string\fi^^J%
}%
\fi
% \end{macrocode}
%
% Now the code to deal with adding the hyperref package to a document
% with aux and toc written the standard way.
%
% If hyperref was used last time, do nothing. If it was not used,
% or an old version of hyperref was used, don't use that TOC at all
% but generate a warning. Not ideal, but better than failing
% with pre-5.0 hyperref TOCs.
% \begin{macrocode}
\ifx\hyper@last\@undefined
\def\@starttoc#1{%
\begingroup
\makeatletter
\IfFileExists{\jobname.#1}{%
\Hy@WarningNoLine{%
old #1 file detected, not used; run LaTeX again%
}%
}{}%
\if@filesw
\expandafter\newwrite\csname tf@#1\endcsname
\immediate\openout\csname tf@#1\endcsname \jobname.#1\relax
\fi
\@nobreakfalse
\endgroup
}%
\def\newlabel#1#2{\@newl@bel r{#1}{#2{}{}{}{}}}%
\fi
}
% \end{macrocode}
%
% \section{Title strings}
%
% If options |pdftitle| and |pdfauthor| are not used,
% these informations for the pdf information dictionary
% can be extracted by the \title and \author.
% \begin{macrocode}
\ifHy@usetitle
\let\HyOrg@title\title
\let\HyOrg@author\author
\def\title{\@ifnextchar[{\Hy@scanopttitle}{\Hy@scantitle}}%
\def\Hy@scanopttitle[#1]{%
\gdef\Hy@title{#1}%
\HyOrg@title[{#1}]%
}%
\def\Hy@scantitle#1{%
\gdef\Hy@title{#1}%
\HyOrg@title{#1}%
}%
\def\author{\@ifnextchar[{\Hy@scanoptauthor}{\Hy@scanauthor}}%
\def\Hy@scanoptauthor[#1]{%
\gdef\Hy@author{#1}%
\HyOrg@author[{#1}]%
}%
\def\Hy@scanauthor#1{%
\gdef\Hy@author{#1}%
\HyOrg@author{#1}%
}%
% \end{macrocode}
%
% The case, that \title, or \author are given before
% hyperref is loaded, is much more complicate, because
% LaTeX initializes the macros \@title and \@author with
% LaTeX error and warning messages.
% \begin{macrocode}
\begingroup
\def\process@me#1\@nil#2{%
\expandafter\let\expandafter\x\csname @#2\endcsname
\edef\y{\expandafter\strip@prefix\meaning\x}%
\def\c##1#1##2\@nil{%
\ifx\\##1\\%
\else
\expandafter\gdef\csname Hy@#2\expandafter\endcsname
\expandafter{\x}%
\fi
}%
\expandafter\c\y\relax#1\@nil
}%
\expandafter\process@me\string\@latex@\@nil{title}%
\expandafter\process@me\string\@latex@\@nil{author}%
\endgroup
\fi
\Hy@DisableOption{pdfusetitle}
% \end{macrocode}
%
% Macro |\Hy@UseMaketitleInfos| is used in the driver files,
% before the information entries are used.
%
% The newline macro |\newline| or |\\| is much more
% complicate. In the title a good replacement can be
% a space, but can be already a space after |\\| in
% the title string. So this space is removed by
% scanning for the next non-empty argument.
%
% In the macro |\author| the newline can perhaps
% separate the different authors, so the newline
% expands here to a comma with space.
%
% The possible arguments such as space or the optional
% argument after the newline macros are not detected.
%
% \begin{macrocode}
\def\Hy@UseMaketitleString#1{%
\@ifundefined{Hy@#1}{}{%
\begingroup
\let\Hy@saved@hook\pdfstringdefPreHook
\pdfstringdefDisableCommands{%
\expandafter\let\expandafter\\\csname Hy@newline@#1\endcsname
\let\newline\\%
}%
\expandafter\ifx\csname @pdf#1\endcsname\@empty
\expandafter\pdfstringdef\csname @pdf#1\endcsname{%
\csname Hy@#1\endcsname\@empty
}%
\fi
\global\let\pdfstringdefPreHook\Hy@saved@hook
\endgroup
}%
}
\def\Hy@newline@title#1{ #1}
\def\Hy@newline@author#1{, #1}
\def\Hy@UseMaketitleInfos{%
\Hy@UseMaketitleString{title}%
\Hy@UseMaketitleString{author}%
}
% \end{macrocode}
%
% \section{Page numbers}
% This stuff is done by Heiko Oberdiek.
%
% \section{Every page}
%
% \begin{macrocode}
\RequirePackage{atbegshi}[2007/09/09]
\def\Hy@EveryPageHook{}
\def\Hy@EveryPageBoxHook{}
\def\Hy@FirstPageHook{}
\AtBeginShipout{%
\Hy@EveryPageHook
\ifx\Hy@EveryPageBoxHook\@empty
\else
\setbox\AtBeginShipoutBox=\vbox{%
\offinterlineskip
\Hy@EveryPageBoxHook
\box\AtBeginShipoutBox
}%
\fi
}
\AtBeginShipoutFirst{%
\Hy@FirstPageHook
}
\g@addto@macro\Hy@FirstPageHook{%
\PDF@FinishDoc
\gdef\PDF@FinishDoc{}%
}
% \end{macrocode}
%
% \subsection{PDF /PageLabels}
% Internal macros of this module are marked with |\HyPL@|.
%
% \begin{macrocode}
\ifHy@pagelabels
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname thepage\endcsname\relax
\Hy@pagelabelsfalse
\Hy@WarningNoLine{%
Option `pdfpagelabels' is turned off\MessageBreak
because \string\thepage\space is undefined%
}%
\csname fi\endcsname
\csname iffalse\expandafter\endcsname
\fi
% \end{macrocode}
%
% \begin{macro}{\thispdfpagelabel}
% The command \cmd{\thispdfpagelabel} allows to label a special
% page without the redefinition of \cmd{\thepage} for the page.
% \begin{macrocode}
\def\thispdfpagelabel#1{%
\gdef\HyPL@thisLabel{#1}%
}%
\global\let\HyPL@thisLabel\relax
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HyPL@Labels}
% The page labels are collected in \cmd{\HyPL@Labels} and
% set at the end of the document.
% \begin{macrocode}
\def\HyPL@Labels{}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\Hy@abspage}
% We have to know the the absolute page number and introduce
% a new counter for that.
% \begin{macrocode}
\newcount\Hy@abspage
\Hy@abspage=0 %
% \end{macrocode}
% \end{macro}
% For comparisons with the values of the previous page, some
% variables are needed:
% \begin{macrocode}
\def\HyPL@LastType{init}%
\def\HyPL@LastNumber{0}%
\def\HyPL@LastPrefix{}%
% \end{macrocode}
% Definitions for the PDF names of the \LaTeX{} pendents.
% \begin{macrocode}
\def\HyPL@arabic{D}%
\def\HyPL@Roman{R}%
\def\HyPL@roman{r}%
\def\HyPL@Alph{A}%
\def\HyPL@alph{a}%
% \end{macrocode}
%
% \begin{macro}{\HyPL@EveryPage}
% If a page is shipout and the page number is known,
% \cmd{\HyPL@EveryPage} has to be called. It stores the
% current page label.
% \begin{macrocode}
\def\HyPL@EveryPage{%
\begingroup
\ifx\HyPL@thisLabel\relax
\let\HyPL@page\thepage
\else
\let\HyPL@page\HyPL@thisLabel
\global\let\HyPL@thisLabel\relax
\fi
\let\HyPL@Type\relax
\ifnum\the\c@page>0 %
\expandafter\HyPL@CheckThePage\HyPL@page\@nil
\fi
\let\Hy@temp Y%
\ifx\HyPL@Type\HyPL@LastType
\else
\let\Hy@temp N%
\fi
\ifx\HyPL@Type\relax
\pdfstringdef\HyPL@Prefix{\HyPL@page}%
\else
\pdfstringdef\HyPL@Prefix\HyPL@Prefix
\fi
\ifx\HyPL@Prefix\HyPL@LastPrefix
\else
\let\Hy@temp N%
\fi
\if Y\Hy@temp
\advance\c@page by -1 %
\ifnum\HyPL@LastNumber=\the\c@page\relax
\else
\let\Hy@temp N%
\fi
\Hy@StepCount\c@page
\fi
\if N\Hy@temp
\ifx\HyPL@Type\relax
\HyPL@StorePageLabel{/P(\HyPL@Prefix)}%
\else
\HyPL@StorePageLabel{%
\ifx\HyPL@Prefix\@empty
\else
/P(\HyPL@Prefix)%
\fi
/S/\csname HyPL\HyPL@Type\endcsname
\ifnum\the\c@page=1 %
\else
\space/St \the\c@page
\fi
}%
\fi
\fi
\xdef\HyPL@LastNumber{\the\c@page}%
\global\let\HyPL@LastType\HyPL@Type
\global\let\HyPL@LastPrefix\HyPL@Prefix
\endgroup
\Hy@GlobalStepCount\Hy@abspage
}%
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HyPL@CheckThePage}
% Macro \cmd{\HyPL@CheckThePage} calls \cmd{\HyPL@@CheckThePage}
% that does the job.
% \begin{macrocode}
\def\HyPL@CheckThePage#1\@nil{%
\HyPL@@CheckThePage{#1}#1\csname\endcsname\c@page\@nil
}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyPL@@CheckThePage}
% The first check is, is \cmd{\thepage} is defined
% such as in \LaTeX, e.\,g.: |\csname @arabic\endcsname\c@page|.
% In the current implemenation the check fails, if there is
% another \cmd{\csname} before.
%
% The second check tries to detect |\arabic{page}| at the
% end of the definition text of \cmd{\thepage}.
% \begin{macrocode}
\def\HyPL@@CheckThePage#1#2\csname#3\endcsname\c@page#4\@nil{%
\def\Hy@tempa{#4}%
\def\Hy@tempb{\csname\endcsname\c@page}%
\ifx\Hy@tempa\Hy@tempb
\expandafter\ifx\csname HyPL#3\endcsname\relax
\else
\def\HyPL@Type{#3}%
\def\HyPL@Prefix{#2}%
\fi
\else
\begingroup
\let\Hy@next\endgroup
\let\HyPL@found\@undefined
\def\arabic{\HyPL@Format{arabic}}%
\def\Roman{\HyPL@Format{Roman}}%
\def\roman{\HyPL@Format{roman}}%
\def\Alph{\HyPL@Format{Alph}}%
\def\alph{\HyPL@Format{alph}}%
\protected@edef\Hy@temp{#1}%
\ifx\HyPL@found\relax
\toks@\expandafter{\Hy@temp}%
\edef\Hy@next{\endgroup
\noexpand\HyPL@@@CheckThePage\the\toks@
\noexpand\HyPL@found\relax\noexpand\@nil
}%
\fi
\Hy@next
\fi
}%
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HyPL@Format}
% The help macro \cmd{\HyPL@Format} is executed while
% a \cmd{\protected@edef} in the second check
% method of \cmd{\HyPL@@CheckPage}.
% The first occurences of, for example, |\arabic{page}| is
% marked by \cmd{\HyPL@found} that is also defined by
% \cmd{\csname}.
% \begin{macrocode}
\def\HyPL@Format#1#2{%
\ifx\HyPL@found\@undefined
\expandafter\ifx\csname c@#2\endcsname\c@page
\expandafter\noexpand\csname HyPL@found\endcsname{#1}%
\else
\expandafter\noexpand\csname#1\endcsname{#2}%
\fi
\else
\expandafter\noexpand\csname#1\endcsname{#2}%
\fi
}%
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HyPL@@@CheckThePage}
% If the second check method is successful,
% \cmd{\HyPL@@@CheckThePage} scans the result of
% \cmd{\HyPL@Format} and stores the found values.
% \begin{macrocode}
\def\HyPL@@@CheckThePage#1\HyPL@found#2#3\@nil{%
\def\Hy@tempa{#3}%
\def\Hy@tempb{\HyPL@found\relax}%
\ifx\Hy@tempa\Hy@tempb
\def\HyPL@Type{@#2}%
\def\HyPL@Prefix{#1}%
\fi
}%
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HyPL@StorePageLabel}
% Dummy for drivers that does not support /PageLabel.
% \begin{macrocode}
\providecommand*{\HyPL@StorePageLabel}[1]{}%
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HyPL@Useless}
% The |/PageLabels| entry does not make sense,
% if the absolute page numbers and the page labels are the
% same. Then \cmd{\HyPL@Labels} has the meaning of \cmd{\HyPL@Useless}.
% \begin{macrocode}
\def\HyPL@Useless{0<</S/D>>}%
\@onelevel@sanitize\HyPL@Useless
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HyPL@SetPageLabels}
% The page labels are written to the PDF cataloge.
% The command \cmd{\Hy@PutCatalog} is defined in the
% driver files.
% \begin{macrocode}
\def\HyPL@SetPageLabels{%
\@onelevel@sanitize\HyPL@Labels
\ifx\HyPL@Labels\@empty
\else
\ifx\HyPL@Labels\HyPL@Useless
\else
\Hy@PutCatalog{/PageLabels<</Nums[\HyPL@Labels]>>}%
\fi
\fi
}%
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
\g@addto@macro\Hy@EveryPageHook{\HyPL@EveryPage}%
\fi
% \end{macrocode}
%
% Option `pdfpagelabels' has been used and is now disabled.
% \begin{macrocode}
\Hy@DisableOption{pdfpagelabels}
% \end{macrocode}
%
% \begin{macrocode}
%</package>
% \end{macrocode}
%
% \subsubsection{pdfTeX and VTeX}
%
% Because of pdfTeX's \cmd{\pdfcatalog} command
% the /PageLabels entry can set at end of document
% in the first run.
%
% \begin{macro}{\Hy@PutCatalog}
% \begin{macrocode}
%<pdftex>\let\Hy@PutCatalog\pdfcatalog
% \end{macrocode}
% The code for VTeX is more complicate, because it does
% not allow the direct access to the /Catalog object.
% The command scans its argument and looks
% for a /PageLabels entry.
%
% VTeX 6.59g is the first version, that
% implements \verb|\special{!pdfpagelabels...}|.
% For this version \cmd{\VTeXversion} reports 660.
% \begin{macrocode}
%<*vtex>
\providecommand*{\XR@ext}{pdf}
\edef\Hy@VTeXversion{%
\ifx\VTeXversion\@undefined
\z@
\else
\ifx\VTeXversion\relax
\z@
\else
\VTeXversion
\fi
\fi
}
\begingroup
\ifnum\Hy@VTeXversion<660 %
\gdef\Hy@PutCatalog#1{%
\Hy@WarningNoLine{%
VTeX 6.59g or above required for pdfpagelabels%
}%
}%
\else
\gdef\Hy@PutCatalog#1{%
\Hy@vt@PutCatalog#1/PageLabels<<>>\@nil
}%
\gdef\Hy@vt@PutCatalog#1/PageLabels<<#2>>#3\@nil{%
\ifx\\#2\\%
\else
\immediate\special{!pdfpagelabels #2}%
\fi
}%
\fi
\endgroup
%</vtex>
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
%<*pdftex|vtex>
% \end{macrocode}
%
% \begin{macro}{\HyPL@StorePageLabel}
% This macro adds the entry |#1| to \cmd{\HyPL@Labels}.
% \begin{macrocode}
\ifHy@pagelabels
\def\HyPL@StorePageLabel#1{%
\toks@\expandafter{\HyPL@Labels}%
\xdef\HyPL@Labels{%
\the\toks@
\the\Hy@abspage<<#1>>%
}%
}%
% \end{macrocode}
% \end{macro}
%
% At the end of the document, \cmd{\clearpage} tries
% to make sure, that no further pages will follow.
% Then the PDF catalog entry for |\PageLabels| is set.
% \begin{macrocode}
\@ifclassloaded{revtex4}{%
\g@addto@macro\clear@document{\HyPL@SetPageLabels}%
}{%
\AtEndDocument{\clearpage\HyPL@SetPageLabels}%
}%
% \end{macrocode}
%
% \begin{macrocode}
\fi
%</pdftex|vtex>
% \end{macrocode}
%
% \subsubsection{pdfmarkbase, dvipdfm}
%
% \begin{macrocode}
%<*pdfmarkbase>
\begingroup
\toks@\expandafter{\Hy@FirstPageHook}%
\xdef\Hy@FirstPageHook{%
\noexpand\headerps@out{%
systemdict /pdfmark known%
{%
userdict /?pdfmark systemdict /exec get put%
}{%
userdict /?pdfmark systemdict /pop get put %
userdict /pdfmark systemdict /cleartomark get put%
}%
ifelse%
}%
\the\toks@
}%
\endgroup
%</pdfmarkbase>
% \end{macrocode}
%
% \begin{macro}{\Hy@PutCatalog}
% \begin{macrocode}
%<dvipdfm>\def\Hy@PutCatalog#1{\@pdfm@mark{docview << #1 >>}}
%<*pdfmarkbase>
\def\Hy@PutCatalog#1{%
\pdfmark{pdfmark=/PUT,Raw={\string{Catalog\string} << #1 >>}}%
}
%</pdfmarkbase>
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
%<*pdfmarkbase|dvipdfm>
\ifHy@pagelabels
% \end{macrocode}
%
% \begin{macro}{\HyPL@StorePageLabel}
% This macro writes a string to the .aux file.
% \begin{macrocode}
\def\HyPL@StorePageLabel#1{%
\if@filesw
\begingroup
\edef\Hy@tempa{\the\Hy@abspage<<#1>>}%
\immediate\write\@mainaux{%
\string\HyPL@Entry{\Hy@tempa}%
}%
\endgroup
\fi
}%
% \end{macrocode}
% \end{macro}
%
% Write a dummy definition of \cmd{\HyPL@Entry} for the case,
% that the next run is done without hyperref.
% A marker for the rerun warning is set and the /PageLabels
% is written.
% \begin{macrocode}
\AfterBeginDocument{%
\if@filesw
\immediate\write\@mainaux{%
\string\providecommand\string*\string\HyPL@Entry[1]{}%
}%
\fi
\ifx\HyPL@Labels\@empty
\Hy@WarningNoLine{Rerun to get /PageLabels entry}%
\else
\HyPL@SetPageLabels
\fi
\let\HyPL@Entry\@gobble
}%
% \end{macrocode}
%
% \begin{macro}{\HyPL@Entry}
% \begin{macrocode}
\def\HyPL@Entry#1{%
\expandafter\gdef\expandafter\HyPL@Labels\expandafter{%
\HyPL@Labels
#1%
}%
}%
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
\fi
%</pdfmarkbase|dvipdfm>
% \end{macrocode}
%
% \begin{macrocode}
%<*package>
% \end{macrocode}
%
% \begin{macrocode}
\MaybeStopEarly
% \end{macrocode}
%
% \section{Automated \LaTeX\ hypertext cross-references}\label{latexxref}
% Anything which can be referenced advances some counter; we overload
% this to put in a hypertext starting point (with no visible anchor),
% and make a note of that for later use in |\label|.
% This will fail badly if |\theH<name>|
% does not expand to a sensible reference. This means that classes
% or package which introduce new elements need to define
% an equivalent |\theH<name>| for every |\the<name>|. We do make
% a trap to make |\theH<name>| be the same as |\arabic{<name>}|,
% if |\theH<name>| is not defined, but this is not necessarily a good idea.
% Alternatively, the `naturalnames' option uses whatever \LaTeX\
% provides, which may be useable. But then its up to you to make
% sure these are legal PDF and HTML names. The `hypertexnames=false' option
% just makes up arbitrary names.
%
% All the shenanigans is to make sure section numbers etc
% are always arabic, separated by dots. Who knows how people
% will set up |\@currentlabel|? If they put spaces in, or brackets
% (quite legal) then the hypertext processors will get upset.
%
% But this is flaky, and open to abuse. Styles like
% |subeqn| will mess it up, for starters. Appendices are an issue, too.
% We just hope to cover most situations. We can at least cope
% with the standard sectioning structure, allowing for |\part|
% and |\chapter|.
%
% Start with a fallback for equations
% \begin{macrocode}
\def\Hy@CounterExists#1{%
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname c@#1\endcsname\relax
\expandafter\@gobble
\else
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname the#1\endcsname\relax
\expandafter\expandafter\expandafter\@gobble
\else
\expandafter\expandafter\expandafter\@firstofone
\fi
\fi
}
\Hy@CounterExists{section}{%
\newcommand\theHequation{\theHsection.\arabic{equation}}%
}
\Hy@CounterExists{part}{%
\newcommand\theHpart{\arabic{part}}%
}
\@ifundefined{thechapter}{%
\newcommand\theHsection {\arabic{section}}%
\newcommand\theHfigure {\arabic{figure}}%
\newcommand\theHtable {\arabic{table}}%
}{%
\newcommand\theHchapter {\arabic{chapter}}%
\newcommand\theHfigure {\theHchapter.\arabic{figure}}%
\newcommand\theHtable {\theHchapter.\arabic{table}}%
\newcommand\theHsection {\theHchapter.\arabic{section}}%
}
\newcommand\theHsubsection {\theHsection.\arabic{subsection}}
\newcommand\theHsubsubsection{\theHsubsection.\arabic{subsubsection}}
\newcommand\theHparagraph {\theHsubsubsection.\arabic{paragraph}}
\newcommand\theHsubparagraph {\theHparagraph.\arabic{subparagraph}}
\newcommand\theHtheorem {\theHsection.\arabic{theorem}}
\newcommand\theHthm {\theHsection.\arabic{thm}}
% \end{macrocode}
% Thanks to Greta Meyer (gbd@pop.cwru.edu) for making me realize
% that enumeration starts at 0 for every list! But |\item|
% occurs inside |\trivlist|, so check if its a real |\item| before
% incrementing counters.
% \begin{macrocode}
\let\H@item\item
\newcounter{Item}
\def\theHItem{\arabic{Item}}
\def\item{%
\@hyper@itemfalse
\if@nmbrlist\@hyper@itemtrue\fi
\H@item
}
% \end{macrocode}
%
% \begin{macrocode}
\newcommand\theHenumi {\theHItem}
\newcommand\theHenumii {\theHItem}
\newcommand\theHenumiii {\theHItem}
\newcommand\theHenumiv {\theHItem}
\newcommand\theHHfootnote {\arabic{Hfootnote}}
\newcommand\theHmpfootnote{\arabic{mpfootnote}}
\let\theHHmpfootnote\theHHfootnote
% \end{macrocode}
% Tanmoy asked for this default handling of undefined |\theH<name>|
% situations. It really isn't clear what would be ideal, whether to
% turn off hyperizing of unknown elements, to pick up the textual
% definition of the counter, or to default it to something like
% |\arabic{name}|. We take the latter course, slightly worriedly.
% \begin{macrocode}
\let\H@refstepcounter\refstepcounter
\edef\name@of@eq{equation}%
\edef\name@of@slide{slide}%
% \end{macrocode}
% We do not want the handler for |\refstepcounter| to cut in
% during the processing of |\item| (we handle that separately),
% so we provide a bypass conditional.
% \begin{macrocode}
\newif\if@hyper@item
\newif\if@skiphyperref
\@hyper@itemfalse
\@skiphyperreffalse
\def\refstepcounter#1{%
\ifHy@pdfstring
\else
\H@refstepcounter{#1}%
\edef\This@name{#1}%
\ifx\This@name\name@of@slide
\else
\if@skiphyperref
\else
\if@hyper@item
\stepcounter{Item}%
\hyper@refstepcounter{Item}%
\@hyper@itemfalse
\else
\hyper@refstepcounter{#1}%
\fi
\fi
\fi
\fi
}
% \end{macrocode}
% AMS\LaTeX\ processes all equations twice; we want to make sure
% that the hyper stuff is not executed twice, so we use the AMS
% |\ifmeasuring@|, initialized if AMS math is not used.
% \begin{macrocode}
\@ifpackageloaded{amsmath}{}{\newif\ifmeasuring@\measuring@false}
% \end{macrocode}
%
% \begin{macro}{\hyper@refstepcounter}
% \begin{macrocode}
\def\hyper@refstepcounter#1{%
\edef\This@name{#1}%
\ifx\This@name\name@of@eq
\@ifundefined{theHequation}{%
\make@stripped@name{\theequation}%
\let\theHequation\newname
}{}%
\fi
\@ifundefined{theH#1}{%
\expandafter\def\csname theH#1\endcsname{\arabic{#1}}%
}{}%
\hyper@makecurrent{#1}%
\ifmeasuring@
\else
\Hy@raisedlink{%
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%
\fi
}
% \end{macrocode}
% \end{macro}
%
% After \cmd{\appendix} ``chapter'' (or ``section'' for classes
% without chapter) should be replaced
% by ``appendix'' to get \cmd{\autoref} work.
% Macro \cmd{\Hy@chapapp} contains the current valid
% name like \cmd{\@chapapp}, which cannot be used,
% because this string depends on the current language.
%
% The ``french'' package defines counter \cmd{\thechapter}
% by \cmd{\newcounter{chapter}}, if \cmd{\@ifundefined{chapter}}.
% \begin{macrocode}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname chapter\endcsname\relax
\def\Hy@chapterstring{section}%
\else
\def\Hy@chapterstring{chapter}%
\fi
\def\Hy@appendixstring{appendix}
\def\Hy@chapapp{\Hy@chapterstring}
\let\HyOrg@appendix\appendix
\def\appendix{%
\@ifundefined{chapter}%
{\gdef\theHsection{\Alph{section}}}%
{\gdef\theHchapter{\Alph{chapter}}}%
\xdef\Hy@chapapp{\Hy@appendixstring}%
\HyOrg@appendix
}
% \end{macrocode}
% \begin{macro}{\hyper@makecurrent}
% Because of Babel mucking around, nullify |\textlatin| when making names.
% And |\@number| because of babel's lrbabel.def.
% \begin{macrocode}
\def\hyper@makecurrent#1{%
\begingroup
\edef\Hy@param{#1}%
\ifx\Hy@param\Hy@chapterstring
\let\Hy@param\Hy@chapapp
\fi
\ifHy@hypertexnames
\let\@number\@firstofone
\@ifundefined{latin@Alph}{}{%
\ifx\@Alph\greek@Alph
\def\@Alph{Alph\@arabic}%
\fi
}%
\ifx\@Alph\@Alph@bul
\def\@Alph{Alph\@arabic}%
\fi
\ifx\@alph\@alph@bul
\def\@alph{alph\@arabic}%
\fi
\ifHy@naturalnames
\let\textlatin\@firstofone
\xdef\@currentHlabel{\csname the#1\endcsname}%
\else
\xdef\@currentHlabel{%
\csname
the%
\expandafter\ifx\csname theH#1\endcsname\relax\else H\fi
#1%
\endcsname
}%
\fi
\xdef\@currentHref{%
\Hy@param.\expandafter\strip@prefix\meaning\@currentHlabel
}%
\else
\Hy@GlobalStepCount\Hy@linkcounter
\xdef\@currentHref{\Hy@param.\the\Hy@linkcounter}%
\fi
\endgroup
}
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
\@ifpackageloaded{fancyvrb}{%
\@ifpackagelater{fancyvrb}{1998/05/20}{}{%
\def\FV@StepLineNo{%
\FV@SetLineNo
\def\FV@StepLineNo{\H@refstepcounter{FancyVerbLine}}%
\FV@StepLineNo
}%
}%
}{}
% \end{macrocode}
%
% \section{Package lastpage support}
% Package lastpage directly writes the |\newlabel| command to the
% aux file. Because package hyperref requires additional arguments,
% the internal command |\lastpage@putlabel| is redefined.
% The patch is deferred by |\AtBeginDocument|, because it is possible
% that package lastpage is loaded after package hyperref.
% The same algorithm (options hypertexnames and plainpages)
% is used to get the page anchor name as
% in |\Hy@EveryPageAnchor| (see sec. \ref{pagenum}).
% The link will not work if option pageanchor is set to false.
% \begin{macro}{\lastpage@putlabel}
% \begin{macrocode}
\AtBeginDocument{%
\@ifclassloaded{revtex4}{%
\@namedef{ver@lastpage.sty}{1994/06/25}%
}{}%
\@ifpackageloaded{lastpage}{%
\ifHy@pageanchor
\else
\Hy@WarningNoLine{%
The \string\pageref{LastPage} link doesn't work\MessageBreak
with disabled option `pageanchor'%
}%
\fi
\def\lastpage@putlabel{%
\addtocounter{page}{-1}%
\if@filesw
\begingroup
\let\@number\@firstofone
\ifHy@pageanchor
\ifHy@hypertexnames
\ifHy@plainpages
\def\Hy@temp{\arabic{page}}%
\else
\Hy@unicodefalse
\pdfstringdef\Hy@temp{\thepage}%
\fi
\else
\def\Hy@temp{\the\Hy@pagecounter}%
\fi
\fi
\immediate\write\@auxout{%
\string\newlabel
{LastPage}{{}{\thepage}{}{%
\ifHy@pageanchor page.\Hy@temp\fi}{}}%
}%
\endgroup
\fi
\addtocounter{page}{1}%
}%
\@ifclassloaded{revtex4}{%
\begingroup
\toks@\expandafter{\lastpage@putlabel}%
\edef\x{\endgroup
\def\noexpand\lastpage@putlabel{%
\noexpand\stepcounter{page}%
\the\toks@
\noexpand\addtocounter{page}\noexpand\m@ne
}%
}%
\x
}{}%
}{}%
}
%</package>
%<*check>
\checkpackage{lastpage}[1994/06/25]
\checkcommand\def\lastpage@putlabel{%
\addtocounter{page}{-1}%
\immediate\write\@auxout{%
\string\newlabel{LastPage}{{}{\thepage}}%
}%
\addtocounter{page}{1}%
}
%</check>
%<*package>
% \end{macrocode}
% \end{macro}
%
% \section{Package ifthen support}
%
% Since version 6.75a this is done in package nameref.
%
% For compatibility \cmd{\hypergetref} and
% \cmd{\hypergetpageref} are still provided.
% But they do not generate warnings, if the reference is
% undefined.
% \begin{macrocode}
\def\hypergetref#1{\getrefbykeydefault{#1}{}{??}}
\def\hypergetpageref#1{\getrefbykeydefault{#1}{page}{0}}
% \end{macrocode}
%
% \section{Package titlesec and titletoc support}
%
% This code is contributed by Javier Bezos
% (Email: \Email{jbezos@arrakis.es}).
%
% Package titlesec support:
% \begin{macrocode}
\@ifpackageloaded{titlesec}{%
\def\ttl@Hy@steplink#1{%
\Hy@GlobalStepCount\Hy@linkcounter
\xdef\@currentHref{#1*.\the\Hy@linkcounter}%
\def\ttl@Hy@saveanchor{%
\Hy@raisedlink{%
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%
}%
}%
\def\ttl@Hy@refstepcounter#1{%
\let\ttl@b\Hy@raisedlink
\def\Hy@raisedlink##1{%
\def\ttl@Hy@saveanchor{\Hy@raisedlink{##1}}%
}%
\refstepcounter{#1}%
\let\Hy@raisedlink\ttl@b
}%
}{}
% \end{macrocode}
%
% Package titletoc support:
% \begin{macrocode}
\@ifpackageloaded{titletoc}{%
\def\ttl@gobblecontents#1#2#3#4{\ignorespaces}%
}{}
% \end{macrocode}
%
% \section{Package varioref support}
%
% Package nameref uses five arguments for the ref system.
% Fix provided by Felix Neubauer (\Email{felix.neubauer@gmx.net}).
% \begin{macrocode}
\def\Hy@varioref@undefined{{??}{??}{}{}{}}
\@ifpackageloaded{varioref}{%
\def\vref@pagenum#1#2{%
\@ifundefined{r@#2}{%
\expandafter\let\csname r@#2\endcsname\Hy@varioref@undefined
}{}%
\edef#1{\getpagerefnumber{#2}}%
}%
}{}
% \end{macrocode}
%
% \section{Package longtable support}
%
% Sometimes the anchor of the longtable goes to the previous
% page. Thus the following patch separates the anchor setting
% and counter incrementation by hyperref's \verb|\refstepcounter|
% and the anchor setting is moved after \verb|\vskip\LTpre|.
%
% Patch of \cmd{\LT@array}:
% replace \cmd{\refstepcounter} by the original
% \cmd{\H@refstepcounter} without anchor generation
% \begin{macrocode}
\@ifpackageloaded{longtable}{%
\begingroup
\def\y{\LT@array}%
\@ifundefined{scr@LT@array}{}{\def\y{\scr@LT@array}}%
\long\def\x\refstepcounter#1#2\@sharp#3#4\@nil{%
\expandafter\endgroup
\expandafter\def\y[##1]##2{%
\H@refstepcounter{#1}%
\hyper@makecurrent{table}%
\let\Hy@LT@currentHlabel\@currentHlabel
\let\Hy@LT@currentHref\@currentHref
#2\@sharp#####4%
}%
}%
\expandafter\expandafter\expandafter\x\y[{#1}]{#2}\@nil
% \end{macrocode}
% Patch of \cmd{\LT@start}:
% add anchor before first line after \verb|\vskip\LTpre|
% \begin{macrocode}
\begingroup
\def\x#1\ifvoid\LT@firsthead\copy#2\@nil{%
\endgroup
\def\LT@start{%
#1%
\let\@currentHlabel\Hy@LT@currentHlabel
\let\@currentHref\Hy@LT@currentHref
\Hy@raisedlink{%
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%
\ifvoid\LT@firsthead\copy
#2%
}%
}%
\expandafter\x\LT@start\@nil
}{}
% \end{macrocode}
%
% \section{Equations}\label{equations}
% We want to make the whole equation a target anchor.
% Overload equation, temporarily reverting to original
% |\refstepcounter|. If, however, it is in AMS math, we do not
% do anything, as the tag mechanism is used there (see section \ref{ams}).
% The execption is that we move the equation incrementation inside
% the math environment to avoid specials outside and a wrong vertical
% spacing of equation environments.
% \begin{macrocode}
\let\new@refstepcounter\refstepcounter
\let\H@equation\equation
\let\H@endequation\endequation
% \end{macrocode}
%
% \begin{macrocode}
\@ifpackageloaded{amsmath}{%
\long\def\Hy@temp{%
\incr@eqnum
\mathdisplay@push
\st@rredfalse \global\@eqnswtrue
\mathdisplay{equation}%
}%
\ifx\Hy@temp\equation
\expandafter\ifx\csname if@fleqn\expandafter\endcsname
\csname iftrue\endcsname
\else
\long\def\equation{%
\mathdisplay@push
\st@rredfalse \global\@eqnswtrue
\mathdisplay{equation}%
\incr@eqnum
}%
\fi
\fi
}{%
\def\equation{%
\let\refstepcounter\H@refstepcounter
\H@equation
\@ifundefined{theHequation}{%
\make@stripped@name{\theequation}%
\let\theHequation\newname
}{}%
\hyper@makecurrent{equation}%
\Hy@raisedlink{\hyper@anchorstart{\@currentHref}}%
\let\refstepcounter\new@refstepcounter
}%
\def\endequation{\Hy@raisedlink{\hyper@anchorend}\H@endequation}%
}
% \end{macrocode}
% My goodness, why can't \LaTeX{} be consistent? Why is |\eqnarray|
% set up differently from other objects?
%
% People (you know who you are, Thomas Beuth) sometimes make
% an eqnarray where \emph{all} the lines end with |\notag|,
% so there is no suitable anchor at all. In this case, pass by
% on the other side.
% \begin{macrocode}
\newif\if@eqnstar
\@eqnstarfalse
\let\H@eqnarray\eqnarray
\let\H@endeqnarray\endeqnarray
\def\eqnarray{%
\let\Hy@reserved@a\relax
\def\@currentHref{}%
\H@eqnarray
\if@eqnstar
\else
\ifx\\\@currentHref\\%
\else
\@ifundefined{theHequation}{%
\make@stripped@name{\theequation}%
\let\theHequation\newname
}{}%
\hyper@makecurrent{equation}%
\hyper@anchorstart{\@currentHref}{}\hyper@anchorend
\fi
\fi
}
\def\endeqnarray{%
\H@endeqnarray
}
% \end{macrocode}
% This is quite heavy-handed, but it works for now. If its an |eqnarray*|
% we need to disable the hyperref actions. There may well be a cleaner
% way to trap this. Bill Moss found this.
% \begin{macrocode}
\@namedef{eqnarray*}{%
\def\@eqncr{\nonumber\@seqncr}\@eqnstartrue\eqnarray
}
\@namedef{endeqnarray*}{%
\nonumber\endeqnarray\@eqnstarfalse
}
% \end{macrocode}
% Then again, we have the \emph{subeqnarray}
% package. Tanmoy provided some code for this:
% \begin{macrocode}
\@ifundefined{subeqnarray}{}{%
\let\H@subeqnarray\subeqnarray
\let\H@endsubeqnarray\endsubeqnarray
\def\subeqnarray{%
\let\Hy@reserved@a\relax
\H@subeqnarray
\@ifundefined{theHequation}{%
\make@stripped@name{\theequation}%
\let\theHequation\newname
}{}%
\hyper@makecurrent{equation}%
\hyper@anchorstart{\@currentHref}{}\hyper@anchorend
}%
\def\endsubeqnarray{%
\H@endsubeqnarray
}%
\newcommand\theHsubequation{\theHequation\alph{subequation}}%
}
% \end{macrocode}
% The aim of this macro is to produce a sanitized version of
% its argument, to make it a safe label.
% \begin{macrocode}
\def\make@stripped@name#1{%
\begingroup
\escapechar\m@ne
\global\let\newname\@empty
\protected@edef\Hy@tempa{#1}%
\edef\@tempb{%
\noexpand\@tfor\noexpand\Hy@tempa:=%
\expandafter\strip@prefix\meaning\Hy@tempa
}%
\@tempb\do{%
\if{\Hy@tempa\else
\if}\Hy@tempa\else
\xdef\newname{\newname\Hy@tempa}%
\fi
\fi
}%
\endgroup
}
% \end{macrocode}
%
% Support for amsmath's \texttt{subequations}:
% \begin{macrocode}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname subequations\endcsname\relax
\else
\let\HyOrg@subequations\subequations
\def\subequations{%
\stepcounter{equation}%
\protected@edef\theHparentequation{%
\@ifundefined{theHequation}\theequation\theHequation
}%
\addtocounter{equation}{-1}%
\HyOrg@subequations
\def\theHequation{\theHparentequation\alph{equation}}%
\ignorespaces
}%
\fi
% \end{macrocode}
%
% Support for package \texttt{amsthm} (Daniel M\"ullner):
% \begin{macrocode}
\@ifpackageloaded{amsthm}{%
\def\@thm#1#2#3{%
\ifhmode
\unskip\unskip\par
\fi
\normalfont
\trivlist
\let\thmheadnl\relax
\let\thm@swap\@gobble
\thm@notefont{\fontseries\mddefault\upshape}%
\thm@headpunct{.}% add period after heading
\thm@headsep 5\p@ plus\p@ minus\p@\relax
\thm@space@setup
#1% style overrides
\@topsep \thm@preskip % used by thm head
\@topsepadd \thm@postskip % used by \@endparenv
\def\dth@counter{#2}%
\ifx\@empty\dth@counter
\def\@tempa{%
\@oparg{\@begintheorem{#3}{}}[]%
}%
\else
\H@refstepcounter{#2}%
\hyper@makecurrent{#2}%
\def\@tempa{%
\@oparg{\@begintheorem{#3}{\csname the#2\endcsname}}[]%
}%
\fi
\@tempa
}%
\dth@everypar={%
\@minipagefalse
\global\@newlistfalse
\@noparitemfalse
\if@inlabel
\global\@inlabelfalse
\begingroup
\setbox\z@\lastbox
\ifvoid\z@
\kern-\itemindent
\fi
\endgroup
\ifx\@empty\dth@counter
\else
\Hy@raisedlink{%
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%
\fi
\unhbox\@labels
\fi
\if@nobreak
\@nobreakfalse \clubpenalty\@M
\else
\clubpenalty\@clubpenalty \everypar{}%
\fi
}%
}{}
% \end{macrocode}
%
% \section{Footnotes}\label{footnotes}
% The footnote mark is a hypertext link, and the text is a target.
% We separately number the footnotes sequentially through the
% text, separately from whatever labels the text assigns. Too hard
% to keep track of markers otherwise. If the raw forms |\footnotemark|
% and |\footnotetext| are used, force them to use un-hyper original.
%
% Tabularx causes footnote problems, disable the linking if that is loaded.
% \begin{macrocode}
\@ifpackageloaded{tabularx}{\Hy@hyperfootnotesfalse}{}
\ifHy@hyperfootnotes
\newcounter{Hfootnote}%
\let\H@@footnotetext\@footnotetext
\let\H@@footnotemark\@footnotemark
\def\@xfootnotenext[#1]{%
\begingroup
\csname c@\@mpfn\endcsname #1\relax
\unrestored@protected@xdef\@thefnmark{\thempfn}%
\endgroup
\ifx\@footnotetext\@mpfootnotetext
\expandafter\H@@mpfootnotetext
\else
\expandafter\H@@footnotetext
\fi
}%
\def\@xfootnotemark[#1]{%
\begingroup
\c@footnote #1\relax
\unrestored@protected@xdef\@thefnmark{\thefootnote}%
\endgroup
\H@@footnotemark
}%
\let\H@@mpfootnotetext\@mpfootnotetext
\long\def\@mpfootnotetext#1{%
\H@@mpfootnotetext{%
\ifHy@nesting
\hyper@@anchor{\Hy@footnote@currentHref}{#1}%
\else
\Hy@raisedlink{%
\hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
}#1%
\fi
}%
}%
\long\def\@footnotetext#1{%
\H@@footnotetext{%
\ifHy@nesting
\hyper@@anchor{\Hy@footnote@currentHref}{#1}%
\else
\Hy@raisedlink{%
\hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
}%
\let\@currentHlabel\Hy@footnote@currentHlabel
\let\@currentHref\Hy@footnote@currentHref
\let\@currentlabelname\@empty
#1%
\fi
}%
}%
% \end{macrocode}
% Redefine \verb+\@footnotemark+, borrowing its code (at the
% cost of getting out of sync with latex.ltx), to take
% advantage of its white space and hyphenation fudges. If we just
% overload it, we can get variant documents (the word before the
% footnote is treated differently). Thanks to David Carlisle and
% Brian Ripley for confusing and helping me on this.
% \begin{macrocode}
\def\@footnotemark{%
\leavevmode
\ifhmode\edef\@x@sf{\the\spacefactor}\nobreak\fi
\stepcounter{Hfootnote}%
\global\let\Hy@saved@currentHlabel\@currentHlabel
\global\let\Hy@saved@currentHref\@currentHref
\hyper@makecurrent{Hfootnote}%
\global\let\Hy@footnote@currentHlabel\@currentHlabel
\global\let\Hy@footnote@currentHref\@currentHref
\global\let\@currentHlabel\Hy@saved@currentHlabel
\global\let\@currentHref\Hy@saved@currentHref
\hyper@linkstart{link}{\Hy@footnote@currentHref}%
\@makefnmark
\hyper@linkend
\ifhmode\spacefactor\@x@sf\fi
\relax
}%
% \end{macrocode}
%
% Support for footnotes in p columns of longtable.
% Here \verb+\footnote+ commands are splitted into
% \verb+\footnotemark+ and a call of \verb+\footnotetext+
% with the optional argument, that is not supported
% by hyperref. The result is a link by \verb+\footnotemark+
% without valid anchor
% \begin{macrocode}
\@ifpackageloaded{longtable}{%
\CheckCommand*{\LT@p@ftntext}[1]{%
\edef\@tempa{%
\the\LT@p@ftn
\noexpand\footnotetext[\the\c@footnote]%
}%
\global\LT@p@ftn\expandafter{\@tempa{#1}}%
}%
\long\def\LT@p@ftntext#1{%
\edef\@tempa{%
\the\LT@p@ftn
\begingroup
\noexpand\c@footnote=\the\c@footnote\relax
\noexpand\protected@xdef
\noexpand\@thefnmark{\noexpand\thempfn}%
\noexpand\protected@xdef\noexpand\@thefnmark{%
\noexpand\thempfn
}%
\expandafter\expandafter\expandafter\noexpand
\expandafter\expandafter\expandafter\Hy@LT@footnotetext
\expandafter\expandafter\expandafter{%
\expandafter\Hy@footnote@currentHref\expandafter
}\expandafter{\Hy@footnote@currentHlabel}%
}%
\global\LT@p@ftn\expandafter{%
\@tempa{#1}%
\endgroup
}%
}%
\long\def\Hy@LT@footnotetext#1#2#3{%
\H@@footnotetext{%
\ifHy@nesting
\hyper@@anchor{#1}{#3}%
\else
\Hy@raisedlink{%
\hyper@@anchor{#1}{\relax}%
}%
\def\@currentHlabel{#2}%
\def\@currentHref{#1}%
\let\@currentlabelname\@empty
#3%
\fi
}%
}%
}{}%
% \end{macrocode}
%
% Footnotes for fancyvrb (Fix by Manuel P\'egouri\'e-Gonnard).
% \begin{macrocode}
\@ifpackageloaded{fancyvrb}{%
\def\V@@footnotetext{%
\insert\footins\bgroup
\csname reset@font\endcsname
\footnotesize
\interlinepenalty\interfootnotelinepenalty
\splittopskip\footnotesep
\splitmaxdepth\dp\strutbox
\floatingpenalty \@MM
\hsize\columnwidth
\@parboxrestore
\edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}%
\@makefntext{}%
\rule{\z@}{\footnotesep}%
\bgroup
\aftergroup\V@@@footnotetext
\Hy@raisedlink{%
\hyper@@anchor{\Hy@footnote@currentHref}{\relax}%
}%
\let\@currentHlabel\Hy@footnote@currentHlabel
\let\@currentHref\Hy@footnote@currentHref
\let\@currentlabelname\@empty
\ignorespaces
}%
}{}%
% \end{macrocode}
%
% But the special footnotes
% in |\maketitle| are much too hard to deal with
% properly. Let them revert to plain behaviour.
% The koma classes add an optional argument.
% \begin{macrocode}
\let\HyOrg@maketitle\maketitle
\def\maketitle{%
\let\Hy@saved@footnotemark\@footnotemark
\let\Hy@saved@footnotetext\@footnotetext
\let\@footnotemark\H@@footnotemark
\let\@footnotetext\H@@footnotetext
\@ifnextchar[\Hy@maketitle@optarg{% ]
\HyOrg@maketitle
\Hy@maketitle@end
}%
}%
\def\Hy@maketitle@optarg[#1]{%
\HyOrg@maketitle[{#1}]%
\Hy@maketitle@end
}%
\def\Hy@maketitle@end{%
\ifx\@footnotemark\H@@footnotemark
\let\@footnotemark\Hy@saved@footnotemark
\fi
\ifx\@footnotetext\H@@footnotetext
\let\@footnotetext\Hy@saved@footnotetext
\fi
}%
% \end{macrocode}
% \begin{macro}{\realfootnote}
% Does anyone remember the function and purpose of \cmd{\realfootnote}?
% \begin{macrocode}
\def\realfootnote{%
\@ifnextchar[\@xfootnote{%
\stepcounter{\@mpfn}%
\protected@xdef\@thefnmark{\thempfn}%
\H@@footnotemark\H@@footnotetext
}%
}%
% \end{macrocode}
% \begin{macrocode}
\fi
\Hy@DisableOption{hyperfootnotes}
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
%</package>
%<*check>
\checklatex
\checkcommand\def\@xfootnotenext[#1]{%
\begingroup
\csname c@\@mpfn\endcsname #1\relax
\unrestored@protected@xdef\@thefnmark{\thempfn}%
\endgroup
\@footnotetext
}
\checkcommand\def\@xfootnotemark[#1]{%
\begingroup
\c@footnote #1\relax
\unrestored@protected@xdef\@thefnmark{\thefootnote}%
\endgroup
\@footnotemark
}
\checkcommand\def\@footnotemark{%
\leavevmode
\ifhmode\edef\@x@sf{\the\spacefactor}\nobreak\fi
\@makefnmark
\ifhmode\spacefactor\@x@sf\fi
\relax
}
%</check>
%<*package>
% \end{macrocode}
%
% \section{Float captions}\label{captions}
% Make the float caption the hypertext anchor; curiously enough,
% we can't just copy the definition of |\@caption|. Its all to do
% with expansion. It screws up. Sigh.
% \begin{macrocode}
\def\caption{%
\ifx\@captype\@undefined
\@latex@error{\noexpand\caption outside float}\@ehd
\expandafter\@gobble
\else
\H@refstepcounter\@captype
\let\Hy@tempa\@caption
\@ifundefined{float@caption}{%
}{%
\expandafter\ifx\csname @float@c@\@captype\endcsname
\float@caption
\let\Hy@tempa\Hy@float@caption
\fi
}%
\expandafter\@firstofone
\fi
{\@dblarg{\Hy@tempa\@captype}}%
}
\long\def\@caption#1[#2]#3{%
\expandafter\ifx\csname if@capstart\expandafter\endcsname
\csname iftrue\endcsname
\global\let\@currentHref\hc@currentHref
\else
\hyper@makecurrent{\@captype}%
\fi
\def\@currentlabelname{#2}%
\par\addcontentsline{\csname ext@#1\endcsname}{#1}{%
\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}%
}%
\begingroup
\@parboxrestore
\if@minipage
\@setminipage
\fi
\normalsize
\expandafter\ifx\csname if@capstart\expandafter\endcsname
\csname iftrue\endcsname
\global\@capstartfalse
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces#3}%
\else
\@makecaption{\csname fnum@#1\endcsname}{%
\ignorespaces
% \end{macrocode}
% If we cannot have nesting, the anchor is empty.
% \begin{macrocode}
\ifHy@nesting
\hyper@@anchor{\@currentHref}{#3}%
\else
\Hy@raisedlink{\hyper@@anchor{\@currentHref}{\relax}}#3%
\fi
}%
\fi
\par
\endgroup
}
% \end{macrocode}
% Compatibility with float.sty: anchor setting at the top
% of the float, if the float is controlled by float.sty.
% Several \verb|\caption| commands inside one float are
% not supported.
% \begin{macrocode}
\let\Hy@float@caption\@caption
\@ifpackageloaded{float}{%
\def\Hy@float@caption{%
\ifx\Hy@float@currentHref\@undefined
\hyper@makecurrent{\@captype}%
\global\let\Hy@float@currentHref\@currentHref
\else
\let\@currentHref\Hy@float@currentHref
\fi
\float@caption
}%
\let\HyOrg@float@makebox\float@makebox
\renewcommand{\float@makebox}[1]{%
\HyOrg@float@makebox{%
#1\relax
\ifx\Hy@float@currentHref\@undefined
\else
\hyper@@anchor{\Hy@float@currentHref}{\relax}%
\global\let\Hy@float@currentHref\@undefined
\fi
}%
}%
}{}
% \end{macrocode}
%
% \begin{macrocode}
%</package>
%<*check>
\checklatex[1999/06/01 - 2000/06/01]
\checkcommand\def\caption{%
\ifx\@captype\@undefined
\@latex@error{\noexpand\caption outside float}\@ehd
\expandafter\@gobble
\else
\refstepcounter\@captype
\expandafter\@firstofone
\fi
{\@dblarg{\@caption\@captype}}%
}
\checkcommand\long\def\@caption#1[#2]#3{%
\par
\addcontentsline{\csname ext@#1\endcsname}{#1}%
{\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}%
\begingroup
\@parboxrestore
\if@minipage
\@setminipage
\fi
\normalsize
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
\endgroup
}
%</check>
%<*package>
% \end{macrocode}
%
% \section{Bibliographic references}\label{bib}
% This is not very robust, since many styles redefine these things.
% The package used to redefine |\@citex| and the like; then we tried
% adding the hyperref call explicitly into the .aux file.
% Now we redefine |\bibcite|; this still breaks some citation packages
% so we have to work around them. But this remains extremely dangerous.
% Any or all of \emph{achemso}
% and \emph{drftcite} may break.
%
% However, lets make an attempt to get \emph{natbib} right, because
% thats a powerful, important package.
% Patrick Daly (\Email{daly@linmpi.mpg.de}) has
% provided hooks for us, so all we need to do is activate them.
% \begin{macrocode}
\def\hyper@natlinkstart#1{%
\Hy@backout{#1}%
\hyper@linkstart{cite}{cite.#1}%
\def\hyper@nat@current{#1}%
}
\def\hyper@natlinkend{%
\hyper@linkend
}
\def\hyper@natlinkbreak#1#2{%
\hyper@linkend#1\hyper@linkstart{cite}{cite.#2}%
}
\def\hyper@natanchorstart#1{%
\Hy@raisedlink{\hyper@anchorstart{cite.#1}}%
}
\def\hyper@natanchorend{\hyper@anchorend}
% \end{macrocode}
% Do not play games if we have natbib support.
% Macro \@extra@binfo added for chapterbib support. Chapterbib also
% wants \cs{@extra@binfo} in the hyper-link, but since the link tag is
% not expanded immediately, we use \cs{@extra@b@citeb}, so cites in a
% chapter will link to the bibliography in that chapter.
% \begin{macrocode}
\@ifundefined{NAT@parse}{%
\providecommand*\@extra@binfo{}%
\providecommand*\@extra@b@citeb{}%
\def\bibcite#1#2{%
\@newl@bel{b}{#1\@extra@binfo}{%
\hyper@@link[cite]{}{cite.#1\@extra@b@citeb}{#2}%
}%
}%
\gdef\@extra@binfo{}%
% \end{macrocode}
% Package |babel| redefines \cmd{\bibcite} with
% macro \cmd{\bbl@cite@choice}. It needs to be overwritten
% to avoid the warning ``Label(s) may have changed.''.
% \begin{macrocode}
\let\Hy@bibcite\bibcite
\begingroup
\@ifundefined{bbl@cite@choice}{}{%
\g@addto@macro\bbl@cite@choice{%
\let\bibcite\Hy@bibcite
}%
}%
\endgroup
% \end{macrocode}
% |\@BIBLABEL| is working around a `feature' of Rev\TeX.
% \begin{macrocode}
\providecommand*{\@BIBLABEL}{\@biblabel}%
\def\@lbibitem[#1]#2{%
\@skiphyperreftrue
\H@item[%
\ifx\Hy@raisedlink\@empty
\hyper@anchorstart{cite.#2\@extra@b@citeb}%
\@BIBLABEL{#1}%
\hyper@anchorend
\else
\Hy@raisedlink{%
\hyper@anchorstart{cite.#2\@extra@b@citeb}\hyper@anchorend
}%
\@BIBLABEL{#1}%
\fi
\hfill
]%
\@skiphyperreffalse
\if@filesw
\begingroup
\let\protect\noexpand
\immediate\write\@auxout{%
\string\bibcite{#2}{#1}%
}%
\endgroup
\fi
\ignorespaces
}%
% \end{macrocode}
% Since |\bibitem| is doing its own labelling, call the raw
% version of |\item|, to avoid extra spurious labels
% \begin{macrocode}
\def\@bibitem#1{%
\@skiphyperreftrue\H@item\@skiphyperreffalse
\Hy@raisedlink{%
\hyper@anchorstart{cite.#1\@extra@b@citeb}\relax\hyper@anchorend
}%
\if@filesw
\begingroup
\let\protect\noexpand
\immediate\write\@auxout{%
\string\bibcite{#1}{\the\value{\@listctr}}%
}%
\endgroup
\fi
\ignorespaces
}%
}{}
% \end{macrocode}
%
% \begin{macrocode}
%</package>
%<*check>
\checklatex
\checkcommand\def\@lbibitem[#1]#2{%
\item[\@biblabel{#1}\hfill]%
\if@filesw
{%
\let\protect\noexpand
\immediate\write\@auxout{%
\string\bibcite{#2}{#1}%
}%
}%
\fi
\ignorespaces
}
\checkcommand\def\@bibitem#1{%
\item
\if@filesw
\immediate\write\@auxout{%
\string\bibcite{#1}{\the\value{\@listctr}}%
}%
\fi
\ignorespaces
}
%</check>
%<*package>
% \end{macrocode}
%
% Revtex (bless its little heart) takes over |\bibcite| and looks
% at the result to measure something. Make this a hypertext link
% and it goes ape. Therefore, make an anodyne result first, call
% its business, then go back to the real thing.
% \begin{macrocode}
\@ifclassloaded{revtex}{%
\Hy@Info{*** compatibility with revtex **** }%
\def\revtex@checking#1#2{%
\expandafter\let\expandafter\T@temp\csname b@#1\endcsname
\expandafter\def\csname b@#1\endcsname{#2}%
\@SetMaxRnhefLabel{#1}%
\expandafter\let\csname b@#1\endcsname\T@temp
}%
% \end{macrocode}
% Tanmoy provided this replacement for CITEX. Lord knows what it does.
% For chapterbib added: \@extra@b@citeb
% \begin{macrocode}
\@ifundefined{@CITE}{\def\@CITE{\@cite}}{}%
\providecommand*{\@extra@b@citeb}{}%
\def\@CITEX[#1]#2{%
\let\@citea\@empty
\leavevmode
\unskip
$^{%
\scriptstyle
\@CITE{%
\@for\@citeb:=#2\do{%
\@citea
\def\@citea{,\penalty\@m\ }%
\edef\@citeb{\expandafter\@firstofone\@citeb}%
\if@filesw
\immediate\write\@auxout{\string\citation{\@citeb}}%
\fi
\@ifundefined{b@\@citeb\extra@b@citeb}{%
\mbox{\reset@font\bfseries ?}%
\G@refundefinedtrue
\@latex@warning{%
Citation `\@citeb' on page \thepage \space undefined%
}%
}{%
{\csname b@\@citeb\@extra@b@citeb\endcsname}%
}%
}%
}{#1}%
}$%
}%
% \end{macrocode}
% No, life is too short. I am not going to understand the
% Revtex |\@collapse| macro, I shall
% just restore the original behaviour of |\@citex|;
% sigh. This is SO vile.
% \begin{macrocode}
\def\@citex[#1]#2{%
\let\@citea\@empty
\@cite{%
\@for\@citeb:=#2\do{%
\@citea
\def\@citea{,\penalty\@m\ }%
\edef\@citeb{\expandafter\@firstofone\@citeb}%
\if@filesw
\immediate\write\@auxout{\string\citation{\@citeb}}%
\fi
\@ifundefined{b@\@citeb\@extra@b@citeb}{%
\mbox{\reset@font\bfseries ?}%
\G@refundefinedtrue
\@latex@warning{%
Citation `\@citeb' on page \thepage \space undefined%
}%
}{%
\hbox{\csname b@\@citeb\@extra@b@citeb\endcsname}%
}%
}%
}{#1}%
}%
}{}
% \end{macrocode}
%
% \subsection{Package harvard}
%
% Override Peter Williams' Harvard package; we have to
% a) make each of the citation types into a link; b) make
% each citation write a backref entry, and c) kick off a backreference
% section for each bibliography entry.
%
% The redefinitions have to be deferred to |\begin{document}|,
% because if harvard.sty is loaded and html.sty is present and
% detects pdf\TeX, then hyperref is already loaded at the begin
% of harvard.sty, and the |\newcommand| macros causes error
% messages.
% \begin{macrocode}
\@ifpackageloaded{harvard}{%
\AtBeginDocument{%
\Hy@Info{*** compatibility with harvard **** }%
\Hy@raiselinksfalse
\def\harvardcite#1#2#3#4{%
\global\@namedef{HAR@fn@#1}{\hyper@@link[cite]{}{cite.#1}{#2}}%
\global\@namedef{HAR@an@#1}{\hyper@@link[cite]{}{cite.#1}{#3}}%
\global\@namedef{HAR@yr@#1}{\hyper@@link[cite]{}{cite.#1}{#4}}%
\global\@namedef{HAR@df@#1}{\csname HAR@fn@#1\endcsname}%
}%
\def\HAR@citetoaux#1{%
\if@filesw\immediate\write\@auxout{\string\citation{#1}}\fi%
\ifHy@backref
\ifx\@empty\@currentlabel
\else
\@bsphack
\if@filesw
\protected@write\@auxout{}{%
\string\@writefile{brf}{%
\string\backcite{#1}{%
{\thepage}{\@currentlabel}{\@currentHref}%
}%
}%
}%
\fi
\@esphack
\fi
\fi
}%
\def\harvarditem{%
\@ifnextchar[{\@harvarditem}{\@harvarditem[\null]}%
}%
\def\@harvarditem[#1]#2#3#4#5\par{%
\item[]%
\hyper@anchorstart{cite.#4}\relax\hyper@anchorend
\if@filesw
\begingroup
\def\protect##1{\string ##1\space}%
\ifthenelse{\equal{#1}{\null}}%
{\def\next{{#4}{#2}{#2}{#3}}}%
{\def\next{{#4}{#2}{#1}{#3}}}%
\immediate\write\@auxout{\string\harvardcite\codeof\next}%
\endgroup
\fi
\protect\hspace*{-\labelwidth}%
\protect\hspace*{-\labelsep}%
\ignorespaces
#5%
\ifHy@backref
\newblock
\backref{\csname br@#4\endcsname}%
\fi
\par
}%
% \end{macrocode}
% \begin{macro}{\HAR@checkcitations}
% Package hyperref has added \cmd{\hyper@@link}, so
% the original test \cmd{\HAR@checkcitations} will
% fail every time and always will appear the ``Changed
% labels'' warning. So we have to redefine
% \cmd{\Har@checkcitations}:
% \begin{macrocode}
\long\def\HAR@checkcitations#1#2#3#4{%
\def\HAR@tempa{\hyper@@link[cite]{}{cite.#1}{#2}}%
\expandafter\ifx\csname HAR@fn@#1\endcsname\HAR@tempa
\def\HAR@tempa{\hyper@@link[cite]{}{cite.#1}{#3}}%
\expandafter\ifx\csname HAR@an@#1\endcsname\HAR@tempa
\def\HAR@tempa{\hyper@@link[cite]{}{cite.#1}{#4}}%
\expandafter\ifx\csname HAR@yr@#1\endcsname\HAR@tempa
\else
\@tempswatrue
\fi
\else
\@tempswatrue
\fi
\else
\@tempswatrue
\fi
}%
}%
% \end{macrocode}
% \end{macro}
% \begin{macrocode}
}{}
% \end{macrocode}
%
% \subsection{Package chicago}
% The links by \cmd{\citeN} and \cmd{\shortciteN} should
% include the closing parentheses.
%
% \begin{macrocode}
\@ifpackageloaded{chicago}{%
% \end{macrocode}
% \begin{macro}{\citeN}
% \begin{macrocode}
\def\citeN{%
\def\@citeseppen{-1000}%
\def\@cite##1##2{##1}%
\def\citeauthoryear##1##2##3{##1 (##3\@cite@opt)}%
\@citedata@opt
}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\shortciteN}
% \begin{macrocode}
\def\shortciteN{%
\def\@citeseppen{-1000}%
\def\@cite##1##2{##1}%
\def\citeauthoryear##1##2##3{##2 (##3\@cite@opt)}%
\@citedata@opt
}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\@citedata@opt}
% \begin{macrocode}
\def\@citedata@opt{%
\let\@cite@opt\@empty
\@ifnextchar [{%
\@tempswatrue
\@citedatax@opt
}{%
\@tempswafalse
\@citedatax[]%
}%
}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\@citedatax@opt}
% \begin{macrocode}
\def\@citedatax@opt[#1]{%
\def\@cite@opt{, #1}%
\@citedatax[{#1}]%
}%
% \end{macrocode}
% \end{macro}
% \begin{macrocode}
}{}
% \end{macrocode}
%
% \section{Page numbers}\label{pagenum}
%
% The last page should not contain a /Dur key, because there
% is no page after the last page. Therefore at the last page
% there should be a command |\hypersetup{pdfpageduration={}}|.
% This can be set with \cmd{\AtEndDocument}, but it can
% be too late, if the last page is already finished, or too
% early, if lots of float pages will follow.
% Therefore currently nothing is done by hyperref.
%
% This where we supply a destination for each page.
% \begin{macrocode}
\def\Hy@EveryPageAnchor{%
\Hy@DistillerDestFix
\ifHy@pageanchor
\ifHy@hypertexnames
\ifHy@plainpages
\def\Hy@TempPageAnchor{\hyper@@anchor{page.\the\c@page}}%
\else
\begingroup
\let\@number\@firstofone
\Hy@unicodefalse
\pdfstringdef\@the@H@page{\thepage}%
\endgroup
\def\Hy@TempPageAnchor{\hyper@@anchor{page.\@the@H@page}}%
\fi
\else
\Hy@GlobalStepCount\Hy@pagecounter
\def\Hy@TempPageAnchor{\hyper@@anchor{page.\the\Hy@pagecounter}}%
\fi
\vbox to 0pt{%
\kern\voffset
\kern\topmargin
\kern-1bp\relax
\hbox to 0pt{%
\kern\hoffset
\kern\ifodd\value{page}%
\oddsidemargin
\else
\evensidemargin
\fi
\kern-1bp\relax
\Hy@TempPageAnchor
\hss
}%
\vss
}%
\fi
}
\g@addto@macro\Hy@EveryPageBoxHook{%
\Hy@EveryPageAnchor
}
% \end{macrocode}
%
% \section{Table of contents}\label{toc}
% TV Raman noticed that people who add arbitrary material into the TOC
% generate a bad or null link. We avoid that by checking if the current
% destination is empty. But if `the most recent destination' is not
% what you expect, you will be in trouble.
% \begin{macrocode}
\def\addcontentsline#1#2#3{% toc extension, type, tag
\begingroup
\let\label\@gobble
\ifx\@currentHref\@empty
\Hy@Warning{%
No destination for bookmark of \string\addcontentsline,%
\MessageBreak destination is added%
}%
\phantomsection
\fi
\expandafter\ifx\csname toclevel@#2\endcsname\relax
\begingroup
\def\Hy@tempa{#1}%
\ifx\Hy@tempa\Hy@bookmarkstype
\Hy@WarningNoLine{%
bookmark level for unknown #2 defaults to 0%
}%
\else
\Hy@Info{bookmark level for unknown #2 defaults to 0}%
\fi
\endgroup
\expandafter\gdef\csname toclevel@#2\endcsname{0}%
\fi
\edef\Hy@toclevel{\csname toclevel@#2\endcsname}%
\Hy@writebookmark{\csname the#2\endcsname}%
{#3}%
{\@currentHref}%
{\Hy@toclevel}%
{#1}%
\ifHy@verbose
\def\Hy@tempa{#3}%
\@onelevel@sanitize\Hy@tempa
\typeout{pdftex: bookmark at \the\inputlineno: %
{\csname the#2\endcsname}%
{\Hy@tempa}%
{\@currentHref}%
{\Hy@toclevel}%
{#1}%
}%
\fi
\addtocontents{#1}{%
\protect\contentsline{#2}{#3}{\thepage}{\@currentHref}%
}%
\endgroup
}
\def\contentsline#1#2#3#4{%
\ifx\\#4\\%
\csname l@#1\endcsname{#2}{#3}%
\else
\ifcase\Hy@linktoc % none
\csname l@#1\endcsname{#2}{#3}%
\or % section
\csname l@#1\endcsname{%
\hyper@linkstart{link}{#4}{#2}\hyper@linkend
}{#3}%
\or % page
\csname l@#1\endcsname{{#2}}{%
\hyper@linkstart{link}{#4}{#3}\hyper@linkend
}%
\else % all
\csname l@#1\endcsname{%
\hyper@linkstart{link}{#4}{#2}\hyper@linkend
}{%
\hyper@linkstart{link}{#4}{#3}\hyper@linkend
}%
\fi
\fi
}
% \end{macrocode}
%
% \begin{macrocode}
%</package>
%<*check>
\checklatex
\checkcommand\def\addcontentsline#1#2#3{%
\addtocontents{#1}{\protect\contentsline{#2}{#3}{\thepage}}%
}
\checkcommand\def\contentsline#1{\csname l@#1\endcsname}
%</check>
%<*package>
% \end{macrocode}
%
% \section{New counters}\label{counters}
% The whole theorem business makes up new counters on the fly;
% we are going to intercept this. Sigh. Do it at the level where
% new counters are defined.
% \begin{macrocode}
\let\H@definecounter\@definecounter
\def\@definecounter#1{%
\H@definecounter{#1}%
\expandafter\def\csname theH#1\endcsname{\arabic{#1}}%
}
% \end{macrocode}
% But what if they have used the optional argument to e.g. |\newtheorem|
% to determine when the numbering is reset? OK, we'll trap that too.
% \begin{macrocode}
\let\H@newctr\@newctr
\def\@newctr#1[#2]{%
\H@newctr#1[{#2}]%
\expandafter\def\csname theH#1\endcsname{%
\csname the\@ifundefined{theH#2}{}{H}#2\endcsname.\arabic{#1}%
}%
}
% \end{macrocode}
% \section{AMS\LaTeX\ compatibility}\label{ams}
% Oh, no, they don't use anything as simple as |\refstepcounter|
% in the AMS! We need to intercept some low-level operations
% of theirs. Damned if we are going to try and work out what
% they get up to. Just stick a label of `AMS' on the front, and use the
% label \emph{they} worked out. If that produces something invalid, I give
% up. They'll change all the code again anyway, I expect (SR).
%
% Version 6.77p uses a patch by Ross Moore.
% \begin{macrocode}
\@ifpackageloaded{amsmath}{%
\def\Hy@make@anchor{%
\Hy@GlobalStepCount\Hy@linkcounter
\xdef\@currentHref{AMS.\the\Hy@linkcounter}%
\Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
}%
\def\Hy@make@df@tag@@#1{%
\gdef\df@tag{%
\maketag@@@{\Hy@make@anchor#1}%
\def\@currentlabel{#1}%
}%
}%
\def\Hy@make@df@tag@@@#1{%
\gdef\df@tag{%
\tagform@{\Hy@make@anchor#1}%
\toks@\@xp{\p@equation{#1}}%
\edef\@currentlabel{\the\toks@}%
}%
}%
\let\HyOrg@make@df@tag@@\make@df@tag@@
\let\HyOrg@make@df@tag@@@\make@df@tag@@@
\let\make@df@tag@@\Hy@make@df@tag@@
\let\make@df@tag@@@\Hy@make@df@tag@@@
}{}
% \end{macrocode}
% Only play with |\seteqlebal| if we are using pdftex. Other drivers
% cause problems; requested by Michael Downes (AMS).
% \begin{macrocode}
\@ifpackagewith{hyperref}{pdftex}{%
\let\H@seteqlabel\@seteqlabel
\def\@seteqlabel#1{%
\H@seteqlabel{#1}%
\xdef\@currentHref{AMS.\the\Hy@linkcounter}%
\Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
}%
}{}
% \end{macrocode}
% This code I simply cannot remember what I was trying to achieve.
% The final result seems to do nothing anyway.
%\begin{verbatim}
%\let\H@tagform@\tagform@
%\def\tagform@#1{%
% \maketag@@@{\hyper@@anchor{\@currentHref}%
% {(\ignorespaces#1\unskip)}}%
%}
%\def\eqref#1{\textup{\H@tagform@{\ref{#1}}}}
%\end{verbatim}
%
% \subsection{\texorpdfstring{\cs{@addtoreset}}{\\@addtoreset} and
% \texorpdfstring{\cs{numberwithin}}{\\numberwithin} patches}
%
% \cs{@addtoreset} puts a counter to the reset list of
% another counter. After a reset the counter starts
% again with perhaps already used values. Therefore
% the hyperref version of the counter print command
% \cs{theHcounter} is redefined in order to add the
% parent counter.
% \begin{macrocode}
\let\HyOrg@addtoreset\@addtoreset
\def\@addtoreset#1#2{%
\HyOrg@addtoreset{#1}{#2}%
\expandafter\xdef\csname theH#1\endcsname{%
\expandafter\noexpand
\csname the\@ifundefined{theH#2}{}H#2\endcsname
.\noexpand\the\noexpand\value{#1}%
}%
}
% \end{macrocode}
%
% \begin{macro}{\numberwithin}
% A appropiate definition of hyperref's companion counter
% (\cmd{\theH...}) is added for correct link names.
% \begin{macrocode}
%</package>
%<*check>
\checkpackage{amsmath}[1999/12/14 - 2000/06/06]
\checkcommand\newcommand{\numberwithin}[3][\arabic]{%
\@ifundefined{c@#2}{\@nocounterr{#2}}{%
\@ifundefined{c@#3}{\@nocnterr{#3}}{%
\@addtoreset{#2}{#3}%
\@xp\xdef\csname the#2\endcsname{%
\@xp\@nx\csname the#3\endcsname .\@nx#1{#2}%
}%
}%
}%
}%
%</check>
%<*package>
\@ifpackageloaded{amsmath}{%
\@ifpackagelater{amsmath}{1999/12/14}{%
\renewcommand*{\numberwithin}[3][\arabic]{%
\@ifundefined{c@#2}{\@nocounterr{#2}}{%
\@ifundefined{c@#3}{\@nocnterr{#3}}{%
\HyOrg@addtoreset{#2}{#3}%
\@xp\xdef\csname the#2\endcsname{%
\@xp\@nx\csname the#3\endcsname .\@nx#1{#2}%
}%
\@xp\xdef\csname theH#2\endcsname{%
\@xp\@nx
\csname the\@ifundefined{theH#3}{}H#3\endcsname
.\@nx#1{#2}%
}%
}%
}%
}%
}{%
\Hy@WarningNoLine{%
\string\numberwithin\space of package `amsmath' %
only fixed\MessageBreak
for version 2000/06/06 v2.12 or newer%
}%
}%
}{}
% \end{macrocode}
% \end{macro}
%
% \section{Included figures}
% Simply intercept the low level graphics package macro.
% \begin{macrocode}
\ifHy@figures
\let\Hy@Gin@setfile\Gin@setfile
\def\Gin@setfile#1#2#3{%
\hyperimage{#3}{\Hy@Gin@setfile{#1}{#2}{#3}}%
}%
\fi
\Hy@DisableOption{hyperfigures}
% \end{macrocode}
%
% \section{hyperindex entries}\label{hyperindex}
% Internal command names are prefixed with \cmd{\HyInd@}.
%
% Hyper-indexing works crudely, by forcing code onto the end of the index
% entry with the \verb+|+ feature; this puts a hyperlink around
% the printed page numbers. It will not proceed if the author has already
% used the \verb+|+ specifier for something like emboldening entries.
% That would make Makeindex fail (cannot have two \verb+|+ specifiers).
% The solution is for the author to use generic coding, and put in
% the requisite |\hyperpage| in his/her own macros along with the boldness.
%
% This section is poor stuff; it's open to all sorts of abuse. Sensible
% large projects will design their own indexing macros any bypass this.
% \begin{macrocode}
\ifHy@hyperindex
\def\HyInd@ParenLeft{(}%
\def\HyInd@ParenRight{)}%
\def\hyperindexformat#1#2{%
\let\HyOrg@hyperpage\hyperpage
\let\hyperpage\@firstofone
#1{\HyOrg@hyperpage{#2}}%
\let\hyperpage\HyOrg@hyperpage
}%
\Hy@nextfalse
\@ifpackageloaded{multind}{\Hy@nexttrue}{}%
\@ifpackageloaded{index}{\Hy@nexttrue}{}%
\@ifpackageloaded{amsmidx}{\Hy@nexttrue}{}%
\begingroup
\lccode`\|=\expandafter`\HyInd@EncapChar\relax
\lccode`\/=`\\\relax
\lowercase{\endgroup
\ifHy@next
\let\HyInd@org@wrindex\@wrindex
\def\@wrindex#1#2{\HyInd@@wrindex{#1}#2||\\}%
\def\HyInd@@wrindex#1#2|#3|#4\\{%
\ifx\\#3\\%
\HyInd@org@wrindex{#1}{#2|hyperpage}%
\else
\HyInd@@@wrindex{#1}{#2}#3\\%
\fi
}%
\def\HyInd@@@wrindex#1#2#3#4\\{%
\def\Hy@temp@A{#3}%
\ifcase0\ifx\Hy@temp@A\HyInd@ParenLeft 1\fi
\ifx\Hy@temp@A\HyInd@ParenRight 1\fi
\relax
\HyInd@org@wrindex{#1}{%
#2|hyperindexformat{/#3#4}%
}%
\else
\ifx\\#4\\%
\ifx\Hy@temp@A\HyInd@ParenRight
\HyInd@org@wrindex{#1}{#2|#3}%
\else
\HyInd@org@wrindex{#1}{#2|#3hyperpage}%
\fi
\else
\HyInd@org@wrindex{#1}{%
#2|#3hyperindexformat{/#4}%
}%
\fi
\fi
}%
\else
\def\@wrindex#1{\@@wrindex#1||\\}%
\def\@@wrindex#1|#2|#3\\{%
\if@filesw
\ifx\\#2\\%
\protected@write\@indexfile{}{%
\string\indexentry{#1|hyperpage}{\thepage}%
}%
\else
\HyInd@@@wrindex{#1}#2\\%
\fi
\fi
\endgroup
\@esphack
}%
\def\HyInd@@@wrindex#1#2#3\\{%
\def\Hy@temp@A{#2}%
\ifcase0\ifx\Hy@temp@A\HyInd@ParenLeft 1\fi
\ifx\Hy@temp@A\HyInd@ParenRight 1\fi
\relax
\protected@write\@indexfile{}{%
\string\indexentry{%
#1|hyperindexformat{/#2#3}%
}{\thepage}%
}%
\else
\ifx\\#3\\%
\ifx\Hy@temp@A\HyInd@ParenRight
\protected@write\@indexfile{}{%
\string\indexentry{#1|#2}{\thepage}%
}%
\else
\protected@write\@indexfile{}{%
\string\indexentry{#1|#2hyperpage}{\thepage}%
}%
\fi
\else
\protected@write\@indexfile{}{%
\string\indexentry{%
#1|#2hyperindexformat{/#3}%
}{\thepage}%
}%
\fi
\fi
}%
\fi
}%
\fi
\Hy@DisableOption{hyperindex}
\Hy@DisableOption{encap}
% \end{macrocode}
%
% \begin{macro}{\nohyperpage}
% The definition of \cs{nohyperpage} is just a precaution.
% It is used to mark code that does not belong to a page
% number, but \cs{nohyperpage} is never executed.
% \begin{macrocode}
\def\nohyperpage#1{#1}
% \end{macrocode}
% \end{macro}
% This again is quite flaky, but allow for the common situation of a
% page range separated by en-rule. We split this into two different
% hyperlinked pages.
% \begin{macrocode}
\def\hyperpage#1{%
\HyInd@hyperpage#1\nohyperpage{}\@nil
}
\def\HyInd@hyperpage#1\nohyperpage#2#3\@nil{%
\HyInd@@hyperpage{#1}%
#2%
\def\Hy@temp{#3}%
\ifx\Hy@temp\@empty
\else
\Hy@ReturnAfterFi{%
\HyInd@hyperpage#3\@nil
}%
\fi
}
\def\HyInd@@hyperpage#1{\@hyperpage#1----\\}
\def\@hyperpage#1--#2--#3\\{%
\ifx\\#2\\%
\@commahyperpage{#1}%
\else
\HyInd@pagelink{#1}--\HyInd@pagelink{#2}%
\fi
}
\def\@commahyperpage#1{\@@commahyperpage#1, ,\\}
\def\@@commahyperpage#1, #2,#3\\{%
\ifx\\#2\\%
\HyInd@pagelink{#1}%
\else
\HyInd@pagelink{#1}, \HyInd@pagelink{#2}%
\fi
}
% \end{macrocode}
%
% The argument of \cmd{\hyperpage} can be empty. And the
% line breaking algorithm of Makeindex can introduce spaces.
% So we have to remove them.
% \begin{macrocode}
\def\HyInd@pagelink#1{%
\begingroup
\toks@={}%
\HyInd@removespaces#1 \@nil
\endgroup
}
\def\HyInd@removespaces#1 #2\@nil{%
\toks@=\expandafter{\the\toks@#1}%
\ifx\\#2\\%
\edef\x{\the\toks@}%
\ifx\x\@empty
\else
\hyperlink{page.\the\toks@}{\the\toks@}%
\fi
\else
\Hy@ReturnAfterFi{%
\HyInd@removespaces#2\@nil
}%
\fi
}
% \end{macrocode}
%
% \section{Compatibility with foiltex}
%
% \begin{macrocode}
\@ifclassloaded{foils}{%
\providecommand*\ext@table{lot}%
\providecommand*\ext@figure{lof}%
}{}
% \end{macrocode}
%
% \section{Compatibility with seminar slide package}\label{seminar}
% This requires \texttt{seminar.bg2}, version 1.6 or later.
% Contributions by Denis Girou (\Email{denis.girou@idris.fr}).
% \begin{macrocode}
\@ifclassloaded{seminar}{%
\Hy@seminarslidestrue\newcommand\theHslide{\arabic{slide}}%
}{%
\Hy@seminarslidesfalse
}
\@ifpackageloaded{slidesec}{%
\newcommand\theHslidesection {\arabic{slidesection}}%
\newcommand\theHslidesubsection{%
\theHslidesection.\arabic{slidesubsection}%
}%
\def\slide@heading[#1]#2{%
\H@refstepcounter{slidesection}%
\@addtoreset{slidesubsection}{slidesection}%
\addtocontents{los}{%
\protect\l@slide{\the\c@slidesection}{\ignorespaces#1}%
{\@SCTR}{slideheading.\theslidesection}%
}%
\def\Hy@tempa{#2}%
\ifx\Hy@tempa\@empty
\else
{%
\edef\@currentlabel{%
\csname p@slidesection\endcsname\theslidesection
}%
\makeslideheading{#2}%
}%
\fi
\gdef\theslideheading{#1}%
\gdef\theslidesubheading{}%
\ifHy@bookmarksnumbered
\def\Hy@slidetitle{\theslidesection\space #1}%
\else
\def\Hy@slidetitle{#1}%
\fi
\ifHy@hypertexnames
\ifHy@naturalnames
\hyper@@anchor{slideheading.\theslidesection}{\relax}%
\Hy@writebookmark
{\theslidesection}%
{\Hy@slidetitle}%
{slideheading.\theslidesection}%
{1}%
{toc}%
\else
\hyper@@anchor{slideheading.\theHslidesection}{\relax}%
\Hy@writebookmark
{\theslidesection}%
{\Hy@slidetitle}%
{slideheading.\theHslidesection}%
{1}%
{toc}%
\fi
\else
\Hy@GlobalStepCount\Hy@linkcounter
\hyper@@anchor{slideheading.\the\Hy@linkcounter}{\relax}%
\Hy@writebookmark
{\theslidesection}%
{\Hy@slidetitle}%
{slideheading.\the\Hy@linkcounter}%
{1}%
{toc}%
\fi
}%
\def\slide@subheading[#1]#2{%
\H@refstepcounter{slidesubsection}%
\addtocontents{los}{%
\protect\l@subslide{\the\c@slidesubsection}{\ignorespaces#1}%
{\@SCTR}{slideheading.\theslidesubsection}%
}%
\def\Hy@tempa{#2}%
\ifx\Hy@tempa\@empty
\else
{%
\edef\@currentlabel{%
\csname p@slidesubsection\endcsname\theslidesubsection
}%
\makeslidesubheading{#2}%
}%
\fi
\gdef\theslidesubheading{#1}%
\ifHy@bookmarksnumbered
\def\Hy@slidetitle{\theslidesubsection\space #1}%
\else
\def\Hy@slidetitle{#1}%
\fi
\ifHy@hypertexnames
\ifHy@naturalnames
\hyper@@anchor{slideheading.\theslidesubsection}{\relax}%
\Hy@writebookmark
{\theslidesubsection}%
{\Hy@slidetitle}%
{slideheading.\theslidesubsection}%
{2}%
{toc}%
\else
\hyper@@anchor{slideheading.\theHslidesubsection}{\relax}%
\Hy@writebookmark
{\theslidesubsection}%
{\Hy@slidetitle}%
{slideheading.\theHslidesubsection}%
{2}%
{toc}%
\fi
\else
\Hy@GlobalStepCount\Hy@linkcounter
\hyper@@anchor{slideheading.\the\Hy@linkcounter}{\relax}%
\Hy@writebookmark
{\theslidesubsection}%
{\Hy@slidetitle}%
{slideheading.\the\Hy@linkcounter}%
{1}%
{toc}%
\fi
}%
\providecommand*{\listslidename}{List of Slides}%
\def\listofslides{%
\section*{%
\listslidename
\@mkboth{%
\expandafter\MakeUppercase\listslidename
}{%
\expandafter\MakeUppercase\listslidename
}%
}%
\def\l@slide##1##2##3##4{%
\slide@undottedcline{%
\slidenumberline{##3}{\hyperlink{##4}{##2}}%
}{}%
}%
\let\l@subslide\l@slide
\@startlos
}%
\def\slide@contents{%
\def\l@slide##1##2##3##4{%
\slide@cline{\slidenumberline{##3}{\hyperlink{##4}{##2}}}{##3}%
}%
\let\l@subslide\@gobblefour
\@startlos
}%
\def\Slide@contents{%
\def\l@slide##1##2##3##4{%
\ifcase\lslide@flag
\message{##1 ** \the\c@slidesection}%
\ifnum##1>\c@slidesection
\def\lslide@flag{1}%
{%
\large
\slide@cline{%
\slidenumberline{$\Rightarrow\bullet$}%
{\hyperlink{##4}{##2}}%
}{##3}%
}%
\else
{%
\large
\slide@cline{%
\slidenumberline{$\surd\;\bullet$}%
{\hyperlink{##4}{##2}}%
}{##3}%
}%
\fi
\or
\def\lslide@flag{2}%
{%
\large
\slide@cline{%
\slidenumberline{$\bullet$}%
{\hyperlink{##4}{##2}}%
}{##3}%
}%
\or
{%
\large
\slide@cline{%
\slidenumberline{$\bullet$}%
{\hyperlink{##4}{##2}}%
}{##3}%
}%
\fi
}%
\def\l@subslide##1##2##3##4{%
\ifnum\lslide@flag=1 %
\@undottedtocline{2}{3.8em}{3.2em}{\hyperlink{##4}{##2}}{}%
\fi
}%
\def\lslide@flag{0}%
\@startlos
}%
}{}
% \end{macrocode}
% This breaks TeX4ht, so leave it to last.
% Emend |\@setref| to put out a hypertext link as well as its
% normal text (which is used as an anchor).
% (|\endinput| have to be on the same line like |\fi|, or you
% have to use |\expandafter| before.)
% \begin{macrocode}
\ifHy@texht
\expandafter\endinput
\fi
\let\real@setref\@setref
\def\@setref#1#2#3{% csname, extract group, refname
\ifx#1\relax
\protect\G@refundefinedtrue
\nfss@text{\reset@font\bfseries ??}%
\@latex@warning{%
Reference `#3' on page \thepage \space undefined%
}%
\else
\expandafter\Hy@setref@link#1\@empty\@empty\@nil{#2}%
\fi
}
% \end{macrocode}
% \cmd{\Hy@setref@link} extracts the reference information entries,
% because \cmd{\hyper@@link} does not expand arguments for the
% automatic link type detection.
% \begin{macrocode}
\def\Hy@setref@link#1#2#3#4#5#6\@nil#7{%
\begingroup
\toks0={\hyper@@link{#5}{#4}}%
\toks1=\expandafter{#7{#1}{#2}{#3}{#4}{#5}}%
\edef\x{\endgroup
\the\toks0 {\the\toks1 }%
}%
\x
}
\def\@pagesetref#1#2#3{% csname, extract macro, ref
\ifx#1\relax
\protect\G@refundefinedtrue
\nfss@text{\reset@font\bfseries ??}%
\@latex@warning{%
Reference `#3' on page \thepage \space undefined%
}%
\else
\protect\hyper@@link
{\expandafter\@fifthoffive#1}%
{page.\expandafter\@secondoffive#1}%
{\expandafter\@secondoffive#1}%
\fi
}
% \end{macrocode}
%
% \begin{macrocode}
%</package>
%<*check>
\checklatex
\checkcommand\def\@setref#1#2#3{%
\ifx#1\relax
\protect\G@refundefinedtrue
\nfss@text{\reset@font\bfseries ??}%
\@latex@warning{%
Reference `#3' on page \thepage\space undefined%
}%
\else
\expandafter#2#1\null
\fi
}
%</check>
%<*package>
% \end{macrocode}
%
% Now some extended referencing. |\ref*| and |\pageref*| are not linked,
% and |\autoref| prefixes with a tag based on the type.
% \begin{macrocode}
\def\HyRef@StarSetRef#1{%
\begingroup
\Hy@safe@activestrue
\edef\x{#1}%
\@onelevel@sanitize\x
\edef\x{\endgroup
\noexpand\HyRef@@StarSetRef
\expandafter\noexpand\csname r@\x\endcsname{\x}%
}%
\x
}
\def\HyRef@@StarSetRef#1#2#3{%
\ifx#1\@undefined
\let#1\relax
\fi
\real@setref#1#3{#2}%
}
\def\@refstar#1{%
\HyRef@StarSetRef{#1}\@firstoffive
}
\def\@pagerefstar#1{%
\HyRef@StarSetRef{#1}\@secondoffive
}
\AtBeginDocument{%
\@ifpackageloaded{varioref}{%
\def\@Refstar#1{%
\HyRef@StarSetRef{#1}\HyRef@MakeUppercaseFirstOfFive
}%
\def\HyRef@MakeUppercaseFirstOfFive#1#2#3#4#5{%
\MakeUppercase#1%
}%
\DeclareRobustCommand*{\Ref}{%
\@ifstar\@Refstar\HyRef@Ref
}%
\def\HyRef@Ref#1{%
\hyperref[{#1}]{\Ref*{#1}}%
}%
\def\Vr@f#1{%
\leavevmode\unskip\vref@space
\hyperref[{#1}]{%
\Ref*{#1}%
\let\vref@space\nobreakspace
\@vpageref[\unskip]{#1}%
}%
}%
\def\vr@f#1{%
\leavevmode\unskip\vref@space
\begingroup
\let\T@pageref\@pagerefstar
\hyperref[{#1}]{%
\ref*{#1}%
\vpageref[\unskip]{#1}%
}%
\endgroup
}%
}{}%
}
\DeclareRobustCommand*{\autopageref}{%
\@ifstar{%
\HyRef@autopagerefname\pageref*%
}\HyRef@autopageref
}
\def\HyRef@autopageref#1{%
\hyperref[{#1}]{\HyRef@autopagerefname\pageref*{#1}}%
}
\def\HyRef@autopagerefname{%
\@ifundefined{pageautorefname}{%
\@ifundefined{pagename}{%
\Hy@Warning{No autoref name for `page'}%
}{%
\pagename\nobreakspace
}%
}{%
\pageautorefname\nobreakspace
}%
}
\DeclareRobustCommand*{\autoref}{%
\@ifstar{\HyRef@autoref\@gobbletwo}{\HyRef@autoref\hyper@@link}%
}
\def\HyRef@autoref#1#2{%
\begingroup
\Hy@safe@activestrue
\expandafter\HyRef@autosetref\csname r@#2\endcsname{#2}{#1}%
\endgroup
}
\def\HyRef@autosetref#1#2#3{% link command, csname, refname
\HyRef@ShowKeysRef{#2}%
\ifcase 0\ifx#1\relax 1\fi\ifx#1\Hy@varioref@undefined 1\fi\relax
\edef\HyRef@thisref{%
\expandafter\@fourthoffive#1\@empty\@empty\@empty
}%
\expandafter\HyRef@testreftype\HyRef@thisref.\\%
\Hy@safe@activesfalse
#3{%
\expandafter\@fifthoffive#1\@empty\@empty\@empty
}{%
\expandafter\@fourthoffive#1\@empty\@empty\@empty
}{%
\HyRef@currentHtag
\expandafter\@firstoffive#1\@empty\@empty\@empty
\null
}%
\else
\protect\G@refundefinedtrue
\nfss@text{\reset@font\bfseries ??}%
\@latex@warning{%
Reference `#2' on page \thepage\space undefined%
}%
\fi
}
\def\HyRef@testreftype#1.#2\\{%
\@ifundefined{#1autorefname}{%
\@ifundefined{#1name}{%
\HyRef@StripStar#1\\*\\\@nil{#1}%
\@ifundefined{\HyRef@name autorefname}{%
\@ifundefined{\HyRef@name name}{%
\def\HyRef@currentHtag{}%
\Hy@Warning{No autoref name for `#1'}%
}{%
\edef\HyRef@currentHtag{%
\expandafter\noexpand\csname\HyRef@name name\endcsname
\noexpand~%
}%
}%
}{%
\edef\HyRef@currentHtag{%
\expandafter\noexpand\csname\HyRef@name autorefname\endcsname
\noexpand~%
}%
}%
}{%
\edef\HyRef@currentHtag{%
\expandafter\noexpand\csname#1name\endcsname
\noexpand~%
}%
}%
}{%
\edef\HyRef@currentHtag{%
\expandafter\noexpand\csname#1autorefname\endcsname
\noexpand~%
}%
}%
}
\def\HyRef@StripStar#1*\\#2\@nil#3{%
\def\HyRef@name{#2}%
\ifx\HyRef@name\HyRef@CaseStar
\def\HyRef@name{#1}%
\else
\def\HyRef@name{#3}%
\fi
}
\def\HyRef@CaseStar{*\\}
\def\HyRef@currentHtag{}
% \end{macrocode}
%
% Support for package |showkeys|.
% \begin{macro}{\HyRef@ShowKeysRef}
% \begin{macrocode}
\let\HyRef@ShowKeysRef\@gobble
\def\HyRef@ShowKeysInit{%
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname SK@@label\endcsname\relax
\else
\ifx\SK@ref\@empty
\else
\def\HyRef@ShowKeysRef{%
\SK@\SK@@ref
}%
\fi
\fi
}
\@ifpackageloaded{showkeys}{%
\HyRef@ShowKeysInit
}{%
\AtBeginDocument{%
\@ifpackageloaded{showkeys}{%
\HyRef@ShowKeysInit
}{}%
}%
}
% \end{macrocode}
% \end{macro}
%
% Defaults for the names that \cmd{\autoref} uses.
% \begin{macrocode}
\providecommand*\AMSautorefname{\equationautorefname}
\providecommand*\Hfootnoteautorefname{\footnoteautorefname}
\providecommand*\Itemautorefname{\itemautorefname}
\providecommand*\itemautorefname{item}
\providecommand*\equationautorefname{Equation}
\providecommand*\footnoteautorefname{footnote}
\providecommand*\itemautorefname{item}
\providecommand*\figureautorefname{Figure}
\providecommand*\tableautorefname{Table}
\providecommand*\partautorefname{Part}
\providecommand*\appendixautorefname{Appendix}
\providecommand*\chapterautorefname{chapter}
\providecommand*\sectionautorefname{section}
\providecommand*\subsectionautorefname{subsection}
\providecommand*\subsubsectionautorefname{subsubsection}
\providecommand*\paragraphautorefname{paragraph}
\providecommand*\subparagraphautorefname{subparagraph}
\providecommand*\FancyVerbLineautorefname{line}
\providecommand*\theoremautorefname{Theorem}
\providecommand*\pageautorefname{page}
% \end{macrocode}
%
% \begin{macrocode}
%</package>
% \end{macrocode}
%
% \section{Configuration files}
%
% \subsection{PS/PDF strings}
%
% Some drivers write PS or PDF strings. These strings are delimited
% by parentheses, therefore a lonely unmatched parenthesis must be
% avoided to avoid PS or PDF syntax errors. Also the backslash character
% itself has to be protected.
%
% \begin{macro}{\Hy@pstringdef}
% Therefore such strings should be passed through |\Hy@pstringdef|.
% The first argument holds a macro for the result, the second
% argument is the string that needs protecting.
% Since version 1.30.0 pdf\TeX\ offers \cs{pdfescapestring}.
% \begin{macrocode}
%<*pdftex|dvipdfm|vtex|pdfmarkbase|dviwindo>
\RequirePackage{pdftexcmds}[2009/04/10]
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname pdf@escapestring\endcsname\relax
\begingroup
\catcode`\|=0 %
\@makeother\\%
|@firstofone{|endgroup
|def|Hy@pstringdef#1#2{%
|begingroup
|edef~{|string~}%
|xdef|Hy@gtemp{#2}%
|endgroup
|let#1|Hy@gtemp
|@onelevel@sanitize#1%
|edef#1{|expandafter|Hy@ExchangeBackslash#1\|@nil}%
|edef#1{|expandafter|Hy@ExchangeLeftParenthesis#1(|@nil}%
|edef#1{|expandafter|Hy@ExchangeRightParenthesis#1)|@nil}%
}%
|def|Hy@ExchangeBackslash#1\#2|@nil{%
#1%
|ifx|\#2|\%%
|else
\\%
|Hy@ReturnAfterFi{%
|Hy@ExchangeBackslash#2|@nil
}%
|fi
}%
}%
\def\Hy@ExchangeLeftParenthesis#1(#2\@nil{%
#1%
\ifx\\#2\\%
\else
\@backslashchar(%
\Hy@ReturnAfterFi{%
\Hy@ExchangeLeftParenthesis#2\@nil
}%
\fi
}%
\def\Hy@ExchangeRightParenthesis#1)#2\@nil{%
#1%
\ifx\\#2\\%
\else
\@backslashchar)%
\Hy@ReturnAfterFi{%
\Hy@ExchangeRightParenthesis#2\@nil
}%
\fi
}%
\else
\def\Hy@pstringdef#1#2{%
\begingroup
\edef~{\string~}%
\xdef\Hy@gtemp{\pdf@escapestring{#2}}%
\endgroup
\let#1\Hy@gtemp
}%
\fi
%</pdftex|dvipdfm|vtex|pdfmarkbase|dviwindo>
% \end{macrocode}
% \end{macro}
%
% \subsection{pdftex}
%
% \begin{macrocode}
%<*pdftex>
\providecommand*{\XR@ext}{pdf}
\Hy@setbreaklinks{true}
% \end{macrocode}
% This driver is for Han The Thanh's \TeX{} variant
% which produces PDF directly. This has new primitives
% to do PDF things, which usually translate almost directly to
% PDF code, so there is a lot of flexibility which we do not at
% present harness.
%
% Set PDF version if requested by option \textsf{pdfversion}.
% \begin{itemize}
% \item pdf\TeX\ 1.10a, 2003-01-16: \cs{pdfoptionpdfminorversion}
% \item pdf\TeX\ 1.30, 2005-08-081: \cs{pdfminorversion}
% \end{itemize}
% \begin{macrocode}
\let\Hy@pdfminorversion\relax
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname pdfminorversion\endcsname\relax
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname pdfoptionpdfminorversion\endcsname\relax
\else
\def\Hy@pdfminorversion{\pdfoptionpdfminorversion}%
\fi
\else
\def\Hy@pdfminorversion{\pdfminorversion}%
\fi
\@ifundefined{Hy@pdfminorversion}{%
\PackageInfo{hyperref}{%
PDF version is not set, because pdfTeX is too old (<1.10a)%
}%
}{%
\ifHy@ocgcolorlinks
\ifnum\Hy@pdfminorversion<5 %
\setkeys{Hyp}{pdfversion=1.5}%
\fi
\fi
\ifHy@setpdfversion
\ifnum\Hy@pdfminorversion=\Hy@pdfversion\relax
\else
\Hy@pdfminorversion=\Hy@pdfversion\relax
\fi
\PackageInfo{hyperref}{%
\expandafter\string\Hy@pdfminorversion
:=\number\Hy@pdfversion\space
}%
\fi
\edef\Hy@pdfversion{\number\Hy@pdfminorversion}%
}
\Hy@DisableOption{pdfversion}%
% \end{macrocode}
%
% \begin{macrocode}
\ifHy@ocgcolorlinks
\immediate\pdfobj{%
<<%
/Type/OCG%
/Name(View)%
/Usage<<%
/Print<<%
/PrintState/OFF%
>>%
/View<<%
/ViewState/ON%
>>%
>>%
>>%
}%
\edef\OBJ@OCG@view{\the\pdflastobj\space 0 R}%
\immediate\pdfobj{%
<<%
/Type/OCG%
/Name(Print)%
/Usage<<%
/Print<<%
/PrintState/ON%
>>%
/View<<%
/ViewState/OFF%
>>%
>>%
>>%
}%
\edef\OBJ@OCG@print{\the\pdflastobj\space 0 R}%
\immediate\pdfobj{%
[%
\OBJ@OCG@view\space\OBJ@OCG@print
]%
}%
\edef\OBJ@OCGs{\the\pdflastobj\space 0 R}%
\pdfcatalog{%
/OCProperties<<%
/OCGs \OBJ@OCGs
/D<<%
/OFF[\OBJ@OCG@print]%
/AS[%
<<%
/Event/View%
/OCGs \OBJ@OCGs
/Category[/View]%
>>%
<<%
/Event/Print%
/OCGs \OBJ@OCGs
/Category[/Print]%
>>%
<<%
/Event/Export%
/OCGs \OBJ@OCGs
/Category[/Print]%
>>%
]%
>>%
>>%
}%
\begingroup
\edef\x{\endgroup
\pdfpageresources{%
/Properties<<%
/OCView \OBJ@OCG@view
/OCPrint \OBJ@OCG@print
>>%
}%
}%
\x
\AtBeginDocument{%
\def\Hy@colorlink#1{%
\begingroup
\ifHy@ocgcolorlinks
\def\Hy@ocgcolor{#1}%
\setbox0=\color@hbox
\else
\HyColor@UseColor#1%
\fi
}%
\def\Hy@endcolorlink{%
\ifHy@ocgcolorlinks
\color@endbox
\mbox{%
\pdfliteral page{/OC/OCPrint BDC}%
\rlap{\copy0}%
\pdfliteral page{EMC/OC/OCView BDC}%
\begingroup
\expandafter\HyColor@UseColor\Hy@ocgcolor
\box0 %
\endgroup
\pdfliteral page{EMC}%
}%
\fi
\endgroup
}%
}%
\else
\Hy@DisableOption{ocgcolorlinks}%
\fi
% \end{macrocode}
%
% First, allow for some changes and additions to pdftex syntax:
% \begin{macrocode}
\def\setpdflinkmargin#1{\pdflinkmargin#1}
\ifx\pdfstartlink\@undefined% less than version 14
\let\pdfstartlink\pdfannotlink
\let\pdflinkmargin\@tempdima
\let\pdfxform\pdfform
\let\pdflastxform\pdflastform
\let\pdfrefxform\pdfrefform
\else
\pdflinkmargin1pt %
\fi
% \end{macrocode}
% First set up the default linking
% \begin{macrocode}
\providecommand*\@pdfview{XYZ}
% \end{macrocode}
% First define the anchors:
% \begin{macrocode}
\def\new@pdflink#1{%
\ifHy@verbose
\typeout{pdftex: define anchor at line \the\inputlineno: #1}%
\fi
\Hy@SaveLastskip
\Hy@pstringdef\Hy@pstringDest{\HyperDestNameFilter{#1}}%
\Hy@DestName\Hy@pstringDest\@pdfview
\Hy@RestoreLastskip
}
\let\pdf@endanchor\@empty
% \end{macrocode}
% \begin{macro}{\Hy@DestName}
% Wrap the call of \verb|\pdfdest name| in \cs{Hy@DestName}.
% Then it can easier be catched by package |hypdestopt|.
% \begin{macrocode}
\def\Hy@DestName#1#2{%
\pdfdest name{#1}#2\relax
}
% \end{macrocode}
% \end{macro}
%
% Now the links; the interesting part here is the set of attributes
% which define how the link looks. We probably want to add a border
% and color it, but there are other choices. This directly translates
% to PDF code, so consult the manual for how to change this. We will
% add an interface at some point.
% \begin{macrocode}
\providecommand*\@pdfborder{0 0 1}
\providecommand*\@pdfborderstyle{}
\def\Hy@undefinedname{UNDEFINED}
\def\find@pdflink#1#2{%
\leavevmode
\protected@edef\Hy@testname{#2}%
\ifx\Hy@testname\@empty
\Hy@Warning{%
Empty destination name,\MessageBreak
using `\Hy@undefinedname'%
}%
\let\Hy@testname\Hy@undefinedname
\else
\Hy@pstringdef\Hy@testname{%
\expandafter\HyperDestNameFilter\expandafter{\Hy@testname}%
}%
\fi
\Hy@StartlinkName{%
\ifHy@pdfa /F 4\fi
\Hy@setpdfborder
\ifx\@pdfhighlight\@empty
\else
/H\@pdfhighlight
\fi
\ifx\CurrentBorderColor\relax
\else
/C[\CurrentBorderColor]%
\fi
}\Hy@testname
\expandafter\Hy@colorlink\csname @#1color\endcsname
}
\def\Hy@StartlinkName#1#2{%
\pdfstartlink attr{#1}goto name{#2}\relax
}
\def\close@pdflink{\Hy@endcolorlink\pdfendlink}
\def\hyper@anchor#1{\new@pdflink{#1}\anchor@spot\pdf@endanchor}
\def\hyper@anchorstart#1{\new@pdflink{#1}\Hy@activeanchortrue}
\def\hyper@anchorend{\pdf@endanchor\Hy@activeanchorfalse}
\def\hyper@linkstart#1#2{%
\@ifundefined{@#1bordercolor}{%
\let\CurrentBorderColor\relax
}{%
\edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}%
}%
\find@pdflink{#1}{#2}%
}
\def\hyper@linkend{\close@pdflink}
\def\hyper@link#1#2#3{%
\@ifundefined{@#1bordercolor}{%
\let\CurrentBorderColor\relax
}{%
\edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}%
}%
\find@pdflink{#1}{#2}#3%
\close@pdflink
}
\let\CurrentBorderColor\@linkbordercolor
\def\hyper@linkurl#1#2{%
\begingroup
\Hy@pstringdef\Hy@pstringURI{#2}%
\hyper@chars
\leavevmode
\pdfstartlink
attr{%
\Hy@setpdfborder
\ifx\@pdfhightlight\@empty
\else
/H\@pdfhighlight
\fi
\ifx\@urlbordercolor\relax
\else
/C[\@urlbordercolor]%
\fi
}%
user{%
/Subtype/Link%
\ifHy@pdfa /F 4\fi
/A<<%
/Type/Action%
/S/URI%
/URI(\Hy@pstringURI)%
>>%
}%
\relax
\Hy@colorlink\@urlcolor#1%
\close@pdflink
\endgroup
}
\def\hyper@linkfile#1#2#3{% anchor text, filename, linkname
\begingroup
\Hy@pstringdef\Hy@pstringF{#2}%
\Hy@pstringdef\Hy@pstringD{#3}%
\leavevmode
\pdfstartlink
attr{%
\Hy@setpdfborder
\ifx\@pdfhighlight\@empty
\else
/H\@pdfhighlight
\fi
\ifx\@filebordercolor\relax
\else
/C[\@filebordercolor]%
\fi
}%
user {%
/Subtype/Link%
\ifHy@pdfa /F 4\fi
/A<<%
/F(\Hy@pstringF)%
/S/GoToR%
\Hy@SetNewWindow
% \end{macrocode}
% If |#3| is empty, page 0; if its a number, Page number, otherwise
% a named destination.
% \begin{verbatim}
% \afterassignment\xxx\count@=0\foo!%
%
%\def\xxx#1!{%
% \ifx\xxx#1\xxx
% foo was an integer
% \else
% it wasnt
% \fi}
% \end{verbatim}
% \begin{macrocode}
\ifx\\#3\\%
/D[0 \@pdfstartview]%
\else
/D(\Hy@pstringD)%
\fi
>>%
}%
\relax
\Hy@colorlink\@filecolor#1%
\close@pdflink
\endgroup
}
\def\@hyper@launch run:#1\\#2#3{% filename, anchor text linkname
\begingroup
\Hy@pstringdef\Hy@pstringF{#1}%
\Hy@pstringdef\Hy@pstringP{#3}%
\leavevmode
\pdfstartlink
attr{%
\Hy@setpdfborder
\ifx\@pdfhighlight\@empty
\else
/H\@pdfhighlight
\fi
\ifx\@runbordercolor\relax
\else
/C[\@runbordercolor]%
\fi
}%
user {%
/Subtype/Link%
\ifHy@pdfa /F 4\fi
/A<<%
/F(\Hy@pstringF)%
/S/Launch%
\Hy@SetNewWindow
\ifx\\#3\\%
\else
/Win<</P(\Hy@pstringP)/F(\Hy@pstringF)>>%
\fi
>>%
}%
\relax
\Hy@colorlink\@runcolor#2%
\close@pdflink
\endgroup
}
% \end{macrocode}
% \begin{macro}{\@pdfproducer}
% \begin{macrocode}
\ifx\@pdfproducer\relax
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname luatexversion\endcsname\relax
\def\@pdfproducer{pdfTeX}%
\ifx\eTeXversion\@undefined
\else
\ifx\eTeXversion\relax
\else
\ifnum\eTeXversion>0 %
\def\@pdfproducer{pdfeTeX}%
\fi
\fi
\fi
\ifx\pdftexversion\@undefined
\else
\ifnum\pdftexversion<100 %
\edef\@pdfproducer{%
\@pdfproducer
\the\pdftexversion.\pdftexrevision
}%
\else
\ifnum\pdftexversion<130 %
\edef\@pdfproducer{%
\@pdfproducer-%
\expandafter\@car\the\pdftexversion\@empty\@nil.%
\expandafter\@cdr\the\pdftexversion\@empty\@nil
\pdftexrevision
}%
\else
\ifnum\pdftexversion<140 %
\else
\def\@pdfproducer{pdfTeX}%
\fi
\edef\@pdfproducer{%
\@pdfproducer-%
\expandafter\@car\the\pdftexversion\@empty\@nil.%
\expandafter\@cdr\the\pdftexversion\@empty\@nil.%
\pdftexrevision
}%
\fi
\fi
\fi
\else
\begingroup
\count@=\luatexversion
\divide\count@ by 100 %
\edef\x{\the\count@}%
\count@=-\x\relax
\multiply\count@ by 100 %
\advance\count@ by \luatexversion
\edef\x{\endgroup
\def\noexpand\@pdfproducer{%
LuaTeX-\x.\the\count@.\luatexrevision
}%
}%
\x
\fi
\fi
% \end{macrocode}
% \end{macro}
% \begin{macro}{\PDF@SetupDox}
% \begin{macrocode}
\def\PDF@SetupDoc{%
\ifx\@pdfpagescrop\@empty
\else
\edef\process@me{%
\pdfpagesattr={%
/CropBox[\@pdfpagescrop]%
\expandafter\ifx\expandafter\\\the\pdfpagesattr\\%
\else
^^J\the\pdfpagesattr
\fi
}%
}%
\process@me
\fi
\Hy@pstringdef\Hy@pstringB{\@baseurl}%
\pdfcatalog{%
/PageMode/\@pdfpagemode
\ifx\@baseurl\@empty
\else
/URI<</Base(\Hy@pstringB)>>%
\fi
}%
\ifx\@pdfstartpage\@empty
\else
\ifx\@pdfstartview\@empty
\else
openaction goto page\@pdfstartpage{\@pdfstartview}%
\fi
\fi
\edef\Hy@temp{%
\ifHy@toolbar\else /HideToolbar true\fi
\ifHy@menubar\else /HideMenubar true\fi
\ifHy@windowui\else /HideWindowUI true\fi
\ifHy@fitwindow /FitWindow true\fi
\ifHy@centerwindow /CenterWindow true\fi
\ifHy@displaydoctitle /DisplayDocTitle true\fi
\Hy@UseNameKey{NonFullScreenPageMode}\@pdfnonfullscreenpagemode
\Hy@UseNameKey{Direction}\@pdfdirection
\Hy@UseNameKey{ViewArea}\@pdfviewarea
\Hy@UseNameKey{ViewClip}\@pdfviewclip
\Hy@UseNameKey{PrintArea}\@pdfprintarea
\Hy@UseNameKey{PrintClip}\@pdfprintclip
\Hy@UseNameKey{PrintScaling}\@pdfprintscaling
\Hy@UseNameKey{Duplex}\@pdfduplex
\ifx\@pdfpicktraybypdfsize\@empty
\else
/PickTrayByPDFSize \@pdfpicktraybypdfsize
\fi
\ifx\@pdfprintpagerange\@empty
\else
/PrintPageRange[\@pdfprintpagerange]%
\fi
\ifx\@pdfnumcopies\@empty
\else
/NumCopies \@pdfnumcopies
\fi
}%
\pdfcatalog{%
\ifx\Hy@temp\@empty
\else
/ViewerPreferences<<\Hy@temp>>%
\fi
\Hy@UseNameKey{PageLayout}\@pdfpagelayout
\ifx\@pdflang\@empty
\else
/Lang(\@pdflang)%
\fi
}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\PDF@FinishDoc}
% \begin{macrocode}
\def\PDF@FinishDoc{%
\Hy@UseMaketitleInfos
\pdfinfo{%
/Author(\@pdfauthor)%
/Title(\@pdftitle)%
/Subject(\@pdfsubject)%
/Creator(\@pdfcreator)%
\ifx\@pdfcreationdate\@empty
\else
/CreationDate(\@pdfcreationdate)%
\fi
\ifx\@pdfmoddate\@empty
\else
/ModDate(\@pdfmoddate)%
\fi
\ifx\@pdfproducer\relax
\else
/Producer(\@pdfproducer)%
\fi
/Keywords(\@pdfkeywords)%
}%
\Hy@DisableOption{pdfauthor}%
\Hy@DisableOption{pdftitle}%
\Hy@DisableOption{pdfsubject}%
\Hy@DisableOption{pdfcreator}%
\Hy@DisableOption{pdfcreationdate}%
\Hy@DisableOption{pdfmoddate}%
\Hy@DisableOption{pdfproducer}%
\Hy@DisableOption{pdfkeywords}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\hyper@pagetransition}
% \cmd{\@pdfpagetransition} is initialized with \cmd{\relax}. So
% it indicates, if option pdfpagetransition is used. First previous
% |/Trans| entries are removed. If a new |/Trans| key exists, it is
% appended to \cmd{\pdfpageattr}.
% \begin{macrocode}
\def\hyper@pagetransition{%
\ifx\@pdfpagetransition\relax
\else
\expandafter\Hy@RemoveTransPageAttr
\the\pdfpageattr^^J/Trans{}>>\END
\ifx\@pdfpagetransition\@empty
\else
\edef\@processme{%
\global\pdfpageattr{%
\the\pdfpageattr
^^J/Trans << /S /\@pdfpagetransition\space >>%
}%
}%
\@processme
\fi
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\Hy@RemoveTransPageAttr}
% Macro \cmd{\Hy@RemoveTransPageAttr} removes a |/Trans|
% entry from \cmd{\pdfpageattr}. It is called with
% the end marker |^^J/Trans{}>>\END|. The trick is the
% empty group that does not appear in legal
% \cmd{\pdfpageattr} code. It appears in argument
% |#2| and shows, whether the parameter text
% catches a really |/Trans| object or the end marker.
% \begin{macrocode}
\gdef\Hy@RemoveTransPageAttr#1^^J/Trans#2#3>>#4\END{%
\ifx\\#2\\%
\global\pdfpageattr{#1}%
\else
\Hy@RemoveTransPageAttr#1#4\END
\fi
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\hyper@pageduration}
% \cmd{\@pdfpageduration} is initialized with \cmd{\relax}. So
% it indicates, if option pdfpageduration is used. First previous
% |/Dur| entries are removed. If a new |/Dur| key exists, it is
% appended to \cmd{\pdfpageattr}.
% \begin{macrocode}
\def\hyper@pageduration{%
\ifx\@pdfpageduration\relax
\else
\expandafter\Hy@RemoveDurPageAttr\the\pdfpageattr^^J/Dur{} \END
\ifx\@pdfpageduration\@empty
\else
\edef\@processme{%
\global\pdfpageattr{%
\the\pdfpageattr
^^J/Dur \@pdfpageduration\space
}%
}%
\@processme
\fi
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\Hy@RemoveDurPageAttr}
% Macro \cmd{\Hy@RemoveDurPageAttr} removes a |/Dur|
% entry from \cmd{\pdfpageattr}. It is called with
% the end marker |^^J/Dur{} \END|. The trick is the
% empty group that does not appear in legal
% \cmd{\pdfpageattr} code. It appears in argument
% |#2| and shows, whether the parameter text
% catches a really |/Dur| object or the end marker.
% \begin{macrocode}
\gdef\Hy@RemoveDurPageAttr#1^^J/Dur#2#3 #4\END{%
\ifx\\#2\\%
\global\pdfpageattr{#1}%
\else
\Hy@RemoveDurPageAttr#1#4\END
\fi
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\hyper@pagehidden}
% The boolean value of the key |/Hid| is stored in switch
% \cmd{\ifHy@pdfpagehidden}.
% First previous |/Hid| entries are removed, then the new
% one is appended, if the value is true (the PDF default
% is false).
% \begin{macrocode}
\def\hyper@pagehidden{%
\ifHy@useHidKey
\expandafter\Hy@RemoveHidPageAttr\the\pdfpageattr^^J/Hid{} \END
\ifHy@pdfpagehidden
\edef\@processme{%
\global\pdfpageattr{%
\the\pdfpageattr
^^J/Hid true % SPACE
}%
}%
\@processme
\fi
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\Hy@RemoveHidPageAttr}
% Macro \cmd{\Hy@RemoveHidPageAttr} removes a |/Hid|
% entry from \cmd{\pdfpageattr}. It is called with
% the end marker |^^J/Hid{} \END|. The trick is the
% empty group that does not appear in legal
% \cmd{\pdfpageattr} code. It appears in argument
% |#2| and shows, whether the parameter text
% catches a really |/Hid| object or the end marker.
% \begin{macrocode}
\gdef\Hy@RemoveHidPageAttr#1^^J/Hid#2#3 #4\END{%
\ifx\\#2\\%
\global\pdfpageattr{#1}%
\else
\Hy@RemoveHidPageAttr#1#4\END
\fi
}
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
\g@addto@macro\Hy@EveryPageHook{%
\hyper@pagetransition
\hyper@pageduration
\hyper@pagehidden
}
% \end{macrocode}
%
% \begin{macrocode}
\AtBeginDocument{%
\ifHy@setpagesize
\expandafter\@firstofone
\else
\expandafter\@gobble
\fi
{%
\@ifclassloaded{seminar}{%
\setlength{\pdfhorigin}{1truein}%
\setlength{\pdfvorigin}{1truein}%
\ifportrait
\ifdim\paperwidth=\z@
\else
\setlength{\pdfpagewidth}{\strip@pt\paperwidth truept}%
\fi
\ifdim\paperheight=\z@
\else
\setlength{\pdfpageheight}{\strip@pt\paperheight truept}%
\fi
\else
\ifdim\paperheight=\z@
\else
\setlength{\pdfpagewidth}{\strip@pt\paperheight truept}%
\fi
\ifdim\paperwidth=\z@
\else
\setlength{\pdfpageheight}{\strip@pt\paperwidth truept}%
\fi
\fi
}{%
\@ifundefined{stockwidth}{%
\ifdim\paperwidth=\z@
\else
\setlength{\pdfpagewidth}{\paperwidth}%
\fi
\ifdim\paperheight=\z@
\else
\setlength{\pdfpageheight}{\paperheight}%
\fi
}{%
\ifdim\stockwidth=\z@
\else
\setlength{\pdfpagewidth}{\stockwidth}%
\fi
\ifdim\stockheight=\z@
\else
\setlength{\pdfpageheight}{\stockheight}%
\fi
}%
}%
}%
\Hy@DisableOption{setpagesize}%
}
\def\Acrobatmenu#1#2{%
\Hy@Acrobatmenu{#1}{#2}{%
\pdfstartlink
attr{%
\Hy@setpdfborder
\ifx\@pdfhighlight\@empty
\else
/H\@pdfhighlight
\fi
\ifx\@menubordercolor\relax
\else
/C[\@menubordercolor]%
\fi
}%
user{%
/Subtype/Link%
\ifHy@pdfa /F 4\fi
/A<<%
/S/Named/N/#1%
>>%
}%
\relax
\Hy@colorlink\@menucolor#2%
\close@pdflink
}%
}
% \end{macrocode}
%
% \subsubsection{Fix for problem with different nesting levels}
%
% \cs{AtBeginShipoutFirst} adds an additional box layer around
% the first output page. This disturbs pdf\TeX's low level
% link commands \cs{pdfstartlink} and \cs{pdfendlink}, if a
% link is broken across the first and second output page.
%
% The problem could be fixed by replacing \cs{AtBeginShipoutFirst},
% because the box layer is not necessary for pdf\TeX -- no \cs{special}s
% need to be inserted. However it's easier to add an additional
% box level for the pages after the first one. Also \cs{AtBeginShipoutFirst}
% could be invoked independently from hyperref.
% \begin{macrocode}
\def\Hy@FixNotFirstPage{%
\gdef\Hy@FixNotFirstPage{%
\setbox\AtBeginShipoutBox=\hbox{%
\copy\AtBeginShipoutBox
}%
}%
}
\AtBeginShipout{\Hy@FixNotFirstPage}
% \end{macrocode}
%
% \begin{macrocode}
%</pdftex>
% \end{macrocode}
%
% \subsection{hypertex}
%
% The Hyper\TeX\ specification (this is
% borrowed from an article by Arthur Smith)
% says that conformant viewers/translators
% must recognize the following set of |\special| commands:
% \begin{description}
% \item[href:] |html:<a href = "href_string">|
% \item[name:] |html:<a name = "name_string">|
% \item[end:] |html:</a>|
% \item[image:] |html:<img src = "href_string">|
% \item[base\_name:] |html:<base href = "href_string">|
% \end{description}
%
% The \emph{href}, \emph{name} and \emph{end} commands are used to do
% the basic hypertext operations of establishing links between sections
% of documents. The \emph{image} command is intended (as with current
% html viewers) to place an image of arbitrary graphical
% format on the page in the current location. The \emph{base\_name}
% command is be used to communicate to the \emph{dvi} viewer the full (URL)
% location of the current document so that
% files specified by relative URL's may be retrieved correctly.
%
% The \emph{href} and \emph{name} commands must be paired with an
% \emph{end} command later in
% the \TeX{} file --- the \TeX{} commands between the two ends of a pair
% form an \emph{anchor} in the document. In the case of an \emph{href}
% command, the \emph{anchor} is to be highlighted in the
% \emph{dvi} viewer, and
% when clicked on will cause the scene to shift to the destination
% specified by \emph{href\_string}. The \emph{anchor} associated with a
% name command represents a possible location to which other hypertext
% links may refer, either as local references (of the form
% \texttt{href="\#name\_string"} with the \emph{name\_string}
% identical to the one in the name command) or as part of a URL (of the
% form \emph{URL\#name\_string}). Here \emph{href\_string} is a valid
% URL or local identifier, while name\_string could be any string at
% all: the only caveat is that `|"|' characters should be escaped with a
% backslash (|\|), and if it looks like a URL name it may cause
% problems.
%
% \begin{macrocode}
%<*hypertex>
\providecommand*{\XR@ext}{dvi}
\def\PDF@FinishDoc{}
\def\PDF@SetupDoc{%
\ifx\@baseurl\@empty
\else
\special{html:<base href="\@baseurl">}%
\fi
}
\def\hyper@anchor#1{%
\Hy@SaveLastskip
\begingroup
\let\protect=\string
\hyper@chars
\special{html:<a name=%
\hyper@quote\HyperDestNameFilter{#1}\hyper@quote>}%
\endgroup
\Hy@activeanchortrue
\Hy@colorlink\@anchorcolor\anchor@spot\Hy@endcolorlink
\special{html:</a>}%
\Hy@activeanchorfalse
\Hy@RestoreLastskip
}
\def\hyper@anchorstart#1{%
\Hy@SaveLastskip
\begingroup
\hyper@chars
\special{html:<a name=%
\hyper@quote\HyperDestNameFilter{#1}\hyper@quote>}%
\endgroup
\Hy@activeanchortrue
}
\def\hyper@anchorend{%
\special{html:</a>}%
\Hy@activeanchorfalse
\Hy@RestoreLastskip
}
\def\@urltype{url}
\def\hyper@linkstart#1#2{%
\expandafter\Hy@colorlink\csname @#1color\endcsname
\def\Hy@tempa{#1}%
\ifx\Hy@tempa\@urltype
\special{html:<a href=\hyper@quote#2\hyper@quote>}%
\else
\begingroup
\hyper@chars
\special{html:<a href=%
\hyper@quote\#\HyperDestNameFilter{#2}\hyper@quote>}%
\endgroup
\fi
}
\def\hyper@linkend{%
\special{html:</a>}%
\Hy@endcolorlink
}
\def\hyper@linkfile#1#2#3{%
\hyper@linkurl{#1}{\Hy@linkfileprefix#2\ifx\\#3\\\else\##3\fi}%
}
\def\hyper@linkurl#1#2{%
% \end{macrocode}
% If we want to raise up the final link |\special|, we need to
% get its height; ask me why \LaTeX\ constructs make this totally
% foul up, and make us revert to basic \TeX. I do not know.
% \begin{macrocode}
\leavevmode
\ifHy@raiselinks
\setbox\@tempboxa=\color@hbox #1\color@endbox
\@linkdim\dp\@tempboxa
\lower\@linkdim\hbox{%
\hyper@chars
\special{html:<a href=\hyper@quote#2\hyper@quote>}%
}%
\Hy@colorlink\@urlcolor#1%
\@linkdim\ht\@tempboxa
% \end{macrocode}
% Because of the interaction with the dvihps processor, we have to subtract a
% little from the height. This is not clean, or checked. Check with Mark
% Doyle about what gives here. It may not be needed with
% the new dvips (Jan 1997).
% \begin{macrocode}
\advance\@linkdim by -6.5\p@
\raise\@linkdim\hbox{\special{html:</a>}}%
\Hy@endcolorlink
\else
\begingroup
\hyper@chars
\special{html:<a href=\hyper@quote#2\hyper@quote>}%
\Hy@colorlink\@urlcolor#1%
\special{html:</a>}%
\Hy@endcolorlink
\endgroup
\fi
}
% \end{macrocode}
% Very poor implementation of \cs{hyper@link} without considering |#1|.
% \begin{macrocode}
\def\hyper@link#1#2#3{%
\hyper@linkurl{#3}{\#\HyperDestNameFilter{#2}}%
}
% \end{macrocode}
%
% \begin{macrocode}
\def\hyper@image#1#2{%
\begingroup
\hyper@chars
\special{html:<img src=\hyper@quote#1\hyper@quote>}%
\endgroup
}
%</hypertex>
%<*dviwindo>
% \end{macrocode}
% \subsection{dviwindo}
% [This was developed by David Carlisle].
% Within a file dviwindo hyperlinking is used, for external
% URL's a call to |\wwwbrowser| is made. (You can define
% this command before or after loading the hyperref package
% if the default |c:/netscape/netscape| is not suitable)
% Dviwindo could in fact handle external links to dvi files on
% the same machine without calling a web browser, but that would
% mean parsing the URL to recognise such, and this is currently
% not done.
%
% This was more or less blindly copied from the hypertex cfg.
% For dviwindo, \LaTeX{} must specify the size of the active area
% for links. For some hooks this information is available
% but for some, the start and end of the link are
% specified separately in which case a fixed size area
% of 10000000sp wide by |\baselineskip| high is used.
% \begin{macrocode}
\providecommand*{\XR@ext}{dvi}
\providecommand*\wwwbrowser{c:\string\netscape\string\netscape}
\def\hyper@anchor#1{%
\Hy@SaveLastskip
\begingroup
\let\protect=\string
\special{mark: #1}%
\endgroup
\Hy@activeanchortrue
\Hy@colorlink\@anchorcolor\anchor@spot\Hy@endcolorlink
\Hy@activeanchorfalse
\Hy@RestoreLastskip
}
\def\hyper@anchorstart#1{%
\Hy@SaveLastskip
\special{mark: #1}%
\Hy@activeanchortrue
}
\def\hyper@anchorend{%
\Hy@activeanchorfalse
\Hy@RestoreLastskip
}
\def\hyper@linkstart#1#2{%
\expandafter\Hy@colorlink\csname @#1color\endcsname
\special{button: %
10000000 %
\number\baselineskip\space
#2%
}%
}
\def\hyper@linkend{%
\Hy@endcolorlink
}
\def\hyper@link#1#2#3{%
\setbox\@tempboxa=\color@hbox #3\color@endbox
\leavevmode
\ifHy@raiselinks
\@linkdim\dp\@tempboxa
\lower\@linkdim\hbox{%
\special{button: %
\number\wd\@tempboxa\space
\number\ht\@tempboxa\space
#2%
}%
\expandafter\Hy@colorlink\csname @#1color\endcsname#3%
\Hy@endcolorlink
}%
\@linkdim\ht\@tempboxa
\advance\@linkdim by -6.5\p@
\raise\@linkdim\hbox{}%
\else
\special{button: %
\number\wd\@tempboxa\space
\number\ht\@tempboxa\space
#2%
}%
\expandafter\Hy@colorlink\csname @#1color\endcsname#3%
\Hy@endcolorlink
\fi
}
\def\hyper@linkurl#1#2{%
\begingroup
\hyper@chars
\leavevmode
\setbox\@tempboxa=\color@hbox #1\color@endbox
\ifHy@raiselinks
\@linkdim\dp\@tempboxa
\lower\@linkdim\hbox{%
\special{button: %
\number\wd\@tempboxa\space
\number\ht\@tempboxa\space
launch: \wwwbrowser\space
#2%
}%
\Hy@colorlink\@urlcolor#1\Hy@endcolorlink
}%
\@linkdim\ht\@tempboxa
\advance\@linkdim by -6.5\p@
\raise\@linkdim\hbox{}%
\else
\special{button: %
\number\wd\@tempboxa\space
\number\ht\@tempboxa\space
launch: \wwwbrowser\space
#2%
}%
\Hy@colorlink\@urlcolor#1\Hy@endcolorlink
\fi
\endgroup
}
\def\hyper@linkfile#1#2#3{%
\begingroup
\hyper@chars
\leavevmode
\setbox\@tempboxa=\color@hbox #1\color@endbox
\ifHy@raiselinks
\@linkdim\dp\@tempboxa
\lower\@linkdim\hbox{%
\special{button: %
\number\wd\@tempboxa\space
\number\ht\@tempboxa\space
#3,%
file: #2%
}%
\Hy@colorlink\@filecolor#1\Hy@endcolorlink
}%
\@linkdim\ht\@tempboxa
\advance\@linkdim by -6.5\p@
\raise\@linkdim\hbox{}%
\else
\special{button: %
\number\wd\@tempboxa\space
\number\ht\@tempboxa\space
#3,%
file: #2%
}%
\Hy@colorlink\@filecolor#1\Hy@endcolorlink
\fi
\endgroup
}
\ifx\@pdfproducer\relax
\def\@pdfproducer{dviwindo + Distiller}%
\fi
\def\PDF@FinishDoc{%
\Hy@UseMaketitleInfos
\special{PDF: Keywords \@pdfkeywords}%
\special{PDF: Title \@pdftitle}%
\special{PDF: Creator \@pdfcreator}%
\ifx\@pdfcreationdate\@empty
\else
\special{PDF: CreationDate \@pdfcreationdate}%
\fi
\ifx\@pdfmoddate\@empty
\else
\special{PDF: ModDate \@pdfmoddate}%
\fi
\special{PDF: Author \@pdfauthor}%
\ifx\@pdfproducer\relax
\else
\special{PDF: Producer \@pdfproducer}%
\fi
\special{PDF: Subject \@pdfsubject}%
\Hy@DisableOption{pdfauthor}%
\Hy@DisableOption{pdftitle}%
\Hy@DisableOption{pdfsubject}%
\Hy@DisableOption{pdfcreator}%
\Hy@DisableOption{pdfcreationdate}%
\Hy@DisableOption{pdfmoddate}%
\Hy@DisableOption{pdfproducer}%
\Hy@DisableOption{pdfkeywords}%
}
\def\PDF@SetupDoc{%
\ifx\@baseurl\@empty
\else
\special{PDF: Base \@baseurl}%
\fi
\ifx\@pdfpagescrop\@empty\else
\special{PDF: BBox \@pdfpagescrop}%
\fi
\def\Hy@temp{}%
\ifx\@pdfstartpage\@empty
\else
\ifx\@pdfstartview\@empty
\else
\edef\Hy@temp{%
,Page=\@pdfstartpage
,View=\@pdfstartview
}%
\fi
\fi
\edef\Hy@temp{%
\noexpand\pdfmark{%
pdfmark=/DOCVIEW,%
PageMode=/\@pdfpagemode
\Hy@temp
}%
}%
\Hy@temp
\ifx\@pdfpagescrop\@empty
\else
\pdfmark{pdfmark=/PAGES,CropBox=\@pdfpagescrop}%
\fi
\edef\Hy@temp{%
\ifHy@toolbar\else /HideToolbar true\fi
\ifHy@menubar\else /HideMenubar true\fi
\ifHy@windowui\else /HideWindowUI true\fi
\ifHy@fitwindow /FitWindow true\fi
\ifHy@centerwindow /CenterWindow true\fi
\ifHy@displaydoctitle /DisplayDocTitle true\fi
\Hy@UseNameKey{NonFullScreenPageMode}\@pdfnonfullscreenpagemode
\Hy@UseNameKey{Direction}\@pdfdirection
\Hy@UseNameKey{ViewArea}\@pdfviewarea
\Hy@UseNameKey{ViewClip}\@pdfviewclip
\Hy@UseNameKey{PrintArea}\@pdfprintarea
\Hy@UseNameKey{PrintClip}\@pdfprintclip
\Hy@UseNameKey{PrintScaling}\@pdfprintscaling
\Hy@UseNameKey{Duplex}\@pdfduplex
\ifx\@pdfpicktraybypdfsize\@empty
\else
/PickTrayByPDFSize \@pdfpicktraybypdfsize
\fi
\ifx\@pdfprintpagerange\@empty
\else
/PrintPageRange[\@pdfprintpagerange]%
\fi
\ifx\@pdfnumcopies\@empty
\else
/NumCopies \@pdfnumcopies
\fi
}%
\pdfmark{pdfmark=/PUT,%
Raw={%
\string{Catalog\string}<<%
\ifx\Hy@temp\@empty
\else
/ViewerPreferences<<\Hy@temp>>%
\fi
\Hy@UseNameKey{PageLayout}\@pdfpagelayout
\ifx\@pdflang\@empty
\else
/Lang(\@pdflang)%
\fi
>>%
}%
}%
}
%</dviwindo>
%<*dvipdfm>
% \end{macrocode}
% \subsection{dvipdfm dvi to PDF converter}
% Provided by Mark Wicks (mwicks@kettering.edu)
% \begin{macrocode}
\providecommand*{\XR@ext}{pdf}
\Hy@setbreaklinks{true}
\newsavebox{\pdfm@box}
\def\@pdfm@mark#1{\special{pdf:#1}}
\def\@pdfm@dest#1{%
\Hy@SaveLastskip
\begingroup
\Hy@pstringdef\Hy@pstringDest{\HyperDestNameFilter{#1}}%
\def\x{XYZ}%
\ifx\x\@pdfview
\def\x{XYZ @xpos @ypos null}%
\else
\def\x{FitH}%
\ifx\x\@pdfview
\def\x{FitH @ypos}%
\else
\def\x{FitBH}%
\ifx\x\@pdfview
\def\x{FitBH @ypos}%
\else
\def\x{FitV}%
\ifx\x\@pdfview
\def\x{FitV @xpos}%
\else
\def\x{FitBV}%
\ifx\x\@pdfview
\def\x{FitBV @xpos}%
\else
\def\x{Fit}%
\ifx\x\@pdfview
\let\x\@pdfview
\else
\def\x{FitB}%
\ifx\x\@pdfview
\let\x\@pdfview
\else
\def\x{FitR}%
\ifx\x\@pdfview
\Hy@Warning{`pdfview=FitR' is not supported}%
\def\x{XYZ @xpos @ypos null}%
\else
\@onelevel@sanitize\@pdfview
\Hy@Warning{Unknown value `\@pdfview' for pdfview}%
\def\x{XYZ @xpos @ypos null}%
\fi
\fi
\fi
\fi
\fi
\fi
\fi
\fi
\@pdfm@mark{dest (\Hy@pstringDest) [@thispage /\x]}%
\endgroup
\Hy@RestoreLastskip
}
\providecommand*\@pdfview{XYZ}
\providecommand*\@pdfborder{0 0 1}
\providecommand*\@pdfborderstyle{}
\def\hyper@anchor#1{%
\@pdfm@dest{#1}%
}
\def\hyper@anchorstart#1{%
\Hy@activeanchortrue
\@pdfm@dest{#1}%
}
\def\hyper@anchorend{%
\Hy@activeanchorfalse
}
% \end{macrocode}
% \begin{macrocode}
\newcounter{Hy@AnnotLevel}
% \end{macrocode}
% \begin{macrocode}
\ifHy@ocgcolorlinks
\def\OBJ@OCG@view{@OCG@view}%
\@pdfm@mark{%
obj \OBJ@OCG@view <<%
/Type/OCG%
/Name(View)%
/Usage<<%
/Print<<%
/PrintState/OFF%
>>%
/View<<%
/ViewState/ON%
>>%
>>%
>>%
}%
\@pdfm@mark{close \OBJ@OCG@view}%
\def\OBJ@OCG@print{@OCG@print}%
\@pdfm@mark{%
obj \OBJ@OCG@print <<%
/Type/OCG%
/Name(Print)%
/Usage<<%
/Print<<%
/PrintState/ON%
>>%
/View<<%
/ViewState/OFF%
>>%
>>%
>>%
}%
\@pdfm@mark{close \OBJ@OCG@print}%
\def\OBJ@OCGs{@OCGs}%
\@pdfm@mark{%
obj \OBJ@OCGs [%
\OBJ@OCG@view\space\OBJ@OCG@print
]%
}%
\@pdfm@mark{close \OBJ@OCGs}%
\@pdfm@mark{%
put @catalog <<%
/OCProperties<<%
/OCGs \OBJ@OCGs
/D<<%
/OFF[\OBJ@OCG@print]%
/AS[%
<<%
/Event/View%
/OCGs \OBJ@OCGs
/Category[/View]%
>>%
<<%
/Event/Print%
/OCGs \OBJ@OCGs
/Category[/Print]%
>>%
<<%
/Event/Export%
/OCGs \OBJ@OCGs
/Category[/Print]%
>>%
]%
>>%
>>%
>>%
}%
\AtBeginShipout{%
\setbox\AtBeginShipoutBox=\hbox{%
\copy\AtBeginShipoutBox
\@pdfm@mark{%
put @resources <<%
/Properties<<%
/OCView \OBJ@OCG@view
/OCPrint \OBJ@OCG@print
>>%
>>%
}%
}%
}%
\AtBeginDocument{%
\def\Hy@colorlink#1{%
\begingroup
\ifHy@ocgcolorlinks
\def\Hy@ocgcolor{#1}%
\setbox0=\color@hbox
\else
\HyColor@UseColor#1%
\fi
}%
\def\Hy@endcolorlink{%
\ifHy@ocgcolorlinks
\color@endbox
\mbox{%
\@pdfm@mark{content /OC/OCPrint BDC}%
\rlap{\copy0}%
\@pdfm@mark{content EMC/OC/OCView BDC}%
\begingroup
\expandafter\HyColor@UseColor\Hy@ocgcolor
\box0 %
\endgroup
\@pdfm@mark{content EMC}%
}%
\fi
\endgroup
}%
}%
\else
\Hy@DisableOption{ocgcolorlinks}%
\fi
% \end{macrocode}
% \begin{macrocode}
\def\Hy@BeginAnnot#1{%
\stepcounter{Hy@AnnotLevel}%
\ifnum\value{Hy@AnnotLevel}=\@ne
#1%
\fi
}
\def\Hy@EndAnnot{%
\ifnum\value{Hy@AnnotLevel}=\@ne
\Hy@endcolorlink
\@pdfm@mark{eann}%
\fi
\addtocounter{Hy@AnnotLevel}\m@ne
}
% \end{macrocode}
% \begin{macrocode}
\def\Hy@undefinedname{UNDEFINED}
\def\hyper@linkstart#1#2{%
\Hy@BeginAnnot{%
\protected@edef\Hy@testname{#2}%
\ifx\Hy@testname\@empty
\Hy@Warning{%
Empty destination name,\MessageBreak
using `\Hy@undefinedname'%
}%
\let\Hy@testname\Hy@undefinedname
\else
\Hy@pstringdef\Hy@testname{%
\expandafter\HyperDestNameFilter\expandafter{\Hy@testname}%
}%
\fi
\@pdfm@mark{%
bann<<%
/Type/Annot%
/Subtype/Link%
\ifHy@pdfa /F 4\fi
\Hy@setpdfborder
\expandafter\ifx\csname @#1bordercolor\endcsname\relax
\else
/C[\csname @#1bordercolor\endcsname]%
\fi
/A<<%
/S/GoTo%
/D(\Hy@testname)%
>>%
>>%
}%
\expandafter\Hy@colorlink\csname @#1color\endcsname
}%
}
\def\hyper@linkend{\Hy@EndAnnot}%
\def\hyper@link#1#2#3{%
\hyper@linkstart{#1}{#2}#3\hyper@linkend
}
\def\hyper@linkfile#1#2#3{%
\leavevmode
\Hy@BeginAnnot{%
\Hy@pstringdef\Hy@pstringF{#2}%
\Hy@pstringdef\Hy@pstringD{#3}%
\@pdfm@mark{%
bann<<%
/Type/Annot%
/Subtype/Link%
\ifHy@pdfa /F 4\fi
\Hy@setpdfborder
\ifx\@filebordercolor\relax
\else
/C[\@filebordercolor]%
\fi
/A<<%
/S/GoToR%
/F(\Hy@pstringF)%
/D\ifx\\#3\\[0 \@pdfstartview]\else(\Hy@pstringD)\fi
\Hy@SetNewWindow
>>%
>>%
}%
\Hy@colorlink\@filecolor
}%
#1%
\Hy@EndAnnot
}
\def\hyper@linkurl#1#2{%
\leavevmode
\Hy@BeginAnnot{%
\Hy@pstringdef\Hy@pstringURI{#2}%
\@pdfm@mark{%
bann<<%
/Type/Annot%
/Subtype/Link%
\ifHy@pdfa /F 4\fi
\Hy@setpdfborder
\ifx\@urlbordercolor\relax
\else
/C[\@urlbordercolor]%
\fi
/A<<%
/S/URI%
/URI(\Hy@pstringURI)%
>>%
>>%
}%
\Hy@colorlink\@urlcolor
}%
#1%
\Hy@EndAnnot
}
\def\Acrobatmenu#1#2{%
\Hy@Acrobatmenu{#1}{#2}{%
\Hy@BeginAnnot{%
\@pdfm@mark{%
bann<<%
/Type/Annot%
/Subtype/Link%
\ifHy@pdfa /F 4\fi
/A<<%
/S/Named%
/N/#1%
>>%
\Hy@setpdfborder
\ifx\@menubordercolor\relax
\relax
/C[\@menubordercolor]%
\fi
>>%
}%
\Hy@colorlink\@menucolor
}%
#2%
\Hy@EndAnnot
}%
}
\ifx\@pdfproducer\relax
\def\@pdfproducer{dvipdfm}%
% \end{macrocode}
% Detect Xe\TeX. However, but \textsf{xdvipdfmx} will overwrite it
% in the final PDF file.
% \begin{macrocode}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname XeTeXversion\endcsname\relax
\else
\edef\@pdfproducer{XeTeX \the\XeTeXversion\XeTeXrevision}%
\fi
\fi
\def\PDF@FinishDoc{%
\Hy@UseMaketitleInfos
\@pdfm@mark{%
docinfo<<%
/Title(\@pdftitle)%
/Subject(\@pdfsubject)%
/Creator(\@pdfcreator)%
\ifx\@pdfcreationdate\@empty
\else
/CreationDate(\@pdfcreationdate)%
\fi
\ifx\@pdfmoddate\@empty
\else
/ModDate(\@pdfmoddate)%
\fi
/Author(\@pdfauthor)%
\ifx\@pdfproducer\relax
\else
/Producer(\@pdfproducer)%
\fi
/Keywords(\@pdfkeywords)%
>>%
}%
\Hy@DisableOption{pdfauthor}%
\Hy@DisableOption{pdftitle}%
\Hy@DisableOption{pdfsubject}%
\Hy@DisableOption{pdfcreator}%
\Hy@DisableOption{pdfcreationdate}%
\Hy@DisableOption{pdfmoddate}%
\Hy@DisableOption{pdfproducer}%
\Hy@DisableOption{pdfkeywords}%
}
% \end{macrocode}
% \begin{macrocode}
\def\PDF@SetupDoc{%
\edef\Hy@temp{%
\ifHy@toolbar\else /HideToolbar true\fi
\ifHy@menubar\else /HideMenubar true\fi
\ifHy@windowui\else /HideWindowUI true\fi
\ifHy@fitwindow /FitWindow true\fi
\ifHy@centerwindow /CenterWindow true\fi
\ifHy@displaydoctitle /DisplayDocTitle true\fi
\Hy@UseNameKey{NonFullScreenPageMode}\@pdfnonfullscreenpagemode
\Hy@UseNameKey{Direction}\@pdfdirection
\Hy@UseNameKey{ViewArea}\@pdfviewarea
\Hy@UseNameKey{ViewClip}\@pdfviewclip
\Hy@UseNameKey{PrintArea}\@pdfprintarea
\Hy@UseNameKey{PrintClip}\@pdfprintclip
\Hy@UseNameKey{PrintScaling}\@pdfprintscaling
\Hy@UseNameKey{Duplex}\@pdfduplex
\ifx\@pdfpicktraybypdfsize\@empty
\else
/PickTrayByPDFSize \@pdfpicktraybypdfsize
\fi
\ifx\@pdfprintpagerange\@empty
\else
/PrintPageRange[\@pdfprintpagerange]%
\fi
\ifx\@pdfnumcopies\@empty
\else
/NumCopies \@pdfnumcopies
\fi
}%
\Hy@pstringdef\Hy@pstringB{\@baseurl}%
\@pdfm@mark{%
docview<<%
\ifx\@pdfstartpage\@empty
\else
\ifx\@pdfstartview\@empty
\else
/OpenAction[@page\@pdfstartpage\@pdfstartview]%
\fi
\fi
\ifx\@baseurl\@empty
\else
/URI<</Base(\Hy@pstringB)>>%
\fi
/PageMode/\@pdfpagemode
\ifx\Hy@temp\@empty
\else
/ViewerPreferences<<\Hy@temp>>%
\fi
\Hy@UseNameKey{PageLayout}\@pdfpagelayout
\ifx\@pdflang\@empty
\else
/Lang(\@pdflang)%
\fi
>>%
}%
\ifx\@pdfpagescrop\@empty
\else
\@pdfm@mark{put @pages <</CropBox[\@pdfpagescrop]>>}%
\fi
}
% \end{macrocode}
% \begin{macrocode}
\AtBeginShipoutFirst{%
\ifHy@setpagesize
\begingroup
\@ifundefined{stockwidth}{%
\ifx\special@paper\@empty
\special{papersize=\the\paperwidth,\the\paperheight}%
\else
\special{papersize=\special@paper}%
\fi
}{%
\ifdim\stockwidth=\z@
\else
\special{papersize=\the\stockwidth,\the\stockheight}%
\fi
}%
\endgroup
\fi
\Hy@DisableOption{setpagesize}%
}
%</dvipdfm>
% \end{macrocode}
%
% \subsection{VTeX typesetting system}
% Provided by MicroPress, May 1998.
% They require VTeX version 6.02 or newer;
% see \url{http://www.micropress-inc.com/} for details.
% \begin{macrocode}
%<*vtexhtml>
\providecommand*{\XR@ext}{htm}
\RequirePackage{vtexhtml}
\newif\if@Localurl
\def\PDF@FinishDoc{}
\def\PDF@SetupDoc{%
\ifx\@baseurl\@empty
\else
\special{!direct <base href="\@baseurl">}%
\fi
}
\def\@urltype{url}
\def\hyper@link#1#2#3{%
\leavevmode
\special{!direct <a href=%
\hyper@quote\hyper@hash\HyperDestNameFilter{#2}\hyper@quote>}%
#3%
\special{!direct </a>}%
}
\def\hyper@linkurl#1#2{%
\begingroup
\hyper@chars
\leavevmode
\MathBSuppress=1\relax
\special{!direct <a href=%
\hyper@quote\HyperDestNameFilter{#2}\hyper@quote>}%
#1%
\MathBSuppress=0\relax
\special{!direct </a>}%
\endgroup
}
\def\hyper@linkfile#1#2#3{%
\hyper@linkurl{#1}{\Hy@linkfileprefix#2\ifx\\#3\\\else\##3\fi}%
}
\def\hyper@linkstart#1#2{%
\def\Hy@tempa{#1}\ifx\Hy@tempa\@urltype
\@Localurltrue
\special{!direct <a href=\hyper@quote#2\hyper@quote>}%
\else
\@Localurlfalse
\begingroup
\hyper@chars
\special{!aref \HyperDestNameFilter{#2}}%
\endgroup
\fi
}
\def\hyper@linkend{%
\if@Localurl
\special{!endaref}%
\else
\special{!direct </a>}%
\fi
}
\def\hyper@anchorstart#1{%
\Hy@SaveLastskip
\begingroup
\hyper@chars
\special{!aname #1}%
\special{!direct <a name=%
\hyper@quote\HyperDestNameFilter{#1}\hyper@quote>}%
\endgroup
\Hy@activeanchortrue
}
\def\hyper@anchorend{%
\special{!direct </a>}%
\Hy@activeanchorfalse
\Hy@RestoreLastskip
}
\def\hyper@anchor#1{%
\Hy@SaveLastskip
\begingroup
\let\protect=\string
\hyper@chars
\leavevmode
\special{!aname #1}%
\special{!direct <a name=%
\hyper@quote\HyperDestNameFilter{#1}\hyper@quote>}%
\endgroup
\Hy@activeanchortrue
\bgroup\anchor@spot\egroup
\special{!direct </a>}%
\Hy@activeanchorfalse
\Hy@RestoreLastskip
}
\def\@Form[#1]{\typeout{Sorry, TeXpider does not yet support FORMs}}
\def\@endForm{}
\def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
\typeout{Sorry, TeXpider does not yet support FORM gauges}%
}
\def\@TextField[#1]#2{% parameters, label
\typeout{Sorry, TeXpider does not yet support FORM text fields}%
}
\def\@CheckBox[#1]#2{% parameters, label
\typeout{Sorry, TeXpider does not yet support FORM checkboxes}%
}
\def\@ChoiceMenu[#1]#2#3{% parameters, label, choices
\typeout{Sorry, TeXpider does not yet support FORM choice menus}%
}
\def\@PushButton[#1]#2{% parameters, label
\typeout{Sorry, TeXpider does not yet support FORM pushbuttons}%
}
\def\@Reset[#1]#2{%
\typeout{Sorry, TeXpider does not yet support FORMs}%
}
\def\@Submit[#1]#2{%
\typeout{Sorry, TeXpider does not yet support FORMs}%
}
%</vtexhtml>
% \end{macrocode}
% \begin{macrocode}
%<*vtex>
% \end{macrocode}
% VTeX version 6.68 supports \cs{mediawidth} and \cs{mediaheight}.
% The \cs{ifx} construct is better than a \cs{csname}, because
% it avoids the definition and the hash table entry of a
% previous undefined macro.
% \begin{macrocode}
\ifx\mediaheight\@undefined
\else
\ifx\mediaheight\relax
\else
\ifHy@setpagesize
\providecommand*{\VTeXInitMediaSize}{%
\@ifundefined{stockwidth}{%
\ifdim\paperheight>0pt %
\setlength\mediaheight\paperheight
\fi
\ifdim\paperheight>0pt %
\setlength\mediawidth\paperwidth
\fi
}{%
\ifdim\stockheight>0pt %
\setlength\mediaheight\stockheight
\fi
\ifdim\stockwidth>0pt %
\setlength\mediawidth\stockwidth
\fi
}%
}%
\AtBeginDocument{\VTeXInitMediaSize}%
\fi
\Hy@DisableOption{setpagesize}%
\fi
\fi
% \end{macrocode}
% Older versions of VTeX require |xyz| in lower case.
% \begin{macrocode}
\providecommand*\@pdfview{xyz}
\providecommand*\@pdfborder{0 0 1}
\providecommand*\@pdfborderstyle{}
\let\CurrentBorderColor\@linkbordercolor
\def\hyper@anchor#1{%
\Hy@SaveLastskip
\begingroup
\let\protect=\string
\hyper@chars
\special{!aname \HyperDestNameFilter{#1};\@pdfview}%
\endgroup
\Hy@activeanchortrue
\Hy@colorlink\@anchorcolor\anchor@spot\Hy@endcolorlink
\Hy@activeanchorfalse
\Hy@RestoreLastskip
}
\def\hyper@anchorstart#1{%
\Hy@SaveLastskip
\begingroup
\hyper@chars
\special{!aname \HyperDestNameFilter{#1};\@pdfview}%
\endgroup
\Hy@activeanchortrue
}
\def\hyper@anchorend{%
\Hy@activeanchorfalse
\Hy@RestoreLastskip
}
\def\@urltype{url}
\def\Hy@undefinedname{UNDEFINED}
\def\hyper@linkstart#1#2{%
\Hy@pstringdef\Hy@pstringURI{#2}%
\expandafter\Hy@colorlink\csname @#1color\endcsname
\@ifundefined{@#1bordercolor}{%
\let\CurrentBorderColor\relax
}{%
\edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}%
}%
\def\Hy@tempa{#1}%
\ifx\Hy@tempa\@urltype
\special{!%
aref <u=/Type /Action /S /URI /URI (\Hy@pstringURI)>;%
a=<%
\ifHy@pdfa /F 4\fi
\Hy@setpdfborder
\ifx\CurrentBorderColor\relax
\else
/C [\CurrentBorderColor]%
\fi
>%
}%
\else
\protected@edef\Hy@testname{#2}%
\ifx\Hy@testname\@empty
\Hy@Warning{%
Empty destination name,\MessageBreak
using `\Hy@undefinedname'%
}%
\let\Hy@testname\Hy@undefinedname
\fi
\special{!%
aref \expandafter\HyperDestNameFilter
\expandafter{\Hy@testname};%
a=<%
\ifHy@pdfa /F 4\fi
\Hy@setpdfborder
\ifx\CurrentBorderColor\relax
\else
/C [\CurrentBorderColor]%
\fi
>%
}%
\fi
}
\def\hyper@linkend{%
\special{!endaref}%
\Hy@endcolorlink
}
\def\hyper@linkfile#1#2#3{%
\leavevmode
\special{!%
aref <%
\ifnum\Hy@VTeXversion>753 \ifHy@newwindow n\fi\fi
f=#2>#3;%
a=<%
\ifHy@pdfa /F 4\fi
\Hy@setpdfborder
\ifx\@filebordercolor\relax
\else
/C [\@filebordercolor]%
\fi
>%
}%
\Hy@colorlink\@filecolor#1\Hy@endcolorlink
\special{!endaref}%
}
\def\hyper@linkurl#1#2{%
\begingroup
\Hy@pstringdef\Hy@pstringURI{#2}%
\hyper@chars
\leavevmode
\special{!%
aref <u=/Type /Action /S /URI /URI (\Hy@pstringURI)>;%
a=<%
\ifHy@pdfa /F 4\fi
\Hy@setpdfborder
\ifx\@urlbordercolor\relax
\else
/C [\@urlbordercolor]%
\fi
>%
}%
\Hy@colorlink\@urlcolor#1\Hy@endcolorlink
\special{!endaref}%
\endgroup
}
\def\hyper@link#1#2#3{%
\@ifundefined{@#1bordercolor}{%
\let\CurrentBorderColor\relax
}{%
\edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}%
}%
\leavevmode
\protected@edef\Hy@testname{#2}%
\ifx\Hy@testname\@empty
\Hy@Warning{%
Empty destination name,\MessageBreak
using `\Hy@undefinedname'%
}%
\let\Hy@testname\Hy@undefinedname
\fi
\special{!%
aref \expandafter\HyperDestNameFilter
\expandafter{\Hy@testname};%
a=<%
\ifHy@pdfa /F 4\fi
\Hy@setpdfborder
\ifx\CurrentBorderColor\relax
\else
/C [\CurrentBorderColor]%
\fi
>%
}%
\expandafter\Hy@colorlink\csname @#1color\endcsname#3\Hy@endcolorlink
\special{!endaref}%
}
\def\hyper@image#1#2{%
\hyper@linkurl{#2}{#1}%
}
\def\@hyper@launch run:#1\\#2#3{%
\Hy@pstringdef\Hy@pstringF{#1}%
\Hy@pstringdef\Hy@pstringP{#3}%
\leavevmode
\special{!aref %
<u=%
/Type/Action%
/S/Launch%
/F(\Hy@pstringF)%
\Hy@SetNewWindow
\ifx\\#3\\\else /Win<</F(\Hy@pstringF)/P(\Hy@pstringP)>>\fi%
>;%
a=<%
\ifHy@pdfa /F 4\fi
\Hy@setpdfborder
\ifx\@runbordercolor\relax
\else
/C[\@runbordercolor]%
\fi
>%
}%
\Hy@colorlink\@runcolor#2\Hy@endcolorlink
\special{!endaref}%
}
\def\Acrobatmenu#1#2{%
\Hy@Acrobatmenu{#1}{#2}{%
\special{!%
aref <u=/S /Named /N /#1>;%
a=<%
\ifHy@pdfa /F 4\fi
\Hy@setpdfborder
\ifx\@menubordercolor\relax
\else
/C[\@menubordercolor]%
\fi
>%
}%
\Hy@colorlink\@menucolor#2\Hy@endcolorlink
\special{!endaref}%
}%
}
% \end{macrocode}
%
% The following code (transition effects) is
% made by Alex Kostin.
%
% The code below makes sense for V\TeX\ 7.02 or later.
%
% Please never use |\@ifundefined{VTeXversion}{..}{..}| \emph{globally}.
% \begin{macrocode}
\ifnum\Hy@VTeXversion<702 %
\else
\def\hyper@pagetransition{%
\ifx\@pdfpagetransition\relax
\else
\ifx\@pdfpagetransition\@empty
% \end{macrocode}
%
% Standard incantation.
%
% 1. Does an old entry have to be deleted?
% 2. If 1=yes, how to delete?
% \begin{macrocode}
\else
\hvtex@parse@trans\@pdfpagetransition
\fi
\fi
}%
% \end{macrocode}
%
% I have to write an ``honest'' parser to convert raw PDF code
% into V\TeX\ |\special|. (AVK)
%
% Syntax of V\TeX\ |\special{!trans <transition_effect>}|:
%\begin{verbatim}
%<transition_effect> ::= <transition_style>[,<transition_duration>]
%<transition_style> ::= <Blinds_effect> | <Box_effect> |
% <Dissolve_effect> | <Glitter_effect> |
% <Split_effect> | <Wipe_effect>
%<Blinds_effect> ::= B[<effect_dimension>]
%<Box_effect> ::= X[<effect_motion>]
%<Dissolve_effect> ::= D
%<Glitter_effect> ::= G[<effect_direction>]
%<Split_effect> ::= S[<effect_motion>][<effect_dimension>]
%<Wipe_effect> ::= W[<effect_direction>]
%<Replace_effect> ::= R
%<effect_direction> ::= <number>
%<effect_dimension> ::= H | V
%<effect_motion> ::= I | O
%<transition_duration> ::= <number>
%\end{verbatim}
%
% Transition codes:
% \begin{macrocode}
\def\hvtex@trans@effect@Blinds{\def\hvtex@trans@code{B}}%
\def\hvtex@trans@effect@Box{\def\hvtex@trans@code{X}}%
\def\hvtex@trans@effect@Dissolve{\def\hvtex@trans@code{D}}%
\def\hvtex@trans@effect@Glitter{\def\hvtex@trans@code{G}}%
\def\hvtex@trans@effect@Split{\def\hvtex@trans@code{S}}%
\def\hvtex@trans@effect@Wipe{\def\hvtex@trans@code{W}}%
\def\hvtex@trans@effect@R{\def\hvtex@trans@code{R}}%
% \end{macrocode}
%
% Optional parameters:
% \begin{macrocode}
\def\hvtex@par@dimension{/Dm}%
\def\hvtex@par@direction{/Di}%
\def\hvtex@par@duration{/D}%
\def\hvtex@par@motion{/M}%
% \end{macrocode}
%
% Tokenizer:
% \begin{macrocode}
\def\hvtex@gettoken{\expandafter\hvtex@gettoken@\hvtex@buffer\@nil}%
% \end{macrocode}
%
% Notice that tokens in the input buffer must be space delimited.
% \begin{macrocode}
\def\hvtex@gettoken@#1 #2\@nil{%
\edef\hvtex@token{#1}%
\edef\hvtex@buffer{#2}%
}%
\def\hvtex@parse@trans#1{%
% \end{macrocode}
%
% Initializing code:
% \begin{macrocode}
\let\hvtex@trans@code\@empty
\let\hvtex@param@dimension\@empty
\let\hvtex@param@direction\@empty
\let\hvtex@param@duration\@empty
\let\hvtex@param@motion\@empty
\edef\hvtex@buffer{#1\space}%
% \end{macrocode}
% First token is the PDF transition name without escape.
% \begin{macrocode}
\hvtex@gettoken
\ifx\hvtex@token\@empty
% \end{macrocode}
% Leading space(s)?
% \begin{macrocode}
\ifx\hvtex@buffer\@empty
% \end{macrocode}
% The buffer is empty, nothing to do.
% \begin{macrocode}
\else
\hvtex@gettoken
\fi
\fi
\csname hvtex@trans@effect@\hvtex@token\endcsname
% \end{macrocode}
% Now is time to parse optional parameters.
% \begin{macrocode}
\hvtex@trans@params
}%
% \end{macrocode}
%
% Reentrable macro to parse optional parameters.
% \begin{macrocode}
\def\hvtex@trans@params{%
\ifx\hvtex@buffer\@empty
\else
\hvtex@gettoken
\let\hvtex@trans@par\hvtex@token
\ifx\hvtex@buffer\@empty
\else
\hvtex@gettoken
\ifx\hvtex@trans@par\hvtex@par@duration
% \end{macrocode}
% /D is the effect duration in seconds. V\TeX\ special
% takes it in milliseconds.
% \begin{macrocode}
\let\hvtex@param@duration\hvtex@token
\else \ifx\hvtex@trans@par\hvtex@par@motion
% \end{macrocode}
% /M can be either /I or /O
% \begin{macrocode}
\expandafter\edef\expandafter\hvtex@param@motion
\expandafter{\expandafter\@gobble\hvtex@token}%
\else \ifx\hvtex@trans@par\hvtex@par@dimension
% \end{macrocode}
% /Dm can be either /H or /V
% \begin{macrocode}
\expandafter\edef\expandafter\hvtex@param@dimension
\expandafter{\expandafter\@gobble\hvtex@token}%
\else \ifx\hvtex@trans@par\hvtex@par@direction
% \end{macrocode}
%
% Valid values for /Di are 0, 270, 315 (the Glitter effect) or
% 0, 90, 180, 270 (the Wipe effect).
% \begin{macrocode}
\let\hvtex@param@direction\hvtex@token
\fi\fi\fi\fi
\fi
\fi
\ifx\hvtex@buffer\@empty
\let\next\hvtex@produce@trans
\else
\let\next\hvtex@trans@params
\fi
\next
}%
% \end{macrocode}
%
% Merge |<transition_effect>| and issue the special when possible.
% Too lazy to validate optional parameters.
% \begin{macrocode}
\def\hvtex@produce@trans{%
\let\vtex@trans@special\@empty
\if S\hvtex@trans@code
\edef\vtex@trans@special{\hvtex@trans@code
\hvtex@param@dimension\hvtex@param@motion}%
\else\if B\hvtex@trans@code
\edef\vtex@trans@special{%
\hvtex@trans@code\hvtex@param@dimension
}%
\else\if X\hvtex@trans@code
\edef\vtex@trans@special{%
\hvtex@trans@code\hvtex@param@motion
}%
\else\if W\hvtex@trans@code
\edef\vtex@trans@special{%
\hvtex@trans@code\hvtex@param@direction
}%
\else\if D\hvtex@trans@code
\let\vtex@trans@special\hvtex@trans@code
\else\if R\hvtex@trans@code
\let\vtex@trans@special\hvtex@trans@code
\else\if G\hvtex@trans@code
\edef\vtex@trans@special{%
\hvtex@trans@code\hvtex@param@direction
}%
\fi\fi\fi\fi\fi\fi\fi
\ifx\vtex@trans@special\@empty
\else
\ifx\hvtex@param@duration\@empty
\else
\setlength{\dimen@}{\hvtex@param@duration\p@}%
% \end{macrocode}
% I'm not guilty of possible overflow.
% \begin{macrocode}
\multiply\dimen@\@m
\edef\vtex@trans@special{%
\vtex@trans@special,\strip@pt\dimen@
}%
\fi
% \end{macrocode}
%
% And all the mess is just for this.
%
% \begin{macrocode}
\special{!trans \vtex@trans@special}%
\fi
}%
% \end{macrocode}
% \begin{macrocode}
\def\hyper@pageduration{%
\ifx\@pdfpageduration\relax
\else
\ifx\@pdfpageduration\@empty
\special{!duration-}%
\else
\special{!duration \@pdfpageduration}%
\fi
\fi
}%
\def\hyper@pagehidden{%
\ifHy@useHidKey
\special{!hidden\ifHy@pdfpagehidden +\else -\fi}%
\fi
}%
\g@addto@macro\Hy@EveryPageBoxHook{%
\hyper@pagetransition
\hyper@pageduration
\hyper@pagehidden
}%
\fi
% \end{macrocode}
%
% Caution: In opposite to the other drivers,
% the argument of |\special{!onopen #1}| is
% a reference name. The VTeX's postscript
% mode will work with a version higher than
% 7.0x.
%
% The command \verb|\VTeXOS| is defined since version 7.45.
% Magic values encode the operating system:\\
% \begin{tabular}{@{}l@{: }l@{}}
% 1 & WinTel\\
% 2 & Linux\\
% 3 & OS/2\\
% 4 & MacOS\\
% 5 & MacOS/X\\
% \end{tabular}
% \begin{macrocode}
\ifx\@pdfproducer\relax
\def\@pdfproducer{VTeX}%
\ifnum\Hy@VTeXversion>\z@
\count@\VTeXversion
\divide\count@ 100 %
\edef\@pdfproducer{\@pdfproducer\space v\the\count@}%
\multiply\count@ -100 %
\advance\count@\VTeXversion
\edef\@pdfproducer{%
\@pdfproducer
.\ifnum\count@<10 0\fi\the\count@
\ifx\VTeXOS\@undefined\else
\ifnum\VTeXOS>0 %
\ifnum\VTeXOS<6 %
\space(%
\ifcase\VTeXOS
\or Windows\or Linux\or OS/2\or MacOS\or MacOS/X%
\fi
)%
\fi
\fi
\fi
,\space
\ifnum\OpMode=\@ne PDF\else PS\fi
\space backend%
\ifx\gexmode\@undefined\else
\ifnum\gexmode>\z@\space with GeX\fi
\fi
}%
\fi
\fi
% \end{macrocode}
%
% Current |!pdfinfo| key syntax:
%
% \begin{tabular}{lll}
% \hline
% Key & Field & Type \\
% \hline
% \texttt{a} & \textbf{A}uthor & String \\
% \texttt{b} & Crop\textbf{B}ox & String \\
% \texttt{c} & \textbf{C}reator & String \\
% \texttt{k} & \textbf{K}eywords & String \\
% \texttt{l} & Page\textbf{L}ayout & PS \\
% \texttt{p} & \textbf{P}ageMode & PS \\
% \texttt{r} & P\textbf{r}oducer & String \\
% \texttt{s} & \textbf{S}ubject & String \\
% \texttt{t} & \textbf{T}itle & String \\
% \texttt{u} & \textbf{U}RI & PS \\
% \texttt{v} & \textbf{V}iewPreferences & PS \\
% \hline
% \end{tabular}
%
% Note: PS objects that are dicts are in |<<<..>>>| (yuck; no choice).
%
% \begin{macrocode}
\def\PDF@SetupDoc{%
\ifx\@pdfpagescrop\@empty
\else
\special{!pdfinfo b=<\@pdfpagescrop>}%
\fi
\ifx\@pdfstartpage\@empty
\else
\ifx\@pdfstartview\@empty
\else
\special{!onopen Page\@pdfstartpage}%
\fi
\fi
\special{!pdfinfo p=</\@pdfpagemode>}%
\ifx\@baseurl\@empty
\else
\special{!pdfinfo u=<<</Base (\@baseurl)>>>}%
\fi
\special{!pdfinfo v=<<<%
\ifHy@toolbar\else /HideToolbar true\fi
\ifHy@menubar\else /HideMenubar true\fi
\ifHy@windowui\else /HideWindowUI true\fi
\ifHy@fitwindow /FitWindow true\fi
\ifHy@centerwindow /CenterWindow true\fi
\ifHy@displaydoctitle /DisplayDocTitle true\fi
\Hy@UseNameKey{NonFullScreenPageMode}\@pdfnonfullscreenpagemode
\Hy@UseNameKey{Direction}\@pdfdirection
\Hy@UseNameKey{ViewArea}\@pdfviewarea
\Hy@UseNameKey{ViewClip}\@pdfviewclip
\Hy@UseNameKey{PrintArea}\@pdfprintarea
\Hy@UseNameKey{PrintClip}\@pdfprintclip
\Hy@UseNameKey{PrintScaling}\@pdfprintscaling
\Hy@UseNameKey{Duplex}\@pdfduplex
\ifx\@pdfpicktraybypdfsize\@empty
\else
/PickTrayByPDFSize \@pdfpicktraybypdfsize
\fi
\ifx\@pdfprintpagerange\@empty
\else
/PrintPageRange[\@pdfprintpagerange]%
\fi
\ifx\@pdfnumcopies\@empty
\else
/NumCopies \@pdfnumcopies
\fi
>>>}%
\ifx\@pdfpagelayout\@empty
\else
\special{!pdfinfo l=</\@pdfpagelayout\space>}%
\fi
}%
\def\PDF@FinishDoc{%
\Hy@UseMaketitleInfos
\special{!pdfinfo a=<\@pdfauthor>}%
\special{!pdfinfo t=<\@pdftitle>}%
\special{!pdfinfo s=<\@pdfsubject>}%
\special{!pdfinfo c=<\@pdfcreator>}%
\ifx\@pdfproducer\relax
\else
\special{!pdfinfo r=<\@pdfproducer>}%
\fi
\special{!pdfinfo k=<\@pdfkeywords>}%
\Hy@DisableOption{pdfauthor}%
\Hy@DisableOption{pdftitle}%
\Hy@DisableOption{pdfsubject}%
\Hy@DisableOption{pdfcreator}%
\Hy@DisableOption{pdfcreationdate}%
\Hy@DisableOption{pdfmoddate}%
\Hy@DisableOption{pdfproducer}%
\Hy@DisableOption{pdfkeywords}%
}
%</vtex>
% \end{macrocode}
%
% \subsection{Fix for Adobe bug number 466320}
% If a destination occurs at the very begin of a page,
% the destination is moved to the previous page by
% Adobe Distiller 5.
% As workaround Adobe suggests:
%\begin{verbatim}
%/showpage {
% //showpage
% clippath stroke erasepage
%} bind def
%\end{verbatim}
%
% But unfortunately this fix generates an empty page
% at the end of the document. Therefore another fix
% is used by writing some clipped text.
% \begin{macrocode}
%<dviwindo>\def\literalps@out#1{\special{ps:#1}}%
%<package>\providecommand*{\Hy@DistillerDestFix}{}
%<*pdfmark|dviwindo>
\def\Hy@DistillerDestFix{%
\begingroup
\let\x\literalps@out
% \end{macrocode}
% The fix has to be passed unchanged through GeX, if
% VTeX in PostScript mode with GeX is used.
% \begin{macrocode}
\ifnum \@ifundefined{OpMode}{0}{%
\@ifundefined{gexmode}{0}{%
\ifnum\gexmode>0 \OpMode\else 0\fi
}}>1 %
\def\x##1{%
\immediate\special{!=##1}%
}%
\fi
\x{%
/product where{%
pop %
product(Distiller)search{%
pop pop pop %
version(.)search{%
exch pop exch pop%
(3011)eq{%
gsave %
newpath 0 0 moveto closepath clip%
/Courier findfont 10 scalefont setfont %
72 72 moveto(.)show %
grestore%
}if%
}{pop}ifelse%
}{pop}ifelse%
}if%
}%
\endgroup
}
%</pdfmark|dviwindo>
% \end{macrocode}
%
% \subsection{Direct pdfmark support}
% Drivers that load |pdfmark.def| have to provide the
% correct macro definitions of
% \begin{center}
% \begin{tabular}{@{}ll@{}}
% |\@pdfproducer|& for document information\\
% |\literalps@out|& PostScript output\\
% |\headerps@out|& PostScript output that goes in the header area\\
% \end{tabular}
% \end{center}
% and the correct definitions of the following PostScript procedures:
% \begin{center}
% \begin{tabular}{@{}ll@{}}
% |H.S|& start of anchor, link or rect\\
% |#1 H.A|& end of anchor, argument=baselineskip in pt\\
% |#1 H.L|& end of link, argument=baselineskip in pt\\
% |H.R|& end of rect\\
% |H.B|& raw rect code\\
% \end{tabular}
% \end{center}
%
% \begin{macrocode}
%<*pdfmark>
\Hy@breaklinks@unsupported
\def\hyper@anchor#1{%
\Hy@SaveLastskip
\begingroup
\pdfmark[\anchor@spot]{%
pdfmark=/DEST,%
linktype=anchor,%
View=/\@pdfview \@pdfviewparams,%
DestAnchor={#1}%
}%
\endgroup
\Hy@RestoreLastskip
}
\@ifundefined{hyper@anchorstart}{}{\endinput}
\def\hyper@anchorstart#1{%
\Hy@SaveLastskip
\literalps@out{H.S}%
\xdef\hyper@currentanchor{#1}%
\Hy@activeanchortrue
}
\def\hyper@anchorend{%
\literalps@out{\strip@pt@and@otherjunk\baselineskip\space H.A}%
\pdfmark{%
pdfmark=/DEST,%
linktype=anchor,%
View=/\@pdfview \@pdfviewparams,%
DestAnchor=\hyper@currentanchor,%
}%
\Hy@activeanchorfalse
\Hy@RestoreLastskip
}
\def\hyper@linkstart#1#2{%
\ifHy@breaklinks
\else
\leavevmode\hbox\bgroup
\fi
\expandafter\Hy@colorlink\csname @#1color\endcsname
\literalps@out{H.S}%
\xdef\hyper@currentanchor{#2}%
\gdef\hyper@currentlinktype{#1}%
}
\def\hyper@linkend{%
\literalps@out{\strip@pt@and@otherjunk\baselineskip\space H.L}%
\@ifundefined{@\hyper@currentlinktype bordercolor}{%
\let\Hy@tempcolor\relax
}{%
\edef\Hy@tempcolor{%
\csname @\hyper@currentlinktype bordercolor\endcsname
}%
}%
\pdfmark{%
pdfmark=/ANN,%
linktype=link,%
Subtype=/Link,%
PDFAFlags=4,%
Dest=\hyper@currentanchor,%
AcroHighlight=\@pdfhighlight,%
Border=\@pdfborder,%
BorderStyle=\@pdfborderstyle,%
Color=\Hy@tempcolor,%
Raw=H.B%
}%
\Hy@endcolorlink
\ifHy@breaklinks
\else
\egroup
\fi
}
% \end{macrocode}
%
% We have to allow for |\baselineskip| having an optional
% stretch and shrink (you meet this in slide packages, for instance),
% so we need to strip off the junk. David Carlisle, of course,
% wrote this bit of code.
% \begin{macrocode}
\begingroup
\catcode`P=12 %
\catcode`T=12 %
\lowercase{\endgroup
\gdef\rem@ptetc#1.#2PT#3!{#1\ifnum#2>\z@.#2\fi}%
}
\def\strip@pt@and@otherjunk#1{\expandafter\rem@ptetc\the#1!}
% \end{macrocode}
%
% \begin{macro}{\hyper@pagetransition}
% \begin{macrocode}
\def\hyper@pagetransition{%
\ifx\@pdfpagetransition\relax
\else
\ifx\@pdfpagetransition\@empty
% 1. Does an old entry have to be deleted?
% 2. If 1=yes, how to delete?
\else
\pdfmark{%
pdfmark=/PUT,%
Raw={%
\string{ThisPage\string}%
<</Trans << /S /\@pdfpagetransition\space >> >>%
}%
}%
\fi
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\hyper@pageduration}
% \begin{macrocode}
\def\hyper@pageduration{%
\ifx\@pdfpageduration\relax
\else
\ifx\@pdfpageduration\@empty
% 1. Does an old entry have to be deleted?
% 2. If 1=yes, how to delete?
\else
\pdfmark{%
pdfmark=/PUT,%
Raw={%
\string{ThisPage\string}%
<</Dur \@pdfpageduration>>%
}%
}%
\fi
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\hyper@pagehidden}
% \begin{macrocode}
\def\hyper@pagehidden{%
\ifHy@useHidKey
\pdfmark{%
pdfmark=/PUT,%
Raw={%
\string{ThisPage\string}%
<</Hid \ifHy@pdfpagehidden true\else false\fi>>%
}%
}%
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macrocode}
\g@addto@macro\Hy@EveryPageBoxHook{%
\hyper@pagetransition
\hyper@pageduration
\hyper@pagehidden
}
% \end{macrocode}
% \begin{macrocode}
\def\hyper@image#1#2{%
\hyper@linkurl{#2}{#1}%
}
\def\Hy@undefinedname{UNDEFINED}
\def\hyper@link#1#2#3{%
\@ifundefined{@#1bordercolor}{%
\let\Hy@tempcolor\relax
}{%
\edef\Hy@tempcolor{\csname @#1bordercolor\endcsname}%
}%
\begingroup
\protected@edef\Hy@testname{#2}%
\ifx\Hy@testname\@empty
\Hy@Warning{%
Empty destination name,\MessageBreak
using `\Hy@undefinedname'%
}%
\let\Hy@testname\Hy@undefinedname
\fi
\pdfmark[{#3}]{%
Color=\Hy@tempcolor,%
linktype={#1},%
AcroHighlight=\@pdfhighlight,%
Border=\@pdfborder,%
BorderStyle=\@pdfborderstyle,%
pdfmark=/ANN,%
Subtype=/Link,%
PDFAFlags=4,%
Dest=\Hy@testname
}%
\endgroup
}
\newtoks\pdf@docset
\def\PDF@FinishDoc{%
\Hy@UseMaketitleInfos
\let\Hy@temp\@empty
\ifx\@pdfcreationdate\@empty
\else
\def\Hy@temp{CreationDate=\@pdfcreationdate,}%
\fi
\ifx\@pdfmoddate\@empty
\else
\expandafter\def\expandafter\Hy@temp\expandafter{%
\Hy@temp
ModDate=\@pdfmoddate,%
}%
\fi
\ifx\@pdfproducer\relax
\else
\expandafter\def\expandafter\Hy@temp\expandafter{%
\Hy@temp
Producer=\@pdfproducer,%
}%
\fi
\expandafter
\pdfmark\expandafter{%
\Hy@temp
pdfmark=/DOCINFO,%
Title=\@pdftitle,%
Subject=\@pdfsubject,%
Creator=\@pdfcreator,%
Author=\@pdfauthor,%
Keywords=\@pdfkeywords
}%
\Hy@DisableOption{pdfauthor}%
\Hy@DisableOption{pdftitle}%
\Hy@DisableOption{pdfsubject}%
\Hy@DisableOption{pdfcreator}%
\Hy@DisableOption{pdfcreationdate}%
\Hy@DisableOption{pdfmoddate}%
\Hy@DisableOption{pdfproducer}%
\Hy@DisableOption{pdfkeywords}%
}
\def\PDF@SetupDoc{%
\def\Hy@temp{}%
\ifx\@pdfstartpage\@empty
\else
\ifx\@pdfstartview\@empty
\else
\edef\Hy@temp{%
,Page=\@pdfstartpage
,View=\@pdfstartview
}%
\fi
\fi
\edef\Hy@temp{%
\noexpand\pdfmark{%
pdfmark=/DOCVIEW,%
PageMode=/\@pdfpagemode
\Hy@temp
}%
}%
\Hy@temp
\ifx\@pdfpagescrop\@empty
\else
\pdfmark{pdfmark=/PAGES,CropBox=\@pdfpagescrop}%
\fi
\edef\Hy@temp{%
\ifHy@toolbar\else /HideToolbar true\fi
\ifHy@menubar\else /HideMenubar true\fi
\ifHy@windowui\else /HideWindowUI true\fi
\ifHy@fitwindow /FitWindow true\fi
\ifHy@centerwindow /CenterWindow true\fi
\ifHy@displaydoctitle /DisplayDocTitle true\fi
\Hy@UseNameKey{NonFullScreenPageMode}\@pdfnonfullscreenpagemode
\Hy@UseNameKey{Direction}\@pdfdirection
\Hy@UseNameKey{ViewArea}\@pdfviewarea
\Hy@UseNameKey{ViewClip}\@pdfviewclip
\Hy@UseNameKey{PrintArea}\@pdfprintarea
\Hy@UseNameKey{PrintClip}\@pdfprintclip
\Hy@UseNameKey{PrintScaling}\@pdfprintscaling
\Hy@UseNameKey{Duplex}\@pdfduplex
\ifx\@pdfpicktraybypdfsize\@empty
\else
/PickTrayByPDFSize \@pdfpicktraybypdfsize
\fi
\ifx\@pdfprintpagerange\@empty
\else
/PrintPageRange[\@pdfprintpagerange]%
\fi
\ifx\@pdfnumcopies\@empty
\else
/NumCopies \@pdfnumcopies
\fi
}%
\Hy@pstringdef\Hy@pstringB{\@baseurl}%
\pdfmark{%
pdfmark=/PUT,%
Raw={%
\string{Catalog\string}<<%
\ifx\Hy@temp\@empty
\else
/ViewerPreferences<<\Hy@temp>>%
\fi
\Hy@UseNameKey{PageLayout}\@pdfpagelayout
\ifx\@pdflang\@empty
\else
/Lang(\@pdflang)%
\fi
\ifx\@baseurl\@empty
\else
/URI<</Base(\Hy@pstringB)>>%
\fi
>>%
}%
}%
}
%</pdfmark>
%<*pdfmarkbase>
% \end{macrocode}
% We define a single macro, pdfmark, which uses the `keyval' system
% to define the various allowable keys; these are \emph{exactly}
% as listed in the pdfmark reference for Acrobat 3.0. The only addition
% is \texttt{pdfmark} which specifies the type of pdfmark to create
% (like ANN, LINK etc). The
% surrounding round and square brackets in the pdfmark commands
% are supplied, but you have to put in / characters as needed for the
% values.
%
% \begin{macrocode}
\newif\ifHy@pdfmarkerror
\def\pdfmark{\@ifnextchar[{\pdfmark@}{\pdfmark@[]}}
\def\pdfmark@[#1]#2{%
\Hy@pdfmarkerrorfalse
\edef\@processme{\noexpand\pdf@toks={\the\pdf@defaulttoks}}%
\@processme
\let\pdf@type\relax
\setkeys{PDF}{#2}%
\ifHy@pdfmarkerror
\else
\ifx\pdf@type\relax
\Hy@WarningNoLine{no pdfmark type specified in #2!!}%
\ifx\\#1\\%
\else
\pdf@rect{#1}%
\fi
\else
\ifx\\#1\\%
\literalps@out{%
[\the\pdf@toks\space\pdf@type\space pdfmark%
}%
\else
\@ifundefined{@\pdf@linktype color}{%
\Hy@colorlink\@linkcolor
}{%
\expandafter\Hy@colorlink
\csname @\pdf@linktype color\endcsname
}%
\pdf@rect{#1}%
\literalps@out{%
[\the\pdf@toks\space\pdf@type\space pdfmark%
}%
\Hy@endcolorlink
\fi
\fi
\fi
}
% \end{macrocode}
% The complicated bit is working out the right enclosing rectangle of
% some piece of \TeX\ text, needed by the /Rect key. This solution originates
% with Toby Thain (\texttt{tobyt@netspace.net.au}).
%
% For the case breaklinks is enabled, I have added two hooks,
% the first one for package setouterhbox, it provides
% a hopefully better method without setting the text twice.
% \begin{quote}
% \verb|\usepackage[hyperref]{setouterhbox}|
% \end{quote}
% With the second hook, also you can set the text twice, e.g.:
% \begin{quote}
% \verb|\long\def\Hy@setouterhbox#1#2{\long\def\my@temp{#2}}|\\
% \verb|\def\Hy@breaklinksunhbox#1{\my@temp}|
% \end{quote}
% \begin{macrocode}
\newsavebox{\pdf@box}
\providecommand*{\Hy@setouterhbox}{\sbox}
\providecommand*{\Hy@breaklinksunhbox}{\unhbox}
\def\Hy@DEST{/DEST}
\def\pdf@rect#1{%
\leavevmode
\ifHy@breaklinks
\Hy@setouterhbox\pdf@box{#1}%
\else
\sbox\pdf@box{#1}%
\fi
\dimen@\ht\pdf@box
\ifdim\dp\pdf@box=\z@
\literalps@out{H.S}%
\else
\lower\dp\pdf@box\hbox{\literalps@out{H.S}}%
\fi
% \end{macrocode}
% If the text has to be horizontal mode stuff then just unbox
% the saved box like this, which saves executing it twice, which can
% mess up counters etc (thanks DPC\ldots).
% \begin{macrocode}
\ifHy@breaklinks
\expandafter\Hy@breaklinksunhbox
\else
\expandafter\box
\fi
\pdf@box
% \end{macrocode}
% but if it can have multiple paragraphs you'd need one of these,
% but in that case the measured box size would be wrong anyway.
% \begin{quote}
% |\ifHy@breaklinks#1\else\box\pdf@box\fi|\\
% |\ifHy@breaklinks{#1}\else\box\pdf@box\fi|
% \end{quote}
% \begin{macrocode}
\ifdim\dimen@=\z@
\literalps@out{H.R}%
\else
\raise\dimen@\hbox{\literalps@out{H.R}}%
\fi
\ifx\pdf@type\Hy@DEST
\else
\pdf@addtoksx{H.B}%
\fi
}
% \end{macrocode}
% All the supplied material is stored in a token list; since I do not
% feel sure I quite understand these, things may not work as expected
% with expansion. We'll have to experiment.
% \begin{macrocode}
\newtoks\pdf@toks
\newtoks\pdf@defaulttoks
\pdf@defaulttoks={}%
\def\pdf@addtoks#1#2{%
\edef\@processme{\pdf@toks{\the\pdf@toks/#2 #1}}%
\@processme
}
\def\pdf@addtoksx#1{%
\edef\@processme{\pdf@toks{\the\pdf@toks\space #1}}%
\@processme
}
\def\PDFdefaults#1{%
\pdf@defaulttoks={#1}%
}
% \end{macrocode}
% This is the list of allowed keys. See the Acrobat manual for an
% explanation.
% \begin{macrocode}
% what is the type of pdfmark?
\define@key{PDF}{pdfmark}{\def\pdf@type{#1}}
% what is the link type?
\define@key{PDF}{linktype}{\def\pdf@linktype{#1}}
\def\pdf@linktype{link}
% parameter is a stream of PDF
\define@key{PDF}{Raw}{\pdf@addtoksx{#1}}
% parameter is a name
\define@key{PDF}{Action}{\pdf@addtoks{#1}{Action}}
% parameter is a array
\define@key{PDF}{Border}{%
\edef\Hy@temp{#1}%
\ifx\Hy@temp\@empty
\else
\pdf@addtoks{[#1]\Hy@BorderArrayPatch}{Border}% hash-ok
\fi
}
\let\Hy@BorderArrayPatch\@empty
% parameter is a dictionary
\define@key{PDF}{BorderStyle}{%
\edef\Hy@temp{#1}%
\ifx\Hy@temp\@empty
\else
\pdf@addtoks{<<#1>>}{BS}%
\fi
}
% parameter is a array
\define@key{PDF}{Color}{%
\ifx\relax#1\relax
\else
\pdf@addtoks{[#1]}{Color}% hash-ok
\fi
}
% parameter is a string
\define@key{PDF}{Contents}{\pdf@addtoks{(#1)}{Contents}}
% parameter is a integer
\define@key{PDF}{Count}{\pdf@addtoks{#1}{Count}}
% parameter is a array
\define@key{PDF}{CropBox}{\pdf@addtoks{[#1]}{CropBox}}% hash-ok
% parameter is a string
\define@key{PDF}{DOSFile}{\pdf@addtoks{(#1)}{DOSFile}}
% parameter is a string or file
\define@key{PDF}{DataSource}{\pdf@addtoks{(#1)}{DataSource}}
% parameter is a destination
\define@key{PDF}{Dest}{%
\Hy@pstringdef\Hy@pstringDest{\HyperDestNameFilter{#1}}%
\ifx\Hy@pstringDest\@empty
\Hy@pdfmarkerrortrue
\Hy@Warning{Destination with empty name ignored}%
\else
\pdf@addtoks{(\Hy@pstringDest) cvn}{Dest}%
\fi
}
\define@key{PDF}{DestAnchor}{%
\Hy@pstringdef\Hy@pstringDest{\HyperDestNameFilter{#1}}%
\ifx\Hy@pstringDest\@empty
\Hy@pdfmarkerrortrue
\Hy@Warning{Destination with empty name ignored}%
\else
\pdf@addtoks{(\Hy@pstringDest) cvn}{Dest}%
\fi
}
% parameter is a string
\define@key{PDF}{Dir}{\pdf@addtoks{(#1)}{Dir}}
% parameter is a string
\define@key{PDF}{File}{\pdf@addtoks{(#1)}{File}}
% parameter is a int
\define@key{PDF}{Flags}{\pdf@addtoks{#1}{Flags}}
\define@key{PDF}{PDFAFlags}{%
\ifHy@pdfa
\pdf@addtoks{#1}{F}%
\fi
}
% parameter is a name
\define@key{PDF}{AcroHighlight}{%
\begingroup
\edef\x{#1}%
\expandafter\endgroup\ifx\x\@empty
\else
\pdf@addtoks{#1}{H}%
\fi
}
% parameter is a string
\define@key{PDF}{ID}{\pdf@addtoks{[#1]}{ID}}% hash-ok
% parameter is a string
\define@key{PDF}{MacFile}{\pdf@addtoks{(#1)}{MacFile}}
% parameter is a string
\define@key{PDF}{ModDate}{\pdf@addtoks{(#1)}{ModDate}}
% parameter is a string
\define@key{PDF}{Op}{\pdf@addtoks{(#1)}{Op}}
% parameter is a Boolean
\define@key{PDF}{Open}{\pdf@addtoks{#1}{Open}}
% parameter is a integer or name
\define@key{PDF}{Page}{\pdf@addtoks{#1}{Page}}
% parameter is a name
\define@key{PDF}{PageMode}{\pdf@addtoks{#1}{PageMode}}
% parameter is a string
\define@key{PDF}{Params}{\pdf@addtoks{(#1)}{Params}}
% parameter is a array
\define@key{PDF}{Rect}{\pdf@addtoks{[#1]}{Rect}}% hash-ok
% parameter is a integer
\define@key{PDF}{SrcPg}{\pdf@addtoks{#1}{SrcPg}}
% parameter is a name
\define@key{PDF}{Subtype}{\pdf@addtoks{#1}{Subtype}}
% parameter is a string
\define@key{PDF}{Title}{\pdf@addtoks{(#1)}{Title}}
% parameter is a string
\define@key{PDF}{Unix}{\pdf@addtoks{(#1)}{Unix}}
% parameter is a string
\define@key{PDF}{UnixFile}{\pdf@addtoks{(#1)}{UnixFile}}
% parameter is an array
\define@key{PDF}{View}{\pdf@addtoks{[#1]}{View}}% hash-ok
% parameter is a string
\define@key{PDF}{WinFile}{\pdf@addtoks{(#1)}{WinFile}}
% \end{macrocode}
% These are the keys used in the DOCINFO section.
% \begin{macrocode}
\define@key{PDF}{Author}{\pdf@addtoks{(#1)}{Author}}
\define@key{PDF}{Creator}{\pdf@addtoks{(#1)}{Creator}}
\define@key{PDF}{CreationDate}{\pdf@addtoks{(#1)}{CreationDate}}
\define@key{PDF}{ModDate}{\pdf@addtoks{(#1)}{ModDate}}
\define@key{PDF}{Producer}{\pdf@addtoks{(#1)}{Producer}}
\define@key{PDF}{Subject}{\pdf@addtoks{(#1)}{Subject}}
\define@key{PDF}{Keywords}{\pdf@addtoks{(#1)}{Keywords}}
\define@key{PDF}{ModDate}{\pdf@addtoks{(#1)}{ModDate}}
\define@key{PDF}{Base}{\pdf@addtoks{(#1)}{Base}}
\define@key{PDF}{URI}{\pdf@addtoks{#1}{URI}}
%</pdfmarkbase>
%<*pdfmark>
\def\Acrobatmenu#1#2{%
\Hy@Acrobatmenu{#1}{#2}{%
\pdfmark[{#2}]{%
linktype=menu,%
pdfmark=/ANN,%
AcroHighlight=\@pdfhighlight,%
Border=\@pdfborder,%
BorderStyle=\@pdfborderstyle,%
Action={<< /Subtype /Named /N /#1 >>},%
Subtype=/Link,%
PDFAFlags=4%
}%
}%
}
% \end{macrocode}
% And now for some useful examples:
% \begin{macrocode}
\def\PDFNextPage{\@ifnextchar[{\PDFNextPage@}{\PDFNextPage@[]}}
\def\PDFNextPage@[#1]#2{%
\pdfmark[{#2}]{%
#1,%
Border=\@pdfborder,%
BorderStyle=\@pdfborderstyle,%
Color=.2 .1 .5,%
pdfmark=/ANN,%
Subtype=/Link,%
PDFAFlags=4,%
Page=/Next%
}%
}
\def\PDFPreviousPage{%
\@ifnextchar[{\PDFPreviousPage@}{\PDFPreviousPage@[]}%
}
\def\PDFPreviousPage@[#1]#2{%
\pdfmark[{#2}]{%
#1,%
Border=\@pdfborder,%
BorderStyle=\@pdfborderstyle,%
Color=.4 .4 .1,%
pdfmark=/ANN,%
Subtype=/Link,%
PDFAFlags=4,%
Page=/Prev%
}%
}
\def\PDFOpen#1{%
\pdfmark{#1,pdfmark=/DOCVIEW}%
}
% \end{macrocode}
% This will only work if you use Distiller 2.1 or higher.
% \begin{macrocode}
\def\hyper@linkurl#1#2{%
\begingroup
\Hy@pstringdef\Hy@pstringURI{#2}%
\hyper@chars
\leavevmode
\pdfmark[{#1}]{%
pdfmark=/ANN,%
linktype=url,%
AcroHighlight=\@pdfhighlight,%
Border=\@pdfborder,%
BorderStyle=\@pdfborderstyle,%
Color=\@urlbordercolor,%
Action={<< /Subtype /URI /URI (\Hy@pstringURI) >>},%
Subtype=/Link,%
PDFAFlags=4%
}%
\endgroup
}
\def\hyper@linkfile#1#2#3{%
\begingroup
\Hy@pstringdef\Hy@pstringF{#2}%
\Hy@pstringdef\Hy@pstringD{#3}%
\leavevmode
\pdfmark[{#1}]{%
pdfmark=/ANN,%
Subtype=/Link,%
PDFAFlags=4,%
AcroHighlight=\@pdfhighlight,%
Border=\@pdfborder,%
BorderStyle=\@pdfborderstyle,%
linktype=file,%
Color=\@filebordercolor,%
Action={%
<<%
/S/GoToR%
\Hy@SetNewWindow
/F(\Hy@pstringF)%
/D\ifx\\#3\\[0 \@pdfstartview]\else(\Hy@pstringD)cvn\fi
>>%
}%
}%
\endgroup
}
\def\@hyper@launch run:#1\\#2#3{%
\begingroup
\Hy@pstringdef\Hy@pstringF{#1}%
\Hy@pstringdef\Hy@pstringP{#3}%
\leavevmode
\pdfmark[{#2}]{%
pdfmark=/ANN,%
Subtype=/Link,%
PDFAFlags=4,%
AcroHighlight=\@pdfhighlight,%
Border=\@pdfborder,%
BorderStyle=\@pdfborderstyle,%
linktype=run,%
Color=\@runbordercolor,%
Action={%
<<%
/S/Launch%
\Hy@SetNewWindow
/F(\Hy@pstringF)%
\ifx\\#3\\%
\else
/Win<</P(\Hy@pstringP)/F(\Hy@pstringF)>>%
\fi
>>%
}%
}%
\endgroup
}
%</pdfmark>
% \end{macrocode}
% Unfortunately, some parts of the |pdfmark|
% PostScript code depend on vagaries
% of the dvi driver. We isolate here all the problems.
%
% \subsection{Rokicki's dvips}
% dvips thinks in 10ths of a big point, its
% coordinate space is resolution dependent,
% and its $y$ axis starts at the top of the
% page. Other drivers can and will be different!
%
% The work is done in |SDict|, because we add in some header
% definitions in a moment.
% \begin{macrocode}
%<*dvips>
\providecommand*{\XR@ext}{pdf}
\def\Hy@raisedlink{}
\def\literalps@out#1{\special{ps:SDict begin #1 end}}%
\def\headerps@out#1{\special{! #1}}%
\input{pdfmark.def}%
\ifx\@pdfproducer\relax
\def\@pdfproducer{dvips + Distiller}%
\fi
\providecommand*\@pdfborder{0 0 1}
\providecommand*\@pdfborderstyle{}
\providecommand*\@pdfview{XYZ}
\providecommand*\@pdfviewparams{ H.V}
\def\Hy@BorderArrayPatch{BorderArrayPatch}
% \end{macrocode}
%
% \begin{macrocode}
\g@addto@macro\Hy@FirstPageHook{%
\headerps@out{%
% \end{macrocode}
% Unless I am going mad, this \emph{appears} to be the relationship
% between the default coordinate system (PDF), and dvips;
% \begin{verbatim}
% /DvipsToPDF { .01383701 div Resolution div } def
% /PDFToDvips { .01383701 mul Resolution mul } def
% \end{verbatim}
% the latter's coordinates are resolution dependent, but what that
% .01383701 is, who knows? well, almost everyone except me, I expect\ldots
% And yes, Maarten Gelderman \texttt{<mgelderman@econ.vu.nl>}
% points out that its 1/72.27 (the number of points to an inch, big points
% to inch is 1/72). This also suggests that the code would be more
% understandable (and exact) if 0.013 div would be replaced by 72.27 mul,
% so here we go. If this isn't right, I'll revert it.
% \begin{macrocode}
/DvipsToPDF{72.27 mul Resolution div} def%
/PDFToDvips{72.27 div Resolution mul} def%
/BPToDvips{72 div Resolution mul}def%
% \end{macrocode}
% The values inside the /Boder array are not taken literally, but
% interpreted by ghostscript using the resolution of the dvi driver.
% I don't know how other distiller programs behaves in this manner.
% \begin{macrocode}
/BorderArrayPatch{%
[exch{%
dup dup type/integertype eq exch type/realtype eq or%
{BPToDvips}if%
}forall]%
}def%
% \end{macrocode}
% The rectangle around the links starts off
% \emph{exactly} the size of the box;
% we will to make it slightly bigger, 1 point on all sides.
% \begin{macrocode}
/HyperBorder {1 PDFToDvips} def%
/H.V {pdf@hoff pdf@voff null} def%
/H.B {/Rect[pdf@llx pdf@lly pdf@urx pdf@ury]} def%
% \end{macrocode}
% |H.S| (start of anchor, link, or rect) stores
% the $x$ and $y$ coordinates of the current point, in PDF coordinates
% \begin{macrocode}
/H.S {%
currentpoint %
HyperBorder add /pdf@lly exch def %
dup DvipsToPDF 72 add /pdf@hoff exch def %
HyperBorder sub /pdf@llx exch def%
} def%
% \end{macrocode}
%
% The calculation of upper left $y$ is done without
% raising the point in \TeX,
% by simply adding on the current |\baselineskip| to the current $y$.
% This is usually too much, so we remove a notional 2 points.
%
% We have to see what the current baselineskip is, and convert it
% to the dvips coordinate system.
%
% Argument: baselineskip in pt.
% The $x$ and $y$ coordinates of the current point, minus the baselineskip
% \begin{macrocode}
/H.L {%
2 sub dup%
/HyperBasePt exch def %
PDFToDvips /HyperBaseDvips exch def %
currentpoint %
HyperBaseDvips sub /pdf@ury exch def%
/pdf@urx exch def%
} def%
/H.A {%
H.L %
% |/pdf@voff| = the distance from the top of the page to a point
% |\baselineskip| above the current point in PDF coordinates
currentpoint exch pop %
vsize 72 sub exch DvipsToPDF %
HyperBasePt sub % baseline skip
sub /pdf@voff exch def%
} def%
/H.R {%
currentpoint %
HyperBorder sub /pdf@ury exch def %
HyperBorder add /pdf@urx exch def %
% |/pdf@voff| = the distance from the top of the page to the current point, in
% PDF coordinates
currentpoint exch pop vsize 72 sub %
exch DvipsToPDF sub /pdf@voff exch def%
} def%
}%
}
\AtBeginShipoutFirst{%
\ifHy@setpagesize
\begingroup
\@ifundefined{stockwidth}{%
\ifx\special@paper\@empty
\special{papersize=\the\paperwidth,\the\paperheight}%
\else
\special{papersize=\special@paper}%
\fi
}{%
\ifdim\stockwidth=\z@
\else
\special{papersize=\the\stockwidth,\the\stockheight}%
\fi
}%
\endgroup
\fi
\Hy@DisableOption{setpagesize}%
}
%</dvips>
% \end{macrocode}
%
% \subsection{VTeX's vtexpdfmark driver}
%
% This part is derived from the dvips
% (many names reflect this).
%
% The origin seems to be the same as TeX's origin,
% 1 in from the left and 1 in downwards from the top.
% The direction of the $y$ axis is downwards,
% the opposite of the dvips case. Units seems
% to be pt or bp.
%
% \begin{macrocode}
%<*vtexpdfmark>
\providecommand*{\XR@ext}{pdf}
\def\Hy@raisedlink{}
\def\literalps@out#1{\special{pS:#1}}%
\def\headerps@out#1{\immediate\special{pS:#1}}%
\input{pdfmark.def}%
\ifx\@pdfproducer\relax
\ifnum\OpMode=\@ne
\def\@pdfproducer{VTeX}%
\else
\def\@pdfproducer{VTeX + Distiller}%
\fi
\fi
\providecommand*\@pdfborder{0 0 1}
\providecommand*\@pdfborderstyle{}
\providecommand*\@pdfview{XYZ}
\providecommand*\@pdfviewparams{ H.V}
% \end{macrocode}
%
% \begin{macrocode}
\g@addto@macro\Hy@FirstPageHook{%
\headerps@out{%
/vsize {\Hy@pageheight} def%
% \end{macrocode}
% The rectangle around the links starts off
% \emph{exactly} the size of the box;
% we will to make it slightly bigger, 1 point on all sides.
% \begin{macrocode}
/HyperBorder {1} def%
/H.V {pdf@hoff pdf@voff null} def%
/H.B {/Rect[pdf@llx pdf@lly pdf@urx pdf@ury]} def%
% \end{macrocode}
%
% |H.S| (start of anchor, link, or rect) stores
% the $x$ and $y$ coordinates of the current point, in PDF coordinates:
% $\mathtt{pdf@lly} = Y_c - \mathtt{HyperBorder}$,
% $\mathtt{pdf@hoff} = X_c + 72$,
% $\mathtt{pdf@llx} = X_c - \mathtt{HyperBorder}$
% \begin{macrocode}
/H.S {%
currentpoint %
HyperBorder sub%
/pdf@lly exch def %
dup 72 add /pdf@hoff exch def %
HyperBorder sub%
/pdf@llx exch def%
} def%
% \end{macrocode}
% The $x$ and $y$ coordinates of the current point, minus the
% |\baselineskip|:
% $\mathtt{pdf@ury} = Y_c + \mathtt{HyperBasePt} + \mathtt{HyperBorder}$,
% $\mathtt{pdf@urx} = X_c + \mathtt{HyperBorder}$
% \begin{macrocode}
/H.L {%
2 sub%
/HyperBasePt exch def %
currentpoint %
HyperBasePt add HyperBorder add%
/pdf@ury exch def %
HyperBorder add%
/pdf@urx exch def%
} def%
/H.A {%
H.L %
currentpoint exch pop %
vsize 72 sub exch %
HyperBasePt add add%
/pdf@voff exch def%
} def%
% \end{macrocode}
% $\mathtt{pdf@ury} = Y_c + \mathtt{HyperBorder}$,
% $\mathtt{pdf@urx} = X_c + \mathtt{HyperBorder}$
% \begin{macrocode}
/H.R {%
currentpoint %
HyperBorder add%
/pdf@ury exch def %
HyperBorder add%
/pdf@urx exch def %
currentpoint exch pop vsize 72 sub add%
/pdf@voff exch def%
} def%
}%
}
%</vtexpdfmark>
% \end{macrocode}
%
% \subsection{Textures}
%
% \begin{macrocode}
%<*textures>
\providecommand*{\XR@ext}{pdf}
% \end{macrocode}
%
% At the suggestion of Jacques Distler (distler@golem.ph.utexas.edu), try
% to derive a suitable driver for Textures. This was initially a copy of
% dvips, with some guesses about Textures behaviour.
% Ross Moore (\Email{ross@maths.mq.edu.au}) has added modifications
% for better compatibility, and to support use of pdfmark.
%
% Start by defining a macro that expands to the end-of-line character.
% This will be used to format the appearance of PostScript code,
% to enhance readability, and avoid excessively long lines which
% might otherwise become broken to bad places.
%
% \begin{macro}{\Hy@ps@CR}
% The macro \verb|\Hy@ps@CR| contains the end-of-line character.
% \begin{macrocode}
\begingroup
\obeylines %
\gdef\Hy@ps@CR{\noexpand
}%
\endgroup %
% \end{macrocode}
% \end{macro}
%
% Textures has two types of \verb|\special| command for inserting
% PostScript code directly into the dvi output. The `postscript'
% way preserves TeX's idea of where on the page the \verb|\special|
% occurred, but it wraps the contents with a \verb|save|--\verb|restore|
% pair, and adjusts the user-space coordinate system for local drawing
% commands. The `rawpostscript' way simply inserts code, without regard
% for the location on the page.
%
% Thus, to put arbitrary PostScript coding at a fixed location requires
% using \emph{both} \verb|\special| constructions.
% It works by pushing the device-space coordinates onto the operand stack,
% where they can be used to transform back to the correct user-space
% coordinates for the whole page, within a `rawpostscript' \verb|\special|.
%
% \begin{macrocode}
\def\literalps@out#1{%
\special{postscript 0 0 transform}%
\special{rawpostscript itransform moveto\Hy@ps@CR #1}%
}%
%
% \end{macrocode}
%
% The `prepostscript' is a 3rd kind of \verb|\special|, used for
% inserting definitions into the dictionaries, before page-building
% begins. These are to be available for use on all pages.
%
% \begin{macrocode}
\def\headerps@out#1{%
\special{%
prepostscript TeXdict begin\Hy@ps@CR
#1\Hy@ps@CR
end%
}%
}%
%
% \end{macrocode}
%
% To correctly support the \verb|pdfmark| method, for embedding
% PDF definitions with \verb|.ps| files in a non-intrusive way,
% an appropriate definition needs to be made \emph{before}
% the file \verb|pdfmark.def| is read. Other parameters are best
% set afterwards.
%
% \begin{macrocode}
\g@addto@macro\Hy@FirstPageHook{%
\headerps@out{%
/betterpdfmark {%
systemdict begin %
dup /BP eq%
{cleartomark gsave nulldevice [}%
{dup /EP eq%
{cleartomark cleartomark grestore}%
{cleartomark}%
ifelse%
}ifelse %
end%
}def\Hy@ps@CR
__pdfmark__ not{/pdfmark /betterpdfmark load def}if%
}% end of \headerps@out
}% end of \AtBeginShipoutFirst
%
\input{pdfmark.def}%
%
\ifx\@pdfproducer\relax
\def\@pdfproducer{Textures + Distiller}%
\fi
\providecommand*\@pdfborder{0 0 1}
\providecommand*\@pdfborderstyle{}
\providecommand*\@pdfview{XYZ}
\providecommand*\@pdfviewparams{ H.V}
%
% \end{macrocode}
% These are called at the start and end of unboxed links;
% their job is to leave available PS variables called
% |pdf@llx pdf@lly pdf@urx pdf@ury|, which are the coordinates
% of the bounding rectangle of the link, and |pdf@hoff pdf@voff|
% which are the PDF page offsets.
% The Rect pair are called at the LL and UR corners of a box
% known to \TeX.
% \begin{macrocode}
\headerps@out{%
% \end{macrocode}
% Textures lives in normal points, I think. So conversion from one
% coordinate system to another involves doing nothing.
%
% \begin{macrocode}
/vsize {\Hy@pageheight} def%
/DvipsToPDF {} def%
/PDFToDvips {} def%
/BPToDvips {} def%
/HyperBorder { 1 PDFToDvips } def\Hy@ps@CR
/H.V {pdf@hoff pdf@voff null} def\Hy@ps@CR
/H.B {/Rect[pdf@llx pdf@lly pdf@urx pdf@ury]} def\Hy@ps@CR
/H.S {%
currentpoint %
HyperBorder add /pdf@lly exch def %
dup DvipsToPDF 72 add /pdf@hoff exch def %
HyperBorder sub /pdf@llx exch def%
} def\Hy@ps@CR
/H.L {%
2 sub %
PDFToDvips /HyperBase exch def %
currentpoint %
HyperBase sub /pdf@ury exch def%
/pdf@urx exch def%
} def\Hy@ps@CR
/H.A {%
H.L %
currentpoint exch pop %
vsize 72 sub exch DvipsToPDF %
HyperBase sub % baseline skip
sub /pdf@voff exch def%
} def\Hy@ps@CR
/H.R {%
currentpoint %
HyperBorder sub /pdf@ury exch def %
HyperBorder add /pdf@urx exch def %
currentpoint exch pop vsize 72 sub %
exch DvipsToPDF sub /pdf@voff exch def%
} def\Hy@ps@CR
}
% \end{macrocode}
% \begin{macrocode}
\AfterBeginDocument{%
\ifHy@colorlinks
\headerps@out{/PDFBorder{/Border [0 0 0]}def}%
\fi
}
% \end{macrocode}
% Textures provides built-in support for HyperTeX specials
% so this part combines code from \verb|hypertex.def| with what
% is established by loading \verb|pdfmark.def|, or any other driver.
% \begin{macrocode}
\expandafter\let\expandafter\keepPDF@SetupDoc
\csname PDF@SetupDoc\endcsname
\def\PDF@SetupDoc{%
\ifx\@baseurl\@empty
\else
\special{html:<base href="\@baseurl">}%
\fi
\keepPDF@SetupDoc
}
\def\hyper@anchor#1{%
\Hy@SaveLastskip
\begingroup
\let\protect=\string
\special{html:<a name=%
\hyper@quote\HyperDestNameFilter{#1}\hyper@quote>}%
\endgroup
\Hy@activeanchortrue
\Hy@colorlink\@anchorcolor\anchor@spot\Hy@endcolorlink
\special{html:</a>}%
\Hy@activeanchorfalse
\Hy@RestoreLastskip
}
\def\hyper@anchorstart#1{%
\Hy@SaveLastskip
\begingroup
\hyper@chars
\special{html:<a name=%
\hyper@quote\HyperDestNameFilter{#1}\hyper@quote>}%
\endgroup
\Hy@activeanchortrue
}
\def\hyper@anchorend{%
\special{html:</a>}%
\Hy@activeanchorfalse
\Hy@RestoreLastskip
}
\def\@urltype{url}
\def\hyper@linkstart#1#2{%
\expandafter\Hy@colorlink\csname @#1color\endcsname
\def\Hy@tempa{#1}%
\ifx\Hy@tempa\@urltype
\special{html:<a href=\hyper@quote#2\hyper@quote>}%
\else
\begingroup
\hyper@chars
\special{html:<a href=%
\hyper@quote\#\HyperDestNameFilter{#2}\hyper@quote>}%
\endgroup
\fi
}
\def\hyper@linkend{%
\special{html:</a>}%
\Hy@endcolorlink
}
\def\hyper@linkfile#1#2#3{%
\hyper@linkurl{#1}{\Hy@linkfileprefix#2\ifx\\#3\\\else\##3\fi}%
}
\def\hyper@linkurl#1#2{%
\leavevmode
\ifHy@raiselinks
\setbox\@tempboxa=\color@hbox #1\color@endbox
\@linkdim\dp\@tempboxa
\lower\@linkdim\hbox{%
\hyper@chars
\special{html:<a href=\hyper@quote#2\hyper@quote>}%
}%
\Hy@colorlink\@urlcolor#1%
\@linkdim\ht\@tempboxa
\advance\@linkdim by -6.5\p@
\raise\@linkdim\hbox{\special{html:</a>}}%
\Hy@endcolorlink
\else
\begingroup
\hyper@chars
\special{html:<a href=\hyper@quote#2\hyper@quote>}%
\Hy@colorlink\@urlcolor#1%
\special{html:</a>}%
\Hy@endcolorlink
\endgroup
\fi
}
% \end{macrocode}
% Very poor implementation of \cs{hyper@link} without considering |#1|.
% \begin{macrocode}
\def\hyper@link#1#2#3{%
\hyper@linkurl{#3}{\#\HyperDestNameFilter{#2}}%
}
\def\hyper@image#1#2{%
\begingroup
\hyper@chars
\special{html:<img src=\hyper@quote#1\hyper@quote>}%
\endgroup
}
%</textures>
% \end{macrocode}
% \subsection{dvipsone}
% \begin{macrocode}
% \subsection{dvipsone driver}
% Over-ride the default setup macro in pdfmark driver to use Y\&Y
% |\special| commands.
%<*dvipsone>
\providecommand*{\XR@ext}{pdf}
\def\Hy@raisedlink{}
\providecommand*\@pdfborder{0 0 1}
\providecommand*\@pdfborderstyle{}
\def\literalps@out#1{\special{ps:#1}}%
\def\headerps@out#1{\special{headertext=#1}}%
\input{pdfmark.def}%
\ifx\@pdfproducer\relax
\def\@pdfproducer{dvipsone + Distiller}%
\fi
\def\PDF@FinishDoc{%
\Hy@UseMaketitleInfos
\special{PDF: Keywords \@pdfkeywords}%
\special{PDF: Title \@pdftitle}%
\special{PDF: Creator \@pdfcreator}%
\ifx\@pdfcreationdate\@empty
\else
\special{PDF: CreationDate \@pdfcreationdate}%
\fi
\ifx\@pdfmoddate\@empty
\else
\special{PDF: ModDate \@pdfmoddate}%
\fi
\special{PDF: Author \@pdfauthor}%
\ifx\@pdfproducer\relax
\else
\special{PDF: Producer \@pdfproducer}%
\fi
\special{PDF: Subject \@pdfsubject}%
\Hy@DisableOption{pdfauthor}%
\Hy@DisableOption{pdftitle}%
\Hy@DisableOption{pdfsubject}%
\Hy@DisableOption{pdfcreator}%
\Hy@DisableOption{pdfcreationdate}%
\Hy@DisableOption{pdfmoddate}%
\Hy@DisableOption{pdfproducer}%
\Hy@DisableOption{pdfkeywords}%
}
\def\PDF@SetupDoc{%
\def\Hy@temp{}%
\ifx\@pdfstartpage\@empty
\else
\ifx\@pdfstartview\@empty
\else
\edef\Hy@temp{%
,Page=\@pdfstartpage
,View=\@pdfstartview
}%
\fi
\fi
\edef\Hy@temp{%
\noexpand\pdfmark{%
pdfmark=/DOCVIEW,%
PageMode=/\@pdfpagemode
\Hy@temp
}%
}%
\Hy@temp
\ifx\@pdfpagescrop\@empty
\else
\pdfmark{pdfmark=/PAGES,CropBox=\@pdfpagescrop}%
\fi
\edef\Hy@temp{%
\ifHy@toolbar\else /HideToolbar true\fi
\ifHy@menubar\else /HideMenubar true\fi
\ifHy@windowui\else /HideWindowUI true\fi
\ifHy@fitwindow /FitWindow true\fi
\ifHy@centerwindow /CenterWindow true\fi
\ifHy@displaydoctitle /DisplayDocTitle true\fi
\Hy@UseNameKey{NonFullScreenPageMode}\@pdfnonfullscreenpagemode
\Hy@UseNameKey{Direction}\@pdfdirection
\Hy@UseNameKey{ViewArea}\@pdfviewarea
\Hy@UseNameKey{ViewClip}\@pdfviewclip
\Hy@UseNameKey{PrintArea}\@pdfprintarea
\Hy@UseNameKey{PrintClip}\@pdfprintclip
\Hy@UseNameKey{PrintScaling}\@pdfprintscaling
\Hy@UseNameKey{Duplex}\@pdfduplex
\ifx\@pdfpicktraybypdfsize\@empty
\else
/PickTrayByPDFSize \@pdfpicktraybypdfsize
\fi
\ifx\@pdfprintpagerange\@empty
\else
/PrintPageRange[\@pdfprintpagerange]%
\fi
\ifx\@pdfnumcopies\@empty
\else
/NumCopies \@pdfnumcopies
\fi
}%
\Hy@pstringdef\Hy@pstringB{\@baseurl}%
\pdfmark{%
pdfmark=/PUT,%
Raw={%
\string{Catalog\string}<<%
\ifx\Hy@temp\@empty
\else
/ViewerPreferences<<\Hy@temp>>%
\fi
\Hy@UseNameKey{PageLayout}\@pdfpagelayout
\ifx\@pdflang\@empty
\else
/Lang(\@pdflang)%
\fi
\ifx\@baseurl\@empty
\else
/URI<</Base(\Hy@pstringB)>>%
\fi
>>%
}%
}%
}
\providecommand*\@pdfview{XYZ}
\providecommand*\@pdfviewparams{ %
gsave revscl currentpoint grestore %
72 add exch pop null exch null%
}
\def\Hy@BorderArrayPatch{BorderArrayPatch}
% \end{macrocode}
% These are called at the start and end of unboxed links;
% their job is to leave available PS variables called
% |pdf@llx pdf@lly pdf@urx pdf@ury|, which are the coordinates
% of the bounding rectangle of the link, and |pdf@hoff pdf@voff|
% which are the PDF page offsets. These latter are currently not
% used in the dvipsone setup.
% The Rect pair are called at the LL and UR corners of a box
% known to \TeX.
% \begin{macrocode}
\g@addto@macro\Hy@FirstPageHook{%
\headerps@out{%
% \end{macrocode}
% dvipsone lives in scaled points; does this mean 65536 or 65781?
% \begin{macrocode}
/DvipsToPDF { 65781 div } def%
/PDFToDvips { 65781 mul } def%
/BPToDvips{65781 mul}def%
/HyperBorder { 1 PDFToDvips } def%
/H.B {/Rect[pdf@llx pdf@lly pdf@urx pdf@ury]} def%
% \end{macrocode}
% The values inside the /Boder array are not taken literally, but
% interpreted by ghostscript using the resolution of the dvi driver.
% I don't know how other distiller programs behaves in this manner.
% \begin{macrocode}
/BorderArrayPatch{%
[exch{%
dup dup type/integertype eq exch type/realtype eq or%
{BPToDvips}if%
}forall]%
}def%
% \end{macrocode}
%
% \begin{macrocode}
/H.S {%
currentpoint %
HyperBorder add /pdf@lly exch def %
dup DvipsToPDF 72 add /pdf@hoff exch def %
HyperBorder sub /pdf@llx exch def%
} def%
/H.L {%
2 sub %
PDFToDvips /HyperBase exch def %
currentpoint %
HyperBase sub /pdf@ury exch def%
/pdf@urx exch def%
} def%
/H.A {%
H.L %
currentpoint exch pop %
HyperBase sub % baseline skip
DvipsToPDF /pdf@voff exch def%
} def%
/H.R {%
currentpoint %
HyperBorder sub /pdf@ury exch def %
HyperBorder add /pdf@urx exch def %
currentpoint exch pop DvipsToPDF /pdf@voff exch def%
} def%
}%
}
%</dvipsone>
% \end{macrocode}
%
% \subsection{TeX4ht}
% \begin{macrocode}
%<*tex4ht>
\providecommand*{\XR@ext}{html}
\def\Hy@raisedlink{}
\@ifpackageloaded{tex4ht}{%
\typeout{hyperref tex4ht: tex4ht already loaded}%
}{%
\RequirePackage[htex4ht]{tex4ht}%
}
\hyperlinkfileprefix{}
\def\PDF@FinishDoc{}
\def\PDF@SetupDoc{%
\ifx\@baseurl\@empty
\else
\special{t4ht=<base href="\@baseurl">}%
\fi
}
\def\hyper@anchor#1{%
\Hy@SaveLastskip
\begingroup
\let\protect=\string
\special{t4ht=<a name=%
\hyper@quote\HyperDestNameFilter{#1}\hyper@quote>}%
\endgroup
\Hy@activeanchortrue
\Hy@colorlink\@anchorcolor\anchor@spot\Hy@endcolorlink
\special{t4ht=</a>}%
\Hy@activeanchorfalse
\Hy@RestoreLastskip
}
\def\hyper@anchorstart#1{%
\Hy@SaveLastskip
\begingroup
\hyper@chars\special{t4ht=<a name=%
\hyper@quote\HyperDestNameFilter{#1}\hyper@quote>}%
\endgroup
\Hy@activeanchortrue
}
\def\hyper@anchorend{%
\special{t4ht=</a>}%
\Hy@activeanchorfalse
\Hy@RestoreLastskip
}
\def\@urltype{url}
\def\hyper@linkstart#1#2{%
\expandafter\Hy@colorlink\csname @#1color\endcsname
\def\Hy@tempa{#1}%
\ifx\Hy@tempa\@urltype
\special{t4ht=<a href=\hyper@quote#2\hyper@quote>}%
\else
\begingroup
\hyper@chars
\special{t4ht=<a href=%
\hyper@quote\#\HyperDestNameFilter{#2}\hyper@quote>}%
\endgroup
\fi
}
\def\hyper@linkend{%
\special{t4ht=</a>}%
\Hy@endcolorlink
}
\def\hyper@linkfile#1#2#3{%
\hyper@linkurl{#1}{\Hy@linkfileprefix#2\ifx\\#3\\\else\##3\fi}%
}
\def\hyper@linkurl#1#2{%
\leavevmode
\ifHy@raiselinks
\setbox\@tempboxa=\color@hbox #1\color@endbox
\@linkdim\dp\@tempboxa
\lower\@linkdim\hbox{%
\begingroup
\hyper@chars\special{t4ht=<a href=\hyper@quote#2\hyper@quote>}%
\endgroup
}%
\Hy@colorlink\@urlcolor#1\Hy@endcolorlink
\@linkdim\ht\@tempboxa
\advance\@linkdim by -6.5\p@
\raise\@linkdim\hbox{\special{t4ht=</a>}}%
\else
\begingroup
\hyper@chars
\special{t4ht=<a href=\hyper@quote#2\hyper@quote>}%
\Hy@colorlink\@urlcolor#1\Hy@endcolorlink
\special{t4ht=</a>}%
\endgroup
\fi
}
% \end{macrocode}
% Poor implementation of \cs{hyper@link} without considering |#1|.
% \begin{macrocode}
\def\hyper@link#1#2#3{%
\hyper@linkurl{#3}{\#\HyperDestNameFilter{#2}}%
}
\def\hyper@image#1#2{%
\begingroup
\hyper@chars
\special{t4ht=<img src=\hyper@quote#1\hyper@quote>}%
\endgroup
}
\let\autoref\ref
\ifx \rEfLiNK \UnDef
\def\rEfLiNK #1#2{#2}%
\fi
\def\backref#1{}
%</tex4ht>
%<*tex4htcfg>
\IfFileExists{\jobname.cfg}{\endinput}{}
\Preamble{html}
\begin{document}%
\EndPreamble
\def\TeX{TeX}
\def\OMEGA{Omega}
\def\LaTeX{La\TeX}
\def\LaTeXe{\LaTeX2e}
\def\eTeX{e-\TeX}
\def\MF{Metafont}
\def\MP{MetaPost}
%</tex4htcfg>
% \end{macrocode}
%
% \section{Driver-specific form support}
% \subsection{pdfmarks}
% \begin{macrocode}
%<*pdfmark>
\long\def\@Form[#1]{%
\g@addto@macro\Hy@FirstPageHook{%
\headerps@out{%
[%
/_objdef{pdfDocEncoding}%
/type/dict%
/OBJ pdfmark%
[%
{pdfDocEncoding}%
<<%
/Type/Encoding%
/Differences[%
24/breve/caron/circumflex/dotaccent/hungarumlaut/ogonek/ring%
/tilde %
39/quotesingle %
96/grave %
128/bullet/dagger/daggerdbl/ellipsis/emdash/endash/florin%
/fraction/guilsinglleft/guilsinglright/minus/perthousand%
/quotedblbase/quotedblleft/quotedblright/quoteleft%
/quoteright/quotesinglbase/trademark/fi/fl/Lslash/OE/Scaron%
/Ydieresis/Zcaron/dotlessi/lslash/oe/scaron/zcaron %
164/currency %
166/brokenbar %
168/dieresis/copyright/ordfeminine %
172/logicalnot/.notdef/registered/macron/degree/plusminus%
/twosuperior/threesuperior/acute/mu %
183/periodcentered/cedilla/onesuperior/ordmasculine %
188/onequarter/onehalf/threequarters %
192/Agrave/Aacute/Acircumflex/Atilde/Adieresis/Aring/AE%
/Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave%
/Iacute/Icircumflex/Idieresis/Eth/Ntilde/Ograve/Oacute%
/Ocircumflex/Otilde/Odieresis/multiply/Oslash/Ugrave%
/Uacute/Ucircumflex/Udieresis/Yacute/Thorn/germandbls%
/agrave/aacute/acircumflex/atilde/adieresis/aring/ae%
/ccedilla/egrave/eacute/ecircumflex/edieresis/igrave%
/iacute/icircumflex/idieresis/eth/ntilde/ograve/oacute%
/ocircumflex/otilde/odieresis/divide/oslash/ugrave/uacute%
/ucircumflex/udieresis/yacute/thorn/ydieresis%
]%
>>%
/PUT pdfmark%
[%
/_objdef{ZaDb}%
/type/dict%
/OBJ pdfmark%
[%
{ZaDb}%
<<%
/Type/Font%
/Subtype/Type1%
/Name/ZaDb%
/BaseFont/ZapfDingbats%
>>%
/PUT pdfmark%
[%
/_objdef{Helv}%
/type/dict%
/OBJ pdfmark%
[%
{Helv}%
<<%
/Type/Font%
/Subtype/Type1%
/Name/Helv%
/BaseFont/Helvetica%
/Encoding{pdfDocEncoding}%
>>%
/PUT pdfmark%
[%
/_objdef{aform}%
/type/dict%
/OBJ pdfmark%
[%
/_objdef{afields}%
/type/array%
/OBJ pdfmark%
{%
[%
/BBox[0 0 100 100]%
/_objdef{Check}%
/BP pdfmark %
1 0 0 setrgbcolor%
/ZapfDingbats 80 selectfont %
20 20 moveto%
(4)show%
[/EP pdfmark%
[%
/BBox[0 0 100 100]%
/_objdef{Cross}%
/BP pdfmark %
1 0 0 setrgbcolor%
/ZapfDingbats 80 selectfont %
20 20 moveto%
(8)show%
[/EP pdfmark%
[%
/BBox[0 0 250 100]%
/_objdef{Submit}%
/BP pdfmark %
0.6 setgray %
0 0 250 100 rectfill %
1 setgray %
2 2 moveto %
2 98 lineto %
248 98 lineto %
246 96 lineto %
4 96 lineto %
4 4 lineto %
fill %
0.34 setgray %
248 98 moveto %
248 2 lineto %
2 2 lineto %
4 4 lineto %
246 4 lineto %
246 96 lineto %
fill%
/Helvetica 76 selectfont %
0 setgray %
8 22.5 moveto%
(Submit)show%
[/EP pdfmark%
[%
/BBox[0 0 250 100]%
/_objdef{SubmitP}%
/BP pdfmark %
0.6 setgray %
0 0 250 100 rectfill %
0.34 setgray %
2 2 moveto %
2 98 lineto %
248 98 lineto %
246 96 lineto %
4 96 lineto %
4 4 lineto %
fill %
1 setgray %
248 98 moveto %
248 2 lineto %
2 2 lineto %
4 4 lineto %
246 4 lineto %
246 96 lineto %
fill%
/Helvetica 76 selectfont %
0 setgray %
10 20.5 moveto%
(Submit)show%
[/EP pdfmark%
} ?pdfmark%
[%
{aform}%
<<%
/Fields{afields}%
/DR<<%
/Font<<%
/ZaDb{ZaDb}%
/Helv{Helv}%
>>%
>>%
/DA(/Helv 10 Tf 0 g)%
/CO{corder}%
\ifHy@pdfa
\else
/NeedAppearances true%
\fi
>>%
/PUT pdfmark%
[%
{Catalog}%
<<%
/AcroForm{aform}%
>>%
/PUT pdfmark%
[%
/_objdef{corder}%
/type/array%
/OBJ pdfmark% dps
}}%
\setkeys{Form}{#1}%
}
\def\@endForm{}
\def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
\typeout{Sorry, pdfmark drivers do not support FORM gauges}%
}
\def\@TextField[#1]#2{% parameters, label
\def\Fld@name{#2}%
\def\Fld@default{}%
\let\Fld@value\@empty
\def\Fld@width{\DefaultWidthofText}%
\def\Fld@height{%
\ifFld@multiline
\DefaultHeightofTextMultiline
\else
\DefaultHeightofText
\fi
}%
\begingroup
\Field@toks={ }%
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofText,#1%
}%
\HyField@FlagsText
\ifFld@hidden\def\Fld@width{1sp}\fi
\ifx\Fld@value\@empty\def\Fld@value{\Fld@default}\fi
\LayoutTextField{#2}{%
\Hy@escapeform\PDFForm@Text
\pdfmark[\MakeTextField{\Fld@width}{\Fld@height}]{%
pdfmark=/ANN,Raw={\PDFForm@Text}%
}%
}%
\endgroup
}
\def\@ChoiceMenu[#1]#2#3{% parameters, label, choices
\def\Fld@name{#2}%
\let\Fld@default\relax
\let\Fld@value\relax
\def\Fld@width{\DefaultWidthofChoiceMenu}%
\def\Fld@height{\DefaultHeightofChoiceMenu}%
\begingroup
\Fld@menulength=0 %
\@tempdima\z@
\@for\@curropt:=#3\do{%
\expandafter\Fld@checkequals\@curropt==\\%
\Hy@StepCount\Fld@menulength
\settowidth{\@tempdimb}{\@currDisplay}%
\ifdim\@tempdimb>\@tempdima\@tempdima\@tempdimb\fi
}%
\advance\@tempdima by 15\p@
\Field@toks={ }%
\begingroup
\HyField@SetKeys{#1}%
\edef\x{\endgroup
\noexpand\expandafter
\noexpand\HyField@SetKeys
\noexpand\expandafter{%
\expandafter\noexpand\csname DefaultOptionsof%
\ifFld@radio
Radio%
\else
\ifFld@combo
\ifFld@popdown
PopdownBox%
\else
ComboBox%
\fi
\else
ListBox%
\fi
\fi
\endcsname
}%
}\x
\HyField@SetKeys{#1}%
\ifFld@hidden\def\Fld@width{1sp}\fi
\ifx\Fld@value\relax
\let\Fld@value\Fld@default
\fi
\LayoutChoiceField{#2}{%
\ifFld@radio
\HyField@FlagsRadioButton
\@@Radio{#3}%
\else
\begingroup
\HyField@FlagsChoice
\ifdim\Fld@width<\@tempdima
\ifdim\@tempdima<1cm\@tempdima1cm\fi
\edef\Fld@width{\the\@tempdima}%
\fi
\ifFld@combo
\else
\@tempdima=\the\Fld@menulength\Fld@charsize
\advance\@tempdima by \Fld@borderwidth bp %
\advance\@tempdima by \Fld@borderwidth bp %
\edef\Fld@height{\the\@tempdima}%
\fi
\@@Listbox{#3}%
\endgroup
\fi
}%
\endgroup
}
\def\@@Radio#1{%
\Fld@listcount=0 %
\@for\@curropt:=#1\do{%
\expandafter\Fld@checkequals\@curropt==\\%
\Hy@StepCount\Fld@listcount
\@currDisplay\space
\Hy@escapeform\PDFForm@Radio
\pdfmark[\MakeRadioField{\Fld@width}{\Fld@height}]{%
pdfmark=/ANN,%
Raw={\PDFForm@Radio /AP <</N <</\@currValue\space {Check}>> >>}%
} % deliberate space between radio buttons
}%
}
\newcount\Fld@listcount
\def\@@Listbox#1{%
\HyField@PDFChoices{#1}%
\Hy@escapeform\PDFForm@List
\pdfmark[\MakeChoiceField{\Fld@width}{\Fld@height}]{%
pdfmark=/ANN,Raw={\PDFForm@List}%
}%
}
\def\@PushButton[#1]#2{% parameters, label
\def\Fld@name{#2}%
\begingroup
\Field@toks={ }%
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofPushButton,#1%
}%
\ifHy@pdfa
\PackageError{hyperref}{%
PDF/A: Push button with JavaScript is prohibited%
}\@ehc
\LayoutPushButtonField{%
\leavevmode
\MakeButtonField{#2}%
}%
\else
\HyField@FlagsPushButton
\ifFld@hidden\def\Fld@width{1sp}\fi
\LayoutPushButtonField{%
\leavevmode
\Hy@escapeform\PDFForm@Push
\pdfmark[\MakeButtonField{#2}]{%
pdfmark=/ANN,Raw={\PDFForm@Push}%
}%
}%
\fi
\endgroup
}
\def\@Submit[#1]#2{%
\Field@toks={ }%
\def\Fld@width{\DefaultWidthofSubmit}%
\def\Fld@height{\DefaultHeightofSubmit}%
\begingroup
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofSubmit,#1%
}%
\HyField@FlagsPushButton
\HyField@FlagsSubmit
\ifFld@hidden\def\Fld@width{1sp}\fi
\Hy@escapeform\PDFForm@Submit
\pdfmark[\MakeButtonField{#2}]{%
pdfmark=/ANN,%
Raw={\PDFForm@Submit /AP << /N {Submit} /D {SubmitP} >>}%
}%
\endgroup
}
\def\@Reset[#1]#2{%
\Field@toks={ }%
\def\Fld@width{\DefaultWidthofReset}%
\def\Fld@height{\DefaultHeightofReset}%
\begingroup
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofReset,#1%
}%
\leavevmode
\ifHy@pdfa
\PackageError{hyperref}{%
PDF/A: Reset action is prohibited%
}\@ehc
\MakeButtonField{#2}%
\else
\HyField@FlagsPushButton
\ifFld@hidden\def\Fld@width{1sp}\fi
\Hy@escapeform\PDFForm@Reset
\pdfmark[\MakeButtonField{#2}]{%
pdfmark=/ANN,Raw={\PDFForm@Reset}%
}%
\fi
\endgroup
}%
\def\@CheckBox[#1]#2{% parameters, label
\def\Fld@name{#2}%
\def\Fld@default{0}%
\begingroup
\def\Fld@width{\DefaultWidthofCheckBox}%
\def\Fld@height{\DefaultHeightofCheckBox}%
\Field@toks={ }%
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofCheckBox,#1%
}%
\HyField@FlagsCheckBox
\ifFld@hidden\def\Fld@width{1sp}\fi
\LayoutCheckField{#2}{%
\Hy@escapeform\PDFForm@Check
\pdfmark[\MakeCheckField{\Fld@width}{\Fld@height}]{%
pdfmark=/ANN,Raw={\PDFForm@Check}%
}%
}%
\endgroup
}
%</pdfmark>
% \end{macrocode}
%
% \subsection{HyperTeX}
% \begin{macrocode}
%<*hypertex>
\def\@Form[#1]{\typeout{Sorry, HyperTeX does not support FORMs}}
\def\@endForm{}
\def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
\typeout{Sorry, HyperTeX does not support FORM gauges}%
}
\def\@TextField[#1]#2{% parameters, label
\typeout{Sorry, HyperTeX does not support FORM text fields}%
}
\def\@CheckBox[#1]#2{% parameters, label
\typeout{Sorry, HyperTeX does not support FORM checkboxes}%
}
\def\@ChoiceMenu[#1]#2#3{% parameters, label, choices
\typeout{Sorry, HyperTeX does not support FORM choice menus}%
}
\def\@PushButton[#1]#2{% parameters, label
\typeout{Sorry, HyperTeX does not support FORM pushbuttons}%
}
\def\@Reset[#1]#2{\typeout{Sorry, HyperTeX does not support FORMs}}
\def\@Submit[#1]#2{\typeout{Sorry, HyperTeX does not support FORMs}}
%</hypertex>
% \end{macrocode}
% \subsection{TeX4ht}
% \begin{macrocode}
%<*tex4ht>
\def\@Form[#1]{%
\setkeys{Form}{#1}%
\HCode{<form action="\Form@action" method="\Form@method">}%
}
\def\@endForm{\HCode{</form>}}
\def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
\typeout{Sorry, TeX4ht does not support gauges}%
}
\def\@TextField[#1]#2{% parameters, label
\let\Hy@reserved@a\@empty
\def\Fld@name{#2}%
\def\Fld@default{}%
\bgroup
\Field@toks={ }%
\setkeys{Field}{#1}%
\HCode{<label for="\Fld@name">#2</label>}%
\ifFld@password
\@@PasswordField
\else
\@@TextField
\fi
\egroup
}
\def\@@PasswordField{%
\HCode{%
<input type="password" %
id="\Fld@name" %
name="\Fld@name" %
\ifFld@hidden type="hidden" \fi
value="\Fld@default" %
\the\Field@toks
>%
}%
}
\def\@@TextField{%
\ifFld@multiline
\HCode{<textarea %
\ifFld@readonly readonly \fi
id="\Fld@name" %
name="\Fld@name" %
\ifFld@hidden type="hidden" \fi
\the\Field@toks>%
}%
\Fld@default
\HCode{</textarea>}%
\else
\HCode{<input type="textbox" %
\ifFld@readonly readonly \fi
id="\Fld@name" %
name="\Fld@name" %
\ifFld@hidden type="hidden" \fi
value="\Fld@default" %
\the\Field@toks>%
}%
\fi
}
\def\@ChoiceMenu[#1]#2#3{% parameters, label, choices
\def\Fld@name{#2}%
\def\Fld@default{}%
\let\Hy@reserved@a\relax
\begingroup
\expandafter\Fld@findlength#3\\%
\Field@toks={ }%
\setkeys{Field}{#1}%
#2%
\ifFld@radio
\expandafter\@@Radio#3\\%
\else
\expandafter\@@Menu#3\\%
\fi
\endgroup
}
\def\Fld@findlength#1\\{%
\Fld@menulength=0 %
\@for\@curropt:=#1\do{\Hy@StepCount\Fld@menulength}%
}
\def\@@Menu#1\\{%
\HCode{<select size="\the\Fld@menulength" %
name="\Fld@name" %
\the\Field@toks>%
}%
\@for\@curropt:=#1\do{%
\expandafter\Fld@checkequals\@curropt==\\%
\HCode{<option %
\ifx\@curropt\Fld@default selected \fi
value="\@currValue">\@currDisplay</option>%
}%
}%
\HCode{</select>}%
}
\def\@@Radio#1\\{%
\@for\@curropt:=#1\do{%
\expandafter\Fld@checkequals\@curropt==\\%
\HCode{<input type="radio" %
\ifx\@curropt\Fld@default checked \fi
name="\Fld@name" %
value="\@currValue" %
\the\Field@toks>%
}%
\@currDisplay
}%
}
\def\@PushButton[#1]#2{% parameters, label
\def\Fld@name{#2}%
\bgroup
\Field@toks={ }%
\setkeys{Field}{#1}%
\HCode{<input type="button" %
name="\Fld@name" %
value="#2" %
\the\Field@toks>%
}%
\HCode{</button>}%
\egroup
}
\def\@Submit[#1]#2{%
\HCode{<button type="submit">#2</button>}%
}
\def\@Reset[#1]#2{%
\HCode{<button type="reset">#2</button>}%
}
\def\@CheckBox[#1]#2{% parameters, label
\let\Hy@reserved@a\@empty
\def\Fld@name{#2}%
\def\Fld@default{0}%
\bgroup
\Field@toks={ }%
\setkeys{Field}{#1}%
\HCode{<input type="checkbox" %
\ifFld@checked checked \fi
\ifFld@disabled disabled \fi
\ifFld@readonly readonly \fi
name="\Fld@name" %
\ifFld@hidden type="hidden" \fi
value="\Fld@default" %
\the\Field@toks>%
#2%
}%
\egroup
}
%</tex4ht>
% \end{macrocode}
%
% \subsection{pdfTeX}
% \begin{macrocode}
%<*pdftex>
\def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
\typeout{Sorry, pdftex does not support FORM gauges}%
}
\def\MakeFieldObject#1#2{\sbox0{#1}%
\immediate\pdfxform0 %
\expandafter\edef\csname #2Object\endcsname{%
\the\pdflastxform\space 0 R%
}%
% \hbox to 0pt{\hskip-\maxdimen{\pdfrefxform \the\pdflastxform}}%
}%
\def\HyField@afields{}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname pdflastlink\endcsname\relax
\let\HyField@AddToFields\relax
\PackageInfo{hyperref}{%
You need pdfTeX 1.40.0 for setting the /Fields entry.\MessageBreak
Adobe Reader/Acrobat accepts an empty /Field array,\MessageBreak
but other PDF viewers might complain%
}%
\else
\def\HyField@AddToFields{%
\xdef\HyField@afields{%
\ifx\HyField@afields\@empty
\else
\HyField@afields
\space
\fi
\the\pdflastlink\space 0 R%
}%
}%
\fi
\def\@Form[#1]{%
\@ifundefined{textcolor}{\let\textcolor\@gobble}{}%
\setkeys{Form}{#1}%
\Hy@FormObjects
\ifnum\pdftexversion>13 %
\pdfrefobj\OBJ@pdfdocencoding
\pdfrefobj\OBJ@ZaDb
\pdfrefobj\OBJ@Helv
\fi
\AtEndDocument{%
\immediate\pdfobj{%
<<%
/Fields[\HyField@afields]%
/DR<<%
/Font<<%
/ZaDb \OBJ@ZaDb\space 0 R%
/Helv \OBJ@Helv\space 0 R%
>>%
>>%
/DA(/Helv 10 Tf 0 g)%
\ifHy@pdfa
\else
/NeedAppearances true%
\fi
>>%
}%
\edef\OBJ@acroform{\the\pdflastobj}%
\pdfcatalog{/AcroForm \OBJ@acroform\space 0 R}%
}%
\MakeFieldObject{%
% \end{macrocode}
% Same as \verb|\ding{123}| of package pifont.
% \begin{macrocode}
\begingroup
\fontfamily{pzd}%
\fontencoding{U}%
\fontseries{m}%
\fontshape{n}%
\selectfont
\char123 %
\endgroup
}{Ding}%
\MakeFieldObject{%
\fbox{\textcolor{yellow}{\textsf{Submit}}}%
}{Submit}%
\MakeFieldObject{%
\fbox{\textcolor{yellow}{\textsf{SubmitP}}}%
}{SubmitP}%
}
\def\@endForm{}
\def\@TextField[#1]#2{% parameters, label
\def\Fld@name{#2}%
\def\Fld@default{}%
\let\Fld@value\@empty
\def\Fld@width{\DefaultWidthofText}%
\def\Fld@height{%
\ifFld@multiline
\DefaultHeightofTextMultiline
\else
\DefaultHeightofText
\fi
}%
\begingroup
\Field@toks={ }%
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofText,#1%
}%
\PDFForm@Name
\HyField@FlagsText
\ifFld@hidden\def\Fld@width{1sp}\fi
\ifx\Fld@value\@empty\def\Fld@value{\Fld@default}\fi
\LayoutTextField{#2}{%
\Hy@escapeform\PDFForm@Text
\pdfstartlink user {\PDFForm@Text}\relax
\MakeTextField{\Fld@width}{\Fld@height}\pdfendlink
\HyField@AddToFields
}%
\endgroup
}
\def\@ChoiceMenu[#1]#2#3{% parameters, label, choices
\def\Fld@name{#2}%
\let\Fld@default\relax
\let\Fld@value\relax
\def\Fld@width{\DefaultWidthofChoiceMenu}%
\def\Fld@height{\DefaultHeightofChoiceMenu}%
\begingroup
\Fld@menulength=0 %
\@tempdima\z@
\@for\@curropt:=#3\do{%
\expandafter\Fld@checkequals\@curropt==\\%
\Hy@StepCount\Fld@menulength
\settowidth{\@tempdimb}{\@currDisplay}%
\ifdim\@tempdimb>\@tempdima\@tempdima\@tempdimb\fi
}%
\advance\@tempdima by 15\p@
\Field@toks={ }%
\begingroup
\HyField@SetKeys{#1}%
\edef\x{\endgroup
\noexpand\expandafter
\noexpand\HyField@SetKeys
\noexpand\expandafter{%
\expandafter\noexpand\csname DefaultOptionsof%
\ifFld@radio
Radio%
\else
\ifFld@combo
\ifFld@popdown
PopdownBox%
\else
ComboBox%
\fi
\else
ListBox%
\fi
\fi
\endcsname
}%
}\x
\HyField@SetKeys{#1}%
\PDFForm@Name
\ifFld@hidden\def\Fld@width{1sp}\fi
\ifx\Fld@value\relax
\let\Fld@value\Fld@default
\fi
\LayoutChoiceField{#2}{%
\ifFld@radio
\HyField@FlagsRadioButton
\@@Radio{#3}%
\else
\begingroup
\HyField@FlagsChoice
\ifdim\Fld@width<\@tempdima
\ifdim\@tempdima<1cm\@tempdima1cm\fi
\edef\Fld@width{\the\@tempdima}%
\fi
\ifFld@combo
\else
\@tempdima=\the\Fld@menulength\Fld@charsize
\advance\@tempdima by \Fld@borderwidth bp %
\advance\@tempdima by \Fld@borderwidth bp %
\edef\Fld@height{\the\@tempdima}%
\fi
\@@Listbox{#3}%
\endgroup
\fi
}%
\endgroup
}
\def\@@Radio#1{%
\Fld@listcount=0 %
\@for\@curropt:=#1\do{%
\expandafter\Fld@checkequals\@curropt==\\%
\Hy@StepCount\Fld@listcount
\@currDisplay\space
\leavevmode
\Hy@escapeform\PDFForm@Radio
\pdfstartlink user {%
\PDFForm@Radio
/AP<<%
/N<<%
% \end{macrocode}
% Laurent.Guillope@math.univ-nantes.fr (Laurent Guillope)
% persuades me that this was wrong:
% |/\Fld@name\the\Fld@listcount|. But I leave it here to remind
% me that it is untested.
% \begin{macrocode}
/\@currValue\space \DingObject
>>%
>>%
}%
\relax
\MakeRadioField{\Fld@width}{\Fld@height}\pdfendlink
\ifnum\Fld@listcount=1 %
\HyField@AddToFields
\fi
\space % deliberate space between radio buttons
}%
}
\newcount\Fld@listcount
\def\@@Listbox#1{%
\HyField@PDFChoices{#1}%
\leavevmode
\Hy@escapeform\PDFForm@List
\pdfstartlink user {\PDFForm@List}\relax
\MakeChoiceField{\Fld@width}{\Fld@height}%
\pdfendlink
\HyField@AddToFields
}
\def\@PushButton[#1]#2{% parameters, label
\def\Fld@name{#2}%
\begingroup
\Field@toks={ }%
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofPushButton,#1%
}%
\PDFForm@Name
\ifHy@pdfa
\PackageError{hyperref}{%
PDF/A: Push button with JavaScript is prohibited%
}\@ehc
\LayoutPushButtonField{%
\leavevmode
\MakeButtonField{#2}%
}%
\else
\HyField@FlagsPushButton
\ifFld@hidden\def\Fld@width{1sp}\fi
\LayoutPushButtonField{%
\leavevmode
\Hy@escapeform\PDFForm@Push
\pdfstartlink user {\PDFForm@Push}\relax
\MakeButtonField{#2}%
\pdfendlink
\HyField@AddToFields
}%
\fi
\endgroup
}
\def\@Submit[#1]#2{%
\Field@toks={ }%
\def\Fld@width{\DefaultWidthofSubmit}%
\def\Fld@height{\DefaultHeightofSubmit}%
\begingroup
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofSubmit,#1%
}%
\HyField@FlagsPushButton
\HyField@FlagsSubmit
\ifFld@hidden\def\Fld@width{1sp}\fi
\leavevmode
\Hy@escapeform\PDFForm@Submit
\pdfstartlink user {%
\PDFForm@Submit
/AP<</N \SubmitObject/D \SubmitPObject>>%
}%
\relax
\MakeButtonField{#2}%
\pdfendlink
\HyField@AddToFields
\endgroup
}
\def\@Reset[#1]#2{%
\Field@toks={ }%
\def\Fld@width{\DefaultWidthofReset}%
\def\Fld@height{\DefaultHeightofReset}%
\begingroup
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofReset,#1%
}%
\leavevmode
\ifHy@pdfa
\PackageError{hyperref}{%
PDF/A: Reset action is prohibited%
}\@ehc
\MakeButtonField{#2}%
\else
\HyField@FlagsPushButton
\ifFld@hidden\def\Fld@width{1sp}\fi
\Hy@escapeform\PDFForm@Reset
\pdfstartlink user {\PDFForm@Reset}\relax
\MakeButtonField{#2}%
\pdfendlink
\HyField@AddToFields
\fi
\endgroup
}
\def\@CheckBox[#1]#2{% parameters, label
\def\Fld@name{#2}%
\def\Fld@default{0}%
\begingroup
\def\Fld@width{\DefaultWidthofCheckBox}%
\def\Fld@height{\DefaultHeightofCheckBox}%
\Field@toks={ }%
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofCheckBox,#1%
}%
\PDFForm@Name
\HyField@FlagsCheckBox
\ifFld@hidden\def\Fld@width{1sp}\fi
\LayoutCheckField{#2}{%
\Hy@escapeform\PDFForm@Check
\pdfstartlink user {\PDFForm@Check}\relax
\MakeCheckField{\Fld@width}{\Fld@height}%
\pdfendlink
\HyField@AddToFields
}%
\endgroup
}
\def\Hy@FormObjects{%
\pdfobj {%
<<%
/Type/Encoding%
/Differences[%
24/breve/caron/circumflex/dotaccent/hungarumlaut/ogonek%
/ring/tilde %
39/quotesingle %
96/grave %
128/bullet/dagger/daggerdbl/ellipsis/emdash/endash/florin%
/fraction/guilsinglleft/guilsinglright/minus/perthousand%
/quotedblbase/quotedblleft/quotedblright/quoteleft%
/quoteright/quotesinglbase/trademark/fi/fl/Lslash/OE%
/Scaron/Ydieresis/Zcaron/dotlessi/lslash/oe/scaron/zcaron %
164/currency %
166/brokenbar %
168/dieresis/copyright/ordfeminine %
172/logicalnot/.notdef/registered/macron/degree/plusminus%
/twosuperior/threesuperior/acute/mu %
183/periodcentered/cedilla/onesuperior/ordmasculine %
188/onequarter/onehalf/threequarters %
192/Agrave/Aacute/Acircumflex/Atilde/Adieresis/Aring/AE%
/Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave%
/Iacute/Icircumflex/Idieresis/Eth/Ntilde/Ograve/Oacute%
/Ocircumflex/Otilde/Odieresis/multiply/Oslash/Ugrave%
/Uacute/Ucircumflex/Udieresis/Yacute/Thorn/germandbls%
/agrave/aacute/acircumflex/atilde/adieresis/aring/ae%
/ccedilla/egrave/eacute/ecircumflex/edieresis/igrave%
/iacute/icircumflex/idieresis/eth/ntilde/ograve/oacute%
/ocircumflex/otilde/odieresis/divide/oslash/ugrave%
/uacute/ucircumflex/udieresis/yacute/thorn/ydieresis%
]%
>>%
}%
\xdef\OBJ@pdfdocencoding{\the\pdflastobj}%
\pdfobj{%
<<%
/Type/Font%
/Subtype/Type1%
/Name/ZaDb%
/BaseFont/ZapfDingbats%
>>%
}%
\xdef\OBJ@ZaDb{\the\pdflastobj}%
\pdfobj{%
<<%
/Type/Font%
/Subtype/Type1%
/Name/Helv%
/BaseFont/Helvetica%
/Encoding \OBJ@pdfdocencoding\space 0 R%
>>%
}%
\xdef\OBJ@Helv{\the\pdflastobj}%
\global\let\Hy@FormObjects\relax
}
%</pdftex>
% \end{macrocode}
%
% \subsection{dvipdfm}
% D. P. Story adapted the pdf\TeX{} forms part for dvipdfm, of which
% version 0.12.7b or higher is required because of a bug.
% \begin{macrocode}
%<*dvipdfm>
% \end{macrocode}
%
% \begin{macro}{\@Gauge}
% \begin{macrocode}
\def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
\typeout{Sorry, dvipdfm does not support FORM gauges}%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@Form}
% \begin{macrocode}
\def\@Form[#1]{%
\@ifundefined{textcolor}{\let\textcolor\@gobble}{}%
\setkeys{Form}{#1}%
\Hy@FormObjects
\@pdfm@mark{obj @afields []}%
\@pdfm@mark{obj @corder []}%
\@pdfm@mark{%
obj @aform <<%
/Fields @afields%
/DR<<%
/Font<<%
/ZaDb @OBJZaDb%
/Helv @OBJHelv%
>>%
>>%
/DA(/Helv 10 Tf 0 g)%
/CO @corder%
\ifHy@pdfa
\else
/NeedAppearances true%
\fi
>>%
}%
\@pdfm@mark{put @catalog <</AcroForm @aform>>}%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\@endForm}
% \begin{macrocode}
\def\@endForm{}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\dvipdfm@setdim}
% \cmd{\dvipdfm@setdim} sets dimensions for ann using
% \cmd{\pdfm@box}.
% \begin{macrocode}
\def\dvipdfm@setdim{%
height \the\ht\pdfm@box\space
width \the\wd\pdfm@box\space
depth \the\dp\pdfm@box\space
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\HyField@AnnotCount}
% \begin{macrocode}
\newcount\HyField@AnnotCount
\HyField@AnnotCount=\z@
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyField@AdvanceAnnotCount}
% \begin{macrocode}
\def\HyField@AdvanceAnnotCount{%
\global\advance\HyField@AnnotCount\@ne
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\HyField@TheAnnotCount}
% \begin{macrocode}
\def\HyField@TheAnnotCount{%
\the\HyField@AnnotCount
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@TextField}
% \begin{macrocode}
\def\@TextField[#1]#2{% parameters, label
\def\Fld@name{#2}%
\def\Fld@default{}%
\let\Fld@value\@empty
\def\Fld@width{\DefaultWidthofText}%
\def\Fld@height{%
\ifFld@multiline
\DefaultHeightofTextMultiline
\else
\DefaultHeightofText
\fi
}%
\begingroup
\Field@toks={ }%
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofText,#1%
}%
\PDFForm@Name
\HyField@FlagsText
\ifFld@hidden\def\Fld@width{1sp}\fi
\ifx\Fld@value\@empty\def\Fld@value{\Fld@default}\fi
\setbox\pdfm@box=\hbox{%
\MakeTextField{\Fld@width}{\Fld@height}%
}%
\HyField@AdvanceAnnotCount
\LayoutTextField{#2}{%
\Hy@escapeform\PDFForm@Text
\@pdfm@mark{%
ann @text\HyField@TheAnnotCount\space
\dvipdfm@setdim << \PDFForm@Text >>%
}%
}%
\unhbox\pdfm@box
\@pdfm@mark{put @afields @text\HyField@TheAnnotCount}%
% record in @afields array
\endgroup
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@ChoiceMenu}
% \begin{macrocode}
\def\@ChoiceMenu[#1]#2#3{% parameters, label, choices
\def\Fld@name{#2}%
\let\Fld@default\relax
\let\Fld@value\relax
\def\Fld@width{\DefaultWidthofChoiceMenu}%
\def\Fld@height{\DefaultHeightofChoiceMenu}%
\begingroup
\Fld@menulength=0 %
\@tempdima\z@
\@for\@curropt:=#3\do{%
\expandafter\Fld@checkequals\@curropt==\\%
\Hy@StepCount\Fld@menulength
\settowidth{\@tempdimb}{\@currDisplay}%
\ifdim\@tempdimb>\@tempdima\@tempdima\@tempdimb\fi
}%
\advance\@tempdima by 15\p@
\Field@toks={ }%
\begingroup
\HyField@SetKeys{#1}%
\edef\x{\endgroup
\noexpand\expandafter
\noexpand\HyField@SetKeys
\noexpand\expandafter{%
\expandafter\noexpand\csname DefaultOptionsof%
\ifFld@radio
Radio%
\else
\ifFld@combo
\ifFld@popdown
PopdownBox%
\else
ComboBox%
\fi
\else
ListBox%
\fi
\fi
\endcsname
}%
}\x
\HyField@SetKeys{#1}%
\PDFForm@Name
\ifFld@hidden\def\Fld@width{1sp}\fi
\ifx\Fld@value\relax
\let\Fld@value\Fld@default
\fi
\LayoutChoiceField{#2}{%
\ifFld@radio
\HyField@FlagsRadioButton
\@@Radio{#3}%
\else
\begingroup
\HyField@FlagsChoice
\ifdim\Fld@width<\@tempdima
\ifdim\@tempdima<1cm\@tempdima1cm\fi
\edef\Fld@width{\the\@tempdima}%
\fi
\ifFld@combo
\else
\@tempdima=\the\Fld@menulength\Fld@charsize
\advance\@tempdima by \Fld@borderwidth bp %
\advance\@tempdima by \Fld@borderwidth bp %
\edef\Fld@height{\the\@tempdima}%
\fi
\@@Listbox{#3}%
\endgroup
\fi
}%
\endgroup
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@@Radio}
% \begin{macrocode}
\def\@@Radio#1{%
\Fld@listcount=0 %
\setbox\pdfm@box=\hbox{\MakeRadioField{\Fld@width}{\Fld@height}}%
\@for\@curropt:=#1\do{%
\expandafter\Fld@checkequals\@curropt==\\%
\Hy@StepCount\Fld@listcount
\@currDisplay\space
\leavevmode
\Hy@escapeform\PDFForm@Radio
\ifnum\Fld@listcount=1 %
\HyField@AdvanceAnnotCount
\fi
\@pdfm@mark{%
ann \ifnum\Fld@listcount=1 @radio\HyField@TheAnnotCount\space\fi
\dvipdfm@setdim
<<%
\PDFForm@Radio
/AP<</N<</\@currValue /null>>>>%
>>%
}%
\unhcopy\pdfm@box\space% deliberate space between radio buttons
\ifnum\Fld@listcount=1 %
\@pdfm@mark{put @afields @radio\HyField@TheAnnotCount}%
\fi
}%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Fld@listcount}
% \begin{macrocode}
\newcount\Fld@listcount
% \end{macrocode}
% \end{macro}
% \begin{macro}{\@@Listbox}
% \begin{macrocode}
\def\@@Listbox#1{%
\HyField@PDFChoices{#1}%
\setbox\pdfm@box=\hbox{\MakeChoiceField{\Fld@width}{\Fld@height}}%
\leavevmode
\Hy@escapeform\PDFForm@List
\HyField@AdvanceAnnotCount
\@pdfm@mark{%
ann @list\HyField@TheAnnotCount\space
\dvipdfm@setdim
<<\PDFForm@List>>%
}%
\unhbox\pdfm@box
\@pdfm@mark{put @afields @list\HyField@TheAnnotCount}%
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@PushButton}
% \begin{macrocode}
\def\@PushButton[#1]#2{% parameters, label
\def\Fld@name{#2}%
\begingroup
\Field@toks={ }%
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofPushButton,#1%
}%
\PDFForm@Name
\ifHy@pdfa
\PackageError{hyperref}{%
PDF/A: Push button with JavaScript is prohibited%
}\@ehc
\LayoutPushButtonField{%
\leavevmode
\MakeButtonField{#2}%
}%
\else
\setbox\pdfm@box=\hbox{\MakeButtonField{#2}}%
\HyField@FlagsPushButton
\ifFld@hidden\def\Fld@width{1sp}\fi
\HyField@AdvanceAnnotCount
\LayoutPushButtonField{%
\leavevmode
\Hy@escapeform\PDFForm@Push
\@pdfm@mark{%
ann @push\HyField@TheAnnotCount\space
\dvipdfm@setdim
<<\PDFForm@Push>>%
}%
}%
\unhbox\pdfm@box
\@pdfm@mark{put @afields @push\HyField@TheAnnotCount}%
\fi
\endgroup
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@Submit}
% \begin{macrocode}
\def\@Submit[#1]#2{%
\Field@toks={ }%
\def\Fld@width{\DefaultWidthofSubmit}%
\def\Fld@height{\DefaultHeightofSubmit}%
\begingroup
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofSubmit,#1%
}%
\HyField@FlagsPushButton
\HyField@FlagsSubmit
\ifFld@hidden\def\Fld@width{1sp}\fi
\setbox\pdfm@box=\hbox{\MakeButtonField{#2}}%
\leavevmode
\Hy@escapeform\PDFForm@Submit
\HyField@AdvanceAnnotCount
\@pdfm@mark{%
ann @submit\HyField@TheAnnotCount\space
\dvipdfm@setdim
<<\PDFForm@Submit>>%
}%
\unhbox\pdfm@box%
\@pdfm@mark{put @afields @submit\HyField@TheAnnotCount}%
\endgroup
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@Reset}
% \begin{macrocode}
\def\@Reset[#1]#2{%
\Field@toks={ }%
\def\Fld@width{\DefaultWidthofReset}%
\def\Fld@height{\DefaultHeightofReset}%
\begingroup
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofReset,#1%
}%
\leavevmode
\ifHy@pdfa
\PackageError{hyperref}{%
PDF/A: Reset action is prohibited%
}\@ehc
\MakeButtonField{#2}%
\else
\HyField@FlagsPushButton
\ifFld@hidden\def\Fld@width{1sp}\fi
\setbox\pdfm@box=\hbox{\MakeButtonField{#2}}%
\Hy@escapeform\PDFForm@Reset
\HyField@AdvanceAnnotCount
\@pdfm@mark{%
ann @reset\HyField@TheAnnotCount\space
\dvipdfm@setdim
<<\PDFForm@Reset>>%
}%
\unhbox\pdfm@box
\@pdfm@mark{put @afields @reset\HyField@TheAnnotCount}%
\fi
\endgroup
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@CheckBox}
% \begin{macrocode}
\def\@CheckBox[#1]#2{% parameters, label
\def\Fld@name{#2}%
\def\Fld@default{0}%
\begingroup
\def\Fld@width{\DefaultWidthofCheckBox}%
\def\Fld@height{\DefaultHeightofCheckBox}%
\Field@toks={ }%
\expandafter\HyField@SetKeys\expandafter{%
\DefaultOptionsofCheckBox,#1%
}%
\PDFForm@Name
\HyField@FlagsCheckBox
\ifFld@hidden\def\Fld@width{1sp}\fi
\setbox\pdfm@box=\hbox{\MakeCheckField{\Fld@width}{\Fld@height}}%
\HyField@AdvanceAnnotCount
\LayoutCheckField{#2}{%
\Hy@escapeform\PDFForm@Check
\@pdfm@mark{%
ann @check\HyField@TheAnnotCount\space
\dvipdfm@setdim
<<\PDFForm@Check>>%
}%
\unhbox\pdfm@box
\@pdfm@mark{put @afields @check\HyField@TheAnnotCount}%
}%
\endgroup
}
% \end{macrocode}
% \end{macro}
%
% \begin{macrocode}
\def\Hy@FormObjects{%
\@pdfm@mark{obj @OBJpdfdocencoding%
<<%
/Type/Encoding%
/Differences[%
24/breve/caron/circumflex/dotaccent/hungarumlaut/ogonek/ring/tilde %
39/quotesingle %
96/grave %
128/bullet/dagger/daggerdbl/ellipsis/emdash/endash/florin%
/fraction/guilsinglleft/guilsinglright/minus/perthousand%
/quotedblbase/quotedblleft/quotedblright/quoteleft/quoteright%
/quotesinglbase/trademark/fi/fl/Lslash/OE/Scaron/Ydieresis%
/Zcaron/dotlessi/lslash/oe/scaron/zcaron %
164/currency %
166/brokenbar %
168/dieresis/copyright/ordfeminine %
172/logicalnot/.notdef/registered/macron/degree/plusminus%
/twosuperior/threesuperior/acute/mu %
183/periodcentered/cedilla/onesuperior/ordmasculine %
188/onequarter/onehalf/threequarters %
192/Agrave/Aacute/Acircumflex/Atilde/Adieresis/Aring/AE%
/Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave/Iacute%
/Icircumflex/Idieresis/Eth/Ntilde/Ograve/Oacute/Ocircumflex%
/Otilde/Odieresis/multiply/Oslash/Ugrave/Uacute/Ucircumflex%
/Udieresis/Yacute/Thorn/germandbls/agrave/aacute/acircumflex%
/atilde/adieresis/aring/ae/ccedilla/egrave/eacute%
/ecircumflex/edieresis/igrave/iacute/icircumflex/idieresis%
/eth/ntilde/ograve/oacute/ocircumflex/otilde/odieresis%
/divide/oslash/ugrave/uacute/ucircumflex/udieresis/yacute%
/thorn/ydieresis%
]%
>>%
}%
\@pdfm@mark{obj @OBJZaDb%
<<%
/Type/Font%
/Subtype/Type1%
/Name/ZaDb%
/BaseFont/ZapfDingbats%
>>%
}%
\@pdfm@mark{obj @OBJHelv%
<<%
/Type/Font%
/Subtype/Type1%
/Name/Helv%
/BaseFont/Helvetica%
/Encoding @OBJpdfdocencoding%
>>%
}%
\global\let\Hy@FormObjects\relax
}
%</dvipdfm>
% \end{macrocode}
%
% \subsection{Common forms part}
% \begin{macrocode}
%<*pdfform>
% \end{macrocode}
%
% \begin{macro}{\Hy@escapestring}
% \begin{macrocode}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname pdfescapestring\endcsname\relax
\let\Hy@escapestring\@firstofone
\def\Hy@escapeform#1{%
\ifHy@escapeform
\def\Hy@escapestring##1{%
\noexpand\Hy@escapestring{\noexpand##1}%
}%
\edef\Hy@temp{#1}%
\expandafter\Hy@@escapeform\Hy@temp\Hy@escapestring{}\@nil
\def\Hy@escapestring##1{%
\@ifundefined{Hy@esc@\string##1}{%
##1%
\ThisShouldNotHappen
}{%
\csname Hy@esc@\string##1\endcsname
}%
}%
\else
\let\Hy@escapestring\@firstofone
\fi
}%
\def\Hy@@escapeform#1\Hy@escapestring#2#3\@nil{%
\ifx\\#3\\%
\else
\expandafter\Hy@pstringdef\csname Hy@esc@\string#2\endcsname{#2}%
\Hy@ReturnAfterFi{%
\Hy@@escapeform#3\@nil
}%
\fi
}%
\else
\def\Hy@escapeform#1{%
\ifHy@escapeform
\let\Hy@escapestring\pdfescapestring
\else
\let\Hy@escapestring\@firstofone
\fi
}%
\Hy@escapeform{}%
\fi
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\PDFForm@Name}
% \begin{macrocode}
\def\PDFForm@Name{%
\begingroup
\ifnum\Hy@pdfversion<5 % implementation note 117, PDF spec 1.7
\ifHy@unicode
\Hy@unicodefalse
\fi
\fi
\pdfstringdef\Hy@gtemp\Fld@name
\endgroup
\let\Fld@name\Hy@gtemp
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\PDFForm@Check}
% \begin{macrocode}
\def\PDFForm@Check{%
/Subtype/Widget%
\Fld@annotflags
/T(\Fld@name)%
/FT/Btn%
\Fld@flags
/Q \Fld@align
/BS<</W \Fld@borderwidth /S/\Fld@borderstyle>>%
/MK<<%
\ifnum\Fld@rotation=\z@
\else
/R \Fld@rotation
\fi
\ifx\Fld@bordercolor\relax
\else
/BC[\Fld@bordercolor]%
\fi
\ifx\Fld@bcolor\relax
\else
/BG[\Fld@bcolor]%
\fi
/CA(\Hy@escapestring{\Fld@cbsymbol})%
>>%
/DA(/ZaDb \strip@pt\Fld@charsize\space Tf%
\ifx\Fld@color\@empty\else\space\Fld@color\fi)%
/H/P%
\ifFld@checked /V/Yes\else /V/Off\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\PDFForm@Push}
% \begin{macrocode}
\ifHy@pdfa
\else
\def\PDFForm@Push{%
/Subtype/Widget%
\Fld@annotflags
/T(\Fld@name)%
/FT/Btn%
\Fld@flags
/H/P%
/BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>%
\ifcase0\ifnum\Fld@rotation=\z@ \else 1\fi
\ifx\Fld@bordercolor\relax\else 1\fi
\space
\else
/MK<<%
\ifnum\Fld@rotation=\z@
\else
/R \Fld@rotation
\fi
\ifx\Fld@bordercolor\relax
\else
/BC[\Fld@bordercolor]%
\fi
>>%
\fi
/A<</S/JavaScript/JS(\Hy@escapestring{\Fld@onclick@code})>>%
}%
\fi
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\Fld@additionalactions}
% \begin{macrocode}
\def\Fld@@additionalactions{%
% \end{macrocode}
% K input (keystroke) format
% \begin{macrocode}
\ifx\Fld@keystroke@code\@empty
\else
/K<</S/JavaScript/JS(\Hy@escapestring{\Fld@keystroke@code})>>%
\fi
% \end{macrocode}
% F display format
% \begin{macrocode}
\ifx\Fld@format@code\@empty
\else
/F<</S/JavaScript/JS(\Hy@escapestring{\Fld@format@code})>>%
\fi
% \end{macrocode}
% V validation
% \begin{macrocode}
\ifx\Fld@validate@code\@empty
\else
/V<</S/JavaScript/JS(\Hy@escapestring{\Fld@validate@code})>>%
\fi
% \end{macrocode}
% C calculation
% \begin{macrocode}
\ifx\Fld@calculate@code\@empty
\else
/C<</S/JavaScript/JS(\Hy@escapestring{\Fld@calculate@code})>>%
\fi
% \end{macrocode}
% Fo receiving the input focus
% \begin{macrocode}
\ifx\Fld@onfocus@code\@empty
\else
/Fo<</S/JavaScript/JS(\Hy@escapestring{\Fld@onfocus@code})>>%
\fi
% \end{macrocode}
% Bl loosing the input focus (blurred)
% \begin{macrocode}
\ifx\Fld@onblur@code\@empty
\else
/Bl<</S/JavaScript/JS(\Hy@escapestring{\Fld@onblur@code})>>%
\fi
% \end{macrocode}
% D pressing the mouse button (down)
% \begin{macrocode}
\ifx\Fld@onmousedown@code\@empty
\else
/D<</S/JavaScript/JS(\Hy@escapestring{\Fld@onmousedown@code})>>%
\fi
% \end{macrocode}
% U releasing the mouse button (up)
% \begin{macrocode}
\ifx\Fld@onmouseup@code\@empty
\else
/U<</S/JavaScript/JS(\Hy@escapestring{\Fld@onmouseup@code})>>%
\fi
% \end{macrocode}
% E cursor enters the annotation's active area.
% \begin{macrocode}
\ifx\Fld@onenter@code\@empty
\else
/E<</S/JavaScript/JS(\Hy@escapestring{\Fld@onenter@code})>>%
\fi
% \end{macrocode}
% X cursor exits the annotation's active area.
% \begin{macrocode}
\ifx\Fld@onexit@code\@empty
\else
/X<</S/JavaScript/JS(\Hy@escapestring{\Fld@onexit@code})>>%
\fi
}
\def\Fld@additionalactions{%
\if-\Fld@@additionalactions-%
\else
\ifHy@pdfa
\else
/AA<<\Fld@@additionalactions>>%
\fi
\fi
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\PDFForm@List}
% \begin{macrocode}
\def\PDFForm@List{%
/Subtype/Widget%
\Fld@annotflags
/T(\Fld@name)%
/FT/Ch%
\Fld@flags
/Q \Fld@align
/BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>%
\ifcase0\ifnum\Fld@rotation=\z@ \else 1\fi
\ifx\Fld@bordercolor\relax\else 1\fi
\ifx\fld@bcolor\relax \else 1\fi
\space
\else
/MK<<%
\ifnum\Fld@rotation=\z@
\else
/R \Fld@rotation
\fi
\ifx\Fld@bordercolor\relax
\else
/BC[\Fld@bordercolor]%
\fi
\ifx\Fld@bcolor\relax
\else
/BG[\Fld@bcolor]%
\fi
>>%
\fi
/DA(/Helv \strip@pt\Fld@charsize\space Tf%
\ifx\Fld@color\@empty\else\space\Fld@color\fi)%
\Fld@choices
\Fld@additionalactions
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\PDFForm@Radio}
% \begin{macrocode}
\def\PDFForm@Radio{%
/Subtype/Widget%
\Fld@annotflags
/T(\Fld@name)%
/FT/Btn%
\Fld@flags
/H/P%
/BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>%
/MK<<%
\ifnum\Fld@rotation=\z@
\else
/R \Fld@rotation
\fi
\ifx\Fld@bordercolor\relax
\else
/BC[\Fld@bordercolor]%
\fi
\ifx\Fld@bcolor\relax
\else
/BG[\Fld@bcolor]%
\fi
/CA(\Fld@radiosymbol)%
>>%
/DA(/ZaDb \strip@pt\Fld@charsize\space Tf%
\ifx\Fld@color\@empty\else\space\Fld@color\fi)%
\ifx\@currValue\Fld@default
/V/\Fld@default
\else
/V/Off%
\fi
\Fld@additionalactions
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\PDFForm@Text}
% \begin{macrocode}
\def\PDFForm@Text{%
/Subtype/Widget%
\Fld@annotflags
/T(\Fld@name)%
/FT/Tx%
\Fld@flags
/Q \Fld@align
/BS<</W \Fld@borderwidth\space /S /\Fld@borderstyle>>%
\ifcase0\ifnum\Fld@rotation=\z@ \else 1\fi
\ifx\Fld@bordercolor\relax\else 1\fi
\ifx\Fld@bcolor\relax \else 1\fi
\space
\else
/MK<<%
\ifnum\Fld@rotation=\z@
\else
/R \Fld@rotation
\fi
\ifx\Fld@bordercolor\relax
\else
/BC[\Fld@bordercolor]%
\fi
\ifx\Fld@bcolor\relax
\else
/BG[\Fld@bcolor]%
\fi
>>%
\fi
/DA(/Helv \strip@pt\Fld@charsize\space Tf%
\ifx\Fld@color\@empty\else\space\Fld@color\fi)%
/DV(\Hy@escapestring{\Fld@default})%
/V(\Hy@escapestring{\Fld@value})%
\Fld@additionalactions
\ifnum\Fld@maxlen>\z@/MaxLen \Fld@maxlen \fi
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\PDFForm@Submit}
% \begin{macrocode}
\def\PDFForm@Submit{%
/Subtype/Widget%
\Fld@annotflags
/T(\Fld@name)%
/FT/Btn%
\Fld@flags
/H/P%
/BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>%
\ifcase0\ifnum\Fld@rotation=\z@ \else 1\fi
\ifx\Fld@bordercolor\relax\else 1\fi
\space
\else
/MK<<%
\ifnum\Fld@rotation=\z@
\else
/R \Fld@rotation
\fi
\ifx\Fld@bordercolor\relax
\else
/BC[\Fld@bordercolor]%
\fi
>>%
\fi
/A<<%
/S/SubmitForm%
/F<<%
/FS/URL%
/F(\Hy@escapestring{\Form@action})%
>>%
\Fld@submitflags
>>%
}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\PDFForm@Reset}
% \begin{macrocode}
\ifHy@pdfa
\else
\def\PDFForm@Reset{%
/Subtype/Widget%
\Fld@annotflags
/T(\Fld@name)%
/FT/Btn%
\Fld@flags
/H/P%
/DA(/Helv \strip@pt\Fld@charsize\space Tf 0 0 1 rg)%
\ifcase0\ifnum\Fld@rotation=\z@ \else 1\fi
\ifx\Fld@bordercolor\relax\else 1\fi
\space
\else
/MK<<%
\ifnum\Fld@rotation=\z@
\else
/R \Fld@rotation
\fi
\ifx\Fld@bordercolor\relax
\else
/BC[\Fld@bordercolor]%
\fi
% /CA (Clear)
% /AC (Done)
>>%
\fi
/BS<</W \Fld@borderwidth/S/\Fld@borderstyle>>%
/A<</S/ResetForm>>%
}%
\fi
% \end{macrocode}
% \end{macro}
% \begin{macrocode}
%</pdfform>
%<*package>
% \end{macrocode}
%
% \section{Bookmarks in the PDF file}
% This was originally developed by Yannis Haralambous
% (it was the separate |repere.sty|); it needed
% the |repere| or |makebook.pl| post-processor to work properly. Now
% redundant, as it is done entirely in \LaTeX{} macros.
%
% To write out the current section title, and its rationalized number,
% we have to intercept the |\@sect| command, which is rather
% dangerous. But how else to see the information we need?
% We do the \emph{same} for |\@ssect|, giving anchors to
% unnumbered sections. This allows things like bibliographies
% to get bookmarks when used with a manual |\addcontentsline|
% \begin{macrocode}
\def\phantomsection{%
\Hy@GlobalStepCount\Hy@linkcounter
\xdef\@currentHref{section*.\the\Hy@linkcounter}%
\Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
}
%</package>
% \end{macrocode}
%
% \subsection{Bookmarks}
% \begin{macrocode}
%<*outlines>
% \end{macrocode}
%
% This section was written by Heiko Oberdiek; the code replaces
% an earlier version by David Carlisle.
%
% The first part of bookmark code is in section \ref{sec:pdfstring}.
% Further documentation is available as paper and slides of the
% talk, that Heiko Oberdiek has given at the EuroTeX'99 meating
% in Heidelberg. See |paper.pdf| and |slides.pdf| in the
% |doc| directory of hyperref.
%
% When using the right-to-left typesetting based on \eTeX, the order
% of the |\BOOKMARK| commands written to the |\@outlinefile| could
% appear wrong, because of mis-feature of \eTeX's implementation (that
% it processes the shipped out lines left-to-right, instead of the
% order in which they appear in the document). The wrong order will
% appear when the file contains two bookmarks on the same line typeset
% right-to-left.
%
% To work around this problem, the |bookmark@seq@number| counter is
% used to write the bookmark's sequential number into a comment in the
% |\@outlinefile|, which could be used to post-process it to achieve
% the proper ordering of |\BOOKMARK| commands in that file.
%
% \begin{macrocode}
\def\Hy@writebookmark#1#2#3#4#5{%
% section number, text, label, level, file
\ifx\WriteBookmarks\relax%
\else
\ifnum#4>\Hy@bookmarksdepth\relax
\else
\@@writetorep{#1}{#2}{#3}{#4}{#5}%
\fi
\fi
}
\def\Hy@currentbookmarklevel{0}
\def\Hy@numberline#1{#1 }
\def\@@writetorep#1#2#3#4#5{%
\begingroup
\edef\Hy@tempa{#5}%
\ifx\Hy@tempa\Hy@bookmarkstype
\edef\Hy@level{#4}%
\ifx\Hy@levelcheck Y%
\@tempcnta\Hy@level\relax
\advance\@tempcnta by -1 %
\ifnum\Hy@currentbookmarklevel<\@tempcnta
\advance\@tempcnta by -\Hy@currentbookmarklevel\relax
\advance\@tempcnta by 1 %
\Hy@Warning{%
Difference (\the\@tempcnta) between bookmark levels is %
greater \MessageBreak than one, level fixed%
}%
\@tempcnta\Hy@currentbookmarklevel
\advance\@tempcnta by 1 %
\edef\Hy@level{\the\@tempcnta}%
\fi
\else
\global\let\Hy@levelcheck Y%
\fi
\global\let\Hy@currentbookmarklevel\Hy@level
\@tempcnta\Hy@level\relax
\expandafter\xdef\csname Parent\Hy@level\endcsname{#3}%
\advance\@tempcnta by -1 %
\edef\Hy@tempa{#3}%
\edef\Hy@tempb{\csname Parent\the\@tempcnta\endcsname}%
\ifx\Hy@tempa\Hy@tempb
\Hy@Warning{%
The anchor of a bookmark and its parent's must not%
\MessageBreak be the same. Added a new anchor%
}%
\phantomsection
\fi
\ifHy@bookmarksnumbered
\let\numberline\Hy@numberline
\let\partnumberline\Hy@numberline
\let\chapternumberline\Hy@numberline
\else
\let\numberline\@gobble
\let\partnumberline\@gobble
\let\chapternumberline\@gobble
\fi
\pdfstringdef\Hy@tempa{#2}%
\if@filesw
\stepcounter{bookmark@seq@number}%
\protected@write\@outlinefile{}{%
\protect\BOOKMARK
[\Hy@level][\@bookmarkopenstatus{\Hy@level}]{#3}%
{\Hy@tempa}{\Hy@tempb}%
\@percentchar\space\thebookmark@seq@number
}%
\fi
\fi
\endgroup
}
\newcounter{bookmark@seq@number}
% \end{macrocode}
% In the call of \cmd{\BOOKMARK} the braces around \verb|#4|
% are omitted, because it is not likely, that the level number
% contains \verb|]|.
% \begin{macrocode}
\newcommand{\currentpdfbookmark}{%
\pdfbookmark[\Hy@currentbookmarklevel]%
}
\newcommand{\subpdfbookmark}{%
\@tempcnta\Hy@currentbookmarklevel
\Hy@StepCount\@tempcnta
\expandafter\pdfbookmark\expandafter[\the\@tempcnta]%
}
\newcommand{\belowpdfbookmark}[2]{%
\@tempcnta\Hy@currentbookmarklevel
\Hy@StepCount\@tempcnta
\expandafter\pdfbookmark\expandafter[\the\@tempcnta]{#1}{#2}%
\advance\@tempcnta by -1 %
\xdef\Hy@currentbookmarklevel{\the\@tempcnta}%
}
% \end{macrocode}
% Tobias Oetiker rightly points out that we need a way to
% force a bookmark entry. So we introduce |\pdfbookmark|,
% with two parameters, the title, and a symbolic name.
% By default this is at level 1, but we can reset that with the
% optional first argument.
% \begin{macrocode}
\renewcommand\pdfbookmark[3][0]{%
\Hy@writebookmark{}{#2}{#3.#1}{#1}{toc}%
\hyper@anchorstart{#3.#1}\hyper@anchorend
}
\def\BOOKMARK{\@ifnextchar[{\@BOOKMARK}{\@@BOOKMARK[1][-]}}
\def\@BOOKMARK[#1]{\@ifnextchar[{\@@BOOKMARK[#1]}{\@@BOOKMARK[#1][-]}}
% \end{macrocode}
% The macros for calculating structure of outlines
% are derived from those by Petr Olsak used in the texinfopdf macros.
%
% \subsubsection{Rerun warning}
%
% \begin{macro}{\Hy@OutlineRerunCheck}
% \begin{macrocode}
\def\Hy@OutlineRerunCheck{%
\begingroup
\xdef\Hy@OutlineCheckSumBefore{%
\@ifundefined{pdf@filemdfivesum}{}{%
\pdf@filemdfivesum{\jobname.out}%
}%
:%
\@ifundefined{pdf@filesize}{}{%
\pdf@filesize{\jobname.out}%
}%
}%
\endgroup
\AtEndDocument{%
\clearpage
\if@filesw
\immediate\write\@mainaux{%
\string\csname\space Hy@OutlineCheckEnd\string\endcsname
}%
\fi
}%
}
\AtBeginDocument{%
\def\Hy@OutlineCheckEnd{%
\begingroup
\immediate\closeout\@outlinefile
\edef\Hy@OutlineCheckSumAfter{%
\@ifundefined{pdf@filemdfivesum}{}{%
\pdf@filemdfivesum{\jobname.out}%
}%
:%
\@ifundefined{pdf@filesize}{}{%
\pdf@filesize{\jobname.out}%
}%
}%
\ifx\Hy@OutlineCheckSumBefore\Hy@OutlineCheckSumAfter
\else
\Hy@WarningNoLine{%
Rerun to get outlines right\MessageBreak
or use package `bookmark'%
}%
\fi
\endgroup
}%
}
% \end{macrocode}
% \end{macro}
%
% \subsubsection{Driver stuff}
%
% The VTEX section was written originally by VTEX, but then
% amended by Denis Girou (\Email{denis.girou@idris.fr}),
% then by by Taco Hoekwater (\Email{taco.hoekwater@wkap.nl}. The problem
% is that VTEX, with its close integration of the PDF backend, does
% look at the contents of bookmarks, escaping |\| and the like.
% \begin{macrocode}
%<*vtex>
% \end{macrocode}
% \begin{macrocode}
\newcount\@serial@counter\@serial@counter=1\relax
% \end{macrocode}
% \begin{macro}{\hv@pdf@char}
% Plain octal codes doesn't work with versions below 6.50.
% So for early versions hex numbers have to be used.
% It would be possible to program this instead of the
% large |\ifcase|, but I'm too lazy to sort that out now.
% \begin{macrocode}
\begingroup
\catcode`\'=12 %
\ifnum\Hy@VTeXversion<650 %
\catcode`\"=12 %
\gdef\hv@pdf@char#1#2#3{%
\char
\ifcase'#1#2#3 %
"00\or"01\or"02\or"03\or"04\or"05\or"06\or"07%
\or"08\or"09\or"0A\or"0B\or"0C\or"0D\or"0E\or"0F%
\or"10\or"11\or"12\or"13\or"14\or"15\or"16\or"17%
\or"18\or"19\or"1A\or"1B\or"1C\or"1D\or"1E\or"1F%
\or"20\or"21\or"22\or"23\or"24\or"25\or"26\or"27%
\or"28\or"29\or"2A\or"2B\or"2C\or"2D\or"2E\or"2F%
\or"30\or"31\or"32\or"33\or"34\or"35\or"36\or"37%
\or"38\or"39\or"3A\or"3B\or"3C\or"3D\or"3E\or"3F%
\or"40\or"41\or"42\or"43\or"44\or"45\or"46\or"47%
\or"48\or"49\or"4A\or"4B\or"4C\or"4D\or"4E\or"4F%
\or"50\or"51\or"52\or"53\or"54\or"55\or"56\or"57%
\or"58\or"59\or"5A\or"5B\or"5C\or"5D\or"5E\or"5F%
\or"60\or"61\or"62\or"63\or"64\or"65\or"66\or"67%
\or"68\or"69\or"6A\or"6B\or"6C\or"6D\or"6E\or"6F%
\or"70\or"71\or"72\or"73\or"74\or"75\or"76\or"77%
\or"78\or"79\or"7A\or"7B\or"7C\or"7D\or"7E\or"7F%
\or"80\or"81\or"82\or"83\or"84\or"85\or"86\or"87%
\or"88\or"89\or"8A\or"8B\or"8C\or"8D\or"8E\or"8F%
\or"90\or"91\or"92\or"93\or"94\or"95\or"96\or"97%
\or"98\or"99\or"9A\or"9B\or"9C\or"9D\or"9E\or"9F%
\or"A0\or"A1\or"A2\or"A3\or"A4\or"A5\or"A6\or"A7%
\or"A8\or"A9\or"AA\or"AB\or"AC\or"AD\or"AE\or"AF%
\or"B0\or"B1\or"B2\or"B3\or"B4\or"B5\or"B6\or"B7%
\or"B8\or"B9\or"BA\or"BB\or"BC\or"BD\or"BE\or"BF%
\or"C0\or"C1\or"C2\or"C3\or"C4\or"C5\or"C6\or"C7%
\or"C8\or"C9\or"CA\or"CB\or"CC\or"CD\or"CE\or"CF%
\or"D0\or"D1\or"D2\or"D3\or"D4\or"D5\or"D6\or"D7%
\or"D8\or"D9\or"DA\or"DB\or"DC\or"DD\or"DE\or"DF%
\or"E0\or"E1\or"E2\or"E3\or"E4\or"E5\or"E6\or"E7%
\or"E8\or"E9\or"EA\or"EB\or"EC\or"ED\or"EE\or"EF%
\or"F0\or"F1\or"F2\or"F3\or"F4\or"F5\or"F6\or"F7%
\or"F8\or"F9\or"FA\or"FB\or"FC\or"FD\or"FE\or"FF%
\fi
}%
\else
\gdef\hv@pdf@char{\char'}%
\fi
\endgroup
% \end{macrocode}
% \end{macro}
% \begin{macro}{\@@BOOKMARK}
% \begin{macrocode}
\def\@@BOOKMARK[#1][#2]#3#4#5{%
\expandafter\edef\csname @count@#3\endcsname{\the\@serial@counter}%
\edef\@mycount{\the\@serial@counter}%
\Hy@StepCount\@serial@counter
\edef\@parcount{%
\expandafter\ifx\csname @count@#5\endcsname\relax
0%
\else
\csname @count@#5\endcsname
\fi
}%
\immediate\special{%
!outline \HyperDestNameFilter{#3};p=\@parcount,i=\@mycount,%
s=\ifx#2-c\else o\fi,t=#4%
}%
}%
% \end{macrocode}
% \end{macro}
% \begin{macro}{\ReadBookmarks}
% \begin{macrocode}
\def\ReadBookmarks{%
\begingroup
\def\0{\hv@pdf@char 0}%
\def\1{\hv@pdf@char 1}%
\def\2{\hv@pdf@char 2}%
\def\3{\hv@pdf@char 3}%
\def\({(}%
\def\){)}%
\def\do##1{%
\ifnum\the\catcode`##1=\active
\@makeother##1%
\fi
}%
\dospecials
\InputIfFileExists{\jobname.out}{}{}%
\endgroup
\ifx\WriteBookmarks\relax
\else
\if@filesw
\newwrite\@outlinefile
\Hy@OutlineRerunCheck
\immediate\openout\@outlinefile=\jobname.out\relax
\ifHy@typexml
\immediate\write\@outlinefile{<relaxxml>\relax}%
\fi
\fi
\fi
}
% \end{macrocode}
% \end{macro}
% \begin{macrocode}
%</vtex>
% \end{macrocode}
% \begin{macrocode}
%<*!vtex>
\def\ReadBookmarks{%
\begingroup
\escapechar=`\\%
\let\escapechar\@gobble %
\def\@@BOOKMARK[##1][##2]##3##4##5{\calc@bm@number{##5}}%
\InputIfFileExists{\jobname.out}{}{}%
\ifx\WriteBookmarks\relax
\global\let\WriteBookmarks\relax
\fi
\def\@@BOOKMARK[##1][##2]##3##4##5{%
\def\Hy@temp{##4}%
%<*pdftex>
\Hy@pstringdef\Hy@pstringName{\HyperDestNameFilter{##3}}%
\Hy@OutlineName{}\Hy@pstringName{%
##2\check@bm@number{##3}%
}{%
\expandafter\strip@prefix\meaning\Hy@temp
}%
%</pdftex>
%<*pdfmark>
\pdfmark{%
pdfmark=/OUT,%
Count={##2\check@bm@number{##3}},%
Dest={##3},%
Title=\expandafter\strip@prefix\meaning\Hy@temp
}%
%</pdfmark>
%<*dvipdfm>
\Hy@pstringdef\Hy@pstringName{\HyperDestNameFilter{##3}}%
\@pdfm@mark{%
outline \ifHy@DvipdfmxOutlineOpen
[%
\ifnum##21>\z@
\else
-%
\fi
] %
\fi
##1<<%
/Title(\expandafter\strip@prefix\meaning\Hy@temp)%
/A<<%
/S/GoTo%
/D(\Hy@pstringName)%
>>%
>>%
}%
%</dvipdfm>
}%
{%
\def\WriteBookmarks{0}%
\InputIfFileExists{\jobname.out}{}{}%
}%
%{\escapechar\m@ne\InputIfFileExists{\jobname.out}{}{}}%
\ifx\WriteBookmarks\relax
\else
\if@filesw
\newwrite\@outlinefile
\Hy@OutlineRerunCheck
\immediate\openout\@outlinefile=\jobname.out\relax
\ifHy@typexml
\immediate\write\@outlinefile{<relaxxml>\relax}%
\fi
\fi
\fi
\endgroup
}
%<*pdftex>
\def\Hy@OutlineName#1#2#3#4{%
\pdfoutline goto name{#2}count#3{#4}%
}
%</pdftex>
\def\check@bm@number#1{%
\expandafter\ifx\csname B_#1\endcsname\relax
0%
\else
\csname B_#1\endcsname
\fi
}
\def\calc@bm@number#1{%
\@tempcnta=\check@bm@number{#1}\relax
\advance\@tempcnta by 1 %
\expandafter\xdef\csname B_#1\endcsname{\the\@tempcnta}%
}
%</!vtex>
% \end{macrocode}
%
% \begin{macrocode}
\ifHy@implicit
\else
\expandafter\endinput
\fi
% \end{macrocode}
%
% \begin{macrocode}
%</outlines>
%<*outlines|hypertex>
% \end{macrocode}
% \begin{macrocode}
\let\H@old@ssect\@ssect
\def\@ssect#1#2#3#4#5{%
\Hy@GlobalStepCount\Hy@linkcounter
\xdef\@currentHref{section*.\the\Hy@linkcounter}%
\H@old@ssect{#1}{#2}{#3}{#4}{%
\leavevmode
\hbox to 0pt{%
\dimen@=#1\relax\kern-\dimen@
\Hy@raisedlink{%
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%
\hss
}%
#5%
}%
}
\let\H@old@schapter\@schapter
\def\@schapter#1{%
\begingroup
\let\@mkboth\@gobbletwo
\Hy@GlobalStepCount\Hy@linkcounter
\xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}%
\Hy@raisedlink{%
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%
\endgroup
\H@old@schapter{#1}%
}
% \end{macrocode}
% If there is no chapter number (\cmd{\frontmatter} or
% \cmd{\backmatter}) then |\refstepcounter{chapter}| is not
% executed, so there will be no destination for \cmd{addcontentsline}.
% So \cmd{\@chapter} is overloaded to avoid this:
% \begin{macrocode}
\@ifundefined{@chapter}{}{%
\let\Hy@org@chapter\@chapter
\def\@chapter{%
\def\Hy@next{%
\Hy@GlobalStepCount\Hy@linkcounter
\xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}%
\Hy@raisedlink{%
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%
}%
\ifnum\c@secnumdepth>\m@ne
\@ifundefined{if@mainmatter}%
\iftrue{\csname if@mainmatter\endcsname}%
\let\Hy@next\relax
\fi
\fi
\Hy@next
\Hy@org@chapter
}%
}
% \end{macrocode}
% \begin{macrocode}
\let\H@old@part\@part
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname chapter\endcsname\relax
\let\Hy@secnum@part\z@
\else
\let\Hy@secnum@part\m@ne
\fi
\def\@part{%
\ifnum\Hy@secnum@part>\c@secnumdepth
\phantomsection
\fi
\H@old@part
}
% \end{macrocode}
% \begin{macrocode}
\let\H@old@spart\@spart
\def\@spart#1{%
\Hy@GlobalStepCount\Hy@linkcounter
\xdef\@currentHref{part*.\the\Hy@linkcounter}%
\Hy@raisedlink{%
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%
\H@old@spart{#1}%
}
\let\H@old@sect\@sect
\def\@sect#1#2#3#4#5#6[#7]#8{%
\ifnum #2>\c@secnumdepth
\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
\fi
{%
\Hy@GlobalStepCount\Hy@linkcounter
\xdef\@currentHref{section*.\the\Hy@linkcounter}%
\H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{%
\leavevmode
\hbox to 0pt{%
\dimen@=#3\relax\kern-\dimen@
\Hy@raisedlink{%
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%
\hss
}%
#8%
}%
}{%
\H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}%
}%
}
% \end{macrocode}
% \begin{macrocode}
%</outlines|hypertex>
%<*outlines>
% \end{macrocode}
%
% \begin{macrocode}
\expandafter\def\csname Parent-4\endcsname{}
\expandafter\def\csname Parent-3\endcsname{}
\expandafter\def\csname Parent-2\endcsname{}
\expandafter\def\csname Parent-1\endcsname{}
\expandafter\def\csname Parent0\endcsname{}
\expandafter\def\csname Parent1\endcsname{}
\expandafter\def\csname Parent2\endcsname{}
\expandafter\def\csname Parent3\endcsname{}
\expandafter\def\csname Parent4\endcsname{}
% \end{macrocode}
%
% \begin{macrocode}
%</outlines>
% \end{macrocode}
%
% \section{Compatibility with koma-script classes}
%
% \begin{macrocode}
%<*outlines|hypertex>
% \end{macrocode}
%
% Hard-wire in an unpleasant over-ride of komascript `scrbook' class
% for \Email{Tobias.Isenberg@gmx.de}.
% With version 6.71b the hack is also applied to `scrreprt' class
% and is removed for koma-script versions since 2001/01/01,
% because Markus Kohm supports hyperref in komascript.
% \begin{macrocode}
\def\Hy@tempa{%
\def\@addchap[##1]##2{%
\typeout{##2}%
\if@twoside
\@mkboth{##1}{}%
\else
\@mkboth{}{##1}%
\fi
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
\Hy@GlobalStepCount\Hy@linkcounter
\xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}%
\Hy@raisedlink{%
\hyper@anchorstart{\@currentHref}\hyper@anchorend
}%
\if@twocolumn
\@topnewpage[\@makeschapterhead{##2}]%
\else
\@makeschapterhead{##2}%
\@afterheading
\fi
\addcontentsline{toc}{chapter}{##1}%
}%
}
\@ifclassloaded{scrbook}{%
\@ifclasslater{scrbook}{2001/01/01}{%
\let\Hy@tempa\@empty
}{}%
}{%
\@ifclassloaded{scrreprt}{%
\@ifclasslater{scrreprt}{2001/01/01}{%
\let\Hy@tempa\@empty
}{}%
}{%
\let\Hy@tempa\@empty
}%
}%
\Hy@tempa
% \end{macrocode}
%
% \begin{macrocode}
%</outlines|hypertex>
% \end{macrocode}
%
% \section{Encoding definition files for encodings of PDF strings}
% This was contributed by
% Heiko Oberdiek \Email{oberdiek@ruf.uni-freiburg.de}
%
% \subsection{PD1 encoding}
% \begin{macrocode}
%<*pd1enc>
\DeclareFontEncoding{PD1}{}{}
% \end{macrocode}
% Accents
% \begin{macrocode}
\DeclareTextAccent{\`}{PD1}{\textasciigrave}
\DeclareTextAccent{\'}{PD1}{\textacute}
\DeclareTextAccent{\^}{PD1}{\textasciicircum}
\DeclareTextAccent{\~}{PD1}{\texttilde}
\DeclareTextAccent{\"}{PD1}{\textasciidieresis}
\DeclareTextAccent{\r}{PD1}{\textring}
\DeclareTextAccent{\v}{PD1}{\textasciicaron}
\DeclareTextAccent{\.}{PD1}{\textdotaccent}
\DeclareTextAccent{\c}{PD1}{\textcedilla}
\DeclareTextAccent{\=}{PD1}{\textasciimacron}
\DeclareTextAccent{\b}{PD1}{\textmacronbelow}
\DeclareTextAccent{\d}{PD1}{\textdotbelow}
\DeclareTextCompositeCommand{\`}{PD1}{\@empty}{\textasciigrave}
\DeclareTextCompositeCommand{\'}{PD1}{\@empty}{\textacute}
\DeclareTextCompositeCommand{\^}{PD1}{\@empty}{\textasciicircum}
\DeclareTextCompositeCommand{\~}{PD1}{\@empty}{\texttilde}
\DeclareTextCompositeCommand{\"}{PD1}{\@empty}{\textasciidieresis}
\DeclareTextCompositeCommand{\r}{PD1}{\@empty}{\textring}
\DeclareTextCompositeCommand{\v}{PD1}{\@empty}{\textasciicaron}
\DeclareTextCompositeCommand{\.}{PD1}{\@empty}{\textdotaccent}
\DeclareTextCompositeCommand{\c}{PD1}{\@empty}{\textcedilla}
\DeclareTextCompositeCommand{\=}{PD1}{\@empty}{\textasciimacron}
\DeclareTextCompositeCommand{\b}{PD1}{\@empty}{\textmacronbelow}
\DeclareTextCompositeCommand{\d}{PD1}{\@empty}{\textdotbelow}
\DeclareTextCompositeCommand{\`}{PD1}{\ }{\textasciigrave}
\DeclareTextCompositeCommand{\'}{PD1}{\ }{\textacute}
\DeclareTextCompositeCommand{\^}{PD1}{\ }{\textasciicircum}
\DeclareTextCompositeCommand{\~}{PD1}{\ }{\texttilde}
\DeclareTextCompositeCommand{\"}{PD1}{\ }{\textasciidieresis}
\DeclareTextCompositeCommand{\r}{PD1}{\ }{\textring}
\DeclareTextCompositeCommand{\v}{PD1}{\ }{\textasciicaron}
\DeclareTextCompositeCommand{\.}{PD1}{\ }{\textdotaccent}
\DeclareTextCompositeCommand{\c}{PD1}{\ }{\textcedilla}
\DeclareTextCompositeCommand{\=}{PD1}{\ }{\textasciimacron}
\DeclareTextCompositeCommand{\b}{PD1}{\ }{\textmacronbelow}
\DeclareTextCompositeCommand{\d}{PD1}{\ }{\textdotbelow}
\DeclareTextCommand{\k}{PD1}[1]{\TextSymbolUnavailable{\k{#1}}#1}
\DeclareTextCommand{\t}{PD1}[1]{\TextSymbolUnavailable{\t{#1}}#1}
\DeclareTextCommand{\newtie}{PD1}[1]{\TextSymbolUnavailable{\newtie{#1}}#1}
% \end{macrocode}
% Special white space escape characters
% not for use in bookmarks but for other PDF strings.
% \begin{macrocode}
% U+0009 (CHARACTER TABULATION)
\DeclareTextCommand{\textHT}{PD1}{\011}% U+0009
% U+000A (LINE FEED)
\DeclareTextCommand{\textLF}{PD1}{\012}% U+000A
% U+000D (CARRIAGE RETURN)
\DeclareTextCommand{\textCR}{PD1}{\015}% U+000D
% \end{macrocode}
% Accent glyph names
% \begin{macrocode}
% U+02D8 BREVE; breve
\DeclareTextCommand{\textasciibreve}{PD1}{\030}% U+02D8
% U+02C7 CARON; caron
\DeclareTextCommand{\textasciicaron}{PD1}{\031}% U+02C7
% U+02C6 MODIFIER LETTER CIRCUMFLEX ACCENT; circumflex
\DeclareTextCommand{\textcircumflex}{PD1}{\032}% U+02C6
% U+02D9 DOT ABOVE; dotaccent
\DeclareTextCommand{\textdotaccent}{PD1}{\033}% U+02D9
% U+02DD DOUBLE ACUTE ACCENT; hungarumlaut
\DeclareTextCommand{\texthungarumlaut}{PD1}{\034}% U+02DD
% U+02DB OGONEK; ogonek
\DeclareTextCommand{\textogonek}{PD1}{\035}% U+02DB
% U+02DA RING ABOVE; ring
\DeclareTextCommand{\textring}{PD1}{\036}% U+02DA
% U+02DC SMALL TILDE; ilde, *tilde
\DeclareTextCommand{\texttilde}{PD1}{\037}% U+02DC
% \end{macrocode}
% \cs{040}: U+0020 SPACE; *space, spacehackarabic\\
% \cs{041}: U+0021 EXCLAMATION MARK; exclam
% \begin{macrocode}
% U+0022 QUOTATION MARK; quotedbl
\DeclareTextCommand{\textquotedbl}{PD1}{\string"}% \042 U+0022
% U+0023 NUMBER SIGN; numbersign
\DeclareTextCommand{\textnumbersign}{PD1}{\043}% U+0023
% U+0024 DOLLAR SIGN; dollar
\DeclareTextCommand{\textdollar}{PD1}{\044}% U+0024
% U+0025 PERCENT SIGN; percent
\DeclareTextCommand{\textpercent}{PD1}{\045}% U+0025
% U+0026 AMPERSAND; ampersand
\DeclareTextCommand{\textampersand}{PD1}{\046}% U+0026
% \end{macrocode}
% \cs{047}: U+0027 APOSTROPHE; quotesingle\\
% \begin{macrocode}
% U+0028 LEFT PARENTHESIS; parenleft
\DeclareTextCommand{\textparenleft}{PD1}{\string\(}% \050 U+0028
% U+0029 RIGHT PARENTHESIS; parenright
\DeclareTextCommand{\textparenright}{PD1}{\string\)}% \051 U+0029
% \end{macrocode}
% \cs{052}: U+002A ASTERISK; asterisk\\
% \cs{053}: U+002B PLUS SIGN; plus\\
% \cs{054}: U+002C COMMA; comma\\
% \cs{055}: U+002D HYPHEN-MINUS; hyphen\\
% \cs{056}: U+002E FULL STOP; period
% \begin{macrocode}
% U+002E FULL STOP; period
\DeclareTextCommand{\textdotbelow}{PD1}{.}% \056 U+002E
% \end{macrocode}
% \cs{057}: % U+002F SOLIDUS; slash\\
% \cs{060}: U+0030 DIGIT ZERO; zero\\
% \dots\\
% \cs{071}: U+0039 DIGIT NINE; nine\\
% \cs{072}: U+003A COLON; colon\\
% \cs{073}: U+003B SEMICOLON; semicolon
% \begin{macrocode}
% U+003C LESS-THAN SIGN; less
\DeclareTextCommand{\textless}{PD1}{<}% \074 U+003C
% \end{macrocode}
% \cs{075}: U+003D EQUALS SIGN; equal
% \begin{macrocode}
% U+003E GREATER-THAN SIGN; greater
\DeclareTextCommand{\textgreater}{PD1}{>}% \076 U+003E
% \end{macrocode}
% \cs{077}: U+003F QUESTION MARK; question\\
% \cs{100}: U+0040 COMMERCIAL AT; at\\
% \cs{101}: U+0041 LATIN CAPITAL LETTER A; A\\
% \dots\\
% \cs{132}: U+005A LATIN CAPITAL LETTER Z; Z\\
% \cs{133}: U+005B LEFT SQUARE BRACKET; bracketleft
% \begin{macrocode}
% U+005C REVERSE SOLIDUS; backslash
\DeclareTextCommand{\textbackslash}{PD1}{\134}% U+005C
% \end{macrocode}
% \cs{135}: U+005D RIGHT SQUARE BRACKET; bracketright
% \begin{macrocode}
% U+005E CIRCUMFLEX ACCENT; asciicircum
\DeclareTextCommand{\textasciicircum}{PD1}{\136}% U+005E
% U+005F LOW LINE; underscore
\DeclareTextCommand{\textunderscore}{PD1}{\137}% U+005F
\DeclareTextCommand{\textmacronbelow}{PD1}{\137}% U+005F
% U+0060 GRAVE ACCENT; grave
\DeclareTextCommand{\textasciigrave}{PD1}{\140}% U+0060
% \end{macrocode}
% \cs{141}: U+0061 LATIN SMALL LETTER A; a\\
% \dots\\
% \cs{150}: U+0068 LATIN SMALL LETTER H; h
% \begin{macrocode}
% U+0069 LATIN SMALL LETTER I; i
\DeclareTextCompositeCommand{\.}{PD1}{i}{i}% \151 U+0069
% \end{macrocode}
% \cs{152}: U+006A LATIN SMALL LETTER J; j\\
% \dots\\
% \cs{172}: U+007A LATIN SMALL LETTER Z; z
% \begin{macrocode}
% U+007B LEFT CURLY BRACKET; braceleft
\DeclareTextCommand{\textbraceleft}{PD1}{\173}% U+007B
% U+007C VERTICAL LINE; *bar, verticalbar
\DeclareTextCommand{\textbar}{PD1}{|}% U+007C
% U+007D RIGHT CURLY BRACKET; braceright
\DeclareTextCommand{\textbraceright}{PD1}{\175}% U+007D
% U+007E TILDE; asciitilde
\DeclareTextCommand{\textasciitilde}{PD1}{\176}% U+007E
% \end{macrocode}
% Slot \cs{177} (0x7F) is undefined in PDFDocEncoding.
% \begin{macrocode}
% U+2022 BULLET; bullet
\DeclareTextCommand{\textbullet}{PD1}{\200}% U+2022
% U+2020 DAGGER; dagger
\DeclareTextCommand{\textdagger}{PD1}{\201}% U+2020
% U+2021 DOUBLE DAGGER; daggerdbl
\DeclareTextCommand{\textdaggerdbl}{PD1}{\202}% U+2021
% U+2026 HORIZONTAL ELLIPSIS; ellipsis
\DeclareTextCommand{\textellipsis}{PD1}{\203}% U+2026
% U+2014 EM DASH; emdash
\DeclareTextCommand{\textemdash}{PD1}{\204}% U+2014
% U+2013 EN DASH; endash
\DeclareTextCommand{\textendash}{PD1}{\205}% U+2013
% U+0192 LATIN SMALL LETTER F WITH HOOK; florin
\DeclareTextCommand{\textflorin}{PD1}{\206}% U+0192
% U+2044 FRACTION SLASH; fraction
\DeclareTextCommand{\textfractionsolidus}{PD1}{\207}% U+2044
% U+2039 SINGLE LEFT-POINTING ANGLE QUOTATION MARK; guilsinglleft
\DeclareTextCommand{\guilsinglleft}{PD1}{\210}% U+2039
% U+203A SINGLE RIGHT-POINTING ANGLE QUOTATION MARK; guilsinglright
\DeclareTextCommand{\guilsinglright}{PD1}{\211}% U+203A
% U+2212 MINUS SIGN; minus
\DeclareTextCommand{\textminus}{PD1}{\212}% U+2212
% U+2030 PER MILLE SIGN; perthousand
\DeclareTextCommand{\textperthousand}{PD1}{\213}% U+2030
% U+201E DOUBLE LOW-9 QUOTATION MARK; quotedblbase
\DeclareTextCommand{\quotedblbase}{PD1}{\214}% U+201E
% U+201C LEFT DOUBLE QUOTATION MARK; quotedblleft
\DeclareTextCommand{\textquotedblleft}{PD1}{\215}% U+201C
% U+201D RIGHT DOUBLE QUOTATION MARK; quotedblright
\DeclareTextCommand{\textquotedblright}{PD1}{\216}% U+201D
% U+2018 LEFT SINGLE QUOTATION MARK; quoteleft
\DeclareTextCommand{\textquoteleft}{PD1}{\217}% U+2018
% U+2019 RIGHT SINGLE QUOTATION MARK; quoteright
\DeclareTextCommand{\textquoteright}{PD1}{\220}% U+2019
% U+201A SINGLE LOW-9 QUOTATION MARK; quotesinglbase
\DeclareTextCommand{\quotesinglbase}{PD1}{\221}% U+201A
% U+2122 TRADE MARK SIGN; trademark
\DeclareTextCommand{\texttrademark}{PD1}{\222}% U+2122
% U+FB01 LATIN SMALL LIGATURE FI; fi
\DeclareTextCommand{\textfi}{PD1}{\223}% U+FB01
% U+FB02 LATIN SMALL LIGATURE FL; fl
\DeclareTextCommand{\textfl}{PD1}{\224}% U+FB02
% U+0141 LATIN CAPITAL LETTER L WITH STROKE; Lslash
\DeclareTextCommand{\L}{PD1}{\225}% U+0141
% U+0152 LATIN CAPITAL LIGATURE OE; OE
\DeclareTextCommand{\OE}{PD1}{\226}% U+0152
% U+0160 LATIN CAPITAL LETTER S WITH CARON; Scaron
\DeclareTextCompositeCommand{\v}{PD1}{S}{\227}% U+0160
% U+0178 LATIN CAPITAL LETTER Y WITH DIAERESIS; Ydieresis
\DeclareTextCompositeCommand{\"}{PD1}{Y}{\230}% U+0178
\DeclareTextCommand{\IJ}{PD1}{\230}
% U+017D LATIN CAPITAL LETTER Z WITH CARON; Zcaron
\DeclareTextCompositeCommand{\v}{PD1}{Z}{\231}% U+017D
% U+0131 LATIN SMALL LETTER DOTLESS I; dotlessi
\DeclareTextCommand{\i}{PD1}{\232}% U+0131
% U+0142 LATIN SMALL LETTER L WITH STROKE; lslash
\DeclareTextCommand{\l}{PD1}{\233}% U+0142
% U+0153 LATIN SMALL LIGATURE OE; oe
\DeclareTextCommand{\oe}{PD1}{\234}% U+0153
% U+0161 LATIN SMALL LETTER S WITH CARON; scaron
\DeclareTextCompositeCommand{\v}{PD1}{s}{\235}% U+0161
% U+017E LATIN SMALL LETTER Z WITH CARON; zcaron
\DeclareTextCompositeCommand{\v}{PD1}{z}{\236}% U+017E
% \end{macrocode}
% Slot \cs{237} (0x9F) is not defined in PDFDocEncoding.\\
% The euro \cs{240} is inserted in version 1.3 of the pdf
% specification.
% \begin{macrocode}
% U+20AC EURO SIGN; *Euro, euro
\DeclareTextCommand{\texteuro}{PD1}{\240}% U+20AC
% U+00A1 INVERTED EXCLAMATION MARK; exclamdown
\DeclareTextCommand{\textexclamdown}{PD1}{\241}% U+00A1
% U+00A2 CENT SIGN; cent
\DeclareTextCommand{\textcent}{PD1}{\242}% U+00A2
% U+00A3 POUND SIGN; sterling
\DeclareTextCommand{\textsterling}{PD1}{\243}% U+00A3
% U+00A4 CURRENCY SIGN; currency
\DeclareTextCommand{\textcurrency}{PD1}{\244}% U+00A4
% U+00A5 YEN SIGN; yen
\DeclareTextCommand{\textyen}{PD1}{\245}% U+00A5
% U+00A6 BROKEN BAR; brokenbar
\DeclareTextCommand{\textbrokenbar}{PD1}{\246}% U+00A6
% U+00A7 SECTION SIGN; section
\DeclareTextCommand{\textsection}{PD1}{\247}% U+00A7
% U+00A8 DIAERESIS; dieresis
\DeclareTextCommand{\textasciidieresis}{PD1}{\250}% U+00A8
% U+00A9 COPYRIGHT SIGN; copyright
\DeclareTextCommand{\textcopyright}{PD1}{\251}% U+00A9
% U+00AA FEMININE ORDINAL INDICATOR; ordfeminine
\DeclareTextCommand{\textordfeminine}{PD1}{\252}% U+00AA
% U+00AB LEFT-POINTING DOUBLE ANGLE QUOTATION MARK; guillemotleft
\DeclareTextCommand{\guillemotleft}{PD1}{\253}% U+00AB
% U+00AC NOT SIGN; logicalnot
\DeclareTextCommand{\textlogicalnot}{PD1}{\254}% U+00AC
\DeclareTextCommand{\textlnot}{PD1}{\254}% logical not
% \end{macrocode}
% No glyph \cs{255} in PDFDocEncoding.
% \begin{macrocode}
% U+00AE REGISTERED SIGN; registered
\DeclareTextCommand{\textregistered}{PD1}{\256}% U+00AE
% U+00AF MACRON; *macron, overscore
\DeclareTextCommand{\textasciimacron}{PD1}{\257}% U+00AF
% U+00B0 DEGREE SIGN; degree
\DeclareTextCommand{\textdegree}{PD1}{\260}% U+00B0
% U+00B1 PLUS-MINUS SIGN; plusminus
\DeclareTextCommand{\textplusminus}{PD1}{\261}% U+00B1
% U+00B2 SUPERSCRIPT TWO; twosuperior
\DeclareTextCommand{\texttwosuperior}{PD1}{\262}% U+00B2
% U+00B3 SUPERSCRIPT THREE; threesuperior
\DeclareTextCommand{\textthreesuperior}{PD1}{\263}% U+00B3
% U+00B4 ACUTE ACCENT; acute
\DeclareTextCommand{\textacute}{PD1}{\264}% U+00B4
% U+00B5 MICRO SIGN; mu, mu1
\DeclareTextCommand{\textmu}{PD1}{\265}% U+00B5
% U+00B6 PILCROW SIGN; paragraph
\DeclareTextCommand{\textparagraph}{PD1}{\266}% U+00B6
% U+00B7 MIDDLE DOT; middot, *periodcentered
\DeclareTextCommand{\textperiodcentered}{PD1}{\267}% U+00B7
% U+00B8 CEDILLA; cedilla
\DeclareTextCommand{\textcedilla}{PD1}{\270}% U+00B8
% U+00B9 SUPERSCRIPT ONE; onesuperior
\DeclareTextCommand{\textonesuperior}{PD1}{\271}% U+00B9
% U+00BA MASCULINE ORDINAL INDICATOR; ordmasculine
\DeclareTextCommand{\textordmasculine}{PD1}{\272}% U+00BA
% U+00BB RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK; guillemotright
\DeclareTextCommand{\guillemotright}{PD1}{\273}% U+00BB
% U+00BC VULGAR FRACTION ONE QUARTER; onequarter
\DeclareTextCommand{\textonequarter}{PD1}{\274}% U+00BC
% U+00BD VULGAR FRACTION ONE HALF; onehalf
\DeclareTextCommand{\textonehalf}{PD1}{\275}% U+00BD
% U+00BE VULGAR FRACTION THREE QUARTERS; threequarters
\DeclareTextCommand{\textthreequarters}{PD1}{\276}% U+00BE
% U+00BF INVERTED QUESTION MARK; questiondown
\DeclareTextCommand{\textquestiondown}{PD1}{\277}% U+00BF
% U+00C0 LATIN CAPITAL LETTER A WITH GRAVE; Agrave
\DeclareTextCompositeCommand{\`}{PD1}{A}{\300}% U+00C0
% U+00C1 LATIN CAPITAL LETTER A WITH ACUTE; Aacute
\DeclareTextCompositeCommand{\'}{PD1}{A}{\301}% U+00C1
% U+00C2 LATIN CAPITAL LETTER A WITH CIRCUMFLEX; Acircumflex
\DeclareTextCompositeCommand{\^}{PD1}{A}{\302}% U+00C2
% U+00C3 LATIN CAPITAL LETTER A WITH TILDE; Atilde
\DeclareTextCompositeCommand{\~}{PD1}{A}{\303}% U+00C3
% U+00C4 LATIN CAPITAL LETTER A WITH DIAERESIS; Adieresis
\DeclareTextCompositeCommand{\"}{PD1}{A}{\304}% U+00C4
% U+00C5 LATIN CAPITAL LETTER A WITH RING ABOVE; Aring
\DeclareTextCompositeCommand{\r}{PD1}{A}{\305}% U+00C5
% U+00C6 LATIN CAPITAL LETTER AE; AE
\DeclareTextCommand{\AE}{PD1}{\306}% U+00C6
% U+00C7 LATIN CAPITAL LETTER C WITH CEDILLA; Ccedilla
\DeclareTextCompositeCommand{\c}{PD1}{C}{\307}% U+00C7
% U+00C8 LATIN CAPITAL LETTER E WITH GRAVE; Egrave
\DeclareTextCompositeCommand{\`}{PD1}{E}{\310}% U+00C8
% U+00C9 LATIN CAPITAL LETTER E WITH ACUTE; Eacute
\DeclareTextCompositeCommand{\'}{PD1}{E}{\311}% U+00C9
% U+00CA LATIN CAPITAL LETTER E WITH CIRCUMFLEX; Ecircumflex
\DeclareTextCompositeCommand{\^}{PD1}{E}{\312}% U+00CA
% U+00CB LATIN CAPITAL LETTER E WITH DIAERESIS; Edieresis
\DeclareTextCompositeCommand{\"}{PD1}{E}{\313}% U+00CB
% U+00CC LATIN CAPITAL LETTER I WITH GRAVE; Igrave
\DeclareTextCompositeCommand{\`}{PD1}{I}{\314}% U+00CC
% U+00CD LATIN CAPITAL LETTER I WITH ACUTE; Iacute
\DeclareTextCompositeCommand{\'}{PD1}{I}{\315}% U+00CD
% U+00CE LATIN CAPITAL LETTER I WITH CIRCUMFLEX; Icircumflex
\DeclareTextCompositeCommand{\^}{PD1}{I}{\316}% U+00CE
% U+00CF LATIN CAPITAL LETTER I WITH DIAERESIS; Idieresis
\DeclareTextCompositeCommand{\"}{PD1}{I}{\317}% U+00CF
% U+00D0 LATIN CAPITAL LETTER ETH; Eth
\DeclareTextCommand{\DH}{PD1}{\320}% U+00D0
\DeclareTextCommand{\DJ}{PD1}{\320}% U+00D0
% U+00D1 LATIN CAPITAL LETTER N WITH TILDE; Ntilde
\DeclareTextCompositeCommand{\~}{PD1}{N}{\321}% U+00D1
% U+00D2 LATIN CAPITAL LETTER O WITH GRAVE; Ograve
\DeclareTextCompositeCommand{\`}{PD1}{O}{\322}% U+00D2
% U+00D3 LATIN CAPITAL LETTER O WITH ACUTE; Oacute
\DeclareTextCompositeCommand{\'}{PD1}{O}{\323}% U+00D3
% U+00D4 LATIN CAPITAL LETTER O WITH CIRCUMFLEX; Ocircumflex
\DeclareTextCompositeCommand{\^}{PD1}{O}{\324}% U+00D4
% U+00D5 LATIN CAPITAL LETTER O WITH TILDE; Otilde
\DeclareTextCompositeCommand{\~}{PD1}{O}{\325}% U+00D5
% U+00D6 LATIN CAPITAL LETTER O WITH DIAERESIS; Odieresis
\DeclareTextCompositeCommand{\"}{PD1}{O}{\326}% U+00D6
% U+00D7 MULTIPLICATION SIGN; multiply
\DeclareTextCommand{\textmultiply}{PD1}{\327}% U+00D7
% U+00D8 LATIN CAPITAL LETTER O WITH STROKE; Oslash
\DeclareTextCommand{\O}{PD1}{\330}% U+00D8
% U+00D9 LATIN CAPITAL LETTER U WITH GRAVE; Ugrave
\DeclareTextCompositeCommand{\`}{PD1}{U}{\331}% U+00D9
% U+00DA LATIN CAPITAL LETTER U WITH ACUTE; Uacute
\DeclareTextCompositeCommand{\'}{PD1}{U}{\332}% U+00DA
% U+00DB LATIN CAPITAL LETTER U WITH CIRCUMFLEX; Ucircumflex
\DeclareTextCompositeCommand{\^}{PD1}{U}{\333}% U+00DB
% U+00DC LATIN CAPITAL LETTER U WITH DIAERESIS; Udieresis
\DeclareTextCompositeCommand{\"}{PD1}{U}{\334}% U+00DC
% U+00DD LATIN CAPITAL LETTER Y WITH ACUTE; Yacute
\DeclareTextCompositeCommand{\'}{PD1}{Y}{\335}% U+00DD
% U+00DE LATIN CAPITAL LETTER THORN; Thorn
\DeclareTextCommand{\TH}{PD1}{\336}% U+00DE
% U+00DF LATIN SMALL LETTER SHARP S; germandbls
\DeclareTextCommand{\ss}{PD1}{\337}% U+00DF
% U+00E0 LATIN SMALL LETTER A WITH GRAVE; agrave
\DeclareTextCompositeCommand{\`}{PD1}{a}{\340}% U+00E0
% U+00E1 LATIN SMALL LETTER A WITH ACUTE; aacute
\DeclareTextCompositeCommand{\'}{PD1}{a}{\341}% U+00E1
% U+00E2 LATIN SMALL LETTER A WITH CIRCUMFLEX; acircumflex
\DeclareTextCompositeCommand{\^}{PD1}{a}{\342}% U+00E2
% U+00E3 LATIN SMALL LETTER A WITH TILDE; atilde
\DeclareTextCompositeCommand{\~}{PD1}{a}{\343}% U+00E3
% U+00E4 LATIN SMALL LETTER A WITH DIAERESIS; adieresis
\DeclareTextCompositeCommand{\"}{PD1}{a}{\344}% U+00E4
% U+00E5 LATIN SMALL LETTER A WITH RING ABOVE; aring
\DeclareTextCompositeCommand{\r}{PD1}{a}{\345}% U+00E5
% U+00E6 LATIN SMALL LETTER AE; ae
\DeclareTextCommand{\ae}{PD1}{\346}% U+00E6
% U+00E7 LATIN SMALL LETTER C WITH CEDILLA; ccedilla
\DeclareTextCompositeCommand{\c}{PD1}{c}{\347}% U+00E7
% U+00E8 LATIN SMALL LETTER E WITH GRAVE; egrave
\DeclareTextCompositeCommand{\`}{PD1}{e}{\350}% U+00E8
% U+00E9 LATIN SMALL LETTER E WITH ACUTE; eacute
\DeclareTextCompositeCommand{\'}{PD1}{e}{\351}% U+00E9
% U+00EA LATIN SMALL LETTER E WITH CIRCUMFLEX; ecircumflex
\DeclareTextCompositeCommand{\^}{PD1}{e}{\352}% U+00EA
% U+00EB LATIN SMALL LETTER E WITH DIAERESIS; edieresis
\DeclareTextCompositeCommand{\"}{PD1}{e}{\353}% U+00EB
% U+00EC LATIN SMALL LETTER I WITH GRAVE; igrave
\DeclareTextCompositeCommand{\`}{PD1}{i}{\354}% U+00EC
\DeclareTextCompositeCommand{\`}{PD1}{\i}{\354}% U+00EC
% U+00ED LATIN SMALL LETTER I WITH ACUTE; iacute
\DeclareTextCompositeCommand{\'}{PD1}{i}{\355}% U+00ED
\DeclareTextCompositeCommand{\'}{PD1}{\i}{\355}% U+00ED
% U+00EE LATIN SMALL LETTER I WITH CIRCUMFLEX; icircumflex
\DeclareTextCompositeCommand{\^}{PD1}{i}{\356}% U+00EE
\DeclareTextCompositeCommand{\^}{PD1}{\i}{\356}% U+00EE
% U+00EF LATIN SMALL LETTER I WITH DIAERESIS; idieresis
\DeclareTextCompositeCommand{\"}{PD1}{i}{\357}% U+00EF
\DeclareTextCompositeCommand{\"}{PD1}{\i}{\357}% U+00EF
% U+00F0 LATIN SMALL LETTER ETH; eth
\DeclareTextCommand{\dh}{PD1}{\360}% U+00F0
% U+00F1 LATIN SMALL LETTER N WITH TILDE; ntilde
\DeclareTextCompositeCommand{\~}{PD1}{n}{\361}% U+00F1
% U+00F2 LATIN SMALL LETTER O WITH GRAVE; ograve
\DeclareTextCompositeCommand{\`}{PD1}{o}{\362}% U+00F2
% U+00F3 LATIN SMALL LETTER O WITH ACUTE; oacute
\DeclareTextCompositeCommand{\'}{PD1}{o}{\363}% U+00F3
% U+00F4 LATIN SMALL LETTER O WITH CIRCUMFLEX; ocircumflex
\DeclareTextCompositeCommand{\^}{PD1}{o}{\364}% U+00F4
% U+00F5 LATIN SMALL LETTER O WITH TILDE; otilde
\DeclareTextCompositeCommand{\~}{PD1}{o}{\365}% U+00F5
% U+00F6 LATIN SMALL LETTER O WITH DIAERESIS; odieresis
\DeclareTextCompositeCommand{\"}{PD1}{o}{\366}% U+00F6
% U+00F7 DIVISION SIGN; divide
\DeclareTextCommand{\textdivide}{PD1}{\367}% U+00F7
% U+00F8 LATIN SMALL LETTER O WITH STROKE; oslash
\DeclareTextCommand{\o}{PD1}{\370}% U+00F8
% U+00F9 LATIN SMALL LETTER U WITH GRAVE; ugrave
\DeclareTextCompositeCommand{\`}{PD1}{u}{\371}% U+00F9
% U+00FA LATIN SMALL LETTER U WITH ACUTE; uacute
\DeclareTextCompositeCommand{\'}{PD1}{u}{\372}% U+00FA
% U+00FB LATIN SMALL LETTER U WITH CIRCUMFLEX; ucircumflex
\DeclareTextCompositeCommand{\^}{PD1}{u}{\373}% U+00FB
% U+00FC LATIN SMALL LETTER U WITH DIAERESIS; udieresis
\DeclareTextCompositeCommand{\"}{PD1}{u}{\374}% U+00FC
% U+00FD LATIN SMALL LETTER Y WITH ACUTE; yacute
\DeclareTextCompositeCommand{\'}{PD1}{y}{\375}% U+00FD
% U+00FE LATIN SMALL LETTER THORN; thorn
\DeclareTextCommand{\th}{PD1}{\376}% U+00FE
% U+00FF LATIN SMALL LETTER Y WITH DIAERESIS; ydieresis
\DeclareTextCompositeCommand{\"}{PD1}{y}{\377}% U+00FF
\DeclareTextCommand{\ij}{PD1}{\377}% U+00FF
% \end{macrocode}
% Glyphs that consist of several characters.
% \begin{macrocode}
\DeclareTextCommand{\SS}{PD1}{SS}
\DeclareTextCommand{\textcelsius}{PD1}{\textdegree C}
% \end{macrocode}
% Aliases (german.sty)
% \begin{macrocode}
\DeclareTextCommand{\textglqq}{PD1}{\quotedblbase}
\DeclareTextCommand{\textgrqq}{PD1}{\textquotedblleft}
\DeclareTextCommand{\textglq}{PD1}{\quotesinglbase}
\DeclareTextCommand{\textgrq}{PD1}{\textquoteleft}
\DeclareTextCommand{\textflqq}{PD1}{\guillemotleft}
\DeclareTextCommand{\textfrqq}{PD1}{\guillemotright}
\DeclareTextCommand{\textflq}{PD1}{\guilsinglleft}
\DeclareTextCommand{\textfrq}{PD1}{\guilsinglright}
% \end{macrocode}
% Aliases (math names)
% \begin{macrocode}
\DeclareTextCommand{\textneg}{PD1}{\textlogicalnot}
\DeclareTextCommand{\texttimes}{PD1}{\textmultiply}
\DeclareTextCommand{\textdiv}{PD1}{\textdivide}
\DeclareTextCommand{\textpm}{PD1}{\textplusminus}
\DeclareTextCommand{\textcdot}{PD1}{\textperiodcentered}
\DeclareTextCommand{\textbeta}{PD1}{\ss}
% \end{macrocode}
% Polish aliases. PDF encoding does not have the characters, but it
% is useful to Poles to have the plain letters regardless. Requested by
% Wojciech Myszka <W.Myszka@immt.pwr.wroc.pl>
% \begin{macrocode}
\DeclareTextCompositeCommand{\k}{PD1}{a}{a}% aogonek
\DeclareTextCompositeCommand{\'}{PD1}{c}{c}% cacute
\DeclareTextCompositeCommand{\k}{PD1}{e}{e}% eogonek
\DeclareTextCompositeCommand{\'}{PD1}{n}{n}% nacute
\DeclareTextCompositeCommand{\'}{PD1}{s}{s}% sacute
\DeclareTextCompositeCommand{\'}{PD1}{z}{z}% zacute
\DeclareTextCompositeCommand{\.}{PD1}{z}{z}% zdot
% \end{macrocode}
% \begin{macrocode}
\DeclareTextCompositeCommand{\k}{PD1}{A}{A}% Aogonek
\DeclareTextCompositeCommand{\'}{PD1}{C}{C}% Cacute
\DeclareTextCompositeCommand{\k}{PD1}{E}{E}% Eogonek
\DeclareTextCompositeCommand{\'}{PD1}{N}{N}% Nacute
\DeclareTextCompositeCommand{\'}{PD1}{S}{S}% Sacute
\DeclareTextCompositeCommand{\'}{PD1}{Z}{Z}% Zacute
\DeclareTextCompositeCommand{\.}{PD1}{Z}{Z}% Zdot
% \end{macrocode}
% \begin{macrocode}
%</pd1enc>
% \end{macrocode}
%
% \subsection{PU encoding}
% \begin{macrocode}
%<*puenc>
\DeclareFontEncoding{PU}{}{}
% \end{macrocode}
%
% \subsubsection{NFSS2 accents}
%
% \begin{macrocode}
% U+0300 COMBINING GRAVE ACCENT; gravecmb, *gravecomb
\DeclareTextCommand{\`}{PU}[1]{#1\83\000}% U+0300
% U+0301 COMBINING ACUTE ACCENT; acutecmb, *acutecomb
\DeclareTextCommand{\'}{PU}[1]{#1\83\001}% U+0301
% U+0302 COMBINING CIRCUMFLEX ACCENT; circumflexcmb
\DeclareTextCommand{\^}{PU}[1]{#1\83\002}% U+0302
% U+0303 COMBINING TILDE; tildecmb, *tildecomb
\DeclareTextCommand{\~}{PU}[1]{#1\83\003}% U+0303
% U+0304 COMBINING MACRON; macroncmb
\DeclareTextCommand{\=}{PU}[1]{#1\83\004}% U+0304
% U+0306 COMBINING BREVE; brevecmb
\DeclareTextCommand{\u}{PU}[1]{#1\83\006}% U+0306
\DeclareTextCommand{\U}{PU}[1]{#1\83\006}% U+0306
% U+0307 COMBINING DOT ABOVE; dotaccentcmb
\DeclareTextCommand{\.}{PU}[1]{#1\83\007}% U+0307
% U+0308 COMBINING DIAERESIS; dieresiscmb
\DeclareTextCommand{\"}{PU}[1]{#1\83\010}% U+0308
% U+030A COMBINING RING ABOVE; ringcmb
\DeclareTextCommand{\r}{PU}[1]{#1\83\012}% U+030A
% U+030B COMBINING DOUBLE ACUTE ACCENT; hungarumlautcmb
\DeclareTextCommand{\H}{PU}[1]{#1\83\013}% U+030B
% U+030C COMBINING CARON; caroncmb
\DeclareTextCommand{\v}{PU}[1]{#1\83\014}% U+030C
% U+030F COMBINING DOUBLE GRAVE ACCENT; dblgravecmb
\DeclareTextCommand{\G}{PU}[1]{#1\83\017}% U+030F
\DeclareTextCommand{\C}{PU}[1]{#1\83\017}% U+030F
% U+0311 COMBINING INVERTED BREVE; breveinvertedcmb
\DeclareTextCommand{\newtie}{PU}[1]{#1\83\021}% U+0311
% U+0323 COMBINING DOT BELOW; dotbelowcmb, *dotbelowcomb
\DeclareTextCommand{\d}{PU}[1]{#1\83\043}% U+0323
% U+0331 COMBINING MACRON BELOW; macronbelowcmb
\DeclareTextCommand{\b}{PU}[1]{#1\83\061}% U+0331
% U+0327 COMBINING CEDILLA; cedillacmb
\DeclareTextCommand{\c}{PU}[1]{#1\83\047}% U+0327
% U+0328 COMBINING OGONEK; ogonekcmb
\DeclareTextCommand{\k}{PU}[1]{#1\83\050}% U+0328
% U+0361 COMBINING DOUBLE INVERTED BREVE; breveinverteddoublecmb
\DeclareTextCommand{\t}{PU}[1]{#1\83\141}% U+0361
% U+20DD COMBINING ENCLOSING CIRCLE
\DeclareTextCommand{\textcircled}{PU}[1]{#1\9040\335}% U+20DD
% \end{macrocode}
% \cs{@empty} is an artefact of the NFSS2 machinery, it
% gets inserted for empty arguments and spaces.
% \begin{macrocode}
\DeclareTextCompositeCommand{\`}{PU}{\@empty}{\textasciigrave}
\DeclareTextCompositeCommand{\'}{PU}{\@empty}{\textacute}
\DeclareTextCompositeCommand{\^}{PU}{\@empty}{\textasciicircum}
\DeclareTextCompositeCommand{\~}{PU}{\@empty}{\texttilde}
\DeclareTextCompositeCommand{\"}{PU}{\@empty}{\textasciidieresis}
\DeclareTextCompositeCommand{\r}{PU}{\@empty}{\textring}
\DeclareTextCompositeCommand{\v}{PU}{\@empty}{\textasciicaron}
\DeclareTextCompositeCommand{\.}{PU}{\@empty}{\textdotaccent}
\DeclareTextCompositeCommand{\c}{PU}{\@empty}{\textcedilla}
\DeclareTextCompositeCommand{\u}{PU}{\@empty}{\textasciibreve}
\DeclareTextCompositeCommand{\G}{PU}{\@empty}{\textdoublegrave}
\DeclareTextCompositeCommand{\=}{PU}{\@empty}{\textasciimacron}
\DeclareTextCompositeCommand{\H}{PU}{\@empty}{\texthungarumlaut}
\DeclareTextCompositeCommand{\k}{PU}{\@empty}{\textogonek}
\DeclareTextCompositeCommand{\b}{PU}{\@empty}{\textmacronbelow}
\DeclareTextCompositeCommand{\d}{PU}{\@empty}{\textdotbelow}
\DeclareTextCompositeCommand{\t}{PU}{\@empty}{\texttie}
\DeclareTextCompositeCommand{\newtie}{PU}{\@empty}{\textnewtie}
\DeclareTextCompositeCommand{\textcircled}{PU}{\@empty}{\textbigcircle}
% \end{macrocode}
% \begin{macrocode}
\DeclareTextCompositeCommand{\`}{PU}{\ }{\textasciigrave}
\DeclareTextCompositeCommand{\'}{PU}{\ }{\textacute}
\DeclareTextCompositeCommand{\^}{PU}{\ }{\textasciicircum}
\DeclareTextCompositeCommand{\~}{PU}{\ }{\texttilde}
\DeclareTextCompositeCommand{\"}{PU}{\ }{\textasciidieresis}
\DeclareTextCompositeCommand{\r}{PU}{\ }{\textring}
\DeclareTextCompositeCommand{\v}{PU}{\ }{\textasciicaron}
\DeclareTextCompositeCommand{\.}{PU}{\ }{\textdotaccent}
\DeclareTextCompositeCommand{\c}{PU}{\ }{\textcedilla}
\DeclareTextCompositeCommand{\u}{PU}{\ }{\textasciibreve}
\DeclareTextCompositeCommand{\G}{PU}{\ }{\textdoublegrave}
\DeclareTextCompositeCommand{\=}{PU}{\ }{\textasciimacron}
\DeclareTextCompositeCommand{\H}{PU}{\ }{\texthungarumlaut}
\DeclareTextCompositeCommand{\k}{PU}{\ }{\textogonek}
\DeclareTextCompositeCommand{\b}{PU}{\ }{\textmacronbelow}
\DeclareTextCompositeCommand{\d}{PU}{\ }{\textdotbelow}
\DeclareTextCompositeCommand{\t}{PU}{\ }{\texttie}
\DeclareTextCompositeCommand{\newtie}{PU}{\ }{\textnewtie}
\DeclareTextCompositeCommand{\textcircled}{PU}{\ }{\textbigcircle}
% \end{macrocode}
% Accents for capitals (see encoding TS1)
% \begin{macrocode}
\DeclareTextCommand{\capitalcedilla}{PU}[1]{\c{#1}}
\DeclareTextCommand{\capitalogonek}{PU}[1]{\k{#1}}
\DeclareTextCommand{\capitalgrave}{PU}[1]{\`{#1}}
\DeclareTextCommand{\capitalacute}{PU}[1]{\'{#1}}
\DeclareTextCommand{\capitalcircumflex}{PU}[1]{\^{#1}}
\DeclareTextCommand{\capitaltilde}{PU}[1]{\~{#1}}
\DeclareTextCommand{\capitaldieresis}{PU}[1]{\"{#1}}
\DeclareTextCommand{\capitalhungarumlaut}{PU}[1]{\H{#1}}
\DeclareTextCommand{\capitalring}{PU}[1]{\r{#1}}
\DeclareTextCommand{\capitalcaron}{PU}[1]{\v{#1}}
\DeclareTextCommand{\capitalbreve}{PU}[1]{\u{#1}}
\DeclareTextCommand{\capitalmacron}{PU}[1]{\={#1}}
\DeclareTextCommand{\capitaldotaccent}{PU}[1]{\.{#1}}
\DeclareTextCommand{\capitaltie}{PU}[1]{\t{#1}}
\DeclareTextCommand{\capitalnewtie}{PU}[1]{\newtie{#1}}
% \end{macrocode}
%
% \subsubsection{Basic Latin: U+0000 to U+007F}
%
% Special white space escape characters.
% \begin{macrocode}
% U+0009 (CHARACTER TABULATION)
\DeclareTextCommand{\textHT}{PU}{\80\011}% U+0009
% U+000A (LINE FEED)
\DeclareTextCommand{\textLF}{PU}{\80\012}% U+000A
% U+000D (CARRIAGE RETURN)
\DeclareTextCommand{\textCR}{PU}{\80\015}% U+000D
% \end{macrocode}
% |\80\040|: U+0020 SPACE; space, spacehackarabic\\
% |\80\041|: U+0021 EXCLAMATION MARK; exclam
% \begin{macrocode}
% U+0022 QUOTATION MARK; quotedbl
\DeclareTextCommand{\textquotedbl}{PU}{\string"}% \80\042 U+0022
% U+0023 NUMBER SIGN; numbersign
\DeclareTextCommand{\textnumbersign}{PU}{\80\043}% U+0023
% U+0024 DOLLAR SIGN; dollar
\DeclareTextCommand{\textdollar}{PU}{\80\044}% U+0024
% U+0025 PERCENT SIGN; percent
\DeclareTextCommand{\textpercent}{PU}{\80\045}% U+0025
% U+0026 AMPERSAND; ampersand
\DeclareTextCommand{\textampersand}{PU}{\80\046}% U+0026
% U+0027 APOSTROPHE; quotesingle
\DeclareTextCommand{\textquotesingle}{PU}{\80\047}% U+0027
% U+0028 LEFT PARENTHESIS; parenleft
\DeclareTextCommand{\textparenleft}{PU}{\80\050}% U+0028
% U+0029 RIGHT PARENTHESIS; parenright
\DeclareTextCommand{\textparenright}{PU}{\80\051}% U+0029
% U+002A ASTERISK; asterisk
\DeclareTextCommand{\textasteriskcentered}{PU}{\80\052}% U+002A (?)
% \end{macrocode}
% |\80\053|: U+002B PLUS SIGN; plus\\
% |\80\054|: U+002C COMMA; comma\\
% |\80\055|: U+002D HYPHEN-MINUS; hyphen\\
% |\80\056|: U+002E FULL STOP; period\\
% |\80\057|: U+002F SOLIDUS; slash\\
% |\80\060|: U+0030 DIGIT ZERO; zero\\
% \dots\\
% |\80\071|: U+0039 DIGIT NINE; nine\\
% |\80\072|: U+003A COLON; colon\\
% |\80\073|: U+003B SEMICOLON; semicolon
% \begin{macrocode}
% U+003C LESS-THAN SIGN; less
\DeclareTextCommand{\textless}{PU}{<}% \80\074 U+003C
% \end{macrocode}
% |\80\075|: U+003D EQUALS SIGN; equal
% \begin{macrocode}
% U+003E GREATER-THAN SIGN; greater
\DeclareTextCommand{\textgreater}{PU}{>}% \80\076 U+003E
% \end{macrocode}
% |\80\077|: U+003F QUESTION MARK; question\\
% |\80\100|: U+0040 COMMERCIAL AT; at\\
% |\80\101|: U+0041 LATIN CAPITAL LETTER A; A\\
% \dots\\
% |\80\132|: U+005A LATIN CAPITAL LETTER Z; Z\\
% |\80\133|: U+005B LEFT SQUARE BRACKET; bracketleft
% \begin{macrocode}
% U+005C REVERSE SOLIDUS; backslash
\DeclareTextCommand{\textbackslash}{PU}{\80\134}% U+005C
% \end{macrocode}
% |\80\135|: U+005D RIGHT SQUARE BRACKET; bracketright
% \begin{macrocode}
% U+005E CIRCUMFLEX ACCENT; asciicircum
\DeclareTextCommand{\textasciicircum}{PU}{\80\136}% U+005E
% U+005F LOW LINE; underscore
\DeclareTextCommand{\textunderscore}{PU}{\80\137}% U+005F
% U+0060 GRAVE ACCENT; grave
\DeclareTextCommand{\textasciigrave}{PU}{\80\140}% U+0060
% \end{macrocode}
% |\80\141|: U+0061 LATIN SMALL LETTER A; a\\
% \dots\\
% |\80\150|: U+0068 LATIN SMALL LETTER H; h
% \begin{macrocode}
% U+0069 LATIN SMALL LETTER I; i
\DeclareTextCompositeCommand{\.}{PU}{\i}{i} % \80\151 U+0069
\DeclareTextCompositeCommand{\.}{PU}{i}{i}% \80\151 U+0069
% \end{macrocode}
% |\80\152|: U+006A LATIN SMALL LETTER J; j\\
% \dots\\
% |\80\172|: U+007A LATIN SMALL LETTER Z; z
% \begin{macrocode}
% U+007B LEFT CURLY BRACKET; braceleft
\DeclareTextCommand{\textbraceleft}{PU}{\80\173}% U+007B
% U+007C VERTICAL LINE; *bar, verticalbar
\DeclareTextCommand{\textbar}{PU}{|}% \80\174 U+007C
% U+007D RIGHT CURLY BRACKET; braceright
\DeclareTextCommand{\textbraceright}{PU}{\80\175}% U+007D
% U+007E TILDE; asciitilde
\DeclareTextCommand{\textasciitilde}{PU}{\80\176}% U+007E
% \end{macrocode}
%
% \subsubsection{Latin-1 Supplement: U+0080 to U+00FF}
%
% |\80\240|: U+00A0 NO-BREAK SPACE; nbspace, nonbreakingspace
% \begin{macrocode}
% U+00A1 INVERTED EXCLAMATION MARK; exclamdown
\DeclareTextCommand{\textexclamdown}{PU}{\80\241}% U+00A1
% U+00A2 CENT SIGN; cent
\DeclareTextCommand{\textcent}{PU}{\80\242}% U+00A2
% U+00A3 POUND SIGN; sterling
\DeclareTextCommand{\textsterling}{PU}{\80\243}% U+00A3
% U+00A4 CURRENCY SIGN; currency
\DeclareTextCommand{\textcurrency}{PU}{\80\244}% U+00A4
% U+00A5 YEN SIGN; yen
\DeclareTextCommand{\textyen}{PU}{\80\245}% U+00A5
% U+00A6 BROKEN BAR; brokenbar
\DeclareTextCommand{\textbrokenbar}{PU}{\80\246}% U+00A6
% U+00A7 SECTION SIGN; section
\DeclareTextCommand{\textsection}{PU}{\80\247}% U+00A7
% U+00A8 DIAERESIS; dieresis
\DeclareTextCommand{\textasciidieresis}{PU}{\80\250}% U+00A8
% U+00A9 COPYRIGHT SIGN; copyright
\DeclareTextCommand{\textcopyright}{PU}{\80\251}% U+00A9
% U+00AA FEMININE ORDINAL INDICATOR; ordfeminine
\DeclareTextCommand{\textordfeminine}{PU}{\80\252}% U+00AA
% U+00AB LEFT-POINTING DOUBLE ANGLE QUOTATION MARK; guillemotleft
\DeclareTextCommand{\guillemotleft}{PU}{\80\253}% U+00AB
% U+00AC NOT SIGN; logicalnot
\DeclareTextCommand{\textlogicalnot}{PU}{\80\254}% U+00AC
\DeclareTextCommand{\textlnot}{PU}{\80\254}% U+00AC
% \end{macrocode}
% |\80\255|: U+00AD SOFT HYPHEN; sfthyphen, softhyphen
% \begin{macrocode}
% U+00AE REGISTERED SIGN; registered
\DeclareTextCommand{\textregistered}{PU}{\80\256}% U+00AE
% U+00AF MACRON; *macron, overscore
\DeclareTextCommand{\textasciimacron}{PU}{\80\257}% U+00AF
% U+00B0 DEGREE SIGN; degree
\DeclareTextCommand{\textdegree}{PU}{\80\260}% U+00B0
% U+00B1 PLUS-MINUS SIGN; plusminus
\DeclareTextCommand{\textplusminus}{PU}{\80\261}% U+00B1
% U+00B2 SUPERSCRIPT TWO; twosuperior
\DeclareTextCommand{\texttwosuperior}{PU}{\80\262}% U+00B2
% U+00B3 SUPERSCRIPT THREE; threesuperior
\DeclareTextCommand{\textthreesuperior}{PU}{\80\263}% U+00B3
% U+00B4 ACUTE ACCENT; acute
\DeclareTextCommand{\textacute}{PU}{\80\264}% U+00B4
\DeclareTextCommand{\textasciiacute}{PU}{\80\264}% U+00B4
% U+00B5 MICRO SIGN; mu, mu1
\DeclareTextCommand{\textmu}{PU}{\80\265}% U+00B5
% U+00B6 PILCROW SIGN; paragraph
\DeclareTextCommand{\textparagraph}{PU}{\80\266}% U+00B6
% U+00B7 MIDDLE DOT; middot, *periodcentered
\DeclareTextCommand{\textperiodcentered}{PU}{\80\267}% U+00B7
% U+00B8 CEDILLA; cedilla
\DeclareTextCommand{\textcedilla}{PU}{\80\270}% U+00B8
% U+00B9 SUPERSCRIPT ONE; onesuperior
\DeclareTextCommand{\textonesuperior}{PU}{\80\271}% U+00B9
% U+00BA MASCULINE ORDINAL INDICATOR; ordmasculine
\DeclareTextCommand{\textordmasculine}{PU}{\80\272}% U+00BA
% U+00BB RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK; guillemotright
\DeclareTextCommand{\guillemotright}{PU}{\80\273}% U+00BB
% U+00BC VULGAR FRACTION ONE QUARTER; onequarter
\DeclareTextCommand{\textonequarter}{PU}{\80\274}% U+00BC
% U+00BD VULGAR FRACTION ONE HALF; onehalf
\DeclareTextCommand{\textonehalf}{PU}{\80\275}% U+00BD
% U+00BE VULGAR FRACTION THREE QUARTERS; threequarters
\DeclareTextCommand{\textthreequarters}{PU}{\80\276}% U+00BE
% U+00BF INVERTED QUESTION MARK; questiondown
\DeclareTextCommand{\textquestiondown}{PU}{\80\277}% U+00BF
% U+00C0 LATIN CAPITAL LETTER A WITH GRAVE; Agrave
\DeclareTextCompositeCommand{\`}{PU}{A}{\80\300}% U+00C0
% U+00C1 LATIN CAPITAL LETTER A WITH ACUTE; Aacute
\DeclareTextCompositeCommand{\'}{PU}{A}{\80\301}% U+00C1
% U+00C2 LATIN CAPITAL LETTER A WITH CIRCUMFLEX; Acircumflex
\DeclareTextCompositeCommand{\^}{PU}{A}{\80\302}% U+00C2
% U+00C3 LATIN CAPITAL LETTER A WITH TILDE; Atilde
\DeclareTextCompositeCommand{\~}{PU}{A}{\80\303}% U+00C3
% U+00C4 LATIN CAPITAL LETTER A WITH DIAERESIS; Adieresis
\DeclareTextCompositeCommand{\"}{PU}{A}{\80\304}% U+00C4
% U+00C5 LATIN CAPITAL LETTER A WITH RING ABOVE; Aring
\DeclareTextCompositeCommand{\r}{PU}{A}{\80\305}% U+00C5
% U+00C6 LATIN CAPITAL LETTER AE; AE
\DeclareTextCommand{\AE}{PU}{\80\306}% U+00C6
% U+00C7 LATIN CAPITAL LETTER C WITH CEDILLA; Ccedilla
\DeclareTextCompositeCommand{\c}{PU}{C}{\80\307}% U+00C7
% U+00C8 LATIN CAPITAL LETTER E WITH GRAVE; Egrave
\DeclareTextCompositeCommand{\`}{PU}{E}{\80\310}% U+00C8
% U+00C9 LATIN CAPITAL LETTER E WITH ACUTE; Eacute
\DeclareTextCompositeCommand{\'}{PU}{E}{\80\311}% U+00C9
% U+00CA LATIN CAPITAL LETTER E WITH CIRCUMFLEX; Ecircumflex
\DeclareTextCompositeCommand{\^}{PU}{E}{\80\312}% U+00CA
% U+00CB LATIN CAPITAL LETTER E WITH DIAERESIS; Edieresis
\DeclareTextCompositeCommand{\"}{PU}{E}{\80\313}% U+00CB
% U+00CC LATIN CAPITAL LETTER I WITH GRAVE; Igrave
\DeclareTextCompositeCommand{\`}{PU}{I}{\80\314}% U+00CC
% U+00CD LATIN CAPITAL LETTER I WITH ACUTE; Iacute
\DeclareTextCompositeCommand{\'}{PU}{I}{\80\315}% U+00CD
% U+00CE LATIN CAPITAL LETTER I WITH CIRCUMFLEX; Icircumflex
\DeclareTextCompositeCommand{\^}{PU}{I}{\80\316}% U+00CE
% U+00CF LATIN CAPITAL LETTER I WITH DIAERESIS; Idieresis
\DeclareTextCompositeCommand{\"}{PU}{I}{\80\317}% U+00CF
% U+00D0 LATIN CAPITAL LETTER ETH; Eth
\DeclareTextCommand{\DH}{PU}{\80\320}% U+00D0
% U+00D1 LATIN CAPITAL LETTER N WITH TILDE; Ntilde
\DeclareTextCompositeCommand{\~}{PU}{N}{\80\321}% U+00D1
% U+00D2 LATIN CAPITAL LETTER O WITH GRAVE; Ograve
\DeclareTextCompositeCommand{\`}{PU}{O}{\80\322}% U+00D2
% U+00D3 LATIN CAPITAL LETTER O WITH ACUTE; Oacute
\DeclareTextCompositeCommand{\'}{PU}{O}{\80\323}% U+00D3
% U+00D4 LATIN CAPITAL LETTER O WITH CIRCUMFLEX; Ocircumflex
\DeclareTextCompositeCommand{\^}{PU}{O}{\80\324}% U+00D4
% U+00D5 LATIN CAPITAL LETTER O WITH TILDE; Otilde
\DeclareTextCompositeCommand{\~}{PU}{O}{\80\325}% U+00D5
% U+00D6 LATIN CAPITAL LETTER O WITH DIAERESIS; Odieresis
\DeclareTextCompositeCommand{\"}{PU}{O}{\80\326}% U+00D6
% U+00D7 MULTIPLICATION SIGN; multiply
\DeclareTextCommand{\textmultiply}{PU}{\80\327}% U+00D7
% U+00D8 LATIN CAPITAL LETTER O WITH STROKE; Oslash
\DeclareTextCommand{\O}{PU}{\80\330}% U+00D8
% U+00D9 LATIN CAPITAL LETTER U WITH GRAVE; Ugrave
\DeclareTextCompositeCommand{\`}{PU}{U}{\80\331}% U+00D9
% U+00DA LATIN CAPITAL LETTER U WITH ACUTE; Uacute
\DeclareTextCompositeCommand{\'}{PU}{U}{\80\332}% U+00DA
% U+00DB LATIN CAPITAL LETTER U WITH CIRCUMFLEX; Ucircumflex
\DeclareTextCompositeCommand{\^}{PU}{U}{\80\333}% U+00DB
% U+00DC LATIN CAPITAL LETTER U WITH DIAERESIS; Udieresis
\DeclareTextCompositeCommand{\"}{PU}{U}{\80\334}% U+00DC
% U+00DD LATIN CAPITAL LETTER Y WITH ACUTE; Yacute
\DeclareTextCompositeCommand{\'}{PU}{Y}{\80\335}% U+00DD
% U+00DE LATIN CAPITAL LETTER THORN; Thorn
\DeclareTextCommand{\TH}{PU}{\80\336}% U+00DE
% U+00DF LATIN SMALL LETTER SHARP S; germandbls
\DeclareTextCommand{\ss}{PU}{\80\337}% U+00DF
% U+00E0 LATIN SMALL LETTER A WITH GRAVE; agrave
\DeclareTextCompositeCommand{\`}{PU}{a}{\80\340}% U+00E0
% U+00E1 LATIN SMALL LETTER A WITH ACUTE; aacute
\DeclareTextCompositeCommand{\'}{PU}{a}{\80\341}% U+00E1
% U+00E2 LATIN SMALL LETTER A WITH CIRCUMFLEX; acircumflex
\DeclareTextCompositeCommand{\^}{PU}{a}{\80\342}% U+00E2
% U+00E3 LATIN SMALL LETTER A WITH TILDE; atilde
\DeclareTextCompositeCommand{\~}{PU}{a}{\80\343}% U+00E3
% U+00E4 LATIN SMALL LETTER A WITH DIAERESIS; adieresis
\DeclareTextCompositeCommand{\"}{PU}{a}{\80\344}% U+00E4
% U+00E5 LATIN SMALL LETTER A WITH RING ABOVE; aring
\DeclareTextCompositeCommand{\r}{PU}{a}{\80\345}% U+00E5
% U+00E6 LATIN SMALL LETTER AE; ae
\DeclareTextCommand{\ae}{PU}{\80\346}% U+00E6
% U+00E7 LATIN SMALL LETTER C WITH CEDILLA; ccedilla
\DeclareTextCompositeCommand{\c}{PU}{c}{\80\347}% U+00E7
% U+00E8 LATIN SMALL LETTER E WITH GRAVE; egrave
\DeclareTextCompositeCommand{\`}{PU}{e}{\80\350}% U+00E8
% U+00E9 LATIN SMALL LETTER E WITH ACUTE; eacute
\DeclareTextCompositeCommand{\'}{PU}{e}{\80\351}% U+00E9
% U+00EA LATIN SMALL LETTER E WITH CIRCUMFLEX; ecircumflex
\DeclareTextCompositeCommand{\^}{PU}{e}{\80\352}% U+00EA
% U+00EB LATIN SMALL LETTER E WITH DIAERESIS; edieresis
\DeclareTextCompositeCommand{\"}{PU}{e}{\80\353}% U+00EB
% U+00EC LATIN SMALL LETTER I WITH GRAVE; igrave
\DeclareTextCompositeCommand{\`}{PU}{i}{\80\354}% U+00EC
\DeclareTextCompositeCommand{\`}{PU}{\i}{\80\354}% U+00EC
% U+00ED LATIN SMALL LETTER I WITH ACUTE; iacute
\DeclareTextCompositeCommand{\'}{PU}{i}{\80\355}% U+00ED
\DeclareTextCompositeCommand{\'}{PU}{\i}{\80\355}% U+00ED
% U+00EE LATIN SMALL LETTER I WITH CIRCUMFLEX; icircumflex
\DeclareTextCompositeCommand{\^}{PU}{i}{\80\356}% U+00EE
\DeclareTextCompositeCommand{\^}{PU}{\i}{\80\356}% U+00EE
% U+00EF LATIN SMALL LETTER I WITH DIAERESIS; idieresis
\DeclareTextCompositeCommand{\"}{PU}{i}{\80\357}% U+00EF
\DeclareTextCompositeCommand{\"}{PU}{\i}{\80\357}% U+00EF
% U+00F0 LATIN SMALL LETTER ETH; eth
\DeclareTextCommand{\dh}{PU}{\80\360}% U+00F0
% U+00F1 LATIN SMALL LETTER N WITH TILDE; ntilde
\DeclareTextCompositeCommand{\~}{PU}{n}{\80\361}% U+00F1
% U+00F2 LATIN SMALL LETTER O WITH GRAVE; ograve
\DeclareTextCompositeCommand{\`}{PU}{o}{\80\362}% U+00F2
% U+00F3 LATIN SMALL LETTER O WITH ACUTE; oacute
\DeclareTextCompositeCommand{\'}{PU}{o}{\80\363}% U+00F3
% U+00F4 LATIN SMALL LETTER O WITH CIRCUMFLEX; ocircumflex
\DeclareTextCompositeCommand{\^}{PU}{o}{\80\364}% U+00F4
% U+00F5 LATIN SMALL LETTER O WITH TILDE; otilde
\DeclareTextCompositeCommand{\~}{PU}{o}{\80\365}% U+00F5
% U+00F6 LATIN SMALL LETTER O WITH DIAERESIS; odieresis
\DeclareTextCompositeCommand{\"}{PU}{o}{\80\366}% U+00F6
% U+00F7 DIVISION SIGN; divide
\DeclareTextCommand{\textdivide}{PU}{\80\367}% U+00F7
% U+00F8 LATIN SMALL LETTER O WITH STROKE; oslash
\DeclareTextCommand{\o}{PU}{\80\370}% U+00F8
% U+00F9 LATIN SMALL LETTER U WITH GRAVE; ugrave
\DeclareTextCompositeCommand{\`}{PU}{u}{\80\371}% U+00F9
% U+00FA LATIN SMALL LETTER U WITH ACUTE; uacute
\DeclareTextCompositeCommand{\'}{PU}{u}{\80\372}% U+00FA
% U+00FB LATIN SMALL LETTER U WITH CIRCUMFLEX; ucircumflex
\DeclareTextCompositeCommand{\^}{PU}{u}{\80\373}% U+00FB
% U+00FC LATIN SMALL LETTER U WITH DIAERESIS; udieresis
\DeclareTextCompositeCommand{\"}{PU}{u}{\80\374}% U+00FC
% U+00FD LATIN SMALL LETTER Y WITH ACUTE; yacute
\DeclareTextCompositeCommand{\'}{PU}{y}{\80\375}% U+00FD
% U+00FE LATIN SMALL LETTER THORN; thorn
\DeclareTextCommand{\th}{PU}{\80\376}% U+00FE
% U+00FF LATIN SMALL LETTER Y WITH DIAERESIS; ydieresis
\DeclareTextCompositeCommand{\"}{PU}{y}{\80\377}% U+00FF
% \end{macrocode}
%
% \subsubsection{Latin Extended-A: U+0080 to U+017F}
%
% \begin{macrocode}
% U+0100 LATIN CAPITAL LETTER A WITH MACRON; Amacron
\DeclareTextCompositeCommand{\=}{PU}{A}{\81\000}% U+0100
% U+0101 LATIN SMALL LETTER A WITH MACRON; amacron
\DeclareTextCompositeCommand{\=}{PU}{a}{\81\001}% U+0101
% U+0102 LATIN CAPITAL LETTER A WITH BREVE; Abreve
\DeclareTextCompositeCommand{\u}{PU}{A}{\81\002}% U+0102
% U+0103 LATIN SMALL LETTER A WITH BREVE; abreve
\DeclareTextCompositeCommand{\u}{PU}{a}{\81\003}% U+0103
% U+0104 LATIN CAPITAL LETTER A WITH OGONEK; Aogonek
\DeclareTextCompositeCommand{\k}{PU}{A}{\81\004}% U+0104
% U+0105 LATIN SMALL LETTER A WITH OGONEK; aogonek
\DeclareTextCompositeCommand{\k}{PU}{a}{\81\005}% U+0105
% U+0106 LATIN CAPITAL LETTER C WITH ACUTE; Cacute
\DeclareTextCompositeCommand{\'}{PU}{C}{\81\006}% U+0106
% U+0107 LATIN SMALL LETTER C WITH ACUTE; cacute
\DeclareTextCompositeCommand{\'}{PU}{c}{\81\007}% U+0107
% U+0108 LATIN CAPITAL LETTER C WITH CIRCUMFLEX; Ccircumflex
\DeclareTextCompositeCommand{\^}{PU}{C}{\81\010}% U+0108
% U+0109 LATIN SMALL LETTER C WITH CIRCUMFLEX; ccircumflex
\DeclareTextCompositeCommand{\^}{PU}{c}{\81\011}% U+0109
% U+010A LATIN CAPITAL LETTER C WITH DOT ABOVE; Cdot, Cdotaccent
\DeclareTextCompositeCommand{\.}{PU}{C}{\81\012}% U+010A
% U+010B LATIN SMALL LETTER C WITH DOT ABOVE; cdot, cdotaccent
\DeclareTextCompositeCommand{\.}{PU}{c}{\81\013}% U+010B
% U+010C LATIN CAPITAL LETTER C WITH CARON; Ccaron
\DeclareTextCompositeCommand{\v}{PU}{C}{\81\014}% U+010C
% U+010D LATIN SMALL LETTER C WITH CARON; ccaron
\DeclareTextCompositeCommand{\v}{PU}{c}{\81\015}% U+010D
% U+010E LATIN CAPITAL LETTER D WITH CARON; Dcaron
\DeclareTextCompositeCommand{\v}{PU}{D}{\81\016}% U+010E
% U+010F LATIN SMALL LETTER D WITH CARON; dcaron
\DeclareTextCompositeCommand{\v}{PU}{d}{\81\017}% U+010F
% U+0110 LATIN CAPITAL LETTER D WITH STROKE; Dcroat, Dslash
\DeclareTextCommand{\DJ}{PU}{\81\020}% U+0110
% U+0111 LATIN SMALL LETTER D WITH STROKE; dcroat, dmacron
\DeclareTextCommand{\dj}{PU}{\81\021}% U+0111
% U+0112 LATIN CAPITAL LETTER E WITH MACRON; Emacron
\DeclareTextCompositeCommand{\=}{PU}{E}{\81\022}% U+0112
% U+0113 LATIN SMALL LETTER E WITH MACRON; emacron
\DeclareTextCompositeCommand{\=}{PU}{e}{\81\023}% U+0113
% U+0114 LATIN CAPITAL LETTER E WITH BREVE; Ebreve
\DeclareTextCompositeCommand{\u}{PU}{E}{\81\024}% U+0114
% U+0115 LATIN SMALL LETTER E WITH BREVE; ebreve
\DeclareTextCompositeCommand{\u}{PU}{e}{\81\025}% U+0115
% U+0116 LATIN CAPITAL LETTER E WITH DOT ABOVE; Edot, Edotaccent
\DeclareTextCompositeCommand{\.}{PU}{E}{\81\026}% U+0116
% U+0117 LATIN SMALL LETTER E WITH DOT ABOVE; edot, edotaccent
\DeclareTextCompositeCommand{\.}{PU}{e}{\81\027}% U+0117
% U+0118 LATIN CAPITAL LETTER E WITH OGONEK; Eogonek
\DeclareTextCompositeCommand{\k}{PU}{E}{\81\030}% U+0118
% U+0119 LATIN SMALL LETTER E WITH OGONEK; eogonek
\DeclareTextCompositeCommand{\k}{PU}{e}{\81\031}% U+0119
% U+011A LATIN CAPITAL LETTER E WITH CARON; Ecaron
\DeclareTextCompositeCommand{\v}{PU}{E}{\81\032}% U+011A
% U+011B LATIN SMALL LETTER E WITH CARON; ecaron
\DeclareTextCompositeCommand{\v}{PU}{e}{\81\033}% U+011B
% U+011C LATIN CAPITAL LETTER G WITH CIRCUMFLEX; Gcircumflex
\DeclareTextCompositeCommand{\^}{PU}{G}{\81\034}% U+011C
% U+011D LATIN SMALL LETTER G WITH CIRCUMFLEX; gcircumflex
\DeclareTextCompositeCommand{\^}{PU}{g}{\81\035}% U+011D
% U+011E LATIN CAPITAL LETTER G WITH BREVE; Gbreve
\DeclareTextCompositeCommand{\u}{PU}{G}{\81\036}% U+011E
% U+011F LATIN SMALL LETTER G WITH BREVE; gbreve
\DeclareTextCompositeCommand{\u}{PU}{g}{\81\037}% U+011F
% U+0120 LATIN CAPITAL LETTER G WITH DOT ABOVE; Gdot, Gdotaccent
\DeclareTextCompositeCommand{\.}{PU}{G}{\81\040}% U+0120
% U+0121 LATIN SMALL LETTER G WITH DOT ABOVE; gdot, gdotaccent
\DeclareTextCompositeCommand{\.}{PU}{g}{\81\041}% U+0121
% U+0122 LATIN CAPITAL LETTER G WITH CEDILLA; Gcedilla, Gcommaaccent
\DeclareTextCompositeCommand{\c}{PU}{G}{\81\042}% U+0122
% U+0123 LATIN SMALL LETTER G WITH CEDILLA; gcedilla, gcommaaccent
\DeclareTextCompositeCommand{\c}{PU}{g}{\81\043}% U+0123
% U+0124 LATIN CAPITAL LETTER H WITH CIRCUMFLEX; Hcircumflex
\DeclareTextCompositeCommand{\^}{PU}{H}{\81\044}% U+0124
% U+0125 LATIN SMALL LETTER H WITH CIRCUMFLEX; hcircumflex
\DeclareTextCompositeCommand{\^}{PU}{h}{\81\045}% U+0125
% U+0126 LATIN CAPITAL LETTER H WITH STROKE; Hbar
\DeclareTextCommand{\textHslash}{PU}{\81\046}% U+0126
% U+0127 LATIN SMALL LETTER H WITH STROKE; hbar
\DeclareTextCommand{\texthslash}{PU}{\81\047}% U+0127
% U+0128 LATIN CAPITAL LETTER I WITH TILDE; Itilde
\DeclareTextCompositeCommand{\~}{PU}{I}{\81\050}% U+0128
% U+0129 LATIN SMALL LETTER I WITH TILDE; itilde
\DeclareTextCompositeCommand{\~}{PU}{i}{\81\051}% U+0129
\DeclareTextCompositeCommand{\~}{PU}{\i}{\81\051}% U+0129
% U+012A LATIN CAPITAL LETTER I WITH MACRON; Imacron
\DeclareTextCompositeCommand{\=}{PU}{I}{\81\052}% U+012A
% U+012B LATIN SMALL LETTER I WITH MACRON; imacron
\DeclareTextCompositeCommand{\=}{PU}{i}{\81\053}% U+012B
\DeclareTextCompositeCommand{\=}{PU}{\i}{\81\053}% U+012B
% U+012C LATIN CAPITAL LETTER I WITH BREVE; Ibreve
\DeclareTextCompositeCommand{\u}{PU}{I}{\81\054}% U+012C
% U+012D LATIN SMALL LETTER I WITH BREVE; ibreve
\DeclareTextCompositeCommand{\u}{PU}{i}{\81\055}% U+012D
\DeclareTextCompositeCommand{\u}{PU}{\i}{\81\055}% U+012D
% U+012E LATIN CAPITAL LETTER I WITH OGONEK; Iogonek
\DeclareTextCompositeCommand{\k}{PU}{I}{\81\056}% U+012E
% U+012F LATIN SMALL LETTER I WITH OGONEK; iogonek
\DeclareTextCompositeCommand{\k}{PU}{i}{\81\057}% U+012F
\DeclareTextCompositeCommand{\k}{PU}{\i}{\81\057}% U+012F
% U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE; Idot, Idotaccent
\DeclareTextCompositeCommand{\.}{PU}{I}{\81\060}% U+0130
% U+0131 LATIN SMALL LETTER DOTLESS I; dotlessi
\DeclareTextCommand{\i}{PU}{\81\061}% U+0131
% U+0132 LATIN CAPITAL LIGATURE IJ; IJ
\DeclareTextCommand{\IJ}{PU}{\81\062}% U+0132
% U+0133 LATIN SMALL LIGATURE IJ; ij
\DeclareTextCommand{\ij}{PU}{\81\063}% U+0133
% U+0134 LATIN CAPITAL LETTER J WITH CIRCUMFLEX; Jcircumflex
\DeclareTextCompositeCommand{\^}{PU}{J}{\81\064}% U+0134
% U+0135 LATIN SMALL LETTER J WITH CIRCUMFLEX; jcircumflex
\DeclareTextCompositeCommand{\^}{PU}{j}{\81\065}% U+0135
\DeclareTextCompositeCommand{\^}{PU}{\j}{\81\065}% U+0135
% U+0136 LATIN CAPITAL LETTER K WITH CEDILLA; Kcedilla, Kcommaaccent
\DeclareTextCompositeCommand{\c}{PU}{K}{\81\066}% U+0136
% U+0137 LATIN SMALL LETTER K WITH CEDILLA; kcedilla, kcommaaccent
\DeclareTextCompositeCommand{\c}{PU}{k}{\81\067}% U+0137
% \end{macrocode}
% The canonical name of U+0138, small letter kra, would be
% \cs{textkgreenlandic}, following the glyph naming convention.
% However |latex/base/inputenc.dtx| has choosen \cs{textkra}.
% \begin{macrocode}
% U+0138 LATIN SMALL LETTER KRA; kgreenlandic
\DeclareTextCommand{\textkra}{PU}{\81\070}% U+0138
% U+0139 LATIN CAPITAL LETTER L WITH ACUTE; Lacute
\DeclareTextCompositeCommand{\'}{PU}{L}{\81\071}% U+0139
% U+013A LATIN SMALL LETTER L WITH ACUTE; lacute
\DeclareTextCompositeCommand{\'}{PU}{l}{\81\072}% U+013A
% U+013B LATIN CAPITAL LETTER L WITH CEDILLA; Lcedilla, Lcommaaccent
\DeclareTextCompositeCommand{\c}{PU}{L}{\81\073}% U+013B
% U+013C LATIN SMALL LETTER L WITH CEDILLA; lcedilla, lcommaaccent
\DeclareTextCompositeCommand{\c}{PU}{l}{\81\074}% U+013C
% U+013D LATIN CAPITAL LETTER L WITH CARON; Lcaron
\DeclareTextCompositeCommand{\v}{PU}{L}{\81\075}% U+013D
% U+013E LATIN SMALL LETTER L WITH CARON; lcaron
\DeclareTextCompositeCommand{\v}{PU}{l}{\81\076}% U+013E
% \end{macrocode}
% There seems to be no variants of letters `L' and `l' with
% a dot above (reasonable). Therefore the \cs{.} accent
% is reused instead of making a separate accent macro
% \cs{textmiddledot}.
% \begin{macrocode}
% U+013F LATIN CAPITAL LETTER L WITH MIDDLE DOT; Ldot, Ldotaccent
\DeclareTextCompositeCommand{\.}{PU}{L}{\81\077}% U+013F
% U+0140 LATIN SMALL LETTER L WITH MIDDLE DOT; ldot, ldotaccent
\DeclareTextCompositeCommand{\.}{PU}{l}{\81\100}% U+0140
% U+0141 LATIN CAPITAL LETTER L WITH STROKE; Lslash
\DeclareTextCommand{\L}{PU}{\81\101}% U+0141
% U+0142 LATIN SMALL LETTER L WITH STROKE; lslash
\DeclareTextCommand{\l}{PU}{\81\102}% U+0142
% U+0143 LATIN CAPITAL LETTER N WITH ACUTE; Nacute
\DeclareTextCompositeCommand{\'}{PU}{N}{\81\103}% U+0143
% U+0144 LATIN SMALL LETTER N WITH ACUTE; nacute
\DeclareTextCompositeCommand{\'}{PU}{n}{\81\104}% U+0144
% U+0145 LATIN CAPITAL LETTER N WITH CEDILLA; Ncedilla, Ncommaaccent
\DeclareTextCompositeCommand{\c}{PU}{N}{\81\105}% U+0145
% U+0146 LATIN SMALL LETTER N WITH CEDILLA; ncedilla, ncommaaccent
\DeclareTextCompositeCommand{\c}{PU}{n}{\81\106}% U+0146
% U+0147 LATIN CAPITAL LETTER N WITH CARON; Ncaron
\DeclareTextCompositeCommand{\v}{PU}{N}{\81\107}% U+0147
% U+0148 LATIN SMALL LETTER N WITH CARON; ncaron
\DeclareTextCompositeCommand{\v}{PU}{n}{\81\110}% U+0148
% U+0149 LATIN SMALL LETTER N PRECEDED BY APOSTROPHE; napostrophe, quoterightn
\DeclareTextCommand{\textnapostrophe}{PU}{\81\111}% U+0149
% U+014A LATIN CAPITAL LETTER ENG; Eng
\DeclareTextCommand{\NG}{PU}{\81\112}% U+014A
% U+014B LATIN SMALL LETTER ENG; eng
\DeclareTextCommand{\ng}{PU}{\81\113}% U+014B
% U+014C LATIN CAPITAL LETTER O WITH MACRON; Omacron
\DeclareTextCompositeCommand{\=}{PU}{O}{\81\114}% U+014C
% U+014D LATIN SMALL LETTER O WITH MACRON; omacron
\DeclareTextCompositeCommand{\=}{PU}{o}{\81\115}% U+014D
% U+014E LATIN CAPITAL LETTER O WITH BREVE; Obreve
\DeclareTextCompositeCommand{\u}{PU}{O}{\81\116}% U+014E
% U+014F LATIN SMALL LETTER O WITH BREVE; obreve
\DeclareTextCompositeCommand{\u}{PU}{o}{\81\117}% U+014F
% U+0150 LATIN CAPITAL LETTER O WITH DOUBLE ACUTE; Odblacute, Ohungarumlaut
\DeclareTextCompositeCommand{\H}{PU}{O}{\81\120}% U+0150
% U+0151 LATIN SMALL LETTER O WITH DOUBLE ACUTE; odblacute, ohungarumlaut
\DeclareTextCompositeCommand{\H}{PU}{o}{\81\121}% U+0151
% U+0152 LATIN CAPITAL LIGATURE OE; OE
\DeclareTextCommand{\OE}{PU}{\81\122}% U+0152
% U+0153 LATIN SMALL LIGATURE OE; oe
\DeclareTextCommand{\oe}{PU}{\81\123}% U+0153
% U+0154 LATIN CAPITAL LETTER R WITH ACUTE; Racute
\DeclareTextCompositeCommand{\'}{PU}{R}{\81\124}% U+0154
% U+0155 LATIN SMALL LETTER R WITH ACUTE; racute
\DeclareTextCompositeCommand{\'}{PU}{r}{\81\125}% U+0155
% U+0156 LATIN CAPITAL LETTER R WITH CEDILLA; Rcedilla, Rcommaaccent
\DeclareTextCompositeCommand{\c}{PU}{R}{\81\126}% U+0156
% U+0157 LATIN SMALL LETTER R WITH CEDILLA; rcedilla, rcommaaccent
\DeclareTextCompositeCommand{\c}{PU}{r}{\81\127}% U+0157
% U+0158 LATIN CAPITAL LETTER R WITH CARON; Rcaron
\DeclareTextCompositeCommand{\v}{PU}{R}{\81\130}% U+0158
% U+0159 LATIN SMALL LETTER R WITH CARON; rcaron
\DeclareTextCompositeCommand{\v}{PU}{r}{\81\131}% U+0159
% U+015A LATIN CAPITAL LETTER S WITH ACUTE; Sacute
\DeclareTextCompositeCommand{\'}{PU}{S}{\81\132}% U+015A
% U+015B LATIN SMALL LETTER S WITH ACUTE; sacute
\DeclareTextCompositeCommand{\'}{PU}{s}{\81\133}% U+015B
% U+015C LATIN CAPITAL LETTER S WITH CIRCUMFLEX; Scircumflex
\DeclareTextCompositeCommand{\^}{PU}{S}{\81\134}% U+015C
% U+015D LATIN SMALL LETTER S WITH CIRCUMFLEX; scircumflex
\DeclareTextCompositeCommand{\^}{PU}{s}{\81\135}% U+015D
% U+015E LATIN CAPITAL LETTER S WITH CEDILLA; Scedilla
\DeclareTextCompositeCommand{\c}{PU}{S}{\81\136}% U+015E
% U+015F LATIN SMALL LETTER S WITH CEDILLA; scedilla
\DeclareTextCompositeCommand{\c}{PU}{s}{\81\137}% U+015F
% U+0160 LATIN CAPITAL LETTER S WITH CARON; Scaron
\DeclareTextCompositeCommand{\v}{PU}{S}{\81\140}% U+0160
% U+0161 LATIN SMALL LETTER S WITH CARON; scaron
\DeclareTextCompositeCommand{\v}{PU}{s}{\81\141}% U+0161
% U+0162 LATIN CAPITAL LETTER T WITH CEDILLA; Tcedilla, Tcommaaccent
\DeclareTextCompositeCommand{\c}{PU}{T}{\81\142}% U+0162
% U+0163 LATIN SMALL LETTER T WITH CEDILLA; tcedilla, tcommaaccent
\DeclareTextCompositeCommand{\c}{PU}{t}{\81\143}% U+0163
% U+0164 LATIN CAPITAL LETTER T WITH CARON; Tcaron
\DeclareTextCompositeCommand{\v}{PU}{T}{\81\144}% U+0164
% U+0165 LATIN SMALL LETTER T WITH CARON; tcaron
\DeclareTextCompositeCommand{\v}{PU}{t}{\81\145}% U+0165
% U+0166 LATIN CAPITAL LETTER T WITH STROKE; Tbar
\DeclareTextCommand{\textTslash}{PU}{\81\146}% U+0166
% U+0167 LATIN SMALL LETTER T WITH STROKE; tbar
\DeclareTextCommand{\texttslash}{PU}{\81\147}% U+0167
% U+0168 LATIN CAPITAL LETTER U WITH TILDE; Utilde
\DeclareTextCompositeCommand{\~}{PU}{U}{\81\150}% U+0168
% U+0169 LATIN SMALL LETTER U WITH TILDE; utilde
\DeclareTextCompositeCommand{\~}{PU}{u}{\81\151}% U+0169
% U+016A LATIN CAPITAL LETTER U WITH MACRON; Umacron
\DeclareTextCompositeCommand{\=}{PU}{U}{\81\152}% U+016A
% U+016B LATIN SMALL LETTER U WITH MACRON; umacron
\DeclareTextCompositeCommand{\=}{PU}{u}{\81\153}% U+016B
% U+016C LATIN CAPITAL LETTER U WITH BREVE; Ubreve
\DeclareTextCompositeCommand{\u}{PU}{U}{\81\154}% U+016C
% U+016D LATIN SMALL LETTER U WITH BREVE; ubreve
\DeclareTextCompositeCommand{\u}{PU}{u}{\81\155}% U+016D
% U+016E LATIN CAPITAL LETTER U WITH RING ABOVE; Uring
\DeclareTextCompositeCommand{\r}{PU}{U}{\81\156}% U+016E
% U+016F LATIN SMALL LETTER U WITH RING ABOVE; uring
\DeclareTextCompositeCommand{\r}{PU}{u}{\81\157}% U+016F
% U+0170 LATIN CAPITAL LETTER U WITH DOUBLE ACUTE; Udblacute, Uhungarumlaut
\DeclareTextCompositeCommand{\H}{PU}{U}{\81\160}% U+0170
% U+0171 LATIN SMALL LETTER U WITH DOUBLE ACUTE; udblacute, uhungarumlaut
\DeclareTextCompositeCommand{\H}{PU}{u}{\81\161}% U+0171
% U+0172 LATIN CAPITAL LETTER U WITH OGONEK; Uogonek
\DeclareTextCompositeCommand{\k}{PU}{U}{\81\162}% U+0172
% U+0173 LATIN SMALL LETTER U WITH OGONEK; uogonek
\DeclareTextCompositeCommand{\k}{PU}{u}{\81\163}% U+0173
% U+0174 LATIN CAPITAL LETTER W WITH CIRCUMFLEX; Wcircumflex
\DeclareTextCompositeCommand{\^}{PU}{W}{\81\164}% U+0174
% U+0175 LATIN SMALL LETTER W WITH CIRCUMFLEX; wcircumflex
\DeclareTextCompositeCommand{\^}{PU}{w}{\81\165}% U+0175
% U+0176 LATIN CAPITAL LETTER Y WITH CIRCUMFLEX; Ycircumflex
\DeclareTextCompositeCommand{\^}{PU}{Y}{\81\166}% U+0176
% U+0177 LATIN SMALL LETTER Y WITH CIRCUMFLEX; ycircumflex
\DeclareTextCompositeCommand{\^}{PU}{y}{\81\167}% U+0177
% U+0178 LATIN CAPITAL LETTER Y WITH DIAERESIS; Ydieresis
\DeclareTextCompositeCommand{\"}{PU}{Y}{\81\170}% U+0178
% U+0179 LATIN CAPITAL LETTER Z WITH ACUTE; Zacute
\DeclareTextCompositeCommand{\'}{PU}{Z}{\81\171}% U+0179
% U+017A LATIN SMALL LETTER Z WITH ACUTE; zacute
\DeclareTextCompositeCommand{\'}{PU}{z}{\81\172}% U+017A
% U+017B LATIN CAPITAL LETTER Z WITH DOT ABOVE; Zdot, Zdotaccent
\DeclareTextCompositeCommand{\.}{PU}{Z}{\81\173}% U+017B
% U+017C LATIN SMALL LETTER Z WITH DOT ABOVE; zdot, zdotaccent
\DeclareTextCompositeCommand{\.}{PU}{z}{\81\174}% U+017C
% U+017D LATIN CAPITAL LETTER Z WITH CARON; Zcaron
\DeclareTextCompositeCommand{\v}{PU}{Z}{\81\175}% U+017D
% U+017E LATIN SMALL LETTER Z WITH CARON; zcaron
\DeclareTextCompositeCommand{\v}{PU}{z}{\81\176}% U+017E
% U+017F LATIN SMALL LETTER LONG S; longs, slong
\DeclareTextCommand{\textlongs}{PU}{\81\177}% U+017F
% \end{macrocode}
%
% \subsubsection{Latin Extended-B: U+0180 to U+024F}
%
% \begin{macrocode}
% U+0192 LATIN SMALL LETTER F WITH HOOK; florin
\DeclareTextCommand{\textflorin}{PU}{\81\222}% U+0192
% U+01CD LATIN CAPITAL LETTER A WITH CARON; Acaron
\DeclareTextCompositeCommand{\v}{PU}{A}{\81\315}% U+01CD
% U+01CE LATIN SMALL LETTER A WITH CARON; acaron
\DeclareTextCompositeCommand{\v}{PU}{a}{\81\316}% U+01CE
% U+01CF LATIN CAPITAL LETTER I WITH CARON; Icaron
\DeclareTextCompositeCommand{\v}{PU}{I}{\81\317}% U+01CF
% U+01D0 LATIN SMALL LETTER I WITH CARON; icaron
\DeclareTextCompositeCommand{\v}{PU}{\i}{\81\320}% U+01D0
\DeclareTextCompositeCommand{\v}{PU}{i}{\81\320}% U+01D0
% U+01D1 LATIN CAPITAL LETTER O WITH CARON; Ocaron
\DeclareTextCompositeCommand{\v}{PU}{O}{\81\321}% U+01D1
% U+01D2 LATIN SMALL LETTER O WITH CARON; ocaron
\DeclareTextCompositeCommand{\v}{PU}{o}{\81\322}% U+01D2
% U+01D3 LATIN CAPITAL LETTER U WITH CARON; Ucaron
\DeclareTextCompositeCommand{\v}{PU}{U}{\81\323}% U+01D3
% U+01D4 LATIN SMALL LETTER U WITH CARON; ucaron
\DeclareTextCompositeCommand{\v}{PU}{u}{\81\324}% U+01D4
% U+01E4 LATIN CAPITAL LETTER G WITH STROKE; Gstroke
\DeclareTextCommand{\textGslash}{PU}{\81\344}% U+01E4
% U+01E5 LATIN SMALL LETTER G WITH STROKE; gstroke
\DeclareTextCommand{\textgslash}{PU}{\81\345}% U+01E5
% U+01E6 LATIN CAPITAL LETTER G WITH CARON; Gcaron
\DeclareTextCompositeCommand{\v}{PU}{G}{\81\346}% U+01E6
% U+01E7 LATIN SMALL LETTER G WITH CARON; gcaron
\DeclareTextCompositeCommand{\v}{PU}{g}{\81\347}% U+01E7
% U+01E8 LATIN CAPITAL LETTER K WITH CARON; Kcaron
\DeclareTextCompositeCommand{\v}{PU}{K}{\81\350}% U+01E8
% U+01E9 LATIN SMALL LETTER K WITH CARON; kcaron
\DeclareTextCompositeCommand{\v}{PU}{k}{\81\351}% U+01E9
% U+01EA LATIN CAPITAL LETTER O WITH OGONEK; Oogonek
\DeclareTextCompositeCommand{\k}{PU}{O}{\81\352}% U+01EA
% U+01EB LATIN SMALL LETTER O WITH OGONEK; oogonek
\DeclareTextCompositeCommand{\k}{PU}{o}{\81\353}% U+01EB
% U+01F0 LATIN SMALL LETTER J WITH CARON; jcaron
\DeclareTextCompositeCommand{\v}{PU}{\j}{\81\360}% U+01F0
\DeclareTextCompositeCommand{\v}{PU}{j}{\81\360}% U+01F0
% U+01F4 LATIN CAPITAL LETTER G WITH ACUTE; Gacute
\DeclareTextCompositeCommand{\'}{PU}{G}{\81\364}% U+01F4
% U+01F5 LATIN SMALL LETTER G WITH ACUTE; gacute
\DeclareTextCompositeCommand{\'}{PU}{g}{\81\365}% U+01F5
% U+01F8 LATIN CAPITAL LETTER N WITH GRAVE
\DeclareTextCompositeCommand{\`}{PU}{N}{\81\370}% U+01F8
% U+01F9 LATIN SMALL LETTER N WITH GRAVE
\DeclareTextCompositeCommand{\`}{PU}{n}{\81\371}% U+01F9
% U+01FC LATIN CAPITAL LETTER AE WITH ACUTE; AEacute
\DeclareTextCompositeCommand{\'}{PU}{\AE}{\81\374}% U+01FC
% U+01FD LATIN SMALL LETTER AE WITH ACUTE; aeacute
\DeclareTextCompositeCommand{\'}{PU}{\ae}{\81\375}% U+01FD
% U+01FE LATIN CAPITAL LETTER O WITH STROKE AND ACUTE; *Oslashacute, Ostrokeacut
\DeclareTextCompositeCommand{\'}{PU}{\O}{\81\376}% U+01FE
% U+01FF LATIN SMALL LETTER O WITH STROKE AND ACUTE; *oslashacute, ostrokeacute
\DeclareTextCompositeCommand{\'}{PU}{\o}{\81\377}% U+01FF
% U+0200 LATIN CAPITAL LETTER A WITH DOUBLE GRAVE; Adblgrave
\DeclareTextCompositeCommand{\G}{PU}{A}{\82\000}% U+0200
% U+0201 LATIN SMALL LETTER A WITH DOUBLE GRAVE; adblgrave
\DeclareTextCompositeCommand{\G}{PU}{a}{\82\001}% U+0201
% U+0204 LATIN CAPITAL LETTER E WITH DOUBLE GRAVE; Edblgrave
\DeclareTextCompositeCommand{\G}{PU}{E}{\82\004}% U+0204
% U+0205 LATIN SMALL LETTER E WITH DOUBLE GRAVE; edblgrave
\DeclareTextCompositeCommand{\G}{PU}{e}{\82\005}% U+0205
% U+0208 LATIN CAPITAL LETTER I WITH DOUBLE GRAVE; Idblgrave
\DeclareTextCompositeCommand{\G}{PU}{I}{\82\010}% U+0208
% U+0209 LATIN SMALL LETTER I WITH DOUBLE GRAVE; idblgrave
\DeclareTextCompositeCommand{\G}{PU}{\i}{\82\011}% U+0209
\DeclareTextCompositeCommand{\G}{PU}{i}{\82\011}% U+0209
% U+020C LATIN CAPITAL LETTER O WITH DOUBLE GRAVE; Odblgrave
\DeclareTextCompositeCommand{\G}{PU}{O}{\82\014}% U+020C
% U+020D LATIN SMALL LETTER O WITH DOUBLE GRAVE; odblgrave
\DeclareTextCompositeCommand{\G}{PU}{o}{\82\015}% U+020D
% U+0210 LATIN CAPITAL LETTER R WITH DOUBLE GRAVE; Rdblgrave
\DeclareTextCompositeCommand{\G}{PU}{R}{\82\020}% U+0210
% U+0211 LATIN SMALL LETTER R WITH DOUBLE GRAVE; rdblgrave
\DeclareTextCompositeCommand{\G}{PU}{r}{\82\021}% U+0211
% U+0214 LATIN CAPITAL LETTER U WITH DOUBLE GRAVE; Udblgrave
\DeclareTextCompositeCommand{\G}{PU}{U}{\82\024}% U+0214
% U+0215 LATIN SMALL LETTER U WITH DOUBLE GRAVE; udblgrave
\DeclareTextCompositeCommand{\G}{PU}{u}{\82\025}% U+0215
% U+021E LATIN CAPITAL LETTER H WITH CARON
\DeclareTextCompositeCommand{\v}{PU}{H}{\82\036}% U+021E
% U+021F LATIN SMALL LETTER H WITH CARON
\DeclareTextCompositeCommand{\v}{PU}{h}{\82\037}% U+021F
% U+0226 LATIN CAPITAL LETTER A WITH DOT ABOVE
\DeclareTextCompositeCommand{\.}{PU}{A}{\82\046}% U+0226
% U+0227 LATIN SMALL LETTER A WITH DOT ABOVE
\DeclareTextCompositeCommand{\.}{PU}{a}{\82\047}% U+0227
% U+0228 LATIN CAPITAL LETTER E WITH CEDILLA
\DeclareTextCompositeCommand{\c}{PU}{E}{\82\050}% U+0228
% U+0229 LATIN SMALL LETTER E WITH CEDILLA
\DeclareTextCompositeCommand{\c}{PU}{e}{\82\051}% U+0229
% U+022E LATIN CAPITAL LETTER O WITH DOT ABOVE
\DeclareTextCompositeCommand{\.}{PU}{O}{\82\056}% U+022E
% U+022F LATIN SMALL LETTER O WITH DOT ABOVE
\DeclareTextCompositeCommand{\.}{PU}{o}{\82\057}% U+022F
% U+0232 LATIN CAPITAL LETTER Y WITH MACRON
\DeclareTextCompositeCommand{\=}{PU}{Y}{\82\062}% U+0232
% U+0233 LATIN SMALL LETTER Y WITH MACRON
\DeclareTextCompositeCommand{\=}{PU}{y}{\82\063}% U+0233
% U+0237 LATIN SMALL LETTER DOTLESS J
\DeclareTextCommand{\j}{PU}{\82\067}% U+0237
% \end{macrocode}
%
% \subsubsection{Spacing Modifier Letters: U+02B0 to U+02FF}
%
% \begin{macrocode}
% U+02C7 CARON; caron
\DeclareTextCommand{\textasciicaron}{PU}{\82\307}% U+02C7
% U+02D8 BREVE; breve
\DeclareTextCommand{\textasciibreve}{PU}{\82\330}% U+02D8
% U+02D9 DOT ABOVE; dotaccent
\DeclareTextCommand{\textdotaccent}{PU}{\82\331}% U+02D9
% U+02DA RING ABOVE; ring
\DeclareTextCommand{\textring}{PU}{\82\332}% U+02DA
% U+02DB OGONEK; ogonek
\DeclareTextCommand{\textogonek}{PU}{\82\333}% U+02DB
% U+02DC SMALL TILDE; ilde, *tilde
\DeclareTextCommand{\texttilde}{PU}{\82\334}% U+02DC
% U+02DD DOUBLE ACUTE ACCENT; hungarumlaut
\DeclareTextCommand{\texthungarumlaut}{PU}{\82\335}% U+02DD
\DeclareTextCommand{\textacutedbl}{PU}{\texthungarumlaut}% U+02DD
% U+02F5 MODIFIER LETTER MIDDLE DOUBLE GRAVE ACCENT
\DeclareTextCommand{\textgravedbl}{PU}{\82\365}% U+02F5
% U+02F7 MODIFIER LETTER LOW TILDE
\DeclareTextCommand{\texttildelow}{PU}{\82\367}% U+02F7
% \end{macrocode}
%
% \subsubsection{Combining Diacritical Marks: U+0300 to U+036F}
%
% \begin{macrocode}
% U+030F COMBINING DOUBLE GRAVE ACCENT; dblgravecmb
\DeclareTextCommand{\textdoublegrave}{PU}{ \83\017}% U+030F
% U+0311 COMBINING INVERTED BREVE; breveinvertedcmb
\DeclareTextCommand{\textnewtie}{PU}{ \83\021}% U+0311
% U+0323 COMBINING DOT BELOW; dotbelowcmb, *dotbelowcomb
\DeclareTextCommand{\textdotbelow}{PU}{ \83\043}% U+0323
% U+0331 COMBINING MACRON BELOW; macronbelowcmb
\DeclareTextCommand{\textmacronbelow}{PU}{ \83\061}% U+0331
% U+0361 COMBINING DOUBLE INVERTED BREVE; breveinverteddoublecmb
\DeclareTextCommand{\texttie}{PU}{ \83\141}% U+0361
% \end{macrocode}
%
% \subsubsection{Greek and Coptic: U+0370 to U+03FF}
%
% \begin{macrocode}
% U+0374 GREEK NUMERAL SIGN; numeralsigngreek
\DeclareTextCommand{\textnumeralsigngreek}{PU}{\83\164}% U+0374
% U+0375 GREEK LOWER NUMERAL SIGN; numeralsignlowergreek
\DeclareTextCommand{\textnumeralsignlowergreek}{PU}{\83\165}% U+0375
% U+0386 GREEK CAPITAL LETTER ALPHA WITH TONOS; Alphatonos
\DeclareTextCompositeCommand{\'}{PU}{\textAlpha}{\83\206}% U+0386
% U+0388 GREEK CAPITAL LETTER EPSILON WITH TONOS; Epsilontonos
\DeclareTextCompositeCommand{\'}{PU}{\textEpsilon}{\83\210}% U+0388
% U+0389 GREEK CAPITAL LETTER ETA WITH TONOS; Etatonos
\DeclareTextCompositeCommand{\'}{PU}{\textEta}{\83\211}% U+0389
% U+038A GREEK CAPITAL LETTER IOTA WITH TONOS; Iotatonos
\DeclareTextCompositeCommand{\'}{PU}{\textIota}{\83\212}% U+038A
% U+038C GREEK CAPITAL LETTER OMICRON WITH TONOS; Omicrontonos
\DeclareTextCompositeCommand{\'}{PU}{\textOmicron}{\83\214}% U+038C
% U+038E GREEK CAPITAL LETTER UPSILON WITH TONOS; Upsilontonos
\DeclareTextCompositeCommand{\'}{PU}{\textUpsilon}{\83\216}% U+038E
% U+038F GREEK CAPITAL LETTER OMEGA WITH TONOS; Omegatonos
\DeclareTextCompositeCommand{\'}{PU}{\textOmega}{\83\217}% U+038F
% U+0390 GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS; iotadieresistonos
\DeclareTextCompositeCommand{\'}{PU}{\textIotadieresis}{\83\220}% U+0390
% U+0391 GREEK CAPITAL LETTER ALPHA; Alpha
\DeclareTextCommand{\textAlpha}{PU}{\83\221}% U+0391
% U+0392 GREEK CAPITAL LETTER BETA; Beta
\DeclareTextCommand{\textBeta}{PU}{\83\222}% U+0392
% U+0393 GREEK CAPITAL LETTER GAMMA; Gamma
\DeclareTextCommand{\textGamma}{PU}{\83\223}% U+0393
% U+0394 GREEK CAPITAL LETTER DELTA; Deltagreek, *Delta
\DeclareTextCommand{\textDelta}{PU}{\83\224}% U+0394
% U+0395 GREEK CAPITAL LETTER EPSILON; Epsilon
\DeclareTextCommand{\textEpsilon}{PU}{\83\225}% U+0395
% U+0396 GREEK CAPITAL LETTER ZETA; Zeta
\DeclareTextCommand{\textZeta}{PU}{\83\226}% U+0396
% U+0397 GREEK CAPITAL LETTER ETA; Eta
\DeclareTextCommand{\textEta}{PU}{\83\227}% U+0397
% U+0398 GREEK CAPITAL LETTER THETA; Theta
\DeclareTextCommand{\textTheta}{PU}{\83\230}% U+0398
% U+0399 GREEK CAPITAL LETTER IOTA; Iota
\DeclareTextCommand{\textIota}{PU}{\83\231}% U+0399
% U+039A GREEK CAPITAL LETTER KAPPA; Kappa
\DeclareTextCommand{\textKappa}{PU}{\83\232}% U+039A
% U+039B GREEK CAPITAL LETTER LAMDA; Lambda
\DeclareTextCommand{\textLambda}{PU}{\83\233}% U+039B
% U+039C GREEK CAPITAL LETTER MU; Mu
\DeclareTextCommand{\textMu}{PU}{\83\234}% U+039C
% U+039D GREEK CAPITAL LETTER NU; Nu
\DeclareTextCommand{\textNu}{PU}{\83\235}% U+039D
% U+039E GREEK CAPITAL LETTER XI; Xi
\DeclareTextCommand{\textXi}{PU}{\83\236}% U+039E
% U+039F GREEK CAPITAL LETTER OMICRON; Omicron
\DeclareTextCommand{\textOmicron}{PU}{\83\237}% U+039F
% U+03A0 GREEK CAPITAL LETTER PI; Pi
\DeclareTextCommand{\textPi}{PU}{\83\240}% U+03A0
% U+03A1 GREEK CAPITAL LETTER RHO; Rho
\DeclareTextCommand{\textRho}{PU}{\83\241}% U+03A1
% U+03A3 GREEK CAPITAL LETTER SIGMA; Sigma
\DeclareTextCommand{\textSigma}{PU}{\83\243}% U+03A3
% U+03A4 GREEK CAPITAL LETTER TAU; Tau
\DeclareTextCommand{\textTau}{PU}{\83\244}% U+03A4
% U+03A5 GREEK CAPITAL LETTER UPSILON; Upsilon
\DeclareTextCommand{\textUpsilon}{PU}{\83\245}% U+03A5
% U+03A6 GREEK CAPITAL LETTER PHI; Phi
\DeclareTextCommand{\textPhi}{PU}{\83\246}% U+03A6
% U+03A7 GREEK CAPITAL LETTER CHI; Chi
\DeclareTextCommand{\textChi}{PU}{\83\247}% U+03A7
% U+03A8 GREEK CAPITAL LETTER PSI; Psi
\DeclareTextCommand{\textPsi}{PU}{\83\250}% U+03A8
% U+03A9 GREEK CAPITAL LETTER OMEGA; Omegagreek, *Omega
\DeclareTextCommand{\textOmega}{PU}{\83\251}% U+03A9
% U+03AA GREEK CAPITAL LETTER IOTA WITH DIALYTIKA; Iotadieresis
\DeclareTextCommand{\textIotadieresis}{PU}{\83\252}% U+03AA
\DeclareTextCompositeCommand{\"}{PU}{\textIota}{\83\252}% U+03AA
% U+03AB GREEK CAPITAL LETTER UPSILON WITH DIALYTIKA; Upsilondieresis
\DeclareTextCompositeCommand{\"}{PU}{\textUpsilon}{\83\253}% U+03AB
% U+03AC GREEK SMALL LETTER ALPHA WITH TONOS; alphatonos
\DeclareTextCompositeCommand{\'}{PU}{\textalpha}{\83\254}% U+03AC
% U+03AD GREEK SMALL LETTER EPSILON WITH TONOS; epsilontonos
\DeclareTextCompositeCommand{\'}{PU}{\textepsilon}{\83\255}% U+03AD
% U+03AE GREEK SMALL LETTER ETA WITH TONOS; etatonos
\DeclareTextCompositeCommand{\'}{PU}{\texteta}{\83\256}% U+03AE
% U+03AF GREEK SMALL LETTER IOTA WITH TONOS; iotatonos
\DeclareTextCompositeCommand{\'}{PU}{\textiota}{\83\257}% U+03AF
% U+03B0 GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS; upsilondieresisto
\DeclareTextCompositeCommand{\"}{PU}{\textupsilonacute}{\83\260}% U+03B0
% U+03B1 GREEK SMALL LETTER ALPHA; alpha
\DeclareTextCommand{\textalpha}{PU}{\83\261}% U+03B1
% U+03B2 GREEK SMALL LETTER BETA; beta
\DeclareTextCommand{\textbeta}{PU}{\83\262}% U+03B2
% U+03B3 GREEK SMALL LETTER GAMMA; gamma
\DeclareTextCommand{\textgamma}{PU}{\83\263}% U+03B3
% U+03B4 GREEK SMALL LETTER DELTA; delta
\DeclareTextCommand{\textdelta}{PU}{\83\264}% U+03B4
% U+03B5 GREEK SMALL LETTER EPSILON; epsilon
\DeclareTextCommand{\textepsilon}{PU}{\83\265}% U+03B5
% U+03B6 GREEK SMALL LETTER ZETA; zeta
\DeclareTextCommand{\textzeta}{PU}{\83\266}% U+03B6
% U+03B7 GREEK SMALL LETTER ETA; eta
\DeclareTextCommand{\texteta}{PU}{\83\267}% U+03B7
% U+03B8 GREEK SMALL LETTER THETA; theta
\DeclareTextCommand{\texttheta}{PU}{\83\270}% U+03B8
% U+03B9 GREEK SMALL LETTER IOTA; iota
\DeclareTextCommand{\textiota}{PU}{\83\271}% U+03B9
% U+03BA GREEK SMALL LETTER KAPPA; kappa
\DeclareTextCommand{\textkappa}{PU}{\83\272}% U+03BA
% U+03BB GREEK SMALL LETTER LAMDA; lambda
\DeclareTextCommand{\textlambda}{PU}{\83\273}% U+03BB
% U+03BC GREEK SMALL LETTER MU; mugreek, *mu
\DeclareTextCommand{\textmugreek}{PU}{\83\274}% U+03BC
% U+03BD GREEK SMALL LETTER NU; nu
\DeclareTextCommand{\textnu}{PU}{\83\275}% U+03BD
% U+03BE GREEK SMALL LETTER XI; xi
\DeclareTextCommand{\textxi}{PU}{\83\276}% U+03BE
% U+03BF GREEK SMALL LETTER OMICRON; omicron
\DeclareTextCommand{\textomicron}{PU}{\83\277}% U+03BF
% U+03C0 GREEK SMALL LETTER PI; pi
\DeclareTextCommand{\textpi}{PU}{\83\300}% U+03C0
% U+03C1 GREEK SMALL LETTER RHO; rho
\DeclareTextCommand{\textrho}{PU}{\83\301}% U+03C1
% U+03C2 GREEK SMALL LETTER FINAL SIGMA; *sigma1, sigmafinal
\DeclareTextCommand{\textvarsigma}{PU}{\83\302}% U+03C2
% U+03C3 GREEK SMALL LETTER SIGMA; sigma
\DeclareTextCommand{\textsigma}{PU}{\83\303}% U+03C3
% U+03C4 GREEK SMALL LETTER TAU; tau
\DeclareTextCommand{\texttau}{PU}{\83\304}% U+03C4
% U+03C5 GREEK SMALL LETTER UPSILON; upsilon
\DeclareTextCommand{\textupsilon}{PU}{\83\305}% U+03C5
% U+03C6 GREEK SMALL LETTER PHI; phi
\DeclareTextCommand{\textphi}{PU}{\83\306}% U+03C6
% U+03C7 GREEK SMALL LETTER CHI; chi
\DeclareTextCommand{\textchi}{PU}{\83\307}% U+03C7
% U+03C8 GREEK SMALL LETTER PSI; psi
\DeclareTextCommand{\textpsi}{PU}{\83\310}% U+03C8
% U+03C9 GREEK SMALL LETTER OMEGA; omega
\DeclareTextCommand{\textomega}{PU}{\83\311}% U+03C9
% U+03CA GREEK SMALL LETTER IOTA WITH DIALYTIKA; iotadieresis
\DeclareTextCompositeCommand{\"}{PU}{\textiota}{\83\312}% U+03CA
% U+03CB GREEK SMALL LETTER UPSILON WITH DIALYTIKA; upsilondieresis
\DeclareTextCompositeCommand{\"}{PU}{\textupsilon}{\83\313}% U+03CB
% U+03CC GREEK SMALL LETTER OMICRON WITH TONOS; omicrontonos
\DeclareTextCompositeCommand{\'}{PU}{\textomicron}{\83\314}% U+03CC
% U+03CD GREEK SMALL LETTER UPSILON WITH TONOS; upsilontonos
\DeclareTextCommand{\textupsilonacute}{PU}{\83\315}% U+03CD
\DeclareTextCompositeCommand{\'}{PU}{\textupsilon}{\83\315}% U+03CD
% U+03CE GREEK SMALL LETTER OMEGA WITH TONOS; omegatonos
\DeclareTextCompositeCommand{\'}{PU}{\textomega}{\83\316}% U+03CE
% U+03DA GREEK LETTER STIGMA; Stigmagreek
\DeclareTextCommand{\textStigmagreek}{PU}{\83\332}% U+03DA
% U+03DB GREEK SMALL LETTER STIGMA
\DeclareTextCommand{\textstigmagreek}{PU}{\83\333}% U+03DB
% U+03DC GREEK LETTER DIGAMMA; Digammagreek
\DeclareTextCommand{\textDigammagreek}{PU}{\83\334}% U+03DC
% U+03DD GREEK SMALL LETTER DIGAMMA
\DeclareTextCommand{\textdigammagreek}{PU}{\83\335}% U+03DD
% U+03DE GREEK LETTER KOPPA; Koppagreek
\DeclareTextCommand{\textKoppagreek}{PU}{\83\336}% U+03DE
% U+03DF GREEK SMALL LETTER KOPPA
\DeclareTextCommand{\textkoppagreek}{PU}{\83\337}% U+03DF
% U+03E0 GREEK LETTER SAMPI; Sampigreek
\DeclareTextCommand{\textSampigreek}{PU}{\83\340}% U+03E0
% U+03E1 GREEK SMALL LETTER SAMPI
\DeclareTextCommand{\textsampigreek}{PU}{\83\341}% U+03E1
% \end{macrocode}
%
% \subsubsection{Cyrillic: U+0400 to U+04FF}
%
% Thanks to Vladimir Volovich (\Email{vvv@vvv.vsu.ru}) for
% the help with the Cyrillic glyph names.
% \begin{macrocode}
% U+0400 CYRILLIC CAPITAL LETTER IE WITH GRAVE
\DeclareTextCompositeCommand{\`}{PU}{\CYRE}{\84\000}% U+0400
% U+0401 CYRILLIC CAPITAL LETTER IO; Iocyrillic, *afii10023
\DeclareTextCommand{\CYRYO}{PU}{\84\001}% U+0401
\DeclareTextCompositeCommand{\"}{PU}{\CYRE}{\84\001}% ???
% U+0402 CYRILLIC CAPITAL LETTER DJE; Djecyrillic, *afii10051
\DeclareTextCommand{\CYRDJE}{PU}{\84\002}% U+0402
% U+0403 CYRILLIC CAPITAL LETTER GJE; Gjecyrillic, *afii10052
\DeclareTextCompositeCommand{\'}{PU}{\CYRG}{\84\003}% U+0403
% U+0404 CYRILLIC CAPITAL LETTER UKRAINIAN IE; Ecyrillic, *afii10053
\DeclareTextCommand{\CYRIE}{PU}{\84\004}% U+0404
% U+0405 CYRILLIC CAPITAL LETTER DZE; Dzecyrillic, *afii10054
\DeclareTextCommand{\CYRDZE}{PU}{\84\005}% U+0405
% U+0406 CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I; Icyrillic, *afii10055
\DeclareTextCommand{\CYRII}{PU}{\84\006}% U+0406
% U+0407 CYRILLIC CAPITAL LETTER YI; Yicyrillic, *afii10056
\DeclareTextCommand{\CYRYI}{PU}{\84\007}% U+0407
\DeclareTextCompositeCommand{\"}{PU}{\CYRII}{\84\007}% U+0407
% U+0408 CYRILLIC CAPITAL LETTER JE; Jecyrillic, *afii10057
\DeclareTextCommand{\CYRJE}{PU}{\84\010}% U+0408
% U+0409 CYRILLIC CAPITAL LETTER LJE; Ljecyrillic, *afii10058
\DeclareTextCommand{\CYRLJE}{PU}{\84\011}% U+0409
% U+040A CYRILLIC CAPITAL LETTER NJE; Njecyrillic, *afii10059
\DeclareTextCommand{\CYRNJE}{PU}{\84\012}% U+040A
% U+040B CYRILLIC CAPITAL LETTER TSHE; Tshecyrillic, *afii10060
\DeclareTextCommand{\CYRTSHE}{PU}{\84\013}% U+040B
% U+040C CYRILLIC CAPITAL LETTER KJE; Kjecyrillic, *afii10061
\DeclareTextCompositeCommand{\'}{PU}{\CYRK}{\84\014}% U+040C
% U+040D CYRILLIC CAPITAL LETTER I WITH GRAVE
\DeclareTextCompositeCommand{\`}{PU}{\CYRI}{\84\015}% U+040D
% U+040E CYRILLIC CAPITAL LETTER SHORT U; Ushortcyrillic, *afii10062
\DeclareTextCommand{\CYRUSHRT}{PU}{\84\016}% U+040E
\DeclareTextCompositeCommand{\U}{PU}{\CYRU}{\84\016}% U+040E
% U+040F CYRILLIC CAPITAL LETTER DZHE; Dzhecyrillic, *afii10145
\DeclareTextCommand{\CYRDZHE}{PU}{\84\017}% U+040F
% U+0410 CYRILLIC CAPITAL LETTER A; Acyrillic, *afii10017
\DeclareTextCommand{\CYRA}{PU}{\84\020}% U+0410
% U+0411 CYRILLIC CAPITAL LETTER BE; Becyrillic, *afii10018
\DeclareTextCommand{\CYRB}{PU}{\84\021}% U+0411
% U+0412 CYRILLIC CAPITAL LETTER VE; Vecyrillic, *afii10019
\DeclareTextCommand{\CYRV}{PU}{\84\022}% U+0412
% U+0413 CYRILLIC CAPITAL LETTER GHE; Gecyrillic, *afii10020
\DeclareTextCommand{\CYRG}{PU}{\84\023}% U+0413
% U+0414 CYRILLIC CAPITAL LETTER DE; Decyrillic, *afii10021
\DeclareTextCommand{\CYRD}{PU}{\84\024}% U+0414
% U+0415 CYRILLIC CAPITAL LETTER IE; Iecyrillic, *afii10022
\DeclareTextCommand{\CYRE}{PU}{\84\025}% U+0415
% U+0416 CYRILLIC CAPITAL LETTER ZHE; Zhecyrillic, *afii10024
\DeclareTextCommand{\CYRZH}{PU}{\84\026}% U+0416
% U+0417 CYRILLIC CAPITAL LETTER ZE; Zecyrillic, *afii10025
\DeclareTextCommand{\CYRZ}{PU}{\84\027}% U+0417
% U+0418 CYRILLIC CAPITAL LETTER I; Iicyrillic, *afii10026
\DeclareTextCommand{\CYRI}{PU}{\84\030}% U+0418
% U+0419 CYRILLIC CAPITAL LETTER SHORT I; Iishortcyrillic, *afii10027
\DeclareTextCommand{\CYRISHRT}{PU}{\84\031}% U+0419
\DeclareTextCompositeCommand{\U}{PU}{\CYRI}{\84\031}% U+0419
% U+041A CYRILLIC CAPITAL LETTER KA; Kacyrillic, *afii10028
\DeclareTextCommand{\CYRK}{PU}{\84\032}% U+041A
% U+041B CYRILLIC CAPITAL LETTER EL; Elcyrillic, *afii10029
\DeclareTextCommand{\CYRL}{PU}{\84\033}% U+041B
% U+041C CYRILLIC CAPITAL LETTER EM; Emcyrillic, *afii10030
\DeclareTextCommand{\CYRM}{PU}{\84\034}% U+041C
% U+041D CYRILLIC CAPITAL LETTER EN; Encyrillic, *afii10031
\DeclareTextCommand{\CYRN}{PU}{\84\035}% U+041D
% U+041E CYRILLIC CAPITAL LETTER O; Ocyrillic, *afii10032
\DeclareTextCommand{\CYRO}{PU}{\84\036}% U+041E
% U+041F CYRILLIC CAPITAL LETTER PE; Pecyrillic, *afii10033
\DeclareTextCommand{\CYRP}{PU}{\84\037}% U+041F
% U+0420 CYRILLIC CAPITAL LETTER ER; Ercyrillic, *afii10034
\DeclareTextCommand{\CYRR}{PU}{\84\040}% U+0420
% U+0421 CYRILLIC CAPITAL LETTER ES; Escyrillic, *afii10035
\DeclareTextCommand{\CYRS}{PU}{\84\041}% U+0421
% U+0422 CYRILLIC CAPITAL LETTER TE; Tecyrillic, *afii10036
\DeclareTextCommand{\CYRT}{PU}{\84\042}% U+0422
% U+0423 CYRILLIC CAPITAL LETTER U; Ucyrillic, *afii10037
\DeclareTextCommand{\CYRU}{PU}{\84\043}% U+0423
% U+0424 CYRILLIC CAPITAL LETTER EF; Efcyrillic, *afii10038
\DeclareTextCommand{\CYRF}{PU}{\84\044}% U+0424
% U+0425 CYRILLIC CAPITAL LETTER HA; Khacyrillic, *afii10039
\DeclareTextCommand{\CYRH}{PU}{\84\045}% U+0425
% U+0426 CYRILLIC CAPITAL LETTER TSE; Tsecyrillic, *afii10040
\DeclareTextCommand{\CYRC}{PU}{\84\046}% U+0426
% U+0427 CYRILLIC CAPITAL LETTER CHE; Checyrillic, *afii10041
\DeclareTextCommand{\CYRCH}{PU}{\84\047}% U+0427
% U+0428 CYRILLIC CAPITAL LETTER SHA; Shacyrillic, *afii10042
\DeclareTextCommand{\CYRSH}{PU}{\84\050}% U+0428
% U+0429 CYRILLIC CAPITAL LETTER SHCHA; Shchacyrillic, *afii10043
\DeclareTextCommand{\CYRSHCH}{PU}{\84\051}% U+0429
% U+042A CYRILLIC CAPITAL LETTER HARD SIGN; Hardsigncyrillic, *afii10044
\DeclareTextCommand{\CYRHRDSN}{PU}{\84\052}% U+042A
% U+042B CYRILLIC CAPITAL LETTER YERU; Yericyrillic, *afii10045
\DeclareTextCommand{\CYRERY}{PU}{\84\053}% U+042B
% U+042C CYRILLIC CAPITAL LETTER SOFT SIGN; Softsigncyrillic, *afii10046
\DeclareTextCommand{\CYRSFTSN}{PU}{\84\054}% U+042C
% U+042D CYRILLIC CAPITAL LETTER E; Ereversedcyrillic, *afii10047
\DeclareTextCommand{\CYREREV}{PU}{\84\055}% U+042D
% U+042E CYRILLIC CAPITAL LETTER YU; IUcyrillic, *afii10048
\DeclareTextCommand{\CYRYU}{PU}{\84\056}% U+042E
% U+042F CYRILLIC CAPITAL LETTER YA; IAcyrillic, *afii10049
\DeclareTextCommand{\CYRYA}{PU}{\84\057}% U+042F
% U+0430 CYRILLIC SMALL LETTER A; acyrillic, *afii10065
\DeclareTextCommand{\cyra}{PU}{\84\060}% U+0430
% U+0431 CYRILLIC SMALL LETTER BE; *afii10066, becyrillic
\DeclareTextCommand{\cyrb}{PU}{\84\061}% U+0431
% U+0432 CYRILLIC SMALL LETTER VE; *afii10067, vecyrillic
\DeclareTextCommand{\cyrv}{PU}{\84\062}% U+0432
% U+0433 CYRILLIC SMALL LETTER GHE; *afii10068, gecyrillic
\DeclareTextCommand{\cyrg}{PU}{\84\063}% U+0433
% U+0434 CYRILLIC SMALL LETTER DE; *afii10069, decyrillic
\DeclareTextCommand{\cyrd}{PU}{\84\064}% U+0434
% U+0435 CYRILLIC SMALL LETTER IE; *afii10070, iecyrillic
\DeclareTextCommand{\cyre}{PU}{\84\065}% U+0435
% U+0436 CYRILLIC SMALL LETTER ZHE; *afii10072, zhecyrillic
\DeclareTextCommand{\cyrzh}{PU}{\84\066}% U+0436
% U+0437 CYRILLIC SMALL LETTER ZE; *afii10073, zecyrillic
\DeclareTextCommand{\cyrz}{PU}{\84\067}% U+0437
% U+0438 CYRILLIC SMALL LETTER I; *afii10074, iicyrillic
\DeclareTextCommand{\cyri}{PU}{\84\070}% U+0438
% U+0439 CYRILLIC SMALL LETTER SHORT I; *afii10075, iishortcyrillic
\DeclareTextCommand{\cyrishrt}{PU}{\84\071}% U+0439
\DeclareTextCompositeCommand{\U}{PU}{\cyri}{\84\071}% U+0439
% U+043A CYRILLIC SMALL LETTER KA; *afii10076, kacyrillic
\DeclareTextCommand{\cyrk}{PU}{\84\072}% U+043A
% U+043B CYRILLIC SMALL LETTER EL; *afii10077, elcyrillic
\DeclareTextCommand{\cyrl}{PU}{\84\073}% U+043B
% U+043C CYRILLIC SMALL LETTER EM; *afii10078, emcyrillic
\DeclareTextCommand{\cyrm}{PU}{\84\074}% U+043C
% U+043D CYRILLIC SMALL LETTER EN; *afii10079, encyrillic
\DeclareTextCommand{\cyrn}{PU}{\84\075}% U+043D
% U+043E CYRILLIC SMALL LETTER O; *afii10080, ocyrillic
\DeclareTextCommand{\cyro}{PU}{\84\076}% U+043E
% U+043F CYRILLIC SMALL LETTER PE; *afii10081, pecyrillic
\DeclareTextCommand{\cyrp}{PU}{\84\077}% U+043F
% U+0440 CYRILLIC SMALL LETTER ER; *afii10082, ercyrillic
\DeclareTextCommand{\cyrr}{PU}{\84\100}% U+0440
% U+0441 CYRILLIC SMALL LETTER ES; *afii10083, escyrillic
\DeclareTextCommand{\cyrs}{PU}{\84\101}% U+0441
% U+0442 CYRILLIC SMALL LETTER TE; *afii10084, tecyrillic
\DeclareTextCommand{\cyrt}{PU}{\84\102}% U+0442
% U+0443 CYRILLIC SMALL LETTER U; *afii10085, ucyrillic
\DeclareTextCommand{\cyru}{PU}{\84\103}% U+0443
% U+0444 CYRILLIC SMALL LETTER EF; *afii10086, efcyrillic
\DeclareTextCommand{\cyrf}{PU}{\84\104}% U+0444
% U+0445 CYRILLIC SMALL LETTER HA; *afii10087, khacyrillic
\DeclareTextCommand{\cyrh}{PU}{\84\105}% U+0445
% U+0446 CYRILLIC SMALL LETTER TSE; *afii10088, tsecyrillic
\DeclareTextCommand{\cyrc}{PU}{\84\106}% U+0446
% U+0447 CYRILLIC SMALL LETTER CHE; *afii10089, checyrillic
\DeclareTextCommand{\cyrch}{PU}{\84\107}% U+0447
% U+0448 CYRILLIC SMALL LETTER SHA; *afii10090, shacyrillic
\DeclareTextCommand{\cyrsh}{PU}{\84\110}% U+0448
% U+0449 CYRILLIC SMALL LETTER SHCHA; *afii10091, shchacyrillic
\DeclareTextCommand{\cyrshch}{PU}{\84\111}% U+0449
% U+044A CYRILLIC SMALL LETTER HARD SIGN; *afii10092, hardsigncyrillic
\DeclareTextCommand{\cyrhrdsn}{PU}{\84\112}% U+044A
% U+044B CYRILLIC SMALL LETTER YERU; *afii10093, yericyrillic
\DeclareTextCommand{\cyrery}{PU}{\84\113}% U+044B
% U+044C CYRILLIC SMALL LETTER SOFT SIGN; *afii10094, softsigncyrillic
\DeclareTextCommand{\cyrsftsn}{PU}{\84\114}% U+044C
% U+044D CYRILLIC SMALL LETTER E; *afii10095, ereversedcyrillic
\DeclareTextCommand{\cyrerev}{PU}{\84\115}% U+044D
% U+044E CYRILLIC SMALL LETTER YU; *afii10096, iucyrillic
\DeclareTextCommand{\cyryu}{PU}{\84\116}% U+044E
% U+044F CYRILLIC SMALL LETTER YA; *afii10097, iacyrillic
\DeclareTextCommand{\cyrya}{PU}{\84\117}% U+044F
% U+0450 CYRILLIC SMALL LETTER IE WITH GRAVE
\DeclareTextCompositeCommand{\`}{PU}{\cyre}{\84\120}% U+0450
% U+0451 CYRILLIC SMALL LETTER IO; *afii10071, iocyrillic
\DeclareTextCommand{\cyryo}{PU}{\84\121}% U+0451
\DeclareTextCompositeCommand{\"}{PU}{\cyre}{\84\121}% U+0451
% U+0452 CYRILLIC SMALL LETTER DJE; *afii10099, djecyrillic
\DeclareTextCommand{\cyrdje}{PU}{\84\122}% U+0452
% U+0453 CYRILLIC SMALL LETTER GJE; *afii10100, gjecyrillic
\DeclareTextCompositeCommand{\'}{PU}{\cyrg}{\84\123}% U+0453
% U+0454 CYRILLIC SMALL LETTER UKRAINIAN IE; *afii10101, ecyrillic
\DeclareTextCommand{\cyrie}{PU}{\84\124}% U+0454
% U+0455 CYRILLIC SMALL LETTER DZE; *afii10102, dzecyrillic
\DeclareTextCommand{\cyrdze}{PU}{\84\125}% U+0455
% U+0456 CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I; *afii10103, icyrillic
\DeclareTextCommand{\cyrii}{PU}{\84\126}% U+0456
% U+0457 CYRILLIC SMALL LETTER YI; *afii10104, yicyrillic
\DeclareTextCommand{\cyryi}{PU}{\84\127}% U+0457
\DeclareTextCompositeCommand{\"}{PU}{\cyrii}{\84\127}% U+0457
% U+0458 CYRILLIC SMALL LETTER JE; *afii10105, jecyrillic
\DeclareTextCommand{\cyrje}{PU}{\84\130}% U+0458
% U+0459 CYRILLIC SMALL LETTER LJE; *afii10106, ljecyrillic
\DeclareTextCommand{\cyrlje}{PU}{\84\131}% U+0459
% U+045A CYRILLIC SMALL LETTER NJE; *afii10107, njecyrillic
\DeclareTextCommand{\cyrnje}{PU}{\84\132}% U+045A
% U+045B CYRILLIC SMALL LETTER TSHE; *afii10108, tshecyrillic
\DeclareTextCommand{\cyrtshe}{PU}{\84\133}% U+045B
% U+045C CYRILLIC SMALL LETTER KJE; *afii10109, kjecyrillic
\DeclareTextCompositeCommand{\'}{PU}{\cyrk}{\84\134}% U+045C
% U+045D CYRILLIC SMALL LETTER I WITH GRAVE
\DeclareTextCompositeCommand{\`}{PU}{\cyri}{\84\135}% U+045D
% U+045E CYRILLIC SMALL LETTER SHORT U; *afii10110, ushortcyrillic
\DeclareTextCommand{\cyrushrt}{PU}{\84\136}% U+045E
\DeclareTextCompositeCommand{\U}{PU}{\curu}{\84\136}% U+045E
% U+045F CYRILLIC SMALL LETTER DZHE; *afii10193, dzhecyrillic
\DeclareTextCommand{\cyrdzhe}{PU}{\84\137}% U+045F
% U+0460 CYRILLIC CAPITAL LETTER OMEGA; Omegacyrillic
\DeclareTextCommand{\CYROMEGA}{PU}{\84\140}% U+0460
% U+0461 CYRILLIC SMALL LETTER OMEGA; omegacyrillic
\DeclareTextCommand{\cyromega}{PU}{\84\141}% U+0461
% U+0462 CYRILLIC CAPITAL LETTER YAT; Yatcyrillic, *afii10146
\DeclareTextCommand{\CYRYAT}{PU}{\84\142}% U+0462
% U+0463 CYRILLIC SMALL LETTER YAT; *afii10194, yatcyrillic
\DeclareTextCommand{\cyryat}{PU}{\84\143}% U+0463
% U+0464 CYRILLIC CAPITAL LETTER IOTIFIED E; Eiotifiedcyrillic
\DeclareTextCommand{\CYRIOTE}{PU}{\84\144}% U+0464
% U+0465 CYRILLIC SMALL LETTER IOTIFIED E; eiotifiedcyrillic
\DeclareTextCommand{\cyriote}{PU}{\84\145}% U+0465
% U+0466 CYRILLIC CAPITAL LETTER LITTLE YUS; Yuslittlecyrillic
\DeclareTextCommand{\CYRLYUS}{PU}{\84\146}% U+0466
% U+0467 CYRILLIC SMALL LETTER LITTLE YUS; yuslittlecyrillic
\DeclareTextCommand{\cyrlyus}{PU}{\84\147}% U+0467
% U+0468 CYRILLIC CAPITAL LETTER IOTIFIED LITTLE YUS; Yuslittleiotifiedcyrillic
\DeclareTextCommand{\CYRIOTLYUS}{PU}{\84\150}% U+0468
% U+0469 CYRILLIC SMALL LETTER IOTIFIED LITTLE YUS; yuslittleiotifiedcyrillic
\DeclareTextCommand{\cyriotlyus}{PU}{\84\151}% U+0469
% U+046A CYRILLIC CAPITAL LETTER BIG YUS; Yusbigcyrillic
\DeclareTextCommand{\CYRBYUS}{PU}{\84\152}% U+046A
% U+046B CYRILLIC SMALL LETTER BIG YUS; yusbigcyrillic
\DeclareTextCommand{\cyrbyus}{PU}{\84\153}% U+046B
% U+046C CYRILLIC CAPITAL LETTER IOTIFIED BIG YUS; Yusbigiotifiedcyrillic
\DeclareTextCommand{\CYRIOTBYUS}{PU}{\84\154}% U+046C
% U+046D CYRILLIC SMALL LETTER IOTIFIED BIG YUS; yusbigiotifiedcyrillic
\DeclareTextCommand{\cyriotbyus}{PU}{\84\155}% U+046D
% U+046E CYRILLIC CAPITAL LETTER KSI; Ksicyrillic
\DeclareTextCommand{\CYRKSI}{PU}{\84\156}% U+046E
% U+046F CYRILLIC SMALL LETTER KSI; ksicyrillic
\DeclareTextCommand{\cyrksi}{PU}{\84\157}% U+046F
% U+0470 CYRILLIC CAPITAL LETTER PSI; Psicyrillic
\DeclareTextCommand{\CYRPSI}{PU}{\84\160}% U+0470
% U+0471 CYRILLIC SMALL LETTER PSI; psicyrillic
\DeclareTextCommand{\cyrpsi}{PU}{\84\161}% U+0471
% U+0472 CYRILLIC CAPITAL LETTER FITA; Fitacyrillic, *afii10147
\DeclareTextCommand{\CYRFITA}{PU}{\84\162}% U+0472
% U+0473 CYRILLIC SMALL LETTER FITA; *afii10195, fitacyrillic
\DeclareTextCommand{\cyrfita}{PU}{\84\163}% U+0473
% U+0474 CYRILLIC CAPITAL LETTER IZHITSA; Izhitsacyrillic, *afii10148
\DeclareTextCommand{\CYRIZH}{PU}{\84\164}% U+0474
% U+0475 CYRILLIC SMALL LETTER IZHITSA; *afii10196, izhitsacyrillic
\DeclareTextCommand{\cyrizh}{PU}{\84\165}% U+0475
% U+0476 CYRILLIC CAPITAL LETTER IZHITSA WITH DOUBLE GRAVE ACCENT; Izhitsadblgravecyrillic
\DeclareTextCompositeCommand{\C}{PU}{\CYRIZH}{\84\166}% U+0476
% U+0477 CYRILLIC SMALL LETTER IZHITSA WITH DOUBLE GRAVE ACCENT; izhitsadblgravecyrillic
\DeclareTextCompositeCommand{\C}{PU}{\cyrizh}{\84\167}% U+0477
% U+0478 CYRILLIC CAPITAL LETTER UK; Ukcyrillic
\DeclareTextCommand{\CYRUK}{PU}{\84\170}% U+0478
% U+0479 CYRILLIC SMALL LETTER UK; ukcyrillic
\DeclareTextCommand{\cyruk}{PU}{\84\171}% U+0479
% U+047A CYRILLIC CAPITAL LETTER ROUND OMEGA; Omegaroundcyrillic
\DeclareTextCommand{\CYROMEGARND}{PU}{\84\172}% U+047A
% U+047B CYRILLIC SMALL LETTER ROUND OMEGA; omegaroundcyrillic
\DeclareTextCommand{\cyromegarnd}{PU}{\84\173}% U+047B
% U+047C CYRILLIC CAPITAL LETTER OMEGA WITH TITLO; Omegatitlocyrillic
\DeclareTextCommand{\CYROMEGATITLO}{PU}{\84\174}% U+047C
% U+047D CYRILLIC SMALL LETTER OMEGA WITH TITLO; omegatitlocyrillic
\DeclareTextCommand{\cyromegatitlo}{PU}{\84\175}% U+047D
% U+047E CYRILLIC CAPITAL LETTER OT; Otcyrillic
\DeclareTextCommand{\CYROT}{PU}{\84\176}% U+047E
% U+047F CYRILLIC SMALL LETTER OT; otcyrillic
\DeclareTextCommand{\cyrot}{PU}{\84\177}% U+047F
% U+0480 CYRILLIC CAPITAL LETTER KOPPA; Koppacyrillic
\DeclareTextCommand{\CYRKOPPA}{PU}{\84\200}% U+0480
% U+0481 CYRILLIC SMALL LETTER KOPPA; koppacyrillic
\DeclareTextCommand{\cyrkoppa}{PU}{\84\201}% U+0481
% U+0482 CYRILLIC THOUSANDS SIGN; thousandcyrillic
\DeclareTextCommand{\cyrthousands}{PU}{\84\202}% U+0482
% \end{macrocode}
% |\84\203|: U+0483 COMBINING CYRILLIC TITLO; titlocyrilliccmb\\
% |\84\204|: U+0484 COMBINING CYRILLIC PALATALIZATION; palatalizationcyrilliccmb\\
% |\84\205|: U+0485 COMBINING CYRILLIC DASIA PNEUMATA; dasiapneumatacyrilliccmb\\
% |\84\206|: U+0486 COMBINING CYRILLIC PSILI PNEUMATA; psilipneumatacyrilliccmb\\
% |\84\207|: U+0487 COMBINING CYRILLIC POKRYTIE\\
% |\84\210|: U+0488 COMBINING CYRILLIC HUNDRED THOUSANDS SIGN\\
% |\84\211|: U+0489 COMBINING CYRILLIC MILLIONS SIGN
% \begin{macrocode}
% U+048A CYRILLIC CAPITAL LETTER SHORT I WITH TAIL
\DeclareTextCommand{\CYRISHRTDSC}{PU}{\84\212}% U+048A
% U+048B CYRILLIC SMALL LETTER SHORT I WITH TAIL
\DeclareTextCommand{\cyrishrtdsc}{PU}{\84\213}% U+048B
% U+048C CYRILLIC CAPITAL LETTER SEMISOFT SIGN
\DeclareTextCommand{\CYRSEMISFTSN}{PU}{\84\214}% U+048C
% U+048D CYRILLIC SMALL LETTER SEMISOFT SIGN
\DeclareTextCommand{\cyrsemisftsn}{PU}{\84\215}% U+048D
% U+048E CYRILLIC CAPITAL LETTER ER WITH TICK
\DeclareTextCommand{\CYRRTICK}{PU}{\84\216}% U+048E
% U+048F CYRILLIC SMALL LETTER ER WITH TICK
\DeclareTextCommand{\cyrrtick}{PU}{\84\217}% U+048F
% U+0490 CYRILLIC CAPITAL LETTER GHE WITH UPTURN; Gheupturncyrillic, *afii10050
\DeclareTextCommand{\CYRGUP}{PU}{\84\220}% U+0490
% U+0491 CYRILLIC SMALL LETTER GHE WITH UPTURN; *afii10098, gheupturncyrillic
\DeclareTextCommand{\cyrgup}{PU}{\84\221}% U+0491
% U+0492 CYRILLIC CAPITAL LETTER GHE WITH STROKE; Ghestrokecyrillic
\DeclareTextCommand{\CYRGHCRS}{PU}{\84\222}% U+0492
% U+0493 CYRILLIC SMALL LETTER GHE WITH STROKE; ghestrokecyrillic
\DeclareTextCommand{\cyrghcrs}{PU}{\84\223}% U+0493
% U+0494 CYRILLIC CAPITAL LETTER GHE WITH MIDDLE HOOK; Ghemiddlehookcyrillic
\DeclareTextCommand{\CYRGHK}{PU}{\84\224}% U+0494
% U+0495 CYRILLIC SMALL LETTER GHE WITH MIDDLE HOOK; ghemiddlehookcyrillic
\DeclareTextCommand{\cyrghk}{PU}{\84\225}% U+0495
% U+0496 CYRILLIC CAPITAL LETTER ZHE WITH DESCENDER; Zhedescendercyrillic
\DeclareTextCommand{\CYRZHDSC}{PU}{\84\226}% U+0496
% U+0497 CYRILLIC SMALL LETTER ZHE WITH DESCENDER; zhedescendercyrillic
\DeclareTextCommand{\cyrzhdsc}{PU}{\84\227}% U+0497
% U+0498 CYRILLIC CAPITAL LETTER ZE WITH DESCENDER; Zedescendercyrillic
\DeclareTextCommand{\CYRZDSC}{PU}{\84\230}% U+0498
\DeclareTextCompositeCommand{\c}{PU}{\CYRZ}{\84\230}% U+0498
% U+0499 CYRILLIC SMALL LETTER ZE WITH DESCENDER; zedescendercyrillic
\DeclareTextCommand{\cyrzdsc}{PU}{\84\231}% U+0499
\DeclareTextCompositeCommand{\c}{PU}{\cyrz}{\84\231}% U+0499
% U+049A CYRILLIC CAPITAL LETTER KA WITH DESCENDER; Kadescendercyrillic
\DeclareTextCommand{\CYRKDSC}{PU}{\84\232}% U+049A
% U+049B CYRILLIC SMALL LETTER KA WITH DESCENDER; kadescendercyrillic
\DeclareTextCommand{\cyrkdsc}{PU}{\84\233}% U+049B
% U+049C CYRILLIC CAPITAL LETTER KA WITH VERTICAL STROKE; Kaverticalstrokecyrillic
\DeclareTextCommand{\CYRKVCRS}{PU}{\84\234}% U+049C
% U+049D CYRILLIC SMALL LETTER KA WITH VERTICAL STROKE; kaverticalstrokecyrillic
\DeclareTextCommand{\cyrkvcrs}{PU}{\84\235}% U+049D
% U+049E CYRILLIC CAPITAL LETTER KA WITH STROKE; Kastrokecyrillic
\DeclareTextCommand{\CYRKHCRS}{PU}{\84\236}% U+049E
% U+049F CYRILLIC SMALL LETTER KA WITH STROKE; kastrokecyrillic
\DeclareTextCommand{\cyrkhcrs}{PU}{\84\237}% U+049F
% U+04A0 CYRILLIC CAPITAL LETTER BASHKIR KA; Kabashkircyrillic
\DeclareTextCommand{\CYRKBEAK}{PU}{\84\240}% U+04A0
% U+04A1 CYRILLIC SMALL LETTER BASHKIR KA; kabashkircyrillic
\DeclareTextCommand{\cyrkbeak}{PU}{\84\241}% U+04A1
% U+04A2 CYRILLIC CAPITAL LETTER EN WITH DESCENDER; Endescendercyrillic
\DeclareTextCommand{\CYRNDSC}{PU}{\84\242}% U+04A2
% U+04A3 CYRILLIC SMALL LETTER EN WITH DESCENDER; endescendercyrillic
\DeclareTextCommand{\cyrndsc}{PU}{\84\243}% U+04A3
% U+04A4 CYRILLIC CAPITAL LIGATURE EN GHE; Enghecyrillic
\DeclareTextCommand{\CYRNG}{PU}{\84\244}% U+04A4
% U+04A5 CYRILLIC SMALL LIGATURE EN GHE; enghecyrillic
\DeclareTextCommand{\cyrng}{PU}{\84\245}% U+04A5
% U+04A6 CYRILLIC CAPITAL LETTER PE WITH MIDDLE HOOK; Pemiddlehookcyrillic
\DeclareTextCommand{\CYRPHK}{PU}{\84\246}% U+04A6
% U+04A7 CYRILLIC SMALL LETTER PE WITH MIDDLE HOOK; pemiddlehookcyrillic
\DeclareTextCommand{\cyrphk}{PU}{\84\247}% U+04A7
% U+04A8 CYRILLIC CAPITAL LETTER ABKHASIAN HA; Haabkhasiancyrillic
\DeclareTextCommand{\CYRABHHA}{PU}{\84\250}% U+04A8
% U+04A9 CYRILLIC SMALL LETTER ABKHASIAN HA; haabkhasiancyrillic
\DeclareTextCommand{\cyrabhha}{PU}{\84\251}% U+04A9
% U+04AA CYRILLIC CAPITAL LETTER ES WITH DESCENDER; Esdescendercyrillic
\DeclareTextCommand{\CYRSDSC}{PU}{\84\252}% U+04AA
\DeclareTextCompositeCommand{\CYRSDSC}{PU}{\CYRS}{\84\252}% U+04AA
% U+04AB CYRILLIC SMALL LETTER ES WITH DESCENDER; esdescendercyrillic
\DeclareTextCommand{\cyrsdsc}{PU}{\84\253}% U+04AB
\DeclareTextCompositeCommand{\k}{PU}{\cyrs}{\84\253}% U+04AB
% U+04AC CYRILLIC CAPITAL LETTER TE WITH DESCENDER; Tedescendercyrillic
\DeclareTextCommand{\CYRTDSC}{PU}{\84\254}% U+04AC
% U+04AD CYRILLIC SMALL LETTER TE WITH DESCENDER; tedescendercyrillic
\DeclareTextCommand{\cyrtdsc}{PU}{\84\255}% U+04AD
% U+04AE CYRILLIC CAPITAL LETTER STRAIGHT U; Ustraightcyrillic
\DeclareTextCommand{\CYRY}{PU}{\84\256}% U+04AE
% U+04AF CYRILLIC SMALL LETTER STRAIGHT U; ustraightcyrillic
\DeclareTextCommand{\cyry}{PU}{\84\257}% U+04AF
% U+04B0 CYRILLIC CAPITAL LETTER STRAIGHT U WITH STROKE; Ustraightstrokecyrillic
\DeclareTextCommand{\CYRYHCRS}{PU}{\84\260}% U+04B0
% U+04B1 CYRILLIC SMALL LETTER STRAIGHT U WITH STROKE; ustraightstrokecyrillic
\DeclareTextCommand{\cyryhcrs}{PU}{\84\261}% U+04B1
% U+04B2 CYRILLIC CAPITAL LETTER HA WITH DESCENDER; Hadescendercyrillic
\DeclareTextCommand{\CYRHDSC}{PU}{\84\262}% U+04B2
% U+04B3 CYRILLIC SMALL LETTER HA WITH DESCENDER; hadescendercyrillic
\DeclareTextCommand{\cyrhdsc}{PU}{\84\263}% U+04B3
% U+04B4 CYRILLIC CAPITAL LIGATURE TE TSE; Tetsecyrillic
\DeclareTextCommand{\CYRTETSE}{PU}{\84\264}% U+04B4
% U+04B5 CYRILLIC SMALL LIGATURE TE TSE; tetsecyrillic
\DeclareTextCommand{\cyrtetse}{PU}{\84\265}% U+04B5
% U+04B6 CYRILLIC CAPITAL LETTER CHE WITH DESCENDER; Chedescendercyrillic
\DeclareTextCommand{\CYRCHRDSC}{PU}{\84\266}% U+04B6
% U+04B7 CYRILLIC SMALL LETTER CHE WITH DESCENDER; chedescendercyrillic
\DeclareTextCommand{\cyrchrdsc}{PU}{\84\267}% U+04B7
% U+04B8 CYRILLIC CAPITAL LETTER CHE WITH VERTICAL STROKE; Cheverticalstrokecyrillic
\DeclareTextCommand{\CYRCHVCRS}{PU}{\84\270}% U+04B8
% U+04B9 CYRILLIC SMALL LETTER CHE WITH VERTICAL STROKE; cheverticalstrokecyrillic
\DeclareTextCommand{\cyrchvcrs}{PU}{\84\271}% U+04B9
% U+04BA CYRILLIC CAPITAL LETTER SHHA; Shhacyrillic
\DeclareTextCommand{\CYRSHHA}{PU}{\84\272}% U+04BA
% U+04BB CYRILLIC SMALL LETTER SHHA; shhacyrillic
\DeclareTextCommand{\cyrshha}{PU}{\84\273}% U+04BB
% U+04BC CYRILLIC CAPITAL LETTER ABKHASIAN CHE; Cheabkhasiancyrillic
\DeclareTextCommand{\CYRABHCH}{PU}{\84\274}% U+04BC
% U+04BD CYRILLIC SMALL LETTER ABKHASIAN CHE; cheabkhasiancyrillic
\DeclareTextCommand{\cyrabhch}{PU}{\84\275}% U+04BD
% U+04BE CYRILLIC CAPITAL LETTER ABKHASIAN CHE WITH DESCENDER; Chedescenderabkhasiancyrillic
\DeclareTextCommand{\CYRABHCHDSC}{PU}{\84\276}% U+04BE
\DeclareTextCompositeCommand{\k}{PU}{\CYRABHCH}{\84\276}% U+04BE
% U+04BF CYRILLIC SMALL LETTER ABKHASIAN CHE WITH DESCENDER; chedescenderabkhasiancyrillic
\DeclareTextCommand{\cyrabhchdsc}{PU}{\84\277}% U+04BF
\DeclareTextCompositeCommand{\k}{PU}{\cyrabhch}{\84\277}% U+04BF
% U+04C0 CYRILLIC LETTER PALOCHKA; palochkacyrillic
\DeclareTextCommand{\CYRpalochka}{PU}{\84\300}% U+04C0
% U+04C1 CYRILLIC CAPITAL LETTER ZHE WITH BREVE; Zhebrevecyrillic
\DeclareTextCompositeCommand{\U}{PU}{\CYRZH}{\84\301}% U+04C1
% U+04C2 CYRILLIC SMALL LETTER ZHE WITH BREVE; zhebrevecyrillic
\DeclareTextCompositeCommand{\U}{PU}{\cyrzh}{\84\302}% U+04C2
% U+04C3 CYRILLIC CAPITAL LETTER KA WITH HOOK; Kahookcyrillic
\DeclareTextCommand{\CYRKHK}{PU}{\84\303}% U+04C3
% U+04C4 CYRILLIC SMALL LETTER KA WITH HOOK; kahookcyrillic
\DeclareTextCommand{\cyrkhk}{PU}{\84\304}% U+04C4
% U+04C5 CYRILLIC CAPITAL LETTER EL WITH TAIL
\DeclareTextCommand{\CYRLDSC}{PU}{\84\305}% U+04C5
% U+04C6 CYRILLIC SMALL LETTER EL WITH TAIL
\DeclareTextCommand{\cyrldsc}{PU}{\84\306}% U+04C6
% U+04C7 CYRILLIC CAPITAL LETTER EN WITH HOOK; Enhookcyrillic
\DeclareTextCommand{\CYRNHK}{PU}{\84\307}% U+04C7
% U+04C8 CYRILLIC SMALL LETTER EN WITH HOOK; enhookcyrillic
\DeclareTextCommand{\cyrnhk}{PU}{\84\310}% U+04C8
% U+04CB CYRILLIC CAPITAL LETTER KHAKASSIAN CHE; Chekhakassiancyrillic
\DeclareTextCommand{\CYRCHLDSC}{PU}{\84\313}% U+04CB
% U+04CC CYRILLIC SMALL LETTER KHAKASSIAN CHE; chekhakassiancyrillic
\DeclareTextCommand{\cyrchldsc}{PU}{\84\314}% U+04CC
% U+04CD CYRILLIC CAPITAL LETTER EM WITH TAIL
\DeclareTextCommand{\CYRMDSC}{PU}{\84\315}% U+04CD
% U+04CE CYRILLIC SMALL LETTER EM WITH TAIL
\DeclareTextCommand{\cyrmdsc}{PU}{\84\316}% U+04CE
% \end{macrocode}
% |\84\317|: U+04CF CYRILLIC SMALL LETTER PALOCHKA
% \begin{macrocode}
% U+04D0 CYRILLIC CAPITAL LETTER A WITH BREVE; Abrevecyrillic
\DeclareTextCompositeCommand{\U}{PU}{\CYRA}{\84\320}% U+04D0
% U+04D1 CYRILLIC SMALL LETTER A WITH BREVE; abrevecyrillic
\DeclareTextCompositeCommand{\U}{PU}{\cyra}{\84\321}% U+04D1
% U+04D2 CYRILLIC CAPITAL LETTER A WITH DIAERESIS; Adieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\CYRA}{\84\322}% U+04D2
% U+04D3 CYRILLIC SMALL LETTER A WITH DIAERESIS; adieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\cyra}{\84\323}% U+04D3
% U+04D4 CYRILLIC CAPITAL LIGATURE A IE; Aiecyrillic
\DeclareTextCommand{\CYRAE}{PU}{\84\324}% U+04D4
% U+04D5 CYRILLIC SMALL LIGATURE A IE; aiecyrillic
\DeclareTextCommand{\cyrae}{PU}{\84\325}% U+04D5
% U+04D6 CYRILLIC CAPITAL LETTER IE WITH BREVE; Iebrevecyrillic
\DeclareTextCompositeCommand{\U}{PU}{\CYRE}{\84\326}% U+04D6
% U+04D7 CYRILLIC SMALL LETTER IE WITH BREVE; iebrevecyrillic
\DeclareTextCompositeCommand{\U}{PU}{\cyre}{\84\327}% U+04D7
% U+04D8 CYRILLIC CAPITAL LETTER SCHWA; Schwacyrillic
\DeclareTextCommand{\CYRSCHWA}{PU}{\84\330}% U+04D8
% U+04D9 CYRILLIC SMALL LETTER SCHWA; *afii10846, schwacyrillic
\DeclareTextCommand{\cyrschwa}{PU}{\84\331}% U+04D9
% U+04DA CYRILLIC CAPITAL LETTER SCHWA WITH DIAERESIS; Schwadieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\CYRSCHWA}{\84\332}% U+04DA
% U+04DB CYRILLIC SMALL LETTER SCHWA WITH DIAERESIS; schwadieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\cyrschwa}{\84\333}% U+04DB
% U+04DC CYRILLIC CAPITAL LETTER ZHE WITH DIAERESIS; Zhedieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\CYRZH}{\84\334}% U+04DC
% U+04DD CYRILLIC SMALL LETTER ZHE WITH DIAERESIS; zhedieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\cyrzh}{\84\335}% U+04DD
% U+04DE CYRILLIC CAPITAL LETTER ZE WITH DIAERESIS; Zedieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\CYRZ}{\84\336}% U+04DE
% U+04DF CYRILLIC SMALL LETTER ZE WITH DIAERESIS; zedieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\cyrz}{\84\337}% U+04DF
% U+04E0 CYRILLIC CAPITAL LETTER ABKHASIAN DZE; Dzeabkhasiancyrillic
\DeclareTextCommand{\CYRABHDZE}{PU}{\84\340}% U+04E0
% U+04E1 CYRILLIC SMALL LETTER ABKHASIAN DZE; dzeabkhasiancyrillic
\DeclareTextCommand{\cyrabhdze}{PU}{\84\341}% U+04E1
% U+04E2 CYRILLIC CAPITAL LETTER I WITH MACRON; Imacroncyrillic
\DeclareTextCompositeCommand{\=}{PU}{\CYRI}{\84\342}% U+04E2
% U+04E3 CYRILLIC SMALL LETTER I WITH MACRON; imacroncyrillic
\DeclareTextCompositeCommand{\=}{PU}{\cyri}{\84\343}% U+04E3
% U+04E4 CYRILLIC CAPITAL LETTER I WITH DIAERESIS; Idieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\CYRI}{\84\344}% U+04E4
% U+04E5 CYRILLIC SMALL LETTER I WITH DIAERESIS; idieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\cyri}{\84\345}% U+04E5
% U+04E6 CYRILLIC CAPITAL LETTER O WITH DIAERESIS; Odieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\CYRO}{\84\346}% U+04E6
% U+04E7 CYRILLIC SMALL LETTER O WITH DIAERESIS; odieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\cyro}{\84\347}% U+04E7
% U+04E8 CYRILLIC CAPITAL LETTER BARRED O; Obarredcyrillic
\DeclareTextCommand{\CYROTLD}{PU}{\84\350}% U+04E8
% U+04E9 CYRILLIC SMALL LETTER BARRED O; obarredcyrillic
\DeclareTextCommand{\cyrotld}{PU}{\84\351}% U+04E9
% U+04EA CYRILLIC CAPITAL LETTER BARRED O WITH DIAERESIS; Obarreddieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\CYROTLD}{\84\352}% U+04EA
% U+04EB CYRILLIC SMALL LETTER BARRED O WITH DIAERESIS; obarreddieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\cyrotld}{\84\353}% U+04EB
% U+04EC CYRILLIC CAPITAL LETTER E WITH DIAERESIS
\DeclareTextCompositeCommand{\"}{PU}{\CYREREV}{\84\354}% U+04EC
% U+04ED CYRILLIC SMALL LETTER E WITH DIAERESIS
\DeclareTextCompositeCommand{\"}{PU}{\cyreref}{\84\355}% U+04ED
% U+04EE CYRILLIC CAPITAL LETTER U WITH MACRON; Umacroncyrillic
\DeclareTextCompositeCommand{\=}{PU}{\CYRU}{\84\356}% U+04EE
% U+04EF CYRILLIC SMALL LETTER U WITH MACRON; umacroncyrillic
\DeclareTextCompositeCommand{\=}{PU}{\cyru}{\84\357}% U+04EF
% U+04F0 CYRILLIC CAPITAL LETTER U WITH DIAERESIS; Udieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\CYRU}{\84\360}% U+04F0
% U+04F1 CYRILLIC SMALL LETTER U WITH DIAERESIS; udieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\cyru}{\84\361}% U+04F1
% U+04F2 CYRILLIC CAPITAL LETTER U WITH DOUBLE ACUTE; Uhungarumlautcyrillic
\DeclareTextCompositeCommand{\H}{PU}{\CYRU}{\84\362}% U+04F2
% U+04F3 CYRILLIC SMALL LETTER U WITH DOUBLE ACUTE; uhungarumlautcyrillic
\DeclareTextCompositeCommand{\H}{PU}{\cyru}{\84\363}% U+04F3
% U+04F4 CYRILLIC CAPITAL LETTER CHE WITH DIAERESIS; Chedieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\CYRCH}{\84\364}% U+04F4
% U+04F5 CYRILLIC SMALL LETTER CHE WITH DIAERESIS; chedieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\cyrch}{\84\365}% U+04F5
% U+04F6 CYRILLIC CAPITAL LETTER GHE WITH DESCENDER
\DeclareTextCommand{\CYRGDSC}{PU}{\84\366}% U+04F6
% U+04F7 CYRILLIC SMALL LETTER GHE WITH DESCENDER
\DeclareTextCommand{\cyrgdsc}{PU}{\84\367}% U+04F7
% U+04F8 CYRILLIC CAPITAL LETTER YERU WITH DIAERESIS; Yerudieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\CYRERY}{\84\370}% U+04F8
% U+04F9 CYRILLIC SMALL LETTER YERU WITH DIAERESIS; yerudieresiscyrillic
\DeclareTextCompositeCommand{\"}{PU}{\cyrery}{\84\371}% U+04F9
% \end{macrocode}
% |\84\372|: U+04FA CYRILLIC CAPITAL LETTER GHE WITH STROKE AND HOOK\\
% |\84\373|: U+04FB CYRILLIC SMALL LETTER GHE WITH STROKE AND HOOK
% \begin{macrocode}
% U+04FC CYRILLIC CAPITAL LETTER HA WITH HOOK
\DeclareTextCommand{\CYRHHK}{PU}{\84\374}% U+04FC
% U+04FD CYRILLIC SMALL LETTER HA WITH HOOK
\DeclareTextCommand{\cyrhhk}{PU}{\84\375}% U+04FD
% \end{macrocode}
% |\84\376|: U+04FE CYRILLIC CAPITAL LETTER HA WITH STROKE\\
% |\84\377|: U+04FF CYRILLIC SMALL LETTER HA WITH STROKE
%
% \subsubsection{Thai: U+0E00 to U+0E7F}
%
% \begin{macrocode}
% U+0E3F THAI CURRENCY SYMBOL BAHT; bahtthai
\DeclareTextCommand{\textbaht}{PU}{\9016\077}% U+0E3F
% \end{macrocode}
%
% \subsubsection{Latin Extended Additional: U+1E00 to U+1EFF}
%
% \begin{macrocode}
% U+1E02 LATIN CAPITAL LETTER B WITH DOT ABOVE; Bdotaccent
\DeclareTextCompositeCommand{\.}{PU}{B}{\9036\002}% U+1E02
% U+1E03 LATIN SMALL LETTER B WITH DOT ABOVE; bdotaccent
\DeclareTextCompositeCommand{\.}{PU}{b}{\9036\003}% U+1E03
% U+1E06 LATIN CAPITAL LETTER B WITH LINE BELOW; Blinebelow
\DeclareTextCompositeCommand{\b}{PU}{B}{\9036\006}% U+1E06
% U+1E07 LATIN SMALL LETTER B WITH LINE BELOW; blinebelow
\DeclareTextCompositeCommand{\b}{PU}{b}{\9036\007}% U+1E07
% U+1E0A LATIN CAPITAL LETTER D WITH DOT ABOVE; Ddotaccent
\DeclareTextCompositeCommand{\.}{PU}{D}{\9036\012}% U+1E0A
% U+1E0B LATIN SMALL LETTER D WITH DOT ABOVE; ddotaccent
\DeclareTextCompositeCommand{\.}{PU}{d}{\9036\013}% U+1E0B
% U+1E0E LATIN CAPITAL LETTER D WITH LINE BELOW; Dlinebelow
\DeclareTextCompositeCommand{\b}{PU}{D}{\9036\016}% U+1E0E
% U+1E0F LATIN SMALL LETTER D WITH LINE BELOW; dlinebelow
\DeclareTextCompositeCommand{\b}{PU}{d}{\9036\017}% U+1E0F
% U+1E10 LATIN CAPITAL LETTER D WITH CEDILLA; Dcedilla
\DeclareTextCompositeCommand{\c}{PU}{D}{\9036\020}% U+1E10
% U+1E11 LATIN SMALL LETTER D WITH CEDILLA; dcedilla
\DeclareTextCompositeCommand{\c}{PU}{d}{\9036\021}% U+1E11
% U+1E1E LATIN CAPITAL LETTER F WITH DOT ABOVE; Fdotaccent
\DeclareTextCompositeCommand{\.}{PU}{F}{\9036\036}% U+1E1E
% U+1E1F LATIN SMALL LETTER F WITH DOT ABOVE; fdotaccent
\DeclareTextCompositeCommand{\.}{PU}{f}{\9036\037}% U+1E1F
% U+1E20 LATIN CAPITAL LETTER G WITH MACRON; Gmacron
\DeclareTextCompositeCommand{\=}{PU}{G}{\9036\040}% U+1E20
% U+1E21 LATIN SMALL LETTER G WITH MACRON; gmacron
\DeclareTextCompositeCommand{\=}{PU}{g}{\9036\041}% U+1E21
% U+1E22 LATIN CAPITAL LETTER H WITH DOT ABOVE; Hdotaccent
\DeclareTextCompositeCommand{\.}{PU}{H}{\9036\042}% U+1E22
% U+1E23 LATIN SMALL LETTER H WITH DOT ABOVE; hdotaccent
\DeclareTextCompositeCommand{\.}{PU}{h}{\9036\043}% U+1E23
% U+1E26 LATIN CAPITAL LETTER H WITH DIAERESIS; Hdieresis
\DeclareTextCompositeCommand{\"}{PU}{H}{\9036\046}% U+1E26
% U+1E27 LATIN SMALL LETTER H WITH DIAERESIS; hdieresis
\DeclareTextCompositeCommand{\"}{PU}{h}{\9036\047}% U+1E27
% U+1E28 LATIN CAPITAL LETTER H WITH CEDILLA; Hcedilla
\DeclareTextCompositeCommand{\c}{PU}{H}{\9036\050}% U+1E28
% U+1E29 LATIN SMALL LETTER H WITH CEDILLA; hcedilla
\DeclareTextCompositeCommand{\c}{PU}{h}{\9036\051}% U+1E29
% U+1E30 LATIN CAPITAL LETTER K WITH ACUTE; Kacute
\DeclareTextCompositeCommand{\'}{PU}{K}{\9036\060}% U+1E30
% U+1E31 LATIN SMALL LETTER K WITH ACUTE; kacute
\DeclareTextCompositeCommand{\'}{PU}{k}{\9036\061}% U+1E31
% U+1E34 LATIN CAPITAL LETTER K WITH LINE BELOW; Klinebelow
\DeclareTextCompositeCommand{\b}{PU}{K}{\9036\064}% U+1E34
% U+1E35 LATIN SMALL LETTER K WITH LINE BELOW; klinebelow
\DeclareTextCompositeCommand{\b}{PU}{k}{\9036\065}% U+1E35
% U+1E3A LATIN CAPITAL LETTER L WITH LINE BELOW; Llinebelow
\DeclareTextCompositeCommand{\b}{PU}{L}{\9036\072}% U+1E3A
% U+1E3B LATIN SMALL LETTER L WITH LINE BELOW; llinebelow
\DeclareTextCompositeCommand{\b}{PU}{l}{\9036\073}% U+1E3B
% U+1E3E LATIN CAPITAL LETTER M WITH ACUTE; Macute
\DeclareTextCompositeCommand{\'}{PU}{M}{\9036\076}% U+1E3E
% U+1E3F LATIN SMALL LETTER M WITH ACUTE; macute
\DeclareTextCompositeCommand{\'}{PU}{m}{\9036\077}% U+1E3F
% U+1E40 LATIN CAPITAL LETTER M WITH DOT ABOVE; Mdotaccent
\DeclareTextCompositeCommand{\.}{PU}{M}{\9036\100}% U+1E40
% U+1E41 LATIN SMALL LETTER M WITH DOT ABOVE; mdotaccent
\DeclareTextCompositeCommand{\.}{PU}{m}{\9036\101}% U+1E41
% U+1E44 LATIN CAPITAL LETTER N WITH DOT ABOVE; Ndotaccent
\DeclareTextCompositeCommand{\.}{PU}{N}{\9036\104}% U+1E44
% U+1E45 LATIN SMALL LETTER N WITH DOT ABOVE; ndotaccent
\DeclareTextCompositeCommand{\.}{PU}{n}{\9036\105}% U+1E45
% U+1E48 LATIN CAPITAL LETTER N WITH LINE BELOW; Nlinebelow
\DeclareTextCompositeCommand{\b}{PU}{N}{\9036\110}% U+1E48
% U+1E49 LATIN SMALL LETTER N WITH LINE BELOW; nlinebelow
\DeclareTextCompositeCommand{\b}{PU}{n}{\9036\111}% U+1E49
% U+1E54 LATIN CAPITAL LETTER P WITH ACUTE; Pacute
\DeclareTextCompositeCommand{\'}{PU}{P}{\9036\124}% U+1E54
% U+1E55 LATIN SMALL LETTER P WITH ACUTE; pacute
\DeclareTextCompositeCommand{\'}{PU}{p}{\9036\125}% U+1E55
% U+1E56 LATIN CAPITAL LETTER P WITH DOT ABOVE; Pdotaccent
\DeclareTextCompositeCommand{\.}{PU}{P}{\9036\126}% U+1E56
% U+1E57 LATIN SMALL LETTER P WITH DOT ABOVE; pdotaccent
\DeclareTextCompositeCommand{\.}{PU}{p}{\9036\127}% U+1E57
% U+1E58 LATIN CAPITAL LETTER R WITH DOT ABOVE; Rdotaccent
\DeclareTextCompositeCommand{\.}{PU}{R}{\9036\130}% U+1E58
% U+1E59 LATIN SMALL LETTER R WITH DOT ABOVE; rdotaccent
\DeclareTextCompositeCommand{\.}{PU}{r}{\9036\131}% U+1E59
% U+1E5E LATIN CAPITAL LETTER R WITH LINE BELOW; Rlinebelow
\DeclareTextCompositeCommand{\b}{PU}{R}{\9036\136}% U+1E5E
% U+1E5F LATIN SMALL LETTER R WITH LINE BELOW; rlinebelow
\DeclareTextCompositeCommand{\b}{PU}{r}{\9036\137}% U+1E5F
% U+1E60 LATIN CAPITAL LETTER S WITH DOT ABOVE; Sdotaccent
\DeclareTextCompositeCommand{\.}{PU}{S}{\9036\140}% U+1E60
% U+1E61 LATIN SMALL LETTER S WITH DOT ABOVE; sdotaccent
\DeclareTextCompositeCommand{\.}{PU}{s}{\9036\141}% U+1E61
% U+1E6E LATIN CAPITAL LETTER T WITH LINE BELOW; Tlinebelow
\DeclareTextCompositeCommand{\b}{PU}{T}{\9036\156}% U+1E6E
% U+1E6F LATIN SMALL LETTER T WITH LINE BELOW; tlinebelow
\DeclareTextCompositeCommand{\b}{PU}{t}{\9036\157}% U+1E6F
% U+1E7C LATIN CAPITAL LETTER V WITH TILDE; Vtilde
\DeclareTextCompositeCommand{\~}{PU}{V}{\9036\174}% U+1E7C
% U+1E7D LATIN SMALL LETTER V WITH TILDE; vtilde
\DeclareTextCompositeCommand{\~}{PU}{v}{\9036\175}% U+1E7D
% U+1E80 LATIN CAPITAL LETTER W WITH GRAVE; Wgrave
\DeclareTextCompositeCommand{\`}{PU}{W}{\9036\200}% U+1E80
% U+1E81 LATIN SMALL LETTER W WITH GRAVE; wgrave
\DeclareTextCompositeCommand{\`}{PU}{w}{\9036\201}% U+1E81
% U+1E82 LATIN CAPITAL LETTER W WITH ACUTE; Wacute
\DeclareTextCompositeCommand{\'}{PU}{W}{\9036\202}% U+1E82
% U+1E83 LATIN SMALL LETTER W WITH ACUTE; wacute
\DeclareTextCompositeCommand{\'}{PU}{w}{\9036\203}% U+1E83
% U+1E84 LATIN CAPITAL LETTER W WITH DIAERESIS; Wdieresis
\DeclareTextCompositeCommand{\"}{PU}{W}{\9036\204}% U+1E84
% U+1E85 LATIN SMALL LETTER W WITH DIAERESIS; wdieresis
\DeclareTextCompositeCommand{\"}{PU}{w}{\9036\205}% U+1E85
% U+1E86 LATIN CAPITAL LETTER W WITH DOT ABOVE; Wdotaccent
\DeclareTextCompositeCommand{\.}{PU}{W}{\9036\206}% U+1E86
% U+1E87 LATIN SMALL LETTER W WITH DOT ABOVE; wdotaccent
\DeclareTextCompositeCommand{\.}{PU}{w}{\9036\207}% U+1E87
% U+1E8A LATIN CAPITAL LETTER X WITH DOT ABOVE; Xdotaccent
\DeclareTextCompositeCommand{\.}{PU}{X}{\9036\212}% U+1E8A
% U+1E8B LATIN SMALL LETTER X WITH DOT ABOVE; xdotaccent
\DeclareTextCompositeCommand{\.}{PU}{x}{\9036\213}% U+1E8B
% U+1E8C LATIN CAPITAL LETTER X WITH DIAERESIS; Xdieresis
\DeclareTextCompositeCommand{\"}{PU}{X}{\9036\214}% U+1E8C
% U+1E8D LATIN SMALL LETTER X WITH DIAERESIS; xdieresis
\DeclareTextCompositeCommand{\"}{PU}{x}{\9036\215}% U+1E8D
% U+1E8E LATIN CAPITAL LETTER Y WITH DOT ABOVE; Ydotaccent
\DeclareTextCompositeCommand{\.}{PU}{Y}{\9036\216}% U+1E8E
% U+1E8F LATIN SMALL LETTER Y WITH DOT ABOVE; ydotaccent
\DeclareTextCompositeCommand{\.}{PU}{y}{\9036\217}% U+1E8F
% U+1E90 LATIN CAPITAL LETTER Z WITH CIRCUMFLEX; Zcircumflex
\DeclareTextCompositeCommand{\^}{PU}{Z}{\9036\220}% U+1E90
% U+1E91 LATIN SMALL LETTER Z WITH CIRCUMFLEX; zcircumflex
\DeclareTextCompositeCommand{\^}{PU}{z}{\9036\221}% U+1E91
% U+1E94 LATIN CAPITAL LETTER Z WITH LINE BELOW; Zlinebelow
\DeclareTextCompositeCommand{\b}{PU}{Z}{\9036\224}% U+1E94
% U+1E95 LATIN SMALL LETTER Z WITH LINE BELOW; zlinebelow
\DeclareTextCompositeCommand{\b}{PU}{z}{\9036\225}% U+1E95
% U+1E96 LATIN SMALL LETTER H WITH LINE BELOW; hlinebelow
\DeclareTextCompositeCommand{\b}{PU}{h}{\9036\226}% U+1E96
% U+1E97 LATIN SMALL LETTER T WITH DIAERESIS; tdieresis
\DeclareTextCompositeCommand{\"}{PU}{t}{\9036\227}% U+1E97
% U+1E98 LATIN SMALL LETTER W WITH RING ABOVE; wring
\DeclareTextCompositeCommand{\r}{PU}{w}{\9036\230}% U+1E98
% U+1E99 LATIN SMALL LETTER Y WITH RING ABOVE; yring
\DeclareTextCompositeCommand{\r}{PU}{y}{\9036\231}% U+1E99
% U+1E9B LATIN SMALL LETTER LONG S WITH DOT ABOVE; slongdotaccent
\DeclareTextCompositeCommand{\.}{PU}{\textlongs}{\9036\233}% U+1E9B
% U+1EBC LATIN CAPITAL LETTER E WITH TILDE; Etilde
\DeclareTextCompositeCommand{\~}{PU}{E}{\9036\274}% U+1EBC
% U+1EBD LATIN SMALL LETTER E WITH TILDE; etilde
\DeclareTextCompositeCommand{\~}{PU}{e}{\9036\275}% U+1EBD
% U+1EF2 LATIN CAPITAL LETTER Y WITH GRAVE; Ygrave
\DeclareTextCompositeCommand{\`}{PU}{Y}{\9036\362}% U+1EF2
% U+1EF3 LATIN SMALL LETTER Y WITH GRAVE; ygrave
\DeclareTextCompositeCommand{\`}{PU}{y}{\9036\363}% U+1EF3
% U+1EF8 LATIN CAPITAL LETTER Y WITH TILDE; Ytilde
\DeclareTextCompositeCommand{\~}{PU}{Y}{\9036\370}% U+1EF8
% U+1EF9 LATIN SMALL LETTER Y WITH TILDE; ytilde
\DeclareTextCompositeCommand{\~}{PU}{y}{\9036\371}% U+1EF9
% \end{macrocode}
%
% \subsubsection{General Punctuation: U+2000 to U+206F}
%
% \begin{macrocode}
% U+200C ZERO WIDTH NON-JOINER; *afii61664, zerowidthnonjoiner
\DeclareTextCommand{\textcompwordmark}{PU}{\9040\014}% U+200C
% U+2013 EN DASH; endash
\DeclareTextCommand{\textendash}{PU}{\9040\023}% U+2013
% U+2014 EM DASH; emdash
\DeclareTextCommand{\textemdash}{PU}{\9040\024}% U+2014
% U+2016 DOUBLE VERTICAL LINE; dblverticalbar
\DeclareTextCommand{\textbardbl}{PU}{\9040\026}% U+2016
% U+2018 LEFT SINGLE QUOTATION MARK; quoteleft
\DeclareTextCommand{\textquoteleft}{PU}{\9040\030}% U+2018
% U+2019 RIGHT SINGLE QUOTATION MARK; quoteright
\DeclareTextCommand{\textquoteright}{PU}{\9040\031}% U+2019
% U+201A SINGLE LOW-9 QUOTATION MARK; quotesinglbase
\DeclareTextCommand{\quotesinglbase}{PU}{\9040\032}% U+201A
% U+201C LEFT DOUBLE QUOTATION MARK; quotedblleft
\DeclareTextCommand{\textquotedblleft}{PU}{\9040\034}% U+201C
% U+201D RIGHT DOUBLE QUOTATION MARK; quotedblright
\DeclareTextCommand{\textquotedblright}{PU}{\9040\035}% U+201D
% U+201E DOUBLE LOW-9 QUOTATION MARK; quotedblbase
\DeclareTextCommand{\quotedblbase}{PU}{\9040\036}% U+201E
% U+2020 DAGGER; dagger
\DeclareTextCommand{\textdagger}{PU}{\9040\040}% U+2020
% U+2021 DOUBLE DAGGER; daggerdbl
\DeclareTextCommand{\textdaggerdbl}{PU}{\9040\041}% U+2021
% U+2022 BULLET; bullet
\DeclareTextCommand{\textbullet}{PU}{\9040\042}% U+2022
% U+2026 HORIZONTAL ELLIPSIS; ellipsis
\DeclareTextCommand{\textellipsis}{PU}{\9040\046}% U+2026
% U+2030 PER MILLE SIGN; perthousand
\DeclareTextCommand{\textperthousand}{PU}{\9040\060}% U+2030
% U+2031 PER TEN THOUSAND SIGN
\DeclareTextCommand{\textpertenthousand}{PU}{\9040\061}% U+2031
% U+2039 SINGLE LEFT-POINTING ANGLE QUOTATION MARK; guilsinglleft
\DeclareTextCommand{\guilsinglleft}{PU}{\9040\071}% U+2039
% U+203A SINGLE RIGHT-POINTING ANGLE QUOTATION MARK; guilsinglright
\DeclareTextCommand{\guilsinglright}{PU}{\9040\072}% U+203A
% U+203B REFERENCE MARK; referencemark
\DeclareTextCommand{\textreferencemark}{PU}{\9040\073}% U+203B
% U+203D INTERROBANG
\DeclareTextCommand{\textinterrobang}{PU}{\9040\075}% U+203D
% U+2044 FRACTION SLASH; fraction
\DeclareTextCommand{\textfractionsolidus}{PU}{\9040\104}% U+2044
% U+2045 LEFT SQUARE BRACKET WITH QUILL
\DeclareTextCommand{\textlquill}{PU}{\9040\105}% U+2045
% U+2046 RIGHT SQUARE BRACKET WITH QUILL
\DeclareTextCommand{\textrquill}{PU}{\9040\106}% U+2046
% U+2052 COMMERCIAL MINUS SIGN
\DeclareTextCommand{\textdiscount}{PU}{\9040\122}% U+2052
% \end{macrocode}
%
% \subsubsection{Superscripts and Subscripts: U+2070 to U+209F}
%
% \begin{macrocode}
% U+2070 SUPERSCRIPT ZERO; zerosuperior
\DeclareTextCommand{\textzerosuperior}{PU}{\9040\160}% U+2070
% U+2074 SUPERSCRIPT FOUR; foursuperior
\DeclareTextCommand{\textfoursuperior}{PU}{\9040\164}% U+2074
% U+2075 SUPERSCRIPT FIVE; fivesuperior
\DeclareTextCommand{\textfivesuperior}{PU}{\9040\165}% U+2075
% U+2076 SUPERSCRIPT SIX; sixsuperior
\DeclareTextCommand{\textsixsuperior}{PU}{\9040\166}% U+2076
% U+2077 SUPERSCRIPT SEVEN; sevensuperior
\DeclareTextCommand{\textsevensuperior}{PU}{\9040\167}% U+2077
% U+2078 SUPERSCRIPT EIGHT; eightsuperior
\DeclareTextCommand{\texteightsuperior}{PU}{\9040\170}% U+2078
% U+2079 SUPERSCRIPT NINE; ninesuperior
\DeclareTextCommand{\textninesuperior}{PU}{\9040\171}% U+2079
% U+207A SUPERSCRIPT PLUS SIGN; plussuperior
\DeclareTextCommand{\textplussuperior}{PU}{\9040\172}% U+207A
% U+207B SUPERSCRIPT MINUS
\DeclareTextCommand{\textminussuperior}{PU}{\9040\173}
% U+207C SUPERSCRIPT EQUALS SIGN; equalsuperior
\DeclareTextCommand{\textequalsuperior}{PU}{\9040\174}
% U+207D SUPERSCRIPT LEFT PARENTHESIS; parenleftsuperior
\DeclareTextCommand{\textparenleftsuperior}{PU}{\9040\175}
% U+207E SUPERSCRIPT RIGHT PARENTHESIS; parenrightsuperior
\DeclareTextCommand{\textparenrightsuperior}{PU}{\9040\176}
% U+207F SUPERSCRIPT LATIN SMALL LETTER N; nsuperior
\DeclareTextCommand{\textnsuperior}{PU}{\9040\177}
% U+2080 SUBSCRIPT ZERO; zeroinferior
\DeclareTextCommand{\textzeroinferior}{PU}{\9040\200}% U+2080
% U+2081 SUBSCRIPT ONE; oneinferior
\DeclareTextCommand{\textoneinferior}{PU}{\9040\201}% U+2081
% U+2082 SUBSCRIPT TWO; twoinferior
\DeclareTextCommand{\texttwoinferior}{PU}{\9040\202}% U+2082
% U+2083 SUBSCRIPT THREE; threeinferior
\DeclareTextCommand{\textthreeinferior}{PU}{\9040\203}% U+2083
% U+2084 SUBSCRIPT FOUR; fourinferior
\DeclareTextCommand{\textfourinferior}{PU}{\9040\204}% U+2084
% U+2085 SUBSCRIPT FIVE; fiveinferior
\DeclareTextCommand{\textfiveinferior}{PU}{\9040\205}% U+2085
% U+2086 SUBSCRIPT SIX; sixinferior
\DeclareTextCommand{\textsixinferior}{PU}{\9040\206}% U+2086
% U+2087 SUBSCRIPT SEVEN; seveninferior
\DeclareTextCommand{\textseveninferior}{PU}{\9040\207}% U+2087
% U+2088 SUBSCRIPT EIGHT; eightinferior
\DeclareTextCommand{\texteightinferior}{PU}{\9040\210}% U+2088
% U+2089 SUBSCRIPT NINE; nineinferior
\DeclareTextCommand{\textnineinferior}{PU}{\9040\211}% U+2089
% U+208D SUBSCRIPT LEFT PARENTHESIS; parenleftinferior
\DeclareTextCommand{\textparenleftinferior}{PU}{\9040\215}% U+208D
% U+208E SUBSCRIPT RIGHT PARENTHESIS; parenrightinferior
\DeclareTextCommand{\textparenrightinferior}{PU}{\9040\216}% U+208E
% \end{macrocode}
%
% \subsubsection{Currency Symbols: U+20A0 to U+20CF}
%
% \begin{macrocode}
% U+20A1 COLON SIGN; *colonmonetary, colonsign
\DeclareTextCommand{\textcolonmonetary}{PU}{\9040\241}% U+20A1
% U+20A4 LIRA SIGN; afii08941, *lira
\DeclareTextCommand{\textlira}{PU}{\9040\244}% U+20A4
% U+20A6 NAIRA SIGN
\DeclareTextCommand{\textnaira}{PU}{\9040\246}% U+20A6
% U+20A7 PESETA SIGN; peseta
\DeclareTextCommand{\textpeseta}{PU}{\9040\247}% U+20A7
% U+20A9 WON SIGN; won
\DeclareTextCommand{\textwon}{PU}{\9040\251}% U+20A9
% U+20AB DONG SIGN; dong
\DeclareTextCommand{\textdong}{PU}{\9040\253}% U+20AB
% U+20AC EURO SIGN; *Euro, euro
\DeclareTextCommand{\texteuro}{PU}{\9040\254}% U+20AC
% U+20B1 PESO SIGN
\DeclareTextCommand{\textpeso}{PU}{\9040\261}% U+20B1
% U+20B2 GUARANI SIGN
\DeclareTextCommand{\textguarani}{PU}{\9040\262}% U+20B2
% \end{macrocode}
%
% \subsubsection{Letterlike Symbols: U+2100 to U+214F}
%
% \begin{macrocode}
% U+2103 DEGREE CELSIUS; centigrade
\DeclareTextCommand{\textcelsius}{PU}{\9041\003}% U+2103
% U+2116 NUMERO SIGN; *afii61352, numero
\DeclareTextCommand{\textnumero}{PU}{\9041\026}% U+2116
% U+2117 SOUND RECORDING COPYRIGHT
\DeclareTextCommand{\textcircledP}{PU}{\9041\027}% U+2117
% U+211E PRESCRIPTION TAKE; prescription
\DeclareTextCommand{\textrecipe}{PU}{\9041\036}% U+211E
% U+2120 SERVICE MARK
\DeclareTextCommand{\textservicemark}{PU}{\9041\040}% U+2120
% U+2122 TRADE MARK SIGN; trademark
\DeclareTextCommand{\texttrademark}{PU}{\9041\042}% U+2122
% U+2126 OHM SIGN; Ohm, Omega
\DeclareTextCommand{\textohm}{PU}{\9041\046}% U+2126
% U+2127 INVERTED OHM SIGN
\DeclareTextCommand{\textmho}{PU}{\9041\047}% U+2127
% U+212B ANGSTROM SIGN; angstrom
\DeclareTextCommand{\textangstrom}{PU}{\9041\053}% U+212B
% U+212E ESTIMATED SYMBOL; estimated
\DeclareTextCommand{\textestimated}{PU}{\9041\056}% U+212E
% U+2135 ALEF SYMBOL; aleph
\DeclareTextCommand{\textaleph}{PU}{\9041\065}% U+2135
% \end{macrocode}
%
% \subsubsection{Arrows: U+2190 to U+21FF}
%
% \begin{macrocode}
% U+2190 LEFTWARDS ARROW; arrowleft
\DeclareTextCommand{\textleftarrow}{PU}{\9041\220}% U+2190
% U+2191 UPWARDS ARROW; arrowup
\DeclareTextCommand{\textuparrow}{PU}{\9041\221}% U+2191
% U+2192 RIGHTWARDS ARROW; arrowright
\DeclareTextCommand{\textrightarrow}{PU}{\9041\222}% U+2192
% U+2193 DOWNWARDS ARROW; arrowdown
\DeclareTextCommand{\textdownarrow}{PU}{\9041\223}% U+2193
% \end{macrocode}
%
% \subsubsection{Mathematical Operators: U+2200 to U+22FF}
%
% \begin{macrocode}
% U+2212 MINUS SIGN; minus
\DeclareTextCommand{\textminus}{PU}{\9042\022}% U+2212
% U+221A SQUARE ROOT; radical
\DeclareTextCommand{\textsurd}{PU}{\9042\032}% U+221A
% \end{macrocode}
%
% \subsubsection{Miscellaneous Technical: U+2300 to U+23FF}
%
% \begin{macrocode}
% U+2329 LEFT-POINTING ANGLE BRACKET; angleleft
\DeclareTextCommand{\textlangle}{PU}{\9043\051}% U+2329
% U+232A RIGHT-POINTING ANGLE BRACKET; angleright
\DeclareTextCommand{\textrangle}{PU}{\9043\052}% U+232A
% \end{macrocode}
%
% \subsubsection{Control Pictures: U+2400 to U+243F}
%
% \begin{macrocode}
% U+2422 BLANK SYMBOL
\DeclareTextCommand{\textblank}{PU}{\9044\042}% U+2422
% U+2423 OPEN BOX; blank
\DeclareTextCommand{\textvisiblespace}{PU}{\9044\043}% U+2423
% \end{macrocode}
%
% \subsubsection{Enclosed Alphanumerics: U+2460 to U+24FF}
%
% \begin{macrocode}
% U+2460 CIRCLED DIGIT ONE; onecircle
\DeclareTextCompositeCommand{\textcircled}{PU}{1}{\9044\140}% U+2460
% U+2461 CIRCLED DIGIT TWO; twocircle
\DeclareTextCompositeCommand{\textcircled}{PU}{2}{\9044\141}% U+2461
% U+2462 CIRCLED DIGIT THREE; threecircle
\DeclareTextCompositeCommand{\textcircled}{PU}{3}{\9044\142}% U+2462
% U+2463 CIRCLED DIGIT FOUR; fourcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{4}{\9044\143}% U+2463
% U+2464 CIRCLED DIGIT FIVE; fivecircle
\DeclareTextCompositeCommand{\textcircled}{PU}{5}{\9044\144}% U+2464
% U+2465 CIRCLED DIGIT SIX; sixcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{6}{\9044\145}% U+2465
% U+2466 CIRCLED DIGIT SEVEN; sevencircle
\DeclareTextCompositeCommand{\textcircled}{PU}{7}{\9044\146}% U+2466
% U+2467 CIRCLED DIGIT EIGHT; eightcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{8}{\9044\147}% U+2467
% U+2468 CIRCLED DIGIT NINE; ninecircle
\DeclareTextCompositeCommand{\textcircled}{PU}{9}{\9044\150}% U+2468
% U+2469 CIRCLED NUMBER TEN; tencircle
\DeclareTextCompositeCommand{\textcircled}{PU}{10}{\9044\151}% U+2469
% U+246A CIRCLED NUMBER ELEVEN; elevencircle
\DeclareTextCompositeCommand{\textcircled}{PU}{11}{\9044\152}% U+246A
% U+246B CIRCLED NUMBER TWELVE; twelvecircle
\DeclareTextCompositeCommand{\textcircled}{PU}{12}{\9044\153}% U+246B
% U+246C CIRCLED NUMBER THIRTEEN; thirteencircle
\DeclareTextCompositeCommand{\textcircled}{PU}{13}{\9044\154}% U+246C
% U+246D CIRCLED NUMBER FOURTEEN; fourteencircle
\DeclareTextCompositeCommand{\textcircled}{PU}{14}{\9044\155}% U+246D
% U+246E CIRCLED NUMBER FIFTEEN; fifteencircle
\DeclareTextCompositeCommand{\textcircled}{PU}{15}{\9044\156}% U+246E
% U+246F CIRCLED NUMBER SIXTEEN; sixteencircle
\DeclareTextCompositeCommand{\textcircled}{PU}{16}{\9044\157}% U+246F
% U+2470 CIRCLED NUMBER SEVENTEEN; seventeencircle
\DeclareTextCompositeCommand{\textcircled}{PU}{17}{\9044\160}% U+2470
% U+2471 CIRCLED NUMBER EIGHTEEN; eighteencircle
\DeclareTextCompositeCommand{\textcircled}{PU}{18}{\9044\161}% U+2471
% U+2472 CIRCLED NUMBER NINETEEN; nineteencircle
\DeclareTextCompositeCommand{\textcircled}{PU}{19}{\9044\162}% U+2472
% U+2473 CIRCLED NUMBER TWENTY; twentycircle
\DeclareTextCompositeCommand{\textcircled}{PU}{20}{\9044\163}% U+2473
% U+24B6 CIRCLED LATIN CAPITAL LETTER A; Acircle
\DeclareTextCompositeCommand{\textcircled}{PU}{A}{\9044\266}% U+24B6
% U+24B7 CIRCLED LATIN CAPITAL LETTER B; Bcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{B}{\9044\267}% U+24B7
% U+24B8 CIRCLED LATIN CAPITAL LETTER C; Ccircle
\DeclareTextCompositeCommand{\textcircled}{PU}{C}{\9044\270}% U+24B8
% U+24B9 CIRCLED LATIN CAPITAL LETTER D; Dcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{D}{\9044\271}% U+24B9
% U+24BA CIRCLED LATIN CAPITAL LETTER E; Ecircle
\DeclareTextCompositeCommand{\textcircled}{PU}{E}{\9044\272}% U+24BA
% U+24BB CIRCLED LATIN CAPITAL LETTER F; Fcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{F}{\9044\273}% U+24BB
% U+24BC CIRCLED LATIN CAPITAL LETTER G; Gcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{G}{\9044\274}% U+24BC
% U+24BD CIRCLED LATIN CAPITAL LETTER H; Hcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{H}{\9044\275}% U+24BD
% U+24BE CIRCLED LATIN CAPITAL LETTER I; Icircle
\DeclareTextCompositeCommand{\textcircled}{PU}{I}{\9044\276}% U+24BE
% U+24BF CIRCLED LATIN CAPITAL LETTER J; Jcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{J}{\9044\277}% U+24BF
% U+24C0 CIRCLED LATIN CAPITAL LETTER K; Kcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{K}{\9044\300}% U+24C0
% U+24C1 CIRCLED LATIN CAPITAL LETTER L; Lcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{L}{\9044\301}% U+24C1
% U+24C2 CIRCLED LATIN CAPITAL LETTER M; Mcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{M}{\9044\302}% U+24C2
% U+24C3 CIRCLED LATIN CAPITAL LETTER N; Ncircle
\DeclareTextCompositeCommand{\textcircled}{PU}{N}{\9044\303}% U+24C3
% U+24C4 CIRCLED LATIN CAPITAL LETTER O; Ocircle
\DeclareTextCompositeCommand{\textcircled}{PU}{O}{\9044\304}% U+24C4
% U+24C5 CIRCLED LATIN CAPITAL LETTER P; Pcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{P}{\9044\305}% U+24C5
% U+24C6 CIRCLED LATIN CAPITAL LETTER Q; Qcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{Q}{\9044\306}% U+24C6
% U+24C7 CIRCLED LATIN CAPITAL LETTER R; Rcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{R}{\9044\307}% U+24C7
% U+24C8 CIRCLED LATIN CAPITAL LETTER S; Scircle
\DeclareTextCompositeCommand{\textcircled}{PU}{S}{\9044\310}% U+24C8
% U+24C9 CIRCLED LATIN CAPITAL LETTER T; Tcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{T}{\9044\311}% U+24C9
% U+24CA CIRCLED LATIN CAPITAL LETTER U; Ucircle
\DeclareTextCompositeCommand{\textcircled}{PU}{U}{\9044\312}% U+24CA
% U+24CB CIRCLED LATIN CAPITAL LETTER V; Vcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{V}{\9044\313}% U+24CB
% U+24CC CIRCLED LATIN CAPITAL LETTER W; Wcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{W}{\9044\314}% U+24CC
% U+24CD CIRCLED LATIN CAPITAL LETTER X; Xcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{X}{\9044\315}% U+24CD
% U+24CE CIRCLED LATIN CAPITAL LETTER Y; Ycircle
\DeclareTextCompositeCommand{\textcircled}{PU}{Y}{\9044\316}% U+24CE
% U+24CF CIRCLED LATIN CAPITAL LETTER Z; Zcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{Z}{\9044\317}% U+24CF
% U+24D0 CIRCLED LATIN SMALL LETTER A; acircle
\DeclareTextCompositeCommand{\textcircled}{PU}{a}{\9044\320}% U+24D0
% U+24D1 CIRCLED LATIN SMALL LETTER B; bcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{b}{\9044\321}% U+24D1
% U+24D2 CIRCLED LATIN SMALL LETTER C; ccircle
\DeclareTextCompositeCommand{\textcircled}{PU}{c}{\9044\322}% U+24D2
% U+24D3 CIRCLED LATIN SMALL LETTER D; dcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{d}{\9044\323}% U+24D3
% U+24D4 CIRCLED LATIN SMALL LETTER E; ecircle
\DeclareTextCompositeCommand{\textcircled}{PU}{e}{\9044\324}% U+24D4
% U+24D5 CIRCLED LATIN SMALL LETTER F; fcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{f}{\9044\325}% U+24D5
% U+24D6 CIRCLED LATIN SMALL LETTER G; gcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{g}{\9044\326}% U+24D6
% U+24D7 CIRCLED LATIN SMALL LETTER H; hcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{h}{\9044\327}% U+24D7
% U+24D8 CIRCLED LATIN SMALL LETTER I; icircle
\DeclareTextCompositeCommand{\textcircled}{PU}{i}{\9044\330}% U+24D8
% U+24D9 CIRCLED LATIN SMALL LETTER J; jcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{j}{\9044\331}% U+24D9
% U+24DA CIRCLED LATIN SMALL LETTER K; kcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{k}{\9044\332}% U+24DA
% U+24DB CIRCLED LATIN SMALL LETTER L; lcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{l}{\9044\333}% U+24DB
% U+24DC CIRCLED LATIN SMALL LETTER M; mcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{m}{\9044\334}% U+24DC
% U+24DD CIRCLED LATIN SMALL LETTER N; ncircle
\DeclareTextCompositeCommand{\textcircled}{PU}{n}{\9044\335}% U+24DD
% U+24DE CIRCLED LATIN SMALL LETTER O; ocircle
\DeclareTextCompositeCommand{\textcircled}{PU}{o}{\9044\336}% U+24DE
% U+24DF CIRCLED LATIN SMALL LETTER P; pcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{p}{\9044\337}% U+24DF
% U+24E0 CIRCLED LATIN SMALL LETTER Q; qcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{q}{\9044\340}% U+24E0
% U+24E1 CIRCLED LATIN SMALL LETTER R; rcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{r}{\9044\341}% U+24E1
% U+24E2 CIRCLED LATIN SMALL LETTER S; scircle
\DeclareTextCompositeCommand{\textcircled}{PU}{s}{\9044\342}% U+24E2
% U+24E3 CIRCLED LATIN SMALL LETTER T; tcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{t}{\9044\343}% U+24E3
% U+24E4 CIRCLED LATIN SMALL LETTER U; ucircle
\DeclareTextCompositeCommand{\textcircled}{PU}{u}{\9044\344}% U+24E4
% U+24E5 CIRCLED LATIN SMALL LETTER V; vcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{v}{\9044\345}% U+24E5
% U+24E6 CIRCLED LATIN SMALL LETTER W; wcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{w}{\9044\346}% U+24E6
% U+24E7 CIRCLED LATIN SMALL LETTER X; xcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{x}{\9044\347}% U+24E7
% U+24E8 CIRCLED LATIN SMALL LETTER Y; ycircle
\DeclareTextCompositeCommand{\textcircled}{PU}{y}{\9044\350}% U+24E8
% U+24E9 CIRCLED LATIN SMALL LETTER Z; zcircle
\DeclareTextCompositeCommand{\textcircled}{PU}{z}{\9044\351}% U+24E9
% U+24EA CIRCLED DIGIT ZERO
\DeclareTextCompositeCommand{\textcircled}{PU}{0}{\9044\352}% U+24EA
% \end{macrocode}
%
% \subsubsection{Box Drawing: U+2500 to U+257F}
%
% \begin{macrocode}
% U+25E6 WHITE BULLET; *openbullet, whitebullet
\DeclareTextCommand{\textopenbullet}{PU}{\9045\346}% U+25E6
% U+25EF LARGE CIRCLE; largecircle
\DeclareTextCommand{\textbigcircle}{PU}{\9045\357}% U+25EF
% \end{macrocode}
%
% \subsubsection{Miscellaneous Symbols: U+2600 to U+26FF}
%
% \begin{macrocode}
% U+266A EIGHTH NOTE; musicalnote
\DeclareTextCommand{\textmusicalnote}{PU}{\9046\152}% U+266A
% U+26AD MARRIAGE SYMBOL
\DeclareTextCommand{\textmarried}{PU}{\9046\255}% U+26AD
% U+26AE DIVORCE SYMBOL
\DeclareTextCommand{\textdivorced}{PU}{\9046\256}% U+26AE
% \end{macrocode}
%
% \subsubsection{Miscellaneous Mathematical Symbols-A: U+27C0 to U+27EF}
%
% \begin{macrocode}
% U+27E6 MATHEMATICAL LEFT WHITE SQUARE BRACKET
\DeclareTextCommand{\textlbrackdbl}{PU}{\9047\346}% U+27E6
% U+27E7 MATHEMATICAL RIGHT WHITE SQUARE BRACKET
\DeclareTextCommand{\textrbrackdbl}{PU}{\9047\347}% U+27E7
% \end{macrocode}
%
% \subsubsection{Alphabetic Presentation Forms: U+FB00 to U+FB4F}
%
% \begin{macrocode}
% U+FB01 LATIN SMALL LIGATURE FI; fi
\DeclareTextCommand{\textfi}{PU}{\9373\001}% U+FB01
% U+FB02 LATIN SMALL LIGATURE FL; fl
\DeclareTextCommand{\textfl}{PU}{\9373\002}% U+FB02
% \end{macrocode}
%
% \subsubsection{Miscellaneous}
%
% \begin{macrocode}
\DeclareTextCommand{\SS}{PU}{SS}
% \end{macrocode}
%
% \subsubsection{Aliases}
%
% Aliases (german.sty)
% \begin{macrocode}
\DeclareTextCommand{\textglqq}{PU}{\quotedblbase}
\DeclareTextCommand{\textgrqq}{PU}{\textquotedblleft}
\DeclareTextCommand{\textglq}{PU}{\quotesinglbase}
\DeclareTextCommand{\textgrq}{PU}{\textquoteleft}
\DeclareTextCommand{\textflqq}{PU}{\guillemotleft}
\DeclareTextCommand{\textfrqq}{PU}{\guillemotright}
\DeclareTextCommand{\textflq}{PU}{\guilsinglleft}
\DeclareTextCommand{\textfrq}{PU}{\guilsinglright}
% \end{macrocode}
% Aliases (math names)
% \begin{macrocode}
\DeclareTextCommand{\textneg}{PU}{\textlogicalnot}
\DeclareTextCommand{\texttimes}{PU}{\textmultiply}
\DeclareTextCommand{\textdiv}{PU}{\textdivide}
\DeclareTextCommand{\textpm}{PU}{\textplusminus}
\DeclareTextCommand{\textcdot}{PU}{\textperiodcentered}
% \end{macrocode}
%
% \begin{macrocode}
%</puenc>
% \end{macrocode}
%
% \subsection{PU encoding, additions for Vn\TeX}
%
% This file is provided by Han The Thanh.
%
% \begin{macrocode}
%<*puvnenc>
% \end{macrocode}
% \begin{macrocode}
\DeclareTextCommand{\abreve}{PU}{\81\003}
\DeclareTextCommand{\acircumflex}{PU}{\80\342}
\DeclareTextCommand{\dj}{PU}{\81\021}
\DeclareTextCommand{\ecircumflex}{PU}{\80\352}
\DeclareTextCommand{\ocircumflex}{PU}{\80\364}
\DeclareTextCommand{\ohorn}{PU}{\81\241}
\DeclareTextCommand{\uhorn}{PU}{\81\260}
\DeclareTextCommand{\ABREVE}{PU}{\81\002}
\DeclareTextCommand{\ACIRCUMFLEX}{PU}{\80\302}
\DeclareTextCommand{\DJ}{PU}{\81\020}
\DeclareTextCommand{\ECIRCUMFLEX}{PU}{\80\312}
\DeclareTextCommand{\OCIRCUMFLEX}{PU}{\80\324}
\DeclareTextCommand{\OHORN}{PU}{\81\240}
\DeclareTextCommand{\UHORN}{PU}{\81\257}
% \end{macrocode}
% \begin{macrocode}
\DeclareTextCompositeCommand{\'}{PU}{a}{\80\341}
\DeclareTextCompositeCommand{\d}{PU}{a}{\9036\241}
\DeclareTextCompositeCommand{\`}{PU}{a}{\80\340}
\DeclareTextCompositeCommand{\h}{PU}{a}{\9036\243}
\DeclareTextCompositeCommand{\~}{PU}{a}{\80\343}
\DeclareTextCompositeCommand{\'}{PU}{\abreve}{\9036\257}
\DeclareTextCompositeCommand{\d}{PU}{\abreve}{\9036\267}
\DeclareTextCompositeCommand{\`}{PU}{\abreve}{\9036\261}
\DeclareTextCompositeCommand{\h}{PU}{\abreve}{\9036\263}
\DeclareTextCompositeCommand{\~}{PU}{\abreve}{\9036\265}
\DeclareTextCompositeCommand{\'}{PU}{\acircumflex}{\9036\245}
\DeclareTextCompositeCommand{\d}{PU}{\acircumflex}{\9036\255}
\DeclareTextCompositeCommand{\`}{PU}{\acircumflex}{\9036\247}
\DeclareTextCompositeCommand{\h}{PU}{\acircumflex}{\9036\251}
\DeclareTextCompositeCommand{\~}{PU}{\acircumflex}{\9036\253}
\DeclareTextCompositeCommand{\'}{PU}{e}{\80\351}
\DeclareTextCompositeCommand{\d}{PU}{e}{\9036\271}
\DeclareTextCompositeCommand{\`}{PU}{e}{\80\350}
\DeclareTextCompositeCommand{\h}{PU}{e}{\9036\273}
\DeclareTextCompositeCommand{\~}{PU}{e}{\9036\275}
\DeclareTextCompositeCommand{\'}{PU}{\ecircumflex}{\9036\277}
\DeclareTextCompositeCommand{\d}{PU}{\ecircumflex}{\9036\307}
\DeclareTextCompositeCommand{\`}{PU}{\ecircumflex}{\9036\301}
\DeclareTextCompositeCommand{\h}{PU}{\ecircumflex}{\9036\303}
\DeclareTextCompositeCommand{\~}{PU}{\ecircumflex}{\9036\305}
\DeclareTextCompositeCommand{\'}{PU}{i}{\80\355}
\DeclareTextCompositeCommand{\d}{PU}{i}{\9036\313}
\DeclareTextCompositeCommand{\`}{PU}{i}{\80\354}
\DeclareTextCompositeCommand{\h}{PU}{i}{\9036\311}
\DeclareTextCompositeCommand{\~}{PU}{i}{\81\051}
\DeclareTextCompositeCommand{\'}{PU}{o}{\80\363}
\DeclareTextCompositeCommand{\d}{PU}{o}{\9036\315}
\DeclareTextCompositeCommand{\`}{PU}{o}{\80\362}
\DeclareTextCompositeCommand{\h}{PU}{o}{\9036\317}
\DeclareTextCompositeCommand{\~}{PU}{o}{\80\365}
\DeclareTextCompositeCommand{\'}{PU}{\ocircumflex}{\9036\321}
\DeclareTextCompositeCommand{\d}{PU}{\ocircumflex}{\9036\331}
\DeclareTextCompositeCommand{\`}{PU}{\ocircumflex}{\9036\323}
\DeclareTextCompositeCommand{\h}{PU}{\ocircumflex}{\9036\325}
\DeclareTextCompositeCommand{\~}{PU}{\ocircumflex}{\9036\327}
\DeclareTextCompositeCommand{\'}{PU}{\ohorn}{\9036\333}
\DeclareTextCompositeCommand{\d}{PU}{\ohorn}{\9036\343}
\DeclareTextCompositeCommand{\`}{PU}{\ohorn}{\9036\335}
\DeclareTextCompositeCommand{\h}{PU}{\ohorn}{\9036\337}
\DeclareTextCompositeCommand{\~}{PU}{\ohorn}{\9036\341}
\DeclareTextCompositeCommand{\'}{PU}{u}{\80\372}
\DeclareTextCompositeCommand{\d}{PU}{u}{\9036\345}
\DeclareTextCompositeCommand{\`}{PU}{u}{\80\371}
\DeclareTextCompositeCommand{\h}{PU}{u}{\9036\347}
\DeclareTextCompositeCommand{\~}{PU}{u}{\81\151}
\DeclareTextCompositeCommand{\'}{PU}{\uhorn}{\9036\351}
\DeclareTextCompositeCommand{\d}{PU}{\uhorn}{\9036\361}
\DeclareTextCompositeCommand{\`}{PU}{\uhorn}{\9036\353}
\DeclareTextCompositeCommand{\h}{PU}{\uhorn}{\9036\355}
\DeclareTextCompositeCommand{\~}{PU}{\uhorn}{\9036\357}
\DeclareTextCompositeCommand{\'}{PU}{y}{\80\375}
\DeclareTextCompositeCommand{\d}{PU}{y}{\9036\365}
\DeclareTextCompositeCommand{\`}{PU}{y}{\9036\363}
\DeclareTextCompositeCommand{\h}{PU}{y}{\9036\367}
\DeclareTextCompositeCommand{\~}{PU}{y}{\9036\371}
\DeclareTextCompositeCommand{\'}{PU}{A}{\80\301}
\DeclareTextCompositeCommand{\d}{PU}{A}{\9036\240}
\DeclareTextCompositeCommand{\`}{PU}{A}{\80\300}
\DeclareTextCompositeCommand{\h}{PU}{A}{\9036\242}
\DeclareTextCompositeCommand{\~}{PU}{A}{\80\303}
\DeclareTextCompositeCommand{\'}{PU}{\ABREVE}{\9036\256}
\DeclareTextCompositeCommand{\d}{PU}{\ABREVE}{\9036\266}
\DeclareTextCompositeCommand{\`}{PU}{\ABREVE}{\9036\260}
\DeclareTextCompositeCommand{\h}{PU}{\ABREVE}{\9036\262}
\DeclareTextCompositeCommand{\~}{PU}{\ABREVE}{\9036\264}
\DeclareTextCompositeCommand{\'}{PU}{\ACIRCUMFLEX}{\9036\244}
\DeclareTextCompositeCommand{\d}{PU}{\ACIRCUMFLEX}{\9036\254}
\DeclareTextCompositeCommand{\`}{PU}{\ACIRCUMFLEX}{\9036\246}
\DeclareTextCompositeCommand{\h}{PU}{\ACIRCUMFLEX}{\9036\250}
\DeclareTextCompositeCommand{\~}{PU}{\ACIRCUMFLEX}{\9036\252}
\DeclareTextCompositeCommand{\'}{PU}{E}{\80\311}
\DeclareTextCompositeCommand{\d}{PU}{E}{\9036\270}
\DeclareTextCompositeCommand{\`}{PU}{E}{\80\310}
\DeclareTextCompositeCommand{\h}{PU}{E}{\9036\272}
\DeclareTextCompositeCommand{\~}{PU}{E}{\9036\274}
\DeclareTextCompositeCommand{\'}{PU}{\ECIRCUMFLEX}{\9036\276}
\DeclareTextCompositeCommand{\d}{PU}{\ECIRCUMFLEX}{\9036\306}
\DeclareTextCompositeCommand{\`}{PU}{\ECIRCUMFLEX}{\9036\300}
\DeclareTextCompositeCommand{\h}{PU}{\ECIRCUMFLEX}{\9036\302}
\DeclareTextCompositeCommand{\~}{PU}{\ECIRCUMFLEX}{\9036\304}
\DeclareTextCompositeCommand{\'}{PU}{I}{\80\315}
\DeclareTextCompositeCommand{\d}{PU}{I}{\9036\312}
\DeclareTextCompositeCommand{\`}{PU}{I}{\80\314}
\DeclareTextCompositeCommand{\h}{PU}{I}{\9036\310}
\DeclareTextCompositeCommand{\~}{PU}{I}{\81\050}
\DeclareTextCompositeCommand{\'}{PU}{O}{\80\323}
\DeclareTextCompositeCommand{\d}{PU}{O}{\9036\314}
\DeclareTextCompositeCommand{\`}{PU}{O}{\80\322}
\DeclareTextCompositeCommand{\h}{PU}{O}{\9036\316}
\DeclareTextCompositeCommand{\~}{PU}{O}{\80\325}
\DeclareTextCompositeCommand{\'}{PU}{\OCIRCUMFLEX}{\9036\320}
\DeclareTextCompositeCommand{\d}{PU}{\OCIRCUMFLEX}{\9036\330}
\DeclareTextCompositeCommand{\`}{PU}{\OCIRCUMFLEX}{\9036\322}
\DeclareTextCompositeCommand{\h}{PU}{\OCIRCUMFLEX}{\9036\324}
\DeclareTextCompositeCommand{\~}{PU}{\OCIRCUMFLEX}{\9036\326}
\DeclareTextCompositeCommand{\'}{PU}{\OHORN}{\9036\332}
\DeclareTextCompositeCommand{\d}{PU}{\OHORN}{\9036\342}
\DeclareTextCompositeCommand{\`}{PU}{\OHORN}{\9036\334}
\DeclareTextCompositeCommand{\h}{PU}{\OHORN}{\9036\336}
\DeclareTextCompositeCommand{\~}{PU}{\OHORN}{\9036\340}
\DeclareTextCompositeCommand{\'}{PU}{U}{\80\332}
\DeclareTextCompositeCommand{\d}{PU}{U}{\9036\344}
\DeclareTextCompositeCommand{\`}{PU}{U}{\80\331}
\DeclareTextCompositeCommand{\h}{PU}{U}{\9036\346}
\DeclareTextCompositeCommand{\~}{PU}{U}{\81\150}
\DeclareTextCompositeCommand{\'}{PU}{\UHORN}{\9036\350}
\DeclareTextCompositeCommand{\d}{PU}{\UHORN}{\9036\360}
\DeclareTextCompositeCommand{\`}{PU}{\UHORN}{\9036\352}
\DeclareTextCompositeCommand{\h}{PU}{\UHORN}{\9036\354}
\DeclareTextCompositeCommand{\~}{PU}{\UHORN}{\9036\356}
\DeclareTextCompositeCommand{\'}{PU}{Y}{\80\335}
\DeclareTextCompositeCommand{\d}{PU}{Y}{\9036\364}
\DeclareTextCompositeCommand{\`}{PU}{Y}{\9036\362}
\DeclareTextCompositeCommand{\h}{PU}{Y}{\9036\366}
\DeclareTextCompositeCommand{\~}{PU}{Y}{\9036\370}
% \end{macrocode}
% \begin{macrocode}
%</puvnenc>
% \end{macrocode}
%
% \subsection{PU encoding, additions for Arabi}
%
% This file is provided and maintained by Youssef Jabri.
%
% \begin{macrocode}
%<*puarenc>
% \end{macrocode}
% \begin{macrocode}
\DeclareTextCommand{\hamza}{PU}{\86\041}% 0621;afii57409;ARABIC LETTER HAMZA
\DeclareTextCommand{\alefmadda}{PU}{\86\042}% 0622;afii57410;ARABIC LETTER ALEF WITH MADDA ABOVE
\DeclareTextCommand{\alefhamza}{PU}{\86\043}% 0623;afii57411;ARABIC LETTER ALEF WITH HAMZA ABOVE
\DeclareTextCommand{\wawhamza}{PU}{\86\044} % 0624;afii57412;ARABIC LETTER WAW WITH HAMZA ABOVE
\DeclareTextCommand{\aleflowerhamza}{PU}{\86\045}% 0625;afii57413;ARABIC LETTER ALEF WITH HAMZA BELOW
\DeclareTextCommand{\yahamza}{PU}{\86\046}% 0626;afii57414;ARABIC LETTER YEH WITH HAMZA ABOVE
\DeclareTextCommand{\alef}{PU}{\86\047}% 0627;afii57415;ARABIC LETTER ALEF
\DeclareTextCommand{\baa}{PU}{\86\050}% 0628;afii57416;ARABIC LETTER BEH
\DeclareTextCommand{\T}{PU}{\86\051}% 0629;afii57417;ARABIC LETTER TEH MARBUTA
\DeclareTextCommand{\taa}{PU}{\86\052}% 062A;afii57418;ARABIC LETTER TEH
\DeclareTextCommand{\thaa}{PU}{\86\053}% 062B;afii57419;ARABIC LETTER THEH
\DeclareTextCommand{\jeem}{PU}{\86\054}% 062C;afii57420;ARABIC LETTER JEEM
\DeclareTextCommand{\Haa}{PU}{\86\055}% 062D;afii57421;ARABIC LETTER HAH
\DeclareTextCommand{\kha}{PU}{\86\056}% 062E;afii57422;ARABIC LETTER KHAH
\DeclareTextCommand{\dal}{PU}{\86\057}% 062F;afii57423;ARABIC LETTER DAL
\DeclareTextCommand{\dhal}{PU}{\86\060}% 0630;afii57424;ARABIC LETTER THAL
\DeclareTextCommand{\ra}{PU}{\86\061}% 0631;afii57425;ARABIC LETTER REH
\DeclareTextCommand{\zay}{PU}{\86\062}% 0632;afii57426;ARABIC LETTER ZAIN
\DeclareTextCommand{\seen}{PU}{\86\063}% 0633;afii57427;ARABIC LETTER SEEN
\DeclareTextCommand{\sheen}{PU}{\86\064}% 0634;afii57428;ARABIC LETTER SHEEN
\DeclareTextCommand{\sad}{PU}{\86\065}% 0635;afii57429;ARABIC LETTER SAD
\DeclareTextCommand{\dad}{PU}{\86\066}% 0636;afii57430;ARABIC LETTER DAD
\DeclareTextCommand{\Ta}{PU}{\86\067}% 0637;afii57431;ARABIC LETTER TAH
\DeclareTextCommand{\za}{PU}{\86\070}% 0638;afii57432;ARABIC LETTER ZAH
\DeclareTextCommand{\ayn}{PU}{\86\071}% 0639;afii57433;ARABIC LETTER AIN
\DeclareTextCommand{\ghayn}{PU}{\86\072}% 063A;afii57434;ARABIC LETTER GHAIN
\DeclareTextCommand{\tatweel}{PU}{\86\100}% 0640;afii57440;ARABIC TATWEEL
\DeclareTextCommand{\fa}{PU}{\86\101}% 0641;afii57441;ARABIC LETTER FEH
\DeclareTextCommand{\qaf}{PU}{\86\102}% 0642;afii57442;ARABIC LETTER QAF
\DeclareTextCommand{\kaf}{PU}{\86\103}% 0643;afii57443;ARABIC LETTER KAF
\DeclareTextCommand{\lam}{PU}{\86\104}% 0644;afii57444;ARABIC LETTER LAM
\DeclareTextCommand{\meem}{PU}{\86\105}% 0645;afii57445;ARABIC LETTER MEEM
\DeclareTextCommand{\nun}{PU}{\86\106}% 0646;afii57446;ARABIC LETTER NOON
\DeclareTextCommand{\ha}{PU}{\86\107}% 0647;afii57470;ARABIC LETTER HEH
\DeclareTextCommand{\waw}{PU}{\86\110}% 0648;afii57448;ARABIC LETTER WAW
\DeclareTextCommand{\alefmaqsura}{PU}{\86\111}% 0649;afii57449;ARABIC LETTER ALEF MAKSURA
\DeclareTextCommand{\ya}{PU}{\86\112}% 064A;afii57450;ARABIC LETTER YEH
% \end{macrocode}
% \begin{macrocode}
\DeclareTextCommand{\nasb}{PU}{\86\113}% 064B;afii57451;ARABIC FATHATAN
\DeclareTextCommand{\raff}{PU}{\86\114}% 064C;afii57452;ARABIC DAMMATAN
\DeclareTextCommand{\jarr}{PU}{\86\115}% 064D;afii57453;ARABIC KASRATAN
\DeclareTextCommand{\fatha}{PU}{\86\116}% 064E;afii57454;ARABIC FATHA
\DeclareTextCommand{\damma}{PU}{\86\117}% 064F;afii57455;ARABIC DAMMA
\DeclareTextCommand{\kasra}{PU}{\86\120}% 0650;afii57456;ARABIC KASRA
\DeclareTextCommand{\shadda}{PU}{\86\121}% 0651;afii57457;ARABIC SHADDA
\DeclareTextCommand{\sukun}{PU}{\86\122}% 0652;afii57458;ARABIC SUKUN
% \end{macrocode}
% Farsi
% \begin{macrocode}
\DeclareTextCommand{\peh}{PU}{\86\176}% 067E;afii57506;ARABIC LETTER PEH
\DeclareTextCommand{\tcheh}{PU}{\86\206}% 0686;afii57507;ARABIC LETTER TCHEH
\DeclareTextCommand{\jeh}{PU}{\86\230}% 0698;afii57508;ARABIC LETTER JEH
\DeclareTextCommand{\farsikaf}{PU}{\86\251}% 06A9???;afii?????;FARSI LETTER KAF
\DeclareTextCommand{\gaf}{PU}{\86\257}% 06AF;afii57509;ARABIC LETTER GAF
\DeclareTextCommand{\farsiya}{PU}{\86\314}% 06CC;afii?????;FARSI LETTER YEH
% \end{macrocode}
% \begin{macrocode}
\DeclareTextCommand{\ZWNJ}{PU}{\9040\014}% 200C;ZWNJ%
\DeclareTextCommand{\noboundary}{PU}{\86\325}% 200D;ZWJ
% \end{macrocode}
% \begin{macrocode}
%</puarenc>
% \end{macrocode}
%
% \section{End of file hycheck.tex}
%
% \begin{macrocode}
%<*check>
\typeout{}
\begin{document}
\end{document}
%</check>
% \end{macrocode}
%
% \Finale
%
\endinput
|