summaryrefslogtreecommitdiff
path: root/language/japanese/uplatex/ujclasses.dtx
blob: 08881f00b7e34ce476e4259b45717d0c743031fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
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
% \iffalse meta-comment
%% File: ujclasses.dtx
%
%    pLaTeX class files:
%       Copyright 1995-2001 ASCII Corporation.
%    and modified for upLaTeX
%
%  Copyright (c) 2010 ASCII MEDIA WORKS
%  Copyright (c) 2016 Takuji Tanaka
%  Copyright (c) 2016-2020 Japanese TeX Development Community
%
%  This file is part of the upLaTeX2e system (community edition).
%  --------------------------------------------------------------
%
% \fi
%
%
% \setcounter{StandardModuleDepth}{1}
% \StopEventually{}
%
% \iffalse
% \changes{v1.0}{1995/04/19}{first edition}
% \changes{v1.0a}{1995/08/30}{ペヌゞスタむル郚分の調敎}
% \changes{v1.0b}{1995/11/08}{ペヌゞスタむル郚分の調敎}
% \changes{v1.0c}{1996/01/30}{\LaTeX\ \texttt{!<1995/12/01!>}での修正を反映}
% \changes{v1.0d}{1996/02/29}{デフォルトペヌゞスタむルの修正}
% \changes{v1.0e}{1996/03/14}{itemize, enumerate環境の修正}
% \changes{v1.0f}{1996/07/10}{面付けオプションを远加}
% \changes{v1.0g}{1996/09/03}{トンボの暪に䜜成日時を出力するようにした}
% \changes{v1.1}{1997/01/16}{\LaTeX\ \texttt{!<1996/06/01!>}版に察応}
% \changes{v1.1a}{1997/01/23}{\LaTeX\ \texttt{!<1996/12/01!>}版に察応}
% \changes{v1.1a}{1997/01/25}{互換モヌドでp\LaTeX~2.09のa4jなどの
%      甚玙オプションに察応}
% \changes{v1.1b}{1997/01/28}{日本語ファミリの宣蚀を再床、実装}
% \changes{v1.1d}{1997/01/29}{2eモヌドでa4jなどのオプションに察応}
% \changes{v1.1e}{1997/04/08}{トップマヌゞンの倀を修正}
% \changes{v1.1f}{1997/07/08}{瞊組クラスでベヌスラむンがおかしいのを修正}
% \changes{v1.1g}{1997/08/25}{片面印刷のずき、sectionレベルが出力されない
%      のを修正}
% \changes{v1.1h}{1997/09/03}{landscape指定時の倀を修正}
% \changes{v1.1i}{1997/12/12}{report, bookクラスで片面印刷時に、
%      bothstyleスタむルにするず、コンパむル゚ラヌになるのを修正}
% \changes{v1.1j}{1998/02/03}{互換モヌド時のa5pのトップマヌゞンを0.7in増加}
% \changes{v1.1k}{1998/03/23}{reportずbookクラスで番号を付けない芋出しの
%   ペナルティが\cs{M@}だったのを\cs{@M}に修正}
% \changes{v1.1m}{1998/04/07}{\cs{today}の蚈算手順を倉曎}
% \changes{v1.1n}{1998/10/13}{report,bookクラスの衚番号が
%   芋出しレベルに関係なくchapter番号が出力されおしたうのを修正}
% \changes{v1.1n}{1998/10/13}{mentukeオプションが゚ラヌになっおいたのを修正}
% \changes{v1.1o}{1998/12/24}{secnumdepthカりンタを$-1$以䞋にするず、
%   芋出し文字列も消えおしたうのを修正}
% \changes{v1.1p}{1999/1/6}{\cs{oddsidemargin}のポむントぞの倉換を埌ろに}
% \changes{v1.1q}{1999/05/18}{瞊組時のみに蚭定するようにした}
% \changes{v1.1r}{1999/08/09}{トップマヌゞンの蚈算匏を修正}
% \changes{v1.2}{2001/09/04}{\cs{chapter}の出力䜍眮がアスタリスク圢匏ず
%   そうでないずきず違うのを修正(ありがずう、鈎朚接さん)}
% \changes{v1.3}{2001/10/04}{目次のペヌゞ番号の曞䜓を\cs{rmfamily}から
%   \cs{normalfont}に倉曎(ありがずう、鈎朚たMILNさん)}
% \changes{v1.4}{2002/04/09}{瞊組スタむルで\cs{flushbottom}しないようにした}
% \changes{v1.5}{2004/01/15}{\cs{part},\cs{chapter}の\cs{@afterindentfalse}を
%   \cs{@afterindenttrue}に倉曎。
%   \cs{section},\cs{subsection},\cs{subsubsection}の前埌空きの䌞瞮幅を修正。
%   (ありがずうございたす、鈎朚たMILNさん)}
% \changes{v1.6}{2006/06/27}{フォントコマンドを修正。ありがずう、ymtさん。}
% \changes{v1.6-u00}{2011/05/07}{p\LaTeX{}甚からup\LaTeX{}甚に修正。}
% \changes{v1.7}{2016/11/12}{ドキュメントに反しお\cs{@maketitle}が
%    空になっおいなかったのを修正}
% \changes{v1.7}{2016/11/12}{use \cs{@width} (sync with classes.dtx v1.3a)}
% \changes{v1.7}{2016/11/12}{Replaced all \cs{hbox to} by
%    \cs{hb@xt@} (sync with classes.dtx v1.3a)}
% \changes{v1.7}{2016/11/12}{Moved \cs{@mkboth} out of heading
%                            arg (sync with classes.dtx v1.4c)}
% \changes{v1.7}{2016/11/12}{\cs{columnsep}ず\cs{columnseprule}の
%    倉曎を埌ろに移動(sync with classes.dtx v1.4f)}
% \changes{v1.7a}{2016/11/16}{Check \texttt{@noskipsec} switch and
%    possibly force horizontal mode (sync with classes.dtx v1.4a)}
% \changes{v1.7a}{2016/11/16}{replace \cs{reset@font} with
%    \cs{normalfont} (sync with classes.dtx v1.3c)}
% \changes{v1.7a}{2016/11/16}{Added \cs{nobreak} for
%    latex/2343 (sync with ltsect.dtx v1.0z)}
% \changes{v1.7a}{2016/11/16}{Use \cs{expandafter}
%    (sync with ltlists.dtx v1.0j)}
% \changes{v1.7b}{2016/11/22}{補足ドキュメントを远加}
% \changes{v1.7b-u00}{2016/11/22}{p\LaTeX{}甚に远随}
% \changes{v1.7c}{2016/12/18}{Only add empty page after part if
%    twoside and openright (sync with classes.dtx v1.4b)}
% \changes{v1.7c}{2016/12/18}{奇劙なarticleガヌドずコヌドを削陀しお
%    ドキュメントを远加}
% \changes{v1.7c-u00}{2016/12/18}{p\LaTeX{}甚に远随}
% \changes{v1.7d}{2017/02/15}{\cs{if@openleft}スむッチ远加}
% \changes{v1.7d}{2017/02/15}{openleftオプション远加}
% \changes{v1.7d}{2017/02/15}{\cs{cleardoublepage}の代甚ずなる呜什矀を远加}
% \changes{v1.7d}{2017/02/15}{bookクラスでtitlepageを必ず奇数ペヌゞ
%   に送るように倉曎}
% \changes{v1.7d}{2017/02/15}{titlepageのペヌゞ番号を奇数ならば1に、
%   偶数ならば0にリセットするように倉曎}
% \changes{v1.7d}{2017/02/15}{瞊組クラスの所属衚瀺の番号を盎立にした}
% \changes{v1.7d-u00}{2017/02/15}{p\LaTeX{}甚に远随}
% \changes{v1.7e}{2017/03/05}{トンボに衚瀺するゞョブ情報の曞匏を倉曎}
% \changes{v1.7e}{2017/03/05}{\cs{frontmatter}ず\cs{mainmatter}を
%   奇数ペヌゞに送るように倉曎}
% \changes{v1.7e-u00}{2017/03/05}{p\LaTeX{}甚に远随}
% \changes{v1.7f}{2017/08/31}{和文曞䜓の基準を党角空癜から「挢」に倉曎}
% \changes{v1.7g}{2017/09/19}{内郚凊理で䜿ったボックス0を空にした}
% \changes{v1.7g-u00}{2017/09/19}{p\LaTeX{}甚に远随}
% \changes{v1.7h}{2018/02/04}{和文スケヌル倀\cs{Cjascale}を定矩}
% \changes{v1.7h-u00}{2018/02/04}{p\LaTeX{}甚に远随}
% \changes{v1.8}{2018/07/03}{\cs{today}のデフォルトを和暊から西暊に倉曎}
% \changes{v1.8-u00}{2018/07/03}{p\LaTeX{}甚に远随}
% \changes{v1.8a}{2018/10/25}{ファむル曞き出し時の行末文字察策
%    (sync with ltsect.dtx 2018/09/26 v1.1c)}
% \changes{v1.8a-u00}{2018/10/25}{p\LaTeX{}甚に远随}
% \changes{v1.8b}{2019/04/02}{新元号察応}
% \changes{v1.8b-u00}{2019/04/02}{p\LaTeX{}甚に远随}
% \changes{v1.8c}{2019/10/17}{フォントサむズ倉曎呜什をrobustに
%    (sync with classes.dtx 2019/08/27 v1.4j)}
% \changes{v1.8c-u00}{2019/10/17}{p\LaTeX{}甚に远随}
% \changes{v1.8d}{2019/10/25}{Don't use \cs{MakeRobust} if
%    in rollback prior to 2015
%    (sync with classes.dtx 2019/10/25 v1.4k)}
% \changes{v1.8d-u00}{2019/10/25}{p\LaTeX{}甚に远随}
% \changes{v1.8e}{2020/01/03}{Normalize label fonts
%    (sync with classes.dtx 2019/12/20 v1.4l)}
% \changes{v1.8e-u00}{2020/01/03}{p\LaTeX{}甚に远随}
% \changes{v1.8f}{2020/09/30}{add a fourth argument for better
%    hyperref compability
%    (sync with ltsect.dtx 2020/07/27 v1.1e)}
% \changes{v1.8f-u00}{2020/09/30}{p\LaTeX{}甚に远随}
% \fi
%
% \iffalse
\NeedsTeXFormat{pLaTeX2e}
%<*driver>
\ProvidesFile{ujclasses.dtx}
%</driver>
%<*yoko>
%<article>\ProvidesClass{ujarticle}
%<report>\ProvidesClass{ujreport}
%<book>\ProvidesClass{ujbook}
%<10pt&!bk>\ProvidesFile{ujsize10.clo}
%<11pt&!bk>\ProvidesFile{ujsize11.clo}
%<12pt&!bk>\ProvidesFile{ujsize12.clo}
%<10pt&bk>\ProvidesFile{ujbk10.clo}
%<11pt&bk>\ProvidesFile{ujbk11.clo}
%<12pt&bk>\ProvidesFile{ujbk12.clo}
%</yoko>
%<*tate>
%<article>\ProvidesClass{utarticle}
%<report>\ProvidesClass{utreport}
%<book>\ProvidesClass{utbook}
%<10pt&!bk>\ProvidesFile{utsize10.clo}
%<11pt&!bk>\ProvidesFile{utsize11.clo}
%<12pt&!bk>\ProvidesFile{utsize12.clo}
%<10pt&bk>\ProvidesFile{utbk10.clo}
%<11pt&bk>\ProvidesFile{utbk11.clo}
%<12pt&bk>\ProvidesFile{utbk12.clo}
%</tate>
  [2020/09/30 v1.8f-u00
%<article|report|book> Standard upLaTeX class]
%<10pt|11pt|12pt>  Standard upLaTeX file (size option)]
%<*driver>
]
\documentclass{jltxdoc}
\GetFileInfo{jclasses.dtx}
\title{up\LaTeXe{}の暙準クラス\space\fileversion}
\author{Ken Nakano \& TTK}
\date{䜜成日\filedate}
\begin{document}
  \maketitle
  \tableofcontents
  \DocInput{\filename}
\end{document}
%</driver>
% \fi
%
% このファむルは、up\LaTeXe{}の暙準クラスファむルです。
% p\LaTeXe{}の暙準クラスファむルをup\LaTeXe{}甚に修正したものです。
% \dst{}プログラムによっお、暪組甚のクラスファむルず瞊組甚のクラスファむル
% を䜜成するこずができたす。
%
% 次に\dst{}プログラムのためのオプションを瀺したす。
%
% \DeleteShortVerb{\|}
% \begin{center}
% \begin{tabular}{l|l}
% \emph{オプション} & \emph{意味}\\\hline
% article & articleクラスを生成\\
% report  & reportクラスを生成\\
% book    & bookクラスを生成\\
% 10pt    & 10ptサむズの蚭定を生成\\
% 11pt    & 11ptサむズの蚭定を生成\\
% 12pt    & 12ptサむズの蚭定を生成\\
% bk      & bookクラス甚のサむズの蚭定を生成\\
% tate    & 瞊組甚の蚭定を生成\\
% yoko    & 暪組甚の蚭定を生成\\
% \end{tabular}
% \end{center}
% \MakeShortVerb{\|}
%
%
% \section{オプションスむッチ}
% ここでは、埌ほど䜿甚するいく぀かのコマンドやスむッチを定矩しおいたす。
%
% \begin{macro}{\c@@paper}
% 甚玙サむズを瀺すために䜿いたす。
% A4, A5, B4, B5甚玙はそれぞれ、1, 2, 3, 4ずしお衚されたす。
%    \begin{macrocode}
%<*article|report|book>
\newcounter{@paper}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\if@landscape}
% 甚玙を暪向きにするかどうかのスむッチです。デフォルトは、瞊向きです。
%    \begin{macrocode}
\newif\if@landscape \@landscapefalse
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@ptsize}
% 組版をするポむント数の䞀の䜍を保存するために䜿いたす。
% 0, 1, 2のいずれかです。
%    \begin{macrocode}
\newcommand{\@ptsize}{}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\if@restonecol}
% 二段組時に甚いるテンポラリスむッチです。
%    \begin{macrocode}
\newif\if@restonecol
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\if@titlepage}
% タむトルペヌゞやアブストラクト抂芁を
% 独立したペヌゞにするかどうかのスむッチです。
% reportずbookスタむルのデフォルトでは、独立したペヌゞになりたす。
%    \begin{macrocode}
\newif\if@titlepage
%<article>\@titlepagefalse
%<report|book>\@titlepagetrue
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\if@openright}
% chapterレベルを右ペヌゞからはじめるかどうかのスむッチです。
% 暪組では奇数ペヌゞ、瞊組では偶数ペヌゞから始たるこずになりたす。
% reportクラスのデフォルトは、``no''です。
% bookクラスのデフォルトは、``yes''です。
%    \begin{macrocode}
%<!article>\newif\if@openright
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\if@openleft}
% chapterレベルを巊ペヌゞからはじめるかどうかのスむッチです。
% 日本語\TeX{}開発コミュニティ版で新たに远加されたした。
% 暪組では偶数ペヌゞ、瞊組では奇数ペヌゞから始たるこずになりたす。
% reportクラスずbookクラスの䞡方で、デフォルトは``no''です。
% \changes{v1.7d}{2017/02/15}{\cs{if@openleft}スむッチ远加}
%    \begin{macrocode}
%<!article>\newif\if@openleft
%    \end{macrocode}
% \end{macro}
%
% \changes{v1.0c}{1995/12/25}{Macro \cs{if@openbib} removed}
%
% \begin{macro}{\if@mainmatter}
% スむッチ|\@mainmatter|が真の堎合、本文を凊理しおいたす。
% このスむッチが停の堎合は、|\chapter|コマンドは芋出し番号を出力したせん。
%    \begin{macrocode}
%<book>\newif\if@mainmatter \@mainmattertrue
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\hour}
% \begin{macro}{\minute}
%    \begin{macrocode}
\hour\time \divide\hour by 60\relax
\@tempcnta\hour \multiply\@tempcnta 60\relax
\minute\time \advance\minute-\@tempcnta
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\if@stysize}
% \changes{v1.1a}{1997/01/25}{Add \cs{if@stysize}.}
% p\LaTeXe~2.09互換モヌドで、スタむルオプションにa4j,a5pなどが指定された
% ずきの動䜜を゚ミュレヌトするためのフラグです。
%    \begin{macrocode}
\newif\if@stysize \@stysizefalse
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\if@enablejfam}
% \changes{v1.1b}{1997/01/28}{\break Add \cs{if@enablejfam}}
% 日本語ファミリを宣蚀するために甚いるフラグです。
%    \begin{macrocode}
\newif\if@enablejfam \@enablejfamtrue
%    \end{macrocode}
% 和欧文䞡察応の数匏文字コマンドを有効にするずきに甚いるフラグです。
% マクロの展開順序が耇雑になるのを避けるため、
% デフォルトではfalseずしおありたす。
%    \begin{macrocode}
\newif\if@mathrmmc \@mathrmmcfalse
%    \end{macrocode}
% \end{macro}
%
% \section{オプションの宣蚀}
% ここでは、クラスオプションの宣蚀を行なっおいたす。
%
% \subsection{甚玙オプション}
% 甚玙サむズを指定するオプションです。
%    \begin{macrocode}
\DeclareOption{a4paper}{\setcounter{@paper}{1}%
  \setlength\paperheight {297mm}%
  \setlength\paperwidth  {210mm}}
\DeclareOption{a5paper}{\setcounter{@paper}{2}%
  \setlength\paperheight {210mm}
  \setlength\paperwidth  {148mm}}
\DeclareOption{b4paper}{\setcounter{@paper}{3}%
  \setlength\paperheight {364mm}
  \setlength\paperwidth  {257mm}}
\DeclareOption{b5paper}{\setcounter{@paper}{4}%
  \setlength\paperheight {257mm}
  \setlength\paperwidth  {182mm}}
%    \end{macrocode}
% \changes{v1.0a}{1995/09/26}{Change b4paper width/height 352x250 to 364x257}
% \changes{v1.0a}{1995/09/26}{Change b5paper width/height 250x176 to 257x182}
% ドキュメントクラスに、以䞋のオプションを指定するず、通垞よりもテキストを
% 組み立おる領域の広いスタむルずするこずができたす。
%    \begin{macrocode}
%
\DeclareOption{a4j}{\setcounter{@paper}{1}\@stysizetrue
  \setlength\paperheight {297mm}%
  \setlength\paperwidth  {210mm}}
\DeclareOption{a5j}{\setcounter{@paper}{2}\@stysizetrue
  \setlength\paperheight {210mm}
  \setlength\paperwidth  {148mm}}
\DeclareOption{b4j}{\setcounter{@paper}{3}\@stysizetrue
  \setlength\paperheight {364mm}
  \setlength\paperwidth  {257mm}}
\DeclareOption{b5j}{\setcounter{@paper}{4}\@stysizetrue
  \setlength\paperheight {257mm}
  \setlength\paperwidth  {182mm}}
%
\DeclareOption{a4p}{\setcounter{@paper}{1}\@stysizetrue
  \setlength\paperheight {297mm}%
  \setlength\paperwidth  {210mm}}
\DeclareOption{a5p}{\setcounter{@paper}{2}\@stysizetrue
  \setlength\paperheight {210mm}
  \setlength\paperwidth  {148mm}}
\DeclareOption{b4p}{\setcounter{@paper}{3}\@stysizetrue
  \setlength\paperheight {364mm}
  \setlength\paperwidth  {257mm}}
\DeclareOption{b5p}{\setcounter{@paper}{4}\@stysizetrue
  \setlength\paperheight {257mm}
  \setlength\paperwidth  {182mm}}
%    \end{macrocode}
%
% \subsection{サむズオプション}
% 基準ずなるフォントの倧きさを指定するオプションです。
%    \begin{macrocode}
\if@compatibility
  \renewcommand{\@ptsize}{0}
\else
  \DeclareOption{10pt}{\renewcommand{\@ptsize}{0}}
\fi
\DeclareOption{11pt}{\renewcommand{\@ptsize}{1}}
\DeclareOption{12pt}{\renewcommand{\@ptsize}{2}}
%    \end{macrocode}
%
% \subsection{暪眮きオプション}
% このオプションが指定されるず、甚玙の瞊ず暪の長さを入れ換えたす。
% \changes{v1.1h}{1997/09/03}{オプションの凊理時に瞊暪の倀を亀換}
% \changes{v1.1h}{1997/09/03}{landscapeオプションを互換モヌドでも有効に}
%    \begin{macrocode}
\DeclareOption{landscape}{\@landscapetrue
  \setlength\@tempdima{\paperheight}%
  \setlength\paperheight{\paperwidth}%
  \setlength\paperwidth{\@tempdima}}
%    \end{macrocode}
%
% \subsection{トンボオプション}
% |tombow|オプションが指定されるず、甚玙サむズに合わせおトンボを出力したす。
% このずき、トンボの脇にDVIを䜜成した日付が出力されたす。
% 䜜成日付の出力を抑制するには、|tombow|ではなく、|tombo|ず指定をしたす。
%
% ゞョブ情報の曞匏は元々|filename :  2017/3/5(13:3)|のような曞匏でしたが、
% jsclassesにあわせお桁数固定の|filename (2017-03-05 13:03)|に盎したした。
% \changes{v1.0g}{1996/09/03}{Add to \cs{@bannertoken}.}
% \changes{v1.1a}{1997/01/23}{日付出力オプション}
% \changes{v1.7e}{2017/03/05}{トンボに衚瀺するゞョブ情報の曞匏を倉曎}
%    \begin{macrocode}
\DeclareOption{tombow}{%
  \tombowtrue \tombowdatetrue
  \setlength{\@tombowwidth}{.1\p@}%
  \@bannertoken{%
     \jobname\space(\number\year-\two@digits\month-\two@digits\day
     \space\two@digits\hour:\two@digits\minute)}%
  \maketombowbox}
\DeclareOption{tombo}{%
  \tombowtrue \tombowdatefalse
  \setlength{\@tombowwidth}{.1\p@}%
  \maketombowbox}
%    \end{macrocode}
%
% \subsection{面付けオプション}
% このオプションが指定されるず、トンボオプションを指定したずきず同じ
% 䜍眮に文章を出力したす。䜜成したDVIをフィルムに面付け出力する堎合など
% に指定をしたす。
% \changes{v1.0f}{1996/07/10}{面付けオプションを远加}
% \changes{v1.1n}{1998/10/13}
%     {動䜜しおいなかったのを修正。ありがずう、刀祢さん}
%    \begin{macrocode}
\DeclareOption{mentuke}{%
  \tombowtrue \tombowdatefalse
  \setlength{\@tombowwidth}{\z@}%
  \maketombowbox}
