-
Notifications
You must be signed in to change notification settings - Fork 71
/
xduts.dtx
3833 lines (3833 loc) · 128 KB
/
xduts.dtx
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
% \iffalse
%<*driver>
\ProvidesFile{xduts.dtx}
[2022/05/06 v1.12.0.0 Xidian University TeX Suite]
%</driver>
%<class|sty>\NeedsTeXFormat{LaTeX2e}
%<class|sty>\RequirePackage{expl3}
%<xdufont>\ProvidesExplPackage{xdufont}
%<xdupgthesis>\ProvidesExplClass{xdupgthesis}
%<xduugthesis>\ProvidesExplClass{xduugthesis}
%<class|sty> {2022/05/06}{1.12.0.0}
%<xdufont> {Xidian University Font package}
%<xdupgthesis> {Xidian University Postgraduate Thesis document class}
%<xduugthesis> {Xidian University Undergraduate Thesis document class}
%<*driver>
\PassOptionsToPackage{AutoFakeBold=3}{xeCJK}
\documentclass{ctxdoc}
\changes{v1.9.0.0}{2022/05/03}{支持中文选项默认值加粗}
\changes{v1.9.0.0}{2022/05/03}{增大function环境盒子宽度}
\addtolength{\marginparwidth}{5mm}
\geometry{hmargin={0mm,10mm}}
\changes{v0.6.0.0}{2022/04/10}{新增xdufont宏包}
\changes{v0.5.2.1}{2022/04/09}{修改项目名称}
\changes{v0.4.2.1}{2022/04/05}{调整文档目录缩进}
\usepackage{tocloft}
\setlength{\cftsecindent}{0em}
\setlength{\cftsubsecindent}{1em}
\setlength{\cftsubsubsecindent}{2em}
\setlength{\cftparaindent}{3em}
\setlength{\cftsubparaindent}{4em}
\ctexset{
secnumdepth = 5,
subparagraph = {
afterskip = 1ex plus .2ex,
runin = false
}
}
\setcounter{tocdepth}{5}
\ctexset{punct=quanjiao}
\usepackage{hologo}
\usepackage{fetamont}
\usepackage{xurl}
\usepackage{xspace}
\xspaceaddexceptions{。?!,、;:“”‘’—….--~·《》<>_}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\usepackage{multirow}
\usepackage{pifont}
\newcommand{\cmark}{\ding{51}}
\usepackage{tabularray}
\SetTblrStyle{caption-tag}{font=\bfseries}
\DefTblrTemplate{caption-sep}{default}{\quad}
\DefTblrTemplate{conthead-text}{default}{(续表)}
\DefTblrTemplate{contfoot-text}{default}{接下页}
% 交叉引用
\newcommand{\secrefx}[1]{第\xspace\ref{#1}\xspace 节}
\newcommand{\tabrefx}[1]{\tablename\xspace\ref{#1}\xspace}
% 文档类选项
\newcommand{\optx}[1]{\xspace\opt{#1}\xspace}
% /name LaTeX3控制序列
\newcommand{\csx}[1]{\xspace\cs{#1}\xspace}
% /name 传统LaTeX2e命令
\newcommand{\tnx}[1]{\xspace\tn{#1}\xspace}
% <name> LaTeX3键值
\newcommand{\metax}[1]{\xspace\meta{#1}\xspace}
% LaTeX3键值对
\newcommand{\breakablethinspace}{\hskip 0.16667em\relax}
\newcommand{\kvoptx}[2]{\xspace\texttt{#1\breakablethinspace=\breakablethinspace#2}\xspace}
% {<name>} LaTeX2e参数
\newcommand{\argx}[1]{\xspace\Arg{#1}\xspace}
% [<name>] LaTeX2e可选参数
\newcommand{\oargx}[1]{\xspace\Arg{#1}\xspace}
% 文件
\usepackage{seqsplit}
\newcommand{\filex}[1]{\xspace{\ttfamily\seqsplit{#1}}\xspace}
% 环境
\newcommand{\envx}[1]{\xspace\env{#1}\xspace}
% 宏包
\newcommand{\pkgx}[1]{\xspace\pkg{#1}\xspace}
% 文档类
\newcommand{\clsx}[1]{\xspace\cls{#1}\xspace}
% 值
\newcommand{\valuex}[1]{\xspace\texttt{#1}\xspace}
% 命令
\newcommand{\cmdx}[1]{\xspace\texttt{#1}\xspace}
% 链接
\newcommand{\footurl}[1]{\footnote{\url{#1}}}
\newcommand{\ctanurl}[1]{\href{https://mirrors.ustc.edu.cn/CTAN/#1}{\ttfamily CTAN://#1}}
\newcommand{\footctan}[1]{\footnote{\ctanurl{#1}}}
% logo
\newcommand{\xduts}{{\bfseries\ffmfamily XDUTS}}
\newcommand{\texlive}{\TeX{} Live}
\newcommand{\mactex}{Mac\TeX{}}
\newcommand{\miktex}{\xspace\hologo{MiKTeX}\xspace}
\newcommand{\bibtex}{\xspace\hologo{BibTeX}\xspace}
\newcommand{\biber}{\xspace\hologo{biber}\xspace\xspace}
% arguments list
\setlist[arguments]{label=\texttt{\#\arabic*}\,:}
% 浮动体默认设置
\makeatletter
\renewcommand{\fps@table}{htbp}
\makeatother
% listings
\definecolor{xdu-ai-orange}{cmyk}{0,0.75,1,0}
\definecolor{xdu-blue}{cmyk}{0.80,0.50,0,0}
\definecolor{xdu-chem-red}{cmyk}{0.28,0.95,0.84,0}
\definecolor{xdu-cs-green}{cmyk}{0.60,0.23,1,0}
\definecolor{xdu-magenta}{cmyk}{0.05,1,0.55,0}
\definecolor{xdu-violet}{cmyk}{0.50,1,0,0.40}
\usepackage{listings}
\lstdefinestyle{style@base}
{
basewidth = 0.5 em,
gobble = 3,
lineskip = 3 pt,
frame = l,
framerule = 1 pt,
framesep = 0 pt,
xleftmargin = 0 em,
xrightmargin = 0 em,
escapeinside = {(*}{*)},
breaklines = true,
basicstyle = \small\ttfamily,
keywordstyle = \bfseries\color{xdu-violet},
commentstyle = \itshape\color{white!50!gray},
stringstyle = \color{xdu-chem-red},
backgroundcolor = \color{white!95!gray}
}
\lstdefinestyle{style@shell}
{
style = style@base,
rulecolor = \color{xdu-magenta},
language = bash,
alsoletter = {-},
emphstyle = \color{xdu-cs-green}
}
\lstdefinestyle{style@latex}
{
style = style@base,
rulecolor = \color{xdu-blue},
language = [LaTeX]TeX,
alsoletter = {*, -},
texcsstyle = *\color{xdu-violet},
emphstyle = [1]\color{xdu-ai-orange},
emphstyle = [2]\color{xdu-cs-green}
}
\lstnewenvironment{shellexample}[1][]{%
\lstset{style=style@shell, #1}}{}
\lstnewenvironment{latexexample}[1][]{%
\lstset{style=style@latex, #1}}{}
\begin{document}
\DocInput{\jobname.dtx}
\IndexLayout
\PrintChanges
\PrintIndex
\end{document}
%</driver>
% \fi
% \CheckSum{1274}
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
% Digits \0\1\2\3\4\5\6\7\8\9
% Exclamation \! Double quote \" Hash (number) \#
% Dollar \$ Percent \% Ampersand \&
% Acute accent \' Left paren \( Right paren \)
% Asterisk \* Plus \+ Comma \,
% Minus \- Point \. Solidus \/
% Colon \: Semicolon \; Less than \<
% Equals \= Greater than \> Question mark \?
% Commercial at \@ Left bracket \[ Backslash \\
% Right bracket \] Circumflex \^ Underscore \_
% Grave accent \` Left brace \{ Vertical bar \|
% Right brace \} Tilde \~}
% \GetFileInfo{\jobname.dtx}
% \title{\bfseries\xduts{}手册}
% \author{\href{https://github.com/note286/}{note286}}
% \date{\href{https://github.com/note286/xduts/releases/tag/\fileversion/}{\fileversion}~(\filedate)}
% \maketitle
% \thispagestyle{empty}
% \begin{abstract}
% \xduts{}是面向西安电子科技大学本科生/研究生的\LaTeXiii{}文档类和宏包套装,
% 仅支持\XeLaTeX{},
% 仅支持\texlive{}、\mactex{}、\miktex{},
% 支持Windows、macOS、GNU/Linux、Overleaf和TeXPage。
% \end{abstract}
% \renewcommand{\abstractname}{免责声明}
% \begin{abstract}
% 在使用\xduts{}时,默认您同意以下内容:
% \begin{enumerate}
% \item \xduts{}作者不对使用\xduts{}产生的格式审查问题负责。
% \item \xduts{}的发布遵守
% \LaTeX{} Project Public License\footurl{https://www.latex-project.org/lppl.txt},
% 使用前请认真阅读协议内容。
% \item 任何个人或组织以\xduts{}为基础进行修改、扩展而生成的新的\LaTeX{}文档类/宏包,
% 请严格遵守\LaTeX{} Project Public License,
% 由于违犯协议而引起的任何纠纷争端均与\xduts{}作者无关。
% \end{enumerate}
% \end{abstract}
% \clearpage
% \tableofcontents
% \clearpage
% \section{介绍}
% \xduts{} (Xidian University \TeX{} Suite)
% 是为了帮助西安电子科技大学本科生/研究生撰写开题报告/学位论文及其他文档
% 而编写的\LaTeXiii{}文档类和宏包套装,目前有:
% \begin{itemize}
% \item \pkgx{xdufont},中/英/数学字体配置宏包。
% \item \clsx{xduugthesis},本科毕业设计论文。
% \end{itemize}
% 正在开发:
% \begin{itemize}
% \item \clsx{xdupgthesis},研究生学位论文。
% \end{itemize}
% 即将支持:
% \begin{itemize}
% \item \clsx{xdupgtp},研究生学位论文开题报告表。
% \item \clsx{xduugtp},本科毕业设计论文开题报告表。
% \end{itemize}
% \par
% \changes{v1.2.0.1}{2022/04/19}{增加GitHub Discussions}
% 本文档将尽量完整地介绍\xduts{}的使用方法,
% 如有不清楚之处,或者想提出改进建议,
% 可以在GitHub Discussions\footurl{https://github.com/note286/xduts/discussions/}
% 参与讨论或提问。
% 如确定\xduts{}存在bug,
% 可以在GitHub Issues\footurl{https://github.com/note286/xduts/issues/}
% 具体描述。另外,\textbf{不接受任何Pull Requests}。
% \StopEventually{}
% \section{使用说明}
% \label{使用说明}
% 《一份(不太)简短的\LaTeXe{}介绍》\footctan{info/lshort/chinese/lshort-zh-cn.pdf}
% 中提及的内容本文档将不再赘述。
% \xduts{}中的所有文档类和宏包仅内置了实现功能所需的宏包,
% 对于常用的宏包如\pkgx{subfig}、\pkgx{algpseudocodex}、
% \pkgx{amsmath}、\pkgx{amsthm}和\pkgx{siunitx}等\textbf{均未内置},
% 用户可以参考\secrefx{兼容性说明}后,视需求自行加载。
% 相应格式规范均已实现,用户仅需要撰写文章内容即可,请勿随意添加格式修改命令。
% \changes{v1.1.2.1}{2022/04/15}{增加默认值说明}
% \textbf{部分样式的默认值并不严格符合学校规范},
% 用户可以结合学校规范并参考\secrefx{功能说明}功能说明自行修改。
% \par
% 请在最新版\LaTeX{}环境中使用最新版\xduts{},
% 认真阅读相应文档类/宏包使用说明章节即可使用\xduts{}。
% \subsection{xdufont}
% \pkgx{xdufont}宏包基于\pkgx{xeCJK},相较于\pkgx{ctex}宏包的主要优势为默认支持宋体粗体、斜体,内置多种字体配置,可任意搭配中/英/数学字体,更加符合校内各种文档的撰写要求。
% \par
% \secrefx{编译}介绍了如何编译,\secrefx{参数设置}介绍了如何自定义配置,具体的配置选项见\secrefx{字体选项}。\pkgx{xdufont}可以搭配任意文档类进行使用,例如:
% \begin{latexexample}[moretexcs={\xdusetup},emph={[1]document}]
% \documentclass{article}
% \usepackage{xdufont}
% \xdusetup{}
% \begin{document}
% 宋体\textbf{加粗}\textsl{加斜}
% \textsf{黑体}\textbf{\textsf{加粗}}\textsl{\textsf{加斜}}
% \end{document}
% \end{latexexample}
% \par
% 学会以上用法后即可使用\pkgx{xdufont}宏包。
% \changes{v1.4.0.0}{2022/04/26}{新增研究生学位论文}
% \subsection{xdupgthesis}
% \subsection{xduugthesis}
% \pkgx{xduugthesis}基于\clsx{ctexbook}文档类,
% 提供多种字体配置,部分样式可自定义,信息录入便捷。
% \changes{v1.3.1.1}{2022/04/26}{英文本科生毕业设计规范参考说明}
% 论文语言为英文时,部分格式符合《外国语学院学士论文写作手册》。
% 请在阅读《本科生毕业设计(论文)工作手册》后再使用\pkgx{xduugthesis}。
% \par
% 典型的\clsx{xduugthesis}主文件结构如下所示:
% \begin{latexexample}[moretexcs={\xdusetup,\frontmatter,\mainmatter,\chapter,\backmatter},emph={[1]document}]
% \documentclass{xduugthesis}
% \xdusetup{}
% \begin{document}
% \frontmatter
% \mainmatter
% \chapter{欢迎}
% 使用\LaTeX{}!
% \backmatter
% \end{document}
% \end{latexexample}
% \par
% \secrefx{编译}介绍了如何编译,\secrefx{参数设置}介绍了如何自定义配置。
% 其中,字体选项见\secrefx{字体选项},
% 部分英文字体切换见\secrefx{英文字体},
% 参考文献配置见\secrefx{参考文献配置},
% 页面配置见\secrefx{页面配置},
% 交叉引用配置见\secrefx{交叉引用配置},
% Caption配置见\secrefx{Caption配置},
% 表格配置见\secrefx{表格配置},
% 算法配置见\secrefx{算法配置},
% 章节配置见\secrefx{章节配置}。
% 如需附录,请使用附录环境,具体见\secrefx{附录环境}。
% 仅支持如下信息录入,具体每个选项的含义见\secrefx{信息录入},如没有部分选项,则删除该行即可。
% \begin{latexexample}[moretexcs={\xdusetup},emph={[2]info}]
% \xdusetup {
% info = {
% title = {第一行标题\\第二行标题},
% department = {电子工程学院},
% major = {电子信息工程},
% author = {张三},
% supervisor = {李四},
% supervisor-department = {王五},
% supervisor-enterprise = {赵六},
% supervisor-school = {刘七},
% class-id = {123456},
% student-id = {12345678910},
% abstract = {abstract-zh.tex},
% abstract* = {abstract-en.tex},
% keywords = {我,就是,充数的,关键词},
% keywords* = {Dummy,Keywords,Here,it is},
% acknowledgements = {acknowledgements.tex}
% }
% }
% \end{latexexample}
% \par
% 学会以上用法后即可使用\clsx{xduugthesis}文档类。
% \changes{v1.3.0.1}{2022/04/20}{增加兼容性说明}
% \section{兼容性说明}
% \label{兼容性说明}
% \xduts{}对部分常见宏包进行了针对性地适配,
% 需要注意的是,这些宏包仍需用户视需求自行加载。
% \subsection{算法}
% 主要适配算法内容字号和默认浮动位置。
% \pkgx{algorithm}宏包提供了算法浮动体\envx{algorithm}环境,
% 可以搭配\pkgx{algpseudocodex}等宏包使用。
% \pkgx{algorithm2e}宏包提供了算法环境,
% 该宏包提供的\envx{algorithm}环境实际将浮动体与算法内容合二为一。
% \subsection{图片}
% 主要适配子图caption字体字号,
% \changes{v1.4.1.1}{2022/04/27}{修正子图适配宏包名称}
% 包括\pkgx{subfig}宏包和\pkgx{subcaption}宏包。
% \subsection{表格}
% 主要适配表格内容字号,
% 包括所有使用\envx{table}浮动体的表格、
% \pkgx{tabularray}宏包提供的\envx{tblr}、\envx{longtblr}环境
% 和\pkgx{longtable}宏包提供的\envx{longtable}环境。
% \section{功能说明}
% \label{功能说明}
% 请根据\secrefx{使用说明}中相应文档类/宏包的说明来选择性地阅读本节内容。
% \subsection{编译}
% \label{编译}
% \changes{v0.5.1.2}{2022/04/07}{增加编译说明}
% \LaTeX{}本身是命令行程序,通过不同的命令调用所需的编译引擎,编辑器提供的快捷按钮实际只是做了包装。\xduts{}仅支持\XeLaTeX{},参考文献默认使用\biber{},也可以切换为\bibtex{}。
% \subsection{参数设置}
% \label{参数设置}
% \changes{v0.5.1.1}{2022/04/06}{增加xdusetup配置文档}
% \begin{function}[added=2022-03-07]{\xdusetup}
% \begin{syntax}
% \tnx{xdusetup}=\argx{键值列表}
% \end{syntax}
% \xduts{}提供了一系列选项,可自行配置。
% 载入文档类/宏包之后,以下所有选项均可通过统一的命令\tnx{xdusetup}来设置。
% \csx{xdusetup}的参数是一组由(英文)逗号隔开的选项列表,
% 下文中尖括号内列出了若干个允许的选项,其中加粗的为默认选项。
% 列表中的选项通常是\kvoptx{\metax{key}}{\metax{value}}的形式。
% \csx{xdusetup}采用\LaTeXiii{}风格的键值设置,
% 支持不同类型以及多种层次的选项设定。
% 键值列表中,“|=|”左右的空格不影响设置;
% 但需注意,参数列表中不可以出现空行。
% 一些选项包含子选项,如\optx{style}和\optx{info}等,
% 它们可以按如下两种等价方式来设定:
% \begin{latexexample}[morekeywords={\xdusetup},emph={[1]style,cjk-font,latin-font,info,title,author,department}]
% \xdusetup{
% style = { cjk-font = adobe, latin-font = tacn },
% info = {
% title = {论如何让用户认真阅读文档},
% author = {张三},
% department = {排版学院}
% }
% }
% \end{latexexample}
% 或者
% \begin{latexexample}[morekeywords={\xdusetup},emph={[1]style,cjk-font,latin-font,info,title,author,department}]
% \xdusetup{
% style / cjk-font = adobe,
% style / latin-font = tacn,
% info / title = {论如何让用户认真阅读文档},
% info / author = {张三},
% info / department = {排版学院}
% }
% \end{latexexample}
% \end{function}
% \subsection{字体选项}
% \label{字体选项}
% \begin{function}[added=2022-03-06]{style/cjk-font}
% \begin{syntax}
% \optx{style/cjk-font}=\metax{adobe|(fandol)|founder|sinotype|win|none}
% \end{syntax}
% 设置中文字体,具体配置见\tabrefx{tab:cjk-font}。
% \end{function}
% \begin{optdesc}
% \item[none] 关闭内置中文字体配置,需自行配置中文字体。
% \end{optdesc}
% \begin{table}
% \begin{threeparttable}
% \caption{中文字体配置}
% \label{tab:cjk-font}
% \centering
% \begin{tabularx}{\linewidth}{cccc}
% \toprule
% \strong{选项名称} & \strong{罗马字体族} & \strong{无衬线字体族} & \strong{打字机字体族} \\
% \midrule
% |adobe|\tnote{1} & Adobe 宋体 Std/Adobe 楷体 Std & Adobe 黑体 Std & Adobe 仿宋 Std \\
% |fandol| & FandolSong/FandolKai & FandolHei & FandolFang \\
% |founder|\tnote{2} & 方正书宋_GBK/方正楷体_GBK & 方正黑体_GBK & 方正仿宋_GBK \\
% |sinotype|\tnote{3} & 华文宋体/华文楷体 & 华文细黑/华文黑体 & 华文仿宋 \\
% |win|\tnote{4} & 中易宋体/中易楷体 & 中易黑体 & 中易仿宋 \\
% \bottomrule
% \end{tabularx}
% \begin{tablenotes}
% \item [1] \filex{adobesongstd-light.otf}、\filex{adobekaitistd-regular.otf}、\filex{adobeheitistd-regular.otf}和\filex{Adobe-Fangsong-Std-R-Font.otf}。
% \item [2] \filex{FZShuSong-Z01.ttf}、\filex{FZKai-Z03.ttf}、\filex{FZHei-B01.ttf}和\filex{FZFSK.TTF}。
% \item [3] \filex{STSONG.TTF}、\filex{STKAITI.TTF}、\filex{STXIHEI.TTF}、\filex{STHeiti.ttf}和\filex{STFANGSO.TTF}。
% \item [4] \filex{simsun.ttc}、\filex{simkai.ttf}、\filex{simhei.ttf}和\filex{simfang.ttf}。
% \end{tablenotes}
% \end{threeparttable}
% \end{table}
% \begin{function}[added=2022-04-01]{style/cjk-fake-bold}
% \begin{syntax}
% \optx{style/cjk-fake-bold}=\metax{伪粗体粗细程度}
% \end{syntax}
% 设置中文字体伪粗体粗细程度。默认为\valuex{3},对于部分存在对应粗体字体的中文字体,如FandolSong和FandolHei等,该选项不生效。
% \end{function}
% \begin{function}[added=2022-04-01]{style/cjk-fake-slant}
% \begin{syntax}
% \optx{style/cjk-fake-slant}=\metax{伪斜体倾斜程度}
% \end{syntax}
% 设置中文字体伪斜体倾斜程度。默认为\valuex{0.2}。
% \end{function}
% \begin{function}[added=2022-03-06,updated=2022-05-06]{style/latin-font}
% \begin{syntax}
% \optx{style/latin-font}=\metax{tac|tacn|thcs|(gyre)|none}
% \end{syntax}
% 设置英文字体,具体配置见\tabrefx{tab:latin-font}。
% \end{function}
% \begin{optdesc}
% \item[none] 关闭内置英文字体配置,需自行配置英文字体。
% \end{optdesc}
% \begin{table}
% \begin{threeparttable}
% \caption{英文字体配置}
% \label{tab:latin-font}
% \centering
% \begin{tabularx}{\linewidth}{cYYY}
% \toprule
% \strong{选项名称} & \strong{罗马字体族} & \strong{无衬线字体族} & \strong{打字机字体族} \\
% \midrule
% |tac|\tnote{1} & Times New Roman & Arial & Consolas \\
% |tacn|\tnote{2} & Times New Roman & Arial & Courier New \\
% |thcs|\tnote{3} & Times New Roman & Helvetica & Courier Std \\
% |gyre| & TeX Gyre Termes & TeX Gyre Heros & TeX Gyre Cursor \\
% \bottomrule
% \end{tabularx}
% \begin{tablenotes}
% \item [1] \filex{times.ttf}、\filex{timesbd.ttf}、\filex{timesi.ttf}、\filex{timesbi.ttf}、\filex{arial.ttf}、\filex{arialbd.ttf}、\filex{ariali.ttf}、\filex{arialbi.ttf}、\filex{consola.ttf}、\filex{consolab.ttf}、\filex{consolai.ttf}和\filex{consolaz.ttf}。
% \item [2] \filex{times.ttf}、\filex{timesbd.ttf}、\filex{timesi.ttf}、\filex{timesbi.ttf}、\filex{arial.ttf}、\filex{arialbd.ttf}、\filex{ariali.ttf}、\filex{arialbi.ttf}、\filex{cour.ttf}、\filex{courbd.ttf}、\filex{couri.ttf}和\filex{courbi.ttf}。
% \item [3] \filex{times.ttf}、\filex{timesbd.ttf}、\filex{timesi.ttf}、\filex{timesbi.ttf}、\filex{Helvetica.ttf}、\filex{Helvetica~Bold.ttf}、\filex{Helvetica~Oblique.ttf}、\filex{Helvetica~Bold~Oblique.ttf}、\filex{CourierStd.otf}、\filex{CourierStd-Bold.otf}、\filex{CourierStd-Oblique.otf}和\filex{CourierStd-BoldOblique.otf}。
% \end{tablenotes}
% \end{threeparttable}
% \end{table}
% \begin{function}[added=2022-03-06,updated=2022-03-09]{style/math-font}
% \begin{syntax}
% \optx{style/math-font}=\metax{asana|cambria|(cm)|fira|garamond|lm|...|termes|xits|none}
% \end{syntax}
% 设置数学字体,具体配置见\tabrefx{tab:math-font}。除Computer Modern字体外,均使用\pkgx{unicode-math}宏包调用字体。
% \end{function}
% \changes{v0.1.4.1}{2022/04/04}{数学字体风格介绍}
% \begin{optdesc}
% \item[cambria] 微软Office预装的数学字体。
% \item[fira] 无衬线数学字体。
% \item[garamond] Garamond风格。
% \item[lm] 基于Computer Modern风格。
% \item[libertinus] Linux Libertine风格。
% \item[stix] Times风格。
% \item[dejavu] DejaVu风格。
% \item[pagella] Palatino风格。
% \item[termes] Times风格。
% \item[xits] 基于STIX,Times风格,有粗体XITS Math Bold可用。
% \item[none] 关闭内置数学字体配置,需自行配置数学字体。
% \end{optdesc}
% \begin{table}
% \begin{threeparttable}
% \caption{数学字体配置}
% \label{tab:math-font}
% \centering
% \begin{tabularx}{\linewidth}{cY}
% \toprule
% \strong{选项名称} & \strong{字体名称} \\
% \midrule
% |asana| & Asana Math \\
% |cambria|\tnote{1} & Cambria Math \\
% |cm| & Computer Modern \\
% |fira| & Fira Math \\
% |garamond| & Garamond Math \\
% |lm| & Latin Modern Math \\
% |libertinus| & Libertinus Math \\
% |stix| & STIX Math \\
% |bonum| & TeX Gyre Bonum Math \\
% |dejavu| & TeX Gyre DejaVu Math \\
% |pagella| & TeX Gyre Pagella Math \\
% |schola| & TeX Gyre Schola Math \\
% |termes| & TeX Gyre Termes Math \\
% |xits| & XITS Math \\
% \bottomrule
% \end{tabularx}
% \begin{tablenotes}
% \item [1] \filex{cambria.ttc}。
% \end{tablenotes}
% \end{threeparttable}
% \end{table}
% \begin{function}[added=2022-03-14]{style/unicode-math}
% \begin{syntax}
% \optx{style/unicode-math}=\argx{unicode-math宏包选项}
% \end{syntax}
% 修改\pkgx{unicode-math}默认选项,具体配置参考\pkgx{unicode-math}宏包文档,仅在数学字体不为Computer Modern时有效。
% \end{function}
% \begin{function}[added=2022-03-07]{style/font-type}
% \begin{syntax}
% \optx{style/font-type}=\metax{(font)|file}
% \end{syntax}
% 设置字体调用方式。
% \end{function}
% \begin{optdesc}
% \item[font] 相应字体已安装,使用字体名称调用字体。
% \item[file] 相应字体未安装,使用字体文件名称调用字体,适合Overleaf或TeXPage等在线平台,或不方便安装字体的情况。
% \end{optdesc}
% \begin{function}[added=2022-03-07]{style/font-path}
% \begin{syntax}
% \optx{style/font-path}=\argx{路径}
% \end{syntax}
% 设置字体文件路径,即\metax{路径}目录内存储全部所需中文、英文和数学字体文件,仅在\optx{font-type}等于|file|时有效,默认值为\valuex{fonts}。
% \end{function}
% \subsection{英文字体}
% \label{英文字体}
% \begin{function}[added=2022-04-01]{style/en-cjk-font}
% \begin{syntax}
% \optx{style/en-cjk-font}=\metax{true|(false)}
% \end{syntax}
% 切换字体族时,英文是否使用中文字体。主要作用于封面、章节标题、caption、页眉页脚、参考文献列表等。
% \end{function}
% \begin{optdesc}
% \item[true] 英文使用相对应字体族的中文字体。
% \item[false] 英文使用相对应字体族的英文字体。
% \end{optdesc}
% \subsection{语言配置}
% \label{语言配置}
% \begin{function}[added=2022-03-29]{style/language}
% \begin{syntax}
% \optx{style/language}=\metax{(zh)|en}
% \end{syntax}
% 设置论文语言。
% \end{function}
% \begin{optdesc}
% \item[zh] 中文。
% \item[en] 英文。
% \end{optdesc}
% \subsection{参考文献配置}
% \label{参考文献配置}
% \begin{function}[added=2022-04-02,updated=2022-04-03]{style/bib-backend}
% \begin{syntax}
% \optx{style/bib-backend}=\metax{bibtex|(biblatex)}
% \end{syntax}
% 设置参考文献支持方式。
% \end{function}
% \begin{optdesc}
% \item[bibtex] 使用\bibtex{}处理文献,样式由\pkgx{natbib}宏包负责。
% \item[biblatex] 使用\biber{}处理文献,样式由\pkgx{biblatex}宏包负责。
% \end{optdesc}
% \begin{function}[added=2022-04-02]{style/bib-resource}
% \begin{syntax}
% \optx{style/bib-resource}=\argx{参考文献文件路径}
% \end{syntax}
% 设置参考文献\filex{.bib}文件,多个文件之间需要使用英文半角逗号隔开。
% \end{function}
% \subsection{页面配置}
% \label{页面配置}
% \begin{function}[added=2022-04-12]{style/symmetric-margin}
% \begin{syntax}
% \optx{style/symmetric-margin}=\metax{true|(false)}
% \end{syntax}
% 设置左右页边距是否对称。
% \end{function}
% \begin{optdesc}
% \item[true] 对称。
% \item[false] 不对称。
% \end{optdesc}
% \subsection{交叉引用配置}
% \label{交叉引用配置}
% \begin{function}[added=2022-04-16]{style/ref-add-space}
% \begin{syntax}
% \optx{style/ref-add-space}=\metax{true|(false)}
% \end{syntax}
% 是否自动调整\tnx{ref}两侧中英文间空白。
% \end{function}
% \begin{optdesc}
% \item[true] 自动调整\tnx{ref}两侧中英文间空白。未避免产生不正常的空白宽度,请不要在\tnx{ref}两侧输入空格。仅在\optx{language}等于|zh|时有效。
% \item[false] 保持原始\tnx{ref}命令效果。
% \end{optdesc}
% \subsection{Caption配置}
% \label{Caption配置}
% \changes{v1.0.0.0}{2022/04/14}{设置图、表、算法标签与后面标题之间的间距}
% \begin{function}[added=2022-04-14]{style/caption-label-sep}
% \begin{syntax}
% \optx{style/caption-label-sep}=\argx{间距}
% \end{syntax}
% 设置图、表、算法标签与后面标题之间的间距,默认值为\valuex{0.75em}。
% \end{function}
% \begin{function}[added=2022-04-03]{style/fig-label-sep}
% 已弃用。
% \end{function}
% \subsection{表格配置}
% \label{表格配置}
% \changes{v0.10.0.1}{2022/04/13}{补充表格内容字号文档说明}
% \begin{function}[added=2022-04-13,updated=2022-04-15]{style/table-small-font}
% \begin{syntax}
% \optx{style/table-small-font}=\metax{(true)|false}
% \end{syntax}
% 设置表格内容字号是否为五号。
% \end{function}
% \begin{optdesc}
% \item[true] 五号。
% \item[false] 小四号。
% \end{optdesc}
% \subsection{算法配置}
% \label{算法配置}
% \begin{function}[added=2022-04-15]{style/algorithm-small-font}
% \begin{syntax}
% \optx{style/algorithm-small-font}=\metax{(true)|false}
% \end{syntax}
% 设置算法内容字号是否为五号。
% \end{function}
% \begin{optdesc}
% \item[true] 五号。
% \item[false] 小四号。
% \end{optdesc}
% \subsection{章节配置}
% \label{章节配置}
% \begin{function}[added=2022-04-05]{style/before-skip}
% \begin{syntax}
% \optx{style/before-skip}=\argx{间距列表}
% \end{syntax}
% 设置章节标题前的垂直间距,默认值为\valuex{\{24pt, 18pt, 12pt, 12pt, 12pt, 12pt\}},分别对应\tnx{chapter}、\tnx{section}、\tnx{subsection}、\tnx{subsubsection}、\tnx{paragraph}和\tnx{subparagraph}。
% \end{function}
% \begin{function}[added=2022-04-05]{style/after-skip}
% \begin{syntax}
% \optx{style/after-skip}=\argx{间距列表}
% \end{syntax}
% 设置章节标题后的垂直间距,默认值为\valuex{\{18pt, 12pt, 6pt, 6pt, 6pt, 6pt\}},分别对应\tnx{chapter}、\tnx{section}、\tnx{subsection}、\tnx{subsubsection}、\tnx{paragraph}和\tnx{subparagraph}。
% \end{function}
% \begin{function}[added=2022-04-11]
% {
% style/chap-zihao,
% style/sec-zihao,
% style/subsec-zihao,
% style/subsubsec-zihao,
% style/para-zihao,
% style/subpara-zihao
% }
% \begin{syntax}
% \optx{style/chap-zihao}=\metax{0|-0|1|-1|2|-2|3|-3|4|-4|5|-5|6|-6|7|8}
% \optx{style/sec-zihao}=\metax{0|-0|1|-1|2|-2|3|-3|4|-4|5|-5|6|-6|7|8}
% \optx{style/subsec-zihao}=\metax{0|-0|1|-1|2|-2|3|-3|4|-4|5|-5|6|-6|7|8}
% \optx{style/subsubsec-zihao}=\metax{0|-0|1|-1|2|-2|3|-3|4|-4|5|-5|6|-6|7|8}
% \optx{style/para-zihao}=\metax{0|-0|1|-1|2|-2|3|-3|4|-4|5|-5|6|-6|7|8}
% \optx{style/subpara-zihao}=\metax{0|-0|1|-1|2|-2|3|-3|4|-4|5|-5|6|-6|7|8}
% \end{syntax}
% 设置章节标题字号。
% 当论文语言为中文时,默认值分别为\valuex{3}、\valuex{4}、\valuex{4}、\valuex{4}、\valuex{4}、\valuex{4}。
% 当论文语言为英文时,默认值分别为\valuex{4}、\valuex{-4}、\valuex{-4}、\valuex{-4}、\valuex{-4}、\valuex{-4}。
% \end{function}
% \begin{optdesc}
% \item[0] 初号
% \item[−0] 小初号
% \item[1] 一号
% \item[-1] 小一号
% \item[2] 二号
% \item[-2] 小二号
% \item[3] 三号
% \item[-3] 小三号
% \item[4] 四号
% \item[-4] 小四号
% \item[5] 五号
% \item[-5] 小五号
% \item[6] 六号
% \item[-6] 小六号
% \item[7] 七号
% \item[8] 八号
% \end{optdesc}
% \subsection{附录环境}
% \label{附录环境}
% \begin{function}[added=2022-04-04]{appendixes}
% 附录位于参考文献后,即在\tnx{backmatter}后。
% \begin{latexexample}[emph={[1]appendixes}]
% \begin{appendixes}
% \chapter{这是一个附录}
% \chapter{这是另一个附录}
% \end{appendixes}
% \end{latexexample}
% \end{function}
% \subsection{信息录入}
% \label{信息录入}
% \changes{v1.9.0.0}{2022/05/03}{增加信息录入选项分类表}
% \changes{v1.10.3.1}{2022/05/04}{移除专业博士校外导师信息录入}
% 用户根据\tabrefx{tblr:info}选择相应的选项进行信息录入。
% \begin{tblr}
% [
% long,
% caption = {信息录入选项分类},
% label = {tblr:info}
% ]
% {
% width = \linewidth,
% colspec = lX[c]X[c]X[c]X[c]X[c]X[c],
% cell{1}{1} = {r = 2}{},
% cell{1}{2} = {c = 2}{},
% cell{1}{4} = {c = 2}{},
% cell{1}{6} = {c = 2}{},
% hline{1,Z} = {.08em},
% hline{2} = {2-3}{.08em, leftpos = -1, rightpos = -1, endpos},
% hline{2} = {4-5}{.08em, leftpos = -1, rightpos = -1, endpos},
% hline{2} = {6-7}{.08em, leftpos = -1, rightpos = -1, endpos},
% hline{3} = {.08em},
% cell{odd[3-Z]}{1-Z} = {gray9},
% cell{3-Z}{1} = {cmd = \texttt},
% rowhead = 2
% }
% & 本科 & & 硕士 & & 博士 & \\
% & 校内 & 校外 & 学术 & 专业 & 学术 & 专业 \\
% graduate-type & & & \cmark & \cmark & \cmark & \cmark \\
% degree-type & & & \cmark & \cmark & \cmark & \cmark \\
% degree & & & \cmark & \cmark & \cmark & \cmark \\
% degree* & & & & \cmark & & \\
% title & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
% title* & & & \cmark & \cmark & \cmark & \cmark \\
% department & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
% major & \cmark & \cmark & \cmark & & \cmark & \\
% major* & & & \cmark & & \cmark & \\
% sub-major & & & \cmark & & \cmark & \\
% domain & & & & \cmark & & \cmark \\
% author & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
% author* & & & \cmark & \cmark & \cmark & \cmark \\
% supervisor & \cmark & & \cmark & \cmark & \cmark & \cmark \\
% supervisor* & & & \cmark & \cmark & \cmark & \cmark \\
% supervisor-department & \cmark & & & & & \\
% supervisor-enterprise & & \cmark & & \cmark & & \\
% supervisor-enterprise* & & & & \cmark & & \\
% supervisor-school & & \cmark & & & & \\
% supervisor-title & & & \cmark & \cmark & \cmark & \cmark \\
% supervisor-title* & & & \cmark & \cmark & \cmark & \cmark \\
% supervisor-enterprise-title & & & & \cmark & & \\
% supervisor-enterprise-title* & & & & \cmark & & \\
% class-id & \cmark & \cmark & & & & \\
% student-id & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
% clc & & & \cmark & \cmark & \cmark & \cmark \\
% secret-level & & & \cmark & \cmark & \cmark & \cmark \\
% submit-date & & & \cmark & \cmark & \cmark & \cmark \\
% abstract & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
% abstract* & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
% keywords & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
% keywords* & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
% acknowledgements & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
% \end{tblr}
% \changes{v1.9.0.0}{2022/05/03}{增加研究生信息录入选项文档}
% \begin{function}[added=2022-05-02,updated=2022-05-03]{info/graduate-type}
% \begin{syntax}
% \optx{info/graduate-type}=\metax{(硕士)|博士}
% \end{syntax}
% 设置研究生类型。
% \end{function}
% \begin{optdesc}
% \item[硕士] 硕士研究生。
% \item[博士] 博士研究生。
% \end{optdesc}
% \begin{function}[added=2022-05-03]{info/degree-type}
% \begin{syntax}
% \optx{info/degree-type}=\metax{(学术)|专业}
% \end{syntax}
% 设置研究生学位类型。
% \end{function}
% \begin{optdesc}
% \item[学术] 学术学位。
% \item[专业] 专业学位。
% \end{optdesc}
% \begin{function}[added=2022-05-03]{info/degree,info/degree*}
% \begin{syntax}
% \optx{info/degree}=\argx{研究生学位类别中文名称}
% \optx{info/degree*}=\argx{研究生学位类别英文名称}
% \end{syntax}
% 设置研究生学位类别。
% \end{function}
% \begin{function}[added=2022-04-01,updated=2022-05-03]{info/title,info/title*}
% \begin{syntax}
% \optx{info/title}=\argx{论文中文标题}
% \optx{info/title*}=\argx{论文英文标题}
% \end{syntax}
% 设置论文标题。如果需要手动制定换行位点,请使用换行控制符(|\\|),最多两行。
% \end{function}
% \begin{function}[added=2022-04-01]{info/department}
% \begin{syntax}
% \optx{info/department}=\argx{院系名称}
% \end{syntax}
% 设置院系名称。
% \end{function}
% \begin{function}[added=2022-04-01,updated=2022-05-03]{info/major,info/major*}
% \begin{syntax}
% \optx{info/major}=\argx{专业名称/一级学科名称}
% \optx{info/major*}=\argx{一级学科英文名称}
% \end{syntax}
% 设置专业名称/一级学科名称。
% \end{function}
% \begin{function}[added=2022-05-03]{info/sub-major}
% \begin{syntax}
% \optx{info/sub-major}=\argx{二级学科名称}
% \end{syntax}
% 设置二级学科名称。
% \end{function}
% \begin{function}[added=2022-05-03]{info/domain}
% \begin{syntax}
% \optx{info/domain}=\argx{领域}
% \end{syntax}
% 设置领域名称。
% \end{function}
% \begin{function}[added=2022-04-01,updated=2022-05-03]{info/author,info/author*}
% \begin{syntax}
% \optx{info/author}=\argx{作者姓名}
% \optx{info/author*}=\argx{作者姓名拼音}
% \end{syntax}
% 设置作者姓名。
% \end{function}
% \begin{function}[added=2022-04-01,updated=2022-05-03]{info/supervisor,info/supervisor*}
% \begin{syntax}
% \optx{info/supervisor}=\argx{导师姓名}
% \optx{info/supervisor*}=\argx{导师姓名拼音}
% \end{syntax}
% 设置导师姓名。
% \end{function}
% \begin{function}[added=2022-04-01]{info/supervisor-department}
% \begin{syntax}
% \optx{info/supervisor-department}=\argx{院内导师姓名}
% \end{syntax}
% 设置院内导师姓名。
% \end{function}
% \begin{function}[added=2022-04-01,updated=2022-05-03]{info/supervisor-enterprise,info/supervisor-enterprise*}
% \begin{syntax}
% \optx{info/supervisor-enterprise}=\argx{校外导师姓名}
% \optx{info/supervisor-enterprise*}=\argx{校外导师姓名拼音}
% \end{syntax}
% 设置校外导师姓名。
% \end{function}
% \begin{function}[added=2022-04-01]{info/supervisor-school}
% \begin{syntax}
% \optx{info/supervisor-school}=\argx{校内导师姓名}
% \end{syntax}
% 设置校内导师姓名。
% \end{function}
% \begin{function}[added=2022-05-03]{info/supervisor-title,info/supervisor-title*}
% \begin{syntax}
% \optx{info/supervisor-title}=\argx{导师职称}
% \optx{info/supervisor-title*}=\argx{导师职称英文名称}
% \end{syntax}
% 设置导师职称。
% \end{function}
% \begin{function}[added=2022-05-03]{info/supervisor-enterprise-title,info/supervisor-enterprise-title*}
% \begin{syntax}
% \optx{info/supervisor-enterprise-title}=\argx{校外导师职称}
% \optx{info/supervisor-enterprise-title*}=\argx{校外导师职称英文名称}
% \end{syntax}
% 设置校外导师职称。
% \end{function}
% \begin{function}[added=2022-04-01]{info/class-id}
% \begin{syntax}
% \optx{info/class-id}=\argx{作者班级号}
% \end{syntax}
% 设置作者班级号。
% \end{function}
% \begin{function}[added=2022-04-01]{info/student-id}
% \begin{syntax}
% \optx{info/student-id}=\argx{作者学号}
% \end{syntax}
% 设置作者学号。
% \end{function}
% \begin{function}[added=2022-05-03]{info/clc}
% \begin{syntax}
% \optx{info/clc}=\argx{中图分类号}
% \end{syntax}
% 设置中图分类号。
% \end{function}
% \begin{function}[added=2022-05-03]{info/secret-level}
% \begin{syntax}
% \optx{info/secret-level}=\metax{秘密|(公开)}
% \end{syntax}
% 设置密级。
% \end{function}
% \begin{function}[added=2022-05-03]{info/submit-date}
% \begin{syntax}
% \optx{info/submit-date}=\argx{提交日期}
% \end{syntax}
% 设置提交日期。
% \end{function}
% \begin{function}[added=2022-04-02]{info/abstract,info/abstract*}
% \begin{syntax}
% \optx{info/abstract}=\argx{中文摘要文件路径}
% \optx{info/abstract*}=\argx{英文摘要文件路径}
% \end{syntax}
% 设置摘要文件路径,相应文件内仅撰写摘要内容,无需任何环境。
% \end{function}
% \begin{function}[added=2022-04-02]{info/keywords,info/keywords*}
% \begin{syntax}
% \optx{info/keywords}=\argx{中文关键词}
% \optx{info/keywords*}=\argx{英文关键词}
% \end{syntax}
% 设置关键词,关键词之间需要使用英文半角逗号隔开。
% \end{function}
% \begin{function}[added=2022-04-02]{info/acknowledgements}
% \begin{syntax}
% \optx{info/acknowledgements}=\argx{致谢文件路径}
% \end{syntax}
% 设置致谢文件路径,相应文件内仅撰写致谢内容,无需任何环境。
% \end{function}
% \section{贡献者}
% \xduts{}的开发过程中,维护者为
% \href{https://github.com/note286/}{\ttfamily @note286}。
% 同时,也要感谢所有在GitHub和睿思上提出问题的同学、老师们。
% \xduts{}的持续发展,离不开你们的帮助与支持。
% \section{致谢}
% 在学习文学编程的过程中,
% 《在\LaTeX{}中进行文学编程》\footurl{https://liam.page/2015/01/23/literate-programming-in-latex/}
% 和《Good things come in little packages: An introduction to writing .ins and .dtx files》\footurl{https://www.tug.org/TUGboat/tb29-2/tb92pakin.pdf}
% 提供了很大帮助。
% 在文档的编写过程中,参考了
% \filex{ctex.dtx}\footctan{language/chinese/ctex/ctex.dtx}、
% \filex{fduthesis.dtx}\footctan{macros/latex/contrib/fduthesis/fduthesis.dtx}、
% \filex{njuthesis.dtx}\footctan{macros/unicodetex/latex/njuthesis/njuthesis.dtx}
% 和\filex{thuthesis.dtx}\footctan{macros/latex/contrib/thuthesis/thuthesis.dtx}。
% \clearpage
% \section{代码实现}
% \changes{v0.1.0.0}{2022/04/03}{基本完成本科毕业设计论文模板}
% \setlength\parindent{0pt}
% \begin{macrocode}
%<@@=xdu>
% \end{macrocode}
% \subsection{文档类和宏包}
% \begin{macrocode}
%<*class|sty>
% \end{macrocode}
% \begin{macrocode}
\RequirePackage { xparse, l3keys2e }
% \end{macrocode}
% \begin{macro}{\PassOptionsToPackage}
% 忽略字体警告。
% \begin{macrocode}
\PassOptionsToPackage { quiet } { xeCJK }
% \end{macrocode}
% \end{macro}
% \begin{macrocode}
%</class|sty>
%<*class>
% \end{macrocode}
% \begin{macro}{\PassOptionsToClass,\LoadClass}
% \changes{v0.3.2.0}{2022/04/04}{修正行间距为1.5倍}
% \changes{v1.8.1.0}{2022/05/03}{修正页面尺寸}
% \changes{v1.9.2.0}{2022/05/04}{修正行间距为1.625倍}
% 加载\clsx{ctexbook}文档类。
% \\
% \LaTeX{}中基本行距是字号大小的1.2倍,Microsoft Word中基本行距是字号大小的1.3倍,
% Microsoft Word中1.5倍行距,相当于LaTeX中$1.5\times\frac{1.3}{1.2}=1.625$倍行距。
% \begin{macrocode}
\PassOptionsToClass
{
a4paper,
zihao=-4,
sub4section,
%<xduugthesis> linespread = 1.625,
fontset = none
}
{ ctexbook }
\LoadClass { ctexbook }
% \end{macrocode}
% \end{macro}
% 设置纸张尺寸为A4。
% \begin{macrocode}
\RequirePackage { geometry }
\geometry { paper = a4paper }
% \end{macrocode}
% \begin{macrocode}
%</class>
%<*thesis>
% \end{macrocode}
% \begin{macrocode}
\RequirePackage { fancyhdr }
\RequirePackage { xeCJKfntef }
\RequirePackage { graphicx }
% \end{macrocode}
% \begin{macrocode}
%</thesis>
%<*xdufont>
% \end{macrocode}
% \begin{macrocode}
\RequirePackage { xeCJK }
% \end{macrocode}
% \begin{macrocode}