summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xelatex/exam-zh/doc/body/usage.tex
blob: c797579d3cf2782b107bd1a7d070adae98ccdca9 (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
% !TeX root = ../exam-zh-doc.tex

\section{使用说明}

\subsection{基本用法}

以下是一份简单的 \TeX{} 文档,它演示了 \cls{exam-zh} 的最基本用法:

\begin{latexcode}[deletetexcs={\documentclass},
    moretexcs={\chapter},morekeywords={\documentclass},
    emph={[2]document}]
  % main.tex
  \documentclass{exam-zh}
  \begin{document}
    \section{Welcome to exam-zh!}
    你好,\LaTeX{}!
  \end{document}
\end{latexcode}


按照~\ref{subsec:编译方式} 小节中的方式编译,您应当得到一篇 1 页的文档。


\subsection{编译方式} \label{subsec:编译方式}

本模板不支持 \pdfTeX{} 引擎,仅支持使用 \XeLaTeX{} 。为了生成正确的目录、脚注以及交叉引用,您至少需要连续编译两次。

以下代码中,假设您的 \TeX{} 源文件名为 \file{example.tex}。请在命令行中执行
\begin{shellcode}[morekeywords={xelatex}]
  xelatex example
\end{shellcode}


\subsection{模板选项}

所谓“模板选项”,指需要在引入文档类的时候指定的选项:
\begin{latexcode}[deletetexcs={\documentclass},
    morekeywords={\documentclass}]
  \documentclass(*\oarg{模板选项}*){exam-zh}
\end{latexcode}

有些模板选项为布尔型,它们只能在 \opt{true} 和 \opt{false}
中取值。对于这些选项,\kvopt{\meta{选项}}{true} 中的“|= true|”
可以省略。

\cls{exam-zh} 的模版选项接口与 \cls{ctexart} 相同,具体可 \cmd{texdoc ctex} 查阅 \pkg{ctex} 宏包文档。


\subsection{命令和环境介绍}

\subsubsection{正体的数学常数}

\begin{function}[updated = 2022-08-02]{\eu,\upe}
  正体的自然对数的底“e”。
\end{function}

\begin{function}[updated = 2022-08-02]{\iu,\upi}
  正体的虚数单位“i”。
\end{function}

\tn{eu} 可以理解为 “e upright” 的缩写或者 “Euler's number” 的首字母,\tn{iu} 可以理解为 “i upright” 或 “imaginary unit” 的缩写,这样更方便记忆。

\begin{function}[added = 2022-08-02]{\uppi}
  正体的圆周率“$\pi$”: “$\uppi$”。
\end{function}

\begin{latexexample}{\tn{eu}、\tn{iu} 和 \tn{uppi} 的效果}
  $\eu \quad \iu \quad \uppi$
\end{latexexample}


\subsubsection{优化的命令环境}

\cls{exam-zh} 对一些命令环境进行了优化,方便用户使用。

\begin{function}{\vec}
  \begin{ccnusyntax}[emph={[1]vec}]
    \vec(*\marg{content}*)
  \end{ccnusyntax}
  向量命令。当只有一个字符的时候默认加粗斜体,两个及两个以上字符则加箭头。
\end{function}

\begin{latexexample}{\tn{vec} 示例}
  $\vec{a} \quad \vec{AB}$
\end{latexexample}


\subsubsection{中国化数学符号}

中国的初高中教材中一些数学符号和 \LaTeX{} 默认的或者是 \pkg{amsmath} 等宏包提供的符号有差异,于是 \cls{exam-zh} 用 \TikZ 重新绘制了部分符号。

\begin{function}{\parallelogram}
  平行四边形。$\parallelogram$
\end{function}

\begin{function}{\parallel,\nparallel}
  平行和不平行。$\parallel \, \nparallel$
\end{function}

\begin{function}{\paralleleq}
  平行且相等。$\paralleleq$
  \examsetup{symbols/paralleleq-type = perpendicular}
  \, $\paralleleq$。由~\ref{subsubsec:参数-中国化数学符号} 节的键值可以控制倾斜和垂直两个不同类型。
\end{function}

\begin{function}{\subset,\subset*}
  包含于(无横线)。|*| 表示不重定义。|\subset|: $\subset$, |\subset*|: $\subset*$
\end{function}

\begin{function}{\nsubset,\nsubset*}
  不包含于(无横线)。|*| 表示不重定义。|\nsubset|: $\nsubset$, |\nsubset*|: $\nsubset*$
\end{function}

\begin{function}{\subseteq,\subseteq*}
  包含于(有横线)。|*| 表示不重定义。|\subseteq|: $\subseteq$, |\subseteq*|: $\subseteq*$
\end{function}

\begin{function}{\nsubseteq,\nsubseteq*}
  不包含于(有横线)。|*| 表示不重定义。|\nsubseteq|: $\nsubseteq$, |\nsubseteq*|: $\nsubseteq*$
\end{function}

\begin{function}{\subsetneqq,\subsetneqq*}
  真子集。|*| 表示不重定义。|\subsetneqq|: $\subsetneqq$, |\subsetneqq*|: $\subsetneqq*$
\end{function}

\begin{function}{\nsubsetneqq}
  真子集的否定。|\nsubsetneqq|: $\nsubsetneqq$
\end{function}

\begin{function}{\supset,\supset*}
  反向包含于(无横线)。|*| 表示不重定义。|\supset|: $\supset$, |\supset*|: $\supset*$
\end{function}

\begin{function}{\nsupset,\nsupset*}
  反向不包含于(无横线)。|*| 表示不重定义。|\nsupset|: $\nsupset$, |\nsupset*|: $\nsupset*$
\end{function}

\begin{function}{\supseteq,\supseteq*}
  反向包含于(有横线)。|*| 表示不重定义。|\supseteq|: $\supseteq$, |\supseteq*|: $\supseteq*$
\end{function}

\begin{function}{\nsupseteq,\nsupseteq*}
  反向不包含于(有横线)。|*| 表示不重定义。|\nsupseteq|: $\nsupseteq$, |\nsupseteq*|: $\nsupseteq*$
\end{function}

\begin{function}{\supsetneqq,\supsetneqq*}
  反向真子集。|*| 表示不重定义。|\supsetneqq|: $\supsetneqq$, |\supsetneqq*|: $\supsetneqq*$
\end{function}

\begin{function}{\nsupsetneqq}
  反向真子集的否定。|\nsupsetneqq|: $\nsupsetneqq$
\end{function}

\begin{function}{\cap,\cap*}
  交集。|*| 表示不重定义。|\cap|: $\cap$, |\cap*|: $\cap*$。
\end{function}

\begin{function}{\cup,\cup*}
  并集。|*| 表示不重定义。|\cup|: $\cup$, |\cup*|: $\cup*$。
\end{function}


\begin{function}{\sim,\sim*}
  相似。|*| 表示不重定义。|\sim|: $\sim$, |\sim*|: $\sim*$。
\end{function}


\begin{function}{\nsim}
  不相似。|\nsim|: $\nsim$
\end{function}

\begin{function}{\cong,\cong*}
  全等。|*| 表示不重定义。|\cong|: $\cong$, |\cong*|: $\cong*$。
\end{function}


\begin{function}{\ncong}
  不全等。|\ncong|: $\ncong$
\end{function}

% \begin{function}{}
  
% \end{function}

% \begin{function}{}
  
% \end{function}

% \begin{function}{}
%   \begin{ccnusyntax}[emph={[1]}]
    
%   \end{ccnusyntax}
% \end{function}


% \subsubsection{中文字体}

% 在语文试卷中可能需要不同的字体,比如楷体等,在 \cls{exam-zh} 中,不使用 \tn{kaiti} 等命令(一般会有报错),推荐使用 \tn{itshape} 等命令:
% \begin{latexexample}{不同字体命令效果}
%   测试 {\normalfont 测试}

%   加粗 {\bfseries 测试}

%   黑体 {\sffamily 测试}

%   楷体 {\itshape 测试}
% \end{latexexample}


\subsubsection{抬头}   \label{subsubsec:抬头}

\begin{function}[added = 2022-07-03]{\information}
  \begin{ccnusyntax}[emph={[1]information}]
    \information(*\oarg{分隔符}*)
  \end{ccnusyntax}
  水平的学生信息输入命令。\opt{分隔符} 默认为 |\quad|。使用示例:
  \begin{latexcode}[gobble=4]
    \information{
      姓名\underline{\hspace{6em}},
      座位号\underline{\hspace{15em}}
    }
  \end{latexcode}
\end{function}

\begin{function}[added = 2022-07-03]{\warning}
  \begin{ccnusyntax}[emph={[1]warning}]
    \warning(*\marg{警告}*)
  \end{ccnusyntax}
  警告命令。居中、黑体。使用示例:
  \begin{latexcode}[gobble=4]
    \warning{(在此卷上答题无效)}
  \end{latexcode}
\end{function}

\begin{function}[updated = 2022-07-03]{\secret}
  \begin{ccnusyntax}[emph={[1]secret}]
    \secret(*\oarg{格式命令}*)
  \end{ccnusyntax}
  “绝密 $\bigstar$ 启用前”。格式命令默认为 |\bfseries|。
\end{function}

\begin{function}[updated = 2022-07-03]{\goodluck}
  \begin{ccnusyntax}[emph={[1]goodluck}]
    \goodluck(*\oarg{祝福语}*)
  \end{ccnusyntax}
  祝福语命令。祝福语默认为 |祝考试顺利|。
\end{function}

\begin{function}[updated = 2022-07-26]{notice 环境}
  \begin{ccnusyntax}[emph={[2]notice}]
    \begin{notice}(*\oarg{键值列表 1}\oarg{键值列表 2}*)
      \item ...
      \item ...
    \end{notice}
  \end{ccnusyntax}
  注意事项环境,是 \env{enumerate} 环境的包装,\meta{键值列表 2} 是传递给 \env{enumerate} 环境的可选参数。\meta{键值列表 1} 如下。
\end{function}

\begin{function}[added = 2022-07-26]{notice/label}
  \begin{ccnusyntax}[emph={[1]label}]
    label = (*\meta{label}*)
  \end{ccnusyntax}
  \env{notice} 环境的 \meta{label} 内容。默认为 |注意事项:|。
\end{function}

\begin{function}[added = 2022-07-26]{notice/label-format}
  \begin{ccnusyntax}[emph={[1]label-format}]
    label-format = (*\meta{format}*)
  \end{ccnusyntax}
  \env{notice} 环境的 \meta{label} 格式。默认为 |\sffamily \bfseries|。
\end{function}

\begin{function}[added = 2022-07-26]{notice/top-sep,notice/bottom-sep}
  \begin{ccnusyntax}[emph={[1]top-sep,bottom-sep}]
    top-sep = (*\meta{skip}*)
    bottom-sep = (*\meta{skip}*)
  \end{ccnusyntax}
  \env{notice} 环境的上下方的弹性间距。默认均为 |.25em plus .25em minus .1em|。
\end{function}


\begin{function}{\title}
  \begin{ccnusyntax}[emph={[1]title}]
    \title(*\marg{标题}*)
  \end{ccnusyntax}
  标题。在 \tn{maketitle} 前使用。参数控制见~\ref{subsubsec:参数-抬头} 节。
\end{function}

\begin{function}[updated = 2022-07-24]{\subject}
  \begin{ccnusyntax}[emph={[1]subject}]
    \subject(*\oarg{宽度}\marg{科目}*)
  \end{ccnusyntax}
  科目。在 \tn{maketitle} 前使用。可以为空或不写。\meta{科目} 内容在 \meta{宽度} 盒子内均匀分散。\meta{宽度} 默认为 \meta{科目} 宽度。参数控制见~\ref{subsubsec:参数-抬头} 节。
\end{function}

\begin{function}{\maketitle}
  \begin{ccnusyntax}[emph={[1]maketitle}]
    \maketitle
  \end{ccnusyntax}
  生成标题和科目。
\end{function}


\subsubsection{题干}  \label{subsubsec:命令环境-题干}

\begin{function}{question 环境}
  \begin{ccnusyntax}[emph={[2]question}]
    \begin{question}(*\oarg{键值列表}*)
      <题干>
    \end{question}
  \end{ccnusyntax}
  选择题和填空题题干环境。
\end{function}

\begin{function}{problem 环境}
  \begin{ccnusyntax}[emph={[2]problem}]
    \begin{problem}(*\oarg{键值列表}*)
      <题干>
    \end{problem}
  \end{ccnusyntax}
  解答题题干环境。
\end{function}

\cls{question} 和 \cls{problem} 环境的区别仅在于若 \kvopt{show-points}{true} (下面会介绍这个键值),则 \cls{question} 的题干会紧接在分数后而  \cls{problem} 的题干会在分数后新起一段后开始。

\ExplSyntaxOn
\keys_set:nn { exam-zh / question }
  {
    show-points = true
  }
\ExplSyntaxOff
\begin{latexexample}{\cls{question} 和 \cls{problem} 环境的区别}
  % \examsetup{
  %   question/show-points = true
  % }
  \begin{question}[points = 1]
    题干测试
  \end{question}
  \begin{problem}[points = 2]
    题干测试
  \end{problem}
\end{latexexample}


\ExplSyntaxOn
\keys_set:nn { exam-zh / question }
  {
    show-points = auto,
    index = 0,
  }
\keys_set:nn { exam-zh / paren }
  {
    show-paren = true
  }
\ExplSyntaxOff
\begin{function}{\paren}
  \begin{ccnusyntax}[emph={[2]\paren}]
    \paren(*\oarg{答案}*)
  \end{ccnusyntax}
  括号。\meta{答案} 可以受下面介绍的 \cmd{show-answer} 键值控制隐藏。会自动到行末尾,若单行内容较长会自动到下一行末尾
\end{function}


\begin{latexexample}{\tn{paren} 的换行效果}
  % \examsetup{
  %   paren/show-paren = true
  % }
  \begin{question}
    短题干选项 \paren
  \end{question}
  \begin{question}
    长长长长长长长长长长长长长长长长长长长长长长长长长长长题干选项 \paren
  \end{question}
\end{latexexample}


\begin{function}[added = 2022-07-20]{\AddQuestionCounter}
  \begin{ccnusyntax}[emph={[2]\AddQuestionCounter}]
    \AddQuestionCounter(*\marg{LaTeX command}*)(*\marg{internal command}*)
  \end{ccnusyntax}
  如果用户需要使用其它形式的数字作为 \env{question} 环境和 \env{problem} 的标签,需要使用 \tn{AddQuestionCounter} 命令将其添加进 \opt{label} 选项的识别范围内(类似 \pkg{enumitem} 宏包的 \tn{AddEnumerateCounter} )。其中 \meta{LaTeX command} 是在 \opt{label} 选项中的形式,\meta{internal command} 是内部的实现,\meta{widest label} 是最宽的标签。比如带圈数字的添加方法:
  \begin{latexcode}[gobble=4]
    \AddQuestionCounter{\circlednumber}{\__examzh_question_circled_number:n}
  \end{latexcode}
\end{function}



\subsubsection{选择题} \label{subsubsec:命令环境-选择题}

\begin{function}{choices 环境}
  \begin{ccnusyntax}[emph={[2]choices}]
    \begin{choices}(*\oarg{键值列表}*)
      \item (*\meta{选项1}*)
      \item (*\meta{选项2}*)
      ...
    \end{choices}
  \end{ccnusyntax}
  选择题选项排版环境。\meta{键值列表} 见~\ref{subsubsec:参数-选择题}。
\end{function}

\begin{function}{\setchoices}
  \begin{ccnusyntax}[emph={[2]\setchoices}]
    \setchoices(*\marg{键值列表}*)
  \end{ccnusyntax}
  \env{choices} 环境的参数设置。和
  \begin{latexcode}[gobble=4]
    \examsetup{
      choices = {
        ...
      }
    }
  \end{latexcode}
  效果相同。开发此命令原因是 \file{exam-zh-choices.sty} 是独立的模块,可以独立于 \cls{exam-zh} 外使用。
\end{function}

\begin{function}{\AddChoicesCounter}
  \begin{ccnusyntax}[emph={[2]\AddChoicesCounter}]
    \AddChoicesCounter(*\marg{LaTeX command}*)(*\marg{internal command}*)
  \end{ccnusyntax}
  如果用户需要使用其它形式的数字作为 \env{choices} 环境的标签,需要使用 \tn{AddChoicesCounter} 命令将其添加进 \opt{label} 选项的识别范围内(类似 \pkg{enumitem} 宏包的 \tn{AddEnumerateCounter} )。其中 \meta{LaTeX command} 是在 \opt{label} 选项中的形式,\meta{internal command} 是内部的实现,\meta{widest label} 是最宽的标签。比如带圈数字的添加方法:
  \begin{latexcode}[gobble=4]
    \AddChoicesCounter{\circlednumber}{\__examzh_choices_circled_number:n}
  \end{latexcode}
\end{function}


\begin{latexexample}{\tn{AddChoicesCounter} 使用示例}
  \ExplSyntaxOn
  \cs_new:Npn \test_counter:n #1
    {
      \int_set:Nn \l_tmpa_int { \int_eval:n { #1 + 1 } }
      \int_use:N \l_tmpa_int
    }
  \AddChoicesCounter \test \test_counter:n
  \ExplSyntaxOff
  \begin{choices}[label = \test*]
    \item 1
    \item 2
  \end{choices}
\end{latexexample}


\begin{function}[updated = 2022-07-21]{\circlednumber,\circlednumber*}
  \begin{ccnusyntax}[emph={[2]\circlednumber,\circlednumber*}]
    \circlednumber(*\meta{数字或计数器名字}*)
    \circlednumber*(*\meta{数字或计数器名字}*)
  \end{ccnusyntax}
  带圈数字命令。不带星号的基于字体开发,带星号的基于 \TikZ 开发。|\circlednumber| 仅接受 0~50 的输入值,而 |\circlednumber*| 无限制。
  \begin{latexexample}{\tn{circlednumber} 的使用示例}
    \circlednumber{1} \circlednumber{2}
    \circlednumber*{1} \circlednumber*{2}
    \circlednumber{page} \circlednumber{section}
  \end{latexexample}
\end{function}


\subsubsection{填空题}

\begin{function}[updated = 2022-07-27]{\fillin}
  \begin{ccnusyntax}[emph={[2]\fillin}]
    \fillin(*\oarg{键值列表}*)(*\oarg{答案}*)
    \fillin*(*\oarg{键值列表}*)(*\oarg{答案}*)
  \end{ccnusyntax}
  填空(下划线或括号)。\meta{答案} 可以受~\ref{subsubsec:参数-题干} 节的 \cmd{question/show-answer} 键值控制隐藏。\meta{键值列表} 见~\ref{subsubsec:参数-填空题} 节。\tn{fillin} 不可换行,但是会自动根据内容深度提升基线(比如排版分数不会“压线”);\tn{fillin*} 可以自动换行但是没有前者的功能,且 \tn{fillin*} 的换行功能只适用于 \kvopt{fillin/type}{line}、\kvopt{fillin/type}{paren} 和 \kvopt{fillin/type}{blank}。
\end{function}

注意,\tn{fillin} 命令经过处理,|\fillin[<1>]| 表示 |\fillin[<答案>]|(而不是通常定义两个可选参数命令,若只写一个的时候默认为第一个参数),而如果仅仅改变 \tn{fillin} 的类型(见下)而不输入答案,则需要使用 |\fillin[type=paren][]|。这样设计是考虑到:大部分时候都是无答案和输入答案两种情况,而单独改某一个 \tn{fillin} 的类型的情况很少,一般都是一些题目统一改,这个时候在需要修改的 \tn{fillin} 之前使用
  \begin{latexcode}[gobble=4]
    \examsetup{
      fillin/type = paren
    }
  \end{latexcode}
  更改即可。如果后续需要换回来,则只需要使用
  \begin{latexcode}[gobble=4]
    \examsetup{
      fillin/type = line
    }
  \end{latexcode}
  即可。

需要注意的是,如果 \tn{fillin} 的参数重含有不配对的中括号时会报错,如 |\fillin[$(−\infty, 1]$]|。这时需要使用大括号将内容保护起来:|\fillin[{$(−\infty, 1]$}]|。


\begin{function}[added = 2022-07-21]{\AddFillinCounter}
  \begin{ccnusyntax}[emph={[1]\AddFillinCounter}]
    \AddFillinCounter(*\marg{LaTeX command}*)(*\marg{internal command}*)
  \end{ccnusyntax}
  如果用户需要使用其它形式的数字作为 \kvopt{fillin/no-answer-type}{counter} 下 \opt{counter} 的标签,需要使用 \tn{AddFillinCounter} 命令将其添加进 \opt{label} 选项的识别范围内(类似 \pkg{enumitem} 宏包的 \tn{AddEnumerateCounter} )。其中 \meta{LaTeX command} 是在 \opt{label} 选项中的形式,\meta{internal command} 是内部的实现,\meta{widest label} 是最宽的标签。比如带圈数字的添加方法:
  \begin{latexcode}[gobble=4]
    \AddFillinCounter{\circlednumber}{\__examzh_fillin_circled_number:n}
  \end{latexcode}
\end{function}


\subsubsection{判断题}

作为 \tn{paren} 和 \tn{fillin} 命令的应用可以实现判断题效果:
\begingroup
\examsetup{
  question/index=0
}
\begin{latexexample}{\tn{paren} 和 \tn{fillin} 命令的应用:判断题}
  \examsetup{
    question/show-answer = true,
    fillin/type = paren,
    paren/show-paren = true
  }
  \newcommand{\true}{$\surd$}
  \newcommand{\false}{$\times$}

  \begin{question}
    $1 + 1 = 2$ \paren[对]
  \end{question}

  \begin{question}
    $1 + 1 = 3$ \fillin[错]
  \end{question}

  \begin{question}
    $1 + 1 = 2$ \paren[\true]
  \end{question}

  \begin{question}
    $1 + 1 = 3$ \fillin[\false]
  \end{question}
\end{latexexample}
\endgroup

由于使用“对错”还是“叉勾”因人而异,所以本模版没有固定,但结合上面的例子为用户提供一种“自定义”思路(基于 \tn{fillin} 为例):
\ExplSyntaxOn
\cs_undefine:N \true
\cs_undefine:N \false
\ExplSyntaxOff
\examsetup{
  question/index = 0
}
\begingroup
\begin{latexexample}{填空题的自定义示例}
\examsetup{
  question/show-answer = true,
  fillin/type = paren,
  paren/show-paren = true
}

\newcommand{\true}{\fillin[$\surd$]}
\newcommand{\false}{\fillin[$\times$]}

\begin{question}
  $1 + 1 = 2$ \true
\end{question}

\begin{question}
  $1 + 1 = 3$ \false
\end{question}
\end{latexexample}
\endgroup


\subsubsection{解答题}

\begin{function}[added = 2022-07-01, updated = 2022-07-19]{solution 环境}
  \begin{ccnusyntax}[emph={[2]solution}]
    \begin{solution}(*\oarg{键值列表}*)
      ...
    \end{solution}
  \end{ccnusyntax}
  解答题解答环境。\meta{键值列表} 见~\ref{subsubsec:参数-解答题} 节。
\end{function}


下面所有和 \env{solution} 有关的示例都默认加载了
\begin{latexcode}
  \examsetup{solution/show-solution = true}
\end{latexcode}

\examsetup{
  solution/show-solution=true
}


\begin{latexexample}{\env{solution} 环境示例}
  \begin{solution}
    测试
  \end{solution}
\end{latexexample}

\begin{function}[added = 2022-07-01]{\score}
  \begin{ccnusyntax}[emph={[1]score}]
    \score(*\marg{分数}*)
  \end{ccnusyntax}
  \env{solution} 环境中得分点的得分命令。若在行间公式使用,则需要编译两次产生虚线。
\end{function}

\begin{latexexample}{\tn{score} 命令示例}
  \begin{solution}
    函数的定义域为 $(0, +\infty)$,
    又 \[f^{\prime}(x) = 1 - \ln x-1 = -\ln x, \score{2}\]
    当 $x \in(0, 1)$ 时, $f^{\prime}(x) > 0$, 当 $x \in(1, +\infty)$ 时, $f^{\prime}(x) < 0$.

    故 $f(x)$ 的递增区间为 $(0,1)$, \score{1} 递减区间为 $(1, +\infty)$. \score{1}
  \end{solution}
\end{latexexample}


\subsubsection{几个列表环境}

\begin{function}[added = 2022-07-04]{step 环境}
  \begin{ccnusyntax}[emph={[2]step}]
    \begin{step}
      \item ...
      \item ...
    \end{step}
  \end{ccnusyntax}
  “步骤”列表环境。
\end{function}

\begin{function}[added = 2022-07-04]{method 环境}
  \begin{ccnusyntax}[emph={[2]method}]
    \begin{method}
      \item ...
      \item ...
    \end{method}
  \end{ccnusyntax}
  “方法”列表环境。
\end{function}

\begin{function}[added = 2022-07-04]{case 环境}
  \begin{ccnusyntax}[emph={[2]case}]
    \begin{case}
      \item ...
      \item ...
    \end{case}
  \end{ccnusyntax}
  “情形”列表环境。
\end{function}

上述三个列表环境的参数控制见~\ref{subsubsec:参数-列表环境}



\subsubsection{草稿纸}

\begin{function}[added = 2022-07-03]{\draftpaper}
  \begin{ccnusyntax}[emph={[1]draftpaper}]
    \draftpaper(*\oarg{参数列表}*)
  \end{ccnusyntax}
  草稿纸命令。使用一次产生一页的草稿纸。参数列表见~\ref{subsubsec:参数-草稿纸}
\end{function}


\subsubsection{方格}

在密封线或者 \tn{information} 命令所输出的个人信息中,可能会需要输出方格(如 2021 年数学高考原卷),于是开发了下面的 \tn{examsquare} 命令。

\begin{function}[added = 2022-07-04]{\examsquare}
  \begin{ccnusyntax}[emph={[1]examsquare}]
    \examsquare(*\oarg{参数列表}\marg{方格个数}*)
  \end{ccnusyntax}
  方格命令。参数列表见~\ref{subsubsec:参数-方格}
\end{function}

\subsubsection{评分框}

\begin{function}[added = 2022-07-04]{\scoringbox,\scoringbox*}
  \begin{ccnusyntax}[emph={[1]scoringbox}]
    \scoringbox
    \scoringbox*
  \end{ccnusyntax}
  评分框命令。可单独使用。相关键值见~\ref{subsubsec:参数-评分框}
\end{function}

\begin{latexexample}{评分框示例}
  \scoringbox \quad \scoringbox*
\end{latexexample}


\subsubsection{试卷合集}

\cls{exam-zh} 不仅可以排版单份的试卷,也可以通过 \tn{chapter} 排版多份试卷,构成试卷合集。一般排版多份试卷会用到下面的命令:

\begin{function}{\tableofcontents}
  目录
\end{function}

\begin{function}{\chapter}
  用于排一份的试卷标题。并可以用 \opt{page/show-chapter} 键值控制显示与否。
\end{function}

其余的见~\ref{subsubsec:抬头} 节。


\subsubsection{选择标记题型}

% 本节主要介绍 \file{exam-zh-chinese.sty} 模块中的命令环境的使用。要注意的是,此模块中大部分命令环境设计灵感和原因一般来自于语文学科,但是具体使用起来一般不限制于语文学科。

\begin{function}[added = 2022-07-19,updated = 2022-07-23]{select 环境}
  \begin{ccnusyntax}[emph={[2]select}]
    \begin{select}(*\oarg{键值列表}*)
      \sitem (*\meta{未标记的选项}*)
      \sitem (*\meta{未标记的选项}*)
      \sitem* (*\meta{标记的选项}*)
      ...
    \end{select}
  \end{ccnusyntax}
  选择标记环境。\meta{键值列表} 见~\ref{subsubsec:参数-选择标记题型} 节。
\end{function}

\begin{latexexample}{\env{select} 环境的基本使用}
  折
  \begin{select}
    \sitem \pinyin{zhe2}
    \sitem* \pinyin{she2}
  \end{select}
  本

  \begin{select}
    \sitem* 疏
    \sitem 蔬
    \sitem 输
  \end{select}
  远
\end{latexexample}


\subsubsection{连线题型}

\begin{function}[added = 2022-07-19]{lineto 环境,\linelistset,\lineconnect}
  \begin{ccnusyntax}[emph={[2]lineto,linelistset,lineconnect}]
    \begin{lineto}(*\oarg{键值列表}*)
      \linelistset(*\oarg{键值列表}\marg{list}*)
      \linelistset(*\oarg{键值列表}\marg{list}*)
      ...
      \lineconnect(*\oarg{键值列表}\marg{list}*)
      \lineconnect(*\oarg{键值列表}\marg{list}*)
      ...
    \end{lineto}
  \end{ccnusyntax}
  \env{lineto} 环境为连线环境,一个 \tn{linelistset} 命令设置一组内容,\tn{lineconnect} 连线。(\meta{list} 之间是西文逗号)
  \begin{itemize}
    \item \env{lineto} 环境: \meta{键值列表} 接口为 \env{tikzpicture} 环境的可选参数接口;
    \item \tn{linelistset} 命令: \meta{键值列表} 见~\ref{subsubsec:参数-连线题型} 节;
    \item \tn{lineconnect} 命令: \meta{键值列表} 接口为 \TikZ 的 \tn{draw} 命令的可选参数接口;\meta{list} 的格式为 |<name1>-<item num1>, <name2>-<item num2>, ...|,比如 |i-1, ii-3, iii-2| 等等(|<name>| 的含义见~\ref{subsubsec:参数-连线题型} 的 \opt{linto/name}),连接顺序为(以 |\lineconnect{i-1,ii-2,iii-3,iv-4}|为例):
      \begin{itemize}
        \item |i-1| 项的右侧与 |ii-2| 的左侧相连;
        \item |ii-2| 项的右侧与 |iii-3| 的左侧相连;
        \item |iii-3| 项的右侧与 |iv-4| 的左侧相连。
      \end{itemize}
    若 \tn{lineconnect} 的 \meta{list} 的内容变多也是同理。
  \end{itemize}
\end{function}

示例见~\ref{subsubsec:参数-连线题型}。



\subsubsection{语文-材料文章}


\begin{function}[added = 2022-07-24]{material 环境}
  \begin{ccnusyntax}[emph={[2]material}]
    \begin{material}(*\oarg{键值列表}*)
      <content>
    \end{material}
  \end{ccnusyntax}
  语文的材料/文章环境。\oarg{键值列表} 见~\ref{subsubsec:参数-语文} 节。
\end{function}

\begin{latexexample}{\env{material} 环境示例}
  \begin{material}[title = \LaTeX{} 入门, author = 夏大鱼羊, format = {\sffamily \zihao{-4}},source={(摘自《夏大鱼羊自传》) \\ 2022年}]
    劳仑衣普桑,认至将指点效则机,最你更枝。想板整月正进好志次回总般,段然取向使张规军证回,世市总李率英茄持伴。用阶千样响领交出,器程办管据家元写,名其直金团。
  \end{material}
\end{latexexample}


\subsubsection{语文-古诗}


\begin{function}[added = 2022-07-24,updated = 2022-07-26]{poem 环境}
  \begin{ccnusyntax}[emph={[2]poem}]
    \begin{poem}(*\oarg{键值列表}*)
      <content>
    \end{poem}
  \end{ccnusyntax}
  语文古诗环境。整体居中。\meta{content} 内置于 \env{tabular} 环境,所以建议用 |\\| 分行,且每行距离不能过长。\meta{键值列表} 见~\ref{subsubsec:参数-语文} 节。
\end{function}


\begin{function}[added = 2022-07-24]{\zhu}
  \begin{ccnusyntax}[emph={[2]zhu}]
    \zhu(*\meta{注释}*)
  \end{ccnusyntax}
  语文古诗环境的注释命令,只能在 \env{poem} 环境中使用。
\end{function}

\examsetup{
  poem/format = \itshape
}
\begin{latexexample}{\env{poem} 环境示例}
  \begin{poem}[author = 杨巨源, title = {寄江州白司马\zhu{江州白司马:即白居易。}}]
    江州司马平安否? 惠远东林住得无 \zhu{惠远:东晋高僧,居庐山东林寺。}? \\
    湓浦曾闻似衣带,庐峰见说胜香炉。\\
    题诗岁晏离鸿断,望阙天遥病鹤孤。\\
    莫谩拘牵雨花社\zhu{莫谩:不要。雨花社:指佛教讲经的集会。},青云依旧是前途。
  \end{poem}
\end{latexexample}


\subsubsection{英语-作文框}

\begin{function}[added = 2022-07-26]{writingbox 环境}
  \begin{ccnusyntax}[emph={[2]writingbox}]
    \begin{writingbox}(*\oarg{键值列表}*)
      <content>
    \end{writingbox}
  \end{ccnusyntax}
  英语作文框环境。\meta{键值列表} 接入 \env{tcolorbox} 环境的可选参数。
\end{function}

\begin{latexexample}{\env{writingbox} 环境示例}
  \begin{writingbox}[title = {Youth and me}]
    \vspace*{4em}
  \end{writingbox}
\end{latexexample}

\begin{latexexample}{\env{writingbox} 环境示例}
  \begin{writingbox}
    As the twins looked around them in disappointment, their father appeared. 

    \vspace*{4em}
  
    The twins carried the breakfast upstairs and woke their mother up.
  
    \vspace*{4em}
  \end{writingbox}
\end{latexexample}


\subsubsection{师生两版}   \label{subsubsec:命令环境-师生两版}

\begin{function}[added = 2022-07-21]{\ExamPrintAnswerSet}
  \begin{ccnusyntax}[emph={[1]ExamPrintAnswerSet}]
    \ExamPrintAnswerSet(*\oarg{cmd list}\marg{key-val list}*)
  \end{ccnusyntax}
  设置用户对于师生两版的第二个版本 PDF 的导言区设置(可以自由选择第二个版本的键值设置,自由度高)。其中 \meta{cmd list} 和 \meta{key-val list} 的内容均用西文逗号分隔。\emph{注意第二个版本的设置是本 \file{.tex} 文件的设置基础之后加上 \tn{ExamPrintAnswerSet} 生成的,所以键值的使用要注意。(比如本 \file{.tex} 文件中设置了 \kvopt{fillin/show-answer}{true},如果 \tn{ExamPrintAnswerSet} 不写 \kvopt{fillin/show-answer}{false} 的话,则还是按照 \kvopt{fillin/show-answer}{true} 的设置编译的)}
  \begin{itemize}
    \item \meta{key-val list}:list 的项为 |foo/bar| 形式,为本手册中介绍的键值,会通过 \tn{ExamPrintAnswer} 传递给 \tn{examsetup} 命令;
    \item \meta{cmd list}:list 的项为一般的命令
  \end{itemize}
\end{function}

示例如下:
\begin{latexcode}
  \ExamPrintAnswerSet[
    \geometry{showframe}
  ]{
    page/size=a3paper,
    solution/show-solution=true,
    paren/show-paren=true,
    paren/show-answer=true
  }
\end{latexcode}


\begin{function}[added = 2022-07-21]{\ExamPrintAnswer}
  \begin{ccnusyntax}[emph={[1]ExamPrintAnswer}]
    \ExamPrintAnswer
  \end{ccnusyntax}
  用于“生效” \tn{ExamPrintAnswerSet} 中的设置。可以在导言区使用,但是一般不需要用户单独使用(因为集成在师生两版的代码实现中)。
\end{function}

如何实现师生两版?在使用 \tn{ExamPrintAnswerSet} 设置完后,只需要通过编译方式的不同即可实现:
\begin{itemize}
  \item 正常编译
\begin{shellcode}
  xelatex <jobname>
\end{shellcode}
  \item 师生两版
\begin{shellcode}
  xelatex -shell-escape <jobname>
\end{shellcode}

\end{itemize}

关于师生两版的键值设置见~\ref{subsubsec:参数-师生两版} 节。



\subsection{参数设置}

\begin{function}{\examsetup}
  \begin{ccnusyntax}[morekeywords={\examsetup}]
    \examsetup(*\marg{键值列表}*)
  \end{ccnusyntax}
  本模板提供了一系列选项,可由您自行配置。载入文档类之后,以下所有选项均可通过统一的命令 \cs{examsetup} 来设置。
\end{function}

\cs{examsetup} 的参数是一组由(英文)逗号隔开的选项列表,列表中的
选项通常是 \kvopt{\meta{key}}{\meta{value}} 的形式。部分选项的
\meta{value} 可以省略。对于同一项,后面的设置将会覆盖前面的设置。
在下文的说明中,将用\textbf{粗体}表示默认值。

\cs{examsetup} 采用 \LaTeX3 风格的键值设置,支持不同类型以及多种
层次的选项设定。键值列表中,“|=|”左右的空格不影响设置;但需注意,
参数列表中\emph{不可以出现空行}。

与模板选项相同,布尔型的参数可以省略 \kvopt{\meta{选项}}{true}
中的“\kvopt{}{true}”。

另有一些选项包含子选项,如 \opt{page} 和 \opt{choices} 等。它们可以
按如下两种等价方式来设定:

\begin{latexcode}[morekeywords={\examsetup},
    emph={[1]page,size,choices,column-sep,label-pos,label-sep,max-columns}]
  \examsetup{
    page = {
      size = a3paper
    },
    choices = {
      column-sep  = 1em,
      label-pos   = auto,
      label-sep   = 0.5em,
      max-columns = 4
    }
  }
\end{latexcode}

或者

\begin{latexcode}[morekeywords={\examsetup},
    emph={[1]page,size,choices,column-sep,label-pos,label-sep,max-columns}]
  \examsetup{
    page/size            = a3paper,
    choices/column-sep   = 1em,
    choices/label-pos    = auto,
    choices/label-sep    = 0.5em,
    choices/max-columns  = 4
  }
\end{latexcode}


注意 “|/|” 的前后均不可以出现空白字符。


\subsubsection{风格设置}

\begin{function}[added = 2022-07-20]{style}
  \begin{ccnusyntax}[emph={[1]style}]
    style = (*\marg{键值列表}*)
    style/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含许多子项目,具体内容见下。
\end{function}

\begin{function}[added = 2022-07-20]{style/fullwidth-stop}
  \begin{ccnusyntax}[emph={[1]fullwidth-stop}]
    fullwidth-stop = (*<(catcode)|false>*)
  \end{ccnusyntax}
  是否将 |。| 映射为 |.|。\opt{catcode} 表示映射;\opt{false} 表示不映射。
\end{function}

\begin{function}[added = 2022-07-24]{style/footnote-style}
  % 这里奇怪的东西是用来控制对齐的。ccnusyntax 会吃掉开头的几个空格,因此这里用 X 来占位。
  \begin{ccnusyntax}[emph={[1]footnote-style}]
    footnote-style = (*<plain|\\
      XXXX\mbox{}~~~~~~~~~~~~~~~~~(libertinus)|libertinus*|libertinus-sans|\\
      XXXX\mbox{}~~~~~~~~~~~~~~~~~pifont|pifont*|pifont-sans|pifont-sans*|\\
      XXXX\mbox{}~~~~~~~~~~~~~~~~~xits|xits-sans|xits-sans*>*)
  \end{ccnusyntax}
  设置脚注编号样式。西文字体设置会影响其默认取值。因此,要使得该选项生效,需将其放置在 \opt{font} 选项之后。带有 sans 的为相应的无衬线字体版本。带有 * 的为 阴文样式(即黑底白字)。
\end{function}


\subsubsection{师生两版}   \label{subsubsec:参数-师生两版}

\begin{function}[added = 2022-07-22]{style/student-version-suffix}
  \begin{ccnusyntax}[emph={[1]student-version-suffix}]
    student-version-suffix = (*\meta{suffix}*)
  \end{ccnusyntax}
  师生两版的第二个版本的 PDF 名称的后缀。即第二个 PDF 的名称为 |<jobname><suffix>.pdf|。默认值为 |_student_version|。
\end{function}

\begin{function}[added = 2022-07-22]{style/student-version-cleanaux}
  \begin{ccnusyntax}[emph={[1]student-version-cleanaux}]
    student-version-cleanaux = (*\TTF*)
  \end{ccnusyntax}
  师生两版的编译是否自动清除中途文件。
\end{function}



\subsubsection{中国化数学符号}  \label{subsubsec:参数-中国化数学符号}


\begin{function}{symbols}
  \begin{ccnusyntax}[emph={[1]symbols}]
    symbols = (*\marg{键值列表}*)
    symbols/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含许多子项目,用于设置中国化符号。具体内容见下。
\end{function}

\begin{function}{symbols/paralleleq-type}
  \begin{ccnusyntax}[emph={[1]paralleleq-type}]
    paralleleq-type = (*<(slant)|perpendicular>*)
  \end{ccnusyntax}
  \tn{paralleleq} 命令的效果。\opt{slant} 表示上方的线是倾斜的;\opt{perpendicular} 表示上方的线是垂直的。
\end{function}

\begin{function}[added = 2022-07-17]{symbols/change-frac-style,symbols/change-dfrac-style}
  \begin{ccnusyntax}[emph={[1]change-frac-style,change-dfrac-style}]
    change-frac-style = (*<\TFF>*)
    change-dfrac-style = (*<\TFF>*)
  \end{ccnusyntax}
  是否重定义 \tn{frac} 命令和 \tn{dfrac} 命令。重定义后的 \tn{frac} 或 \tn{dfrac} 的分子分母两边会有额外间距。
\end{function}

\begin{function}[added = 2022-07-17]{symbols/frac-add,symbols/dfrac-add}
  \begin{ccnusyntax}[emph={[1]frac-add,dfrac-add}]
    frac-add = (*\meta{muskip}*)
    dfrac-add = (*\meta{muskip}*)
  \end{ccnusyntax}
  分别为 \kvopt{symbols/change-frac-style}{true} 和 \kvopt{symbols/change-dfrac-style}{true} 时,\tn{frac} 和 \tn{dfrac} 分子分母左右两边增加的额外间距,左右相同,默认为 |5mu|。
\end{function}


\subsubsection{页面设置}

\begin{function}{page}
  \begin{ccnusyntax}[emph={[1]page}]
    page = (*\marg{键值列表}*)
    page/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含许多子项目,用于设置页面设置。具体内容见下。
\end{function}

\begin{function}{page/size}
  \begin{ccnusyntax}[emph={[1]size}]
    size = (*<a3paper|(a4paper)>*)
  \end{ccnusyntax}
  试卷尺寸。\opt{a4paper} 表示一页为 A4 纸大小;\opt{a3paper} 表示一页为 A3 纸大小,内容为连续两页 A4 拼接。此设置只能放在导言区。
\end{function}

\begin{function}[updated = 2022-07-24]{page/foot-type}
  \begin{ccnusyntax}[emph={[1]foot-type}]
    foot-type = (*<common|(separate)>*)
  \end{ccnusyntax}
  \kvopt{page/size}{a3paper} 时页脚的类型。\opt{common} 表示两页 A4 纸(即一页 A3 纸)共用一个页脚;\opt{separate} 表示两页 A4 纸各自有一个页脚。
\end{function}

\begin{function}[added = 2022-07-04]{page/foot-content}
  \begin{ccnusyntax}[emph={[1]foot-content}]
    foot-content = (*\meta{页脚格式}*)
  \end{ccnusyntax}
  页脚内容设置。
  \begin{itemize}
    \item 若\meta{页脚格式} 中不含西文分号 |;|,则页脚内容为 \meta{页脚格式} 直接输出;
    \item 若\meta{页脚格式} 中含一个西文分号 |;|,如 |foo;bar|,则页脚为 |foo<the page>bar|,即西文分号代替了页码的位置;
    \item 若\meta{页脚格式} 中含两个西文分号 |;|,如 |foo;bar;baz|,则页脚为 |foo<the page>bar<total page>baz|,即第一个西文分号代替了页码的位置,第二个代替了总页码。
  \end{itemize}
\end{function}

\begin{function}[added = 2022-07-04]{page/show-columnline}
  \begin{ccnusyntax}[emph={[1]show-columnline}]
    show-columnline = (*\TTF*)
  \end{ccnusyntax}
  \kvopt{page/size}{a3paper} 时是否显示两页 A4 之间的中间竖线。
\end{function}

\begin{function}[added = 2022-07-04]{page/columnline-width}
  \begin{ccnusyntax}[emph={[1]columnline-width}]
    columnline-width = (*\meta{dimension}*)
  \end{ccnusyntax}
  \kvopt{page/show-columnline}{true} 时竖线的宽度。默认为 |0.4pt|。
\end{function}


\begin{function}[added = 2022-07-11]{page/show-chapter}
  \begin{ccnusyntax}[emph={[1]show-chapter}]
    show-chapter = (*\TTF*)
  \end{ccnusyntax}
  是否显示 \tn{chapter} 的内容。\kvopt{show-chapter}{true} 表示 \tn{chapter} 的内容会正常出现以及录入目录并可以通过超链接跳转;\kvopt{show-chapter}{false} 表示 \tn{chapter} 的内容不出现但是会被录入目录并可以通过超链接跳转。
\end{function}


\subsubsection{密封线} \label{subsubsec:参数-密封线}

\begin{function}{sealline}
  \begin{ccnusyntax}[emph={[1]sealline}]
    sealline = (*\marg{键值列表}*)
    sealline/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含许多子项目,用于设置密封线。具体内容见下。
\end{function}


\begin{function}{sealline/show}
  \begin{ccnusyntax}[emph={[1]show}]
    show = (*\TFF*)
  \end{ccnusyntax}
  是否显示密封线。
\end{function}

\begin{function}[updated = 2022-07-26]{sealline/scope,sealline/type}
  \begin{ccnusyntax}[emph={[1]scope,type}]
    scope = (*<firstpage|oddpage|(everypage)|first-and-last|mod-2|mod-3|mod-4|mod-6>*)
    type = (*<firstpage|oddpage|(everypage)|first-and-last|mod-2|mod-3|mod-4|mod-6>*)
  \end{ccnusyntax}
  密封线的作用范围。\opt{scope} 和 \opt{type} 同效。\opt{firstpage} 表示仅在第一页有密封线;\opt{oddpage} 表示仅有奇数页有密封线,在页面左侧;\opt{everypage} 表示每页都有密封线,奇数页密封线在页面左侧,偶数页密封线在页面右侧;\opt{first-and-last} 表示只有第一页和最后一页有;\opt{mod-x} 表示满足 $y \mod x \equiv 1$ 的页数 $y$ 中有密封线。
\end{function}


下面介绍密封线的具体细节参数控制。在此之前,先对参数进行说明,若为:
\begin{latexcode}
  foo      = ...
  odd-foo  = ...
  even-foo = ...
\end{latexcode}

则
\begin{itemize}
  \item \opt{foo} 表示统一控制奇偶页的密封线参数;
  \item \opt{odd-foo} 表示控制奇数页的密封线参数;
  \item \opt{even-foo} 表示控制偶数页的密封线参数。
\end{itemize}

若仅有
\begin{latexcode}
  odd-foo  = ...
\end{latexcode}

则表示该参数仅作用于奇数页的密封线。

关于下面出现的“水平”或“垂直”,不额外说明就默认是正常的参考系,即“左右”为“水平”、“上下”为“垂直”。


\begin{function}{sealline/line-thickness,sealline/odd-line-thickness,sealline/even-line-thickness}
  \begin{ccnusyntax}[emph={[1]line-thickness,odd-line-thickness,even-line-thickness}]
    line-thickness = (*\meta{dimension}*)
    odd-line-thickness = (*\meta{dimension}*)
    even-line-thickness = (*\meta{dimension}*)
  \end{ccnusyntax}
  密封线的线厚度。
\end{function}

\begin{function}{sealline/line-xshift,sealline/odd-line-xshift,sealline/even-line-xshift}
  \begin{ccnusyntax}[emph={[1]line-xshift,odd-line-xshift,even-line-xshift}]
    line-xshift = (*\meta{dimension}*)
    odd-line-xshift = (*\meta{dimension}*)
    even-line-xshift = (*\meta{dimension}*)
  \end{ccnusyntax}
  密封线的水平偏移量。默认为 |8mm|。\meta{dimension} 为正值时,奇数页密封线往左偏移,偶数页密封线往右偏移。
\end{function}

\begin{function}{sealline/line-yshift,sealline/odd-line-yshift,sealline/even-line-yshift}
  \begin{ccnusyntax}[emph={[1]line-yshift,odd-line-yshift,even-line-yshift}]
    line-yshift = (*\meta{dimension}*)
    odd-line-yshift = (*\meta{dimension}*)
    even-line-yshift = (*\meta{dimension}*)
  \end{ccnusyntax}
  密封线的垂直伸缩量。默认为 |0mm|,奇偶页效果相同。\meta{dimension} 为正值时,密封线上下同时“往内缩 \meta{dimension} 长度”。0mm 的效果是密封线长度为版心高度。
\end{function}

\begin{function}{sealline/line-type,sealline/odd-line-type,sealline/even-line-type}
  \begin{ccnusyntax}[emph={[1]line-type,odd-line-type,even-line-type}]
    line-type = (*\meta{dimension}*)
    odd-line-type = (*\meta{dimension}*)
    even-line-type = (*\meta{dimension}*)
  \end{ccnusyntax}
  密封线的类型。参考了 \TikZ 的线类型,主要有以下几种,从名称可以看出几种线的类型和效果,这里就不做解释:
\end{function}
\begin{choices}[label = \circlednumber*]
  \item solid
  \item dotted
  \item densely-dotted
  \item loosely-dotted
  \item dashed
  \item densely-dashed
  \item loosely-dashed
  \item dash-dot
  \item densely-dash-dot
  \item loosely-dash-dot
  \item dash-dot-dot
  \item densely-dash-dot-dot
  \item loosely-dash-dot-dot
\end{choices}


\begin{function}{sealline/text,sealline/odd-text,sealline/even-text}
  \begin{ccnusyntax}[emph={[1]text,odd-text,even-text}]
    text = (*\meta{content}*)
    odd-text = (*\meta{content}*)
    even-text = (*\meta{content}*)
  \end{ccnusyntax}
  沿着密封线的文字,效果为均匀分散,类似于 \tn{makebox} 的 \cmd{s} 选项。默认值为 |密封线内不得答题|。\meta{content} 中不能有命令,字体设置要通过 \opt{sealline/text-format} 设置。
\end{function}

\begin{function}[added = 2022-07-24]{sealline/text-width,sealline/odd-text-width,sealline/even-text-width}
  \begin{ccnusyntax}[emph={[1]text-width,odd-text-width,even-text-width}]
    text-width = (*\meta{dimension}*)
    odd-text-width = (*\meta{dimension}*)
    even-text-width = (*\meta{dimension}*)
  \end{ccnusyntax}
  沿着密封线的文字的宽度(此时以试卷顺时针转 90 度为参考系)。默认值为 |0.8\textheight|。
\end{function}


\begin{function}[added = 2022-07-24]{sealline/text-format,sealline/odd-text-format,sealline/even-text-format}
  \begin{ccnusyntax}[emph={[1]text-format,odd-text-format,even-text-format}]
    text-format = (*\meta{font}*)
    odd-text-format = (*\meta{font}*)
    even-text-format = (*\meta{font}*)
  \end{ccnusyntax}
  沿着密封线的文字的字体设置。可以是 \tn{zihao} 或颜色或字体设置等。默认为 |\zihao{4}\sffamily|。
\end{function}


\begin{function}{sealline/text-xshift,sealline/odd-text-xshift,sealline/even-text-xshift}
  \begin{ccnusyntax}[emph={[1]text-xshift,odd-text-xshift,even-text-xshift}]
    text-xshift = (*\meta{dimension}*)
    odd-text-xshift = (*\meta{dimension}*)
    even-text-xshift = (*\meta{dimension}*)
  \end{ccnusyntax}
  沿着密封线的文字的水平偏移量。默认为 |11mm|。\meta{dimension} 为正值时,奇数页文字往左偏移,偶数页文字往右偏移。
\end{function}


\begin{function}[updated = 2022-07-24]{sealline/text-yshift,sealline/odd-text-yshift,sealline/even-text-yshift}
  \begin{ccnusyntax}[emph={[1]text-yshift,odd-text-yshift,even-text-yshift}]
    text-yshift = (*\meta{dimension}*)
    odd-text-yshift = (*\meta{dimension}*)
    even-text-yshift = (*\meta{dimension}*)
  \end{ccnusyntax}
  沿着密封线的文字的垂直偏移量。默认为 |0pt|。\meta{dimension} 为正时,奇数页的文字往上移动,而偶数页有两种情况:
  \begin{itemize}
    \item \kvopt{sealline/text-direction-vertical}{true} 时,方向和奇数页相同(因为此时文字排版效果奇偶相同);
    \item \kvopt{sealline/text-direction-vertical}{false} 时,方向和奇数页相反(因为此时文字排版效果奇偶相反);
  \end{itemize}
\end{function}


\begin{function}[added = 2022-07-24]{sealline/text-xscale,sealline/odd-text-xscale,sealline/even-text-xscale}
  \begin{ccnusyntax}[emph={[1]text-xscale,odd-text-xscale,even-text-xscale}]
    text-xscale = (*\meta{float point}*)
    odd-text-xscale = (*\meta{float point}*)
    even-text-xscale = (*\meta{float point}*)
  \end{ccnusyntax}
  沿着密封线的文字的水平放缩(以旋转试卷为参考系)。默认为 |1.0|。
\end{function}

\begin{function}[added = 2022-07-24]{sealline/text-yscale,sealline/odd-text-yscale,sealline/even-text-yscale}
  \begin{ccnusyntax}[emph={[1]text-yscale,odd-text-yscale,even-text-yscale}]
    text-yscale = (*\meta{float point}*)
    odd-text-yscale = (*\meta{float point}*)
    even-text-yscale = (*\meta{float point}*)
  \end{ccnusyntax}
  沿着密封线的文字的垂直放缩(以旋转试卷为参考系)。默认为 |0.8|。
\end{function}

\begin{function}[added = 2022-07-24]{sealline/text-direction-vertical,sealline/odd-text-direction-vertical,sealline/even-text-direction-vertical}
  \begin{ccnusyntax}[emph={[1]text-direction-vertical,odd-text-direction-vertical,even-text-direction-vertical}]
    text-direction-vertical = (*\TFF*)
    odd-text-direction-vertical = (*\TFF*)
    even-text-direction-vertical = (*\TFF*)
  \end{ccnusyntax}
  沿着密封线的文字是否垂直从上往下不旋转显示文字内容。\opt{true} 表示奇偶页均为从上往下显示文字,且文字不旋转;\opt{false} 表示奇数页逆时针转 90 度并从下往上(若以旋转试卷为参考,即为从左往右)显示文字内容,偶数页顺时针转 90 度并从上往下显示文字内容。
\end{function}


\begin{function}{sealline/circle-show,sealline/odd-circle-show,sealline/even-circle-show}
  \begin{ccnusyntax}[emph={[1]circle-show,odd-circle-show,even-circle-show}]
    circle-show = (*\TTF*)
    odd-circle-show = (*\TTF*)
    even-circle-show = (*\TTF*)
  \end{ccnusyntax}
  密封线上的圆的显示与否。
\end{function}

\begin{function}{sealline/circle-start,sealline/odd-circle-start,sealline/even-circle-start,sealline/circle-end,sealline/odd-circle-end,sealline/even-circle-end}
  \begin{ccnusyntax}[emph={[1]circle-start,odd-circle-start,even-circle-start,circle-end,odd-circle-end,even-circle-end}]
    circle-start = (*\meta{float point}*)
    odd-circle-start = (*\meta{float point}*)
    even-circle-start = (*\meta{float point}*)
    circle-end = (*\meta{float point}*)
    odd-circle-end = (*\meta{float point}*)
    even-circle-end = (*\meta{float point}*)
  \end{ccnusyntax}
  密封线上的圈的起始点占线总场的比例,\meta{float point} 的范围为 $[0,1]$。分别默认为 |0.07| 和 |0.92| 。\opt{circle-start} 和 \opt{circle-end} 的值分别表示圆圈的起点和终点在线(以页面垂直的北到南方向为正方向)上的比例。
\end{function}

\begin{function}{sealline/circle-step,sealline/odd-circle-step,sealline/even-circle-step}
  \begin{ccnusyntax}[emph={[1]circle-step,odd-circle-step,even-circle-step}]
    circle-step = (*\meta{dimension}*)
    odd-circle-step = (*\meta{dimension}*)
    even-circle-step = (*\meta{dimension}*)
  \end{ccnusyntax}
  密封线上的两个圈之间的距离。默认为 |3.5em|。若倒数第二个圈加上 \opt{circle-step} 的值“超出了密封线的范围”,则最后一个圈并不会显示。
\end{function}

\begin{function}{sealline/circle-diameter,sealline/odd-circle-diameter,sealline/even-circle-diameter}
  \begin{ccnusyntax}[emph={[1]circle-diameter,odd-circle-diameter,even-circle-diameter}]
    circle-diameter = (*\meta{dimension}*)
    odd-circle-diameter = (*\meta{dimension}*)
    even-circle-diameter = (*\meta{dimension}*)
  \end{ccnusyntax}
  密封线上的圆的直径。默认为 |3mm|。
\end{function}


\begin{function}{sealline/circle-xshift,sealline/odd-circle-xshift,sealline/even-circle-xshift}
  \begin{ccnusyntax}[emph={[1]circle-xshift,odd-circle-xshift,even-circle-xshift}]
    circle-xshift = (*\meta{dimension}*)
    odd-circle-xshift = (*\meta{dimension}*)
    even-circle-xshift = (*\meta{dimension}*)
  \end{ccnusyntax}
  密封线上的圆的水平偏移量。默认为 |8mm|。
\end{function}

\begin{function}{sealline/odd-info-content}
  \begin{ccnusyntax}[emph={[1]odd-info-content}]
    odd-info-content = (*\marg{comma list}*)
  \end{ccnusyntax}
  奇数页密封线旁的学生信息。输入内容需要用 |{}| 包起来并用西文逗号隔开。示例(也是默认)如下:
  \begin{latexcode}[gobble=4]
    \examsetup{
      odd-info-content = {
        {\kaishu 姓名}:{\underline{\hspace*{8em}}},
        {\kaishu 准考证号}:{\underline{\hspace*{8em}}},
        {\kaishu 考场号}:{\underline{\hspace*{8em}}},
        {\kaishu 座位号}:{\underline{\hspace*{8em}}}
      }
    }
  \end{latexcode}
  其中需要注意的是:由于接口沿用的是 \TikZ 的 \cmd{decoration} 的 \cmd{text} 接口,所以命令必须要用 |{}| 包起来(具体原因感兴趣的用户可以 \cmd{texdoc tikz} 自行查阅),如所示的 |{\underline{\hspace*{8em}}}|
\end{function}


\begin{function}{sealline/odd-info-separator}
  \begin{ccnusyntax}[emph={[1]odd-info-separator}]
    odd-info-separator = (*\meta{separator}*)
  \end{ccnusyntax}
  奇数页密封线旁的学生信息的分隔符。即上方 \cmd{odd-info-content} 几个内容之间的分隔符,默认为 |\hspace*{3em}|,即用 |3em| 的空白分隔。一般为水平空白。
\end{function}


\begin{function}{sealline/odd-info-align}
  \begin{ccnusyntax}[emph={[1]odd-info-align}]
    odd-info-align = (*<left|(center)|right>*)
  \end{ccnusyntax}
  奇数页密封线旁的学生信息的对齐方式。将试卷顺时针方向旋转 90 度视角后为参考(即此时密封线为水平线)。
\end{function}

\begin{function}{sealline/odd-info-xshift}
  \begin{ccnusyntax}[emph={[1]odd-info-xshift}]
    odd-info-xshift = (*\meta{dimension}*)
  \end{ccnusyntax}
  奇数页密封线旁的学生信息的水平偏移量。默认值为 |20mm|
\end{function}

\begin{function}{sealline/odd-info-yshift}
  \begin{ccnusyntax}[emph={[1]odd-info-yshift}]
    odd-info-yshift = (*\meta{dimension}*)
  \end{ccnusyntax}
  奇数页密封线旁的学生信息的垂直偏移量。默认值为 |0mm|,此时若 \kvopt{odd-info-align}{left} 则 \cmd{odd-info-content} 的左侧与版心底部对齐。
\end{function}



\subsubsection{方格} \label{subsubsec:参数-方格}

\begin{function}{square}
  \begin{ccnusyntax}[emph={[1]square}]
    square = (*\marg{键值列表}*)
    square/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含许多子项目,用于设置方格。具体内容见下。
\end{function}

\begin{function}[added = 2022-07-04,updated = 2022-07-23]{square/x-length}
  \begin{ccnusyntax}[emph={[1]x-length}]
    x-length = (*\meta{dimension}*)
  \end{ccnusyntax}
  \tn{examsquare} 命令单位方形的长。默认为 |1.4em|。
\end{function}

\begin{function}[added = 2022-07-04,updated = 2022-07-23]{square/y-length}
  \begin{ccnusyntax}[emph={[1]y}]
    y-length = (*\meta{dimension}*)
  \end{ccnusyntax}
  \tn{examsquare} 命令单位方形的宽。默认为 |1.2em|。
\end{function}


\begin{function}[added = 2022-07-04,updated = 2022-07-23]{square/baseline}
  \begin{ccnusyntax}[emph={[1]baseline}]
    baseline = (*\meta{dimension}*)
  \end{ccnusyntax}
  \tn{examsquare} 命令的基线偏移。默认为 |3pt|。一般长宽有较大的改动的情况才会改此参数。
\end{function}

\begin{function}[added = 2022-07-04,updated = 2022-07-23]{square/linewidth}
  \begin{ccnusyntax}[emph={[1]linewidth}]
    linewidth = (*\meta{dimension}*)
  \end{ccnusyntax}
  \tn{examsquare} 命令单位方形的线宽。默认为 |0.4pt|。
\end{function}

\begin{function}[added = 2022-07-04,updated = 2022-07-23]{square/xshift}
  \begin{ccnusyntax}[emph={[1]xshift}]
    xshift = (*\meta{dimension}*)
  \end{ccnusyntax}
  \tn{examsquare} 命令必选参数大于 1 时,后面的方格相对于前面的水平偏移。默认和 \opt{linewidth} 的值相同,一般不需要自己修改。
\end{function}


\subsubsection{字体}


\begin{function}{font}
  \begin{ccnusyntax}[emph={[1]font}]
    font = (*(newcm)|lm|times|termes|stix|xits|libertinus|none*)
  \end{ccnusyntax}
  设置西文字体。具体配置见表~\ref{tab:font}。
\end{function}

\begin{function}{math-font}
  \begin{ccnusyntax}[emph={[1]math-font}]
    math-font = (*(newcm)|lm|termes|stix|xits|libertinus|cambria|none*)
  \end{ccnusyntax}
  设置数学字体。具体配置见表~\ref{tab:math-font}。
\end{function}


\begin{table}[htbp]
  \centering
  \begin{threeparttable}
    \caption{西文字体配置}
    \label{tab:font}
    \small
    \begin{tabular}{ccccc}
      \toprule
        & \textbf{正文字体} & \textbf{无衬线字体} & \textbf{等宽字体}\\
      \midrule
      |newcm|      & NewCM10         & NewCMSans10    & NewCMMono10   \\
      |lm|         & lmroman10       & lmsans10       & lmmonolt10    \\
      |times|      & Times New Roman & Arial          & Courier New   \\
      |termes|     & texgyretermes   & texgyreheros   & texgyrecursor \\
      |stix|       & STIXTwoText\tnote{a}     & texgyreheros   & texgyrecursor \\
      |xits|       & XITS\tnote{b}         & texgyreheros   & texgyrecursor \\
      |libertinus| & LibertinusSerif\tnote{c}  & LibertinusSans\tnote{d} & lmmonolt10 \\
      \bottomrule
    \end{tabular}
    \begin{tablenotes}
      \item[a] 或 STIX2Text
      \item[b] 或 xits
      \item[c] 或 libertinusserif
      \item[d] 或 libertinussans
    \end{tablenotes}
  \end{threeparttable}
\end{table}

\begin{table}[htbp]
  \centering
  \begin{threeparttable}
    \caption{数学字体配置}
    \label{tab:math-font}
    \small
    \begin{tabular}{ccccc}
      \toprule
        & \textbf{mathfont} & \textbf{mathrm} & \textbf{mathsf} & \textbf{mathtt} \\
      \midrule
      |newcm|      & NewCMMath-Book        & NewCM10    & NewCMSans10  & NewCMMono10 \\
      |lm|         & latinmodern-math      & lmroman10  & lmsans10     & lmmonolt10    \\
      |stix|       & STIXTwoMath-Regular\tnote{a}  & & & \\
      |xits|       & XITSMath-Regular\tnote{b}       & & & \\
      |libertinus| & LibertinusMath-Regular\tnote{c} & & & \\
      |cambria|    & Cambria Math                & & & \\
      \bottomrule
    \end{tabular}
    \begin{tablenotes}
      \item[a] 或 STIX2Math
      \item[b] 或 xits-math
      \item[c] 或 libertinusmath-regular
    \end{tablenotes}
  \end{threeparttable}
\end{table}


\subsubsection{抬头} \label{subsubsec:参数-抬头}

\begin{function}{title}
  \begin{ccnusyntax}[emph={[1]title}]
    title = (*\marg{键值列表}*)
    title/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含许多子项目,用于设置抬头。具体内容见下。
\end{function}

\begin{function}[added = 2022-07-03]{title/title-format}
  \begin{ccnusyntax}[emph={[1]title-format}]
    title-format = (*\meta{格式命令}*)
  \end{ccnusyntax}
  \tn{title} 的格式命令。默认为 |\Large|。
\end{function}

\begin{function}[added = 2022-07-03]{title/subject-format}
  \begin{ccnusyntax}[emph={[1]subject-format}]
    subject-format = (*\meta{格式命令}*)
  \end{ccnusyntax}
  \tn{subject} 的格式命令。默认为 |\sffamily \bfseries \huge|。
\end{function}

\begin{function}[added = 2022-07-03]{title/top-sep}
  \begin{ccnusyntax}[emph={[1]top-sep}]
    top-sep = (*\meta{弹性长度}*)
  \end{ccnusyntax}
  \tn{title} 和 \tn{subject} 的整体上方间距。默认为 |-.5em plus 0.3em minus 0.2em|。
\end{function}

\begin{function}[added = 2022-07-03]{title/bottom-sep}
  \begin{ccnusyntax}[emph={[1]bottom-sep}]
    bottom-sep = (*\meta{弹性长度}*)
  \end{ccnusyntax}
  \tn{title} 和 \tn{subject} 的整体下方间距。默认为 |0em plus 0.3em minus 0.2em|。
\end{function}


\subsubsection{题干} \label{subsubsec:参数-题干}

\begin{function}{question}
  \begin{ccnusyntax}[emph={[1]question}]
    question = (*\marg{键值列表}*)
    question/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含许多子项目,用于设置题干。具体内容见下。
\end{function}


\begin{function}[updated = 2022-07-05]{question/show-answer}
  \begin{ccnusyntax}[emph={[1]show-answer}]
    show-answer = (*\TFF*)
  \end{ccnusyntax}
  统一控制 \tn{paren} 和 \tn{fillin} 中答案的显示与否。
\end{function}


\begin{function}{question/points}
  \begin{ccnusyntax}[emph={[1]points}]
    points = (*\meta{color}*)
  \end{ccnusyntax}
  \env{question} 和 \env{problem} 环境中的分数。出现在题号后,如果不满足格式或位置的,可以自己手动输入 |(xx 分)|。
\end{function}


\env{question} 和 \env{problem} 环境的参数大部分通过 \tn{examsetup} 和本节的参数控制,但也有一般在 \env{question} 和 \env{problem} 环境的 \oarg{键值列表} 中使用的,比如 \cmd{points}。(很容易理解,每道题的分值很有可能不尽相同,所以一般都是采用“个性化”,而不是 \tn{examsetup} 的“全局化”。除非是选择题和填空题这种一般每道题分数一样的)

\begin{function}{question/show-points}
  \begin{ccnusyntax}[emph={[1]show-points}]
    show-points = (*true|(auto)|false*)
  \end{ccnusyntax}
  控制 \env{question} 和 \env{problem} 环境中的分数的显示与否。\opt{auto} 表示 \env{question} 环境的分数不显示(比如选择、填空题,因为每道题一般分数相同),而 \env{problem} 环境的分数显示(比如解答题,每道题一般分数不同);\opt{true} 和 \opt{false} 分别表示 \env{question} 和 \env{problem} 环境中的分数全都显示和全都不显示。
\end{function}

\begin{function}{question/points-separate-par}
  \begin{ccnusyntax}[emph={[1]points-separate-par}]
    points-separate-par = (*\TFF*)
  \end{ccnusyntax}
  \env{question} 和 \env{problem} 环境中的分数是否单独成段。\env{question} 环境默认为 \opt{false},\env{problem} 环境默认为 \opt{true}。
\end{function}


\begin{function}{question/top-sep,question/bottom-sep}
  \begin{ccnusyntax}[emph={[1]top-sep,bottom-sep}]
    top-sep = (*\meta{skip}*)
    bottom-sep = (*\meta{skip}*)
  \end{ccnusyntax}
  \env{question} 和 \env{problem} 环境的上下方的弹性间距。\opt{top-sep} 默认为 |.25em plus .25em minus .1em|;\opt{bottom-sep} 默认为 |0pt|。
\end{function}


\begin{function}{question/index}
  \begin{ccnusyntax}[emph={[1]index}]
    index = (*\meta{integer}*)
  \end{ccnusyntax}
  手动设置 \env{question} 和 \env{problem} 环境的计数器值。一般用于两个环境的 \meta{键值列表} 中。
\end{function}


\begin{function}[added = 2022-07-20]{question/label}
  \begin{ccnusyntax}[emph={[1]label}]
    label = (*\meta{label}*)
  \end{ccnusyntax}
  \env{question} 和 \env{problem} 环境的标签的格式。默认值为 |\arabic*.|。\meta{label} 中可以使用的已定义的计数器样式主要有以下几种:
\end{function}

\begin{choices}[label = \circlednumber*]
  \item arabic(阿拉伯数字)
  \item alph(小写英文)
  \item Alph(大写英文)
  \item roman(小写罗马数字)
  \item Roman(大写罗马数字)
  \item circlednumber(基于字体的带圈数字)
  \item tikzcirclednumber(\TikZ 绘制的带圈数字)
\end{choices}


还可以使用~\ref{subsubsec:命令环境-题干} 节的 \tn{AddQuestionCounter} 命令自定义计数器样式,使用方式和~\ref{subsubsec:命令环境-选择题} 节的 \tn{AddChoicesCounter} 命令一样。

\begin{function}[added = 2022-07-26]{question/combine-fillin}
  \begin{ccnusyntax}[emph={[1]combine-fillin}]
    combine-fillin = (*\TFF*)
  \end{ccnusyntax}
  是否将 \tn{fillin} 命令接入 \env{question} 环境。\opt{true} 表示 \tn{fillin} 会在 \env{question} 环境左侧。\kvopt{combine-fillin}{true} 下 \env{question} 和 \env{problem} 环境的缩进效果相同。
\end{function}

\begin{function}[added = 2022-07-26]{question/combine-fillin-args}
  \begin{ccnusyntax}[emph={[1]combine-fillin-args}]
    combine-fillin-args = (*\meta{\tn{fillin} 命令的参数}*)
  \end{ccnusyntax}
  \kvopt{combine-fillin}{true} 下 \tn{fillin} 接收的参数,和正常使用 \tn{fillin} 命令接收的参数相同。在此之前的 \opt{fillin/foo} 的相关键值会正常作用于接入 \env{question} 环境的 \tn{fillin}。
\end{function}

\examsetup{question/index=1}
\begin{latexexample}{\opt{combine-fillin} 和 \opt{combine-fillin-args} 的使用示例}
  \examsetup{
    fillin/show-answer = true,
    question/combine-fillin = true,
  }
  \begin{question}[combine-fillin-args = {[type = paren][A]}]
    设集合 $A = \{x \mid -1 < x < 4\}$,$B = \{2, 3, 4, 5\}$,则 $A \cap B = $
  \end{question}
\end{latexexample}
\examsetup{
  fillin/show-answer = false,
  question/combine-fillin = false,
}


\subsubsection{选择题} \label{subsubsec:参数-选择题}

\begin{function}{choices}
  \begin{ccnusyntax}[emph={[1]choices}]
    choices = (*\marg{键值列表}*)
    choices/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含许多子项目,用于设置 \env{choices} 环境。具体内容见下,可以通过 \tn{examsetup} 进行统一处理,也可以用于 \env{choices} 环境的 \meta{键值列表} 针对某一 \env{choices} 环境调整。
\end{function}

\begin{function}{choices/index}
  \begin{ccnusyntax}[emph={[1]index}]
    index = (*\meta{integer}*)
  \end{ccnusyntax}
  选项第一项 label 的计数器的起始值。
\end{function}
\begin{latexexample}{\opt{choices/index} 示例}
  \begin{choices}
    \item 1
    \item 2
    \item 3
  \end{choices}

  \begin{choices}[index = 2]
    \item 1
    \item 2
    \item 3
  \end{choices}
\end{latexexample}


\begin{function}{choices/column-sep}
  \begin{ccnusyntax}[emph={[1]column-sep}]
    column-sep = (*\meta{dimension}*)
  \end{ccnusyntax}
  选项列之间的最小间隔。默认为 |1em|。
\end{function}


\begin{function}{choices/columns}
  \begin{ccnusyntax}[emph={[1]columns}]
    columns = (*\meta{integer}*)
  \end{ccnusyntax}
  强制按照该列数排版选项,如果为 0 则自动选择合适的列数。
  % 手动设置 \env{choices} 环境排出的选项的列数,否则会根据选项内容自动计算。一般用于 \env{choices} 环境的 \meta{参数列表}。
\end{function}


\begin{function}{choices/label}
  \begin{ccnusyntax}[emph={[1]label}]
    label = (*\meta{label}*)
  \end{ccnusyntax}
  标签的格式。默认值 |\Alph*.|。\meta{label} 中可以使用的已定义的计数器样式主要有以下几种:
\end{function}

\begin{choices}[label = \circlednumber*]
  \item arabic(阿拉伯数字)
  \item alph(小写英文)
  \item Alph(大写英文)
  \item roman(小写罗马数字)
  \item Roman(大写罗马数字)
  \item circlednumber(带圈数字)
\end{choices}

还可以使用~\ref{subsubsec:命令环境-选择题} 节的 \tn{AddChoicesCounter} 命令自定义计数器样式。

使用方式为(以 \opt{arabic} 为例):\kvopt{label}{<pre>\textbackslash arabic*<post>}(类似 \pkg{enumitem} 宏包),其中 \meta{pre} 和 \meta{post} 表示计数器前后的内容,举例:
\begin{latexexample}{\env{choices} 环境 label 的使用示例}
  \begin{choices}
    \item 第一项
    \item 第二项
    \item 第三项
    \item 第四项
  \end{choices}

  \begin{choices}[label = \arabic*)]
    \item 第一项
    \item 第二项
    \item 第三项
    \item 第四项
  \end{choices}
\end{latexexample}

如果想要隐藏或去掉 label 的话,可以使用 |label = {}|,但一般这个需求可能使用表格或其它方法会更好。

如果是问卷,那么可能会有 label 是正方形或圆形的需求:
\begin{latexexample}{label 为正方形}
  \begin{choices}[label = $\square$]
    \item 第一项
    \item 第二项
    \item 第三项
    \item 第四项
  \end{choices}
\end{latexexample}

\begin{latexexample}{label 为圆形}
  \begin{choices}[label = \textbigcircle]
    \item 第一项
    \item 第二项
    \item 第三项
    \item 第四项
  \end{choices}
\end{latexexample}


\begin{function}{choices/label-pos}
  \begin{ccnusyntax}[emph={[1]label-pos}]
    label-pos = (*<(auto)|top-left|left|bottom>*)
  \end{ccnusyntax}
  标签相对于选项内容的位置。\opt{auto} 会根据内容高度来判断,当高度到达一定程度时会判断为插图,并将 label 放置于 内容 的 \opt{bottom} 位置;\opt{top-left} 表示在内容左侧并置于顶部;\opt{top-left} 表示在内容左侧并置于中间;\opt{top-left} 表示在内容底部;
\end{function}


\begin{function}{choices/label-align}
  \begin{ccnusyntax}[emph={[1]label-align}]
    label-align = (*left|center|(right)*)
  \end{ccnusyntax}
  标签内部的对齐方式。
\end{function}

\begin{latexexample}{\opt{label-align} 的效果示例}
  \begin{choices}[index = 8, label = \arabic*.]
    \item 1
    \item 2
    \item 3
    \item 4
  \end{choices}
  \begin{choices}[index = 8, label = \arabic*., label-align = left]
    \item 1
    \item 2
    \item 3
    \item 4
  \end{choices}
  \begin{choices}[index = 8, label = \arabic*., label-align = center]
    \item 1
    \item 2
    \item 3
    \item 4
  \end{choices}
\end{latexexample}


\begin{function}{choices/label-sep}
  \begin{ccnusyntax}[emph={[1]label-sep}]
    label-sep = (*\meta{dimension}*)
  \end{ccnusyntax}
  标签与选项之间的距离。默认为 |0.5em|。
\end{function}

\begin{function}{choices/label-width}
  \begin{ccnusyntax}[emph={[1]label-width}]
    label-width = (*\meta{dimension}*)
  \end{ccnusyntax}
  标签的宽度。如果宽度不足会自动调整为最长标签的宽度。默认 |0pt|
\end{function}

\begin{function}{choices/max-columns}
  \begin{ccnusyntax}[emph={[1]max-columns}]
    max-columns = (*\meta{integer}*)
  \end{ccnusyntax}
  选项的最大列数。排版选项时会优先尝试该列数,如果无法排下内容,依次将列数除以 2 并取整再进行尝试,直到可以排下全部选项。默认为 |4| 。
\end{function}



\begin{function}{paren}
  \begin{ccnusyntax}[emph={[1]paren}]
    paren = (*\marg{键值列表}*)
    paren/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含一个子项目,用于设置 \tn{paren} 命令。具体内容见下。
\end{function}

\begin{function}[added = 2022-07-05]{paren/show-answer}
  \begin{ccnusyntax}[emph={[1]show-answer}]
    show-answer = (*\TFF*)
  \end{ccnusyntax}
  控制 \tn{paren} 答案的显示与否。注意和 \opt{question/show-answer} 的先后顺序可能会影响结果。
\end{function}

\begin{function}[added = 2022-07-15]{paren/show-paren}
  \begin{ccnusyntax}[emph={[1]show-paren}]
    show-paren = (*\TFF*)
  \end{ccnusyntax}
  是否显示 \tn{paren} 命令的括号。
\end{function}

\begin{function}[added = 2022-07-15]{paren/text-color}
  \begin{ccnusyntax}[emph={[1]text-color}]
    text-color = (*\meta{color}*)
  \end{ccnusyntax}
  设置 \tn{paren} 中答案的颜色。
\end{function}

\begin{function}[added = 2022-07-15]{paren/type}
  \begin{ccnusyntax}[emph={[1]text-color}]
    type = (*<(hfill)|none>*)
  \end{ccnusyntax}
  \tn{paren} 产生的括号是否自动排到行尾。\opt{hfill} 表示自动根据行的长度排到行尾;\opt{none} 表示括号紧跟前面内容。
\end{function}

\examsetup{
  question/index=0
}

\begin{latexexample}{\opt{paren/type} 效果展示}
  \examsetup{
    paren = {
      show-paren = true
    }
  }
  \begin{question}
    一共有 \paren 个苹果?
    \begin{choices}
      \item 1
      \item 2
      \item 3
      \item 4
    \end{choices}
  \end{question}

  \examsetup{
    paren = {
      type = none
    }
  }

  \begin{question}
    一共有 \paren 个苹果?
    \begin{choices}
      \item 1
      \item 2
      \item 3
      \item 4
    \end{choices}
  \end{question}
\end{latexexample}

(注:上面的例子中|)| 和 |个| 之间间距不正常是本手册的一个小 bug,\cls{exam-zh} 中使用是正常的)


\begin{function}[added = 2022-07-26]{question/label-align}
  \begin{ccnusyntax}[emph={[1]label-align}]
    label-align = (*left|center|(right)*)
  \end{ccnusyntax}
  \env{question} 标签的对齐方式。
\end{function}


\subsubsection{填空题} \label{subsubsec:参数-填空题}


\begin{function}{fillin}
  \begin{ccnusyntax}[emph={[1]fillin}]
    fillin = (*\marg{键值列表}*)
    fillin/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项暂时包含一个子项目,用于设置填空命令 \tn{fillin} 的类型。具体内容见下。
\end{function}

\begin{function}[updated = 2022-07-15]{fillin/type}
  \begin{ccnusyntax}[emph={[1]type}]
    type = (*<(line)|paren|circle|rectangle|blank>*)
  \end{ccnusyntax}
  填空命令 \tn{fillin} 的类型。\opt{line} 表示下划线;\opt{paren} 表示括号;\opt{rectangle} 表示外包一个矩形;\opt{circle} 表示外包一个圆,当内容变多时,圆会“拉伸开变成椭圆”;\opt{blank} 表示没有任何的“装饰”。
\begin{latexexample}{\tn{fillin} 的三个类型以及参数使用方式}
  答案是 \fillin \fillin[]
  \fillin[type = paren][]
  \fillin[type = circle][]
  \fillin[type = blank][]
\end{latexexample}
\end{function}


\begin{function}[added = 2022-07-21]{fillin/no-answer-type}
  \begin{ccnusyntax}[emph={[1]no-answer-type}]
    no-answer-type = (*<(blacktriangle)|counter|none>*)
  \end{ccnusyntax}
  填空命令 \tn{fillin} 在 \kvopt{show-answer}{false} 的情况下的显示情况:
  \begin{itemize}
    \item \opt{blacktriangle}:内容部分变成黑色三角形(即使已经输入了答案 |\fillin[foo]|)
    \item \opt{counter}:内容部分变成计数器(每使用一次显示内容的数值加一),设计来源于英语学科的完形填空
    \item \opt{none}:除了 \tn{fillin} 的 \opt{type} 相关的显示(比如下划线,括号)和一定的间距外不显示其它
  \end{itemize}
\end{function}

\begin{function}[added = 2022-07-21]{fillin/no-answer-counter-index}
  \begin{ccnusyntax}[emph={[1]no-answer-counter-index}]
    no-answer-counter-index = (*\meta{integer}*)
  \end{ccnusyntax}
  填空命令 \tn{fillin} 在 \kvopt{show-answer}{false} 和 \kvopt{no-answer-type}{counter} 下的计数器的非负整数值。默认为 |1|
\end{function}

\begin{function}[added = 2022-07-21]{fillin/no-answer-counter-label}
  \begin{ccnusyntax}[emph={[1]no-answer-counter-label}]
    no-answer-counter-label = (*\meta{label}*)
  \end{ccnusyntax}
  填空命令 \tn{fillin} 在 \kvopt{show-answer}{false} 和 \kvopt{no-answer-type}{counter} 下的计数器的样式。默认为 |\arabic*|。\meta{label} 中可以使用的已定义的计数器样式主要有以下几种:
\end{function}

\begin{choices}[label = \circlednumber*]
  \item arabic(阿拉伯数字)
  \item alph(小写英文)
  \item Alph(大写英文)
  \item roman(小写罗马数字)
  \item Roman(大写罗马数字)
  \item circlednumber(基于字体的带圈数字)
  \item tikzcirclednumber(\TikZ 绘制的带圈数字)
\end{choices}



\begin{function}[added = 2022-07-05]{fillin/show-answer}
  \begin{ccnusyntax}[emph={[1]show-answer}]
    show-answer = (*\TFF*)
  \end{ccnusyntax}
  控制 \tn{fillin} 答案的显示与否。注意和 \opt{question/show-answer} 的先后顺序可能会影响结果。
\end{function}

\begin{function}[added = 2022-07-06]{fillin/width}
  \begin{ccnusyntax}[emph={[1]width}]
    width = (*<dimension>*)
  \end{ccnusyntax}
  控制 \kvopt{fillin/type}{line/paren/blank} 下 \tn{fillin} 不显示答案时的长度,默认为 |3em|。
\end{function}

\begin{function}[added = 2022-07-30]{fillin/width-type}
  \begin{ccnusyntax}[emph={[1]width-type}]
    width-type = (*<(fill)|normal>*)
  \end{ccnusyntax}
  \kvopt{show-answer}{false} 且 \kvopt{no-answer-type}{none} 时 \opt{fillin/width} 设置时若 \meta{width} 的长度超过了当前行的剩余长度,则多余部分在下一行的表现。\opt{fill} 表示多余部分只要不超过 \tn{linewidth} 就自动 fill 为 \tn{linewidth} 的长度(此时建议 \opt{width} 的值不是 \tn{linewidth} 的整数倍,而是(以最终一共两行为例)比如 |1.5\linewidth|);\opt{normal} 表示多余部分严格按照 \meta{width} 的值排版。由于使用了 \pkg{linegoal},需要编译至少两次才能获得正确的效果。
  % \emph{注意:由于 \kvopt{no-answer-type}{none} 下的算法是基于 \pkg{linegoal} 获取当前行的剩余距离,如果此时同一行出现了两个 \tn{fillin} 就会互相干扰,导致编译异常。所以 \kvopt{no-answer-type}{none} 下尽可能避免同一行出现两个 \tn{fillin} 命令}
\end{function}

\begin{latexexample}{\opt{width-type} 示例}
  \examsetup{fillin/no-answer-type=none}
  测试 测试测试,测试 \fillin[width = 3em][答案]

  测试 测试测试,测试 \fillin[width = 0.5\linewidth][答案]

  测试
  \fillin[width = 1.1\linewidth][答案] 测试

  测试
  \fillin[width-type = normal, width = 1.1\linewidth][答案] 测试
\end{latexexample}

\begin{function}[added = 2022-07-15]{fillin/color}
  \begin{ccnusyntax}[emph={[1]color}]
    color = (*\meta{color}*)
  \end{ccnusyntax}
  设置 \kvopt{fillin/type}{circle/rectangle} 类型的 \tn{fillin} 的边框颜色。
\end{function}


\begin{function}[added = 2022-07-15]{fillin/text-color}
  \begin{ccnusyntax}[emph={[1]text-color}]
    text-color = (*\meta{color}*)
  \end{ccnusyntax}
  设置 \tn{fillin} 中答案的颜色。
\end{function}


\begin{function}[added = 2022-07-30]{fillin/paren-type}
  \begin{ccnusyntax}[emph={[1]paren-type}]
    paren-type = (*<(banjiao)|quanjiao>*)
  \end{ccnusyntax}
  设置 \tn{fillin} 中 \kvopt{type}{paren} 时的括号类型。\opt{banjiao} 表示半角括号;\opt{quanjiao} 表示全角括号。
\end{function}


\subsubsection{解答题} \label{subsubsec:参数-解答题}

\begin{function}[added = 2022-07-01]{solution}
  \begin{ccnusyntax}[emph={[1]solution}]
    solution = (*\marg{键值列表}*)
    solution/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含许多子项目,用于设置 \env{solution} 环境。具体内容见下,只能通过 \tn{examsetup} 进行处理。
\end{function}


\begin{function}[added = 2022-07-01]{solution/show-solution}
  \begin{ccnusyntax}[emph={[1]show-solution}]
    show-solution = (*\TTF*)
  \end{ccnusyntax}
  是否显示解答环境 \env{solution} 的内容。
\end{function}

\begin{function}[added = 2022-07-20]{solution/parbreak}
  \begin{ccnusyntax}[emph={[1]parbreak}]
    parbreak = (*\TFF*)
  \end{ccnusyntax}
  \env{solution} 环境的内容是否在 |label| (默认为 |解答|)后新起一段开始。
\end{function}

\begin{function}[added = 2022-07-01]{solution/show-qed}
  \begin{ccnusyntax}[emph={[1]show-qed}]
    show-qed = (*\TTF*)
  \end{ccnusyntax}
  是否显示 \env{solution} 环境结束的结束符号。
\end{function}

\begin{function}[added = 2022-07-02]{solution/qedsymbol}
  \begin{ccnusyntax}[emph={[1]qedsymbol}]
    qedsymbol = (*\meta{symbol}*)
  \end{ccnusyntax}
  \env{solution} 环境结束的结束符号。默认为 |$\square$|。可以为文字等。
\end{function}

\begin{latexexample}{\opt{qedsymbol} 示例}
  \begin{solution}
    测试
  \end{solution}
  \examsetup{
    solution = {
      qedsymbol = \#
    }
  }
  \begin{solution}
    测试
  \end{solution}
\end{latexexample}

\begin{function}[added = 2022-07-01,updated = 2022-07-02]{solution/label-content}
  \begin{ccnusyntax}[emph={[1]label-content}]
    label-content = (*\meta{content}*)
  \end{ccnusyntax}
  \env{solution} 环境开头的标签内容。默认为 |解答|。若用于 \tn{examsetup} 则作用于之后的所有 \env{solution} 环境。
\end{function}

\begin{function}[added = 2022-07-01,updated = 2022-07-02]{solution/label-punct}
  \begin{ccnusyntax}[emph={[1]label-punct}]
    label-punct = (*\meta{punct}*)
  \end{ccnusyntax}
  \env{solution} 环境开头的标签内容后的标点。默认为空。若用于 \tn{examsetup} 则作用于之后的所有 \env{solution} 环境。
\end{function}

\begin{function}[added = 2022-07-02]{solution/score-pre-content}
  \begin{ccnusyntax}[emph={[1]score-pre-content}]
    score-pre-content = (*\meta{content}*)
  \end{ccnusyntax}
  \tn{score} 命令的前置内容。默认为空。
\end{function}

\begin{function}[added = 2022-07-02]{solution/score-post-content}
  \begin{ccnusyntax}[emph={[1]score-post-content}]
    score-post-content = (*\meta{content}*)
  \end{ccnusyntax}
  \tn{score} 命令的后置内容。默认为 |分|。
\end{function}

\begin{latexexample}{\opt{score-pre-content} 和 \opt{score-post-content} 示例}
  \examsetup{
    solution = {
      score-pre-content = 这个点可以有,
      score-post-content = 分的分数
    }
  }
  \begin{solution}
    函数的定义域为 $(0, +\infty)$,
    又 \[f^{\prime}(x) = 1 - \ln x-1 = -\ln x, \score{2}\]
    当 $x \in(0, 1)$ 时, $f^{\prime}(x) > 0$, 当 $x \in(1, +\infty)$ 时, $f^{\prime}(x) < 0$,
    故 $f(x)$ 的递增区间为 $(0,1)$, 递减区间为 $(1, +\infty)$.
  \end{solution}
\end{latexexample}

将 \opt{score-pre-content} 和 \opt{score-post-content} 设置为空就可以产生批注效果:
\begin{latexexample}{\opt{score-pre-content} 和 \opt{score-post-content} 为空产生批注效果}
  \examsetup{
    solution = {score-pre-content = {}, score-post-content = {}}
  }
  \begin{solution}
    函数的定义域为 $(0, +\infty)$,
    又 \[f^{\prime}(x) = 1 - \ln x-1 = -\ln x, \score{这是关键点}\]
    当 $x \in(0, 1)$ 时, $f^{\prime}(x) > 0$, 当 $x \in(1, +\infty)$ 时, $f^{\prime}(x) < 0$,
    故 $f(x)$ 的递增区间为 $(0,1)$, 递减区间为 $(1, +\infty)$.
  \end{solution}
\end{latexexample}

\begin{function}[added = 2022-07-02, updated = 2022-07-03]{solution/score-format}
  \begin{ccnusyntax}[emph={[1]score-format}]
    score-format = (*\meta{风格设置}*)
  \end{ccnusyntax}
  \tn{score} 命令的内容的风格设置,可以是颜色或字体字号命令等。默认为 |\color{red}|。
\end{function}

\examsetup{
  solution = {
    score-pre-content = {},
    score-post-content = 分
  }
}
\begin{latexexample}{\opt{score-format} 示例}
  \examsetup{
    solution = {
      score-format = {\sffamily \huge \color{blue}}
    }
  }
  \begin{solution}
    测试 \score{2}
  \end{solution}
\end{latexexample}

\begin{function}[added = 2022-07-02]{solution/score-showleader}
  \begin{ccnusyntax}[emph={[1]score-showleader}]
    score-showleader = (*\TTF*)
  \end{ccnusyntax}
  \tn{score} 命令的引导线显示与否。
\end{function}

\begin{function}[added = 2022-07-15]{solution/text-color}
  \begin{ccnusyntax}[emph={[1]text-color}]
    text-color = (*\meta{color}*)
  \end{ccnusyntax}
  \env{solution} 环境内容的颜色。默认为 |black|。
\end{function}

\begin{function}[added = 2022-07-19]{solution/top-sep}
  \begin{ccnusyntax}[emph={[1]top-sep}]
    top-sep = (*\meta{dimension}*)
  \end{ccnusyntax}
  \env{solution} 环境上方间距。默认为 |.5em plus .5em minus .2em|。
\end{function}

\begin{function}[added = 2022-07-19]{solution/bottom-sep}
  \begin{ccnusyntax}[emph={[1]bottom-sep}]
    bottom-sep = (*\meta{dimension}*)
  \end{ccnusyntax}
  \env{solution} 环境下方间距。默认为 |.5em plus .5em minus .2em|。
\end{function}

\begin{function}[added = 2022-07-19]{solution/blank-type}
  \begin{ccnusyntax}[emph={[1]blank-type}]
    blank-type = (*<(none)|manual|hide>*)
  \end{ccnusyntax}
  \kvopt{solution/show-solution}{false} 的时候是否增加一段垂直空白。比如可以留白给学生答题。
  \begin{itemize}
    \item \opt{none}: 不增加;
    \item \opt{manual}: 增加,增加的高度由 \opt{solution/blank-vsep} 控制;
    \item \opt{hide}: 增加,增加的高度和 \env{solution} 的内容几乎相同(因为使用了 \env{tcolorbox} 环境达到 \opt{hide} 效果,环境前后间距会造成干扰,但可忽略);
  \end{itemize}
\end{function}

\begin{function}[added = 2022-07-19]{solution/blank-vsep}
  \begin{ccnusyntax}[emph={[1]blank-vsep}]
    blank-vsep = (*\meta{skip}*)
  \end{ccnusyntax}
  \kvopt{solution/blank-type}{manual} 的时候增加的垂直空白长度,可以是弹性长度。默认为 |12ex plus 1ex minus 1ex|。
\end{function}


\subsubsection{几个列表环境} \label{subsubsec:参数-列表环境}

\begin{function}[added = 2022-07-04]{list}
  \begin{ccnusyntax}[emph={[1]list}]
    list = (*\marg{键值列表}*)
    list/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含许多子项目。用于设置 \env{step}、\env{method}、\env{case} 环境。仅通过 \tn{examsetup} 进行统一处理。具体内容见下。
\end{function}

\begin{function}[added = 2022-07-04]{list/step-name,list/method-name,list/case-name}
  \begin{ccnusyntax}[emph={[1]step-name,method-name,case-name}]
    step-name   = (*\meta{step 环境 label 名}*)
    method-name = (*\meta{method 环境 label 名}*)
    case-name   = (*\meta{case 环境 label 名}*)
  \end{ccnusyntax}
  分别设置 \env{step}、\env{method}、\env{case} 环境的 label 名,分别默认为 |步骤|、|方法|、|情形|。
\end{function}

\begin{function}[added = 2022-07-04]{list/step-punct,list/method-punct,list/case-punct}
  \begin{ccnusyntax}[emph={[1]step-punct,method-punct,case-punct}]
    step-punct   = (*\meta{step 环境 label 后的标点}*)
    method-punct = (*\meta{method 环境 label 后的标点}*)
    case-punct   = (*\meta{case 环境 label 后的标点}*)
  \end{ccnusyntax}
  分别设置 \env{step}、\env{method}、\env{case} 环境的 label 后的标点,分别默认为 |.|、|{}|(无标点)、|.|。
\end{function}



\subsubsection{草稿纸} \label{subsubsec:参数-草稿纸}

\begin{function}[added = 2022-07-03]{draft}
  \begin{ccnusyntax}[emph={[1]draft}]
    draft = (*\marg{键值列表}*)
    draft/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含许多子项目。用于设置 \tn{draftpaper} 命令。下面所述的键值,如果不额外说明,则表示可以通过 \tn{examsetup} 进行统一处理,也可以用 于 \tn{draftpaper} 命令的 \meta{键值列表} 针对某一 \tn{draftpaper} 命令调整。具体内容见下。
\end{function}


\begin{function}[added = 2022-07-03]{draft/watermark-size}
  \begin{ccnusyntax}[emph={[1]watermark-size}]
    watermark-size = (*\meta{dimension}*)
  \end{ccnusyntax}
  \tn{draftpaper} 命令的“草稿纸”水印的尺寸。A4 尺寸下默认为 |100pt|,A3 尺寸下默认为 |180pt|。
\end{function}

\begin{function}[added = 2022-07-03]{draft/show-watermark}
  \begin{ccnusyntax}[emph={[1]show-watermark}]
    show-watermark = (*\TTF*)
  \end{ccnusyntax}
  是否显示\tn{draftpaper} 命令的“草稿纸”水印。若为 \opt{true},最多需要编译两次即可得到水印。
\end{function}


\begin{function}[added = 2022-07-03]{draft/show-draft}
  \begin{ccnusyntax}[emph={[1]show-draft}]
    show-draft = (*<auto|(manual)>*)
  \end{ccnusyntax}
  是否在文档最后自动添加两页的草稿纸。此键值只用于导言区的 \tn{examsetup} 命令。\opt{auto} 表示自动在末尾添加两页草稿纸,\opt{manual} 表示不在末尾添加草稿纸,如用户不需要草稿纸,或者是需要不止两页草稿纸的话,则需要改成 \opt{manual},后者需求则需要用户自己手动在文档末尾添加所需要的 \tn{draftpaper} 命令即可。注意,密封线的作用范围包括了草稿纸。根据经验看,试卷的草稿纸一般也有相应的密封线,所以暂时没有单独去掉草稿纸的密封线范围。但是可以实现一种效果:正文密封线正常,草稿纸页完全空白:
  \begin{enumerate}
    \item 先在导言区使用 \tn{examsetup} 用~\ref{subsubsec:参数-密封线} 节的 |sealline| 相应接口正常编译所需要的密封线
    \item 在导言区加入 \kvopt{draft/show-draft}{auto},编译 \emph{一次},即可的到空白的草稿纸(编译两次就是正常按照 |draft| 相关参数和密封线一起编译所得到的草稿纸)
    \item 若需要不止两张或者只需要一张空白页,则把上一步的“在导言区加入 \kvopt{draft/show-draft}{auto}” 改为在正文中添加相应数量的 \tn{draftpaper} 命令,并编译 \emph{一次} 即可。
  \end{enumerate}
\end{function}


\subsubsection{评分框} \label{subsubsec:参数-评分框}

\begin{function}[added = 2022-07-04]{scoringbox}
  \begin{ccnusyntax}[emph={[1]scoringbox}]
    scoringbox = (*\marg{键值列表}*)
    scoringbox/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含一个子项目。用于设置评分框。仅可以通过 \tn{examsetup} 进行处理。
\end{function}

\begin{function}[added = 2022-07-04]{scoringbox/type}
  \begin{ccnusyntax}[emph={[1]type}]
    type = (*<onecolumn|twocolumn|(none)>*)
  \end{ccnusyntax}
  该键值用于重定义 \tn{section} 命令,使得 \tn{scoringbox} 和 \tn{section} 结合起来。\opt{onecolumn} 表示单栏(即只有“得分”)的评分框和 \tn{section} 绑定,评分框置于左边;\opt{twocolumn} 表示双栏(即有“得分”和“评卷人”)的评分框和 \tn{section} 绑定,评分框置于左边;\opt{none} 表示不重定义 \tn{section} 命令,即不显示评分框。
\end{function}


\begin{function}[added = 2022-07-24]{scoringbox/position}
  \begin{ccnusyntax}[emph={[1]position}]
    position = (*<(left)|right>*)
  \end{ccnusyntax}
  \kvopt{scoringbox/type}{onecolumn} 或 \kvopt{scoringbox/type}{twocolumn} 时,评分框相对于 \tn{section} 的位置。\opt{left} 表示评分框在 \tn{section} 的左边; \opt{right} 表示评分框在 \tn{section} 的右边。
\end{function}


\subsubsection{选择标记题型}  \label{subsubsec:参数-选择标记题型}

\begin{function}[added = 2022-07-19]{select}
  \begin{ccnusyntax}[emph={[1]chinese}]
    select = (*\marg{键值列表}*)
    select/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含一个子项目。用于设置 \env{select} 环境。
\end{function}

\begin{function}[added = 2022-07-19]{chinese/mark-symbol}
  \begin{ccnusyntax}[emph={[1]mark-symbol}]
    mark-symbol = (*\meta{symbol}*)
  \end{ccnusyntax}
  \env{select} 环境的标记符号。默认为 |$\checkmark$|。
\end{function}

\begin{latexexample}{\opt{mark-symbol} 使用示例}
  \begin{select}[mark-symbol = {\textcolor{red}{$\times$}},show-mark = true]
    \sitem 正确
    \sitem* 错误
    \sitem* 错误
  \end{select}
\end{latexexample}

\begin{function}[added = 2022-07-21]{chinese/show-mark}
  \begin{ccnusyntax}[emph={[1]show-mark}]
    show-mark = (*\TFF*)
  \end{ccnusyntax}
  是否显示 \env{select} 环境的标记符号。
\end{function}

\begin{function}[added = 2022-07-19, updated = 2022-07-24]{chinese/mark-position}
  \begin{ccnusyntax}[emph={[1]mark-position}]
    mark-position = (*top|above|below|bottom|left|(right)>*)
  \end{ccnusyntax}
  \env{select} 环境的标记符号相对于内容的位置。\opt{right} 表示 \opt{mark-symbol} 在内容的右侧,其余的含义同理。其中 \opt{top} 和 \opt{above} 等效,\opt{below} 和 \opt{bottom} 等效。
\end{function}

\begin{function}[added = 2022-07-19]{chinese/mark-xshift}
  \begin{ccnusyntax}[emph={[1]mark-xshift}]
    mark-xshift = (*\meta{dimension}*)
  \end{ccnusyntax}
  \env{select} 环境的标记符号的水平偏移量。
\end{function}

\begin{function}[added = 2022-07-19]{chinese/mark-yshift}
  \begin{ccnusyntax}[emph={[1]mark-yshift}]
    mark-yshift = (*\meta{dimension}*)
  \end{ccnusyntax}
  \env{select} 环境的标记符号的垂直偏移量。
\end{function}

\begin{function}[added = 2022-07-19]{chinese/separator}
  \begin{ccnusyntax}[emph={[1]separator}]
    separator = (*\meta{symbol}*)
  \end{ccnusyntax}
  \env{select} 环境内容的间隔符。
\end{function}

\begin{function}[added = 2022-07-19]{chinese/pre-content}
  \begin{ccnusyntax}[emph={[1]pre-content}]
    pre-content = (*\meta{content}*)
  \end{ccnusyntax}
  \env{select} 环境的内容 \emph{前} 的内容。
\end{function}

\begin{function}[added = 2022-07-19]{chinese/post-content}
  \begin{ccnusyntax}[emph={[1]post-content}]
    post-content = (*\meta{content}*)
  \end{ccnusyntax}
  \env{select} 环境的内容 \emph{后} 的内容。
\end{function}


\begin{latexexample}{\env{select}相关键值的综合使用}
  折
  \begin{select}[pre-content = {[}, post-content = {\}}, mark-symbol = {\tiny $\triangle$}, separator = {, },mark-position = bottom, show-mark=true]
    \sitem \pinyin{zhe1}
    \sitem \pinyin{zhe2}
    \sitem \pinyin{zhe3}
    \sitem \pinyin{zhe4}
    \sitem \pinyin{she1}
    \sitem* \pinyin{she2}
    \sitem \pinyin{she3}
    \sitem \pinyin{she4}
  \end{select}
  本
\end{latexexample}



\subsubsection{连线题型}  \label{subsubsec:参数-连线题型}

\begin{function}[updated = 2022-07-19]{lineto}
  \begin{ccnusyntax}[emph={[1]lineto}]
    lineto = (*\marg{键值列表}*)
    lineto/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含一个子项目。用于设置 \env{lineto} 环境。
\end{function}

\begin{function}{lineto/xsep}
  \begin{ccnusyntax}[emph={[1]xsep}]
    xsep = (*\meta{dimension}*)
  \end{ccnusyntax}
  设置 \env{lineto} 环境两列之间的距离。默认为 |0.25\linewidth|。只在 \tn{examsetup} 中设置。
\end{function}

\begin{function}{lineto/ysep}
  \begin{ccnusyntax}[emph={[1]ysep}]
    ysep = (*\meta{dimension}*)
  \end{ccnusyntax}
  设置 \env{lineto} 环境两行之间的距离。默认为 |1cm|。只在 \tn{examsetup} 中设置。
\end{function}

\begin{function}{lineto/name}
  \begin{ccnusyntax}[emph={[1]name}]
    name = (*\meta{dimension}*)
  \end{ccnusyntax}
  \env{lineto} 环境中 \tn{linelistset} 命令设置的一组的名称。只在 \tn{lineconnect} 的 \oarg{键值列表} 中设置。默认为小写罗马数字,即第一次使用 \tn{lineconnect} 则该组数据的名称为 |i-*|,第二次使用的该组数据名称为 |ii-*|,其中 |*| 为该项在 \tn{linelistset} 的必选参数的列表的第几项(阿拉伯数字),比如 |i-1|,|ii-3|。
\end{function}


\begin{latexexample}{\opt{lineto/name} 的效果及 \env{lineto} 环境使用示例}
  \begin{lineto}
    \linelistset{apple, banana, key}
    \linelistset{香蕉, 钥匙, 苹果}
    \lineconnect{i-1,ii-3}
    \lineconnect{i-2,ii-1}
    \lineconnect{i-3,ii-2}
  \end{lineto}
  
  \begin{lineto}
    \linelistset[name = a]{apple, banana, key}
    \linelistset[name = b]{香蕉, 钥匙, 苹果}
    \linelistset[name = c]{黄色, 红色,银色}
    \lineconnect{a-1,b-3,c-2}
    \lineconnect{a-2,b-1,c-1}
    \lineconnect{a-3,b-2,c-3}
  \end{lineto}
\end{latexexample}


\subsubsection{语文相关} \label{subsubsec:参数-语文}

\begin{function}[updated = 2022-07-24]{material}
  \begin{ccnusyntax}[emph={[1]material}]
    material = (*\marg{键值列表}*)
    material/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含多个子项目。用于设置 \env{material} 环境。可以在 \tn{examsetup} 中使用,也可以在 \env{material} 环境的可选参数中使用。
\end{function}


\begin{function}[updated = 2022-07-24]{material/title}
  \begin{ccnusyntax}[emph={[1]title}]
    title = (*\meta{标题}*)
  \end{ccnusyntax}
  \env{material} 环境的上方标题的 \emph{内容}。可以为空或不写。
\end{function}

\begin{function}[updated = 2022-07-24]{material/title-format}
  \begin{ccnusyntax}[emph={[1]title-format}]
    title-format = (*\meta{格式}*)
  \end{ccnusyntax}
  \env{material} 环境的上方标题的 \emph{格式}。默认为 |\zihao{4}|。
\end{function}

\begin{function}[updated = 2022-07-24]{material/author}
  \begin{ccnusyntax}[emph={[1]author}]
    author = (*\meta{作者}*)
  \end{ccnusyntax}
  \env{material} 环境的上方作者的 \emph{作者名}。可以为空或不写。
\end{function}

\begin{function}[updated = 2022-07-24]{material/author-format}
  \begin{ccnusyntax}[emph={[1]author-format}]
    author-format = (*\meta{格式}*)
  \end{ccnusyntax}
  \env{material} 环境的上方作者的 \emph{格式}。默认为 |\small|。
\end{function}

\begin{function}[updated = 2022-07-24]{material/title-author-sep}
  \begin{ccnusyntax}[emph={[1]title-author-sep}]
    title-author-sep = (*\meta{弹性长度}*)
  \end{ccnusyntax}
  \env{material} 环境的上方标题和作者之间的距离。默认为 |2em|。
\end{function}


\begin{function}[updated = 2022-07-24]{material/format}
  \begin{ccnusyntax}[emph={[1]format}]
    format = (*\meta{格式}*)
  \end{ccnusyntax}
  \env{material} 环境内容的格式。默认为 |\kaishu|。
\end{function}

\begin{function}[updated = 2022-07-24]{material/source}
  \begin{ccnusyntax}[emph={[1]source}]
    source = (*\meta{来源出处}*)
  \end{ccnusyntax}
  \env{material} 环境下方的来源出处。会新起一行并右对齐。
\end{function}

\begin{function}[updated = 2022-07-24]{material/source-format}
  \begin{ccnusyntax}[emph={[1]source-format}]
    source-format = (*\meta{格式}*)
  \end{ccnusyntax}
  \env{material} 环境下方的来源出处的格式。
\end{function}

\begin{function}[added = 2022-07-24]{material/top-sep}
  \begin{ccnusyntax}[emph={[1]top-sep}]
    top-sep = (*\meta{弹性长度}*)
  \end{ccnusyntax}
  \env{material} 环境和标题(如果有)的整体上方间距。默认为 |0pt|。
\end{function}

\begin{function}[added = 2022-07-24]{material/bottom-sep}
  \begin{ccnusyntax}[emph={[1]bottom-sep}]
    bottom-sep = (*\meta{弹性长度}*)
  \end{ccnusyntax}
  \env{material} 环境的下方间距。默认为 |0pt|。
\end{function}

\begin{function}[added = 2022-07-24]{material/title-material-sep}
  \begin{ccnusyntax}[emph={[1]title-material-sep}]
    title-material-sep = (*\meta{弹性长度}*)
  \end{ccnusyntax}
  \env{material} 环境和标题(如果有)的间距。默认为 |0pt|。
\end{function}


\begin{function}[updated = 2022-07-24]{poem}
  \begin{ccnusyntax}[emph={[1]material}]
    poem = (*\marg{键值列表}*)
    poem/(*\meta{key}*) = (*\meta{value}*)
  \end{ccnusyntax}
  该选项包含多个子项目。用于设置 \env{poem} 环境。可以在 \tn{examsetup} 中使用,也可以在 \env{poem} 环境的可选参数中使用。
\end{function}

\begin{function}[updated = 2022-07-24]{poem/title}
  \begin{ccnusyntax}[emph={[1]title}]
    title = (*\meta{标题}*)
  \end{ccnusyntax}
  \env{poem} 环境的上方标题的 \emph{内容}。可以为空或不写。
\end{function}

\begin{function}[updated = 2022-07-24]{poem/title-format}
  \begin{ccnusyntax}[emph={[1]title-format}]
    title-format = (*\meta{格式}*)
  \end{ccnusyntax}
  \env{poem} 环境的上方标题的 \emph{格式}。默认为 |\zihao{5}|。
\end{function}

\begin{function}[updated = 2022-07-24]{poem/author}
  \begin{ccnusyntax}[emph={[1]author}]
    author = (*\meta{作者}*)
  \end{ccnusyntax}
  \env{poem} 环境的上方作者的 \emph{作者名}。可以为空或不写。
\end{function}

\begin{function}[updated = 2022-07-24]{poem/author-format}
  \begin{ccnusyntax}[emph={[1]author-format}]
    author-format = (*\meta{格式}*)
  \end{ccnusyntax}
  \env{poem} 环境的上方作者的 \emph{格式}。默认为 |\small|。
\end{function}

\begin{function}[updated = 2022-07-24]{poem/title-author-sep}
  \begin{ccnusyntax}[emph={[1]title-author-sep}]
    title-author-sep = (*\meta{弹性长度}*)
  \end{ccnusyntax}
  \env{poem} 环境的上方标题和作者之间的距离。默认为 |2em|。
\end{function}


\begin{function}[added = 2022-07-24]{poem/format}
  \begin{ccnusyntax}[emph={[1]format}]
    format = (*\meta{格式}*)
  \end{ccnusyntax}
  \env{poem} 环境内容的格式。默认为 |\kaishu|。
\end{function}

\begin{function}[added = 2022-07-26]{poem/align}
  \begin{ccnusyntax}[emph={[1]align}]
    align = (*<(l)|c|r>*)
  \end{ccnusyntax}
  \env{poem} 环境内容的对齐方式。\opt{l} 表示左对齐;\opt{c} 表示居中对齐;\opt{r} 表示右对齐。
\end{function}

\begin{function}[added = 2022-07-24]{poem/top-sep}
  \begin{ccnusyntax}[emph={[1]top-sep}]
    top-sep = (*\meta{弹性长度}*)
  \end{ccnusyntax}
  \env{poem} 环境和标题(如果有)的整体上方间距。默认为 |0pt|。
\end{function}

\begin{function}[added = 2022-07-24]{poem/bottom-sep}
  \begin{ccnusyntax}[emph={[1]bottom-sep}]
    bottom-sep = (*\meta{弹性长度}*)
  \end{ccnusyntax}
  \env{poem} 环境的下方间距。默认为 |0pt|。
\end{function}

\begin{function}[added = 2022-07-24]{poem/title-poem-sep}
  \begin{ccnusyntax}[emph={[1]title-poem-sep}]
    title-poem-sep = (*\meta{弹性长度}*)
  \end{ccnusyntax}
  \env{poem} 环境和标题(如果有)的间距。默认为 |0pt|。
\end{function}

\begin{function}[added = 2022-07-25]{poem/type}
  \begin{ccnusyntax}[emph={[1]type}]
    type = (*<minipage|(chinese)>*)
  \end{ccnusyntax}
  \env{poem} 环境的类型(主要体现在页脚)。\opt{minipage} 表示 \env{poem} 环境的页脚是基于 \env{minipage} 环境形成的,脚注上方有横线,且两条脚注之间是分行的;\opt{chinese} 表示脚注不分行,连着显示,且最前方有 |[注]| 字(设计来源于“2021 年普通高等学校招生全国统一考试”语文真题卷)。
\end{function}

\begin{function}[added = 2022-07-26]{poem/zhu-circlednumber-base}
  \begin{ccnusyntax}[emph={[1]zhu-circlednumber-base}]
    zhu-circlednumber-base = (*<tikz|(font)>*)
  \end{ccnusyntax}
  在 \kvopt{poem/type}{chinese} 键值下,\tn{zhu} 的带圈数字的源。\opt{tikz} 表示此时带圈数字基于 \TikZ,\opt{font} 表示此时带圈数字基于字体。
\end{function}