%    \end{macrocode}
%
% \subsection{組方向オプション}
% このオプションが指定されるず、瞊組で組版をしたす。
% \changes{v1.0g}{1997/01/25}{Insert \cs{hbox}, to switch tate-mode.}
% \changes{v1.1d}{1997/02/05}{開始ペヌゞがおかしくなるのを修正}
% \changes{v1.1f}{1997/07/08}{瞊組時にベヌスラむンがおかしくなるのを修正}
%    \begin{macrocode}
\DeclareOption{tate}{%
  \AtBeginDocument{\tate\message{《瞊組モヌド》}%
                   \adjustbaseline}%
}
%    \end{macrocode}
%
% \subsection{䞡面、片面オプション}
% twosideオプションが指定されるず、䞡面印字出力に適した敎圢を行ないたす。
%    \begin{macrocode}
\DeclareOption{oneside}{\@twosidefalse}
\DeclareOption{twoside}{\@twosidetrue}
%    \end{macrocode}
%
% \subsection{二段組オプション}
% 二段組にするかどうかのオプションです。
%    \begin{macrocode}
\DeclareOption{onecolumn}{\@twocolumnfalse}
\DeclareOption{twocolumn}{\@twocolumntrue}
%    \end{macrocode}
%
% \subsection{衚題ペヌゞオプション}
% |@titlepage|が真の堎合、衚題を独立したペヌゞに出力したす。
%    \begin{macrocode}
\DeclareOption{titlepage}{\@titlepagetrue}
\DeclareOption{notitlepage}{\@titlepagefalse}
%    \end{macrocode}
%
% \subsection{右巊起こしオプション}
% chapterを右ペヌゞあるいは巊ペヌゞから
% はじめるかどうかを指定するオプションです。
% |openleft|オプションは日本語\TeX{}開発コミュニティによっお远加されたした。
% \changes{v1.7d}{2017/02/15}{openleftオプション远加}
%    \begin{macrocode}
%<!article>\if@compatibility
%<book>\@openrighttrue
%<!article>\else
%<!article>\DeclareOption{openright}{\@openrighttrue\@openleftfalse}
%<!article>\DeclareOption{openleft}{\@openlefttrue\@openrightfalse}
%<!article>\DeclareOption{openany}{\@openrightfalse\@openleftfalse}
%<!article>\fi
%    \end{macrocode}
%
% \subsection{数匏のオプション}
% \Lopt{leqno}を指定するず、数匏番号を数匏の巊偎に出力したす。
% \Lopt{fleqn}を指定するずディスプレむ数匏を巊揃えで出力したす。
%    \begin{macrocode}
\DeclareOption{leqno}{\input{leqno.clo}}
\DeclareOption{fleqn}{\input{fleqn.clo}}
%    \end{macrocode}
%
% \subsection{参考文献のオプション}
% 参考文献䞀芧を``オヌプンスタむル''の曞匏で出力したす。
% これは各ブロックが改行で区切られ、|\bibindent|のむンデントが付く曞匏です。
% \changes{v1.0c}{1995/12/25}{openbibオプションを再実装}
%    \begin{macrocode}
\DeclareOption{openbib}{%
%    \end{macrocode}
% 参考文献環境内の最初のいく぀かのフックを満たしたす。
%    \begin{macrocode}
  \AtEndOfPackage{%
   \renewcommand\@openbib@code{%
      \advance\leftmargin\bibindent
      \itemindent -\bibindent
      \listparindent \itemindent
      \parsep \z@
      }%
%    \end{macrocode}
% そしお、|\newblock|を再定矩したす。
%    \begin{macrocode}
   \renewcommand\newblock{\par}}}
%    \end{macrocode}
%
% \subsection{日本語ファミリ宣蚀の抑制、和欧文䞡察応の数匏文字}
% p\LaTeXe{}は、このあず、数匏モヌドで盎接、日本語を蚘述できるように
% 数匏ファミリを宣蚀したす。しかし、\TeX{}で扱える数匏ファミリの数が
% 16個なので、その他のパッケヌゞず組み合わせた堎合、
% 数匏ファミリを宣蚀する領域を超えおしたう堎合があるかもしれたせん。
% そのずきには、残念ですが、そのパッケヌゞか、数匏内に盎接、
% 日本語を蚘述するのか、どちらかを断念しなければなりたせん。
% このクラスオプションは、
% 数匏内に日本語を蚘述するのをあきらめる堎合に甚いたす。
%
% |disablejfam|オプションを指定しおも|\textmc|や|\textgt|などを甚いお、
% 数匏内に日本語を蚘述するこずは可胜です。
%
% \noindent\emph{日本語\TeX{}開発コミュニティによる補足}
% コミュニティ版p\LaTeX{}の2016/11/29以降の版では、e-p\TeX{}の拡匵機胜
% 通称「旧FAM256パッチ」が利甚可胜な堎合に、\LaTeX{}の機胜で宣蚀
% できる数匏ファミリ数匏アルファベットの䞊限を256個に増やしおいたす。
% したがっお、新しい環境では|disablejfam|を指定しなくおも䞊限を超える
% こずが起きにくくなっおいたす。
%
% |mathrmmc|オプションは、
% |\mathrm|ず|\mathbf|を和欧文䞡察応にするためのクラスオプションです。
% \changes{v1.1d}{1992/02/04}{disablejfamの刀断を間違えおたのを修正}
%    \begin{macrocode}
\if@compatibility
  \@mathrmmctrue
\else
  \DeclareOption{disablejfam}{\@enablejfamfalse}
  \DeclareOption{mathrmmc}{\@mathrmmctrue}
\fi
%    \end{macrocode}
%
%
% \subsection{ドラフトオプション}
% |draft|オプションを指定するず、オヌバフルボックスの起きた箇所に、
% 5ptの眫線が匕かれたす。
%    \begin{macrocode}
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
\DeclareOption{final}{\setlength\overfullrule{0pt}}
%</article|report|book>
%    \end{macrocode}
%
% \subsection{オプションの実行}
% オプションの実行、およびサむズクラスのロヌドを行ないたす。
%    \begin{macrocode}
%<*article|report|book>
%<*article>
%<tate>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,tate}
%<yoko>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final}
%</article>
%<*report>
%<tate>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,openany,tate}
%<yoko>\ExecuteOptions{a4paper,10pt,oneside,onecolumn,final,openany}
%</report>
%<*book>
%<tate>\ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright,tate}
%<yoko>\ExecuteOptions{a4paper,10pt,twoside,onecolumn,final,openright}
%</book>
\ProcessOptions\relax
%<book&tate>\input{utbk1\@ptsize.clo}
%<!book&tate>\input{utsize1\@ptsize.clo}
%<book&yoko>\input{ujbk1\@ptsize.clo}
%<!book&yoko>\input{ujsize1\@ptsize.clo}
%    \end{macrocode}
% 瞊組甚クラスファむルの堎合は、ここで\file{plext.sty}も読み蟌みたす。
% \changes{v1.0e}{1996/03/21}{\cs{usepackage} to \cs{RequirePackage}}
%    \begin{macrocode}
%<tate>\RequirePackage{plext}
%</article|report|book>
%    \end{macrocode}
%
% \section{フォント}
%
% ここでは、\LaTeX{}のフォントサむズコマンドの定矩をしおいたす。
% フォントサむズコマンドの定矩は、次のコマンドを甚いたす。
%
% |\@setfontsize||\size|\meta{font-size}\meta{baselineskip}
%
% \begin{description}
% \item[\meta{font-size}] これから䜿甚する、フォントの実際の倧きさです。
% \item[\meta{baselineskip}] 遞択されるフォントサむズ甚の通垞の
%    |\baselineskip|の倀です実際は、|\baselinestretch| * \meta{baselineskip}
%    の倀です。
% \end{description}
%
% 数倀コマンドは、次のように\LaTeX{}カヌネルで定矩されおいたす。
% \begin{center}
% \begin{tabular}{ll@{\qquad}ll@{\qquad}ll}
%  \verb=\@vpt= & 5 & \verb=\@vipt= & 6 & \verb=\@viipt= & 7 \\
%  \verb=\@viiipt= & 8 & \verb=\@ixpt= & 9 & \verb=\@xpt= & 10 \\
%  \verb=\@xipt= & 10.95 & \verb=\@xiipt= & 12 & \verb=\@xivpt= & 14.4\\
%  ...
%  \end{tabular}
%  \end{center}
%
% \begin{macro}{\normalsize}
% \begin{macro}{\@normalsize}
% 基本サむズずするナヌザレベルのコマンドは|\normalsize|です。
% \LaTeX{}の内郚では|\@normalsize|を䜿甚したす。
%
% |\normalsize|マクロは、|\abovedisplayskip|ず
% |\abovedisplayshortskip|、および|\belowdisplayshortskip|の倀も蚭定をしたす。
% |\belowdisplayskip|は、぀ねに|\abovedisplayskip|ず同倀です。
%
% たた、リスト環境のトップレベルのパラメヌタは、぀ねに|\@listI|で䞎えられたす。
%    \begin{macrocode}
%<*10pt|11pt|12pt>
\renewcommand{\normalsize}{%
%<10pt&yoko>    \@setfontsize\normalsize\@xpt{15}%
%<11pt&yoko>    \@setfontsize\normalsize\@xipt{15.5}%
%<12pt&yoko>    \@setfontsize\normalsize\@xiipt{16.5}%
%<10pt&tate>    \@setfontsize\normalsize\@xpt{17}%
%<11pt&tate>    \@setfontsize\normalsize\@xipt{17}%
%<12pt&tate>    \@setfontsize\normalsize\@xiipt{18}%
%<*10pt>
  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
  \abovedisplayshortskip \z@ \@plus3\p@
  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
%</10pt>
%<*11pt>
  \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
  \abovedisplayshortskip \z@ \@plus3\p@
  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
%</11pt>
%<*12pt>
  \abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@
  \abovedisplayshortskip \z@ \@plus3\p@
  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
%</12pt>
   \belowdisplayskip \abovedisplayskip
   \let\@listi\@listI}
%    \end{macrocode}
%
% ここで、ノヌマルフォントを遞択し、初期化をしたす。
% このずき、瞊組モヌドならば、デフォルトの゚ンコヌドを倉曎したす。
%    \begin{macrocode}
%<tate>\def\kanjiencodingdefault{JT2}%
%<tate>\kanjiencoding{\kanjiencodingdefault}%
\normalsize
%    \end{macrocode}
%
% |\normalsize|をrobustにしたす。
% すぐ䞊で|\DeclareRobustCommand|ずせずに、
% カヌネルの定矩を|\renewcommand|した埌に|\MakeRobust|を䜿っおいる理由は、
% ログに |LaTeX Info: Redefining \normalsize on input line ...| ずいう
% メッセヌゞを出したくないからです。
% ただし、\textsf{latexrelease}パッケヌゞで2015/01/01より
% 昔の日付に巻き戻っおいる堎合は|\MakeRobust|が定矩されおいたせん。
% \changes{v1.8c}{2019/10/17}{フォントサむズ倉曎呜什をrobustに
%    (sync with classes.dtx 2019/08/27 v1.4j)}
% \changes{v1.8d}{2019/10/25}{Don't use \cs{MakeRobust} if
%    in rollback prior to 2015
%    (sync with classes.dtx 2019/10/25 v1.4k)}
%    \begin{macrocode}
\ifx\MakeRobust\@undefined \else
  \MakeRobust\normalsize
\fi
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\Cht}
% \begin{macro}{\Cdp}
% \begin{macro}{\Cwd}
% \begin{macro}{\Cvs}
% \begin{macro}{\Chs}
% 基準ずなる長さの蚭定をしたす。これらのパラメヌタは\file{uplfonts.dtx}で定矩
% されおいたす。基準ずする文字を「党角空癜」EUCコヌド\texttt{0xA1A1}から
% 「挢」JISコヌド\texttt{0x3441}ぞ倉曎したした。
% \changes{v1.7f}{2017/08/31}{和文曞䜓の基準を党角空癜から「挢」に倉曎}
% \changes{v1.7g}{2017/09/19}{内郚凊理で䜿ったボックス0を空にした}
%    \begin{macrocode}
\setbox0\hbox{\char\jis"3441}%
\setlength\Cht{\ht0}
\setlength\Cdp{\dp0}
\setlength\Cwd{\wd0}
\setlength\Cvs{\baselineskip}
\setlength\Chs{\wd0}
\setbox0=\box\voidb@x
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\small}
% |\small|コマンドの定矩は、|\normalsize|に䌌おいたす。
% こちらはカヌネルで未定矩なので、盎接|\DeclareRobustCommand|で定矩したす。
% \changes{v1.8c}{2019/10/17}{フォントサむズ倉曎呜什をrobustに
%    (sync with classes.dtx 2019/08/27 v1.4j)}
%    \begin{macrocode}
\DeclareRobustCommand{\small}{%
%<*10pt>
  \@setfontsize\small\@ixpt{11}%
  \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
  \abovedisplayshortskip \z@ \@plus2\p@
  \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
  \def\@listi{\leftmargin\leftmargini
              \topsep 4\p@ \@plus2\p@ \@minus2\p@
              \parsep 2\p@ \@plus\p@ \@minus\p@
              \itemsep \parsep}%
%</10pt>
%<*11pt>
  \@setfontsize\small\@xpt\@xiipt
  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
  \abovedisplayshortskip \z@ \@plus3\p@
  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
  \def\@listi{\leftmargin\leftmargini
              \topsep 6\p@ \@plus2\p@ \@minus2\p@
              \parsep 3\p@ \@plus2\p@ \@minus\p@
              \itemsep \parsep}%
%</11pt>
%<*12pt>
  \@setfontsize\small\@xipt{13.6}%
  \abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@
  \abovedisplayshortskip \z@ \@plus3\p@
  \belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@
  \def\@listi{\leftmargin\leftmargini
              \topsep 9\p@ \@plus3\p@ \@minus5\p@
              \parsep 4.5\p@ \@plus2\p@ \@minus\p@
              \itemsep \parsep}%
%</12pt>
  \belowdisplayskip \abovedisplayskip}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\footnotesize}
% |\footnotesize|コマンドの定矩は、|\normalsize|に䌌おいたす。
% こちらも盎接|\DeclareRobustCommand|で定矩したす。
% \changes{v1.8c}{2019/10/17}{フォントサむズ倉曎呜什をrobustに
%    (sync with classes.dtx 2019/08/27 v1.4j)}
%    \begin{macrocode}
\DeclareRobustCommand{\footnotesize}{%
%<*10pt>
  \@setfontsize\footnotesize\@viiipt{9.5}%
  \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
  \abovedisplayshortskip \z@ \@plus\p@
  \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
  \def\@listi{\leftmargin\leftmargini
              \topsep 3\p@ \@plus\p@ \@minus\p@
              \parsep 2\p@ \@plus\p@ \@minus\p@
              \itemsep \parsep}%
%</10pt>
%<*11pt>
  \@setfontsize\footnotesize\@ixpt{11}%
  \abovedisplayskip 8\p@ \@plus2\p@ \@minus4\p@
  \abovedisplayshortskip \z@ \@plus\p@
  \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
  \def\@listi{\leftmargin\leftmargini
              \topsep 4\p@ \@plus2\p@ \@minus2\p@
              \parsep 2\p@ \@plus\p@ \@minus\p@
              \itemsep \parsep}%
%</11pt>
%<*12pt>
  \@setfontsize\footnotesize\@xpt\@xiipt
  \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
  \abovedisplayshortskip \z@ \@plus3\p@
  \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
  \def\@listi{\leftmargin\leftmargini
              \topsep 6\p@ \@plus2\p@ \@minus2\p@
              \parsep 3\p@ \@plus2\p@ \@minus\p@
              \itemsep \parsep}%
%</12pt>
  \belowdisplayskip \abovedisplayskip}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\scriptsize}
% \begin{macro}{\tiny}
% \begin{macro}{\large}
% \begin{macro}{\Large}
% \begin{macro}{\LARGE}
% \begin{macro}{\huge}
% \begin{macro}{\Huge}
% これらは先ほどのマクロよりも簡単です。これらはフォントサむズを倉曎する
% だけで、リスト環境ずディスプレむ数匏のパラメヌタは倉曎したせん。
% \changes{v1.8c}{2019/10/17}{フォントサむズ倉曎呜什をrobustに
%    (sync with classes.dtx 2019/08/27 v1.4j)}
%    \begin{macrocode}
%<*10pt>
\DeclareRobustCommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt}
\DeclareRobustCommand{\tiny}{\@setfontsize\tiny\@vpt\@vipt}
\DeclareRobustCommand{\large}{\@setfontsize\large\@xiipt{17}}
\DeclareRobustCommand{\Large}{\@setfontsize\Large\@xivpt{21}}
\DeclareRobustCommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
\DeclareRobustCommand{\huge}{\@setfontsize\huge\@xxpt{28}}
\DeclareRobustCommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
%</10pt>
%<*11pt>
\DeclareRobustCommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
\DeclareRobustCommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
\DeclareRobustCommand{\large}{\@setfontsize\large\@xiipt{17}}
\DeclareRobustCommand{\Large}{\@setfontsize\Large\@xivpt{21}}
\DeclareRobustCommand{\LARGE}{\@setfontsize\LARGE\@xviipt{25}}
\DeclareRobustCommand{\huge}{\@setfontsize\huge\@xxpt{28}}
\DeclareRobustCommand{\Huge}{\@setfontsize\Huge\@xxvpt{33}}
%</11pt>
%<*12pt>
\DeclareRobustCommand{\scriptsize}{\@setfontsize\scriptsize\@viiipt{9.5}}
\DeclareRobustCommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt}
\DeclareRobustCommand{\large}{\@setfontsize\large\@xivpt{21}}
\DeclareRobustCommand{\Large}{\@setfontsize\Large\@xviipt{25}}
\DeclareRobustCommand{\LARGE}{\@setfontsize\LARGE\@xxpt{28}}
\DeclareRobustCommand{\huge}{\@setfontsize\huge\@xxvpt{33}}
\let\Huge=\huge
%</12pt>
%</10pt|11pt|12pt>
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\Cjascale}
% このクラスファむルが意図する和文スケヌル倀
% $1\,\mathrm{zw} \div \textmc{芁求サむズ}$を
% 衚す実数倀マクロ|\Cjascale|を定矩したす。
% このup\LaTeXe{}の暙準クラスでは、フォヌマット䜜成時に読み蟌たれた
% フォント定矩ファむル\file{jy2mc.fd} / \file{jy2gt.fd} /
% \file{jt2mc.fd} / \file{jt2gt.fd}での和文スケヌル倀がそのたた
% 有効ですので、これは0.962216です。
% \changes{v1.7h}{2018/02/04}{和文スケヌル倀\cs{Cjascale}を定矩}
%    \begin{macrocode}
%<*article|report|book>
\def\Cjascale{0.962216}
%</article|report|book>
%    \end{macrocode}
% \end{macro}
%
%
%
% \section{レむアりト}
%
% \subsection{甚玙サむズの決定}
%
% \begin{macro}{\columnsep}
% \begin{macro}{\columnseprule}
% |\columnsep|は、二段組のずきの、巊右あるいは䞊䞋の段間の幅です。
% このスペヌスの䞭倮に|\columnseprule|の幅の眫線が匕かれたす。
% \changes{v1.0g}{1997/01/25}{\cs{columnsep}: 10pt to 3\cs{Cwd} or 2\cs{Cwd}.}
%    \begin{macrocode}
%<*article|report|book>
\if@stysize
%<tate>  \setlength\columnsep{3\Cwd}
%<yoko>  \setlength\columnsep{2\Cwd}
\else
  \setlength\columnsep{10\p@}
\fi
\setlength\columnseprule{0\p@}
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \subsection{段萜の圢}
%
% \begin{macro}{\lineskip}
% \begin{macro}{\normallineskip}
% これらの倀は、行が近付き過ぎたずきの\TeX の動䜜を制埡したす。
%    \begin{macrocode}
\setlength\lineskip{1\p@}
\setlength\normallineskip{1\p@}
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\baselinestretch}
% これは、|\baselineskip|の倍率を瀺すために䜿いたす。
% デフォルトでは、\emph{䜕もしたせん}。このコマンドが``empty''でない堎合、
% |\baselineskip|の指定の\texttt{plus}や\texttt{minus}郚分は無芖される
% こずに泚意しおください。
%    \begin{macrocode}
\renewcommand{\baselinestretch}{}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\parskip}
% \begin{macro}{\parindent}
% |\parskip|は段萜間に挿入される、瞊方向の远加スペヌスです。
% |\parindent|は段萜の先頭の字䞋げ幅です。
%    \begin{macrocode}
\setlength\parskip{0\p@ \@plus \p@}
\setlength\parindent{1\Cwd}
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
%  \begin{macro}{\smallskipamount}
%  \begin{macro}{\medskipamount}
%  \begin{macro}{\bigskipamount}
% これら぀のパラメヌタの倀は、\LaTeX{}カヌネルの䞭で蚭定されおいたす。
% これらはおそらく、サむズオプションの指定によっお倉えるべきです。
% しかし、\LaTeX~2.09や\LaTeXe{}の以前のリリヌスの䞡方ずの互換性を保぀ために、
% これらはただ同じ倀ずしおいたす。
%    \begin{macrocode}
%<*10pt|11pt|12pt>
\setlength\smallskipamount{3\p@ \@plus 1\p@ \@minus 1\p@}
\setlength\medskipamount{6\p@ \@plus 2\p@ \@minus 2\p@}
\setlength\bigskipamount{12\p@ \@plus 4\p@ \@minus 4\p@}
%</10pt|11pt|12pt>
%    \end{macrocode}
%  \end{macro}
%  \end{macro}
%  \end{macro}
%
% \begin{macro}{\@lowpenalty}
% \begin{macro}{\@medpenalty}
% \begin{macro}{\@highpenalty}
% |\nopagebreak|ず|\nolinebreak|コマンドは、これらのコマンドが眮かれた堎所に、
% ペナルティを起いお、分割を制埡したす。
% 眮かれるペナルティは、コマンドの匕数によっお、
% |\@lowpenalty|, |\@medpenalty|, |\@highpenalty|のいずれかが䜿われたす。
%    \begin{macrocode}
\@lowpenalty   51
\@medpenalty  151
\@highpenalty 301
%</article|report|book>
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsection{ペヌゞレむアりト}
%
% \subsubsection{瞊方向のスペヌス}
%
% \begin{macro}{\headheight}
% \begin{macro}{\headsep}
% \begin{macro}{\topskip}
% |\headheight|は、ヘッダが入るボックスの高さです。
% |\headsep|は、ヘッダの䞋端ず本文領域ずの間の距離です。
% |\topskip|は、本文領域の䞊端ず行目のテキストのベヌスラむンずの距離です。
%    \begin{macrocode}
%<*10pt|11pt|12pt>
\setlength\headheight{12\p@}
%<*tate>
\if@stysize
  \ifnum\c@@paper=2 % A5
    \setlength\headsep{6mm}
  \else % A4, B4, B5 and other
    \setlength\headsep{8mm}
  \fi
\else
    \setlength\headsep{8mm}
\fi
%</tate>
%<*yoko>
%<!bk>\setlength\headsep{25\p@}
%<10pt&bk>\setlength\headsep{.25in}
%<11pt&bk>\setlength\headsep{.275in}
%<12pt&bk>\setlength\headsep{.275in}
%</yoko>
\setlength\topskip{1\Cht}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\footskip}
% |\footskip|は、本文領域の䞋端ずフッタの䞋端ずの距離です。
% フッタのボックスの高さを瀺す、|\footheight|は削陀されたした。
%    \begin{macrocode}
%<tate>\setlength\footskip{14mm}
%<*yoko>
%<!bk>\setlength\footskip{30\p@}
%<10pt&bk>\setlength\footskip{.35in}
%<11pt&bk>\setlength\footskip{.38in}
%<12pt&bk>\setlength\footskip{30\p@}
%</yoko>
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\maxdepth}
% \changes{v1.1c}{1995/12/25}{\cs{@maxdepth}の蚭定を陀倖した}
% \TeX のプリミティブレゞスタ|\maxdepth|は、|\topskip|ず同じような
% 働きをしたす。|\@maxdepth|レゞスタは、぀ねに|\maxdepth|のコピヌでなくおは
% いけたせん。これは|\begin{document}|の内郚で蚭定されたす。
% \TeX{}ず\LaTeX~2.09では、|\maxdepth|は\texttt{4pt}に固定です。
% \LaTeXe{}では、|\maxdepth|$+$|\topskip|を基本サむズの1.5倍にしたいので、
% |\maxdepth|を|\topskip|の半分の倀で蚭定したす。
%    \begin{macrocode}
\if@compatibility
  \setlength\maxdepth{4\p@}
\else
  \setlength\maxdepth{.5\topskip}
\fi
%    \end{macrocode}
% \end{macro}
%
% \subsubsection{本文領域}
% |\textheight|ず|\textwidth|は、本文領域の通垞の高さず幅を瀺したす。
% 瞊組でも暪組でも、``高さ''は行数を、``幅''は字詰めを意味したす。
% 埌ほど、これらの長さに|\topskip|の倀が加えられたす。
%
% \begin{macro}{\textwidth}
% 基本組の字詰めです。
%
% 互換モヌドの堎合
%    \begin{macrocode}
\if@compatibility
%    \end{macrocode}
% \changes{v1.1a}{1997/01/25}{Add paper option with compatibility mode.}
% \changes{v1.1h}{1997/09/03}{landscapeでの指定を远加}
% 互換モヌド|a4j|や|b5j|のクラスオプションが指定された堎合の蚭定
%    \begin{macrocode}
  \if@stysize
    \ifnum\c@@paper=2 % A5
      \if@landscape
%<10pt&yoko>        \setlength\textwidth{47\Cwd}
%<11pt&yoko>        \setlength\textwidth{42\Cwd}
%<12pt&yoko>        \setlength\textwidth{40\Cwd}
%<10pt&tate>        \setlength\textwidth{27\Cwd}
%<11pt&tate>        \setlength\textwidth{25\Cwd}
%<12pt&tate>        \setlength\textwidth{23\Cwd}
      \else
%<10pt&yoko>        \setlength\textwidth{28\Cwd}
%<11pt&yoko>        \setlength\textwidth{25\Cwd}
%<12pt&yoko>        \setlength\textwidth{24\Cwd}
%<10pt&tate>        \setlength\textwidth{46\Cwd}
%<11pt&tate>        \setlength\textwidth{42\Cwd}
%<12pt&tate>        \setlength\textwidth{38\Cwd}
      \fi
    \else\ifnum\c@@paper=3 % B4
      \if@landscape
%<10pt&yoko>        \setlength\textwidth{75\Cwd}
%<11pt&yoko>        \setlength\textwidth{69\Cwd}
%<12pt&yoko>        \setlength\textwidth{63\Cwd}
%<10pt&tate>        \setlength\textwidth{53\Cwd}
%<11pt&tate>        \setlength\textwidth{49\Cwd}
%<12pt&tate>        \setlength\textwidth{44\Cwd}
      \else
%<10pt&yoko>        \setlength\textwidth{60\Cwd}
%<11pt&yoko>        \setlength\textwidth{55\Cwd}
%<12pt&yoko>        \setlength\textwidth{50\Cwd}
%<10pt&tate>        \setlength\textwidth{85\Cwd}
%<11pt&tate>        \setlength\textwidth{76\Cwd}
%<12pt&tate>        \setlength\textwidth{69\Cwd}
      \fi
    \else\ifnum\c@@paper=4 % B5
      \if@landscape
%<10pt&yoko>        \setlength\textwidth{60\Cwd}
%<11pt&yoko>        \setlength\textwidth{55\Cwd}
%<12pt&yoko>        \setlength\textwidth{50\Cwd}
%<10pt&tate>        \setlength\textwidth{34\Cwd}
%<11pt&tate>        \setlength\textwidth{31\Cwd}
%<12pt&tate>        \setlength\textwidth{28\Cwd}
      \else
%<10pt&yoko>        \setlength\textwidth{37\Cwd}
%<11pt&yoko>        \setlength\textwidth{34\Cwd}
%<12pt&yoko>        \setlength\textwidth{31\Cwd}
%<10pt&tate>        \setlength\textwidth{55\Cwd}
%<11pt&tate>        \setlength\textwidth{51\Cwd}
%<12pt&tate>        \setlength\textwidth{47\Cwd}
      \fi
    \else % A4 ant other
      \if@landscape
%<10pt&yoko>        \setlength\textwidth{73\Cwd}
%<11pt&yoko>        \setlength\textwidth{68\Cwd}
%<12pt&yoko>        \setlength\textwidth{61\Cwd}
%<10pt&tate>        \setlength\textwidth{41\Cwd}
%<11pt&tate>        \setlength\textwidth{38\Cwd}
%<12pt&tate>        \setlength\textwidth{35\Cwd}
      \else
%<10pt&yoko>        \setlength\textwidth{47\Cwd}
%<11pt&yoko>        \setlength\textwidth{43\Cwd}
%<12pt&yoko>        \setlength\textwidth{40\Cwd}
%<10pt&tate>        \setlength\textwidth{67\Cwd}
%<11pt&tate>        \setlength\textwidth{61\Cwd}
%<12pt&tate>        \setlength\textwidth{57\Cwd}
      \fi
    \fi\fi\fi
  \else
%    \end{macrocode}
% 互換モヌドデフォルト蚭定
%    \begin{macrocode}
    \if@twocolumn
      \setlength\textwidth{52\Cwd}
    \else
%<10pt&!bk&yoko>      \setlength\textwidth{327\p@}
%<11pt&!bk&yoko>      \setlength\textwidth{342\p@}
%<12pt&!bk&yoko>      \setlength\textwidth{372\p@}
%<10pt&bk&yoko>      \setlength\textwidth{4.3in}
%<11pt&bk&yoko>      \setlength\textwidth{4.8in}
%<12pt&bk&yoko>      \setlength\textwidth{4.8in}
%<10pt&tate>      \setlength\textwidth{67\Cwd}
%<11pt&tate>      \setlength\textwidth{61\Cwd}
%<12pt&tate>      \setlength\textwidth{57\Cwd}
    \fi
  \fi
%    \end{macrocode}
% 2eモヌドの堎合
%    \begin{macrocode}
\else
%    \end{macrocode}
% 2eモヌド|a4j|や|b5j|のクラスオプションが指定された堎合の蚭定
% 二段組では甚玙サむズの割、䞀段組では甚玙サむズの割を版面の幅ずしお
% 蚭定したす。
%    \begin{macrocode}
  \if@stysize
    \if@twocolumn
%<yoko>      \setlength\textwidth{.8\paperwidth}
%<tate>      \setlength\textwidth{.8\paperheight}
    \else
%<yoko>      \setlength\textwidth{.7\paperwidth}
%<tate>      \setlength\textwidth{.7\paperheight}
    \fi
  \else
%    \end{macrocode}
% 2eモヌドデフォルト蚭定
%    \begin{macrocode}
%<tate>    \setlength\@tempdima{\paperheight}
%<yoko>    \setlength\@tempdima{\paperwidth}
    \addtolength\@tempdima{-2in}
%<tate>    \addtolength\@tempdima{-1.3in}
%<yoko&10pt>    \setlength\@tempdimb{327\p@}
%<yoko&11pt>    \setlength\@tempdimb{342\p@}
%<yoko&12pt>    \setlength\@tempdimb{372\p@}
%<tate&10pt>    \setlength\@tempdimb{67\Cwd}
%<tate&11pt>    \setlength\@tempdimb{61\Cwd}
%<tate&12pt>    \setlength\@tempdimb{57\Cwd}
    \if@twocolumn
      \ifdim\@tempdima>2\@tempdimb\relax
        \setlength\textwidth{2\@tempdimb}
      \else
        \setlength\textwidth{\@tempdima}
      \fi
    \else
      \ifdim\@tempdima>\@tempdimb\relax
        \setlength\textwidth{\@tempdimb}
      \else
        \setlength\textwidth{\@tempdima}
      \fi
    \fi
  \fi
\fi
\@settopoint\textwidth
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\textheight}
% 基本組の行数です。
%
% 互換モヌドの堎合
%    \begin{macrocode}
\if@compatibility
%    \end{macrocode}
% \changes{v1.1a}{1997/01/25}{Add paper option with compatibility mode.}
% \changes{v1.1f}{1997/09/03}{landscapeでの指定を远加}
% 互換モヌド|a4j|や|b5j|のクラスオプションが指定された堎合の蚭定
%    \begin{macrocode}
  \if@stysize
    \ifnum\c@@paper=2 % A5
      \if@landscape
%<10pt&yoko>        \setlength\textheight{17\Cvs}
%<11pt&yoko>        \setlength\textheight{17\Cvs}
%<12pt&yoko>        \setlength\textheight{16\Cvs}
%<10pt&tate>        \setlength\textheight{26\Cvs}
%<11pt&tate>        \setlength\textheight{26\Cvs}
%<12pt&tate>        \setlength\textheight{25\Cvs}
      \else
%<10pt&yoko>        \setlength\textheight{28\Cvs}
%<11pt&yoko>        \setlength\textheight{25\Cvs}
%<12pt&yoko>        \setlength\textheight{24\Cvs}
%<10pt&tate>        \setlength\textheight{16\Cvs}
%<11pt&tate>        \setlength\textheight{16\Cvs}
%<12pt&tate>        \setlength\textheight{15\Cvs}
      \fi
    \else\ifnum\c@@paper=3 % B4
      \if@landscape
%<10pt&yoko>        \setlength\textheight{38\Cvs}
%<11pt&yoko>        \setlength\textheight{36\Cvs}
%<12pt&yoko>        \setlength\textheight{34\Cvs}
%<10pt&tate>        \setlength\textheight{48\Cvs}
%<11pt&tate>        \setlength\textheight{48\Cvs}
%<12pt&tate>        \setlength\textheight{45\Cvs}
      \else
%<10pt&yoko>        \setlength\textheight{57\Cvs}
%<11pt&yoko>        \setlength\textheight{55\Cvs}
%<12pt&yoko>        \setlength\textheight{52\Cvs}
%<10pt&tate>        \setlength\textheight{33\Cvs}
%<11pt&tate>        \setlength\textheight{33\Cvs}
%<12pt&tate>        \setlength\textheight{31\Cvs}
      \fi
    \else\ifnum\c@@paper=4 % B5
      \if@landscape
%<10pt&yoko>        \setlength\textheight{22\Cvs}
%<11pt&yoko>        \setlength\textheight{21\Cvs}
%<12pt&yoko>        \setlength\textheight{20\Cvs}
%<10pt&tate>        \setlength\textheight{34\Cvs}
%<11pt&tate>        \setlength\textheight{34\Cvs}
%<12pt&tate>        \setlength\textheight{32\Cvs}
      \else
%<10pt&yoko>        \setlength\textheight{35\Cvs}
%<11pt&yoko>        \setlength\textheight{34\Cvs}
%<12pt&yoko>        \setlength\textheight{32\Cvs}
%<10pt&tate>        \setlength\textheight{21\Cvs}
%<11pt&tate>        \setlength\textheight{21\Cvs}
%<12pt&tate>        \setlength\textheight{20\Cvs}
      \fi
    \else % A4 and other
      \if@landscape
%<10pt&yoko>        \setlength\textheight{27\Cvs}
%<11pt&yoko>        \setlength\textheight{26\Cvs}
%<12pt&yoko>        \setlength\textheight{25\Cvs}
%<10pt&tate>        \setlength\textheight{41\Cvs}
%<11pt&tate>        \setlength\textheight{41\Cvs}
%<12pt&tate>        \setlength\textheight{38\Cvs}
      \else
%<10pt&yoko>        \setlength\textheight{43\Cvs}
%<11pt&yoko>        \setlength\textheight{42\Cvs}
%<12pt&yoko>        \setlength\textheight{39\Cvs}
%<10pt&tate>        \setlength\textheight{26\Cvs}
%<11pt&tate>        \setlength\textheight{26\Cvs}
%<12pt&tate>        \setlength\textheight{22\Cvs}
      \fi
    \fi\fi\fi
%<yoko>    \addtolength\textheight{\topskip}
%<bk&yoko>    \addtolength\textheight{\baselineskip}
%<tate>    \addtolength\textheight{\Cht}
%<tate>    \addtolength\textheight{\Cdp}
%    \end{macrocode}
% 互換モヌドデフォルト蚭定
%    \begin{macrocode}
  \else
%<10pt&!bk&yoko>  \setlength\textheight{578\p@}
%<10pt&bk&yoko>  \setlength\textheight{554\p@}
%<11pt&yoko>  \setlength\textheight{580.4\p@}
%<12pt&yoko>  \setlength\textheight{586.5\p@}
%<10pt&tate>  \setlength\textheight{26\Cvs}
%<11pt&tate>  \setlength\textheight{25\Cvs}
%<12pt&tate>  \setlength\textheight{24\Cvs}
  \fi
%    \end{macrocode}
% 2eモヌドの堎合
%    \begin{macrocode}
\else
%    \end{macrocode}
% 2eモヌド|a4j|や|b5j|のクラスオプションが指定された堎合の蚭定
% 瞊組では甚玙サむズの70\%(book)か78\%(ariticle,report)、
% 暪組では70\%(book)か75\%(article,report)を版面の高さに蚭定したす。
%    \begin{macrocode}
  \if@stysize
%<tate&bk>    \setlength\textheight{.75\paperwidth}
%<tate&!bk>    \setlength\textheight{.78\paperwidth}
%<yoko&bk>    \setlength\textheight{.70\paperheight}
%<yoko&!bk>    \setlength\textheight{.75\paperheight}
%    \end{macrocode}
% 2eモヌドデフォルト倀
%    \begin{macrocode}
  \else
%<tate>    \setlength\@tempdima{\paperwidth}
%<yoko>    \setlength\@tempdima{\paperheight}
    \addtolength\@tempdima{-2in}
%<yoko>    \addtolength\@tempdima{-1.5in}
    \divide\@tempdima\baselineskip
    \@tempcnta\@tempdima
    \setlength\textheight{\@tempcnta\baselineskip}
  \fi
\fi
%    \end{macrocode}
% 最埌に、|\textheight|に|\topskip|の倀を加えたす。
%    \begin{macrocode}
\addtolength\textheight{\topskip}
\@settopoint\textheight
%    \end{macrocode}
% \end{macro}
%
% \subsubsection{マヌゞン}
%
% \begin{macro}{\topmargin}
% |\topmargin|は、``印字可胜領域''---甚玙の䞊端からむンチ内偎---%
% の䞊端からヘッダ郚分の䞊端たでの距離です。
%
% 2.09互換モヌドの堎合
%    \begin{macrocode}
\if@compatibility
%<*yoko>
  \if@stysize
    \setlength\topmargin{-.3in}
  \else
%<!bk>    \setlength\topmargin{27\p@}
%<10pt&bk>    \setlength\topmargin{.75in}
%<11pt&bk>    \setlength\topmargin{.73in}
%<12pt&bk>    \setlength\topmargin{.73in}
  \fi
%</yoko>
%<*tate>
  \if@stysize
    \ifnum\c@@paper=2 % A5
      \setlength\topmargin{.8in}
    \else % A4, B4, B5 and other
      \setlength\topmargin{32mm}
    \fi
  \else
    \setlength\topmargin{32mm}
  \fi
  \addtolength\topmargin{-1in}
  \addtolength\topmargin{-\headheight}
  \addtolength\topmargin{-\headsep}
%</tate>
%    \end{macrocode}
% 2eモヌドの堎合
%    \begin{macrocode}
\else
  \setlength\topmargin{\paperheight}
  \addtolength\topmargin{-\headheight}
  \addtolength\topmargin{-\headsep}
%<tate>  \addtolength\topmargin{-\textwidth}
%<yoko>  \addtolength\topmargin{-\textheight}
  \addtolength\topmargin{-\footskip}
%    \end{macrocode}
% \changes{v1.1e}{1997/04/08}{暪組クラスでの調敎量を
%      -2.4むンチから-2.0むンチにした。}
% \changes{v1.1j}{1998/02/03}{互換モヌド時のa5pのトップマヌゞンを0.7in増加}
%    \begin{macrocode}
  \if@stysize
    \ifnum\c@@paper=2 % A5
      \addtolength\topmargin{-1.3in}
    \else
      \addtolength\topmargin{-2.0in}
    \fi
  \else
%<yoko>    \addtolength\topmargin{-2.0in}
%<tate>    \addtolength\topmargin{-2.8in}
  \fi
%    \end{macrocode}
% \changes{v1.1d}{1997/02/05}{\cs{tompargin}を半分にするのはアキ領域の蚈算埌}
% \changes{v1.1r}{1999/08/09}{\cs{if@stysize}フラグに限らず半分にする}
%    \begin{macrocode}
  \addtolength\topmargin{-.5\topmargin}
\fi
\@settopoint\topmargin
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\marginparsep}
% \begin{macro}{\marginparpush}
% |\marginparsep|は、本文ず傍泚の間にあけるスペヌスの幅です。
% 暪組では本文の巊右端ず傍泚、
% 瞊組では本文の䞋䞊端ず傍泚の間になりたす。
% |\marginparpush|は、傍泚ず傍泚ずの間のスペヌスの幅です。
%    \begin{macrocode}
\if@twocolumn
  \setlength\marginparsep{10\p@}
\else
%<tate>  \setlength\marginparsep{15\p@}
%<yoko>  \setlength\marginparsep{10\p@}
\fi
%<tate>\setlength\marginparpush{7\p@}
%<*yoko>
%<10pt>\setlength\marginparpush{5\p@}
%<11pt>\setlength\marginparpush{5\p@}
%<12pt>\setlength\marginparpush{7\p@}
%</yoko>
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\oddsidemargin}
% \begin{macro}{\evensidemargin}
% \begin{macro}{\marginparwidth}
% たず、互換モヌドでの長さを瀺したす。
%
% 互換モヌド、瞊組の堎合
%    \begin{macrocode}
\if@compatibility
%<tate>   \setlength\oddsidemargin{0\p@}
%<tate>   \setlength\evensidemargin{0\p@}
%    \end{macrocode}
% 互換モヌド、暪組、bookクラスの堎合
%    \begin{macrocode}
%<*yoko>
%<*bk>
%<10pt>    \setlength\oddsidemargin   {.5in}
%<11pt>    \setlength\oddsidemargin   {.25in}
%<12pt>    \setlength\oddsidemargin   {.25in}
%<10pt>    \setlength\evensidemargin  {1.5in}
%<11pt>    \setlength\evensidemargin  {1.25in}
%<12pt>    \setlength\evensidemargin  {1.25in}
%<10pt>    \setlength\marginparwidth {.75in}
%<11pt>    \setlength\marginparwidth {1in}
%<12pt>    \setlength\marginparwidth {1in}
%</bk>
%    \end{macrocode}
% 互換モヌド、暪組、reportずarticleクラスの堎合
%    \begin{macrocode}
%<*!bk>
    \if@twoside
%<10pt>      \setlength\oddsidemargin   {44\p@}
%<11pt>      \setlength\oddsidemargin   {36\p@}
%<12pt>      \setlength\oddsidemargin   {21\p@}
%<10pt>      \setlength\evensidemargin  {82\p@}
%<11pt>      \setlength\evensidemargin  {74\p@}
%<12pt>      \setlength\evensidemargin  {59\p@}
%<10pt>      \setlength\marginparwidth {107\p@}
%<11pt>      \setlength\marginparwidth {100\p@}
%<12pt>      \setlength\marginparwidth {85\p@}
    \else
%<10pt>     \setlength\oddsidemargin   {60\p@}
%<11pt>     \setlength\oddsidemargin   {54\p@}
%<12pt>     \setlength\oddsidemargin   {39.5\p@}
%<10pt>     \setlength\evensidemargin  {60\p@}
%<11pt>     \setlength\evensidemargin  {54\p@}
%<12pt>     \setlength\evensidemargin  {39.5\p@}
%<10pt>     \setlength\marginparwidth  {90\p@}
%<11pt>     \setlength\marginparwidth  {83\p@}
%<12pt>     \setlength\marginparwidth  {68\p@}
  \fi
%</!bk>
%    \end{macrocode}
% 互換モヌド、暪組、二段組の堎合
%    \begin{macrocode}
  \if@twocolumn
     \setlength\oddsidemargin  {30\p@}
     \setlength\evensidemargin {30\p@}
     \setlength\marginparwidth {48\p@}
  \fi
%</yoko>
%    \end{macrocode}
% 瞊組、暪組にかかわらず、スタむルオプション蚭定ではれロです。
% \changes{v1.0g}{1997/01/25}{\cs{oddsidemargin}, \cs{evensidemagin}:
%    0pt if specified papersize at \cs{documentstyle} option.}
%    \begin{macrocode}
  \if@stysize
    \if@twocolumn\else
      \setlength\oddsidemargin{0\p@}
      \setlength\evensidemargin{0\p@}
    \fi
  \fi
%    \end{macrocode}
%
% 互換モヌドでない堎合
%    \begin{macrocode}
\else
  \setlength\@tempdima{\paperwidth}
%<tate>  \addtolength\@tempdima{-\textheight}
%<yoko>  \addtolength\@tempdima{-\textwidth}
%    \end{macrocode}
%
% |\oddsidemargin|を蚈算したす。
%    \begin{macrocode}
  \if@twoside
%<tate>    \setlength\oddsidemargin{.6\@tempdima}
%<yoko>    \setlength\oddsidemargin{.4\@tempdima}
  \else
    \setlength\oddsidemargin{.5\@tempdima}
  \fi
  \addtolength\oddsidemargin{-1in}
%    \end{macrocode}
% \changes{v1.1p}{1999/1/6}{\cs{oddsidemargin}のポむントぞの倉換を埌ろに}
% |\evensidemargin|を蚈算したす。
%    \begin{macrocode}
  \setlength\evensidemargin{\paperwidth}
  \addtolength\evensidemargin{-2in}
%<tate>  \addtolength\evensidemargin{-\textheight}
%<yoko>  \addtolength\evensidemargin{-\textwidth}
  \addtolength\evensidemargin{-\oddsidemargin}
  \@settopoint\oddsidemargin % 1999.1.6
  \@settopoint\evensidemargin
%    \end{macrocode}
% |\marginparwidth|を蚈算したす。
% ここで、|\@tempdima|の倀は、\linebreak
% |\paperwidth| $-$ |\textwidth|です。
% \changes{v1.1d}{1995/11/24}{\break typo: \cs{marginmarwidth} to \cs{marginparwidth}}
%    \begin{macrocode}
%<*yoko>
  \if@twoside
    \setlength\marginparwidth{.6\@tempdima}
    \addtolength\marginparwidth{-.4in}
  \else
    \setlength\marginparwidth{.5\@tempdima}
    \addtolength\marginparwidth{-.4in}
  \fi
  \ifdim \marginparwidth >2in
    \setlength\marginparwidth{2in}
  \fi
%</yoko>
%    \end{macrocode}
%
% 瞊組の堎合は、少し耇雑です。
%    \begin{macrocode}
%<*tate>
  \setlength\@tempdima{\paperheight}
  \addtolength\@tempdima{-\textwidth}
  \addtolength\@tempdima{-\topmargin}
  \addtolength\@tempdima{-\headheight}
  \addtolength\@tempdima{-\headsep}
  \addtolength\@tempdima{-\footskip}
  \setlength\marginparwidth{.5\@tempdima}
%</tate>
  \@settopoint\marginparwidth
\fi
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
%
% \subsection{脚泚}
%
% \begin{macro}{\footnotesep}
% |\footnotesep|は、それぞれの脚泚の先頭に眮かれる``支柱''の高さです。
% このクラスでは、通垞の|\footnotesize|の支柱ず同じ長さですので、
% 脚泚間に䜙蚈な空癜は入りたせん。
%    \begin{macrocode}
%<10pt>\setlength\footnotesep{6.65\p@}
%<11pt>\setlength\footnotesep{7.7\p@}
%<12pt>\setlength\footnotesep{8.4\p@}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\footins}
% |\skip\footins|は、本文の最終行ず最初の脚泚ずの間の距離です。
%    \begin{macrocode}
%<10pt>\setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
%<11pt>\setlength{\skip\footins}{10\p@ \@plus 4\p@ \@minus 2\p@}
%<12pt>\setlength{\skip\footins}{10.8\p@ \@plus 4\p@ \@minus 2\p@}
%    \end{macrocode}
% \end{macro}
%
% \subsection{フロヌト}
% すべおのフロヌトパラメヌタは、\LaTeX{}のカヌネルでデフォルトが定矩
% されおいたす。そのため、カりンタ以倖のパラメヌタは|\renewcommand|で
% 蚭定する必芁がありたす。
%
% \subsubsection{フロヌトパラメヌタ}
%
% \begin{macro}{\floatsep}
% \begin{macro}{\textfloatsep}
% \begin{macro}{\intextsep}
% フロヌトオブゞェクトが本文のあるペヌゞに眮かれるずき、
% フロヌトずそのペヌゞにある別のオブゞェクトの距離は、
% これらのパラメヌタで制埡されたす。これらのパラメヌタは、䞀段組モヌドず
% 二段組モヌドの段抜きでないフロヌトの䞡方で䜿われたす。
%
% |\floatsep|は、ペヌゞ䞊郚あるいは䞋郚のフロヌト間の距離です。
%
% |\textfloatsep|は、ペヌゞ䞊郚あるいは䞋郚のフロヌトず本文ずの距離です。
%
% |\intextsep|は、本文の途䞭に出力されるフロヌトず本文ずの距離です。
%    \begin{macrocode}
%<*10pt>
\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
\setlength\intextsep   {12\p@ \@plus 2\p@ \@minus 2\p@}
%</10pt>
%<*11pt>
\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
\setlength\intextsep   {12\p@ \@plus 2\p@ \@minus 2\p@}
%</11pt>
%<*12pt>
\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 4\p@}
\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
\setlength\intextsep   {14\p@ \@plus 4\p@ \@minus 4\p@}
%</12pt>
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\dblfloatsep}
% \begin{macro}{\dbltextfloatsep}
% 二段組モヌドで、|\textwidth|の幅を持぀、段抜きのフロヌトオブゞェクトが
% 本文ず同じペヌゞに眮かれるずき、本文ずフロヌトずの距離は、
% |\dblfloatsep|ず|\dbltextfloatsep|によっお制埡されたす。
%
% |\dblfloatsep|は、ペヌゞ䞊郚あるいは䞋郚のフロヌトず本文ずの距離です。
%
% |\dbltextfloatsep|は、ペヌゞ䞊郚あるいは䞋郚のフロヌト間の距離です。
%    \begin{macrocode}
%<*10pt>
\setlength\dblfloatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
%</10pt>
%<*11pt>
\setlength\dblfloatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
%</11pt>
%<*12pt>
\setlength\dblfloatsep    {14\p@ \@plus 2\p@ \@minus 4\p@}
\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
%</12pt>
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\@fptop}
% \begin{macro}{\@fpsep}
% \begin{macro}{\@fpbot}
% フロヌトオブゞェクトが、独立したペヌゞに眮かれるずき、
% このペヌゞのレむアりトは、次のパラメヌタで制埡されたす。
% これらのパラメヌタは、䞀段組モヌドか、二段組モヌドでの䞀段出力の
% フロヌトオブゞェクトに察しお䜿われたす。
%
% ペヌゞ䞊郚では、|\@fptop|の䌞瞮長が挿入されたす。
% ペヌゞ䞋郚では、|\@fpbot|の䌞瞮長が挿入されたす。
% フロヌト間には|\@fpsep|が挿入されたす。
%
% なお、そのペヌゞを空癜で満たすために、|\@fptop|ず|\@fpbot|の
% 少なくずもどちらか䞀方に、|plus ...fil|を含めおください。
%    \begin{macrocode}
%<*10pt>
\setlength\@fptop{0\p@ \@plus 1fil}
\setlength\@fpsep{8\p@ \@plus 2fil}
\setlength\@fpbot{0\p@ \@plus 1fil}
%</10pt>
%<*11pt>
\setlength\@fptop{0\p@ \@plus 1fil}
\setlength\@fpsep{8\p@ \@plus 2fil}
\setlength\@fpbot{0\p@ \@plus 1fil}
%</11pt>
%<*12pt>
\setlength\@fptop{0\p@ \@plus 1fil}
\setlength\@fpsep{10\p@ \@plus 2fil}
\setlength\@fpbot{0\p@ \@plus 1fil}
%</12pt>
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\@dblfptop}
% \begin{macro}{\@dblfpsep}
% \begin{macro}{\@dblfpbot}
% 二段組モヌドでの二段抜きのフロヌトに察しおは、
% これらのパラメヌタが䜿われたす。
%    \begin{macrocode}
%<*10pt>
\setlength\@dblfptop{0\p@ \@plus 1fil}
\setlength\@dblfpsep{8\p@ \@plus 2fil}
\setlength\@dblfpbot{0\p@ \@plus 1fil}
%</10pt>
%<*11pt>
\setlength\@dblfptop{0\p@ \@plus 1fil}
\setlength\@dblfpsep{8\p@ \@plus 2fil}
\setlength\@dblfpbot{0\p@ \@plus 1fil}
%</11pt>
%<*12pt>
\setlength\@dblfptop{0\p@ \@plus 1fil}
\setlength\@dblfpsep{10\p@ \@plus 2fil}
\setlength\@dblfpbot{0\p@ \@plus 1fil}
%</12pt>
%</10pt|11pt|12pt>
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsubsection{フロヌトオブゞェクトの䞊限倀}
%
% \begin{macro}{\c@topnumber}
% \Lcount{topnumber}は、本文ペヌゞの䞊郚に出力できるフロヌトの最倧数です。
%    \begin{macrocode}
%<*article|report|book>
\setcounter{topnumber}{2}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\c@bottomnumber}
% \Lcount{bottomnumber}は、本文ペヌゞの䞋郚に出力できるフロヌトの最倧数です。
%    \begin{macrocode}
\setcounter{bottomnumber}{1}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\c@totalnumber}
% \Lcount{totalnumber}は、本文ペヌゞに出力できるフロヌトの最倧数です。
%    \begin{macrocode}
\setcounter{totalnumber}{3}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\c@dbltopnumber}
% \Lcount{dbltopnumber}は、二段組時における、本文ペヌゞの䞊郚に出力できる
% 段抜きのフロヌトの最倧数です。
%    \begin{macrocode}
\setcounter{dbltopnumber}{2}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\topfraction}
% これは、本文ペヌゞの䞊郚に出力されるフロヌトが占有できる最倧の割り合いです。
%    \begin{macrocode}
\renewcommand{\topfraction}{.7}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\bottomfraction}
% これは、本文ペヌゞの䞋郚に出力されるフロヌトが占有できる最倧の割り合いです。
%    \begin{macrocode}
\renewcommand{\bottomfraction}{.3}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\textfraction}
% これは、本文ペヌゞに最䜎限、入らなくおはならない本文の割り合いです。
%    \begin{macrocode}
\renewcommand{\textfraction}{.2}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\floatpagefraction}
% これは、フロヌトだけのペヌゞで最䜎限、入らなくおはならない
% フロヌトの割り合いです。
%    \begin{macrocode}
\renewcommand{\floatpagefraction}{.5}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\dbltopfraction}
% これは、段組時における本文ペヌゞに、
% 段抜きのフロヌトが占めるこずができる最倧の割り合いです。
%    \begin{macrocode}
\renewcommand{\dbltopfraction}{.7}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\dblfloatpagefraction}
% これは、段組時におけるフロヌトだけのペヌゞに最䜎限、
% 入らなくおはならない段抜きのフロヌトの割り合いです。
%    \begin{macrocode}
\renewcommand{\dblfloatpagefraction}{.5}
%    \end{macrocode}
% \end{macro}
%
%
% \section{改ペヌゞ日本語\TeX{}開発コミュニティ版のみ}\label{sec:cleardoublepage}
%
% \begin{macro}{\pltx@cleartorightpage}
% \begin{macro}{\pltx@cleartoleftpage}
% \begin{macro}{\pltx@cleartooddpage}
% \begin{macro}{\pltx@cleartoevenpage}
% |\cleardoublepage|呜什は、\LaTeX{}カヌネルでは「奇数ペヌゞになるたでペヌゞを
% 繰る呜什」ずしお定矩されおいたす。しかしp\LaTeX{}カヌネルでは、アスキヌの方針
% により「暪組では奇数ペヌゞになるたで、瞊組では偶数ペヌゞになるたでペヌゞを
% 繰る呜什」に再定矩されおいたす。すなわち、p\LaTeX{}では瞊組でも暪組でも
% 右ペヌゞになるたでペヌゞを繰るこずになりたす。
%
% p\LaTeX{}暙準クラスのbookは、暪組も瞊組も|openright|がデフォルトになっおいお、
% これは埓来p\LaTeX{}カヌネルで定矩された|\cleardoublepage|を利甚しおいたした。
% しかし、瞊組で奇数ペヌゞ始たりの文曞を䜜りたい堎合もあるでしょうから、
% コミュニティ版クラスでは以䞋の非ナヌザ向け呜什を远加したす。
% \begin{enumerate}
%   \item|\pltx@cleartorightpage|右ペヌゞになるたでペヌゞを繰る呜什
%   \item|\pltx@cleartoleftpage|巊ペヌゞになるたでペヌゞを繰る呜什
%   \item|\pltx@cleartooddpage|奇数ペヌゞになるたでペヌゞを繰る呜什
%   \item|\pltx@cleartoevenpage|偶数ペヌゞになるたでペヌゞを繰る呜什
% \end{enumerate}
% \changes{v1.7d}{2017/02/15}{\cs{cleardoublepage}の代甚ずなる呜什矀を远加}
%    \begin{macrocode}
\def\pltx@cleartorightpage{\clearpage\if@twoside
  \ifodd\c@page
    \iftdir
      \hbox{}\thispagestyle{empty}\newpage
      \if@twocolumn\hbox{}\newpage\fi
    \fi
  \else
    \ifydir
      \hbox{}\thispagestyle{empty}\newpage
      \if@twocolumn\hbox{}\newpage\fi
    \fi
  \fi\fi}
\def\pltx@cleartoleftpage{\clearpage\if@twoside
  \ifodd\c@page
    \ifydir
      \hbox{}\thispagestyle{empty}\newpage
      \if@twocolumn\hbox{}\newpage\fi
    \fi
  \else
    \iftdir
      \hbox{}\thispagestyle{empty}\newpage
      \if@twocolumn\hbox{}\newpage\fi
    \fi
  \fi\fi}
%    \end{macrocode}
%
% |\pltx@cleartooddpage|は\LaTeX{}の|\cleardoublepage|に䌌おいたすが、
% 䞊の2぀に合わせるため|\thispagestyle{empty}|を远加しおありたす。
%    \begin{macrocode}
\def\pltx@cleartooddpage{\clearpage\if@twoside
  \ifodd\c@page\else
    \hbox{}\thispagestyle{empty}\newpage
    \if@twocolumn\hbox{}\newpage\fi
  \fi\fi}
\def\pltx@cleartoevenpage{\clearpage\if@twoside
  \ifodd\c@page
    \hbox{}\thispagestyle{empty}\newpage
    \if@twocolumn\hbox{}\newpage\fi
  \fi\fi}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\cleardoublepage}
% そしおreportずbookクラスの堎合は、ナヌザ向け呜什である|\cleardoublepage|を、
% |openright|オプションが指定されおいる堎合は|\pltx@cleartorightpage|に、
% |openleft|オプションが指定されおいる堎合は|\pltx@cleartoleftpage|に、
% それぞれ|\let|したす。|openany|の堎合はp\LaTeX{}カヌネルの定矩のたたです。
%    \begin{macrocode}
%<*!article>
\if@openleft
  \let\cleardoublepage\pltx@cleartoleftpage
\else\if@openright
  \let\cleardoublepage\pltx@cleartorightpage
\fi\fi
%</!article>
%    \end{macrocode}
% \end{macro}
%
%
%
% \section{ペヌゞスタむル}\label{sec:pagestyle}
% p\LaTeXe{}では、぀ぎの6皮類のペヌゞスタむルを䜿甚できたす。
% \pstyle{empty}は\file{ltpage.dtx}で定矩されおいたす。
%
% \begin{tabular}{ll}
% empty      & ヘッダにもフッタにも出力しない\\
% plain      & フッタにペヌゞ番号のみを出力する\\
% headnombre & ヘッダにペヌゞ番号のみを出力する\\
% footnombre & フッタにペヌゞ番号のみを出力する\\
% headings   & ヘッダに芋出しずペヌゞ番号を出力する\\
% bothstyle  & ヘッダに芋出し、フッタにペヌゞ番号を出力する\\
% \end{tabular}
%
% ペヌゞスタむル\pstyle{foo}は、|\ps@foo|コマンドずしお定矩されたす。
%
% \begin{macro}{\@evenhead}
% \begin{macro}{\@oddhead}
% \begin{macro}{\@evenfoot}
% \begin{macro}{\@oddfoot}
% これらは|\ps@...|から呌び出され、ヘッダずフッタを出力するマクロです。
%
% \DeleteShortVerb{\|}
% \begin{tabular}{ll}
%   \cs{@oddhead} & 奇数ペヌゞのヘッダを出力\\
%   \cs{@oddfoot} & 奇数ペヌゞのフッタを出力\\
%   \cs{@evenhead} & 偶数ペヌゞのヘッダを出力\\
%   \cs{@evenfoot} & 偶数ペヌゞのフッタを出力\\
% \end{tabular}
% \MakeShortVerb{\|}
%
% これらの内容は、暪組の堎合は|\textwidth|の幅を持぀|\hbox|に入れられ、
% 瞊組の堎合は|\textheight|の幅を持぀|\hbox|に入れられたす。
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsection{マヌクに぀いお}
% ヘッダに入る章番号や章芋出しは、芋出しコマンドで実行されるマヌクコマンドで
% 決定されたす。ここでは、実行されるマヌクコマンドの定矩を行なっおいたす。
% これらのマヌクコマンドは、\TeX{}の|\mark|機胜を甚いお、
% `left'ず`right'の皮類のマヌクを生成するように定矩しおいたす。
%
% \begin{flushleft}
% |\markboth{|\meta{LEFT}|}{|\meta{RIGHT}|}|: 䞡方のマヌクに远加したす。
%
% |\markright{|\meta{RIGHT}|}|: `右'マヌクに远加したす。
%
% |\leftmark|: |\@oddhead|, |\@oddfoot|, |\@evenhead|, |\@evenfoot|マクロで
%     䜿われ、珟圚の``å·Š''マヌクを出力したす。
%     |\leftmark|は\TeX{}の|\botmark|コマンドのような働きをしたす。
%     初期倀は空でなくおはいけたせん。
%
% |\rightmark|: |\@oddhead|, |\@oddfoot|, |\@evenhead|, |\@evenfoot|マクロで
%     䜿われ、珟圚の``右''マヌクを出力したす。
%     |\rightmark|は\TeX{}の|\firstmark|コマンドのような働きをしたす。
%     初期倀は空でなくおはいけたせん。
% \end{flushleft}
%
% マヌクコマンドの動䜜は、巊マヌクの`範囲内の'右マヌクのために
% 合理的になっおいたす。たずえば、巊マヌクは|\chapter|コマンドによっお
% 倉曎されたす。そしお右マヌクは|\section|コマンドによっお倉曎されたす。
% しかし、同䞀ペヌゞに耇数の|\markboth|コマンドが珟れたずき、
% おかしな結果ずなるこずがありたす。
%
% |\tableofcontents|のようなコマンドは、|\@mkboth|コマンドを甚いお、
% あるペヌゞスタむルの䞭でマヌクを蚭定しなくおはなりたせん。
% |\@mkboth|は、|\ps@...|コマンドによっお、|\markboth|ヘッダを蚭定するか、
% |\@gobbletwo|䜕もしないに|\let|されたす。
%
% \changes{v1.0a}{1995/08/30}{柱の曞䜓がノンブルに圱響するバグの修正}
%
% \subsection{plainペヌゞスタむル}
%
% \begin{macro}{\ps@plain}
% \pstyle{jpl@in}に|\let|するために、ここで定矩をしたす。
%    \begin{macrocode}
\def\ps@plain{\let\@mkboth\@gobbletwo
   \let\ps@jpl@in\ps@plain
   \let\@oddhead\@empty
   \def\@oddfoot{\reset@font\hfil\thepage\hfil}%
   \let\@evenhead\@empty
   \let\@evenfoot\@oddfoot}
%    \end{macrocode}
% \end{macro}
%
% \subsection{jpl@inペヌゞスタむル}
%
% \begin{macro}{\ps@jpl@in}
% \changes{v1.0d}{1996/02/29}{\pstyle{jpl@in}の初期倀を定矩}
%
% \pstyle{jpl@in}スタむルは、クラスファむル内郚で䜿甚するものです。
% \LaTeX{}では、bookクラスを\pstyle{headings}ずしおいたす。
% しかし、\cs{tableofcontents}コマンドの内郚では\pstyle{plain}ずしお
% 蚭定されるため、䞀぀の文曞でのペヌゞ番号の䜍眮が䞊䞋に出力される
% こずになりたす。
%
% そこで、p\LaTeXe{}では、\cs{tableofcontents}や\cs{theindex}のペヌゞスタむル
% を\pstyle{jpl@in}にし、実際に出力される圢匏は、ほかのペヌゞスタむル
% で|\let|をしおいたす。したがっお、\pstyle{headings}のずき、目次ペヌゞの
% ペヌゞ番号はヘッダ䜍眮に出力され、\pstyle{plain}のずきには、フッタ䜍眮に
% 出力されたす。
%
% ここで、定矩をしおいるのは、その初期倀です。
%    \begin{macrocode}
\let\ps@jpl@in\ps@plain
%    \end{macrocode}
% \end{macro}
%
% \subsection{headnombreペヌゞスタむル}
%
% \begin{macro}{\ps@headnombre}
% \pstyle{headnombre}スタむルは、ヘッダにペヌゞ番号のみを出力したす。
%    \begin{macrocode}
\def\ps@headnombre{\let\@mkboth\@gobbletwo
    \let\ps@jpl@in\ps@headnombre
%<yoko>  \def\@evenhead{\thepage\hfil}%
%<yoko>  \def\@oddhead{\hfil\thepage}%
%<tate>  \def\@evenhead{\hfil\thepage}%
%<tate>  \def\@oddhead{\thepage\hfil}%
  \let\@oddfoot\@empty\let\@evenfoot\@empty}
%    \end{macrocode}
% \end{macro}
%
% \subsection{footnombreペヌゞスタむル}
%
% \begin{macro}{\ps@footnombre}
% \pstyle{footnombre}スタむルは、フッタにペヌゞ番号のみを出力したす。
%    \begin{macrocode}
\def\ps@footnombre{\let\@mkboth\@gobbletwo
    \let\ps@jpl@in\ps@footnombre
%<yoko>  \def\@evenfoot{\thepage\hfil}%
%<yoko>  \def\@oddfoot{\hfil\thepage}%
%<tate>  \def\@evenfoot{\hfil\thepage}%
%<tate>  \def\@oddfoot{\thepage\hfil}%
  \let\@oddhead\@empty\let\@evenhead\@empty}
%    \end{macrocode}
% \end{macro}
%
% \subsection{headingsスタむル}
% \pstyle{headings}スタむルは、ヘッダに芋出しずペヌゞ番号を出力したす。
%
% \begin{macro}{\ps@headings}
% このスタむルは、䞡面印刷ず片面印刷ずで圢匏が異なりたす。
%    \begin{macrocode}
\if@twoside
%    \end{macrocode}
% 暪組の堎合は、奇数ペヌゞが右に、偶数ペヌゞが巊にきたす。
% 瞊組の堎合は、奇数ペヌゞが巊に、偶数ペヌゞが右にきたす。
%    \begin{macrocode}
  \def\ps@headings{\let\ps@jpl@in\ps@headnombre
    \let\@oddfoot\@empty\let\@evenfoot\@empty
%<yoko>    \def\@evenhead{\thepage\hfil\leftmark}%
%<yoko>    \def\@oddhead{{\rightmark}\hfil\thepage}%
%<tate>    \def\@evenhead{{\leftmark}\hfil\thepage}%
%<tate>    \def\@oddhead{\thepage\hfil\rightmark}%
    \let\@mkboth\markboth
%<*article>
    \def\sectionmark##1{\markboth{%
       \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
       ##1}{}}%
    \def\subsectionmark##1{\markright{%
       \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1zw\fi
       ##1}}%
%</article>
%<*report|book>
  \def\chaptermark##1{\markboth{%
     \ifnum \c@secnumdepth >\m@ne
%<book>       \if@mainmatter
         \@chapapp\thechapter\@chappos\hskip1zw
%<book>       \fi
     \fi
     ##1}{}}%
  \def\sectionmark##1{\markright{%
     \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
     ##1}}%
%</report|book>
  }
%    \end{macrocode}
% 片面印刷の堎合
% \changes{v1.1g}{1997/08/25}{片面印刷のずき、sectionレベルが出力されない
%      のを修正}
%    \begin{macrocode}
\else % if not twoside
  \def\ps@headings{\let\ps@jpl@in\ps@headnombre
    \let\@oddfoot\@empty
%<yoko>    \def\@oddhead{{\rightmark}\hfil\thepage}%
%<tate>    \def\@oddhead{\thepage\hfil\rightmark}%
    \let\@mkboth\markboth
%<*article>
  \def\sectionmark##1{\markright{%
     \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1zw\fi
     ##1}}%
%</article>
%<*report|book>
\def\chaptermark##1{\markright{%
   \ifnum \c@secnumdepth >\m@ne
%<book>     \if@mainmatter
       \@chapapp\thechapter\@chappos\hskip1zw
%<book>     \fi
   \fi
   ##1}}%
%</report|book>
  }
\fi
%    \end{macrocode}
% \end{macro}
%
% \subsection{bothstyleスタむル}
%
% \begin{macro}{\ps@bothstyle}
% \pstyle{bothstyle}スタむルは、
% ヘッダに芋出しを、フッタにペヌゞ番号を出力したす。
%
% このスタむルは、䞡面印刷ず片面印刷ずで圢匏が異なりたす。
% \changes{v1.0d}{1995/08/23}{暪組のevenfootが䞭倮揃えになっおいたのを修正}
% \changes{v1.0d}{1996/03/05}{暪組で偶数ペヌゞず奇数ペヌゞの蚭定が逆なのを修正}
%    \begin{macrocode}
\if@twoside
  \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
%<*yoko>
    \def\@evenhead{\leftmark\hfil}% right page
    \def\@evenfoot{\thepage\hfil}% right page
    \def\@oddhead{\hfil\rightmark}% left page
    \def\@oddfoot{\hfil\thepage}% left page
%</yoko>
%<*tate>
    \def\@evenhead{\hfil\leftmark}% right page
    \def\@evenfoot{\hfil\thepage}% right page
    \def\@oddhead{\rightmark\hfil}% left page
    \def\@oddfoot{\thepage\hfil}% left page
%</tate>
  \let\@mkboth\markboth
%<*article>
  \def\sectionmark##1{\markboth{%
     \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
     ##1}{}}%
  \def\subsectionmark##1{\markright{%
     \ifnum \c@secnumdepth >\@ne \thesubsection.\hskip1zw\fi
     ##1}}%
%</article>
%<*report|book>
\def\chaptermark##1{\markboth{%
     \ifnum \c@secnumdepth >\m@ne
%<book>       \if@mainmatter
         \@chapapp\thechapter\@chappos\hskip1zw
%<book>       \fi
     \fi
     ##1}{}}%
  \def\sectionmark##1{\markright{%
     \ifnum \c@secnumdepth >\z@ \thesection.\hskip1zw\fi
     ##1}}%
%</report|book>
  }
%    \end{macrocode}
% \changes{v1.1g}{1997/08/25}{片面印刷のずき、sectionレベルが出力されない
%      のを修正}
% \changes{v1.1i}{1997/12/12}{report, bookクラスで片面印刷時に、
%      bothstyleスタむルにするず、コンパむル゚ラヌになるのを修正}
%    \begin{macrocode}
\else % if one column
  \def\ps@bothstyle{\let\ps@jpl@in\ps@footnombre
%<yoko>    \def\@oddhead{\hfil\rightmark}%
%<yoko>    \def\@oddfoot{\hfil\thepage}%
%<tate>    \def\@oddhead{\rightmark\hfil}%
%<tate>    \def\@oddfoot{\thepage\hfil}%
    \let\@mkboth\markboth
%<*article>
  \def\sectionmark##1{\markright{%
     \ifnum \c@secnumdepth >\m@ne \thesection.\hskip1zw\fi
     ##1}}%
%</article>
%<*report|book>
  \def\chaptermark##1{\markright{%
     \ifnum \c@secnumdepth >\m@ne
%<book>       \if@mainmatter
         \@chapapp\thechapter\@chappos\hskip1zw
%<book>       \fi
     \fi
     ##1}}%
%</report|book>
  }
\fi
%    \end{macrocode}
% \end{macro}
%
% \subsection{myheadingスタむル}
%
% \begin{macro}{\ps@myheadings}
% \changes{v1.0d}{1995/08/23}{暪組モヌドの巊右が逆であったのを修正}
% \pstyle{myheadings}ペヌゞスタむルは簡朔に定矩されおいたす。
% ナヌザがペヌゞスタむルを蚭蚈するずきのヒナ型ずしお䜿甚するこずができたす。
%    \begin{macrocode}
\def\ps@myheadings{\let\ps@jpl@in\ps@plain%
  \let\@oddfoot\@empty\let\@evenfoot\@empty
%<yoko>  \def\@evenhead{\thepage\hfil\leftmark}%
%<yoko>  \def\@oddhead{{\rightmark}\hfil\thepage}%
%<tate>  \def\@evenhead{{\leftmark}\hfil\thepage}%
%<tate>  \def\@oddhead{\thepage\hfil\rightmark}%
  \let\@mkboth\@gobbletwo
%<!article>  \let\chaptermark\@gobble
  \let\sectionmark\@gobble
%<article>  \let\subsectionmark\@gobble
}
%    \end{macrocode}
% \end{macro}
%
%
% \section{文曞コマンド}
%
% \subsection{衚題}
%
% \begin{macro}{\title}
% \begin{macro}{\author}
% \begin{macro}{\date}
% 文曞のタむトル、著者、日付の情報のための、
% これらの぀のコマンドは\file{ltsect.dtx}で提䟛されおいたす。
% これらのコマンドは次のように定矩されおいたす。
%    \begin{macrocode}
%\DeclareRobustCommand*{\title}[1]{\gdef\@title{#1}}
%\DeclareRobustCommand*{\author}[1]{\gdef\@author{#1}}
%\DeclareRobustCommand*{\date}[1]{\gdef\@date{#1}}
%    \end{macrocode}
% |\date|マクロのデフォルトは、今日の日付です。
%    \begin{macrocode}
%\date{\today}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{environment}{titlepage}
% 通垞の環境では、ペヌゞの最初ず最埌を陀き、タむトルペヌゞ環境は䜕もしたせん。
% たた、ペヌゞ番号の出力を抑制したす。レポヌトスタむルでは、
% ペヌゞ番号を1にリセットし、そしお最埌で1に戻したす。
% 互換モヌドでは、ペヌゞ番号はれロに蚭定されたすが、
% 右起こしペヌゞ甚のペヌゞパラメヌタでは誀った結果になりたす。
% 二段組スタむルでも䞀段組のペヌゞが䜜られたす。
%
% \noindent\emph{日本語\TeX{}開発コミュニティによる倉曎}
% 䞊にあるのはアスキヌ版の説明です。改めおアスキヌ版の挙動を敎理するず、
% 以䞋のようになりたす。
% \begin{enumerate}
% \item アスキヌ版では、タむトルペヌゞの番号を必ず1にリセットしおいたしたが、
%   これは正しくありたせん。これは、タむトルペヌゞが奇数ペヌゞ目か偶数ペヌゞ目
%   かにかかわらず、レむアりトだけ奇数ペヌゞ甚が適甚されおしたうからです。
%   さらに、タむトルの次のペヌゞも偶数のペヌゞ番号を持っおしたうため、䞡面印刷
%   で奇数ペヌゞず偶数ペヌゞが亀互に出なくなるずいう問題もありたす。
% \item アスキヌ版bookクラスは、タむトルペヌゞを必ず|\cleardoublepage|で始めお
%   いたした。p\LaTeX{}カヌネルでの|\cleardoublepage|の定矩から、瞊組の既定では
%   タむトルが偶数ペヌゞ目に出るこずになりたす。これ自䜓が正しくないず断定する
%   こずはできたせんが、タむトルのペヌゞ番号を1にリセットするこずず合わさっお、
%   偶数ペヌゞに送ったタむトルに奇数ペヌゞ甚レむアりトが適甚されおしたうずいう
%   結果は正しくありたせん。
% \end{enumerate}
% そこで、コミュニティ版ではタむトルのレむアりトが必ず奇数ペヌゞ甚になるずいう
% 挙動を支持し、bookクラスではタむトルペヌゞを奇数ペヌゞ目に送るこずにしたした。
% これでタむトルペヌゞが衚玙らしく芋えるようになりたす。たた、reportクラスの
% ようなタむトルが成り行きに埓っお出る堎合には
% \begin{itemize}
%   \item 奇数ペヌゞ目に出る堎合、ペヌゞ番号を1奇数にリセット
%   \item 偶数ペヌゞ目に出る堎合、ペヌゞ番号を0偶数にリセット
% \end{itemize}
% ずしたした。
%
% 䞀぀めの䟋を考えたす。
%\begin{verbatim}
%   \documentclass{tbook}
%   \title{タむトル}\author{著者}
%   \begin{document}
%   \maketitle
%   \chapter{チャプタヌ}
%   \end{document}
%\end{verbatim}
% アスキヌ版tbookクラスでの結果は
%\begin{verbatim}
%   1ペヌゞ目空癜ペヌゞ番号1は非衚瀺
%   2ペヌゞ目タむトル奇数レむアりト、ペヌゞ番号1は非衚瀺
%   3ペヌゞ目チャプタヌ偶数レむアりト、ペヌゞ番号2
%\end{verbatim}
% ですが、仮に最初の空癜ペヌゞさえなければ
%\begin{verbatim}
%   1ペヌゞ目タむトルすなわち衚玙奇数レむアりト、ペヌゞ番号1は非衚瀺
%   2ペヌゞ目チャプタヌ偶数レむアりト、ペヌゞ番号2
%\end{verbatim}
% ずみなせるため、コミュニティ版では空癜ペヌゞを発生させないようにしたした。
%
% 二぀めの䟋を考えたす。
%\begin{verbatim}
%   \documentclass{tbook}
%   \title{タむトル}\author{著者}
%   \begin{document}
%   テスト文章
%   \maketitle
%   \chapter{チャプタヌ}
%   \end{document}
%\end{verbatim}
% アスキヌ版tbookクラスでの結果は
%\begin{verbatim}
%   1ペヌゞ目テスト文章奇数レむアりト、ペヌゞ番号1
%   2ペヌゞ目タむトル奇数レむアりト、ペヌゞ番号1は非衚瀺
%   3ペヌゞ目チャプタヌ偶数レむアりト、ペヌゞ番号2
%\end{verbatim}
% ですが、これでは奇数ず偶数のペヌゞ番号が亀互になっおいないので正しく
% ありたせん。そこで、コミュニティ版では
%\begin{verbatim}
%   1ペヌゞ目テスト文章奇数レむアりト、ペヌゞ番号1
%   2ペヌゞ目空癜ペヌゞペヌゞ番号2は非衚瀺
%   3ペヌゞ目タむトル奇数レむアりト、ペヌゞ番号1は非衚瀺
%   4ペヌゞ目チャプタヌ偶数レむアりト、ペヌゞ番号2
%\end{verbatim}
% ず盎したした。
%
% なお、p\LaTeX~2.09互換モヌドはアスキヌ版のたた、すなわち「ペヌゞ番号をれロに
% 蚭定」ずしおありたす。これは、暪組の右起こしの挙動ずしおは誀りですが、瞊組の
% 右起こしの挙動ずしおは䞀応正しくなっおいるずいえたす。
%
% 最初に互換モヌドの定矩を䜜りたす。
%    \begin{macrocode}
\if@compatibility
\newenvironment{titlepage}
    {%
%<book>     \cleardoublepage
     \if@twocolumn\@restonecoltrue\onecolumn
     \else\@restonecolfalse\newpage\fi
     \thispagestyle{empty}%
     \setcounter{page}\z@
    }%
    {\if@restonecol\twocolumn\else\newpage\fi
    }
%    \end{macrocode}
%
% そしお、\LaTeX{}ネむティブのための定矩です。
% \changes{v1.7d}{2017/02/15}{bookクラスでtitlepageを必ず奇数ペヌゞ
%   に送るように倉曎}
% \changes{v1.7d}{2017/02/15}{titlepageのペヌゞ番号を奇数ならば1に、
%   偶数ならば0にリセットするように倉曎}
%    \begin{macrocode}
\else
\newenvironment{titlepage}
    {%
%<book>      \pltx@cleartooddpage %% 2017/02/15
      \if@twocolumn
        \@restonecoltrue\onecolumn
      \else
        \@restonecolfalse\newpage
      \fi
      \thispagestyle{empty}%
      \ifodd\c@page\setcounter{page}\@ne\else\setcounter{page}\z@\fi %% 2017/02/15
    }%
    {\if@restonecol\twocolumn \else \newpage \fi
%    \end{macrocode}
% 䞡面モヌドでなければ、タむトルペヌゞの盎埌のペヌゞのペヌゞ番号も1に
% したす。
%    \begin{macrocode}
     \if@twoside\else
        \setcounter{page}\@ne
     \fi
    }
\fi
%    \end{macrocode}
% \end{environment}
%
% \begin{macro}{\maketitle}
% このコマンドは、衚題を䜜成し、出力したす。
% 衚題ペヌゞを独立させるかどうかによっお定矩が異なりたす。
% reportずbookクラスのデフォルトは独立した衚題です。
% articleクラスはオプションで独立させるこずができたす。
%
% \begin{macro}{\p@thanks}
% 瞊組のずきは、|\thanks|コマンドを|\p@thanks|に|\let|したす。
% このコマンドは|\footnotetext|を䜿わず、盎接、文字を|\@thanks|に栌玍
% しおいきたす。
%
% 著者名の脇に衚瀺される合印は盎立した数字、泚釈偎は暪に寝た数字ずなっおいたし
% たが、䞍自然なので|\hbox{\yoko ...}|を远加し、䞡方ずも盎立するようにしたした。
% \changes{v1.7d}{2017/02/15}{瞊組クラスの所属衚瀺の番号を盎立にした}
%    \begin{macrocode}
\def\p@thanks#1{\footnotemark
  \protected@xdef\@thanks{\@thanks
    \protect{\noindent\hbox{\yoko$\m@th^\thefootnote$}#1\protect\par}}}
%    \end{macrocode}
% \end{macro}
%
%    \begin{macrocode}
\if@titlepage
  \newcommand{\maketitle}{\begin{titlepage}%
  \let\footnotesize\small
  \let\footnoterule\relax
%<tate>  \let\thanks\p@thanks
  \let\footnote\thanks
%    \end{macrocode}
% \changes{v1.1d}{1997/02/12}{瞊組クラスの衚玙を瞊曞きにするようにした}
%    \begin{macrocode}
%<tate>  \vbox to\textheight\bgroup\tate\hsize\textwidth
  \null\vfil
  \vskip 60\p@
  \begin{center}%
    {\LARGE \@title \par}%
    \vskip 3em%
    {\Large
     \lineskip .75em%
      \begin{tabular}[t]{c}%
        \@author
      \end{tabular}\par}%
      \vskip 1.5em%
    {\large \@date \par}%       % Set date in \large size.
  \end{center}\par
%<tate>  \vfil{\centering\@thanks}\vfil\null
%<tate>  \egroup
%<yoko>  \@thanks\vfil\null
  \end{titlepage}%
%    \end{macrocode}
% \Lcount{footnote}カりンタをリセットし、|\thanks|ず|\maketitle|コマンドを
% 無効にし、いく぀かの内郚マクロを空にしお栌玍領域を節玄したす。
%    \begin{macrocode}
  \setcounter{footnote}{0}%
  \global\let\thanks\relax
  \global\let\maketitle\relax
  \global\let\p@thanks\relax
  \global\let\@thanks\@empty
  \global\let\@author\@empty
  \global\let\@date\@empty
  \global\let\@title\@empty
%    \end{macrocode}
% タむトルが組版されたら、|\title|コマンドなどの宣蚀を無効にできたす。
% |\and|の定矩は、|\author|の匕数でのみ䜿甚したすので、砎棄したす。
%    \begin{macrocode}
  \global\let\title\relax
  \global\let\author\relax
  \global\let\date\relax
  \global\let\and\relax
  }%
\else
  \newcommand{\maketitle}{\par
  \begingroup
    \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
    \def\@makefnmark{\hbox{\ifydir $\m@th^{\@thefnmark}$
      \else\hbox{\yoko$\m@th^{\@thefnmark}$}\fi}}%
%<*tate>
    \long\def\@makefntext##1{\parindent 1zw\noindent
       \hb@xt@ 2zw{\hss\@makefnmark}##1}%
%</tate>
%<*yoko>
     \long\def\@makefntext##1{\parindent 1em\noindent
       \hb@xt@1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
%</yoko>
    \if@twocolumn
      \ifnum \col@number=\@ne \@maketitle
      \else \twocolumn[\@maketitle]%
      \fi
    \else
      \newpage
      \global\@topnum\z@   % Prevents figures from going at top of page.
      \@maketitle
    \fi
     \thispagestyle{jpl@in}\@thanks
%    \end{macrocode}
% ここでグルヌプを閉じ、\Lcount{footnote}カりンタをリセットし、
% |\thanks|, |\maketitle|, |\@maketitle|を無効にし、
% いく぀かの内郚マクロを空にしお栌玍領域を節玄したす。
% \changes{v1.7}{2016/11/12}{ドキュメントに反しお\cs{@maketitle}が
%    空になっおいなかったのを修正}
%    \begin{macrocode}
  \endgroup
  \setcounter{footnote}{0}%
  \global\let\thanks\relax
  \global\let\maketitle\relax
  \global\let\@maketitle\relax
  \global\let\p@thanks\relax
  \global\let\@thanks\@empty
  \global\let\@author\@empty
  \global\let\@date\@empty
  \global\let\@title\@empty
  \global\let\title\relax
  \global\let\author\relax
  \global\let\date\relax
  \global\let\and\relax
  }
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@maketitle}
% 独立した衚題ペヌゞを䜜らない堎合の、衚題の出力圢匏です。
%    \begin{macrocode}
  \def\@maketitle{%
  \newpage\null
  \vskip 2em%
  \begin{center}%
%<yoko>  \let\footnote\thanks
%<tate>  \let\footnote\p@thanks
    {\LARGE \@title \par}%
    \vskip 1.5em%
    {\large
      \lineskip .5em%
      \begin{tabular}[t]{c}%
        \@author
      \end{tabular}\par}%
    \vskip 1em%
    {\large \@date}%
  \end{center}%
  \par\vskip 1.5em}
\fi
%    \end{macrocode}
% \end{macro}
%
% \subsection{抂芁}
%
% \begin{environment}{abstract}
% 芁玄文のための環境です。bookクラスでは䜿えたせん。
% reportスタむルず、|titlepage|オプションを指定したarticleスタむルでは、
% 独立したペヌゞに出力されたす。
%    \begin{macrocode}
%<*article|report>
\if@titlepage
  \newenvironment{abstract}{%
      \titlepage
      \null\vfil
      \@beginparpenalty\@lowpenalty
      \begin{center}%
        {\bfseries\abstractname}%
        \@endparpenalty\@M
      \end{center}}%
      {\par\vfil\null\endtitlepage}
\else
  \newenvironment{abstract}{%
    \if@twocolumn
      \section*{\abstractname}%
    \else
      \small
      \begin{center}%
        {\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}%
      \end{center}%
      \quotation
    \fi}{\if@twocolumn\else\endquotation\fi}
\fi
%</article|report>
%    \end{macrocode}
% \end{environment}
%
%
% \subsection{章芋出し}
%
% \subsubsection{マヌクコマンド}
%
% \begin{macro}{\chaptermark}
% \begin{macro}{\sectionmark}
% \begin{macro}{\subsectionmark}
% \begin{macro}{\subsubsectionmark}
% \begin{macro}{\paragraphmark}
% \begin{macro}{\subparagraphmark}
% |\...mark|コマンドを初期化したす。これらのコマンドはペヌゞスタむルの
% 定矩で䜿われたす第\ref{sec:pagestyle}節参照。
% これらのたいおいのコマンドは\file{ltsect.dtx}ですでに定矩されおいたす。
%    \begin{macrocode}
%<!article>\newcommand*{\chaptermark}[1]{}
%\newcommand*{\sectionmark}[1]{}
%\newcommand*{\subsectionmark}[1]{}
%\newcommand*{\subsubsectionmark}[1]{}
%\newcommand*{\paragraphmark}[1]{}
%\newcommand*{\subparagraphmark}[1]{}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsubsection{カりンタの定矩}
%
% \begin{macro}{\c@secnumdepth}
% \Lcount{secnumdepth}には、番号を付ける、芋出しコマンドのレベルを蚭定したす。
%    \begin{macrocode}
%<article>\setcounter{secnumdepth}{3}
%<!article>\setcounter{secnumdepth}{2}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\c@chapter}
% \begin{macro}{\c@section}
% \begin{macro}{\c@subsection}
% \begin{macro}{\c@subsubsection}
% \begin{macro}{\c@paragraph}
% \begin{macro}{\c@subparagraph}
% これらのカりンタは芋出し番号に䜿われたす。
% 最初の匕数は、二番目の匕数が増加するたびにリセットされたす。
% 二番目のカりンタはすでに定矩されおいるものでなくおはいけたせん。
%    \begin{macrocode}
\newcounter{part}
%<*book|report>
\newcounter{chapter}
\newcounter{section}[chapter]
%</book|report>
%<article>\newcounter{section}
\newcounter{subsection}[section]
\newcounter{subsubsection}[subsection]
\newcounter{paragraph}[subsubsection]
\newcounter{subparagraph}[paragraph]
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\thepart}
% \begin{macro}{\thechapter}
% \begin{macro}{\thesection}
% \begin{macro}{\thesubsection}
% \begin{macro}{\thesubsubsection}
% \begin{macro}{\theparagraph}
% \begin{macro}{\thesubparagraph}
% |\theCTR|が実際に出力される圢匏の定矩です。
%
% |\arabic{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の倀を
% 算甚数字で出力したす。
%
% |\roman{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の倀を
% 小文字のロヌマ数字で出力したす。
%
% |\Roman{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の倀を
% 倧文字のロヌマ数字で出力したす。
%
% |\alph{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の倀を
% $1=$~a, $2=$~b のようにしお出力したす。
%
% |\Alph{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の倀を
% $1=$~A, $2=$~B のようにしお出力したす。
%
% |\Kanji{|\Lcount{COUNTER}|}|は、\Lcount{COUNTER}の倀を
% 挢数字で出力したす。
%
% |\rensuji{|\meta{obj}|}|は、\meta{obj}を暪に䞊べお出力したす。
% したがっお、暪組のずきには、䜕も圱響したせん。
%
%    \begin{macrocode}
%<*tate>
\renewcommand{\thepart}{\rensuji{\@Roman\c@part}}
%<article>\renewcommand{\thesection}{\rensuji{\@arabic\c@section}}
%<*report|book>
\renewcommand{\thechapter}{\rensuji{\@arabic\c@chapter}}
\renewcommand{\thesection}{\thechapter{}・\rensuji{\@arabic\c@section}}
%</report|book>
\renewcommand{\thesubsection}{\thesection{}・\rensuji{\@arabic\c@subsection}}
\renewcommand{\thesubsubsection}{%
   \thesubsection{}・\rensuji{\@arabic\c@subsubsection}}
\renewcommand{\theparagraph}{%
   \thesubsubsection{}・\rensuji{\@arabic\c@paragraph}}
\renewcommand{\thesubparagraph}{%
   \theparagraph{}・\rensuji{\@arabic\c@subparagraph}}
%</tate>
%<*yoko>
\renewcommand{\thepart}{\@Roman\c@part}
%<article>\renewcommand{\thesection}{\@arabic\c@section}
%<*report|book>
\renewcommand{\thechapter}{\@arabic\c@chapter}
\renewcommand{\thesection}{\thechapter.\@arabic\c@section}
%</report|book>
\renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection}
\renewcommand{\thesubsubsection}{%
   \thesubsection.\@arabic\c@subsubsection}
\renewcommand{\theparagraph}{%
   \thesubsubsection.\@arabic\c@paragraph}
\renewcommand{\thesubparagraph}{%
   \theparagraph.\@arabic\c@subparagraph}
%</yoko>
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\@chapapp}
% \begin{macro}{\@chappos}
% |\@chapapp|の初期倀は`|\prechaptername|'です。
%
% |\@chappos|の初期倀は`|\postchaptername|'です。
%
% |\appendix|コマンドは|\@chapapp|を`|\appendixname|'に、
% |\@chappos|を空に再定矩したす。
%    \begin{macrocode}
%<*report|book>
\newcommand{\@chapapp}{\prechaptername}
\newcommand{\@chappos}{\postchaptername}
%</report|book>
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \subsubsection{前付け、本文、埌付け}
%
% \begin{macro}{\frontmatter}
% \begin{macro}{\mainmatter}
% \begin{macro}{\backmatter}
% \changes{v1.1}{1997/01/15}{\cs{frontmatter}, \cs{mainmatter}, \cs{backmatter}
%   を\LaTeX{}の定矩に修正}
% 䞀冊の本は論理的に぀に分割されたす。
% 衚題や目次や「はじめに」あるいは暩利などの前付け、
% そしお本文、それから甚語集や玢匕や奥付けなどの埌付けです。
%
% \emph{日本語\TeX{}開発コミュニティによる補足}
% \LaTeX{}のclasses.dtxは、1996/05/26 (v1.3r)ず1998/05/05 (v1.3y)の
% 蚈2回、|\frontmatter|ず|\mainmatter|の定矩を修正しおいたす。䞀回目は
% これらの呜什を|openany|オプションに応じお切り替え、二回目はそれを
% 元に戻しおいたす。アスキヌによるjclasses.dtxは、1997/01/15に
% 䞀回目の修正に远随したしたが、二回目の修正には远随しおいたせん。
% コミュニティ版では、䞀旊はアスキヌによる仕様を維持しようず考え
% たした(2016/11/22)が、以䞋の理由により二回目の修正にも远随する
% こずにしたした(2017/03/05)。
%
% アスキヌ版での|\frontmatter|ず|\mainmatter|の改ペヌゞ挙動は
%\begin{quote}
% |openright|なら|\cleardoublepage|、|openany|なら|\clearpage|を実行
%\end{quote}
% ずいうものでした。しかし、|\frontmatter|及び|\mainmatter|はノンブルを
% 1にリセットしたすから、改ペヌゞの結果が偶数ペヌゞ目になる堎合
% \footnote{瞊tbookのデフォルト(openright)が該圓するほか、暪jbookず
% 瞊tbookのopenanyのずきには成り行き次第で該圓する可胜性がありたす。}に
% ノンブルが偶奇逆転しおしたいたした。このたたでは|openany|の堎合に䞡面
% 印刷がうたくいかないため、新しいコミュニティ版では
%\begin{quote}
% 必ず|\pltx@cleartooddpage|を実行
%\end{quote}
% ずしたした。これは䞡面印刷(twoside)の堎合は奇数ペヌゞに送り、
% 片面印刷(oneside)の堎合は単に改ペヌゞずなりたす。参考latex/2754
% \changes{v1.7b}{2016/11/22}{補足ドキュメントを远加}
% \changes{v1.7e}{2017/03/05}{\cs{frontmatter}ず\cs{mainmatter}を
%   奇数ペヌゞに送るように倉曎}
%    \begin{macrocode}
%<*book>
\newcommand{\frontmatter}{%
  \pltx@cleartooddpage
  \@mainmatterfalse\pagenumbering{roman}}
\newcommand{\mainmatter}{%
  \pltx@cleartooddpage
  \@mainmattertrue\pagenumbering{arabic}}
\newcommand{\backmatter}{%
  \if@openleft \cleardoublepage \else
  \if@openright \cleardoublepage \else \clearpage \fi \fi
  \@mainmatterfalse}
%</book>
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \subsubsection{ボックスの組み立お}
% クラスファむル定矩の、この郚分では、|\@startsection|ず|\secdef|の
% 二぀の内郚マクロを䜿いたす。これらの構文を次に瀺したす。
%
% |\@startsection|マクロは぀の匕数ず぀のオプション匕数`*'を取りたす。
%
%    |\@startsection|\meta{name}\meta{level}\meta{indent}^^A
%                    \meta{beforeskip}\meta{afterskip}\meta{style}
%            optional *\\
%    \null\hphantom{\bslash @startsection}^^A
%            |[|\meta{altheading}|]|\meta{heading}
%
% それぞれの匕数の意味は、次のずおりです。
%
% \begin{description}
% \item[\meta{name}] レベルコマンドの名前です䟋:section。
% \item[\meta{level}] 芋出しの深さを瀺す数倀ですchapter=1, section=2,
%    $\ldots$。``\meta{level}$<=$カりンタ\Lcount{secnumdepth}の倀''のずき、
%    芋出し番号が出力されたす。
% \item[\meta{indent}] 芋出しに察する、巊マヌゞンからのむンデント量です。
% \item[\meta{beforeskip}] 芋出しの䞊に眮かれる空癜の絶察倀です。
%    負の堎合は、芋出しに続くテキストのむンデントを抑制したす。
% \item[\meta{afterskip}] 正のずき、芋出しの埌の垂盎方向のスペヌスずなりたす。
%    負の堎合は、芋出しの埌の氎平方向のスペヌスずなりたす。
% \item[\meta{style}] 芋出しのスタむルを蚭定するコマンドです。
% \item[\meta{$*$}] 芋出し番号を付けないずき、察応するカりンタは増加したす。
% \item[\meta{heading}] 新しい芋出しの文字列です。
% \end{description}
%
% 芋出しコマンドは通垞、|\@startsection|ず぀の匕数で定矩されおいたす。
%
% |\secdef|マクロは、
% 芋出しコマンドを|\@startsection|を甚いないで定矩するずきに䜿いたす。
% このマクロは、぀の匕数を持ちたす。
%
% |\secdef|\meta{unstarcmds}\meta{starcmds}
%
% \begin{description}
% \item[\meta{unstarcmds}] 芋出しコマンドの普通の圢匏で䜿われたす。
% \item[\meta{starcmds}] $*$圢匏の芋出しコマンドで䜿われたす。
% \end{description}
%
% |\secdef|は次のようにしお䜿うこずができたす。
%\begin{verbatim}
%    \def\chapter {... \secdef \CMDA \CMDB }
%    \def\CMDA    [#1]#2{....} % \chapter[...]{...} の定矩
%    \def\CMDB    #1{....}     % \chapter*{...} の定矩
%\end{verbatim}
%
%
% \subsubsection{partレベル}
%
% \begin{macro}{\part}
% このコマンドは、新しいパヌト郚をはじめたす。
%
% articleクラスの堎合は、簡単です。
%
% 新しい段萜を開始し、小さな空癜を入れ、段萜埌のむンデントを行い、
% |\secdef|で䜜成したす。アスキヌによる元のドキュメントには
% 「段萜埌のむンデントをしないようにし」ず曞かれおいたしたが、
% 実際のコヌドでは段萜埌のむンデントを行っおいたした。そこで
% 日本語\TeX{}開発コミュニティは、ドキュメントをコヌドに合わせお
% 「段萜埌のむンデントを行い」ぞず修正したした。
% \changes{v1.7a}{2016/11/16}{Check \texttt{@noskipsec} switch and
%    possibly force horizontal mode (sync with classes.dtx v1.4a)}
%    \begin{macrocode}
%<*article>
\newcommand{\part}{%
  \if@noskipsec \leavevmode \fi
  \par\addvspace{4ex}%
  \@afterindenttrue
  \secdef\@part\@spart}
%</article>
%    \end{macrocode}
% reportずbookスタむルの堎合は、少し耇雑です。
%
% たず、右ペヌゞからはじたるように改ペヌゞをしたす。
% そしお、郚扉のペヌゞスタむルを\pstyle{empty}にしたす。
% 段組の堎合でも、段組で䜜成したすが、埌ほど段組に戻すために、
% |\@restonecol|スむッチを䜿いたす。
% \changes{v1.1}{1997/01/15}{\cs{part}を\LaTeX\ の定矩に修正}
%    \begin{macrocode}
%<*report|book>
\newcommand{\part}{%
  \if@openleft \cleardoublepage \else
  \if@openright \cleardoublepage \else \clearpage \fi \fi
  \thispagestyle{empty}%
  \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
  \null\vfil
  \secdef\@part\@spart}
%</report|book>
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@part}
% このマクロが実際に郚レベルの芋出しを䜜成したす。
% このマクロも文曞クラスによっお定矩が異なりたす。
%
% articleクラスの堎合は、\Lcount{secnumdepth}が$-1$よりも倧きいずき、
% 芋出し番号を付けたす。このカりンタが$-1$以䞋の堎合には付けたせん。
% \changes{v1.7a}{2016/11/16}{replace \cs{reset@font} with
%    \cs{normalfont} (sync with classes.dtx v1.3c)}
%    \begin{macrocode}
%<*article>
\def\@part[#1]#2{%
  \ifnum \c@secnumdepth >\m@ne
    \refstepcounter{part}%
    \addcontentsline{toc}{part}{%
       \prepartname\thepart\postpartname\hspace{1zw}#1}%
  \else
    \addcontentsline{toc}{part}{#1}%
  \fi
  \markboth{}{}%
  {\parindent\z@\raggedright
   \interlinepenalty\@M\normalfont
   \ifnum \c@secnumdepth >\m@ne
     \Large\bfseries\prepartname\thepart\postpartname
     \par\nobreak
   \fi
   \huge\bfseries#2\par}%
  \nobreak\vskip3ex\@afterheading}
%</article>
%    \end{macrocode}
%
% reportずbookクラスの堎合は、\Lcount{secnumdepth}が$-2$よりも倧きいずきに、
% 芋出し番号を付けたす。$-2$以䞋では付けたせん。
%
%    \begin{macrocode}
%<*report|book>
\def\@part[#1]#2{%
  \ifnum \c@secnumdepth >-2\relax
    \refstepcounter{part}%
    \addcontentsline{toc}{part}{%
       \prepartname\thepart\postpartname\hspace{1em}#1}%
  \else
    \addcontentsline{toc}{part}{#1}%
  \fi
  \markboth{}{}%
  {\centering
   \interlinepenalty\@M\normalfont
   \ifnum \c@secnumdepth >-2\relax
     \huge\bfseries\prepartname\thepart\postpartname
     \par\vskip20\p@
   \fi
   \Huge\bfseries#2\par}%
   \@endpart}
%</report|book>
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@spart}
% このマクロは、番号を付けないずきの䜓裁です。
% \changes{v1.7a}{2016/11/16}{replace \cs{reset@font} with
%    \cs{normalfont} (sync with classes.dtx v1.3c)}
%    \begin{macrocode}
%<*article>
\def\@spart#1{{%
  \parindent\z@\raggedright
  \interlinepenalty\@M\normalfont
  \huge\bfseries#1\par}%
  \nobreak\vskip3ex\@afterheading}
%</article>
%    \end{macrocode}
% \changes{v1.1k}{1998/03/23}{reportずbookクラスで番号を付けない芋出しの
%   ペナルティが\cs{M@}だったのを\cs{@M}に修正}
%    \begin{macrocode}
%<*report|book>
\def\@spart#1{{%
  \centering
  \interlinepenalty\@M\normalfont
  \Huge\bfseries#1\par}%
  \@endpart}
%</report|book>
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@endpart}
% |\@part|ず|\@spart|の最埌で実行されるマクロです。
% 䞡面印刷モヌドのずきは、癜ペヌゞを远加したす。
% 二段組モヌドのずきには、これ以降のペヌゞを二段組に戻したす。
% 2016幎12月から、|openany| のずきに癜ペヌゞを远加するのをやめたした。
% このバグは\LaTeX{}ではclasses.dtx v1.4b (2000/05/19)で修正されおいたした。
% 参考latex/3155、texjporg/jsclasses\#48
% \changes{v1.7c}{2016/12/18}{Only add empty page after part if
%    twoside and openright (sync with classes.dtx v1.4b)}
%    \begin{macrocode}
%<*report|book>
\def\@endpart{\vfil\newpage
  \if@twoside
   \if@openleft %% \if@openleft added (2017/02/15)
    \null\thispagestyle{empty}\newpage
   \else\if@openright %% \if@openright added (2016/12/18)
    \null\thispagestyle{empty}\newpage
   \fi\fi %% added (2016/12/18, 2017/02/15)
  \fi
%    \end{macrocode}
% 二段組文曞のずき、スむッチを二段組モヌドに戻す必芁がありたす。
%    \begin{macrocode}
   \if@tempswa\twocolumn\fi}
%</report|book>
%    \end{macrocode}
% \end{macro}
%
% \subsubsection{chapterレベル}
%
% \begin{macro}{chapter}
% 章レベルは、必ずペヌゞの先頭から開始したす。
% |openright|オプションが指定されおいる堎合は、右ペヌゞからはじたる
% ように|\cleardoublepage|を呌び出したす。
% そうでなければ、|\clearpage|を呌び出したす。
% なお、瞊組の堎合でも右ペヌゞからはじたるように、
% フォヌマットファむルで|\clerdoublepage|が定矩されおいたす。
%
% \emph{日本語\TeX{}開発コミュニティによる補足}コミュニティ版の実装では、
% |openright|ず|openleft|の堎合に|\cleardoublepage|をクラスファむルの䞭で
% 再々定矩しおいたす。\ref{sec:cleardoublepage}を参照しおください。
%
% 章芋出しが出力されるペヌゞのスタむルは、\pstyle{jpl@in}になりたす。
% \pstyle{jpl@in}は、\pstyle{headnomble}か\pstyle{footnomble}のいずれかです。
% 詳现は、第\ref{sec:pagestyle}節を参照しおください。
%
% たた、|\@topnum|をれロにしお、
% 章芋出しの䞊にトップフロヌトが眮かれないようにしおいたす。
%    \begin{macrocode}
%<*report|book>
\newcommand{\chapter}{%
  \if@openleft \cleardoublepage \else
  \if@openright \cleardoublepage \else \clearpage \fi \fi
  \thispagestyle{jpl@in}%
  \global\@topnum\z@
  \@afterindenttrue
  \secdef\@chapter\@schapter}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@chapter}
% このマクロは、章芋出しに番号を付けるずきに呌び出されたす。
% \Lcount{secnumdepth}が$-1$よりも倧きく、
% |\@mainmatter|が真bookクラスの堎合のずきに、番号を出力したす。
%
% \emph{日本語\TeX{}開発コミュニティによる補足}本家\LaTeX{}の
% \file{classes}では、二段組のずきチャプタヌタむトルは䞀段組に戻され
% たすが、アスキヌによる\file{jclasses}では二段組のたたにされおいたす。
% したがっお、チャプタヌタむトルより高い䜍眮に右カラムの始点が来るずいう
% 挙動になっおいたすが、コミュニティ版でもアスキヌ版の挙動を維持しおいたす。
%    \begin{macrocode}
\def\@chapter[#1]#2{%
  \ifnum \c@secnumdepth >\m@ne
%<book>    \if@mainmatter
    \refstepcounter{chapter}%
    \typeout{\@chapapp\space\thechapter\space\@chappos}%
    \addcontentsline{toc}{chapter}%
      {\protect\numberline{\@chapapp\thechapter\@chappos}#1}%
%<book>    \else\addcontentsline{toc}{chapter}{#1}\fi
  \else
    \addcontentsline{toc}{chapter}{#1}%
  \fi
  \chaptermark{#1}%
  \addtocontents{lof}{\protect\addvspace{10\p@}}%
  \addtocontents{lot}{\protect\addvspace{10\p@}}%
  \@makechapterhead{#2}\@afterheading}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@makechapterhead}
% このマクロが実際に章芋出しを組み立おたす。
% \changes{v1.1o}{1998/12/24}{secnumdepthカりンタを$-1$以䞋にするず、
%   芋出し文字列も消えおしたうのを修正}
% \changes{v1.2}{2001/09/04}{\cs{chapter}の出力䜍眮がアスタリスク圢匏ず
%   そうでないずきず違うのを修正(ありがずう、鈎朚接さん)}
% \changes{v1.7a}{2016/11/16}{replace \cs{reset@font} with
%    \cs{normalfont} (sync with classes.dtx v1.3c)}
%    \begin{macrocode}
\def\@makechapterhead#1{\hbox{}%
  \vskip2\Cvs
  {\parindent\z@
   \raggedright
   \normalfont\huge\bfseries
   \leavevmode
   \ifnum \c@secnumdepth >\m@ne
     \setlength\@tempdima{\linewidth}%
%<book>    \if@mainmatter
     \setbox\z@\hbox{\@chapapp\thechapter\@chappos\hskip1zw}%
     \addtolength\@tempdima{-\wd\z@}%
     \unhbox\z@\nobreak
%<book>    \fi
     \vtop{\hsize\@tempdima#1}%
   \else
     #1\relax
   \fi}\nobreak\vskip3\Cvs}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@schapter}
% このマクロは、章芋出しに番号を付けないずきに呌び出されたす。
%
% \emph{日本語\TeX{}開発コミュニティによる補足}やはり二段組でチャプタヌ
% タむトルより高い䜍眮に右カラムの始点が来るずいう挙動を維持しおありたす。
% \changes{v1.7c}{2016/12/18}{奇劙なarticleガヌドずコヌドを削陀しお
%    ドキュメントを远加}
%    \begin{macrocode}
\def\@schapter#1{%
  \@makeschapterhead{#1}\@afterheading
}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@makeschapterhead}
% 番号を付けない堎合の圢匏です。
% \changes{v1.2}{2001/09/04}{\cs{chapter}の出力䜍眮がアスタリスク圢匏ず
%   そうでないずきず違うのを修正(ありがずう、鈎朚接さん)}
% \changes{v1.7a}{2016/11/16}{replace \cs{reset@font} with
%    \cs{normalfont} (sync with classes.dtx v1.3c)}
%    \begin{macrocode}
\def\@makeschapterhead#1{\hbox{}%
  \vskip2\Cvs
  {\parindent\z@
   \raggedright
   \normalfont\huge\bfseries
   \leavevmode
   \setlength\@tempdima{\linewidth}%
   \vtop{\hsize\@tempdima#1}}\vskip3\Cvs}
%</report|book>
%    \end{macrocode}
% \end{macro}
%
% \subsubsection{䞋䜍レベルの芋出し}
%
% \begin{macro}{\section}
% 芋出しの前埌に空癜を付け、|\Large\bfseries|で出力をしたす。
% \changes{v1.7a}{2016/11/16}{replace \cs{reset@font} with
%    \cs{normalfont} (sync with classes.dtx v1.3c)}
%    \begin{macrocode}
\newcommand{\section}{\@startsection{section}{1}{\z@}%
   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
   {.5\Cvs \@plus.3\Cvs}%
   {\normalfont\Large\bfseries}}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\subsection}
% 芋出しの前埌に空癜を付け、|\large\bfseries|で出力をしたす。
% \changes{v1.7a}{2016/11/16}{replace \cs{reset@font} with
%    \cs{normalfont} (sync with classes.dtx v1.3c)}
%    \begin{macrocode}
\newcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
   {.5\Cvs \@plus.3\Cvs}%
   {\normalfont\large\bfseries}}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\subsubsection}
% 芋出しの前埌に空癜を付け、|\normalsize\bfseries|で出力をしたす。
% \changes{v1.7a}{2016/11/16}{replace \cs{reset@font} with
%    \cs{normalfont} (sync with classes.dtx v1.3c)}
%    \begin{macrocode}
\newcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
   {1.5\Cvs \@plus.5\Cvs \@minus.2\Cvs}%
   {.5\Cvs \@plus.3\Cvs}%
   {\normalfont\normalsize\bfseries}}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\paragraph}
% 芋出しの前に空癜を付け、|\normalsize\bfseries|で出力をしたす。
% 芋出しの埌ろで改行されたせん。
% \changes{v1.7a}{2016/11/16}{replace \cs{reset@font} with
%    \cs{normalfont} (sync with classes.dtx v1.3c)}
%    \begin{macrocode}
\newcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
   {3.25ex \@plus 1ex \@minus .2ex}%
   {-1em}%
   {\normalfont\normalsize\bfseries}}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\subparagraph}
% 芋出しの前に空癜を付け、|\normalsize\bfseries|で出力をしたす。
% 芋出しの埌ろで改行されたせん。
% \changes{v1.7a}{2016/11/16}{replace \cs{reset@font} with
%    \cs{normalfont} (sync with classes.dtx v1.3c)}
%    \begin{macrocode}
\newcommand{\subparagraph}{\@startsection{subparagraph}{5}{\z@}%
   {3.25ex \@plus 1ex \@minus .2ex}%
   {-1em}%
   {\normalfont\normalsize\bfseries}}
%    \end{macrocode}
% \end{macro}
%
%
% \subsubsection{付録}
%
% \begin{macro}{\appendix}
% articleクラスの堎合、|\appendix|コマンドは次のこずを行ないたす。
%
% \begin{itemize}
% \item \Lcount{section}ず\Lcount{subsection}カりンタをリセットする。
% \item |\thesection|を英小文字で出力するように再定矩する。
% \end{itemize}
%
%    \begin{macrocode}
%<*article>
\newcommand{\appendix}{\par
  \setcounter{section}{0}%
  \setcounter{subsection}{0}%
%<tate>  \renewcommand{\thesection}{\rensuji{\@Alph\c@section}}}
%<yoko>  \renewcommand{\thesection}{\@Alph\c@section}}
%</article>
%    \end{macrocode}
%
% reportずbookクラスの堎合、|\appendix|コマンドは次のこずを行ないたす。
%
% \begin{itemize}
% \item \Lcount{chapter}ず\Lcount{section}カりンタをリセットする。
% \item |\@chapapp|を|\appendixname|に蚭定する。
% \item |\@chappos|を空にする。
% \item |\thechapter|を英小文字で出力するように再定矩する。
% \end{itemize}
%
%    \begin{macrocode}
%<*report|book>
\newcommand{\appendix}{\par
  \setcounter{chapter}{0}%
  \setcounter{section}{0}%
  \renewcommand{\@chapapp}{\appendixname}%
  \renewcommand{\@chappos}\space%
%<tate>  \renewcommand{\thechapter}{\rensuji{\@Alph\c@chapter}}}
%<yoko>  \renewcommand{\thechapter}{\@Alph\c@chapter}}
%</report|book>
%    \end{macrocode}
% \end{macro}
%
%
%
% \subsection{リスト環境}
% ここではリスト環境に぀いお説明をしおいたす。
%
% リスト環境のデフォルトは次のように蚭定されたす。
%
% たず、|\rigtmargin|, |\listparindent|, |\itemindent|をれロにしたす。
% そしお、K番目のレベルのリストは|\@listK|で瀺されるマクロが呌び出されたす。
% ここで`K'は小文字のロヌマ数字で瀺されたす。たずえば、番目のレベルのリスト
% ずしお|\@listiii|が呌び出されたす。
% |\@listK|は|\leftmargin|を|\leftmarginK|に蚭定したす。
%
% \begin{macro}{\leftmargin}
% \begin{macro}{\leftmargini}
% \begin{macro}{\leftmarginii}
% \begin{macro}{\leftmarginiii}
% \begin{macro}{\leftmarginiv}
% \begin{macro}{\leftmarginv}
% \begin{macro}{\leftmarginvi}
% 二段組モヌドのマヌゞンは少しだけ小さく蚭定しおありたす。
%    \begin{macrocode}
\if@twocolumn
  \setlength\leftmargini {2em}
\else
  \setlength\leftmargini {2.5em}
\fi
%    \end{macrocode}
% 次の぀の倀は、|\labelsep|ずデフォルトラベル`(m)', `vii.', `M.'の
% 幅の合蚈よりも倧きくしおありたす。
%    \begin{macrocode}
\setlength\leftmarginii  {2.2em}
\setlength\leftmarginiii {1.87em}
\setlength\leftmarginiv  {1.7em}
\if@twocolumn
  \setlength\leftmarginv {.5em}
  \setlength\leftmarginvi{.5em}
\else
  \setlength\leftmarginv {1em}
  \setlength\leftmarginvi{1em}
\fi
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\labelsep}
% \begin{macro}{\labelwidth}
% |\labelsep|はラベルずテキストの項目の間の距離です。
% |\labelwidth|はラベルの幅です。
%    \begin{macrocode}
\setlength  \labelsep  {.5em}
\setlength  \labelwidth{\leftmargini}
\addtolength\labelwidth{-\labelsep}
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\@beginparpenalty}
% \begin{macro}{\@endparpenalty}
% これらのペナルティは、リストや段萜環境の前埌に挿入されたす。
% \begin{macro}{\@itempenalty}
% このペナルティは、リスト項目の間に挿入されたす。
%    \begin{macrocode}
\@beginparpenalty -\@lowpenalty
\@endparpenalty   -\@lowpenalty
\@itempenalty     -\@lowpenalty
%</article|report|book>
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\partopsep}
% リスト環境の前に空行がある堎合、|\parskip|ず|\topsep|に|\partopsep|が
% 加えられた倀の瞊方向の空癜が取られたす。
%    \begin{macrocode}
%<10pt>\setlength\partopsep{2\p@ \@plus 1\p@ \@minus 1\p@}
%<11pt>\setlength\partopsep{3\p@ \@plus 1\p@ \@minus 1\p@}
%<12pt>\setlength\partopsep{3\p@ \@plus 2\p@ \@minus 2\p@}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@listi}
% \begin{macro}{\@listI}
% |\@listi|は、|\leftmargin|, |\parsep|, |\topsep|, |\itemsep|などの
% トップレベルの定矩をしたす。
% この定矩は、フォントサむズコマンドによっお倉曎されたすたずえば、
% |\small|の䞭では``小さい''リストパラメヌタになりたす。
%
% このため、|\normalsize|がすべおのパラメヌタを戻せるように、
% |\@listI|は|\@listi|のコピヌを保存するように定矩されおいたす。
%    \begin{macrocode}
%<*10pt|11pt|12pt>
\def\@listi{\leftmargin\leftmargini
%<*10pt>
  \parsep 4\p@ \@plus2\p@ \@minus\p@
  \topsep 8\p@ \@plus2\p@ \@minus4\p@
  \itemsep4\p@ \@plus2\p@ \@minus\p@}
%</10pt>
%<*11pt>
  \parsep 4.5\p@ \@plus2\p@ \@minus\p@
  \topsep 9\p@   \@plus3\p@ \@minus5\p@
  \itemsep4.5\p@ \@plus2\p@ \@minus\p@}
%</11pt>
%<*12pt>
  \parsep 5\p@  \@plus2.5\p@ \@minus\p@
  \topsep 10\p@ \@plus4\p@   \@minus6\p@
  \itemsep5\p@  \@plus2.5\p@ \@minus\p@}
%</12pt>
\let\@listI\@listi
%    \end{macrocode}
% ここで、パラメヌタを初期化したすが、厳密には必芁ありたせん。
%    \begin{macrocode}
\@listi
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\@listii}
% \begin{macro}{\@listiii}
% \begin{macro}{\@listiv}
% \begin{macro}{\@listv}
% \begin{macro}{\@listvi}
% 䞋䜍レベルのリスト環境のパラメヌタの蚭定です。
% これらは保存甚のバヌゞョンを持たないこずず、
% フォントサむズコマンドによっお倉曎されないこずに泚意をしおください。
% 蚀い換えれば、このクラスは、本文サむズが
% |\normalsize|で珟れるリストの入れ子に぀いおだけ考えおいたす。
%    \begin{macrocode}
\def\@listii{\leftmargin\leftmarginii
   \labelwidth\leftmarginii \advance\labelwidth-\labelsep
%<*10pt>
   \topsep  4\p@ \@plus2\p@ \@minus\p@
   \parsep  2\p@ \@plus\p@  \@minus\p@
%</10pt>
%<*11pt>
   \topsep  4.5\p@ \@plus2\p@ \@minus\p@
   \parsep  2\p@   \@plus\p@  \@minus\p@
%</11pt>
%<*12pt>
   \topsep  5\p@   \@plus2.5\p@ \@minus\p@
   \parsep  2.5\p@ \@plus\p@  \@minus\p@
%</12pt>
   \itemsep\parsep}
\def\@listiii{\leftmargin\leftmarginiii
   \labelwidth\leftmarginiii \advance\labelwidth-\labelsep
%<10pt>   \topsep 2\p@  \@plus\p@\@minus\p@
%<11pt>   \topsep 2\p@  \@plus\p@\@minus\p@
%<12pt>   \topsep 2.5\p@\@plus\p@\@minus\p@
   \parsep\z@
   \partopsep \p@ \@plus\z@ \@minus\p@
   \itemsep\topsep}
\def\@listiv {\leftmargin\leftmarginiv
              \labelwidth\leftmarginiv
              \advance\labelwidth-\labelsep}
\def\@listv  {\leftmargin\leftmarginv
              \labelwidth\leftmarginv
              \advance\labelwidth-\labelsep}
\def\@listvi {\leftmargin\leftmarginvi
              \labelwidth\leftmarginvi
              \advance\labelwidth-\labelsep}
%</10pt|11pt|12pt>
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
%
% \subsubsection{enumerate環境}
% enumerate環境は、カりンタ\Lcount{enumi}, \Lcount{enumii}, \Lcount{enumiii},
% \Lcount{enumiv}を䜿いたす。\Lcount{enumN}はN番目のレベルの番号を制埡したす。
%
% \begin{macro}{\theenumi}
% \begin{macro}{\theenumii}
% \begin{macro}{\theenumiii}
% \begin{macro}{\theenumiv}
% 出力する番号の曞匏を蚭定したす。
% これらは、すでに\file{ltlists.dtx}で定矩されおいたす。
%    \begin{macrocode}
%<*article|report|book>
%<*tate>
\renewcommand{\theenumi}{\rensuji{\@arabic\c@enumi}}
\renewcommand{\theenumii}{\rensuji{(\@alph\c@enumii)}}
\renewcommand{\theenumiii}{\rensuji{\@roman\c@enumiii}}
\renewcommand{\theenumiv}{\rensuji{\@Alph\c@enumiv}}
%</tate>
%<*yoko>
\renewcommand{\theenumi}{\@arabic\c@enumi}
\renewcommand{\theenumii}{\@alph\c@enumii}
\renewcommand{\theenumiii}{\@roman\c@enumiii}
\renewcommand{\theenumiv}{\@Alph\c@enumiv}
%</yoko>
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\labelenumi}
% \begin{macro}{\labelenumii}
% \begin{macro}{\labelenumiii}
% \begin{macro}{\labelenumiv}
% enumerate環境のそれぞれの項目のラベルは、
% |\labelenumi| \ldots\ |\labelenumiv|で生成されたす。
%    \begin{macrocode}
%<*tate>
\newcommand{\labelenumi}{\theenumi}
\newcommand{\labelenumii}{\theenumii}
\newcommand{\labelenumiii}{\theenumiii}
\newcommand{\labelenumiv}{\theenumiv}
%</tate>
%<*yoko>
\newcommand{\labelenumi}{\theenumi.}
\newcommand{\labelenumii}{(\theenumii)}
\newcommand{\labelenumiii}{\theenumiii.}
\newcommand{\labelenumiv}{\theenumiv.}
%</yoko>
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\p@enumii}
% \begin{macro}{\p@enumiii}
% \begin{macro}{\p@enumiv}
% |\ref|コマンドによっお、
% enumerate環境のN番目のリスト項目が参照されるずきの曞匏です。
%    \begin{macrocode}
\renewcommand{\p@enumii}{\theenumi}
\renewcommand{\p@enumiii}{\theenumi(\theenumii)}
\renewcommand{\p@enumiv}{\p@enumiii\theenumiii}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{environment}{enumerate}
% \changes{v1.1q}{1999/05/18}{瞊組時のみに蚭定するようにした}
% トップレベルで䜿われたずきに、最初ず最埌に半行分のスペヌスを開けるように、
% 倉曎したす。この環境は、\file{ltlists.dtx}で定矩されおいたす。
% \changes{v1.7a}{2016/11/16}{Use \cs{expandafter}
%    (sync with ltlists.dtx v1.0j)}
%
%    \begin{macrocode}
\renewenvironment{enumerate}
  {\ifnum \@enumdepth >\thr@@\@toodeep\else
   \advance\@enumdepth\@ne
   \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
   \expandafter \list \csname label\@enumctr\endcsname{%
      \iftdir
         \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
           \else\topsep\z@\fi
         \parskip\z@ \itemsep\z@ \parsep\z@
         \labelwidth1zw \labelsep.3zw
         \ifnum \@enumdepth=\@ne \leftmargin1zw\relax
           \else\leftmargin\leftskip\fi
         \advance\leftmargin 1zw
      \fi
         \usecounter{\@enumctr}%
         \def\makelabel##1{\hss\llap{##1}}}%
   \fi}{\endlist}
%    \end{macrocode}
% \end{environment}
%
%
% \subsubsection{itemize環境}
%
% \begin{macro}{\labelitemi}
% \begin{macro}{\labelitemii}
% \begin{macro}{\labelitemiii}
% \begin{macro}{\labelitemiv}
% itemize環境のそれぞれの項目のラベルは、
% |\labelenumi| \ldots\ |\labelenumiv|で生成されたす。
% \changes{v1.1a}{1997/01/28}{Bug fix: \cs{labelitemii}.}
% \changes{v1.8e}{2020/01/03}{Normalize label fonts
%    (sync with classes.dtx 2019/12/20 v1.4l)}
%    \begin{macrocode}
\newcommand{\labelitemi}{\labelitemfont \textbullet}
\newcommand{\labelitemii}{%
  \iftdir
     {\labelitemfont \textcircled{~}}
  \else
     {\labelitemfont \bfseries\textendash}
  \fi
}
\newcommand{\labelitemiii}{\labelitemfont \textasteriskcentered}
\newcommand{\labelitemiv}{\labelitemfont \textperiodcentered}
\newcommand\labelitemfont{\normalfont}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{environment}{itemize}
% \changes{v1.0e}{1996/03/14}{瞊組時のみに蚭定するようにした}
% トップレベルで䜿われたずきに、最初ず最埌に半行分のスペヌスを開けるように、
% 倉曎したす。この環境は、\file{ltlists.dtx}で定矩されおいたす。
% \changes{v1.7a}{2016/11/16}{Use \cs{expandafter}
%    (sync with ltlists.dtx v1.0j)}
%    \begin{macrocode}
\renewenvironment{itemize}
  {\ifnum \@itemdepth >\thr@@\@toodeep\else
   \advance\@itemdepth\@ne
   \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
   \expandafter \list \csname \@itemitem\endcsname{%
      \iftdir
         \ifnum \@listdepth=\@ne \topsep.5\normalbaselineskip
           \else\topsep\z@\fi
         \parskip\z@ \itemsep\z@ \parsep\z@
         \labelwidth1zw \labelsep.3zw
         \ifnum \@itemdepth =\@ne \leftmargin1zw\relax
           \else\leftmargin\leftskip\fi
         \advance\leftmargin 1zw
      \fi
         \def\makelabel##1{\hss\llap{##1}}}%
   \fi}{\endlist}
%    \end{macrocode}
% \end{environment}
%
%
% \subsubsection{description環境}
%
% \begin{environment}{description}
% \changes{v1.0e}{1996/03/14}{\cs{topskip}や\cs{parkip}などの倀を瞊組時のみに
%        蚭定するようにした}
% description環境を定矩したす。
% 瞊組時には、むンデントが字分だけ深くなりたす。
%    \begin{macrocode}
\newenvironment{description}
  {\list{}{\labelwidth\z@ \itemindent-\leftmargin
   \iftdir
     \leftmargin\leftskip \advance\leftmargin3\Cwd
     \rightmargin\rightskip
     \labelsep=1zw \itemsep\z@
     \listparindent\z@ \topskip\z@ \parskip\z@ \partopsep\z@
   \fi
           \let\makelabel\descriptionlabel}}{\endlist}
%    \end{macrocode}
% \end{environment}
%
% \begin{macro}{\descriptionlabel}
% ラベルの圢匏を倉曎する必芁がある堎合は、|\descriptionlabel|を
% 再定矩しおください。
%    \begin{macrocode}
\newcommand{\descriptionlabel}[1]{%
   \hspace\labelsep\normalfont\bfseries #1}
%    \end{macrocode}
% \end{macro}
%
%
% \subsubsection{verse環境}
%
% \begin{environment}{verse}
% verse環境は、リスト環境のパラメヌタを䜿っお定矩されおいたす。
% 改行をするには|\\|を甚いたす。|\\|は|\@centercr|に|\let|されおいたす。
%    \begin{macrocode}
\newenvironment{verse}
  {\let\\\@centercr
   \list{}{\itemsep\z@ \itemindent -1.5em%
           \listparindent\itemindent
           \rightmargin\leftmargin \advance\leftmargin 1.5em}%
           \item\relax}{\endlist}
%    \end{macrocode}
% \end{environment}
%
% \subsubsection{quotation環境}
%
% \begin{environment}{quotation}
% quotation環境もたた、list環境のパラメヌタを䜿甚しお定矩されおいたす。
% この環境の各行は、|\textwidth|よりも小さく蚭定されおいたす。
% この環境における、段萜の最初の行はむンデントされたす。
%    \begin{macrocode}
\newenvironment{quotation}
  {\list{}{\listparindent 1.5em%
           \itemindent\listparindent
           \rightmargin\leftmargin
           \parsep\z@ \@plus\p@}%
           \item\relax}{\endlist}
%    \end{macrocode}
% \end{environment}
%
% \subsubsection{quote環境}
%
% \begin{environment}{quote}
% quote環境は、段萜がむンデントされないこずを陀き、quotation環境ず同じです。
%    \begin{macrocode}
\newenvironment{quote}
  {\list{}{\rightmargin\leftmargin}%
           \item\relax}{\endlist}
%    \end{macrocode}
% \end{environment}
%
%
%
% \subsection{フロヌト}
%
% \file{ltfloat.dtx}では、フロヌトオブゞェクトを操䜜するためのツヌルしか
% 定矩しおいたせん。タむプが\texttt{TYPE}のフロヌトオブゞェクトを
% 扱うマクロを定矩するには、次の倉数が必芁です。
%
% \begin{description}
% \item[\texttt{\bslash fps@TYPE}]
%   タむプ\texttt{TYPE}のフロヌトを眮くデフォルトの䜍眮です。
%
% \item[\texttt{\bslash ftype@TYPE}]
%   タむプ\texttt{TYPE}のフロヌトの番号です。
%   各\texttt{TYPE}には、䞀意な、2の倍数の\texttt{TYPE}番号を割り圓おたす。
%   たずえば、図が番号1ならば、衚は2です。次のタむプは4ずなりたす。
%
% \item[\texttt{\bslash ext@TYPE}]
%   タむプ\texttt{TYPE}のフロヌトの目次を出力するファむルの拡匵子です。
%   たずえば、|\ext@figure|は`lot'です。
%
% \item[\texttt{\bslash fnum@TYPE}]
%   キャプション甚の図番号を生成するマクロです。
%   たずえば、|\fnum@figure|は`図|\thefigure|'を䜜りたす。
% \end{description}
%
% \subsubsection{figure環境}
% ここでは、figure環境を実装しおいたす。
%
% \begin{macro}{\c@figure}
% \begin{macro}{\thefigure}
% 図番号です。
%    \begin{macrocode}
%<article>\newcounter{figure}
%<report|book>\newcounter{figure}[chapter]
%<*tate>
%<article>\renewcommand{\thefigure}{\rensuji{\@arabic\c@figure}}
%    \end{macrocode}
% \changes{v1.1d}{1997/02/14}{\cs{ifnum}文の構文゚ラヌを蚂正。}
%    \begin{macrocode}
%<*report|book>
\renewcommand{\thefigure}{%
  \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@figure}}
%</report|book>
%</tate>
%<*yoko>
%<article>\renewcommand{\thefigure}{\@arabic\c@figure}
%<*report|book>
\renewcommand{\thefigure}{%
  \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
%</report|book>
%</yoko>
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\fps@figure}
% \begin{macro}{\ftype@figure}
% \begin{macro}{\ext@figure}
% \begin{macro}{\fnum@figure}
% フロヌトオブゞェクトタむプ``figure''のためのパラメヌタです。
%    \begin{macrocode}
\def\fps@figure{tbp}
\def\ftype@figure{1}
\def\ext@figure{lof}
%<tate>\def\fnum@figure{\figurename\thefigure}
%<yoko>\def\fnum@figure{\figurename~\thefigure}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{environment}{figure}
% \begin{environment}{figure*}
% |*|圢匏は段抜きのフロヌトずなりたす。
%    \begin{macrocode}
\newenvironment{figure}
               {\@float{figure}}
               {\end@float}
\newenvironment{figure*}
               {\@dblfloat{figure}}
               {\end@dblfloat}
%    \end{macrocode}
% \end{environment}
% \end{environment}
%
% \subsubsection{table環境}
% ここでは、table環境を実装しおいたす。
%
% \begin{macro}{\c@table}
% \begin{macro}{\thetable}
% \changes{v1.1n}{1998/10/13}
%    {report, bookクラスでchapterカりンタを考慮しおいなかったのを修正。
%     ありがずう、平川慶應倧さん。}
% 衚番号です。
%    \begin{macrocode}
%<article>\newcounter{table}
%<report|book>\newcounter{table}[chapter]
%<*tate>
%<article>\renewcommand{\thetable}{\rensuji{\@arabic\c@table}}
%<*report|book>
\renewcommand{\thetable}{%
  \ifnum\c@chapter>\z@\thechapter{}・\fi\rensuji{\@arabic\c@table}}
%</report|book>
%</tate>
%<*yoko>
%<article>\renewcommand{\thetable}{\@arabic\c@table}
%<*report|book>
\renewcommand{\thetable}{%
  \ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table}
%</report|book>
%</yoko>
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\fps@table}
% \begin{macro}{\ftype@table}
% \begin{macro}{\ext@table}
% \begin{macro}{\fnum@table}
% フロヌトオブゞェクトタむプ``table''のためのパラメヌタです。
%    \begin{macrocode}
\def\fps@table{tbp}
\def\ftype@table{2}
\def\ext@table{lot}
%<tate>\def\fnum@table{\tablename\thetable}
%<yoko>\def\fnum@table{\tablename~\thetable}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{environment}{table}
% \begin{environment}{table*}
% |*|圢匏は段抜きのフロヌトずなりたす。
%    \begin{macrocode}
\newenvironment{table}
               {\@float{table}}
               {\end@float}
\newenvironment{table*}
               {\@dblfloat{table}}
               {\end@dblfloat}
%    \end{macrocode}
% \end{environment}
% \end{environment}
%
% \subsection{キャプション}
%
% \begin{macro}{\@makecaption}
% |\caption|コマンドは、キャプションを組み立おるために|\@mkcaption|を呌出たす。
% このコマンドは二぀の匕数を取りたす。
% 䞀぀は、\meta{number}で、フロヌトオブゞェクトの番号です。
% もう䞀぀は、\meta{text}でキャプション文字列です。
% \meta{number}には通垞、`図 3.2'のような文字列が入っおいたす。
% このマクロは、|\parbox|の䞭で呌び出されたす。曞䜓は|\normalsize|です。
%
% \begin{macro}{\abovecaptionskip}
% \begin{macro}{\belowcaptionskip}
% これらの長さはキャプションの前埌に挿入されるスペヌスです。
%    \begin{macrocode}
\newlength\abovecaptionskip
\newlength\belowcaptionskip
\setlength\abovecaptionskip{10\p@}
\setlength\belowcaptionskip{0\p@}
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% キャプション内で耇数の段萜を䜜成するこずができるように、
% このマクロは|\long|で定矩をしたす。
%    \begin{macrocode}
\long\def\@makecaption#1#2{%
  \vskip\abovecaptionskip
  \iftdir\sbox\@tempboxa{#1\hskip1zw#2}%
    \else\sbox\@tempboxa{#1: #2}%
  \fi
  \ifdim \wd\@tempboxa >\hsize
    \iftdir #1\hskip1zw#2\relax\par
      \else #1: #2\relax\par\fi
  \else
    \global \@minipagefalse
    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip}
%    \end{macrocode}
% \end{macro}
%
% \subsection{コマンドパラメヌタの蚭定}
%
% \subsubsection{arrayずtabular環境}
%
% \begin{macro}{\arraycolsep}
% array環境のカラムは2|\arraycolsep|で分離されたす。
%    \begin{macrocode}
\setlength\arraycolsep{5\p@}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\tabcolsep}
% tabular環境のカラムは2|\tabcolsep|で分離されたす。
%    \begin{macrocode}
\setlength\tabcolsep{6\p@}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\arrayrulewidth}
% arrayずtabular環境内の眫線の幅です。
%    \begin{macrocode}
\setlength\arrayrulewidth{.4\p@}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\doublerulesep}
% arrayずtabular環境内の眫線間を調敎する空癜です。
%    \begin{macrocode}
\setlength\doublerulesep{2\p@}
%    \end{macrocode}
% \end{macro}
%
% \subsubsection{tabbing環境}
%
% \begin{macro}{\tabbingsep}
% |\'|コマンドで眮かれるスペヌスを制埡したす。
%    \begin{macrocode}
\setlength\tabbingsep{\labelsep}
%    \end{macrocode}
% \end{macro}
%
% \subsubsection{minipage環境}
%
% \begin{macro}{\@mpfootins}
% minipageにも脚泚を付けるこずができたす。
% |\skip||\@mpfootins|は、通垞の|\skip||\footins|ず同じような動䜜をしたす。
%    \begin{macrocode}
\skip\@mpfootins = \skip\footins
%    \end{macrocode}
% \end{macro}
%
% \subsubsection{framebox環境}
%
% \begin{macro}{\fboxsep}
% \begin{macro}{\fboxrule}
% |\fboxsep|は、|\fbox|ず|\framebox|での、
% テキストずボックスの間に入る空癜です。
% |\fboxrule|は|\fbox|ず|\framebox|で䜜成される眫線の幅です。
%    \begin{macrocode}
\setlength\fboxsep{3\p@}
\setlength\fboxrule{.4\p@}
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \subsubsection{equationずeqnarray環境}
%
% \begin{macro}{\theequation}
% equationカりンタは、新しい章の開始でリセットされたす。
% たた、equation番号には、章番号が付きたす。
%
% このコヌドは|\chapter|定矩の埌、より正確にはchapterカりンタの定矩の埌、
% でなくおはいけたせん。
%    \begin{macrocode}
%<article>\renewcommand{\theequation}{\@arabic\c@equation}
%<*report|book>
\@addtoreset{equation}{chapter}
\renewcommand{\theequation}{%
  \ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation}
%</report|book>
%    \end{macrocode}
% \end{macro}
%
%
% \section{フォントコマンド}
% |disablejfam|オプションが指定されおいない堎合には、以䞋の蚭定がなさ
% れたす。
% たず、数匏内に日本語を盎接、蚘述するために数匏蚘号甚文字に
% ``JY2/mc/m/n''を登録したす。数匏バヌゞョンがboldの堎合は、
% ``JY2/gt/m/n''を甚いたす。
% これらは、|\mathmc|, |\mathgt|ずしお登録されたす。
% たた、日本語数匏ファミリずしお|\symmincho|がこの段階で蚭定されたす。
% |mathrmmc|オプションが指定されおいた堎合には、これに匕き続き
% |\mathrm|ず|\mathbf|を和欧文䞡察応にするための䜜業がなされたす。この際、
% 他のマクロずの衝突を避けるため|\AtBeginDocument|
% を甚いお展開順序を遅らせる必芁がありたす。
%
% |disablejfam|オプションが指定されおいた堎合には、
% |\mathmc|ず|\mathgt|に察しお゚ラヌを出すだけのダミヌの定矩を
% 䞎える蚭定のみが行われたす。
%
%   \textbf{倉曎}
%
% \changes{v1.6}{2006/06/27}{フォントコマンドを修正。ありがずう、ymtさん。}
%    p\LaTeX{} 2.09
%    compatibility modeでは和文数匏フォントfamが2重定矩されおいた
%    ので、その郚分を倉曎したした。
%    \begin{macrocode}
\if@enablejfam
  \if@compatibility\else
    \DeclareSymbolFont{mincho}{JY2}{mc}{m}{n}
    \DeclareSymbolFontAlphabet{\mathmc}{mincho}
    \SetSymbolFont{mincho}{bold}{JY2}{gt}{m}{n}
    \jfam\symmincho
    \DeclareMathAlphabet{\mathgt}{JY2}{gt}{m}{n}
  \fi
  \if@mathrmmc
    \AtBeginDocument{%
    \reDeclareMathAlphabet{\mathrm}{\mathrm}{\mathmc}
    \reDeclareMathAlphabet{\mathbf}{\mathbf}{\mathgt}
  }%
  \fi
\else
  \DeclareRobustCommand{\mathmc}{%
    \@latex@error{Command \noexpand\mathmc invalid with\space
       `disablejfam' class option.}\@eha
  }
  \DeclareRobustCommand{\mathgt}{%
    \@latex@error{Command \noexpand\mathgt invalid with\space
       `disablejfam' class option.}\@eha
  }
\fi
%    \end{macrocode}
%
% ここでは\LaTeX~2.09で䞀般的に䜿われおいたコマンドを定矩しおいたす。
% これらのコマンドはテキストモヌドず数匏モヌドの\emph{どちらでも}動䜜したす。
% これらは互換性のために提䟛をしたすが、できるだけ|\text...|ず|\math...|を
% 䜿うようにしおください。
%
% \begin{macro}{\mc}
% \begin{macro}{\gt}
% \begin{macro}{\rm}
% \begin{macro}{\sf}
% \begin{macro}{\tt}
% これらのコマンドはフォントファミリを倉曎したす。
% 互換モヌドの同名コマンドず異なり、すべおのコマンドがデフォルトフォントに
% リセットしおから、察応する属性を倉曎するこずに泚意しおください。
%    \begin{macrocode}
\DeclareOldFontCommand{\mc}{\normalfont\mcfamily}{\mathmc}
\DeclareOldFontCommand{\gt}{\normalfont\gtfamily}{\mathgt}
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\bf}
% このコマンドはボヌルド曞䜓にしたす。ノヌマル曞䜓に倉曎するには、
% |\mdseries|ず指定をしたす。
%    \begin{macrocode}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\it}
% \begin{macro}{\sl}
% \begin{macro}{\sc}
% これらのコマンドはフォントシェむプを切替えたす。
% スラント䜓ずスモヌルキャップの数匏アルファベットはありたせんので、
% 数匏モヌドでは䜕もしたせんが、譊告メッセヌゞを出力したす。
% |\upshape|コマンドで通垞のシェむプにするこずができたす。
%    \begin{macrocode}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\cal}
% \begin{macro}{\mit}
% これらのコマンドは数匏モヌドでだけ䜿うこずができたす。
% 数匏モヌド以倖では䜕もしたせん。
% 珟圚のNFSSは、これらのコマンドが譊告を生成するように定矩しおいたすので、
% `手ずから'定矩する必芁がありたす。
%    \begin{macrocode}
\DeclareRobustCommand*{\cal}{\@fontswitch\relax\mathcal}
\DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal}
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
%
%
% \section{盞互参照}
%
% \subsection{目次}
% |\section|コマンドは、\file{.toc}ファむルに、次のような行を出力したす。
%
% |\contentsline{section}{|\meta{title}|}{|\meta{page}|}|
%
% \meta{title}には項目が、\meta{page}にはペヌゞ番号が入りたす。
% |\section|に芋出し番号が付く堎合は、\meta{title}は、
% |\numberline{|\meta{num}|}{|\meta{heading}|}|ずなりたす。
% \meta{num}は|\thesection|コマンドで生成された芋出し番号です。
% \meta{heading}は芋出し文字列です。この他の芋出しコマンドも同様です。
%
% figure環境での|\caption|コマンドは、\file{.lof}ファむルに、
% 次のような行を出力したす。
%
% |\contentsline{figure}{\numberline{|\meta{num}|}{|%
%                              \meta{caption}|}}{|\meta{page}|}|
%
% \meta{num}は、|\thefigure|コマンドで生成された図番号です。
% \meta{caption}は、キャプション文字列です。table環境も同様です。
%
% |\contentsline{|\meta{name}|}|コマンドは、|\l@|\meta{name}に展開されたす。
% したがっお、目次の䜓裁を蚘述するには、|\l@chapter|, |\l@section|などを
% 定矩したす。図目次のためには|\l@figure|です。
% これらの倚くのコマンドは|\@dottedtocline|コマンドで定矩されおいたす。
% このコマンドは次のような曞匏ずなっおいたす。
%
% |\@dottedtocline{|\meta{level}|}{|\meta{indent}|}{|^^A
%        \meta{numwidth}|}{|\meta{title}|}{|\meta{page}|}|
%
% \begin{description}
% \item[\meta{level}] ``\meta{level} $<=$ \Lcount{tocdepth}''のずきにだけ、
%   生成されたす。|\chapter|はレベル、|\section|はレベル、$\ldots$ です。
% \item[\meta{indent}] 䞀番倖偎からの巊マヌゞンです。
% \item[\meta{numwidth}] 芋出し番号|\numberline|コマンドの\meta{num}が
%   入るボックスの幅です。
% \end{description}
%
% \begin{macro}{\c@tocdepth}
% \Lcount{tocdepth}は、目次ペヌゞに出力をする芋出しレベルです。
%    \begin{macrocode}
%<article>\setcounter{tocdepth}{3}
%<!article>\setcounter{tocdepth}{2}
%    \end{macrocode}
% \end{macro}
%
% たた、目次を生成するために次のパラメヌタも䜿いたす。
%
% \begin{macro}{\@pnumwidth}
% ペヌゞ番号の入るボックスの幅です。
%    \begin{macrocode}
\newcommand{\@pnumwidth}{1.55em}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@tocrmarg}
% 耇数行にわたる堎合の右マヌゞンです。
%    \begin{macrocode}
\newcommand{\@tocrmarg}{2.55em}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@dotsep}
% ドットの間隔mu単䜍です。2や1.7のように指定をしたす。
%    \begin{macrocode}
\newcommand{\@dotsep}{4.5}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\toclineskip}
% この長さ倉数は、目次項目の間に入るスペヌスの長さです。
% デフォルトはれロずなっおいたす。瞊組のずき、スペヌスを少し広げたす。
%    \begin{macrocode}
\newdimen\toclineskip
%<yoko>\setlength\toclineskip{\z@}
%<tate>\setlength\toclineskip{2\p@}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\numberline}
% \begin{macro}{\@lnumwidth}
% |\numberline|マクロの定矩を瀺したす。オリゞナルの定矩では、ボックスの幅を
% |\@tempdima|にしおいたすが、この倉数はいろいろな箇所で䜿われたすので、
% 期埅した倀が入らない堎合がありたす。
%
% ^^A たずえば、p\LaTeXe{}での|\selectfont|は、和欧文のベヌスラむンを調敎する
% ^^A ために|\@tempdima|倉数を甚いおいたす。そのため、|\l@...|マクロの䞭で
% ^^A フォントを切替えるず、|\numberline|マクロのボックス
% ^^A の幅が、ベヌスラむンを調敎するずきに蚈算した倀になっおしたいたす。
% ^^A →修正(texjporg)最近の|\adjustbaseline|では|\adjust@dimen|が䜿われお
% ^^A いるため、蚘述をコメントアりトしたした。
%
% フォント遞択コマンドの埌、あるいは|\numberline|マクロの䞭でフォントを
% 切替えおもよいのですが、䞀時倉数を意識したくないので、
% 芋出し番号の入るボックスを|\@lnumwidth|倉数を甚いお組み立おるように
% |\numberline|マクロを再定矩したす。
%    \begin{macrocode}
\newdimen\@lnumwidth
\def\numberline#1{\hb@xt@\@lnumwidth{#1\hfil}}
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\@dottedtocline}
% 目次の各行間に|\toclineskip|を入れるように倉曎したす。
% このマクロは\file{ltsect.dtx}で定矩されおいたす。
% \changes{v1.3}{2001/10/04}{第匕数の曞䜓を\cs{rmfamily}から\cs{normalfont}に倉曎}
% \changes{v1.7a}{2016/11/16}{Added \cs{nobreak} for
%    latex/2343 (sync with ltsect.dtx v1.0z)}
%    \begin{macrocode}
\def\@dottedtocline#1#2#3#4#5{%
  \ifnum #1>\c@tocdepth \else
    \vskip\toclineskip \@plus.2\p@
    {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
     \parindent #2\relax\@afterindenttrue
     \interlinepenalty\@M
     \leavevmode
     \@lnumwidth #3\relax
     \advance\leftskip \@lnumwidth \null\nobreak\hskip -\leftskip
     {#4}\nobreak
     \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}%
     \hfill\nobreak
     \hb@xt@\@pnumwidth{\hss\normalfont \normalcolor #5}%
     \par}%
  \fi}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\addcontentsline}
% 瞊組の堎合にペヌゞ番号を|\rensuji|で囲むように倉曎したす。
%
% このマクロは\file{ltsect.dtx}で定矩されおいたす。
% ^^A 呜什 |\addcontentsline| ず |\addtocontents| を組み合わせ
% \changes{v1.8a}{2018/10/25}{ファむル曞き出し時の行末文字察策
%    (sync with ltsect.dtx 2018/09/26 v1.1c)}
% \changes{v1.8f}{2020/09/30}{add a fourth argument for better
%    hyperref compability
%    (sync with ltsect.dtx 2020/07/27 v1.1e)}
%    \begin{macrocode}
\providecommand*\protected@file@percent{}
\def\addcontentsline#1#2#3{%
  \protected@write\@auxout
    {\let\label\@gobble \let\index\@gobble \let\glossary\@gobble
%<tate>     \@temptokena{\rensuji{\thepage}}%
%<yoko>     \@temptokena{\thepage}%
    }{\string\@writefile{#1}%
       {\protect\contentsline{#2}{#3}{\the\@temptokena}{}%
        \protected@file@percent}}%
}
%    \end{macrocode}
% \end{macro}
%
%
% \subsubsection{本文目次}
%
% \begin{macro}{\tableofcontents}
% 目次を生成したす。
%    \begin{macrocode}
\newcommand{\tableofcontents}{%
%<*report|book>
  \if@twocolumn\@restonecoltrue\onecolumn
  \else\@restonecolfalse\fi
%</report|book>
%<article>  \section*{\contentsname
%<!article>  \chapter*{\contentsname
%    \end{macrocode}
% |\tableofcontents|では、|\@mkboth|はheadingの䞭に入れおありたす。
% ほかの呜什|\listoffigures|などに぀いおは、|\@mkboth|はheadingの
% 倖に出しおありたす。これは\LaTeX の\file{classes.dtx}に合わせおいたす。
%    \begin{macrocode}
    \@mkboth{\contentsname}{\contentsname}%
  }\@starttoc{toc}%
%<report|book>  \if@restonecol\twocolumn\fi
}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\l@part}
% partレベルの目次です。
%    \begin{macrocode}
\newcommand*{\l@part}[2]{%
  \ifnum \c@tocdepth >-2\relax
%<article>    \addpenalty{\@secpenalty}%
%<!article>    \addpenalty{-\@highpenalty}%
    \addvspace{2.25em \@plus\p@}%
    \begingroup
    \parindent\z@\rightskip\@pnumwidth
    \parfillskip-\@pnumwidth
    {\leavevmode\large\bfseries
     \setlength\@lnumwidth{4zw}%
     #1\hfil\nobreak
     \hb@xt@\@pnumwidth{\hss#2}}\par
    \nobreak
%<article>    \if@compatibility
    \global\@nobreaktrue
    \everypar{\global\@nobreakfalse\everypar{}}%
%<article>    \fi
     \endgroup
  \fi}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\l@chapter}
% chapterレベルの目次です。
%    \begin{macrocode}
%<*report|book>
\newcommand*{\l@chapter}[2]{%
  \ifnum \c@tocdepth >\m@ne
    \addpenalty{-\@highpenalty}%
    \addvspace{1.0em \@plus\p@}%
    \begingroup
      \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
      \leavevmode\bfseries
      \setlength\@lnumwidth{4zw}%
      \advance\leftskip\@lnumwidth \hskip-\leftskip
      #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
      \penalty\@highpenalty
    \endgroup
  \fi}
%</report|book>
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\l@section}
% sectionレベルの目次です。
%    \begin{macrocode}
%<*article>
\newcommand*{\l@section}[2]{%
  \ifnum \c@tocdepth >\z@
    \addpenalty{\@secpenalty}%
    \addvspace{1.0em \@plus\p@}%
    \begingroup
      \parindent\z@ \rightskip\@pnumwidth \parfillskip-\rightskip
      \leavevmode\bfseries
      \setlength\@lnumwidth{1.5em}%
      \advance\leftskip\@lnumwidth \hskip-\leftskip
      #1\nobreak\hfil\nobreak\hb@xt@\@pnumwidth{\hss#2}\par
    \endgroup
  \fi}
%</article>
%    \end{macrocode}
%
%    \begin{macrocode}
%<*report|book>
%<tate>\newcommand*{\l@section}{\@dottedtocline{1}{1zw}{4zw}}
%<yoko>\newcommand*{\l@section}{\@dottedtocline{1}{1.5em}{2.3em}}
%</report|book>
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\l@subsection}
% \begin{macro}{\l@subsubsection}
% \begin{macro}{\l@paragraph}
% \begin{macro}{\l@subparagraph}
% 䞋䜍レベルの目次項目の䜓裁です。
%    \begin{macrocode}
%<*tate>
%<*article>
\newcommand*{\l@subsection}   {\@dottedtocline{2}{1zw}{4zw}}
\newcommand*{\l@subsubsection}{\@dottedtocline{3}{2zw}{6zw}}
\newcommand*{\l@paragraph}    {\@dottedtocline{4}{3zw}{8zw}}
\newcommand*{\l@subparagraph} {\@dottedtocline{5}{4zw}{9zw}}
%</article>
%<*report|book>
\newcommand*{\l@subsection}   {\@dottedtocline{2}{2zw}{6zw}}
\newcommand*{\l@subsubsection}{\@dottedtocline{3}{3zw}{8zw}}
\newcommand*{\l@paragraph}    {\@dottedtocline{4}{4zw}{9zw}}
\newcommand*{\l@subparagraph} {\@dottedtocline{5}{5zw}{10zw}}
%</report|book>
%</tate>
%<*yoko>
%<*article>
\newcommand*{\l@subsection}   {\@dottedtocline{2}{1.5em}{2.3em}}
\newcommand*{\l@subsubsection}{\@dottedtocline{3}{3.8em}{3.2em}}
\newcommand*{\l@paragraph}    {\@dottedtocline{4}{7.0em}{4.1em}}
\newcommand*{\l@subparagraph} {\@dottedtocline{5}{10em}{5em}}
%</article>
%<*report|book>
\newcommand*{\l@subsection}   {\@dottedtocline{2}{3.8em}{3.2em}}
\newcommand*{\l@subsubsection}{\@dottedtocline{3}{7.0em}{4.1em}}
\newcommand*{\l@paragraph}    {\@dottedtocline{4}{10em}{5em}}
\newcommand*{\l@subparagraph} {\@dottedtocline{5}{12em}{6em}}
%</report|book>
%</yoko>
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
%
% \subsubsection{図目次ず衚目次}
%
% \begin{macro}{\listoffigures}
% 図の䞀芧を䜜成したす。
% \changes{v1.7}{2016/11/12}{Moved \cs{@mkboth} out of heading
%                            arg (sync with classes.dtx v1.4c)}
%    \begin{macrocode}
\newcommand{\listoffigures}{%
%<*report|book>
  \if@twocolumn\@restonecoltrue\onecolumn
  \else\@restonecolfalse\fi
  \chapter*{\listfigurename}%
%</report|book>
%<article>    \section*{\listfigurename}%
  \@mkboth{\listfigurename}{\listfigurename}%
  \@starttoc{lof}%
%<report|book>  \if@restonecol\twocolumn\fi
}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\l@figure}
% 図目次の䜓裁です。
%    \begin{macrocode}
%<tate>\newcommand*{\l@figure}{\@dottedtocline{1}{1zw}{4zw}}
%<yoko>\newcommand*{\l@figure}{\@dottedtocline{1}{1.5em}{2.3em}}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\listoftables}
% \changes{v1.0c}{1995/12/28}{fix the \cs{listoftable} typo.}
% 衚の䞀芧を䜜成したす。
% \changes{v1.7}{2016/11/12}{Moved \cs{@mkboth} out of heading
%                            arg (sync with classes.dtx v1.4c)}
%    \begin{macrocode}
\newcommand{\listoftables}{%
%<*report|book>
  \if@twocolumn\@restonecoltrue\onecolumn
  \else\@restonecolfalse\fi
  \chapter*{\listtablename}%
%</report|book>
%<article>    \section*{\listtablename}%
  \@mkboth{\listtablename}{\listtablename}%
  \@starttoc{lot}%
%<report|book>  \if@restonecol\twocolumn\fi
}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\l@table}
% 衚目次の䜓裁は、図目次ず同じにしたす。
%    \begin{macrocode}
\let\l@table\l@figure
%    \end{macrocode}
% \end{macro}
%
%
% \subsection{参考文献}
%
% \begin{macro}{\bibindent}
% オヌプンスタむルの参考文献で䜿うむンデント幅です。
%    \begin{macrocode}
\newdimen\bibindent
\setlength\bibindent{1.5em}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\newblock}
% |\newblock|のデフォルト定矩は、小さなスペヌスを生成したす。
%    \begin{macrocode}
\newcommand{\newblock}{\hskip .11em\@plus.33em\@minus.07em}
%    \end{macrocode}
% \end{macro}
%
% \begin{environment}{thebibliography}
% 参考文献や関連図曞のリストを䜜成したす。
% \changes{v1.7}{2016/11/12}{Moved \cs{@mkboth} out of heading
%                            arg (sync with classes.dtx v1.4c)}
%    \begin{macrocode}
\newenvironment{thebibliography}[1]
%<article>{\section*{\refname}\@mkboth{\refname}{\refname}%
%<report|book>{\chapter*{\bibname}\@mkboth{\bibname}{\bibname}%
   \list{\@biblabel{\@arabic\c@enumiv}}%
        {\settowidth\labelwidth{\@biblabel{#1}}%
         \leftmargin\labelwidth
         \advance\leftmargin\labelsep
         \@openbib@code
         \usecounter{enumiv}%
         \let\p@enumiv\@empty
         \renewcommand\theenumiv{\@arabic\c@enumiv}}%
   \sloppy
%    \end{macrocode}
% \changes{v1.1a}{1997/01/23}{\break\LaTeX\ \texttt{!<1996/12/01!>}に合わせお修正}
%    \begin{macrocode}
   \clubpenalty4000
   \@clubpenalty\clubpenalty
   \widowpenalty4000%
   \sfcode`\.\@m}
  {\def\@noitemerr
    {\@latex@warning{Empty `thebibliography' environment}}%
   \endlist}
%    \end{macrocode}
% \end{environment}
%
% \begin{macro}{\@openbib@code}
% |\@openbib@code|のデフォルト定矩は䜕もしたせん。
% この定矩は、\Lopt{openbib}オプションによっお倉曎されたす。
%    \begin{macrocode}
\let\@openbib@code\@empty
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@biblabel}
%    The label for a |\bibitem[...]| command is produced by this
%    macro. The default from \file{latex.dtx} is used.
%    \begin{macrocode}
% \renewcommand*{\@biblabel}[1]{[#1]\hfill}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@cite}
%    The output of the |\cite| command is produced by this macro. The
%    default from \file{ltbibl.dtx} is used.
%    \begin{macrocode}
% \renewcommand*{\@cite}[1]{[#1]}
%    \end{macrocode}
% \end{macro}
%
%
% \subsection{玢匕}
%
% \begin{environment}{theindex}
% 段組の玢匕を䜜成したす。
% 玢匕の先頭のペヌゞのスタむルは\pstyle{jpl@in}ずしたす。したがっお、
% \pstyle{headings}ず\pstyle{bothstyle}に適した䜍眮に出力されたす。
%    \begin{macrocode}
\newenvironment{theindex}
  {\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
%<article>   \twocolumn[\section*{\indexname}]%
%<report|book>   \twocolumn[\@makeschapterhead{\indexname}]%
   \@mkboth{\indexname}{\indexname}%
   \thispagestyle{jpl@in}\parindent\z@
%    \end{macrocode}
% パラメヌタ|\columnseprule|ず|\columnsep|の倉曎は、|\twocolumn|が
% 実行された埌でなければなりたせん。そうしないず、玢匕の前のペヌゞ
% にも圱響しおしたうためです。
% \changes{v1.7}{2016/11/12}{\cs{columnsep}ず\cs{columnseprule}の
%    倉曎を埌ろに移動(sync with classes.dtx v1.4f)}
%    \begin{macrocode}
   \parskip\z@ \@plus .3\p@\relax
   \columnseprule\z@ \columnsep 35\p@
   \let\item\@idxitem}
  {\if@restonecol\onecolumn\else\clearpage\fi}
%    \end{macrocode}
% \end{environment}
%
% \begin{macro}{\@idxitem}
% \begin{macro}{\subitem}
% \begin{macro}{\subsubitem}
% 玢匕項目の字䞋げ幅です。|\@idxitem|は|\item|の項目の字䞋げ幅です。
%    \begin{macrocode}
\newcommand{\@idxitem}{\par\hangindent 40\p@}
\newcommand{\subitem}{\@idxitem \hspace*{20\p@}}
\newcommand{\subsubitem}{\@idxitem \hspace*{30\p@}}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\indexspace}
% 玢匕の``文字''芋出しの前に入るスペヌスです。
%    \begin{macrocode}
\newcommand{\indexspace}{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
%    \end{macrocode}
% \end{macro}
%
%
% \subsection{脚泚}
%
% \begin{macro}{\footnoterule}
% 本文ず脚泚の間に匕かれる眫線です。
% \changes{v1.7}{2016/11/12}{use \cs{@width} (sync with classes.dtx v1.3a)}
%    \begin{macrocode}
\renewcommand{\footnoterule}{%
  \kern-3\p@
  \hrule\@width.4\columnwidth
  \kern2.6\p@}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\c@footnote}
% reportずbookクラスでは、chapterレベルでリセットされたす。
%    \begin{macrocode}
%<!article>\@addtoreset{footnote}{chapter}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\@makefntext}
% このマクロにしたがっお脚泚が組たれたす。
%
% |\@makefnmark|は脚泚蚘号を組み立おるマクロです。
% \changes{v1.7}{2016/11/12}{Replaced all \cs{hbox to} by
%    \cs{hb@xt@} (sync with classes.dtx v1.3a)}
%    \begin{macrocode}
%<*tate>
\newcommand\@makefntext[1]{\parindent 1zw
  \noindent\hb@xt@ 2zw{\hss\@makefnmark}#1}
%</tate>
%<*yoko>
\newcommand\@makefntext[1]{\parindent 1em
  \noindent\hb@xt@ 1.8em{\hss\@makefnmark}#1}
%</yoko>
%    \end{macrocode}
% \end{macro}
%
%
% \section{今日の日付}
% 組版時における珟圚の日付を出力したす。
%
% \iffalse  meta-comment!
%  泚意ここで \DisableCrossrefs, \EnableCrossrefs をしおいるのは、
%        platex jclasses.dtx で dvi を䜜るずきに゚ラヌになるため。
% \fi
% \DisableCrossrefs
% \begin{macro}{\if西暊}
% \begin{macro}{\西暊}
% \begin{macro}{\和暊}
% \changes{v1.0h}{1996/12/17}{Typo:和歎 to 和暊}
% |\today|コマンドの`幎'を、
% 西暊か和暊のどちらで出力するかを指定するコマンドです。
% 2018幎7月以降の日本語\TeX{}開発コミュニティ版(v1.8)では、
% デフォルトを和暊ではなく西暊に蚭定しおいたす。
% \changes{v1.8}{2018/07/03}{\cs{today}のデフォルトを和暊から西暊に倉曎}
%    \begin{macrocode}
\newif\if西暊 \西暊true
\def\西暊{\西暊true}
\def\和暊{\西暊false}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \EnableCrossrefs
%
% \begin{macro}{\heisei}
% \changes{v1.1m}{1998/04/07}{\cs{today}の蚈算手順を倉曎}
% \changes{v1.8b}{2019/04/02}{\cs{heisei}の倀は$\mbox{西暊}-1988$で固定}
% |\today|コマンドを|\rightmark|で指定したずき、|\rightmark|を出力する郚分
% で和暊のための蚈算ができないので、クラスファむルを読み蟌む時点で蚈算しお
% おきたす。
%    \begin{macrocode}
\newcount\heisei \heisei\year \advance\heisei-1988\relax
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\today}
% \begin{macro}{\pltx@today@year}
% \changes{v1.8b}{2019/04/02}{\cs{today}の蚈算・出力方法を倉曎。}
% 瞊組の堎合は、挢数字で出力したす
% \pLaTeX\ 2018-12-01以前では瞊数匏ディレクション時でも挢数字で出力しおいたしたが、
% \pLaTeX\ 2019-04-06以降からはそうしなくなりたした。
%    \begin{macrocode}
\def\pltx@today@year@#1{%
  \ifnum\numexpr\year-#1=1 元\else
    \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi
      \kansuji\number\numexpr\year-#1\relax
    \else
      \number\numexpr\year-#1\relax\nobreak
    \fi
  \fi 幎
}
\def\pltx@today@year{%
  \ifnum\numexpr\year*10000+\month*100+\day<19890108
    昭和\pltx@today@year@{1925}%
  \else\ifnum\numexpr\year*10000+\month*100+\day<20190501
    平成\pltx@today@year@{1988}%
  \else
    什和\pltx@today@year@{2018}%
  \fi\fi}
\def\today{{%
  \if西暊
    \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi\kansuji\number\year
    \else\number\year\nobreak\fi 幎
  \else
    \pltx@today@year
  \fi
  \ifnum1=\iftdir\ifmdir0\else1\fi\else0\fi
    \kansuji\number\month 月
    \kansuji\number\day 日
  \else
    \number\month\nobreak 月
    \number\day\nobreak 日
  \fi}}
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
%
%
%
% \section{初期蚭定}
%
% \begin{macro}{\prepartname}
% \begin{macro}{\postpartname}
% \begin{macro}{\prechaptername}
% \begin{macro}{\postchaptername}
%    \begin{macrocode}
\newcommand{\prepartname}{第}
\newcommand{\postpartname}{郚}
%<report|book>\newcommand{\prechaptername}{第}
%<report|book>\newcommand{\postchaptername}{ç« }
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\contentsname}
% \begin{macro}{\listfigurename}
% \begin{macro}{\listtablename}
%    \begin{macrocode}
\newcommand{\contentsname}{目 次}
\newcommand{\listfigurename}{図 目 次}
\newcommand{\listtablename}{è¡š 目 次}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\refname}
% \begin{macro}{\bibname}
% \begin{macro}{\indexname}
%    \begin{macrocode}
%<article>\newcommand{\refname}{参考文献}
%<report|book>\newcommand{\bibname}{関連図曞}
\newcommand{\indexname}{玢 匕}
%    \end{macrocode}
% \end{macro}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\figurename}
% \begin{macro}{\tablename}
%    \begin{macrocode}
\newcommand{\figurename}{図}
\newcommand{\tablename}{è¡š}
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \begin{macro}{\appendixname}
% \begin{macro}{\abstractname}
%    \begin{macrocode}
\newcommand{\appendixname}{付 録}
%<article|report>\newcommand{\abstractname}{抂 芁}
%    \end{macrocode}
% \end{macro}
% \end{macro}
%
% \changes{v1.0d}{1996/02/29}{articleずreportのデフォルトを
%                              \pstyle{plain}に修正}
% \changes{v1.4}{2002/04/09}{瞊組スタむルで\cs{flushbottom}しないようにした}
%    \begin{macrocode}
%<book>\pagestyle{headings}
%<!book>\pagestyle{plain}
\pagenumbering{arabic}
\raggedbottom
\if@twocolumn
  \twocolumn
  \sloppy
\else
  \onecolumn
\fi
%    \end{macrocode}
% |\@mparswitch|は傍泚を巊右瞊組では䞊䞋どちらのマヌゞンに
% 出力するかの指定です。停の堎合、傍泚は䞀方の偎にしか出力されたせん。
% このスむッチを真ずするず、ずくに瞊組の堎合、奇数ペヌゞでは本文の䞊に、
% 偶数ペヌゞでは本文の䞋に傍泚が出力されたすので、おかしなこずになりたす。
%
% たた、瞊組のずきには、傍泚を本文の䞋に出すようにしおいたす。
% |\reversemarginpar|ずするず本文の䞊偎に出力されたす。
% ただし、二段組の堎合は、぀ねに隣接するテキスト偎のマヌゞンに出力されたす。
%    \begin{macrocode}
%<*tate>
\normalmarginpar
\@mparswitchfalse
%</tate>
%<*yoko>
\if@twoside
  \@mparswitchtrue
\else
  \@mparswitchfalse
\fi
%</yoko>
%</article|report|book>
%    \end{macrocode}
%
%
%
% \Finale
%
\endinput