Debian Codegraph @

texmf-dist/source/xelatex/xduts/xduts.dtx

raw
1 % \iffalse
2 %<*driver>
3 \ProvidesFile{xduts.dtx}
4 [2025/04/26 v6.2.7.2 Xidian University TeX Suite]
5 %</driver>
6 %<class|sty>\NeedsTeXFormat{LaTeX2e}
7 %<class|sty>\RequirePackage{expl3}
8 %<xdufont>\ProvidesExplPackage{xdufont}
9 %<xduugtp>\ProvidesExplClass{xduugtp}
10 %<xdupgthesis>\ProvidesExplClass{xdupgthesis}
11 %<xduugthesis>\ProvidesExplClass{xduugthesis}
12 %<class|sty> {2025/04/26}{6.2.7.2}
13 %<xdufont> {Xidian University Font package}
14 %<xduugtp> {Xidian University Undergraduate Thesis Proposal class}
15 %<xdupgthesis> {Xidian University Postgraduate Thesis document class}
16 %<xduugthesis> {Xidian University Undergraduate Thesis document class}
17 %<*driver>
18 \PassOptionsToPackage{AutoFakeBold=3}{xeCJK}
19 \RequirePackage{silence}
20 \WarningsOff[hyperref,tocloft,latexfont]
21 \renewcommand{\message}[1]{}
22 \documentclass{ctxdoc}
23 \changes{v4.3.0.2}{2023/01/30}{移除文档编译警告和消息}
24 \changes{v1.9.0.0}{2022/05/03}{支持中文选项默认值加粗}
25 \changes{v1.9.0.0}{2022/05/03}{增大function环境盒子宽度}
26 \addtolength{\marginparwidth}{5mm}
27 \geometry{hmargin={0mm,10mm}}
28 \changes{v0.6.0.0}{2022/04/10}{增加xdufont宏包}
29 \changes{v0.5.2.1}{2022/04/09}{修改项目名称}
30 \changes{v0.4.2.1}{2022/04/05}{调整文档目录缩进}
31 \usepackage{tocloft}
32 \setlength{\cftsecindent}{0em}
33 \setlength{\cftsubsecindent}{1em}
34 \setlength{\cftsubsubsecindent}{2em}
35 \setlength{\cftparaindent}{3em}
36 \setlength{\cftsubparaindent}{4em}
37 \ctexset{
38 secnumdepth = 5,
39 subparagraph = {
40 afterskip = 1ex plus .2ex,
41 runin = false
42 }
43 }
44 \setcounter{tocdepth}{5}
45 \ctexset{punct=quanjiao}
46 \usepackage{pifont}
47 \newcommand{\cmark}{\ding{51}}
48 \usepackage{subcaption}
49 \changes{v5.1.0.1}{2023/02/22}{修改文档内表格样式}
50 \DeclareCaptionLabelSeparator{customskip}{\hskip.75em}
51 \captionsetup{font=bf,labelsep=customskip}
52 \usepackage{tabularray}
53 \changes{v2.16.1.3}{2022/11/27}{修改文档中caption字体样式}
54 \setlength{\intextsep}{\the\abovecaptionskip}
55 \SetTblrOuter[tblr,longtblr]{presep=\belowcaptionskip+\intextsep,headsep=\abovecaptionskip}
56 \SetTblrStyle{caption-tag}{font=\bfseries}
57 \SetTblrStyle{caption-text}{font=\bfseries}
58 \DefTblrTemplate{caption-sep}{default}{\hskip.75em}
59 \DefTblrTemplate{conthead-text}{default}{\textbf{(续表)}}
60 \DefTblrTemplate{contfoot-text}{default}{\textbf{接下页}}
61 \changes{v6.1.2.1}{2023/03/09}{修改文档交叉引用样式}
62 \changes{v4.4.5.1}{2023/02/11}{移除文档对xspace的依赖}
63 % 交叉引用
64 \NewDocumentCommand{\secrefx}{m}{第\nobreakspace\ref{#1}\nobreakspace{}节}
65 \NewDocumentCommand{\tabrefx}{mO{\space}}{表\nobreakspace\ref{#1}#2}
66 \NewDocumentCommand{\figrefx}{mO{\space}}{图\nobreakspace\ref{#1}#2}
67 % 选项
68 \NewDocumentCommand{\optx}{O{\space}mO{\space}}{#1{\ttfamily\seqsplit{#2}}#3}
69 % \name LaTeX3控制序列
70 \NewDocumentCommand{\csx}{O{\space}mO{\space}}{#1\cs{#2}#3}
71 % \name LaTeX2e命令
72 \NewDocumentCommand{\tnx}{O{\space}mO{\space}}{#1\tn{#2}#3}
73 % <name> 键值
74 \NewDocumentCommand{\metax}{O{\space}mO{\space}}{#1\meta{#2}#3}
75 % LaTeX3键值对
76 \newcommand{\breakablethinspace}{\hskip.16667em\relax}
77 \NewDocumentCommand{\kvoptx}{O{\space}mmO{\space}}{#1\texttt{#2\breakablethinspace=\breakablethinspace#3}#4}
78 % {<name>} 必选参数
79 \NewDocumentCommand{\margx}{O{\space}mO{\space}}{#1\marg{#2}#3}
80 % [<name>] 可选参数
81 \NewDocumentCommand{\oargx}{O{\space}mO{\space}}{#1\oarg{#2}#3}
82 % 文件
83 \usepackage{seqsplit}
84 \NewDocumentCommand{\filex}{O{\space}mO{\space}}{#1{\ttfamily\seqsplit{#2}}#3}
85 % 环境
86 \NewDocumentCommand{\envx}{O{\space}mO{\space}}{#1\env{#2}#3}
87 % 宏包
88 \NewDocumentCommand{\pkgx}{O{\space}mO{\space}}{#1\pkg{#2}#3}
89 % 文档类
90 \NewDocumentCommand{\clsx}{O{\space}mO{\space}}{#1\cls{#2}#3}
91 % 值
92 \NewDocumentCommand{\valuex}{O{\space}mO{\space}}{#1{\ttfamily\seqsplit{#2}}#3}
93 % 程序
94 \NewDocumentCommand{\cmdx}{O{\space}mO{\space}}{#1{\ttfamily\seqsplit{#2}}#3}
95 % 链接
96 \NewDocumentCommand{\footurl}{m}{\footnote{\url{#1}}}
97 \NewDocumentCommand{\footctan}{m}{\footnote{\href{https://mirrors.cloud.tencent.com/CTAN/#1}{\ttfamily CTAN://#1}}}
98 % logo
99 \changes{v4.1.1.1}{2023/01/21}{修正LOGO字形高度}
100 \newfontfamily{\ffmfamily}[Scale=MatchUppercase]{ffmb10.otf}
101 \NewDocumentCommand{\xduts}{O{\space}mO{\space}}{#1{\ffmfamily XDUTS}#3}
102 \NewDocumentCommand{\bibtex}{O{\space}mO{\space}}{#1\hologo{BibTeX}#3}
103 \NewDocumentCommand{\biblatex}{O{\space}mO{\space}}{#1 Bib\LaTeX #3}
104 % arguments list
105 \setlist[arguments]{label=\texttt{\#\arabic*}\,:}
106 % 浮动体默认设置
107 \makeatletter
108 \renewcommand{\fps@table}{htbp}
109 \makeatother
110 % listings
111 \changes{v2.14.1.2}{2022/11/23}{修改示例代码缩进}
112 \changes{v2.14.1.1}{2022/11/22}{修改示例代码样式}
113 \usepackage{listings}
114 \lstset{
115 language = [LaTeX]TeX,
116 gobble = 1,
117 basewidth = 0.5em,
118 breaklines = true,
119 basicstyle = \small\ttfamily,
120 backgroundcolor = \color{gray9!25},
121 texcsstyle = *[1]{\color{brown3}},
122 texcsstyle = *[2]{\color{teal3}},
123 texcsstyle = *[3]{\color{azure3}},
124 texcsstyle = *[4]{\color{violet3}},
125 texcsstyle = *[5]{\color{yellow3}},
126 emphstyle = [6]{\color{blue3}},
127 texcs = [1]{documentclass,usepackage},
128 texcs = [2]{begin,end},
129 texcs = [3]{part,chapter,section,subsection,subsubsection,paragraph,subparagraph},
130 texcs = [4]{xdusetup,anon,noauxwrite},
131 texcs = [5]{textbf,textsl,textsf,par,item,caption,parencite},
132 emph = [6]{document,tabular,edubg,resresult,appendixes},
133 literate = {\$}{{\textcolor{purple3}{\$}}}{1}
134 {\{}{{\textcolor{purple3}{\{}}}{1}
135 {\}}{{\textcolor{purple3}{\}}}}{1}
136 {[}{{\textcolor{purple3}{[}}}{1}
137 {]}{{\textcolor{purple3}{]}}}{1}
138 {=}{{\textcolor{purple3}{=}}}{1}
139 {\&}{{\textcolor{purple3}{\&}}}{1}
140 {\\\\}{{\textcolor{purple3}{\textbackslash{}\textbackslash{}}}}{2}
141 }
142 \changes{v2.14.1.2}{2022/11/23}{增加示例代码换行符高亮}
143 \makeatletter
144 \lst@AddToHook{SelectCharTable}
145 {\ifx\lst@literate\@empty\else\expandafter\lst@Literate\lst@literate{}\relax\z@\fi}
146 \makeatother
147 \RenewDocumentCommand{\floatpagefraction}{}{.8}
148 \usepackage[nolinks]{qrcode}
149 \usepackage{fontawesome5}
150 \usepackage{tikz}
151 \changes{v3.1.1.1}{2022/12/04}{手册首页增加水印}
152 \usepackage[firstpageonly=true]{draftwatermark}
153 \DraftwatermarkOptions{angle=45,fontsize=40pt,color={gray9!25}}
154 \ExplSyntaxOn
155 \SetWatermarkText{\prg_replicate:nn{18}{\prg_replicate:nn{6}{\xduts[]{}[]~}\xduts[]{}[]\\[30pt]}}
156 \ExplSyntaxOff
157 \begin{document}
158 \changes{v2.18.1.1}{2022/12/01}{隐藏源码、版本和索引}
159 \OnlyDescription
160 \DocInput{\jobname.dtx}
161 % \IndexLayout
162 % \PrintChanges
163 % \PrintIndex
164 \end{document}
165 %</driver>
166 % \fi
167 % \GetFileInfo{\jobname.dtx}
168 % \title{\bfseries\xduts[]{}手册}
169 % \hypersetup{pdftitle=XDUTS手册}
170 % \author{\href{https://github.com/note286/}{note286}}
171 % \date{\href{https://github.com/note286/xduts/releases/tag/\fileversion/}{\fileversion}~(\filedate)}
172 % \maketitle
173 % \thispagestyle{empty}
174 % \begin{abstract}
175 % \xduts[]{}是面向西安电子科技大学本科生/研究生的\LaTeXiii{}宏包和文档类套装,
176 % 仅支持\XeLaTeX{},
177 % 仅支持\TeXLive{}、Mac\TeX{}、\MiKTeX{},
178 % 支持Windows、macOS、GNU/Linux、Overleaf和TeXPage。
179 % \end{abstract}
180 % \changes{v4.4.5.4}{2023/02/11}{更新许可证版本号}
181 % \renewcommand{\abstractname}{免责声明}
182 % \begin{abstract}
183 % 在使用\xduts{}时,默认你同意以下内容:
184 % \begin{enumerate}
185 % \item \xduts[]{}作者不对使用\xduts{}产生的格式审查问题负责。
186 % \item \xduts[]{}的发布遵守\LaTeX{} Project Public License Version 1.3c或更高版本\footurl{https://www.latex-project.org/lppl.txt}。
187 % \item 任何个人或组织以\xduts{}为基础进行修改或扩展生成新的\LaTeX{}宏包/文档类,
188 % 请严格遵守\LaTeX{} Project Public License,
189 % 由于违犯协议而引起的任何纠纷争端均与\xduts{}作者无关。
190 % \end{enumerate}
191 % \end{abstract}
192 % \clearpage
193 % \begin{documentation}
194 % \changes{v2.12.1.1}{2022/07/28}{使用\clsx{l3doc}文档和实现环境}
195 % \section*{\contentsname\markright{\contentsname}}
196 % \makeatletter
197 % \@starttoc{toc}
198 % \makeatother
199 % \clearpage
200 % \changes{v4.4.5.2}{2023/02/11}{调整文档介绍顺序}
201 % \changes{v2.14.1.3}{2022/11/23}{修改文档措辞}
202 % \section{介绍}
203 % \xduts[]{}(Xidian University \TeX{} Suite)
204 % 是为了帮助西安电子科技大学本科生/研究生撰写开题报告/学位论文及其他文档
205 % 而编写的\LaTeXiii{}宏包和文档类套装,目前有:
206 % \begin{itemize}
207 % \item \pkgx[]{xdufont.sty}[],中/英/数学字体配置宏包。
208 % \item \clsx[]{xduugtp.cls}[],本科生毕业设计论文开题报告文档类。
209 % \item \clsx[]{xduugthesis.cls}[],本科生毕业设计论文文档类。
210 % \item \clsx[]{xdupgthesis.cls}[],研究生学位论文文档类。
211 % \end{itemize}
212 % 即将支持:
213 % \begin{itemize}
214 % \item \clsx[]{xdupgtp.cls}[],研究生学位论文开题报告文档类。
215 % \end{itemize}
216 % \par
217 % \changes{v1.2.0.1}{2022/04/19}{增加GitHub Discussions}
218 % 本文档将尽量完整地介绍\xduts{}的使用方法,
219 % 如有不清楚之处,或者想提出改进建议,
220 % 可以在GitHub Discussions\footurl{https://github.com/note286/xduts/discussions/}
221 % 参与讨论或提问。
222 % 如确定\xduts{}存在bug,
223 % 可以在GitHub Issues\footurl{https://github.com/note286/xduts/issues/}
224 % 具体描述。另外,\textbf{不接受任何Pull Requests}。
225 % \changes{v6.2.7.1}{2025/04/26}{移除贡献者和致谢并修改赞助位置}
226 % \changes{v4.0.1.1}{2022/12/12}{增加支付宝红包二维码}
227 % \changes{v3.1.1.3}{2022/12/10}{二维码增加图标}
228 % \changes{v3.1.1.2}{2022/12/06}{增加QQ支付二维码}
229 % \changes{v2.16.1.2}{2022/11/27}{修正文档中图片引用间距}
230 % \changes{v2.15.0.1}{2022/11/26}{增加赞助二维码}
231 % \section{赞助}
232 % \xduts[]{}为公益项目,由开发者利用业余时间无偿维护。
233 % 若\xduts{}对您有所帮助,欢迎通过\figrefx{fig:zanzhu}中的二维码赞助支持,
234 % 并备注\xduts{}或其他相关字样以便于确认款项来源。
235 % 您的每一份支持都将直接用于模板的持续优化与问题解答,感谢助力开源项目发展!
236 % \ExplSyntaxOn
237 % \str_set_convert:Nnnn \l_xduts_email_address_str {%
238 % 6e6f746532383640666f786d61696c2e636f6d} { utf8/hex } { }
239 % \newcommand{\emailaddress}{\str_use:N \l_xduts_email_address_str}
240 % \ExplSyntaxOff
241 % \par
242 % 另外,如需个性化\LaTeX{}技术支持,包括但不限于\xduts{}一对一技术支持、
243 % Word转\LaTeX{}、论文排版优化、其他\LaTeX{}相关技术咨询等,
244 % 欢迎通过邮箱\texttt{\emailaddress}联系,将根据具体需求提供专业的技术支持。
245 % \ExplSyntaxOn
246 % \str_set_convert:Nnnn \l_xduts_alipay_red_packet_qr_str {%
247 % 68747470733A2F2F71722E616C697061792E636F6D2F31317731333035336232617236757438%
248 % 71386C6A323062} { utf8/hex } { }
249 % \newcommand{\alipayredpacketqr}{\str_use:N \l_xduts_alipay_red_packet_qr_str}
250 % \str_set_convert:Nnnn \l_xduts_alipay_qr_str {%
251 % 68747470733A2F2F71722E616C697061792E636F6D2F666B7831353935393164716575747463%
252 % 77626175726235} { utf8/hex } { }
253 % \newcommand{\alipayqr}{\str_use:N \l_xduts_alipay_qr_str}
254 % \str_set_convert:Nnnn \l_xduts_wxp_qr_str {%
255 % 7778703A2F2F6632663074504D4D506D3161616467483665396162527030446E317746337344%
256 % 6C6468764350382D66765346424577} { utf8/hex } { }
257 % \newcommand{\wxpqr}{\str_use:N \l_xduts_wxp_qr_str}
258 % \str_set_convert:Nnnn \l_xduts_qq_qr_str {%
259 % 68747470733A2F2F692E7169616E62616F2E71712E636F6D2F77616C6C65742F737172636F64%
260 % 652E68746D3F6D3D74656E70617926613D3126753D313138333133313434372661633D434145%
261 % 517438365574415159343457366E415934414549675A4755775A6D51314D6A55784E3249354E%
262 % 32566A4D4455794E445A684D32457A4D6A45325A6A55314E7A512533445F7878785F7369676E%
263 % 266E3D4361726F6C26663D77616C6C6574 } { utf8/hex } { }
264 % \newcommand{\qqqr}{\str_use:N \l_xduts_qq_qr_str}
265 % \ExplSyntaxOff
266 % \definecolor{alipayredpacketc}{RGB}{198,48,56}
267 % \definecolor{alipayc}{RGB}{22,120,255}
268 % \definecolor{weixinc}{RGB}{7,193,96}
269 % \definecolor{qqc}{RGB}{18,184,246}
270 % \NewDocumentCommand{\qrcodex}{mmm}{
271 % \begin{tikzpicture}
272 % \node at (0,0) {\textcolor{#3!30}{\qrcode[height=.21\textwidth]{#1}}};
273 % \node at (current bounding box.center) {\textcolor{#3}{\scalebox{2.1}{\faIcon{#2}}}};
274 % \end{tikzpicture}
275 % }
276 % \begin{figure}[htbp]
277 % \centering
278 % \mbox{}\hfill
279 % \subcaptionbox{扫码领红包}{\qrcodex{\alipayredpacketqr}{alipay}{alipayredpacketc}}\hfill
280 % \subcaptionbox{支付宝}{\qrcodex{\alipayqr}{alipay}{alipayc}}\hfill
281 % \subcaptionbox{微信支付}{\qrcodex{\wxpqr}{weixin}{weixinc}}\hfill
282 % \subcaptionbox{QQ支付}{\qrcodex{\qqqr}{qq}{qqc}}
283 % \hfill\mbox{}
284 % \caption{赞助二维码}
285 % \label{fig:zanzhu}
286 % \end{figure}
287 % \section{使用说明}
288 % \label{使用说明}
289 % 《一份(不太)简短的\LaTeXe{}介绍》\footctan{info/lshort/chinese/lshort-zh-cn.pdf}
290 % 中提及的内容本文档将不再赘述。
291 % 此外,在\secrefx{使用建议}中给出了部分使用建议。
292 % \xduts[]{}中的所有宏包和文档类仅内置了实现功能所需的宏包,
293 % 对于常用的宏包如\pkgx{subcaption}[]、\pkgx[]{algorithm}[]、\pkgx[]{algpseudocodex}[]、^^A
294 % \pkgx[]{amsmath}[]、\pkgx[]{theorem}和\pkgx{siunitx}等\textbf{均未内置},
295 % 用户可以参考\secrefx{兼容性说明}视需求自行加载。
296 % 相应格式规范均已实现,用户仅需要撰写文章内容即可,请勿随意添加格式修改命令。
297 % \changes{v1.1.2.1}{2022/04/15}{增加默认值说明}
298 % \textbf{部分样式的默认值并不严格符合学校规范},
299 % 用户可以结合学校规范并参考\secrefx{功能说明}功能说明自行修改。
300 % \par
301 % 请在最新版\LaTeX{}环境中使用最新版\xduts{}[],
302 % 认真阅读相应宏包/文档类使用说明章节后即可使用\xduts{}[]。
303 % \changes{v6.2.7.2}{2025/04/26}{修正xdufont使用范围说明}
304 % \changes{v6.0.1.1}{2023/03/04}{修正文档中部分标题书签字符}
305 % \subsection{\textsf{xdufont}宏包}
306 % \pkgx[]{xdufont}宏包基于\pkgx{xeCJK}宏包和\pkgx{unicode-math}宏包,
307 % 在中文字体配置方面相较于\pkgx{ctex}宏包的主要优势为默认支持宋体粗体、斜体,
308 % 内置多种字体配置,可任意搭配中/英/数学字体,更加符合校内各种文档的撰写要求。
309 % \par
310 % \pkgx[]{xdufont}宏包可以搭配除\xduts{}所包含的其他文档类进行使用,例如:
311 % \begin{lstlisting}
312 % \documentclass{article}
313 % \usepackage{xdufont}
314 % \xdusetup{}
315 % \begin{document}
316 % 宋体\textbf{加粗}\textsl{加斜}
317 % \textsf{黑体}\textbf{\textsf{加粗}}\textsl{\textsf{加斜}}
318 % \end{document}
319 % \end{lstlisting}
320 % \par
321 % \secrefx{编译}介绍了如何编译,\secrefx{参数设置}介绍了如何自定义配置,具体的配置选项见\secrefx{字体选项}。
322 % \par
323 % 学会以上用法后即可使用\pkgx{xdufont}宏包。
324 % \subsection{\textsf{xduugtp}文档类}
325 % \clsx[]{xduugtp}文档类基于\clsx{ctexart}文档类,
326 % 提供多种字体配置,信息录入便捷。
327 % 请在阅读《西安电子科技大学本科毕设设计(论文)开题报告》后再使用\clsx{xduugtp}文档类。
328 % \par
329 % 使用\clsx{xduugtp}文档类的最小示例如下所示:
330 % \begin{lstlisting}
331 % \documentclass{xduugtp}
332 % \xdusetup{}
333 % \begin{document}
334 % \section{论文名称及项目来源}
335 % \section{研究目的和意义}
336 % \section{国内外研究现状和发展趋势}
337 % \section{主要研究内容、要解决的问题及本文的初步方案}
338 % \section{工作的主要阶段、进度和完成时间}
339 % \section{已进行的前期准备工作}
340 % \section{指导教师意见}
341 % \section{学院审核意见}
342 % \end{document}
343 % \end{lstlisting}
344 % \par
345 % \secrefx{编译}介绍了如何编译,
346 % \secrefx{参考文献引用}介绍了如何引用参考文献,
347 % \secrefx{参数设置}介绍了如何自定义配置。
348 % 其中,字体选项见\secrefx{字体选项},
349 % 参考文献配置见\secrefx{参考文献配置},
350 % 支持的信息录入选项见\secrefx{信息录入}。
351 % \par
352 % 学会以上用法后即可使用\clsx{xduugtp}文档类。
353 % \subsection{\textsf{xduugthesis}文档类}
354 % \clsx[]{xduugthesis}文档类基于\clsx{ctexbook}文档类,
355 % 提供多种字体配置,部分样式可自定义,信息录入便捷。
356 % \changes{v1.3.1.1}{2022/04/26}{英文本科生毕业设计规范参考说明}
357 % 请在阅读《本科生毕业设计(论文)工作手册》后再使用\clsx{xduugthesis}文档类。
358 % \par
359 % 使用\clsx{xduugthesis}文档类的最小示例如下所示:
360 % \begin{lstlisting}
361 % \documentclass{xduugthesis}
362 % \xdusetup{}
363 % \begin{document}
364 % \chapter{欢迎}
365 % 使用\LaTeX{}!
366 % \end{document}
367 % \end{lstlisting}
368 % \par
369 % \changes{v1.30.0.1}{2022/06/20}{移除info录入示例}
370 % \secrefx{编译}介绍了如何编译,
371 % \secrefx{参考文献引用}介绍了如何引用参考文献,
372 % \secrefx{参数设置}介绍了如何自定义配置。
373 % 其中,字体选项见\secrefx{字体选项},
374 % 部分英文字体切换见\secrefx{英文字体},
375 % 标题数学字体配置见\secrefx{标题数学字体配置},
376 % 参考文献配置见\secrefx{参考文献配置},
377 % 页面配置见\secrefx{页面配置},
378 % \changes{v2.12.0.1}{2022/07/01}{本科生毕业设计增加文件配置}
379 % 文件配置见\secrefx{文件配置},
380 % 交叉引用配置见\secrefx{交叉引用配置},
381 % caption配置见\secrefx{caption配置},
382 % 图表配置见\secrefx{图表配置},
383 % 算法配置见\secrefx{算法配置},
384 % 章节配置见\secrefx{章节配置},
385 % 支持的信息录入选项见\secrefx{信息录入}。
386 % \par
387 % 学会以上用法后即可使用\clsx{xduugthesis}文档类。
388 % \changes{v1.4.0.0}{2022/04/26}{增加研究生学位论文}
389 % \changes{v1.30.0.2}{2022/06/20}{研究生学位论文文档}
390 % \changes{v2.2.1.1}{2022/06/23}{移除研究生学位论文中关于章节配置的文档}
391 % \subsection{\textsf{xdupgthesis}文档类}
392 % \clsx[]{xdupgthesis}文档类基于\clsx{ctexbook}文档类,
393 % 提供多种字体配置,部分样式可自定义,信息录入便捷。
394 % 请在阅读《西安电子科技大学研究生学位论文模板(2015年修订版)-2025.01修订》后再使用\clsx{xdupgthesis}文档类。
395 % 专业学位硕士请额外阅读《西安电子科技大学专业学位硕士学位论文封面及中英文题名页模板(2015年版)-2022.11修订》,
396 % 撰写英文学位论文请额外阅读《西安电子科技大学英文学位论文撰写相关规定》。
397 % \par
398 % 使用\clsx{xdupgthesis}文档类的最小示例如下所示:
399 % \begin{lstlisting}
400 % \documentclass{xdupgthesis}
401 % \xdusetup{}
402 % \begin{document}
403 % \chapter{欢迎}
404 % 使用\LaTeX{}!
405 % \end{document}
406 % \end{lstlisting}
407 % \par
408 % \secrefx{编译}介绍了如何编译,
409 % \secrefx{参考文献引用}介绍了如何引用参考文献,
410 % \secrefx{参数设置}介绍了如何自定义配置。
411 % 其中,字体选项见\secrefx{字体选项},
412 % 部分英文字体切换见\secrefx{英文字体},
413 % 标题数学字体配置见\secrefx{标题数学字体配置},
414 % 语言配置见\secrefx{语言配置},
415 % 参考文献配置见\secrefx{参考文献配置},
416 % 页面配置见\secrefx{页面配置},
417 % \changes{v2.12.0.1}{2022/07/01}{研究生学位论文增加文件配置}
418 % 文件配置见\secrefx{文件配置},
419 % 交叉引用配置见\secrefx{交叉引用配置},
420 % caption配置见\secrefx{caption配置},
421 % 图表配置见\secrefx{图表配置},
422 % 算法配置见\secrefx{算法配置},
423 % 对照表配置见\secrefx{对照表配置},
424 % 作者简介配置见\secrefx{作者简介配置}。
425 % 支持的信息录入选项见\secrefx{信息录入}。
426 % 页面和信息移除见\secrefx{页面和信息移除}。
427 % \par
428 % 学会以上用法后即可使用\clsx{xdupgthesis}文档类。
429 % 另外,在\secrefx{额外命令}和\secrefx{额外功能}中提供了部分额外命令和功能来增强排版效果。
430 % \changes{v1.3.0.1}{2022/04/20}{增加兼容性说明}
431 % \section{兼容性说明}
432 % \label{兼容性说明}
433 % \clsx[]{xduugthesis}和\clsx{xdupgthesis}文档类对部分常见宏包进行了针对性地适配,
434 % 需要注意的是,这些宏包仍需用户视需求自行加载。
435 % \subsection{算法}
436 % 主要适配算法内容字号和默认浮动位置。^^A
437 % \pkgx[]{algorithm}宏包提供了算法浮动体\envx{algorithm}环境,
438 % 可以搭配\pkgx{algpseudocodex}等宏包使用。^^A
439 % \pkgx[]{algorithm2e}宏包提供了算法环境,
440 % 该宏包提供的\envx{algorithm}环境实际将浮动体与算法内容合二为一。
441 % \subsection{图片}
442 % \changes{v1.13.5.1}{2022/05/08}{补充子图引用样式文档}
443 % 主要适配子图caption字体字号和子图引用样式,
444 % \changes{v1.4.1.1}{2022/04/27}{修正子图适配宏包名称}
445 % 包括\pkgx{subcaption}宏包和\pkgx{subfig}宏包。
446 % \subsection{表格}
447 % 主要适配表格内容字号,
448 % 包括所有使用\envx{table}浮动体的表格、^^A
449 % \pkgx[]{tabularray}宏包提供的\envx{tblr}[]、\envx[]{longtblr}环境
450 % 和\pkgx{longtable}宏包提供的\envx{longtable}环境。
451 % \changes{v4.1.1.0}{2023/01/16}{适配子表样式}
452 % 以及适配子表caption字体字号和子表引用样式,
453 % 包括\pkgx{subcaption}宏包和\pkgx{subfig}宏包。
454 % \changes{v4.4.5.5}{2023/02/15}{增加定理环境自定义建议}
455 % \changes{v4.0.0.1}{2022/12/11}{增加使用建议}
456 % \section{使用建议}
457 % \label{使用建议}
458 % 本节主要针对\clsx{xduugthesis}和\clsx{xdupgthesis}文档类提出使用建议,
459 % 用户仍可不遵守本节的建议并根据自己的偏好进行使用。
460 % \par
461 % 宏包方面,在\secrefx{兼容性说明}中提到已适配多种宏包。
462 % 但是,由于各种原因,部分宏包已不建议使用。
463 % 推荐使用\pkgx{algorithm}和\pkgx{algpseudocodex}宏包排版算法;
464 % 推荐使用\pkgx{subcaption}宏包排版子图和子表;
465 % 推荐使用\pkgx{tabularray}宏包排版\textbf{所有的表格};
466 % 推荐使用\pkgx{enumitem}宏包修改列表环境样式;
467 % 推荐使用\pkgx{theorem}宏包修改定理环境样式;
468 % 推荐使用\pkgx{siunitx}宏包排版单位。
469 % 另外,不要加载任何与参考文献和中英文字体相关的宏包。
470 % 使用宏包提供的功能时,\textbf{请阅读相应的宏包文档}。
471 % \par
472 % 字体方面,中文、英文和数学字体均提供了多种配置。
473 % 对于中英文字体,用户可以根据自己的喜好选择合适的配置,
474 % 部分配置对应的字体可能需要自行购买并安装。
475 % 对于数学字体,建议用户选择一个与英文字体搭配的数学字体。
476 % 注意,当使用非Computer Modern字体时,
477 % 部分命令(例如,加粗等)可能与传统方式不同,
478 % 请阅读\pkgx{unicode-math}宏包文档。
479 % \section{功能说明}
480 % \label{功能说明}
481 % 请根据\secrefx{使用说明}中相应宏包/文档类的说明来选择性地阅读本节内容。
482 % \subsection{编译}
483 % \label{编译}
484 % \changes{v0.5.1.2}{2022/04/07}{增加编译说明}
485 % \xduts[]{}仅支持\XeLaTeX{},
486 % 参考文献后端程序默认为\cmdx{biber}[],也可以参考\secrefx{参考文献配置}切换为\cmdx{bibtex}[]。
487 % \subsection{参考文献引用}
488 % \label{参考文献引用}
489 % \changes{v4.3.0.1}{2023/01/30}{修改文档中关于参考文献的描述}
490 % \xduts[]{}提供了两种参考文献处理方式,
491 % 一种是\pkgx{natbib}宏包搭配\pkgx{gbt7714}宏包,后端程序为\cmdx{bibtex}[];
492 % 另一种是\pkgx{biblatex}宏包,后端程序为\cmdx{biber}[]。
493 % 引用参考文献时,\tnx[]{cite}为上标样式,\tnx[]{parencite}为非上标样式。
494 % \subsection{参数设置}
495 % \label{参数设置}
496 % \changes{v6.2.6.2}{2025/03/18}{修改字体设置示例代码}
497 % \changes{v4.4.2.1}{2023/02/08}{修正接口文档说明样式}
498 % \changes{v0.5.1.1}{2022/04/06}{增加xdusetup配置文档}
499 % \changes{v1.30.0.1}{2022/06/20}{修改xdusetup配置文档}
500 % \begin{function}[added=2022-03-07]{\xdusetup}
501 % \begin{syntax}
502 % \tn{xdusetup}\marg{键值列表}
503 % \end{syntax}
504 % \xduts[]{}提供了一系列选项,可自行配置。
505 % 载入宏包/文档类之后,以下所有选项均可通过统一的命令\tnx{xdusetup}来设置。^^A
506 % \tnx[]{xdusetup}的参数是一组由(英文)逗号隔开的选项列表,
507 % 下文中尖括号内列出了若干个允许的选项,其中加粗的为默认选项。
508 % 列表中的选项通常是\kvoptx{\metax[]{key}[]}{\metax[]{value}[]}的形式。^^A
509 % \tnx[]{xdusetup}采用\LaTeXiii{}风格的键值设置,
510 % 支持不同类型以及多种层次的选项设定。
511 % 键值列表中,“|=|”左右的空格不影响设置;
512 % 但需注意,参数列表中不可以出现空行。
513 % 一些选项包含子选项,如\optx{style}和\optx{info}等,
514 % 它们可以按如下两种等价方式来设定:
515 % \end{function}
516 % \begin{lstlisting}
517 % \xdusetup{
518 % style = { cjk-font = win, latin-font = tac },
519 % info = {
520 % title = {论如何让用户\\认真阅读文档},
521 % author = {张三},
522 % department = {排版学院},
523 % abstract = {chapters/abstract-zh.tex},
524 % keywords* = {Dummy,Keywords,Here,it is}
525 % }
526 % }
527 % \end{lstlisting}
528 % 或者
529 % \begin{lstlisting}
530 % \xdusetup{
531 % style / cjk-font = win,
532 % style / latin-font = tac,
533 % info / title = {论如何让用户\\认真阅读文档},
534 % info / author = {张三},
535 % info / department = {排版学院},
536 % info / abstract = {chapters/abstract-zh.tex},
537 % info / keywords* = {Dummy,Keywords,Here,it is}
538 % }
539 % \end{lstlisting}
540 % \subsection{字体选项}
541 % \label{字体选项}
542 % \begin{function}[added=2022-03-06,updated=2023-02-20]{style/cjk-font}
543 % \begin{syntax}
544 % \opt{style/cjk-font} = adobe|(fandol)|founder|hanyi|sinotype|win|none
545 % \end{syntax}
546 % 设置中文字体,具体配置见\tabrefx{tab:cjk-font}[]。
547 % \end{function}
548 % \begin{optdesc}
549 % \item[adobe] \filex[]{adobesongstd-light.otf}[]、\filex[]{adobekaitistd-regular.otf}[]、\filex[]{adobeheitistd-regular.otf}和\filex{Adobe-Fangsong-Std-R-Font.otf}[]。
550 % \item[fandol] \filex[]{FandolSong-Regular.otf}[]、\filex[]{FandolSong-Bold.otf}[]、\filex[]{FandolKai-Regular.otf}[]、\filex[]{FandolHei-Regular.otf}[]、\filex[]{FandolHei-Bold.otf}和\filex{FandolFang-Regular.otf}[]。
551 % \item[founder] \filex[]{FZShuSong-Z01.ttf}[]、\filex[]{FZKai-Z03.ttf}[]、\filex[]{FZHei-B01.ttf}和\filex{FZFSK.TTF}[]。
552 % \item[hanyi] \filex[]{HYShuSongErS.ttf}[]、\filex[]{HYKaiTiS.ttf}[]、\filex[]{HYZhongHeiTiS.ttf}和\filex{HYFangSongS.ttf}[]。
553 % \item[sinotype] \filex[]{STSONG.TTF}[]、\filex[]{STKAITI.TTF}[]、\filex[]{STXIHEI.TTF}[]、\filex[]{STHeiti.ttf}和\filex{STFANGSO.TTF}[]。
554 % \item[win] \filex[]{simsun.ttc}[]、\filex[]{simkai.ttf}[]、\filex[]{simhei.ttf}和\filex{simfang.ttf}[]。
555 % \item[none] 关闭内置中文字体配置,需自行配置中文字体。
556 % \end{optdesc}
557 % \changes{v6.2.6.1}{2025/03/18}{适配tabularray选择器语法}
558 % \changes{v2.16.1.1}{2022/11/27}{修改中文字体配置表文档样式}
559 % \begin{table}
560 % \caption{中文字体配置}
561 % \label{tab:cjk-font}
562 % \begin{tblr}
563 % {
564 % width = \linewidth,
565 % colspec = {Q[c,m]*{4}{X[c,m]}},
566 % hline{1,3,Z} = {wd=.08em},
567 % hline{2} = {2-3}{wd=.08em,leftpos=-1,rightpos=-1,endpos=true},
568 % row{odd[3]} = {bg=gray9!40},
569 % cell{1}{2} = {c=2}{},
570 % cell{1}{1,4,5} = {r=2}{},
571 % cell{3-Z}{1} = {font=\ttfamily},
572 % row{1-2} = {font=\bfseries}
573 % }
574 % 选项名称 & 罗马族 & & 无衬线族 & 打字机族 \\
575 % & 直立/倾斜形状 & 意大利形状 & & \\
576 % adobe & Adobe 宋体 Std & Adobe 楷体 Std & Adobe 黑体 Std & Adobe 仿宋 Std \\
577 % fandol & FandolSong & FandolKai & FandolHei & FandolFang \\
578 % founder & 方正书宋\_GBK & 方正楷体\_GBK & 方正黑体\_GBK & 方正仿宋\_GBK \\
579 % hanyi & 汉仪书宋二S & 汉仪楷体S & 汉仪中黑S & 汉仪仿宋S \\
580 % sinotype & 华文宋体 & 华文楷体 & 华文细黑/黑体 & 华文仿宋 \\
581 % win & 中易宋体 & 中易楷体 & 中易黑体 & 中易仿宋 \\
582 % \end{tblr}
583 % \end{table}
584 % \begin{function}[added=2022-04-01]{style/cjk-fake-bold}
585 % \begin{syntax}
586 % \opt{style/cjk-fake-bold} = \meta{伪粗体粗细程度}
587 % \end{syntax}
588 % 设置中文字体伪粗体粗细程度。默认为\valuex{3}[],对于部分存在对应粗体字体的中文字体,如FandolSong和FandolHei等,该选项不生效。
589 % \end{function}
590 % \begin{function}[added=2022-04-01]{style/cjk-fake-slant}
591 % \begin{syntax}
592 % \opt{style/cjk-fake-slant} = \meta{伪斜体倾斜程度}
593 % \end{syntax}
594 % 设置中文字体伪斜体倾斜程度。默认为\valuex{0.2}[]。
595 % \end{function}
596 % \changes{v6.1.4.2}{2023/03/23}{补充TeX Live内置字体文件名}
597 % \changes{v5.4.0.1}{2023/02/23}{修正文档内英文字体配置表格错误}
598 % \begin{function}[added=2022-03-06,updated=2023-02-23]{style/latin-font}
599 % \begin{syntax}
600 % \opt{style/latin-font} = (gyre)|tac|tacn|tcc|thcs|tll|none
601 % \end{syntax}
602 % 设置英文字体,具体配置见\tabrefx{tab:latin-font}[]。
603 % \end{function}
604 % \begin{optdesc}
605 % \item[gyre] \filex[]{texgyretermes-regular.otf}[]、\filex[]{texgyretermes-bold.otf}[]、\filex[]{texgyretermes-italic.otf}[]、\filex[]{texgyretermes-bolditalic.otf}[]、\filex[]{texgyreheros-regular.otf}[]、\filex[]{texgyreheros-bold.otf}[]、\filex[]{texgyreheros-italic.otf}[]、\filex[]{texgyreheros-bolditalic.otf}[]、\filex[]{texgyrecursor-regular.otf}[]、\filex[]{texgyrecursor-bold.otf}[]、\filex[]{texgyrecursor-italic.otf}和\filex{texgyrecursor-bolditalic.otf}[]。
606 % \item[tac] \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}[]。
607 % \item[tacn] \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}[]。
608 % \item[tcc] \filex[]{times.ttf}[]、\filex[]{timesbd.ttf}[]、\filex[]{timesi.ttf}[]、\filex[]{timesbi.ttf}[]、\filex[]{cmunss.otf}[]、\filex[]{cmunsx.otf}[]、\filex[]{cmunsi.otf}[]、\filex[]{cmunso.otf}[]、\filex[]{cmuntt.otf}[]、\filex[]{cmuntb.otf}[]、\filex[]{cmunit.otf}和\filex{cmuntx.otf}。
609 % \item[thcs] \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}[]。
610 % \item[tll] \filex[]{times.ttf}[]、\filex[]{timesbd.ttf}[]、\filex[]{timesi.ttf}[]、\filex[]{timesbi.ttf}[]、\filex[]{LinBiolinum_R.otf}[]、\filex[]{LinBiolinum_RB.otf}[]、\filex[]{LinBiolinum_RI.otf}[]、\filex[]{LinBiolinum_RBO.otf}[]、\filex[]{LinLibertine_M.otf}[]、\filex[]{LinLibertine_MB.otf}[]、\filex[]{LinLibertine_MO.otf}和\filex{LinLibertine_MBO.otf}。
611 % \item[none] 关闭内置英文字体配置,需自行配置英文字体。
612 % \end{optdesc}
613 % \changes{v2.16.1.1}{2022/11/27}{修改英文字体配置表文档样式}
614 % \begin{table}
615 % \caption{英文字体配置}
616 % \label{tab:latin-font}
617 % \begin{tblr}
618 % {
619 % width = \linewidth,
620 % colspec = {Q[c,m]*{3}{X[-1,c,m]}},
621 % hline{1,2,Z} = {wd=.08em},
622 % row{even[2]} = {bg=gray9!40},
623 % cell{2-Z}{1} = {font=\ttfamily},
624 % row{1} = {font=\bfseries}
625 % }
626 % 选项名称 & 罗马族 & 无衬线族 & 打字机族 \\
627 % gyre & TeX Gyre Termes & TeX Gyre Heros & TeX Gyre Cursor \\
628 % tac & Times New Roman & Arial & Consolas \\
629 % tacn & Times New Roman & Arial & Courier New \\
630 % tcc & Times New Roman & CMU Sans Serif & CMU Typewriter Text \\
631 % thcs & Times New Roman & Helvetica & Courier Std \\
632 % tll & Times New Roman & Linux Biolinum O & Linux Libertine Mono O \\
633 % \end{tblr}
634 % \end{table}
635 % \begin{function}[added=2023-01-28]{style/latin-sans-scale,style/latin-mono-scale}
636 % \begin{syntax}
637 % \opt{style/latin-sans-scale} = upper|lower|(off)
638 % \opt{style/latin-mono-scale} = upper|lower|(off)
639 % \end{syntax}
640 % 匹配无衬线族和打字机族字符高度。
641 % \end{function}
642 % \begin{optdesc}
643 % \item[upper] 按大写字母的高度缩放以匹配罗马族字体。
644 % \item[lower] 按小写字母的高度缩放以匹配罗马族字体。
645 % \item[off] 不缩放。
646 % \end{optdesc}
647 % \begin{function}[added=2022-03-06,updated=2022-11-27]{style/math-font}
648 % \begin{syntax}
649 % \opt{style/math-font} = asana|cambria|(cm)|fira|garamond|lm|...|termes|xits|none
650 % \end{syntax}
651 % 设置数学字体,具体配置见\tabrefx{tab:math-font}[]。除Computer Modern字体外,均使用\pkgx{unicode-math}宏包调用字体。
652 % \end{function}
653 % \changes{v2.16.1.1}{2022/11/27}{修改数学字体配置表文档样式}
654 % \changes{v0.1.4.1}{2022/04/04}{数学字体风格介绍}
655 % \begin{optdesc}
656 % \item[cambria] \filex[]{cambria.ttc}[]。
657 % \item[none] 关闭内置数学字体配置,需自行配置数学字体。
658 % \end{optdesc}
659 % \begin{tblr}
660 % [
661 % long,
662 % caption = {数学字体配置},
663 % label = {tab:math-font}
664 % ]
665 % {
666 % width = \linewidth,
667 % colspec = {X[2,c,m]X[3,c,m]},
668 % hline{1,2,Z} = {wd=.08em},
669 % row{even[2]} = {bg=gray9!40},
670 % cell{2-Z}{1} = {font=\ttfamily},
671 % row{1} = {font=\bfseries},
672 % rowhead = 1
673 % }
674 % 选项名称 & 字体名称 \\
675 % asana & Asana Math \\
676 % cambria & Cambria Math \\
677 % cm & Computer Modern \\
678 % concrete & Concrete Math \\
679 % erewhon & Erewhon Math \\
680 % euler & Euler Math \\
681 % fira & Fira Math \\
682 % garamond & Garamond Math \\
683 % gfsneohellenic & GFS Neohellenic Math \\
684 % kp & KpMath \\
685 % libertinus & Libertinus Math \\
686 % lm & Latin Modern Math \\
687 % newcm & New Computer Modern Math \\
688 % stix2 & STIX Two Math \\
689 % stix & STIX Math \\
690 % xcharter & XCharter Math \\
691 % xits & XITS Math \\
692 % bonum & TeX Gyre Bonum Math \\
693 % dejavu & TeX Gyre DejaVu Math \\
694 % pagella & TeX Gyre Pagella Math \\
695 % schola & TeX Gyre Schola Math \\
696 % termes & TeX Gyre Termes Math \\
697 % \end{tblr}
698 % \begin{function}[added=2022-03-14]{style/unicode-math}
699 % \begin{syntax}
700 % \opt{style/unicode-math} = \marg{unicode-math宏包选项}
701 % \end{syntax}
702 % 修改\pkgx{unicode-math}默认选项,具体配置参考\pkgx{unicode-math}宏包文档,仅在数学字体不为Computer Modern时有效。
703 % \end{function}
704 % \begin{function}[added=2022-03-07]{style/font-type}
705 % \begin{syntax}
706 % \opt{style/font-type} = (font)|file
707 % \end{syntax}
708 % 设置字体调用方式。
709 % \end{function}
710 % \begin{optdesc}
711 % \item[font] 相应字体已安装,使用字体名称调用字体。
712 % \item[file] 相应字体未安装,使用字体文件名称调用字体,适合Overleaf或TeXPage等在线平台,或不方便安装字体的情况。
713 % \end{optdesc}
714 % \begin{function}[added=2022-03-07]{style/font-path}
715 % \begin{syntax}
716 % \opt{style/font-path} = \marg{路径}
717 % \end{syntax}
718 % 设置字体文件路径,即\metax{路径}目录内存储全部所需中文、英文和数学字体文件,仅在\optx{font-type}等于|file|时有效,默认值为\valuex{fonts}[]。
719 % \end{function}
720 % \subsection{英文字体}
721 % \label{英文字体}
722 % \begin{function}[added=2022-04-01]{style/en-cjk-font}
723 % \begin{syntax}
724 % \opt{style/en-cjk-font} = true|(false)
725 % \end{syntax}
726 % 切换字体族时,英文是否使用中文字体。主要作用于封面、章节标题、caption、页眉页脚、参考文献列表等。
727 % \end{function}
728 % \begin{optdesc}
729 % \item[true] 英文使用相对应字体族的中文字体。
730 % \item[false] 英文使用相对应字体族的英文字体。
731 % \end{optdesc}
732 % \subsection{标题数学字体配置}
733 % \label{标题数学字体配置}
734 % \begin{function}[added=2023-02-03]{style/title-bold-math}
735 % \begin{syntax}
736 % \opt{style/title-bold-math} = true|(false)
737 % \end{syntax}
738 % 是否自动加粗如下位置中的数学字体:
739 % 中文研究生学位论文中,封面和题名页中英文标题,正文所有级别标题和目录一级标题;
740 % 英文研究生学位论文中,封面和题名页中英文标题,正文二三四五六级标题和中文目录一级标题;
741 % 本科生毕业设计论文中,封面标题,中英文关键词,目录一级标题和正文一级标题。
742 % 目前仅支持Computer Modern数学字体。
743 % \end{function}
744 % \begin{optdesc}
745 % \item[true] 加粗。
746 % \item[false] 不加粗。
747 % \end{optdesc}
748 % \subsection{语言配置}
749 % \label{语言配置}
750 % \begin{function}[added=2022-03-29]{style/language}
751 % \begin{syntax}
752 % \opt{style/language} = (zh)|en
753 % \end{syntax}
754 % 设置论文语言。
755 % \end{function}
756 % \begin{optdesc}
757 % \item[zh] 中文。
758 % \item[en] 英文。注意,研究生学位论文一二三级标题命令请参考\secrefx{英文研究生学位论文标题}。
759 % \end{optdesc}
760 % \subsection{参考文献配置}
761 % \label{参考文献配置}
762 % \begin{function}[added=2022-04-02,updated=2022-04-03]{style/bib-backend}
763 % \begin{syntax}
764 % \opt{style/bib-backend} = bibtex|(biblatex)
765 % \end{syntax}
766 % 设置参考文献支持方式。
767 % \end{function}
768 % \begin{optdesc}
769 % \item[bibtex] 使用\bibtex{}处理参考文献,后端程序为\cmdx{bibtex}[]。
770 % \item[biblatex] 使用\biblatex{}处理参考文献,后端程序为\cmdx{biber}[]。
771 % \end{optdesc}
772 % \changes{v1.31.0.0}{2022/06/21}{修改\pkgx{biblatex}默认选项}
773 % \begin{function}[added=2022-06-21]{style/biblatex-option}
774 % \begin{syntax}
775 % \opt{style/biblatex-option} = \marg{biblatex宏包选项}
776 % \end{syntax}
777 % 修改\pkgx{biblatex}默认选项,具体配置参考\pkgx{biblatex-gb7714-2015}宏包文档,
778 % 仅在\optx{style/bib-backend}等于|biblatex|时有效。例如:
779 % \begin{lstlisting}
780 % \xdusetup{ style / biblatex-option = { gbnamefmt = quanpin } }
781 % \end{lstlisting}
782 % \end{function}
783 % \subsection{页面配置}
784 % \label{页面配置}
785 % \begin{function}[added=2022-04-12]{style/symmetric-margin}
786 % \begin{syntax}
787 % \opt{style/symmetric-margin} = true|(false)
788 % \end{syntax}
789 % 设置左右页边距是否对称。
790 % \end{function}
791 % \begin{optdesc}
792 % \item[true] 对称。
793 % \item[false] 不对称。
794 % \end{optdesc}
795 % \begin{function}[added=2022-05-08]{style/page-vertical-align}
796 % \begin{syntax}
797 % \opt{style/page-vertical-align} = 分散对齐|(顶部对齐)
798 % \end{syntax}
799 % 设置页面垂直方向的对齐方式。
800 % \end{function}
801 % \begin{optdesc}
802 % \item[分散对齐] 页面高度均匀地填满,使每一页的底部直接对齐。
803 % \item[顶部对齐] 页面中的内容保持它的自然高度,每一页的页面底部用空白填满。
804 % \end{optdesc}
805 % \subsection{文件配置}
806 % \label{文件配置}
807 % \begin{function}[added=2022-07-01]{style/file-search-path}
808 % \begin{syntax}
809 % \opt{style/file-search-path} = \marg{路径}
810 % \end{syntax}
811 % 设置文件搜索路径,可用于\tnx{input}[]、\tnx[]{include}和\tnx{includegraphics}[],
812 % 多个路径之间需要使用英文半角逗号隔开。
813 % 设置后\tnx{input}[]、\tnx[]{include}和\tnx{includegraphics}仅需填写文件名。
814 % \end{function}
815 % \begin{function}[added=2022-07-01]{style/fix-input,style/fix-include,style/fix-includegraphics}
816 % \begin{syntax}
817 % \opt{style/fix-input} = true|(false)
818 % \opt{style/fix-include} = true|(false)
819 % \opt{style/fix-includegraphics} = true|(false)
820 % \end{syntax}
821 % TEXMF树搜索优先级高于用户自定义的文件搜索路径,
822 % 如果在TEXMF树内存在同名文件,则会导致错误的文件被加载。
823 % 通过为\tnx{input}[]、\tnx[]{include}和\tnx{includegraphics}命令打补丁可以避免该问题。
824 % 如果用户的\TeX{}或图片等文件不与TEXMF树内文件同名,或与\TeX{}主文件在同一目录,则无需打补丁。
825 % \end{function}
826 % \subsection{交叉引用配置}
827 % \label{交叉引用配置}
828 % \begin{function}[added=2022-04-16,updated=2022-05-08]{style/ref-add-space}
829 % \begin{syntax}
830 % \opt{style/ref-add-space} = true|(false)
831 % \end{syntax}
832 % 是否自动调整\tnx{ref}和\tnx{pageref}两侧中英文间空白。
833 % \end{function}
834 % \begin{optdesc}
835 % \item[true] 自动调整\tnx{ref}和\tnx{pageref}两侧中英文间空白。
836 % 未避免产生不正常的空白宽度,请不要在\tnx{ref}和\tnx{pageref}两侧输入空格。
837 % 仅在\optx{language}等于|zh|时有效。
838 % 请不要使用\pkgx{subcaption}宏包的提供的\tnx{subref}和\tnx{subref*}命令。
839 % \item[false] 保持原始\tnx{ref}和\tnx{pageref}命令效果。
840 % \end{optdesc}
841 % \subsection{Caption配置}
842 % \label{caption配置}
843 % \changes{v1.0.0.0}{2022/04/14}{设置图、表、算法标签与后面标题之间的间距}
844 % \begin{function}[added=2022-04-14]{style/caption-label-sep}
845 % \begin{syntax}
846 % \opt{style/caption-label-sep} = \meta{间距}
847 % \end{syntax}
848 % 设置图、表、算法标签与后面标题之间的间距,默认值为\valuex{0.75em}[]。
849 % \end{function}
850 % \subsection{图表配置}
851 % \label{图表配置}
852 % \changes{v3.0.0.0}{2022/12/03}{设置图表caption格式}
853 % \begin{function}[added=2022-12-03]{style/ft-caption-format}
854 % \begin{syntax}
855 % \opt{style/ft-caption-format} = plain|(hang)
856 % \end{syntax}
857 % 设置图表caption格式。
858 % \begin{optdesc}
859 % \item[plain] 无缩进,即自然段落。
860 % \item[hang] 悬挂缩进。
861 % \end{optdesc}
862 % \end{function}
863 % \changes{v3.0.0.0}{2022/12/03}{设置图表caption对齐方式}
864 % \begin{function}[added=2022-12-03]{style/ft-caption-align}
865 % \begin{syntax}
866 % \opt{style/ft-caption-align} = left|centering|(centering-left)
867 % \end{syntax}
868 % 设置图表caption对齐方式。
869 % \begin{optdesc}
870 % \item[left] 左对齐。
871 % \item[centering] 居中。
872 % \item[centering-left] 只有一行时居中,多行时左对齐。
873 % \end{optdesc}
874 % \end{function}
875 % \changes{v6.1.0.0}{2023/03/04}{增加图表对齐接口}
876 % \begin{function}[added=2023-03-04]{style/figure-align,style/table-align}
877 % \begin{syntax}
878 % \opt{style/figure-align} = left|(centering)|right
879 % \opt{style/table-align} = left|(centering)|right
880 % \end{syntax}
881 % 设置\envx{figure}和\envx{table}环境中内容对齐方式。
882 % \end{function}
883 % \begin{optdesc}
884 % \item[left] 左对齐。
885 % \item[centering] 居中。
886 % \item[right] 右对齐。
887 % \end{optdesc}
888 % \changes{v0.10.0.1}{2022/04/13}{补充表格内容字号文档说明}
889 % \begin{function}[added=2022-04-13,updated=2022-04-15]{style/table-small-font}
890 % \begin{syntax}
891 % \opt{style/table-small-font} = (true)|false
892 % \end{syntax}
893 % 设置表格内容字号是否为五号。
894 % \end{function}
895 % \begin{optdesc}
896 % \item[true] 五号。
897 % \item[false] 小四号。
898 % \end{optdesc}
899 % \subsection{算法配置}
900 % \label{算法配置}
901 % \changes{v5.0.0.0}{2023/02/17}{精简算法接口名称}
902 % \begin{function}[added=2022-06-25,updated=2023-02-17]{style/alg-small-caption}
903 % \begin{syntax}
904 % \opt{style/alg-small-caption} = (true)|false
905 % \end{syntax}
906 % 设置算法caption字号是否为五号。
907 % \end{function}
908 % \begin{optdesc}
909 % \item[true] 五号。
910 % \item[false] 小四号。
911 % \end{optdesc}
912 % \begin{function}[added=2022-04-15,updated=2023-02-17]{style/alg-small-font}
913 % \begin{syntax}
914 % \opt{style/alg-small-font} = (true)|false
915 % \end{syntax}
916 % 设置算法内容字号是否为五号。
917 % \end{function}
918 % \begin{optdesc}
919 % \item[true] 五号。
920 % \item[false] 小四号。
921 % \end{optdesc}
922 % \changes{v3.0.0.0}{2022/12/03}{设置算法caption格式}
923 % \begin{function}[added=2022-12-03]{style/alg-caption-format}
924 % \begin{syntax}
925 % \opt{style/alg-caption-format} = plain|(hang)
926 % \end{syntax}
927 % 设置算法caption格式。
928 % \begin{optdesc}
929 % \item[plain] 无缩进,即自然段落。
930 % \item[hang] 悬挂缩进。
931 % \end{optdesc}
932 % \end{function}
933 % \changes{v3.0.0.0}{2022/12/03}{设置算法caption对齐方式}
934 % \begin{function}[added=2022-12-03]{style/alg-caption-align}
935 % \begin{syntax}
936 % \opt{style/alg-caption-align} = (left)|centering|centering-left
937 % \end{syntax}
938 % 设置算法caption对齐方式。
939 % \begin{optdesc}
940 % \item[left] 左对齐。
941 % \item[centering] 居中。
942 % \item[centering-left] 只有一行时居中,多行时左对齐。
943 % \end{optdesc}
944 % \end{function}
945 % \changes{v3.1.0.0}{2022/12/03}{设置算法三线间距}
946 % \begin{function}[added=2022-12-03]{style/add-alg-rule-vspace}
947 % \begin{syntax}
948 % \opt{style/add-alg-rule-vspace} = true|(false)
949 % \end{syntax}
950 % 设置是否为ruled样式的算法环境的三条横线增加纵向间距。
951 % \begin{optdesc}
952 % \item[true] 增加。
953 % \item[false] 不增加。
954 % \end{optdesc}
955 % \end{function}
956 % \subsection{章节配置}
957 % \label{章节配置}
958 % \begin{function}[added=2022-04-05]{style/before-skip}
959 % \begin{syntax}
960 % \opt{style/before-skip} = \marg{间距列表}
961 % \end{syntax}
962 % 设置章节标题前的垂直间距,默认值为\valuex{\{24pt, 18pt, 12pt, 12pt, 12pt, 12pt\}}[],分别对应\tnx{chapter}[]、\tnx[]{section}[]、\tnx[]{subsection}[]、\tnx[]{subsubsection}[]、\tnx[]{paragraph}和\tnx{subparagraph}。
963 % \end{function}
964 % \begin{function}[added=2022-04-05]{style/after-skip}
965 % \begin{syntax}
966 % \opt{style/after-skip} = \marg{间距列表}
967 % \end{syntax}
968 % 设置章节标题后的垂直间距,默认值为\valuex{\{18pt, 12pt, 6pt, 6pt, 6pt, 6pt\}}[],分别对应\tnx{chapter}[]、\tnx[]{section}[]、\tnx[]{subsection}[]、\tnx[]{subsubsection}[]、\tnx[]{paragraph}和\tnx{subparagraph}。
969 % \end{function}
970 % \changes{v6.2.3.0}{2025/01/12}{修复本科生毕业设计三四五六级标题字号默认值}
971 % \begin{function}[added=2022-04-11,updated=2025-01-12]
972 % {
973 % style/chap-zihao,
974 % style/sec-zihao,
975 % style/subsec-zihao,
976 % style/subsubsec-zihao,
977 % style/para-zihao,
978 % style/subpara-zihao
979 % }
980 % \begin{syntax}
981 % \opt{style/chap-zihao} = 0|-0|1|-1|2|-2|(3)|-3|4|-4|5|-5|6|-6|7|8
982 % \opt{style/sec-zihao} = 0|-0|1|-1|2|-2|3|-3|(4)|-4|5|-5|6|-6|7|8
983 % \opt{style/subsec-zihao} = 0|-0|1|-1|2|-2|3|-3|4|(-4)|5|-5|6|-6|7|8
984 % \opt{style/subsubsec-zihao} = 0|-0|1|-1|2|-2|3|-3|4|(-4)|5|-5|6|-6|7|8
985 % \opt{style/para-zihao} = 0|-0|1|-1|2|-2|3|-3|4|(-4)|5|-5|6|-6|7|8
986 % \opt{style/subpara-zihao} = 0|-0|1|-1|2|-2|3|-3|4|(-4)|5|-5|6|-6|7|8
987 % \end{syntax}
988 % 设置章节标题字号。
989 % \end{function}
990 % \begin{optdesc}
991 % \item[0] 初号
992 % \item[−0] 小初号
993 % \item[1] 一号
994 % \item[-1] 小一号
995 % \item[2] 二号
996 % \item[-2] 小二号
997 % \item[3] 三号
998 % \item[-3] 小三号
999 % \item[4] 四号
1000 % \item[-4] 小四号
1001 % \item[5] 五号
1002 % \item[-5] 小五号
1003 % \item[6] 六号
1004 % \item[-6] 小六号
1005 % \item[7] 七号
1006 % \item[8] 八号
1007 % \end{optdesc}
1008 % \subsection{对照表配置}
1009 % \label{对照表配置}
1010 % \begin{function}[added=2022-06-05]{style/customize-los,style/customize-loa}
1011 % \begin{syntax}
1012 % \opt{style/customize-los} = (true)|false
1013 % \opt{style/customize-loa} = (true)|false
1014 % \end{syntax}
1015 % 是否完全自定义符号对照表和缩略语对照表。
1016 % \end{function}
1017 % \begin{optdesc}
1018 % \item[true] 完全自定义符号对照表和缩略语对照表,对照表由用户自行排版。
1019 % 在\secrefx{信息录入}中提及的\optx{info/los}和\optx{info/loa}中对应的文件中可以通过表格或列表等方式实现对照表,例如:
1020 % \begin{lstlisting}
1021 % \begin{tabular}{ll}
1022 % 符号 & 符号名称 \\
1023 % $\pi$ & 圆周率 \\
1024 % $\mathbb{R}$ & 实数 \\
1025 % \end{tabular}
1026 % \end{lstlisting}
1027 % \item[false] 使用内置的基于\envx{longtblr}环境(\pkgx{tabularray}宏包)实现的
1028 % 符号对照表和缩略语对照表样式。
1029 % 在\secrefx{信息录入}中提及的\optx{info/los}和\optx{info/loa}中对应的文件仅需填写相应列数的内容即可,例如:
1030 % \begin{lstlisting}
1031 % $\pi$ & 圆周率 \\
1032 % $\mathbb{R}$ & 实数 \\
1033 % \end{lstlisting}
1034 % \end{optdesc}
1035 % \changes{v2.10.2.1}{2022/06/28}{修改对照表默认列格式}
1036 % \begin{function}[added=2022-06-05,updated=2022-06-28]{style/colspec-los,style/colspec-loa}
1037 % \begin{syntax}
1038 % \opt{style/colspec-los} = \marg{符号对照表列格式}
1039 % \opt{style/colspec-loa} = \marg{缩略语对照表列格式}
1040 % \end{syntax}
1041 % 设置符号对照表和缩略语对照表列格式,
1042 % 符号对照表列格式默认值为\valuex{Q[l,h]X[l,h]}[]。
1043 % 缩略语对照表列格式默认值为\valuex{Q[l,h]X[l,h]X[l,h]}[]。
1044 % 语法参考\pkgx{tabularray}宏包\valuex{colspec}选项。
1045 % 仅在\optx{style/customize-los}和\optx{style/customize-loa}等于\valuex{false}时有效。
1046 % \end{function}
1047 % \begin{function}[added=2022-06-05]{style/title-row-los,style/title-row-loa}
1048 % \begin{syntax}
1049 % \opt{style/title-row-los} = true|(false)
1050 % \opt{style/title-row-loa} = true|(false)
1051 % \end{syntax}
1052 % 是否每页均显示符号对照表和缩略语对照表标题行。
1053 % 仅在\optx{style/customize-los}和\optx{style/customize-loa}等于\valuex{false}时有效。
1054 % \end{function}
1055 % \begin{optdesc}
1056 % \item[true] 每页均显示符号对照表和缩略语对照表标题行。
1057 % \item[false] 仅第一页显示显示符号对照表和缩略语对照表标题行。
1058 % \end{optdesc}
1059 % \changes{v1.26.0.0}{2022/06/07}{作者简介配置}
1060 % \subsection{作者简介配置}
1061 % \label{作者简介配置}
1062 % \changes{v1.28.4.1}{2022/06/19}{修正作者简介示例}
1063 % \begin{function}[added=2022-06-07]{style/customize-edubg,style/customize-resresult}
1064 % \begin{syntax}
1065 % \opt{style/customize-edubg} = (true)|false
1066 % \opt{style/customize-resresult} = (true)|false
1067 % \end{syntax}
1068 % 是否完全自定义作者简介中教育背景和攻读硕士学位期间的研究成果。
1069 % \end{function}
1070 % \begin{optdesc}
1071 % \item[true] 完全自定义作者简介中教育背景和攻读硕士学位期间的研究成果,由用户自行排版。
1072 % 在\secrefx{信息录入}中提及的\optx{info/bio}中对应的文件中
1073 % 可以通过段落、表格或列表等方式排版教育背景和攻读硕士学位期间的研究成果,例如:
1074 % \begin{lstlisting}
1075 % \section{基本情况}
1076 % 张三,男,陕西西安人,1982年8月出生,西安电子科技大学XX学院XX专业2008级硕士研究生。
1077 % \section{教育背景}
1078 % 2001.08~2005.07 西安电子科技大学,本科,专业:电子信息工程
1079 % \par
1080 % 2008.08~ 西安电子科技大学,硕士研究生,专业:电磁场与微波技术
1081 % \section{攻读硕士学位期间的研究成果}
1082 % \subsection{发表学术论文}
1083 % [1] XXX, XXX, XXX. Rapid development technique for drip irrigation emitters[J]. RP Journal,UK.,2003,9(2): 104-110.(SCI: 672CZ, EI: 03187452127)
1084 % \par
1085 % [2] XXX, XXX, XXX. 基于快速成型制造的滴管快速制造技术研究[J]. 西安交通大学学报, 2001, 15(9): 935-939. (EI: 02226959521)
1086 % \subsection{申请(授权)专利}
1087 % [1] XXX, XXX, XXX等. 专利名称: 国别,专利号[P]. 出版日期.
1088 % \subsection{参与科研项目及获奖}
1089 % [1] XXX项目, 项目名称, 起止时间, 完成情况, 作者贡献。
1090 % \par
1091 % [2] XXX, XXX, XXX等. 科研项目名称. 陕西省科技进步三等奖, 获奖日期.
1092 % \end{lstlisting}
1093 % \item[false] 使用内置的基于\envx{tblr}环境(\pkgx[]{tabularray}宏包)实现的
1094 % 教育背景表格环境\envx{edubg}和基于\envx{enumerate}环境(\pkgx[]{enumitem}宏包)实现的
1095 % 攻读硕士学位期间的研究成果列表环境\envx{resresult}。
1096 % 在\secrefx{信息录入}中提及的\optx{info/bio}中对应的文件中使用\envx{edubg}和\envx{resresult}环境即可,例如:
1097 % \begin{lstlisting}
1098 % \section{基本情况}
1099 % 张三,男,陕西西安人,1982年8月出生,西安电子科技大学XX学院XX专业2008级硕士研究生。
1100 % \section{教育背景}
1101 % \begin{edubg}
1102 % 2001.08~2005.07 & 西安电子科技大学,本科,专业:电子信息工程\\
1103 % 2008.08~ & 西安电子科技大学,硕士研究生,专业:电磁场与微波技术\\
1104 % \end{edubg}
1105 % \section{攻读硕士学位期间的研究成果}
1106 % \subsection{发表学术论文}
1107 % \begin{resresult}
1108 % \item XXX, XXX, XXX. Rapid development technique for drip irrigation emitters[J]. RP Journal,UK.,2003,9(2): 104-110.(SCI: 672CZ, EI: 03187452127)
1109 % \item XXX, XXX, XXX. 基于快速成型制造的滴管快速制造技术研究[J]. 西安交通大学学报, 2001, 15(9): 935-939. (EI: 02226959521)
1110 % \end{resresult}
1111 % \subsection{申请(授权)专利}
1112 % \begin{resresult}
1113 % \item XXX, XXX, XXX等. 专利名称: 国别,专利号[P]. 出版日期.
1114 % \end{resresult}
1115 % \subsection{参与科研项目及获奖}
1116 % \begin{resresult}
1117 % \item XXX项目, 项目名称, 起止时间, 完成情况, 作者贡献。
1118 % \item XXX, XXX, XXX等. 科研项目名称. 陕西省科技进步三等奖, 获奖日期.
1119 % \end{resresult}
1120 % \end{lstlisting}
1121 % \end{optdesc}
1122 % \subsection{信息录入}
1123 % \label{信息录入}
1124 % \changes{v2.18.1.0}{2022/12/01}{增加专业博士校外导师和英文学位类别信息录入}
1125 % \changes{v2.16.1.1}{2022/11/27}{修改信息录入选项分类表文档样式}
1126 % \changes{v1.9.0.0}{2022/05/03}{增加信息录入选项分类表}
1127 % \changes{v1.10.3.1}{2022/05/04}{移除专业博士校外导师信息录入}
1128 % 用户根据\tabrefx{tblr:info}选择相应的选项并使用\secrefx{参数设置}中的方式进行信息录入。
1129 % \begin{tblr}
1130 % [
1131 % long,
1132 % caption = {信息录入选项分类},
1133 % label = {tblr:info}
1134 % ]
1135 % {
1136 % width = \linewidth,
1137 % colspec = {Q[l,m]*{7}{X[c,m]}},
1138 % cell{1}{3} = {c=2}{},
1139 % cell{1}{5} = {c=4}{},
1140 % cell{2}{2} = {r=2}{},
1141 % cell{2}{3,5,7} = {c=2}{},
1142 % hline{1,4,Z} = {wd=.08em},
1143 % hline{2} = {2-2}{wd=.08em,leftpos=-1,rightpos=-1,endpos=true},
1144 % hline{2} = {3-4}{wd=.08em,leftpos=-1,rightpos=-1,endpos=true},
1145 % hline{2} = {5-8}{wd=.08em,leftpos=-1,rightpos=-1,endpos=true},
1146 % hline{3} = {3-4}{wd=.08em,leftpos=-1,rightpos=-1,endpos=true},
1147 % hline{3} = {5-6}{wd=.08em,leftpos=-1,rightpos=-1,endpos=true},
1148 % hline{3} = {7-8}{wd=.08em,leftpos=-1,rightpos=-1,endpos=true},
1149 % row{odd[4]} = {bg=gray9!40},
1150 % cell{4-Z}{1} = {font=\ttfamily},
1151 % row{1-3} = {font=\bfseries},
1152 % rowhead = 3
1153 % }
1154 % & 开题 & 毕业设计 & & 学位论文 & & & \\
1155 % & 本科 & 本科 & & 硕士 & & 博士 & \\
1156 % & & 校内 & 校外 & 学术 & 专业 & 学术 & 专业 \\
1157 % graduate-type & & & & \cmark & \cmark & \cmark & \cmark \\
1158 % degree-type & & & & \cmark & \cmark & \cmark & \cmark \\
1159 % degree & & & & \cmark & \cmark & \cmark & \cmark \\
1160 % degree* & & & & & \cmark & & \cmark \\
1161 % title & & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
1162 % title* & & & & \cmark & \cmark & \cmark & \cmark \\
1163 % department & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
1164 % major & \cmark & \cmark & \cmark & \cmark & & \cmark & \\
1165 % major* & & & & \cmark & & \cmark & \\
1166 % sub-major & & & & \cmark & & \cmark & \\
1167 % domain & & & & & \cmark & & \cmark \\
1168 % author & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
1169 % author* & & & & \cmark & \cmark & \cmark & \cmark \\
1170 % supervisor & \cmark & \cmark & & \cmark & \cmark & \cmark & \cmark \\
1171 % supervisor* & & & & \cmark & \cmark & \cmark & \cmark \\
1172 % supv-dept & & \cmark & & & & & \\
1173 % supv-ent & & & \cmark & & \cmark & & \cmark \\
1174 % supv-ent* & & & & & \cmark & & \cmark \\
1175 % supv-school & & & \cmark & & & & \\
1176 % supv-title & & & & \cmark & \cmark & \cmark & \cmark \\
1177 % supv-title* & & & & \cmark & \cmark & \cmark & \cmark \\
1178 % supv-ent-title & & & & & \cmark & & \cmark \\
1179 % supv-ent-title* & & & & & \cmark & & \cmark \\
1180 % class & \cmark & & & & & & \\
1181 % class-id & & \cmark & \cmark & & & & \\
1182 % student-id & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
1183 % clc & & & & \cmark & \cmark & \cmark & \cmark \\
1184 % secret-level & & & & \cmark & \cmark & \cmark & \cmark \\
1185 % submit-date & \cmark & & & \cmark & \cmark & \cmark & \cmark \\
1186 % statement-scan & & & & \cmark & \cmark & \cmark & \cmark \\
1187 % statement-sign & & & & \cmark & \cmark & \cmark & \cmark \\
1188 % sign & \cmark & & & & & & \\
1189 % date & \cmark & & & & & & \\
1190 % abstract & & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
1191 % abstract* & & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
1192 % keywords & & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
1193 % keywords* & & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
1194 % los & & & & \cmark & \cmark & \cmark & \cmark \\
1195 % loa & & & & \cmark & \cmark & \cmark & \cmark \\
1196 % bib-resource & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
1197 % appendix & & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
1198 % acknowledgements & & \cmark & \cmark & \cmark & \cmark & \cmark & \cmark \\
1199 % bio & & & & \cmark & \cmark & \cmark & \cmark \\
1200 % \end{tblr}
1201 % \changes{v1.9.0.0}{2022/05/03}{增加研究生信息录入选项文档}
1202 % \begin{function}[added=2022-05-02,updated=2022-05-03]{info/graduate-type}
1203 % \begin{syntax}
1204 % \opt{info/graduate-type} = (硕士)|博士
1205 % \end{syntax}
1206 % 设置研究生类型。
1207 % \end{function}
1208 % \begin{optdesc}
1209 % \item[硕士] 硕士研究生。
1210 % \item[博士] 博士研究生。
1211 % \end{optdesc}
1212 % \begin{function}[added=2022-05-03]{info/degree-type}
1213 % \begin{syntax}
1214 % \opt{info/degree-type} = (学术)|专业
1215 % \end{syntax}
1216 % 设置研究生学位类型。
1217 % \end{function}
1218 % \begin{optdesc}
1219 % \item[学术] 学术学位。
1220 % \item[专业] 专业学位。
1221 % \end{optdesc}
1222 % \begin{function}[added=2022-05-03]{info/degree,info/degree*}
1223 % \begin{syntax}
1224 % \opt{info/degree} = \meta{研究生学位类别中文名称}
1225 % \opt{info/degree*} = \meta{研究生学位类别英文名称}
1226 % \end{syntax}
1227 % 设置研究生学位类别。
1228 % \end{function}
1229 % \begin{function}[added=2022-04-01,updated=2022-05-30]{info/title,info/title*}
1230 % \begin{syntax}
1231 % \opt{info/title} = \meta{论文中文标题}
1232 % \opt{info/title*} = \meta{论文英文标题}
1233 % \end{syntax}
1234 % 设置论文标题。建议使用换行控制符(|\\|)手动制定换行位点,
1235 % 本科毕业设计论文最多两行,研究生学位论文无限制。
1236 % \end{function}
1237 % \begin{function}[added=2022-04-01]{info/department}
1238 % \begin{syntax}
1239 % \opt{info/department} = \meta{院系名称}
1240 % \end{syntax}
1241 % 设置院系名称。
1242 % \end{function}
1243 % \begin{function}[added=2022-04-01,updated=2022-05-03]{info/major,info/major*}
1244 % \begin{syntax}
1245 % \opt{info/major} = \meta{专业名称/一级学科名称}
1246 % \opt{info/major*} = \meta{一级学科英文名称}
1247 % \end{syntax}
1248 % 设置专业名称/一级学科名称。
1249 % \end{function}
1250 % \begin{function}[added=2022-05-03]{info/sub-major}
1251 % \begin{syntax}
1252 % \opt{info/sub-major} = \meta{二级学科名称}
1253 % \end{syntax}
1254 % 设置二级学科名称。
1255 % \end{function}
1256 % \begin{function}[added=2022-05-03]{info/domain}
1257 % \begin{syntax}
1258 % \opt{info/domain} = \meta{领域}
1259 % \end{syntax}
1260 % 设置领域名称。
1261 % \end{function}
1262 % \begin{function}[added=2022-04-01,updated=2022-05-03]{info/author,info/author*}
1263 % \begin{syntax}
1264 % \opt{info/author} = \meta{作者姓名}
1265 % \opt{info/author*} = \meta{作者姓名拼音}
1266 % \end{syntax}
1267 % 设置作者姓名。
1268 % \end{function}
1269 % \begin{function}[added=2022-04-01,updated=2022-05-03]{info/supervisor,info/supervisor*}
1270 % \begin{syntax}
1271 % \opt{info/supervisor} = \meta{导师姓名}
1272 % \opt{info/supervisor*} = \meta{导师姓名拼音}
1273 % \end{syntax}
1274 % 设置导师姓名。
1275 % \end{function}
1276 % \changes{v5.0.0.0}{2023/02/17}{精简部分信息录入接口名称}
1277 % \begin{function}[added=2022-04-01,updated=2023-02-17]{info/supv-dept}
1278 % \begin{syntax}
1279 % \opt{info/supv-dept} = \meta{院内导师姓名}
1280 % \end{syntax}
1281 % 设置院内导师姓名。
1282 % \end{function}
1283 % \begin{function}[added=2022-04-01,updated=2023-02-17]{info/supv-ent,info/supv-ent*}
1284 % \begin{syntax}
1285 % \opt{info/supv-ent} = \meta{校外导师姓名}
1286 % \opt{info/supv-ent*} = \meta{校外导师姓名拼音}
1287 % \end{syntax}
1288 % 设置校外导师姓名。
1289 % \end{function}
1290 % \begin{function}[added=2022-04-01,updated=2023-02-17]{info/supv-school}
1291 % \begin{syntax}
1292 % \opt{info/supv-school} = \meta{校内导师姓名}
1293 % \end{syntax}
1294 % 设置校内导师姓名。
1295 % \end{function}
1296 % \begin{function}[added=2022-05-03,updated=2023-02-17]{info/supv-title,info/supv-title*}
1297 % \begin{syntax}
1298 % \opt{info/supv-title} = \meta{导师职称}
1299 % \opt{info/supv-title*} = \meta{导师职称英文名称}
1300 % \end{syntax}
1301 % 设置导师职称。
1302 % \end{function}
1303 % \begin{function}[added=2022-05-03,updated=2023-02-17]{info/supv-ent-title,info/supv-ent-title*}
1304 % \begin{syntax}
1305 % \opt{info/supv-ent-title} = \meta{校外导师职称}
1306 % \opt{info/supv-ent-title*} = \meta{校外导师职称英文名称}
1307 % \end{syntax}
1308 % 设置校外导师职称。
1309 % \end{function}
1310 % \begin{function}[added=2022-12-31]{info/class}
1311 % \begin{syntax}
1312 % \opt{info/class} = \meta{界}
1313 % \end{syntax}
1314 % 设置界,即毕业年份。
1315 % \end{function}
1316 % \begin{function}[added=2022-04-01]{info/class-id}
1317 % \begin{syntax}
1318 % \opt{info/class-id} = \meta{作者班级号}
1319 % \end{syntax}
1320 % 设置作者班级号。
1321 % \end{function}
1322 % \begin{function}[added=2022-04-01]{info/student-id}
1323 % \begin{syntax}
1324 % \opt{info/student-id} = \meta{作者学号}
1325 % \end{syntax}
1326 % 设置作者学号。
1327 % \end{function}
1328 % \begin{function}[added=2022-05-03]{info/clc}
1329 % \begin{syntax}
1330 % \opt{info/clc} = \meta{中图分类号}
1331 % \end{syntax}
1332 % 设置中图分类号。
1333 % \end{function}
1334 % \begin{function}[added=2022-05-03]{info/secret-level}
1335 % \begin{syntax}
1336 % \opt{info/secret-level} = 秘密|(公开)
1337 % \end{syntax}
1338 % 设置密级。
1339 % \end{function}
1340 % \changes{v1.17.0.1}{2022/05/29}{研究生学位论文提交日期格式}
1341 % \begin{function}[added=2022-05-03,updated=2022-12-31]{info/submit-date}
1342 % \begin{syntax}
1343 % \opt{info/submit-date} = \meta{yyyy-mm}
1344 % \opt{info/submit-date} = \meta{yyyy-mm-dd}
1345 % \end{syntax}
1346 % 设置提交日期,如果留空,则自动使用编译当天日期。
1347 % \end{function}
1348 % \changes{v2.1.0.0}{2022/06/22}{声明页扫描文件路径}
1349 % \begin{function}[added=2022-06-22]{info/statement-scan}
1350 % \begin{syntax}
1351 % \opt{info/statement-scan} = \marg{学位论文独创性声明和关于论文使用授权的说明页扫描文件路径}
1352 % \end{syntax}
1353 % 设置学位论文独创性声明和关于论文使用授权的说明页扫描文件路径。
1354 % \end{function}
1355 % \changes{v2.2.0.0}{2022/06/23}{声明页签名文件路径}
1356 % \begin{function}[added=2022-06-23]{info/statement-sign}
1357 % \begin{syntax}
1358 % \opt{info/statement-sign} = \marg{文件路径1,文件路径2,文件路径3,文件路径4,文件路径5,文件路径6}
1359 % \end{syntax}
1360 % 设置声明页签名文件路径。
1361 % 文件支持格式与\tnx{includegraphics}一致,建议文件为透明背景且仅有黑色,并尽量减少边距。
1362 % \end{function}
1363 % \begin{optdesc}
1364 % \item[文件路径1] 学位论文独创性声明本人签名文件路径。
1365 % \item[文件路径2] 学位论文独创性声明日期文件路径。
1366 % \item[文件路径3] 关于论文使用授权的说明本人签名文件路径。
1367 % \item[文件路径4] 关于论文使用授权的说明日期文件路径。
1368 % \item[文件路径5] 关于论文使用授权的说明导师签名文件路径。
1369 % \item[文件路径6] 关于论文使用授权的说明日期文件路径。
1370 % \end{optdesc}
1371 % \begin{function}[added=2022-12-31]{info/sign}
1372 % \begin{syntax}
1373 % \opt{info/sign} = \marg{文件路径1,文件路径2}
1374 % \end{syntax}
1375 % 设置开题报告签名文件路径。
1376 % 文件支持格式与\tnx{includegraphics}一致,建议文件为透明背景且仅有黑色,并尽量减少边距。
1377 % \end{function}
1378 % \begin{optdesc}
1379 % \item[文件路径1] 指导教师意见签名文件路径。
1380 % \item[文件路径2] 学院审核意见签名文件路径。
1381 % \end{optdesc}
1382 % \begin{function}[added=2022-12-31]{info/date}
1383 % \begin{syntax}
1384 % \opt{info/date} = \marg{日期1,日期2}
1385 % \end{syntax}
1386 % 设置开题报告签名日期,格式为\margx{yyyy-mm-dd}[],如果留空,则自动使用编译当天日期。
1387 % \end{function}
1388 % \begin{optdesc}
1389 % \item[日期1] 指导教师意见签名日期。
1390 % \item[日期2] 学院审核意见签名日期。
1391 % \end{optdesc}
1392 % \begin{function}[added=2022-04-02]{info/abstract,info/abstract*}
1393 % \begin{syntax}
1394 % \opt{info/abstract} = \marg{中文摘要文件路径}
1395 % \opt{info/abstract*} = \marg{英文摘要文件路径}
1396 % \end{syntax}
1397 % 设置摘要文件路径,相应文件内仅撰写摘要内容,无需任何环境。
1398 % \end{function}
1399 % \begin{function}[added=2022-04-02]{info/keywords,info/keywords*}
1400 % \begin{syntax}
1401 % \opt{info/keywords} = \marg{中文关键词}
1402 % \opt{info/keywords*} = \marg{英文关键词}
1403 % \end{syntax}
1404 % 设置关键词,关键词之间需要使用英文半角逗号隔开。
1405 % \end{function}
1406 % \changes{v1.22.0.0}{2022/06/05}{符号对照表文件路径}
1407 % \begin{function}[added=2022-06-05]{info/los}
1408 % \begin{syntax}
1409 % \opt{info/los} = \marg{符号对照表文件路径}
1410 % \end{syntax}
1411 % 设置符号对照表文件路径。
1412 % \end{function}
1413 % \changes{v1.22.0.0}{2022/06/05}{缩略语对照表文件路径}
1414 % \begin{function}[added=2022-06-05]{info/loa}
1415 % \begin{syntax}
1416 % \opt{info/loa} = \marg{缩略语对照表文件路径}
1417 % \end{syntax}
1418 % 设置缩略语对照表文件路径。
1419 % \end{function}
1420 % \changes{v2.0.0.0}{2022/06/21}{修改参考文献文件路径选项名称}
1421 % \begin{function}[added=2022-06-21]{info/bib-resource}
1422 % \begin{syntax}
1423 % \opt{info/bib-resource} = \marg{参考文献文件路径}
1424 % \end{syntax}
1425 % 设置参考文献\filex{.bib}文件路径,多个文件之间需要使用英文半角逗号隔开。
1426 % \end{function}
1427 % \changes{v4.0.0.0}{2022/12/11}{增加附录文件接口}
1428 % \begin{function}[added=2022-12-11]{info/appendix}
1429 % \begin{syntax}
1430 % \opt{info/appendix} = \marg{附录文件路径}
1431 % \end{syntax}
1432 % 设置附录文件路径,多个文件之间需要使用英文半角逗号隔开。
1433 % \end{function}
1434 % \begin{function}[added=2022-04-02]{info/acknowledgements}
1435 % \begin{syntax}
1436 % \opt{info/acknowledgements} = \marg{致谢文件路径}
1437 % \end{syntax}
1438 % 设置致谢文件路径,相应文件内仅撰写致谢内容,无需任何环境。
1439 % \end{function}
1440 % \begin{function}[added=2022-06-07]{info/bio}
1441 % \begin{syntax}
1442 % \opt{info/bio} = \marg{作者简介路径}
1443 % \end{syntax}
1444 % 设置作者简介文件路径,文件内容可参考\secrefx{作者简介配置}中的示例。
1445 % \end{function}
1446 % \changes{v6.2.3.1}{2025/01/12}{更新研究生信息推荐值来源}
1447 % \changes{v6.1.4.1}{2023/03/14}{更新研究生信息推荐值}
1448 % \changes{v2.18.1.0}{2022/12/01}{增加专业博士信息录入推荐值来源}
1449 % \changes{v2.12.2.1}{2022/11/20}{调整研究生信息推荐值展示样式}
1450 % \changes{v1.26.11.2}{2022/06/18}{研究生信息推荐值}
1451 % \subsubsection{研究生信息推荐值}
1452 % \label{研究生信息推荐值}
1453 % 以下研究生信息推荐值均来自
1454 % 《西安电子科技大学研究生学位论文模板(2015年修订版)-2025.01修订》、
1455 % 《西安电子科技大学专业学位硕士学位论文封面及中英文题名页模板(2015年版)-2022.11修订》和
1456 % 《西安电子科技大学专业学位博士学位论文封面及中英文题名页模板-2022.11》,
1457 % 无任何修改,仅供参考。
1458 % \setlength\parindent{0pt}
1459 % \begin{itemize}
1460 % \item \optx{degree} (学术硕士、学术博士)
1461 % \par
1462 % 工学硕士、
1463 % 工学博士、
1464 % 哲学硕士、
1465 % 经济学硕士、
1466 % 法学硕士、
1467 % 教育学硕士、
1468 % 文学硕士、
1469 % 理学硕士、
1470 % 理学博士、
1471 % 军事学硕士、
1472 % 军事学博士、
1473 % 管理学硕士、
1474 % 管理学博士
1475 % \item \optx{degree} (专业硕士)
1476 % \par
1477 % 金融硕士、
1478 % 应用统计硕士、
1479 % 翻译硕士、
1480 % 电子信息硕士、
1481 % 机械硕士、
1482 % 材料与化工硕士、
1483 % 工商管理硕士、
1484 % 公共管理硕士、
1485 % 图书情报硕士、
1486 % 工程管理硕士、
1487 % 工程硕士
1488 % \item \optx{degree} (专业博士)
1489 % \par
1490 % 电子信息博士、
1491 % 机械博士、
1492 % 工程博士
1493 % \item \optx{degree*} (专业硕士)
1494 % \par
1495 % Finance、
1496 % Applied Statistics、
1497 % Translation、
1498 % Electronic Information、
1499 % Machinery、
1500 % Material and Chemistry、
1501 % Business Administration、
1502 % Public Administration、
1503 % Engineering Administration、
1504 % Engineering
1505 % \item \optx{degree*} (专业博士)
1506 % \par
1507 % Electronic Information、
1508 % Machinery、
1509 % Engineering
1510 % \item \optx{department}
1511 % \par
1512 % 通信工程学院、
1513 % 电子工程学院、
1514 % 计算机科学与技术学院、
1515 % 机电工程学院、
1516 % 光电工程学院、
1517 % 物理学院、
1518 % 经济与管理学院、
1519 % 数学与统计学院、
1520 % 人文学院、
1521 % 外国语学院、
1522 % 微电子学院、
1523 % 生命科学技术学院、
1524 % 空间科学与技术学院、
1525 % 先进材料与纳米科技学院、
1526 % 网络与信息安全学院、
1527 % 马克思主义学院、
1528 % 人工智能学院、
1529 % 集成电路研究院
1530 % \item \optx{major}
1531 % \par
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 % \item \optx{major*}
1560 % \par
1561 % Philosophy、
1562 % Applied Economics、
1563 % Marxist Theory、
1564 % Sports Science、
1565 % Foreign Languages and Literature、
1566 % Mathematics、
1567 % Physics、
1568 % Statistics、
1569 % Mechanics、
1570 % Mechanical Engineering、
1571 % Optical Engineering、
1572 % Instrument Science and Technology、
1573 % Materials Science and Engineering、
1574 % Electrical Engineering、
1575 % Electronics Science and Technology、
1576 % Information and Communications Engineering、
1577 % Control Science and Engineering、
1578 % Computer Science and Technology、
1579 % Communication and Transportation Engineering、
1580 % Biomedical Engineering、
1581 % Software Engineering、
1582 % Cyber Security、
1583 % Military Command Science、
1584 % Management Science and Engineering、
1585 % Business Administration、
1586 % Science of Library, Information and Archival
1587 % \item \optx{sub-major}
1588 % \par
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 % \item \optx{domain} (专业硕士)
1670 % \par
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 % \item \optx{domain} (专业博士)
1700 % \par
1701 % 电子与信息、
1702 % 先进制造、
1703 % 电子信息、
1704 % 机械
1705 % \item \optx{supv-title}
1706 % \par
1707 % 教授、
1708 % 副教授
1709 % \item \optx{supv-title*}
1710 % \par
1711 % Professor、
1712 % Associate Professor
1713 % \item \optx{supv-ent-title}
1714 % \par
1715 % 研究员、
1716 % 副研究员、
1717 % 高工
1718 % \item \optx{supv-ent-title*}
1719 % \par
1720 % Research Fellow、
1721 % Associate Research Fellow、
1722 % Senior Engineer
1723 % \end{itemize}
1724 % \setlength\parindent{2em}
1725 % \subsection{页面和信息移除}
1726 % \label{页面和信息移除}
1727 % \changes{v6.1.1.1}{2023/03/06}{修正文档中页面移除值样式}
1728 % \changes{v6.0.0.0}{2023/03/02}{修正题名页键值}
1729 % \changes{v2.12.1.0}{2022/07/03}{页面和信息移除选项增加分组}
1730 % \begin{function}[added=2022-06-26,updated=2023-03-02]{style/remove-page}
1731 % \begin{syntax}
1732 % \opt{style/remove-page} = \texttt{\char`\{}封面|题名页|声明页|摘要|索引|对照表|目录|附录|参考文献|致谢|作者简介\texttt{\char`\}}
1733 % \end{syntax}
1734 % 设置移除的页面,可多选,多个值之间需要使用英文半角逗号隔开,例如:
1735 % \begin{lstlisting}
1736 % \xdusetup{ style / remove-page = { 封面, 题名页, 致谢 } }
1737 % \end{lstlisting}
1738 % \end{function}
1739 % \begin{optdesc}
1740 % \item[题名页] 中英文题名页。
1741 % \item[摘要] 中英文摘要。
1742 % \item[索引] 图片索引和表格索引。
1743 % \item[对照表] 符号对照表和缩略语对照表。
1744 % \end{optdesc}
1745 % \begin{function}[added=2022-06-26]{style/remove-header}
1746 % \begin{syntax}
1747 % \opt{style/remove-header} = true|(false)
1748 % \end{syntax}
1749 % 设置是否移除页眉。
1750 % \end{function}
1751 % \begin{function}[added=2022-06-26]{style/remove-footer}
1752 % \begin{syntax}
1753 % \opt{style/remove-footer} = true|(false)
1754 % \end{syntax}
1755 % 设置是否移除页脚。
1756 % \end{function}
1757 % \begin{function}[added=2022-06-26]{style/anonymous}
1758 % \begin{syntax}
1759 % \opt{anonymous} = true|(false)
1760 % \end{syntax}
1761 % 设置是否开启匿名,与\secrefx{额外命令}中的\tnx{anon}搭配使用。
1762 % \end{function}
1763 % \subsection{额外命令}
1764 % \label{额外命令}
1765 % \subsubsection{\tn{noauxwrite}}
1766 % \label{noauxwrite}
1767 % \begin{function}[added=2022-05-13]{\noauxwrite}
1768 % \begin{syntax}
1769 % \tn{noauxwrite}\marg{参考文献引用命令}
1770 % \end{syntax}
1771 % \tnx[]{noauxwrite}允许添加不影响现有引用列表顺序的引用。
1772 % 一个简单的例子如下所示:
1773 % \begin{lstlisting}
1774 % \caption{本文与文献\noauxwrite{\parencite{某文献}}计算开销对比}
1775 % \end{lstlisting}
1776 % \end{function}
1777 % \changes{v1.30.0.0}{2022/06/20}{英文研究生学位论文标题}
1778 % \subsubsection{英文研究生学位论文标题}
1779 % \label{英文研究生学位论文标题}
1780 % \begin{function}[added=2022-06-20,updated=2023-01-28]{\chapter,\section,\subsection}
1781 % \begin{syntax}
1782 % \tn{chapter}\marg{英文标题}\oarg{中文标题}
1783 % \tn{section}\marg{英文标题}\oarg{中文标题}
1784 % \tn{subsection}\marg{英文标题}\oarg{中文标题}
1785 % \end{syntax}
1786 % 在英文研究生学位论文中一二三级标题为中英双语,其他级别标题为英文。
1787 % 一个简单的例子如下所示:
1788 % \begin{lstlisting}
1789 % \chapter{This Is Chapter}[这是一级标题]
1790 % \section{This Is Section}[这是二级标题]
1791 % \subsection{This Is Subsection}[这是三级标题]
1792 % \subsubsection{This Is Subsubsection}
1793 % \paragraph{This Is Paragraph}
1794 % \subparagraph{This Is Subparagraph}
1795 % \end{lstlisting}
1796 % \end{function}
1797 % \subsubsection{匿名命令}
1798 % \label{匿名命令}
1799 % \begin{function}[added=2022-06-26]{\anon}
1800 % \begin{syntax}
1801 % \tn{anon}\oarg{匿名内容}\marg{非匿名内容}
1802 % \end{syntax}
1803 % 根据\optx{style/anonymous}的状态来显示相应的\metax{匿名内容}和\metax{非匿名内容}[]。
1804 % 其中\oargx{匿名内容}为可选参数,默认为XXX。
1805 % 一个简单的例子如下所示:
1806 % \begin{lstlisting}
1807 % \anon[XX]{张三}
1808 % \end{lstlisting}
1809 % 当\optx{style/anonymous}为\valuex{true}[],输出XX;当\optx{style/anonymous}为\valuex{false}[],输出张三。
1810 % \end{function}
1811 % \subsection{额外功能}
1812 % \label{额外功能}
1813 % \changes{v1.26.11.1}{2022/06/17}{带教导师与挂名导师}
1814 % \subsubsection{带教导师与挂名导师}
1815 % 已和学位办确认,对于研究生,如挂名导师与带教导师不是一人的,
1816 % 仅需填写带教导师,无需填写挂名导师。
1817 % 如有特殊需求,需要填写两位老师,
1818 % 可在\optx{info/supervisor}[]、\optx[]{info/supervisor*}[]、^^A
1819 % \optx[]{info/supv-title}和\optx{info/supv-title*}中
1820 % 使用逗号分隔两位老师的信息。
1821 % \changes{v2.10.1.1}{2022/06/26}{相似性检测、盲审和抽查评估}
1822 % \subsubsection{相似性检测、盲审和抽查评估}
1823 % 对于相似性检测、盲审和抽查评估,主要分为两种操作,
1824 % 一种是页面移除,另外一种是信息的隐藏和替换。
1825 % 页面移除请参考\secrefx{页面和信息移除},
1826 % 信息隐藏请自行删除或注释相应的信息录入选项,
1827 % 信息替换请自行修改相应的信息录入选项;
1828 % 作者简介部分的信息匿名请参考\secrefx{匿名命令}。
1829 % 用户根据学校和学院的具体要求,
1830 % 组合使用以上两种操作来生成符合相似性检测、盲审和抽查评估要求的论文。
1831 % \changes{v2.14.0.0}{2022/11/21}{隐藏部分索引和对照表}
1832 % \subsubsection{隐藏部分索引和对照表}
1833 % 由于存在插图索引、表格索引、符号对照表或缩略语对照表为空的情况,
1834 % 故支持隐藏插图索引、表格索引、符号对照表或缩略语对照表,例如:
1835 % \begin{lstlisting}
1836 % \xdusetup{ style / remove-page = { 插图索引, 符号对照表 } }
1837 % \end{lstlisting}
1838 % \clearpage
1839 % \end{documentation}
1840 % \StopEventually{}
1841 % \begin{implementation}
1842 % \addtocontents{toc}{\protect\value{tocdepth}=5}
1843 % \section{代码实现}
1844 % \changes{v0.1.0.0}{2022/04/03}{基本完成本科毕业设计论文模板}
1845 % \setlength\parindent{0pt}
1846 % \begin{macrocode}
1847 %<@@=xdu>
1848 % \end{macrocode}
1849 % \subsection{宏包和文档类}
1850 % \begin{macrocode}
1851 %<*class|sty>
1852 % \end{macrocode}
1853 % \begin{macrocode}
1854 \RequirePackage { xparse, l3keys2e }
1855 % \end{macrocode}
1856 % \changes{v5.5.0.0}{2023/03/01}{抑制\pkgx{fontspec}对数学字体的修改}
1857 % \begin{macro}{\PassOptionsToPackage}
1858 % 抑制\pkgx{fontspec}对数学字体的修改。
1859 % \begin{macrocode}
1860 \PassOptionsToPackage { no-math } { fontspec }
1861 % \end{macrocode}
1862 % \end{macro}
1863 % \begin{macro}{\PassOptionsToPackage}
1864 % 忽略字体警告。
1865 % \begin{macrocode}
1866 \PassOptionsToPackage { quiet } { xeCJK }
1867 % \end{macrocode}
1868 % \end{macro}
1869 % \begin{macrocode}
1870 %</class|sty>
1871 %<*class>
1872 % \end{macrocode}
1873 % \begin{macro}{\PassOptionsToClass,\LoadClass}
1874 % \changes{v0.3.2.0}{2022/04/04}{修正行间距为1.5倍}
1875 % \changes{v1.8.1.0}{2022/05/03}{修正页面尺寸}
1876 % \changes{v1.9.2.0}{2022/05/04}{修正行间距为1.625倍}
1877 % 加载\clsx{ctexbook}或\clsx{ctexart}文档类。
1878 % \\
1879 % \LaTeX{}中基本行距是字号大小的1.2倍,Microsoft Word中基本行距是字号大小的1.3倍,
1880 % Microsoft Word中1.5倍行距,相当于LaTeX中$1.5\times\frac{1.3}{1.2}=1.625$倍行距。
1881 % \begin{macrocode}
1882 \PassOptionsToClass
1883 {
1884 a4paper,
1885 zihao=-4,
1886 sub4section,
1887 %<xduugthesis> linespread = 1.625,
1888 fontset = none
1889 }
1890 %<thesis> { ctexbook }
1891 %<tp> { ctexart }
1892 %<thesis>\LoadClass { ctexbook }
1893 %<tp>\LoadClass { ctexart }
1894 % \end{macrocode}
1895 % \end{macro}
1896 % 设置纸张尺寸为A4。
1897 % \begin{macrocode}
1898 \RequirePackage { geometry }
1899 \geometry { paper = a4paper }
1900 % \end{macrocode}
1901 % \begin{macrocode}
1902 %</class>
1903 %<*thesis>
1904 % \end{macrocode}
1905 % \begin{macrocode}
1906 \RequirePackage { fancyhdr }
1907 \RequirePackage { xeCJKfntef }
1908 \RequirePackage { graphicx }
1909 % \end{macrocode}
1910 % \begin{macrocode}
1911 %</thesis>
1912 %<*xdufont>
1913 % \end{macrocode}
1914 % \begin{macrocode}
1915 \RequirePackage { xeCJK }
1916 % \end{macrocode}
1917 % \begin{macrocode}
1918 %</xdufont>
1919 % \end{macrocode}
1920 % \subsection{字体配置}
1921 % \begin{macrocode}
1922 %<*class|xdufont>
1923 % \end{macrocode}
1924 % \begin{variable}
1925 % {
1926 % \l_@@_cjk_font_tl,
1927 % \l_@@_fake_bold_tl,
1928 % \l_@@_fake_slant_tl,
1929 % \l_@@_latin_font_tl,
1930 % \l_@@_latin_sans_scale_tl,
1931 % \l_@@_latin_mono_scale_tl,
1932 % \l_@@_math_font_tl,
1933 % \l_@@_unicode_math_tl,
1934 % \l_@@_font_type_tl,
1935 % \l_@@_font_path_tl
1936 % }
1937 % 中文字体配置名称。
1938 % \begin{macrocode}
1939 \tl_new:N \l_@@_cjk_font_tl
1940 % \end{macrocode}
1941 % \changes{v0.8.2.0}{2022/04/12}{修复LaTeX3新接口导致的Overleaf无法编译}
1942 % 中文字体伪粗体粗细程度。
1943 % \begin{macrocode}
1944 \tl_new:N \l_@@_fake_bold_tl
1945 % \end{macrocode}
1946 % 中文字体伪斜体倾斜程度。
1947 % \begin{macrocode}
1948 \tl_new:N \l_@@_fake_slant_tl
1949 % \end{macrocode}
1950 % 英文字体配置名称。
1951 % \begin{macrocode}
1952 \tl_new:N \l_@@_latin_font_tl
1953 % \end{macrocode}
1954 % 匹配无衬线族和打字机族字符高度。
1955 % \begin{macrocode}
1956 \tl_new:N \l_@@_latin_sans_scale_tl
1957 \tl_new:N \l_@@_latin_mono_scale_tl
1958 % \end{macrocode}
1959 % 数学字体配置名称。
1960 % \begin{macrocode}
1961 \tl_new:N \l_@@_math_font_tl
1962 % \end{macrocode}
1963 % unicode-math配置选项。
1964 % \begin{macrocode}
1965 \tl_new:N \l_@@_unicode_math_tl
1966 % \end{macrocode}
1967 % 字体名称/文件名称。
1968 % \begin{macrocode}
1969 \tl_new:N \l_@@_font_type_tl
1970 % \end{macrocode}
1971 % 字体文件路径。
1972 % \begin{macrocode}
1973 \tl_new:N \l_@@_font_path_tl
1974 % \end{macrocode}
1975 % \end{variable}
1976 % \begin{macro}{\keys_define:nn}
1977 % 定义样式键值。
1978 % \begin{macrocode}
1979 \keys_define:nn { xdu / style }
1980 {
1981 % \end{macrocode}
1982 % 中文字体配置。
1983 % \begin{macrocode}
1984 cjk-font .choices:nn =
1985 { win, adobe, founder, hanyi, sinotype, fandol, none }
1986 { \tl_set_eq:NN \l_@@_cjk_font_tl \l_keys_choice_tl },
1987 % \end{macrocode}
1988 % 中文字体伪粗体粗细程度。
1989 % \begin{macrocode}
1990 cjk-fake-bold .tl_set:N = \l_@@_fake_bold_tl,
1991 % \end{macrocode}
1992 % 中文字体伪斜体倾斜程度。
1993 % \begin{macrocode}
1994 cjk-fake-slant .tl_set:N = \l_@@_fake_slant_tl,
1995 % \end{macrocode}
1996 % 匹配无衬线族和打字机族字符高度。
1997 % \begin{macrocode}
1998 latin-sans-scale .choices:nn = { upper, lower, off }
1999 { \tl_set_eq:NN \l_@@_latin_sans_scale_tl \l_keys_choice_tl },
2000 latin-mono-scale .choices:nn = { upper, lower, off }
2001 { \tl_set_eq:NN \l_@@_latin_mono_scale_tl \l_keys_choice_tl },
2002 % \end{macrocode}
2003 % 英文字体配置。
2004 % \begin{macrocode}
2005 latin-font .choices:nn = { gyre, tac, tacn, tcc, thcs, tll, none }
2006 { \tl_set_eq:NN \l_@@_latin_font_tl \l_keys_choice_tl },
2007 % \end{macrocode}
2008 % 数学字体配置。
2009 % \begin{macrocode}
2010 math-font .choices:nn =
2011 {
2012 asana, bonum, cambria, cm, concrete, dejavu, erewhon, euler,
2013 fira, garamond, gfsneohellenic, kp, libertinus, lm, newcm,
2014 pagella, schola, stix, stix2, termes, xcharter, xits, none
2015 }
2016 { \tl_set_eq:NN \l_@@_math_font_tl \l_keys_choice_tl },
2017 unicode-math .tl_set:N = \l_@@_unicode_math_tl,
2018 % \end{macrocode}
2019 % 字体调用方式配置,文件名称/字体名称。
2020 % \begin{macrocode}
2021 font-type .choices:nn = { font, file }
2022 { \tl_set_eq:NN \l_@@_font_type_tl \l_keys_choice_tl },
2023 % \end{macrocode}
2024 % 字体文件路径配置。
2025 % \begin{macrocode}
2026 font-path .tl_set:N = \l_@@_font_path_tl
2027 }
2028 % \end{macrocode}
2029 % \end{macro}
2030 % \begin{macro}{\keys_set:nn}
2031 % \changes{v0.9.1.0}{2022/04/13}{修改中英文字体默认配置}
2032 % 初始设置。
2033 % \begin{macrocode}
2034 \keys_set:nn { xdu }
2035 {
2036 style / cjk-font = fandol,
2037 style / cjk-fake-bold = 3,
2038 style / cjk-fake-slant = 0.2,
2039 style / latin-font = gyre,
2040 style / latin-sans-scale = off,
2041 style / latin-mono-scale = off,
2042 style / math-font = cm,
2043 style / unicode-math = { },
2044 style / font-type = font,
2045 style / font-path = fonts
2046 }
2047 % \end{macrocode}
2048 % \end{macro}
2049 % \changes{v0.5.1.0}{2022/04/06}{判断操作系统是否是macOS}
2050 % \changes{v0.5.1.0}{2022/04/06}{加载字体时自动判断是否为macOS平台}
2051 % \begin{macro}{\@@_select_font:nn}
2052 % 自动选择字体文件名称或字体名称。
2053 % \begin{arguments}
2054 % \item 字体名称。
2055 % \item 字体文件名称。
2056 % \end{arguments}
2057 % \begin{macrocode}
2058 \cs_new:Npn \@@_select_font:nn #1#2
2059 {
2060 \str_if_eq:NNTF { \l_@@_font_type_tl } { font }
2061 { #1 }
2062 { #2 }
2063 }
2064 % \end{macrocode}
2065 % \end{macro}
2066 % \begin{macro}{\@@_font_path:}
2067 % 当选择使用字体文件配置字体时,设置字体文件路径。
2068 % \begin{macrocode}
2069 \cs_new:Npn \@@_font_path:
2070 {
2071 \str_if_eq:NNTF { \l_@@_font_type_tl } { font }
2072 { }
2073 { Path = \l_@@_font_path_tl / , }
2074 }
2075 % \end{macrocode}
2076 % \end{macro}
2077 % \subsubsection{中文字体}
2078 % \begin{macro}{\@@_cfg_cjk_font_sub_b:}
2079 % 中文粗体。
2080 % \begin{macrocode}
2081 \cs_new:Npn \@@_cfg_cjk_font_sub_b:n #1
2082 {
2083 BoldFont = { #1 }
2084 }
2085 % \end{macrocode}
2086 % \end{macro}
2087 % \begin{macro}{\@@_cfg_cjk_font_sub_fb:n}
2088 % 中文伪粗体。
2089 % \begin{macrocode}
2090 \cs_new:Npn \@@_cfg_cjk_font_sub_fb:n #1
2091 {
2092 BoldFont = { #1 },
2093 BoldFeatures = { FakeBold = \l_@@_fake_bold_tl }
2094 }
2095 % \end{macrocode}
2096 % \end{macro}
2097 % \begin{macro}{\@@_cfg_cjk_font_sub_fs:n}
2098 % 中文伪斜体。
2099 % \begin{macrocode}
2100 \cs_new:Npn \@@_cfg_cjk_font_sub_fs:n #1
2101 {
2102 SlantedFont = { #1 },
2103 SlantedFeatures = { FakeSlant = \l_@@_fake_slant_tl }
2104 }
2105 % \end{macrocode}
2106 % \end{macro}
2107 % \begin{macro}{\@@_cfg_cjk_font_sub_fbfs:n}
2108 % 中文伪粗斜体。
2109 % \begin{macrocode}
2110 \cs_new:Npn \@@_cfg_cjk_font_sub_fbfs:n #1
2111 {
2112 BoldSlantedFont = { #1 },
2113 BoldSlantedFeatures =
2114 {
2115 FakeBold = \l_@@_fake_bold_tl,
2116 FakeSlant = \l_@@_fake_slant_tl
2117 }
2118 }
2119 % \end{macrocode}
2120 % \end{macro}
2121 % \begin{macro}{\@@_cfg_cjk_font_sub_bfs:n}
2122 % 中文粗伪斜体。
2123 % \begin{macrocode}
2124 \cs_new:Npn \@@_cfg_cjk_font_sub_bfs:n #1
2125 {
2126 BoldSlantedFont = { #1 },
2127 BoldSlantedFeatures = { FakeSlant = \l_@@_fake_slant_tl }
2128 }
2129 % \end{macrocode}
2130 % \end{macro}
2131 % \begin{macro}{\@@_cfg_cjk_font_sub_i:n}
2132 % 中文意大利体。
2133 % \begin{macrocode}
2134 \cs_new:Npn \@@_cfg_cjk_font_sub_i:n #1
2135 {
2136 ItalicFont = { #1 }
2137 }
2138 % \end{macrocode}
2139 % \end{macro}
2140 % \begin{macro}{\@@_cfg_cjk_font_sub_fi:n}
2141 % 中文伪意大利体,即伪斜体。
2142 % \begin{macrocode}
2143 \cs_new:Npn \@@_cfg_cjk_font_sub_fi:n #1
2144 {
2145 ItalicFont = { #1 },
2146 ItalicFeatures = { FakeSlant = \l_@@_fake_slant_tl }
2147 }
2148 % \end{macrocode}
2149 % \end{macro}
2150 % \begin{macro}{\@@_cfg_cjk_font_sub_ifb:n}
2151 % 中文意大利体伪粗体。
2152 % \begin{macrocode}
2153 \cs_new:Npn \@@_cfg_cjk_font_sub_ifb:n #1
2154 {
2155 BoldItalicFont = { #1 },
2156 BoldItalicFeatures = { FakeBold = \l_@@_fake_bold_tl }
2157 }
2158 % \end{macrocode}
2159 % \end{macro}
2160 % \begin{macro}{\@@_cfg_cjk_font_sub_fifb:n}
2161 % 中文伪意大利体伪粗体。
2162 % \begin{macrocode}
2163 \cs_new:Npn \@@_cfg_cjk_font_sub_fifb:n #1
2164 {
2165 BoldItalicFont = { #1 },
2166 BoldItalicFeatures =
2167 {
2168 FakeBold = \l_@@_fake_bold_tl,
2169 FakeSlant = \l_@@_fake_slant_tl
2170 }
2171 }
2172 % \end{macrocode}
2173 % \end{macro}
2174 % \begin{macro}{\@@_cfg_cjk_font_r:n}
2175 % 配置中文字体,包括粗体、斜体、斜粗体、意大利体、粗意大利体。
2176 % \begin{macrocode}
2177 \cs_new:Npn \@@_cfg_cjk_font_r:n #1
2178 {
2179 \@@_cfg_cjk_font_sub_fb:n { #1 },
2180 \@@_cfg_cjk_font_sub_fs:n { #1 },
2181 \@@_cfg_cjk_font_sub_fbfs:n { #1 },
2182 \@@_cfg_cjk_font_sub_fi:n { #1 },
2183 \@@_cfg_cjk_font_sub_fifb:n { #1 }
2184 }
2185 % \end{macrocode}
2186 % \end{macro}
2187 % \begin{macro}{\@@_cfg_cjk_font_rb:nn}
2188 % 配置中文字体,包括粗体、斜体、斜粗体、意大利体、粗意大利体,其中粗体和斜粗体为其他字体。
2189 % \begin{arguments}
2190 % \item 常规字体。
2191 % \item 粗体字体。
2192 % \end{arguments}
2193 % \begin{macrocode}
2194 \cs_new:Npn \@@_cfg_cjk_font_rb:nn #1#2
2195 {
2196 \@@_cfg_cjk_font_sub_b:n { #2 },
2197 \@@_cfg_cjk_font_sub_fs:n { #1 },
2198 \@@_cfg_cjk_font_sub_bfs:n { #2 },
2199 \@@_cfg_cjk_font_sub_fi:n { #1 },
2200 \@@_cfg_cjk_font_sub_fifb:n { #1 }
2201 }
2202 % \end{macrocode}
2203 % \end{macro}
2204 % \begin{macro}{\@@_cfg_cjk_font_ri:nn}
2205 % 配置中文字体,包括粗体、斜体、斜粗体、意大利体、粗意大利体,其中意大利体和粗意大利体为其他字体。
2206 % \begin{arguments}
2207 % \item 常规字体。
2208 % \item 意大利体字体。
2209 % \end{arguments}
2210 % \begin{macrocode}
2211 \cs_new:Npn \@@_cfg_cjk_font_ri:nn #1#2
2212 {
2213 \@@_cfg_cjk_font_sub_fb:n { #1 },
2214 \@@_cfg_cjk_font_sub_fs:n { #1 },
2215 \@@_cfg_cjk_font_sub_fbfs:n { #1 },
2216 \@@_cfg_cjk_font_sub_i:n { #2 },
2217 \@@_cfg_cjk_font_sub_ifb:n { #2 }
2218 }
2219 % \end{macrocode}
2220 % \end{macro}
2221 % \begin{macro}{\@@_cfg_cjk_font_rbi:nnn}
2222 % 配置中文字体,包括粗体、斜体、斜粗体、意大利体、粗意大利体,其中粗体、斜粗体、意大利体和粗意大利体为其他字体。
2223 % \begin{arguments}
2224 % \item 常规字体。
2225 % \item 粗体字体。
2226 % \item 意大利体字体。
2227 % \end{arguments}
2228 % \begin{macrocode}
2229 \cs_new:Npn \@@_cfg_cjk_font_rbi:nnn #1#2#3
2230 {
2231 \@@_cfg_cjk_font_sub_b:n { #2 },
2232 \@@_cfg_cjk_font_sub_fs:n { #1 },
2233 \@@_cfg_cjk_font_sub_bfs:n { #2 },
2234 \@@_cfg_cjk_font_sub_i:n { #3 },
2235 \@@_cfg_cjk_font_sub_ifb:n { #3 }
2236 }
2237 % \end{macrocode}
2238 % \end{macro}
2239 % \begin{macro}{\@@_set_cjk_main_font:nn,\@@_set_cjk_main_font:nnn}
2240 % 配置中文罗马族字体。
2241 % \begin{arguments}
2242 % \item 宋体字体。
2243 % \item 楷体字体。
2244 % \end{arguments}
2245 % \begin{macrocode}
2246 \cs_new:Npn \@@_set_cjk_main_font:nn #1#2
2247 {
2248 \setCJKmainfont { #1 }
2249 [ \@@_font_path: \@@_cfg_cjk_font_ri:nn { #1 } { #2 } ]
2250 }
2251 \cs_new:Npn \@@_set_cjk_main_font:nnn #1#2#3
2252 {
2253 \setCJKmainfont { #1 }
2254 [ \@@_font_path: \@@_cfg_cjk_font_rbi:nnn { #1 } { #2 } { #3 } ]
2255 }
2256 % \end{macrocode}
2257 % \end{macro}
2258 % \begin{macro}{\@@_set_cjk_sans_font:n,\@@_set_cjk_sans_font:nn}
2259 % 配置中文无衬线族字体。
2260 % \begin{macrocode}
2261 \cs_new:Npn \@@_set_cjk_sans_font:n #1
2262 {
2263 \setCJKsansfont { #1 }
2264 [ \@@_font_path: \@@_cfg_cjk_font_r:n { #1 } ]
2265 }
2266 \cs_new:Npn \@@_set_cjk_sans_font:nn #1#2
2267 {
2268 \setCJKsansfont { #1 }
2269 [ \@@_font_path: \@@_cfg_cjk_font_rb:nn { #1 } { #2 } ]
2270 }
2271 % \end{macrocode}
2272 % \end{macro}
2273 % \begin{macro}{\@@_set_cjk_mono_font:n}
2274 % 配置中文等宽族字体。
2275 % \begin{macrocode}
2276 \cs_new:Npn \@@_set_cjk_mono_font:n #1
2277 {
2278 \setCJKmonofont { #1 }
2279 [ \@@_font_path: \@@_cfg_cjk_font_r:n { #1 } ]
2280 }
2281 % \end{macrocode}
2282 % \end{macro}
2283 % \begin{macro}{\@@_load_cjk_font_win:}
2284 % 中文字体配置\valuex{win}[]。
2285 % \begin{macrocode}
2286 \cs_new:Npn \@@_load_cjk_font_win:
2287 {
2288 \@@_set_cjk_main_font:nn
2289 { \@@_select_font:nn { SimSun } { simsun.ttc } }
2290 { \@@_select_font:nn { KaiTi } { simkai.ttf } }
2291 \@@_set_cjk_sans_font:n
2292 { \@@_select_font:nn { SimHei } { simhei.ttf } }
2293 \@@_set_cjk_mono_font:n
2294 { \@@_select_font:nn { FangSong } { simfang.ttf } }
2295 }
2296 % \end{macrocode}
2297 % \end{macro}
2298 % \begin{macro}{\@@_load_cjk_font_adobe:}
2299 % 中文字体配置\valuex{adobe}[]。
2300 % \begin{macrocode}
2301 \cs_new:Npn \@@_load_cjk_font_adobe:
2302 {
2303 \@@_set_cjk_main_font:nn
2304 { \@@_select_font:nn { Adobe~Song~Std } { adobesongstd-light.otf } }
2305 { \@@_select_font:nn { Adobe~Kaiti~Std } { adobekaitistd-regular.otf } }
2306 \@@_set_cjk_sans_font:n
2307 { \@@_select_font:nn { Adobe~Heiti~Std } { adobeheitistd-regular.otf } }
2308 \@@_set_cjk_mono_font:n
2309 { \@@_select_font:nn { Adobe~Fangsong~Std } { Adobe-Fangsong-Std-R-Font.otf } }
2310 }
2311 % \end{macrocode}
2312 % \end{macro}
2313 % \begin{macro}{\@@_load_cjk_font_founder:}
2314 % \changes{v0.5.1.0}{2022/04/06}{适配macOS平台方正字体}
2315 % 中文字体配置\valuex{founder}[]。
2316 % \begin{macrocode}
2317 \cs_new:Npn \@@_load_cjk_font_founder:
2318 {
2319 \@@_set_cjk_main_font:nn
2320 { \@@_select_font:nn { FZShuSong-Z01 } { FZShuSong-Z01.ttf } }
2321 { \@@_select_font:nn { FZKai-Z03 } { FZKai-Z03.ttf } }
2322 \@@_set_cjk_sans_font:n
2323 { \@@_select_font:nn { FZHei-B01 } { FZHei-B01.ttf } }
2324 \@@_set_cjk_mono_font:n
2325 { \@@_select_font:nn { FZFangSong-Z02 } { FZFSK.TTF } }
2326 }
2327 % \end{macrocode}
2328 % \end{macro}
2329 % \changes{v5.1.0.0}{2023/02/20}{增加汉仪字体}
2330 % \begin{macro}{\@@_load_cjk_font_hanyi:}
2331 % 中文字体配置\valuex{hanyi}[]。
2332 % \begin{macrocode}
2333 \cs_new:Npn \@@_load_cjk_font_hanyi:
2334 {
2335 \@@_set_cjk_main_font:nn
2336 { \@@_select_font:nn { HYShuSongErS } { HYShuSongErS.ttf } }
2337 { \@@_select_font:nn { HYKaiTiS } { HYKaiTiS.ttf } }
2338 \@@_set_cjk_sans_font:n
2339 { \@@_select_font:nn { HYZhongHei } { HYZhongHeiTiS.ttf } }
2340 \@@_set_cjk_mono_font:n
2341 { \@@_select_font:nn { HYFangSongS } { HYFangSongS.ttf } }
2342 }
2343 % \end{macrocode}
2344 % \end{macro}
2345 % \begin{macro}{\@@_load_cjk_font_sinotype:}
2346 % 中文字体配置\valuex{sinotype}[]。
2347 % \begin{macrocode}
2348 \cs_new:Npn \@@_load_cjk_font_sinotype:
2349 {
2350 \@@_set_cjk_main_font:nn
2351 { \@@_select_font:nn { STSong } { STSONG.TTF } }
2352 { \@@_select_font:nn { STKaiti } { STKAITI.TTF } }
2353 \@@_set_cjk_sans_font:nn
2354 { \@@_select_font:nn { STXihei } { STXIHEI.TTF } }
2355 { \@@_select_font:nn { STHeiti } { STHeiti.ttf } }
2356 \@@_set_cjk_mono_font:n
2357 { \@@_select_font:nn { STFangsong } { STFANGSO.TTF } }
2358 }
2359 % \end{macrocode}
2360 % \end{macro}
2361 % \begin{macro}{\@@_load_cjk_font_fandol:}
2362 % \changes{v0.5.1.0}{2022/04/06}{适配macOS平台Fandol字体}
2363 % 中文字体配置\valuex{fandol}[]。
2364 % \begin{macrocode}
2365 \cs_new:Npn \@@_load_cjk_font_fandol:
2366 {
2367 \@@_set_cjk_main_font:nnn
2368 { FandolSong-Regular.otf }
2369 { FandolSong-Bold.otf }
2370 { FandolKai-Regular.otf }
2371 \@@_set_cjk_sans_font:nn
2372 { FandolHei-Regular.otf }
2373 { FandolHei-Bold.otf }
2374 \@@_set_cjk_mono_font:n
2375 { FandolFang-Regular.otf }
2376 }
2377 % \end{macrocode}
2378 % \end{macro}
2379 % \begin{macro}{\@@_load_cjk_font_none:}
2380 % 中文字体配置\valuex{none}[]。
2381 % \begin{macrocode}
2382 \cs_new:Npn \@@_load_cjk_font_none: { }
2383 % \end{macrocode}
2384 % \end{macro}
2385 % \subsubsection{英文字体}
2386 % \begin{macro}{\@@_set_latin_font:nnn}
2387 % 配置英文字体。
2388 % \begin{macrocode}
2389 \cs_new:Npn \@@_set_latin_font:nnn #1#2#3
2390 {
2391 BoldFont = { #1 },
2392 SlantedFont = { #2 },
2393 BoldSlantedFont = { #3 },
2394 ItalicFont = { #2 },
2395 BoldItalicFont = { #3 }
2396 }
2397 % \end{macrocode}
2398 % \end{macro}
2399 % \changes{v6.1.2.0}{2023/03/07}{修正匹配打字机族字符高度}
2400 % \changes{v4.3.0.0}{2023/01/28}{匹配无衬线族和打字机族字符高度}
2401 % \changes{v0.8.3.0}{2022/04/13}{匹配小写字母字符高度}
2402 % \begin{macro}{\@@_set_latin_sans_scale:,\@@_set_latin_mono_scale:}
2403 % 匹配无衬线族和打字机族字符高度。
2404 % \begin{macrocode}
2405 \cs_new:Npn \@@_set_latin_sans_scale: { }
2406 \cs_new:Npn \@@_set_latin_mono_scale: { }
2407 \ctex_at_end_preamble:n
2408 {
2409 \tl_if_eq:NnTF \l_@@_latin_sans_scale_tl { upper }
2410 { \cs_set:Npn \@@_set_latin_sans_scale: { Scale = MatchUppercase , } }
2411 {
2412 \tl_if_eq:NnT \l_@@_latin_sans_scale_tl { lower }
2413 { \cs_set:Npn \@@_set_latin_sans_scale: { Scale = MatchLowercase , } }
2414 }
2415 \tl_if_eq:NnTF \l_@@_latin_mono_scale_tl { upper }
2416 { \cs_set:Npn \@@_set_latin_mono_scale: { Scale = MatchUppercase , } }
2417 {
2418 \tl_if_eq:NnT \l_@@_latin_mono_scale_tl { lower }
2419 { \cs_set:Npn \@@_set_latin_mono_scale: { Scale = MatchLowercase , } }
2420 }
2421 }
2422 % \end{macrocode}
2423 % \end{macro}
2424 % \begin{macro}{\@@_off_latin_ligatures:}
2425 % \changes{v0.8.3.0}{2022/04/13}{关闭连字}
2426 % 关闭连字。
2427 % \begin{macrocode}
2428 \cs_new:Npn \@@_off_latin_ligatures:
2429 { Ligatures = CommonOff , }
2430 % \end{macrocode}
2431 % \end{macro}
2432 % \begin{macro}{\@@_set_latin_main_font:nnnnn}
2433 % 配置英文罗马族字体,参数分别为字体名称、字体文件名称(常规、粗体、意大利体、粗意大利体)。
2434 % \begin{arguments}
2435 % \item 字体名称。
2436 % \item 常规字体名称。
2437 % \item 粗体字体名称。
2438 % \item 意大利体字体名称。
2439 % \item 粗意大利体字体名称。
2440 % \end{arguments}
2441 % \begin{macrocode}
2442 \cs_new:Npn \@@_set_latin_main_font:nnnnn #1#2#3#4#5
2443 {
2444 \str_if_eq:NNTF { \l_@@_font_type_tl } { font }
2445 { \setmainfont { #1 } }
2446 {
2447 \setmainfont { #2 }
2448 [
2449 \@@_font_path:
2450 \@@_set_latin_font:nnn { #3 } { #4 } { #5 }
2451 ]
2452 }
2453 }
2454 % \end{macrocode}
2455 % \end{macro}
2456 % \begin{macro}{\@@_set_latin_sans_font:nnnnn}
2457 % \changes{v0.8.3.0}{2022/04/13}{修正英文无衬线族字体字符高度}
2458 % 配置英文无衬线族字体,参数分别为字体名称、字体文件名称(常规、粗体、意大利体、粗意大利体)。
2459 % \begin{arguments}
2460 % \item 字体名称。
2461 % \item 常规字体名称。
2462 % \item 粗体字体名称。
2463 % \item 意大利体字体名称。
2464 % \item 粗意大利体字体名称。
2465 % \end{arguments}
2466 % \begin{macrocode}
2467 \cs_new:Npn \@@_set_latin_sans_font:nnnnn #1#2#3#4#5
2468 {
2469 \str_if_eq:NNTF { \l_@@_font_type_tl } { font }
2470 { \setsansfont { #1 } [ \@@_set_latin_sans_scale: ] }
2471 {
2472 \setsansfont { #2 }
2473 [
2474 \@@_font_path:
2475 \@@_set_latin_sans_scale:
2476 \@@_set_latin_font:nnn { #3 } { #4 } { #5 }
2477 ]
2478 }
2479 }
2480 % \end{macrocode}
2481 % \end{macro}
2482 % \begin{macro}{\@@_set_latin_mono_font:nnnnn}
2483 % \changes{v0.8.3.0}{2022/04/13}{修正英文等宽族字体字符高度并取消连字}
2484 % 配置英文等宽族字体,参数分别为字体名称、字体文件名称(常规、粗体、意大利体、粗意大利体)。
2485 % \begin{arguments}
2486 % \item 字体名称。
2487 % \item 常规字体名称。
2488 % \item 粗体字体名称。
2489 % \item 意大利体字体名称。
2490 % \item 粗意大利体字体名称。
2491 % \end{arguments}
2492 % \begin{macrocode}
2493 \cs_new:Npn \@@_set_latin_mono_font:nnnnn #1#2#3#4#5
2494 {
2495 \str_if_eq:NNTF { \l_@@_font_type_tl } { font }
2496 { \setmonofont { #1 } [ \@@_set_latin_mono_scale: \@@_off_latin_ligatures: ] }
2497 {
2498 \setmonofont { #2 }
2499 [
2500 \@@_font_path:
2501 \@@_set_latin_mono_scale:
2502 \@@_off_latin_ligatures:
2503 \@@_set_latin_font:nnn { #3 } { #4 } { #5 }
2504 ]
2505 }
2506 }
2507 % \end{macrocode}
2508 % \end{macro}
2509 % \begin{macro}{\@@_set_latin_main_font:nnnn}
2510 % \changes{v0.9.0.0}{2022/04/13}{配置TeX Live内置英文罗马族字体}
2511 % 配置英文罗马族字体,参数分别为字体文件名称(常规、粗体、意大利体、粗意大利体)。
2512 % \begin{arguments}
2513 % \item 常规字体名称。
2514 % \item 粗体字体名称。
2515 % \item 意大利体字体名称。
2516 % \item 粗意大利体字体名称。
2517 % \end{arguments}
2518 % \begin{macrocode}
2519 \cs_new:Npn \@@_set_latin_main_font:nnnn #1#2#3#4
2520 {
2521 \setmainfont { #1 }
2522 [
2523 \@@_set_latin_font:nnn { #2 } { #3 } { #4 }
2524 ]
2525 }
2526 % \end{macrocode}
2527 % \end{macro}
2528 % \begin{macro}{\@@_set_latin_sans_font:nnnn}
2529 % \changes{v0.9.0.0}{2022/04/13}{配置TeX Live内置英文无衬线族字体}
2530 % 配置英文无衬线族字体,参数分别为字体文件名称(常规、粗体、意大利体、粗意大利体)。
2531 % \begin{arguments}
2532 % \item 常规字体名称。
2533 % \item 粗体字体名称。
2534 % \item 意大利体字体名称。
2535 % \item 粗意大利体字体名称。
2536 % \end{arguments}
2537 % \begin{macrocode}
2538 \cs_new:Npn \@@_set_latin_sans_font:nnnn #1#2#3#4
2539 {
2540 \setsansfont { #1 }
2541 [
2542 \@@_set_latin_sans_scale:
2543 \@@_set_latin_font:nnn { #2 } { #3 } { #4 }
2544 ]
2545 }
2546 % \end{macrocode}
2547 % \end{macro}
2548 % \begin{macro}{\@@_set_latin_mono_font:nnnn}
2549 % \changes{v0.9.0.0}{2022/04/13}{配置TeX Live内置英文等宽族字体}
2550 % 配置英文等宽族字体,参数分别为字体文件名称(常规、粗体、意大利体、粗意大利体)。
2551 % \begin{arguments}
2552 % \item 常规字体名称。
2553 % \item 粗体字体名称。
2554 % \item 意大利体字体名称。
2555 % \item 粗意大利体字体名称。
2556 % \end{arguments}
2557 % \begin{macrocode}
2558 \cs_new:Npn \@@_set_latin_mono_font:nnnn #1#2#3#4
2559 {
2560 \setmonofont { #1 }
2561 [
2562 \@@_set_latin_mono_scale:
2563 \@@_off_latin_ligatures:
2564 \@@_set_latin_font:nnn { #2 } { #3 } { #4 }
2565 ]
2566 }
2567 % \end{macrocode}
2568 % \end{macro}
2569 % \begin{macro}{\@@_load_latin_font_tac:}
2570 % \changes{v1.12.0.0}{2022/05/06}{增加Arial和Consolas英文字体配置}
2571 % 英文字体配置\valuex{tac}[]。
2572 % \begin{macrocode}
2573 \cs_new:Npn \@@_load_latin_font_tac:
2574 {
2575 \@@_set_latin_main_font:nnnnn
2576 { Times~New~Roman } { times.ttf } { timesbd.ttf } { timesi.ttf } { timesbi.ttf }
2577 \@@_set_latin_sans_font:nnnnn
2578 { Arial } { arial.ttf } { arialbd.ttf } { ariali.ttf } { arialbi.ttf }
2579 \@@_set_latin_mono_font:nnnnn
2580 { Consolas } { consola.ttf } { consolab.ttf } { consolai.ttf } { consolaz.ttf }
2581 }
2582 % \end{macrocode}
2583 % \end{macro}
2584 % \begin{macro}{\@@_load_latin_font_tacn:}
2585 % 英文字体配置\valuex{tacn}[]。
2586 % \begin{macrocode}
2587 \cs_new:Npn \@@_load_latin_font_tacn:
2588 {
2589 \@@_set_latin_main_font:nnnnn
2590 { Times~New~Roman } { times.ttf } { timesbd.ttf } { timesi.ttf } { timesbi.ttf }
2591 \@@_set_latin_sans_font:nnnnn
2592 { Arial } { arial.ttf } { arialbd.ttf } { ariali.ttf } { arialbi.ttf }
2593 \@@_set_latin_mono_font:nnnnn
2594 { Courier~New } { cour.ttf } { courbd.ttf } { couri.ttf } { courbi.ttf }
2595 }
2596 % \end{macrocode}
2597 % \end{macro}
2598 % \begin{macro}{\@@_load_latin_font_tcc:}
2599 % \changes{v5.3.0.0}{2023/02/23}{增加tcc系列英文字体配置}
2600 % 英文字体配置\valuex{tcc}[]。
2601 % \begin{macrocode}
2602 \cs_new:Npn \@@_load_latin_font_tcc:
2603 {
2604 \@@_set_latin_main_font:nnnnn
2605 { Times~New~Roman }
2606 { times.ttf }
2607 { timesbd.ttf }
2608 { timesi.ttf }
2609 { timesbi.ttf }
2610 \@@_set_latin_sans_font:nnnn
2611 { cmunss.otf }
2612 { cmunsx.otf }
2613 { cmunsi.otf }
2614 { cmunso.otf }
2615 \@@_set_latin_mono_font:nnnn
2616 { cmuntt.otf }
2617 { cmuntb.otf }
2618 { cmunit.otf }
2619 { cmuntx.otf }
2620 }
2621 % \end{macrocode}
2622 % \end{macro}
2623 % \begin{macro}{\@@_load_latin_font_thcs:}
2624 % 英文字体配置\valuex{thcs}[]。
2625 % \begin{macrocode}
2626 \cs_new:Npn \@@_load_latin_font_thcs:
2627 {
2628 \@@_set_latin_main_font:nnnnn
2629 { Times~New~Roman }
2630 { times.ttf }
2631 { timesbd.ttf }
2632 { timesi.ttf }
2633 { timesbi.ttf }
2634 \@@_set_latin_sans_font:nnnnn
2635 { Helvetica }
2636 { Helvetica.ttf }
2637 { Helvetica~Bold.ttf }
2638 { Helvetica~Oblique.ttf }
2639 { Helvetica~Bold~Oblique.ttf }
2640 \@@_set_latin_mono_font:nnnnn
2641 { Courier~Std }
2642 { CourierStd.otf }
2643 { CourierStd-Bold.otf }
2644 { CourierStd-Oblique.otf }
2645 { CourierStd-BoldOblique.otf }
2646 }
2647 % \end{macrocode}
2648 % \end{macro}
2649 % \begin{macro}{\@@_load_latin_font_tll:}
2650 % \changes{v5.3.0.0}{2023/02/23}{增加tll系列英文字体配置}
2651 % 英文字体配置\valuex{tll}[]。
2652 % \begin{macrocode}
2653 \cs_new:Npn \@@_load_latin_font_tll:
2654 {
2655 \@@_set_latin_main_font:nnnnn
2656 { Times~New~Roman }
2657 { times.ttf }
2658 { timesbd.ttf }
2659 { timesi.ttf }
2660 { timesbi.ttf }
2661 \@@_set_latin_sans_font:nnnn
2662 { LinBiolinum_R.otf }
2663 { LinBiolinum_RB.otf }
2664 { LinBiolinum_RI.otf }
2665 { LinBiolinum_RBO.otf }
2666 \@@_set_latin_mono_font:nnnn
2667 { LinLibertine_M.otf }
2668 { LinLibertine_MB.otf }
2669 { LinLibertine_MO.otf }
2670 { LinLibertine_MBO.otf }
2671 }
2672 % \end{macrocode}
2673 % \end{macro}
2674 % \begin{macro}{\@@_load_latin_font_gyre:}
2675 % \changes{v0.9.0.0}{2022/04/13}{增加gyre系列英文字体配置}
2676 % 英文字体配置\valuex{gyre}[]。
2677 % \begin{macrocode}
2678 \cs_new:Npn \@@_load_latin_font_gyre:
2679 {
2680 \@@_set_latin_main_font:nnnn
2681 { texgyretermes-regular.otf }
2682 { texgyretermes-bold.otf }
2683 { texgyretermes-italic.otf }
2684 { texgyretermes-bolditalic.otf }
2685 \@@_set_latin_sans_font:nnnn
2686 { texgyreheros-regular.otf }
2687 { texgyreheros-bold.otf }
2688 { texgyreheros-italic.otf }
2689 { texgyreheros-bolditalic.otf }
2690 \@@_set_latin_mono_font:nnnn
2691 { texgyrecursor-regular.otf }
2692 { texgyrecursor-bold.otf }
2693 { texgyrecursor-italic.otf }
2694 { texgyrecursor-bolditalic.otf }
2695 }
2696 % \end{macrocode}
2697 % \end{macro}
2698 % \begin{macro}{\@@_load_latin_font_none:}
2699 % 英文字体配置\valuex{none}[]。
2700 % \begin{macrocode}
2701 \cs_new:Npn \@@_load_latin_font_none: { }
2702 % \end{macrocode}
2703 % \end{macro}
2704 % \subsubsection{数学字体}
2705 % \changes{v6.1.1.0}{2023/03/06}{修复\pkgx{unicode-math}下书签中公式}
2706 % \changes{v5.6.0.0}{2023/03/01}{设置\pkgx{unicode-math}下算符字体为数学字体}
2707 % \changes{v1.14.1.0}{2022/05/10}{使用\tnx{PassOptionsToPackage}传递\pkgx{unicode-math}宏包参数}
2708 % \begin{macro}{\@@_load_unicode_math_pkg:}
2709 % 加载\pkgx{unicode-math}宏包并设置算符字体为数学字体。
2710 % \begin{macrocode}
2711 \cs_new:Npn \@@_load_unicode_math_pkg:
2712 {
2713 \PassOptionsToPackage { \l_@@_unicode_math_tl } { unicode-math }
2714 \RequirePackage { unicode-math }
2715 \setoperatorfont { \symup }
2716 \hypersetup { psdextra }
2717 }
2718 % \end{macrocode}
2719 % \end{macro}
2720 % \begin{macro}{\@@_load_math_font_cambria:}
2721 % 数学字体配置\valuex{cambria}[]。
2722 % \begin{macrocode}
2723 \cs_new:Npn \@@_load_math_font_cambria:
2724 {
2725 \@@_load_unicode_math_pkg:
2726 \str_if_eq:NNTF { \l_@@_font_type_tl } { font }
2727 { \setmathfont { Cambria~Math } }
2728 { \setmathfont { cambria.ttc } [ Path = \l_@@_font_path_tl/, FontIndex = 1 ] }
2729 }
2730 % \end{macrocode}
2731 % \end{macro}
2732 % \begin{macro}{\@@_define_math_font:nn}
2733 % 批量定义数学字体配置。
2734 % \changes{v2.16.1.0}{2022/11/27}{修改XITS Math数学字体调用方式}
2735 % \changes{v2.16.0.0}{2022/11/27}{增加若干数学字体}
2736 % \changes{v2.15.0.0}{2022/11/26}{增加New Computer Modern Math数学字体}
2737 % \changes{v2.13.0.0}{2022/11/21}{增加Erewhon Math数学字体}
2738 % \changes{v0.2.0.0}{2022/04/04}{增加Garamond Math数学字体}
2739 % \changes{v0.5.1.0}{2022/04/06}{适配macOS平台MacTeX内置数学字体}
2740 % \begin{arguments}
2741 % \item 配置名称。
2742 % \item 字体名称。
2743 % \end{arguments}
2744 % \begin{macrocode}
2745 \cs_new:Npn \@@_define_math_font:nn #1#2
2746 {
2747 \cs_new:cpn { @@_load_math_font_ #1 : }
2748 {
2749 \@@_load_unicode_math_pkg:
2750 \setmathfont { #2 }
2751 }
2752 }
2753 \clist_map_inline:nn
2754 {
2755 { asana } { Asana-Math.otf },
2756 { concrete } { Concrete-Math.otf },
2757 { erewhon } { Erewhon-Math.otf },
2758 { euler } { Euler-Math.otf },
2759 { fira } { FiraMath-Regular.otf },
2760 { garamond } { Garamond-Math.otf },
2761 { gfsneohellenic } { GFSNeohellenicMath.otf },
2762 { kp } { KpMath-Regular.otf },
2763 { libertinus } { LibertinusMath-Regular.otf },
2764 { lm } { latinmodern-math.otf },
2765 { newcm } { NewCMMath-Regular.otf },
2766 { stix } { STIXMath-Regular.otf },
2767 { stix2 } { STIXTwoMath-Regular.otf },
2768 { xcharter } { XCharter-Math.otf },
2769 { xits } { XITSMath-Regular.otf },
2770 { bonum } { texgyrebonum-math.otf },
2771 { dejavu } { texgyredejavu-math.otf },
2772 { pagella } { texgyrepagella-math.otf },
2773 { schola } { texgyreschola-math.otf },
2774 { termes } { texgyretermes-math.otf }
2775 }
2776 { \@@_define_math_font:nn #1 }
2777 % \end{macrocode}
2778 % \end{macro}
2779 % \changes{v0.5.1.0}{2022/04/06}{适配macOS平台MacTeX内置XITSMath数学字体}
2780 % \changes{v2.12.1.0}{2022/07/03}{移除XITSMath数学字体冗余语句}
2781 % \begin{macro}{\@@_load_math_font_cm:}
2782 % 数学字体配置\valuex{cm}[]。
2783 % \begin{macrocode}
2784 \cs_new:Npn \@@_load_math_font_cm: { }
2785 % \end{macrocode}
2786 % \end{macro}
2787 % \begin{macro}{\@@_load_math_font_none:}
2788 % 数学字体配置\valuex{none}[]。
2789 % \begin{macrocode}
2790 \cs_new:Npn \@@_load_math_font_none: { }
2791 % \end{macrocode}
2792 % \end{macro}
2793 % \subsubsection{加载字体}
2794 % \begin{macro}{\@@_load_font:}
2795 % 加载中文字体、英文字体和数学字体。
2796 % \begin{macrocode}
2797 \cs_new:Npn \@@_load_font:
2798 {
2799 \use:c { @@_load_cjk_font_ \l_@@_cjk_font_tl : }
2800 \use:c { @@_load_latin_font_ \l_@@_latin_font_tl : }
2801 \use:c { @@_load_math_font_ \l_@@_math_font_tl : }
2802 }
2803 % \end{macrocode}
2804 % 在导言区末尾加载中文字体、英文字体和数学字体。
2805 % \begin{macrocode}
2806 \ctex_at_end_preamble:n { \@@_load_font: }
2807 % \end{macrocode}
2808 % \end{macro}
2809 % \begin{macrocode}
2810 %</class|xdufont>
2811 %<*thesis|tp>
2812 % \end{macrocode}
2813 % \subsection{信息录入}
2814 % \changes{v1.8.0.0}{2022/05/02}{拆分信息录入选项}
2815 % \begin{variable}
2816 % {
2817 % \l_@@_title_tl,
2818 % \l_@@_title_i_tl,
2819 % \l_@@_title_ii_tl,
2820 % \l_@@_dept_str,
2821 % \l_@@_major_str,
2822 % \l_@@_author_str,
2823 % \l_@@_supv_clist,
2824 % \l_@@_supv_ent_str,
2825 % \l_@@_student_id_str,
2826 % \l_@@_abstract_zh_tl,
2827 % \l_@@_abstract_en_tl,
2828 % \l_@@_keywords_zh_clist,
2829 % \l_@@_keywords_en_clist,
2830 % \l_@@_bib_file_clist,
2831 % \l_@@_appendix_clist,
2832 % \l_@@_ack_tl
2833 % }
2834 % 论文标题。
2835 % \begin{macrocode}
2836 \tl_new:N \l_@@_title_tl
2837 \tl_new:N \l_@@_title_i_tl
2838 \tl_new:N \l_@@_title_ii_tl
2839 % \end{macrocode}
2840 % 院系名称。
2841 % \begin{macrocode}
2842 \str_new:N \l_@@_dept_str
2843 % \end{macrocode}
2844 % 专业名称。
2845 % \begin{macrocode}
2846 \str_new:N \l_@@_major_str
2847 % \end{macrocode}
2848 % 作者姓名。
2849 % \begin{macrocode}
2850 \str_new:N \l_@@_author_str
2851 % \end{macrocode}
2852 % 导师姓名。
2853 % \begin{macrocode}
2854 \clist_new:N \l_@@_supv_clist
2855 % \end{macrocode}
2856 % 校外导师姓名。
2857 % \begin{macrocode}
2858 \str_new:N \l_@@_supv_ent_str
2859 % \end{macrocode}
2860 % 作者学号。
2861 % \begin{macrocode}
2862 \str_new:N \l_@@_student_id_str
2863 % \end{macrocode}
2864 % 中文摘要。
2865 % \begin{macrocode}
2866 \tl_new:N \l_@@_abstract_zh_tl
2867 % \end{macrocode}
2868 % 英文摘要。
2869 % \begin{macrocode}
2870 \tl_new:N \l_@@_abstract_en_tl
2871 % \end{macrocode}
2872 % 中文关键词。
2873 % \begin{macrocode}
2874 \clist_new:N \l_@@_keywords_zh_clist
2875 % \end{macrocode}
2876 % 英文关键词。
2877 % \begin{macrocode}
2878 \clist_new:N \l_@@_keywords_en_clist
2879 % \end{macrocode}
2880 % 参考文献文件。
2881 % \begin{macrocode}
2882 \clist_new:N \l_@@_bib_file_clist
2883 % \end{macrocode}
2884 % 附录。
2885 % \begin{macrocode}
2886 \clist_new:N \l_@@_appendix_clist
2887 % \end{macrocode}
2888 % 致谢。
2889 % \begin{macrocode}
2890 \tl_new:N \l_@@_ack_tl
2891 % \end{macrocode}
2892 % \end{variable}
2893 % \begin{macro}{\keys_define:nn}
2894 % 定义信息键值。
2895 % \begin{macrocode}
2896 \keys_define:nn { xdu / info }
2897 {
2898 % \end{macrocode}
2899 % 论文标题。
2900 % \begin{macrocode}
2901 title .tl_set:N = \l_@@_title_tl,
2902 % \end{macrocode}
2903 % 院系名称。
2904 % \begin{macrocode}
2905 department .tl_set:N = \l_@@_dept_str,
2906 % \end{macrocode}
2907 % 专业名称。
2908 % \begin{macrocode}
2909 major .tl_set:N = \l_@@_major_str,
2910 % \end{macrocode}
2911 % 作者姓名。
2912 % \begin{macrocode}
2913 author .tl_set:N = \l_@@_author_str,
2914 % \end{macrocode}
2915 % 导师姓名。
2916 % \begin{macrocode}
2917 supervisor .clist_set:N = \l_@@_supv_clist,
2918 % \end{macrocode}
2919 % 校外导师姓名。
2920 % \begin{macrocode}
2921 supv-ent .tl_set:N = \l_@@_supv_ent_str,
2922 supervisor-enterprise .tl_set:N = \l_@@_supv_ent_str,
2923 % \end{macrocode}
2924 % 作者学号。
2925 % \begin{macrocode}
2926 student-id .tl_set:N = \l_@@_student_id_str,
2927 % \end{macrocode}
2928 % 中文摘要。
2929 % \begin{macrocode}
2930 abstract .tl_set:N = \l_@@_abstract_zh_tl,
2931 % \end{macrocode}
2932 % 英文摘要。
2933 % \begin{macrocode}
2934 abstract* .tl_set:N = \l_@@_abstract_en_tl,
2935 % \end{macrocode}
2936 % 中文关键词。
2937 % \begin{macrocode}
2938 keywords .clist_set:N = \l_@@_keywords_zh_clist,
2939 % \end{macrocode}
2940 % 英文关键词。
2941 % \begin{macrocode}
2942 keywords* .clist_set:N = \l_@@_keywords_en_clist,
2943 % \end{macrocode}
2944 % 参考文献文件。
2945 % \begin{macrocode}
2946 bib-resource .clist_set:N = \l_@@_bib_file_clist,
2947 % \end{macrocode}
2948 % 附录。
2949 % \begin{macrocode}
2950 appendix .clist_set:N = \l_@@_appendix_clist,
2951 % \end{macrocode}
2952 % 致谢。
2953 % \begin{macrocode}
2954 acknowledgements .tl_set:N = \l_@@_ack_tl
2955 }
2956 % \end{macrocode}
2957 % \end{macro}
2958 % \begin{macro}{\keys_set:nn}
2959 % 初始设置。
2960 % \begin{macrocode}
2961 \keys_set:nn { xdu }
2962 {
2963 info / title = { },
2964 info / department = { },
2965 info / major = { },
2966 info / author = { },
2967 info / supervisor = { },
2968 info / supv-ent = { },
2969 info / supervisor-enterprise = { },
2970 info / student-id = { },
2971 info / abstract = { },
2972 info / abstract* = { },
2973 info / keywords = { },
2974 info / keywords* = { },
2975 info / bib-resource = { },
2976 info / appendix = { },
2977 info / acknowledgements = { }
2978 }
2979 % \end{macrocode}
2980 % \end{macro}
2981 % \begin{variable}
2982 % {
2983 % \l_@@_supv_str,
2984 % \l_@@_supv_ii_str
2985 % }
2986 % \changes{v1.16.0.0}{2022/05/22}{拆分导师姓名}
2987 % 拆分导师姓名。
2988 % \begin{macrocode}
2989 \str_new:N \l_@@_supv_str
2990 \str_new:N \l_@@_supv_ii_str
2991 \ctex_at_end_preamble:n
2992 {
2993 \str_set:Nx \l_@@_supv_str { \clist_item:Nn \l_@@_supv_clist { 1 } }
2994 \str_set:Nx \l_@@_supv_ii_str { \clist_item:Nn \l_@@_supv_clist { 2 } }
2995 }
2996 % \end{macrocode}
2997 % \end{variable}
2998 % \begin{macrocode}
2999 %</thesis|tp>
3000 %<*xduugtp>
3001 % \end{macrocode}
3002 % \subsubsection{本科生开题报告}
3003 % \begin{variable}
3004 % {
3005 % \l_@@_class_str,
3006 % \l_@@_submit_date_str,
3007 % \l_@@_sign_clist,
3008 % \l_@@_date_clist
3009 % }
3010 % 界。
3011 % \begin{macrocode}
3012 \str_new:N \l_@@_class_str
3013 % \end{macrocode}
3014 % 提交日期。
3015 % \begin{macrocode}
3016 \str_new:N \l_@@_submit_date_str
3017 % \end{macrocode}
3018 % 签名文件路径。
3019 % \begin{macrocode}
3020 \clist_new:N \l_@@_sign_clist
3021 % \end{macrocode}
3022 % 签名日期。
3023 % \begin{macrocode}
3024 \clist_new:N \l_@@_date_clist
3025 % \end{macrocode}
3026 % \end{variable}
3027 % \begin{macro}{\keys_define:nn}
3028 % 定义信息键值。
3029 % \begin{macrocode}
3030 \keys_define:nn { xdu / info }
3031 {
3032 % \end{macrocode}
3033 % 界。
3034 % \begin{macrocode}
3035 class .tl_set:N = \l_@@_class_str,
3036 % \end{macrocode}
3037 % 提交日期。
3038 % \begin{macrocode}
3039 submit-date .tl_set:N = \l_@@_submit_date_str,
3040 % \end{macrocode}
3041 % 签名文件路径。
3042 % \begin{macrocode}
3043 sign .clist_set:N = \l_@@_sign_clist,
3044 % \end{macrocode}
3045 % 签名日期。
3046 % \begin{macrocode}
3047 date .clist_set:N = \l_@@_date_clist
3048 }
3049 % \end{macrocode}
3050 % \end{macro}
3051 % \begin{macro}{\keys_set:nn}
3052 % 初始设置。
3053 % \begin{macrocode}
3054 \keys_set:nn { xdu }
3055 {
3056 info / class = { },
3057 info / submit-date = { },
3058 info / sign = { },
3059 info / date = { }
3060 }
3061 % \end{macrocode}
3062 % \end{macro}
3063 % \begin{macrocode}
3064 %</xduugtp>
3065 %<*xduugthesis>
3066 % \end{macrocode}
3067 % \subsubsection{本科生}
3068 % \begin{variable}
3069 % {
3070 % \l_@@_supv_dept_str,
3071 % \l_@@_supv_sch_str,
3072 % \l_@@_class_id_str
3073 % }
3074 % 院内导师姓名。
3075 % \begin{macrocode}
3076 \str_new:N \l_@@_supv_dept_str
3077 % \end{macrocode}
3078 % 校内导师姓名。
3079 % \begin{macrocode}
3080 \str_new:N \l_@@_supv_sch_str
3081 % \end{macrocode}
3082 % 作者班级号。
3083 % \begin{macrocode}
3084 \str_new:N \l_@@_class_id_str
3085 % \end{macrocode}
3086 % \end{variable}
3087 % \begin{macro}{\keys_define:nn}
3088 % 定义信息键值。
3089 % \begin{macrocode}
3090 \keys_define:nn { xdu / info }
3091 {
3092 % \end{macrocode}
3093 % 院内导师姓名。
3094 % \begin{macrocode}
3095 supv-dept .tl_set:N = \l_@@_supv_dept_str,
3096 supervisor-department .tl_set:N = \l_@@_supv_dept_str,
3097 % \end{macrocode}
3098 % 校内导师姓名。
3099 % \begin{macrocode}
3100 supv-school .tl_set:N = \l_@@_supv_sch_str,
3101 supervisor-school .tl_set:N = \l_@@_supv_sch_str,
3102 % \end{macrocode}
3103 % 作者班级号。
3104 % \begin{macrocode}
3105 class-id .tl_set:N = \l_@@_class_id_str
3106 }
3107 % \end{macrocode}
3108 % \end{macro}
3109 % \begin{macro}{\keys_set:nn}
3110 % 初始设置。
3111 % \begin{macrocode}
3112 \keys_set:nn { xdu }
3113 {
3114 info / supv-dept = { },
3115 info / supervisor-department = { },
3116 info / supv-school = { },
3117 info / supervisor-school = { },
3118 info / class-id = { }
3119 }
3120 % \end{macrocode}
3121 % \end{macro}
3122 % \begin{macrocode}
3123 %</xduugthesis>
3124 %<*xdupgthesis>
3125 % \end{macrocode}
3126 % \subsubsection{研究生}
3127 % \changes{v1.9.0.0}{2022/05/03}{增加研究生信息录入选项}
3128 % \begin{variable}
3129 % {
3130 % \l_@@_gr_type_tl,
3131 % \l_@@_degree_type_tl,
3132 % \l_@@_degree_str,
3133 % \l_@@_degree_en_str,
3134 % \l_@@_author_en_str,
3135 % \l_@@_supv_en_clist,
3136 % \l_@@_supv_ent_en_str,
3137 % \l_@@_supv_t_clist,
3138 % \l_@@_supv_t_en_clist,
3139 % \l_@@_supv_ent_t_str,
3140 % \l_@@_supv_ent_t_en_str,
3141 % \l_@@_title_en_str,
3142 % \l_@@_major_en_str,
3143 % \l_@@_sub_major_str,
3144 % \l_@@_domain_str,
3145 % \l_@@_clc_str,
3146 % \l_@@_secret_lv_str,
3147 % \l_@@_submit_date_str,
3148 % \l_@@_statement_scan_str,
3149 % \l_@@_statement_sign_clist,
3150 % \l_@@_los_str,
3151 % \l_@@_loa_str,
3152 % \l_@@_bio_str
3153 % }
3154 % 研究生类型。
3155 % \begin{macrocode}
3156 \tl_new:N \l_@@_gr_type_tl
3157 % \end{macrocode}
3158 % 学位类型。
3159 % \begin{macrocode}
3160 \tl_new:N \l_@@_degree_type_tl
3161 % \end{macrocode}
3162 % 学位类别。
3163 % \begin{macrocode}
3164 \str_new:N \l_@@_degree_str
3165 \str_new:N \l_@@_degree_en_str
3166 % \end{macrocode}
3167 % 作者姓名拼音。
3168 % \begin{macrocode}
3169 \str_new:N \l_@@_author_en_str
3170 % \end{macrocode}
3171 % 导师姓名拼音。
3172 % \begin{macrocode}
3173 \clist_new:N \l_@@_supv_en_clist
3174 % \end{macrocode}
3175 % 校外导师姓名拼音。
3176 % \begin{macrocode}
3177 \str_new:N \l_@@_supv_ent_en_str
3178 % \end{macrocode}
3179 % 导师职称。
3180 % \begin{macrocode}
3181 \clist_new:N \l_@@_supv_t_clist
3182 \clist_new:N \l_@@_supv_t_en_clist
3183 % \end{macrocode}
3184 % 校外导师职称。
3185 % \begin{macrocode}
3186 \str_new:N \l_@@_supv_ent_t_str
3187 \str_new:N \l_@@_supv_ent_t_en_str
3188 % \end{macrocode}
3189 % 论文标题英文。
3190 % \begin{macrocode}
3191 \str_new:N \l_@@_title_en_str
3192 % \end{macrocode}
3193 % 一级学科英文名称。
3194 % \begin{macrocode}
3195 \str_new:N \l_@@_major_en_str
3196 % \end{macrocode}
3197 % 二级学科。
3198 % \begin{macrocode}
3199 \str_new:N \l_@@_sub_major_str
3200 % \end{macrocode}
3201 % 领域。
3202 % \begin{macrocode}
3203 \str_new:N \l_@@_domain_str
3204 % \end{macrocode}
3205 % 中图分类号。
3206 % \begin{macrocode}
3207 \str_new:N \l_@@_clc_str
3208 % \end{macrocode}
3209 % 密级。
3210 % \begin{macrocode}
3211 \str_new:N \l_@@_secret_lv_str
3212 % \end{macrocode}
3213 % 提交日期。
3214 % \begin{macrocode}
3215 \str_new:N \l_@@_submit_date_str
3216 % \end{macrocode}
3217 % 声明页扫描文件路径。
3218 % \begin{macrocode}
3219 \str_new:N \l_@@_statement_scan_str
3220 % \end{macrocode}
3221 % 声明页签名文件路径。
3222 % \begin{macrocode}
3223 \clist_new:N \l_@@_statement_sign_clist
3224 % \end{macrocode}
3225 % 符号对照表文件路径。
3226 % \begin{macrocode}
3227 \str_new:N \l_@@_los_str
3228 % \end{macrocode}
3229 % 缩略语对照表文件路径。
3230 % \begin{macrocode}
3231 \str_new:N \l_@@_loa_str
3232 % \end{macrocode}
3233 % 作者简介文件路径。
3234 % \begin{macrocode}
3235 \str_new:N \l_@@_bio_str
3236 % \end{macrocode}
3237 % \end{variable}
3238 % \begin{macro}{\keys_define:nn}
3239 % 定义信息键值。
3240 % \begin{macrocode}
3241 \keys_define:nn { xdu / info }
3242 {
3243 % \end{macrocode}
3244 % 研究生类型。
3245 % \begin{macrocode}
3246 graduate-type .choices:nn = { 硕士, 博士 }
3247 { \tl_set_eq:NN \l_@@_gr_type_tl \l_keys_choice_tl },
3248 % \end{macrocode}
3249 % 学位类型。
3250 % \begin{macrocode}
3251 degree-type .choices:nn = { 学术, 专业 }
3252 { \tl_set_eq:NN \l_@@_degree_type_tl \l_keys_choice_tl },
3253 % \end{macrocode}
3254 % 学位类别。
3255 % \begin{macrocode}
3256 degree .tl_set:N = \l_@@_degree_str,
3257 degree* .tl_set:N = \l_@@_degree_en_str,
3258 % \end{macrocode}
3259 % 作者姓名拼音。
3260 % \begin{macrocode}
3261 author* .tl_set:N = \l_@@_author_en_str,
3262 % \end{macrocode}
3263 % 导师姓名拼音。
3264 % \begin{macrocode}
3265 supervisor* .clist_set:N = \l_@@_supv_en_clist,
3266 % \end{macrocode}
3267 % 校外导师姓名拼音。
3268 % \begin{macrocode}
3269 supv-ent* .tl_set:N = \l_@@_supv_ent_en_str,
3270 supervisor-enterprise* .tl_set:N = \l_@@_supv_ent_en_str,
3271 % \end{macrocode}
3272 % 导师职称。
3273 % \begin{macrocode}
3274 supv-title .clist_set:N = \l_@@_supv_t_clist,
3275 supervisor-title .clist_set:N = \l_@@_supv_t_clist,
3276 supv-title* .clist_set:N = \l_@@_supv_t_en_clist,
3277 supervisor-title* .clist_set:N = \l_@@_supv_t_en_clist,
3278 % \end{macrocode}
3279 % 校外导师职称。
3280 % \begin{macrocode}
3281 supv-ent-title .tl_set:N = \l_@@_supv_ent_t_str,
3282 supervisor-enterprise-title .tl_set:N = \l_@@_supv_ent_t_str,
3283 supv-ent-title* .tl_set:N = \l_@@_supv_ent_t_en_str,
3284 supervisor-enterprise-title* .tl_set:N = \l_@@_supv_ent_t_en_str,
3285 % \end{macrocode}
3286 % 论文标题英文。
3287 % \begin{macrocode}
3288 title* .tl_set:N = \l_@@_title_en_str,
3289 % \end{macrocode}
3290 % 一级学科英文名称。
3291 % \begin{macrocode}
3292 major* .tl_set:N = \l_@@_major_en_str,
3293 % \end{macrocode}
3294 % 二级学科。
3295 % \begin{macrocode}
3296 sub-major .tl_set:N = \l_@@_sub_major_str,
3297 % \end{macrocode}
3298 % 领域。
3299 % \begin{macrocode}
3300 domain .tl_set:N = \l_@@_domain_str,
3301 % \end{macrocode}
3302 % 中图分类号。
3303 % \begin{macrocode}
3304 clc .tl_set:N = \l_@@_clc_str,
3305 % \end{macrocode}
3306 % 密级。
3307 % \begin{macrocode}
3308 secret-level .choices:nn = { 秘密, 公开 }
3309 { \tl_set_eq:NN \l_@@_secret_lv_str \l_keys_choice_tl },
3310 % \end{macrocode}
3311 % 提交日期。
3312 % \begin{macrocode}
3313 submit-date .tl_set:N = \l_@@_submit_date_str,
3314 % \end{macrocode}
3315 % 声明页扫描文件路径。
3316 % \begin{macrocode}
3317 statement-scan .tl_set:N = \l_@@_statement_scan_str,
3318 % \end{macrocode}
3319 % 声明页签名文件路径。
3320 % \begin{macrocode}
3321 statement-sign .clist_set:N = \l_@@_statement_sign_clist,
3322 % \end{macrocode}
3323 % 符号对照表文件路径。
3324 % \begin{macrocode}
3325 los .tl_set:N = \l_@@_los_str,
3326 % \end{macrocode}
3327 % 缩略语对照表文件路径。
3328 % \begin{macrocode}
3329 loa .tl_set:N = \l_@@_loa_str,
3330 % \end{macrocode}
3331 % 作者简介文件路径。
3332 % \begin{macrocode}
3333 bio .tl_set:N = \l_@@_bio_str
3334 }
3335 % \end{macrocode}
3336 % \end{macro}
3337 % \begin{macro}{\keys_set:nn}
3338 % \changes{v1.7.1.0}{2022/05/02}{设置研究生类型默认值}
3339 % \changes{v1.7.2.0}{2022/05/02}{修正guard}
3340 % 初始设置。
3341 % \begin{macrocode}
3342 \keys_set:nn { xdu }
3343 {
3344 info / graduate-type = 硕士,
3345 info / degree-type = 学术,
3346 info / degree = { },
3347 info / degree* = { },
3348 info / author* = { },
3349 info / supervisor* = { },
3350 info / supv-ent* = { },
3351 info / supervisor-enterprise* = { },
3352 info / supv-title = { },
3353 info / supervisor-title = { },
3354 info / supv-title* = { },
3355 info / supervisor-title* = { },
3356 info / supv-ent-title = { },
3357 info / supervisor-enterprise-title = { },
3358 info / supv-ent-title* = { },
3359 info / supervisor-enterprise-title* = { },
3360 info / title* = { },
3361 info / major* = { },
3362 info / sub-major = { },
3363 info / domain = { },
3364 info / clc = { },
3365 info / secret-level = 公开,
3366 info / submit-date = { },
3367 info / statement-scan = { },
3368 info / statement-sign = { },
3369 info / los = { },
3370 info / loa = { },
3371 info / bio = { }
3372 }
3373 % \end{macrocode}
3374 % \end{macro}
3375 % \begin{variable}
3376 % {
3377 % \l_@@_supv_en_str,
3378 % \l_@@_supv_ii_en_str,
3379 % \l_@@_supv_t_str,
3380 % \l_@@_supv_ii_t_str,
3381 % \l_@@_supv_t_en_str,
3382 % \l_@@_supv_ii_t_en_str
3383 % }
3384 % \changes{v1.16.0.0}{2022/05/22}{拆分导师英文姓名和中英文职称}
3385 % 拆分导师英文姓名和中英文职称。
3386 % \begin{macrocode}
3387 \str_new:N \l_@@_supv_en_str
3388 \str_new:N \l_@@_supv_ii_en_str
3389 \str_new:N \l_@@_supv_t_str
3390 \str_new:N \l_@@_supv_ii_t_str
3391 \str_new:N \l_@@_supv_t_en_str
3392 \str_new:N \l_@@_supv_ii_t_en_str
3393 \ctex_at_end_preamble:n
3394 {
3395 \str_set:Nx \l_@@_supv_en_str
3396 { \clist_item:Nn \l_@@_supv_en_clist { 1 } }
3397 \str_set:Nx \l_@@_supv_ii_en_str
3398 { \clist_item:Nn \l_@@_supv_en_clist { 2 } }
3399 \str_set:Nx \l_@@_supv_t_str
3400 { \clist_item:Nn \l_@@_supv_t_clist { 1 } }
3401 \str_set:Nx \l_@@_supv_ii_t_str
3402 { \clist_item:Nn \l_@@_supv_t_clist { 2 } }
3403 \str_set:Nx \l_@@_supv_t_en_str
3404 { \clist_item:Nn \l_@@_supv_t_en_clist { 1 } }
3405 \str_set:Nx \l_@@_supv_ii_t_en_str
3406 { \clist_item:Nn \l_@@_supv_t_en_clist { 2 } }
3407 }
3408 % \end{macrocode}
3409 % \end{variable}
3410 % \changes{v2.7.0.0}{2022/06/26}{页面移除开关}
3411 % \subsection{页面移除开关}
3412 % \label{页面移除开关}
3413 % \begin{variable}
3414 % {
3415 % \l_@@_rm_page_clist,
3416 % \l_@@_rm_header_bool,
3417 % \l_@@_rm_footer_bool
3418 % }
3419 % 页面移除开关。
3420 % \begin{macrocode}
3421 \clist_new:N \l_@@_rm_page_clist
3422 % \end{macrocode}
3423 % 页眉移除开关。
3424 % \begin{macrocode}
3425 \bool_new:N \l_@@_rm_header_bool
3426 % \end{macrocode}
3427 % 页脚移除开关。
3428 % \begin{macrocode}
3429 \bool_new:N \l_@@_rm_footer_bool
3430 % \end{macrocode}
3431 % \end{variable}
3432 % \begin{macro}{\keys_define:nn}
3433 % 定义样式键值。
3434 % \begin{macrocode}
3435 \keys_define:nn { xdu / style }
3436 {
3437 % \end{macrocode}
3438 % 设置页面移除开关。
3439 % \begin{macrocode}
3440 remove-page .clist_set:N = \l_@@_rm_page_clist,
3441 remove-header .bool_set:N = \l_@@_rm_header_bool,
3442 remove-footer .bool_set:N = \l_@@_rm_footer_bool
3443 }
3444 % \end{macrocode}
3445 % \end{macro}
3446 % \begin{macro}{\keys_set:nn}
3447 % 初始设置。
3448 % \begin{macrocode}
3449 \keys_set:nn { xdu }
3450 {
3451 style / remove-page = { },
3452 style / remove-header = false,
3453 style / remove-footer = false
3454 }
3455 % \end{macrocode}
3456 % \end{macro}
3457 % \begin{variable}
3458 % {
3459 % \l_@@_rm_cover_bool,
3460 % \l_@@_rm_title_page_bool,
3461 % \l_@@_rm_statement_bool,
3462 % \l_@@_rm_abstract_bool,
3463 % \l_@@_rm_lof_bool,
3464 % \l_@@_rm_lot_bool,
3465 % \l_@@_rm_los_bool,
3466 % \l_@@_rm_loa_bool,
3467 % \l_@@_rm_toc_bool,
3468 % \l_@@_rm_appendix_bool,
3469 % \l_@@_rm_ref_bool,
3470 % \l_@@_rm_ack_bool,
3471 % \l_@@_rm_bio_bool
3472 % }
3473 % 封面。
3474 % \begin{macrocode}
3475 \bool_new:N \l_@@_rm_cover_bool
3476 % \end{macrocode}
3477 % 中英文题名页。
3478 % \begin{macrocode}
3479 \bool_new:N \l_@@_rm_title_page_bool
3480 % \end{macrocode}
3481 % 声明页。
3482 % \begin{macrocode}
3483 \bool_new:N \l_@@_rm_statement_bool
3484 % \end{macrocode}
3485 % 中英文摘要。
3486 % \begin{macrocode}
3487 \bool_new:N \l_@@_rm_abstract_bool
3488 % \end{macrocode}
3489 % 索引。
3490 % \begin{macrocode}
3491 \bool_new:N \l_@@_rm_lof_bool
3492 \bool_new:N \l_@@_rm_lot_bool
3493 % \end{macrocode}
3494 % 符号对照表和缩略语对照表。
3495 % \begin{macrocode}
3496 \bool_new:N \l_@@_rm_los_bool
3497 \bool_new:N \l_@@_rm_loa_bool
3498 % \end{macrocode}
3499 % 目录。
3500 % \begin{macrocode}
3501 \bool_new:N \l_@@_rm_toc_bool
3502 % \end{macrocode}
3503 % 附录。
3504 % \begin{macrocode}
3505 \bool_new:N \l_@@_rm_appendix_bool
3506 % \end{macrocode}
3507 % 参考文献。
3508 % \begin{macrocode}
3509 \bool_new:N \l_@@_rm_ref_bool
3510 % \end{macrocode}
3511 % 致谢。
3512 % \begin{macrocode}
3513 \bool_new:N \l_@@_rm_ack_bool
3514 % \end{macrocode}
3515 % 作者简介。
3516 % \begin{macrocode}
3517 \bool_new:N \l_@@_rm_bio_bool
3518 % \end{macrocode}
3519 % \end{variable}
3520 % \begin{macro}{\clist_if_in:NnT,\bool_set_true:N}
3521 % 设置页面移除开关布尔值。
3522 % \begin{macrocode}
3523 \ctex_at_end_preamble:n
3524 {
3525 \clist_if_in:NnT \l_@@_rm_page_clist { 封面 }
3526 { \bool_set_true:N \l_@@_rm_cover_bool }
3527 \clist_if_in:NnT \l_@@_rm_page_clist { 提名页 }
3528 { \bool_set_true:N \l_@@_rm_title_page_bool }
3529 \clist_if_in:NnT \l_@@_rm_page_clist { 题名页 }
3530 { \bool_set_true:N \l_@@_rm_title_page_bool }
3531 \clist_if_in:NnT \l_@@_rm_page_clist { 声明页 }
3532 { \bool_set_true:N \l_@@_rm_statement_bool }
3533 \clist_if_in:NnT \l_@@_rm_page_clist { 摘要 }
3534 { \bool_set_true:N \l_@@_rm_abstract_bool }
3535 \clist_if_in:NnT \l_@@_rm_page_clist { 索引 }
3536 {
3537 \bool_set_true:N \l_@@_rm_lof_bool
3538 \bool_set_true:N \l_@@_rm_lot_bool
3539 }
3540 \clist_if_in:NnT \l_@@_rm_page_clist { 插图索引 }
3541 { \bool_set_true:N \l_@@_rm_lof_bool }
3542 \clist_if_in:NnT \l_@@_rm_page_clist { 表格索引 }
3543 { \bool_set_true:N \l_@@_rm_lot_bool }
3544 \clist_if_in:NnT \l_@@_rm_page_clist { 对照表 }
3545 {
3546 \bool_set_true:N \l_@@_rm_los_bool
3547 \bool_set_true:N \l_@@_rm_loa_bool
3548 }
3549 \clist_if_in:NnT \l_@@_rm_page_clist { 符号对照表 }
3550 { \bool_set_true:N \l_@@_rm_los_bool }
3551 \clist_if_in:NnT \l_@@_rm_page_clist { 缩略语对照表 }
3552 { \bool_set_true:N \l_@@_rm_loa_bool }
3553 \clist_if_in:NnT \l_@@_rm_page_clist { 目录 }
3554 { \bool_set_true:N \l_@@_rm_toc_bool }
3555 \clist_if_in:NnT \l_@@_rm_page_clist { 附录 }
3556 { \bool_set_true:N \l_@@_rm_appendix_bool }
3557 \clist_if_in:NnT \l_@@_rm_page_clist { 参考文献 }
3558 { \bool_set_true:N \l_@@_rm_ref_bool }
3559 \clist_if_in:NnT \l_@@_rm_page_clist { 致谢 }
3560 { \bool_set_true:N \l_@@_rm_ack_bool }
3561 \clist_if_in:NnT \l_@@_rm_page_clist { 作者简介 }
3562 { \bool_set_true:N \l_@@_rm_bio_bool }
3563 }
3564 % \end{macrocode}
3565 % \end{macro}
3566 % \changes{v2.10.0.0}{2022/06/26}{匿名命令}
3567 % \subsection{匿名操作}
3568 % \label{匿名操作}
3569 % \begin{variable}{\l_@@_anon_bool}
3570 % 匿名开关。
3571 % \begin{macrocode}
3572 \bool_new:N \l_@@_anon_bool
3573 % \end{macrocode}
3574 % \end{variable}
3575 % \begin{macro}{\keys_define:nn}
3576 % 定义样式键值。
3577 % \begin{macrocode}
3578 \keys_define:nn { xdu / style }
3579 {
3580 % \end{macrocode}
3581 % 匿名操作。
3582 % \begin{macrocode}
3583 anonymous .bool_set:N = \l_@@_anon_bool
3584 }
3585 % \end{macrocode}
3586 % \end{macro}
3587 % \begin{macro}{\keys_set:nn}
3588 % 初始设置。
3589 % \begin{macrocode}
3590 \keys_set:nn { xdu }
3591 {
3592 style / anonymous = false
3593 }
3594 % \end{macrocode}
3595 % \end{macro}
3596 % \begin{macro}{\anon}
3597 % 匿名命令。
3598 % \begin{macrocode}
3599 \NewDocumentCommand \anon { O { XXX } m }
3600 {
3601 \bool_if:NTF \l_@@_anon_bool
3602 { #1 } { #2 }
3603 }
3604 % \end{macrocode}
3605 % \end{macro}
3606 % \begin{macrocode}
3607 %</xdupgthesis>
3608 %<*thesis|xduugtp>
3609 % \end{macrocode}
3610 % \subsection{标签宏配置}
3611 % \label{标签宏配置}
3612 % \begin{macro}
3613 % {
3614 % \figurename,
3615 % \figname,
3616 % \tablename,
3617 % \tabname,
3618 % }
3619 % \changes{v1.21.0.0}{2022/06/01}{配置图表标签宏}
3620 % \begin{macrocode}
3621 \cs_set:Npn \figurename { \@@_lang_switch:nn { 图 } { Figure } }
3622 \cs_new_eq:NN \figname \figurename
3623 \cs_set:Npn \tablename { \@@_lang_switch:nn { 表 } { Table } }
3624 \cs_new_eq:NN \tabname \tablename
3625 % \end{macrocode}
3626 % \end{macro}
3627 % \subsection{样式配置}
3628 % \begin{variable}
3629 % {
3630 % \l_@@_title_bold_math_bool,
3631 % \l_@@_en_cjk_font_bool,
3632 % \l_@@_lang_tl,
3633 % \l_@@_bib_tool_tl,
3634 % \l_@@_biblatex_option_tl,
3635 % \l_@@_search_path_clist,
3636 % \l_@@_fix_input_bool,
3637 % \l_@@_fix_include_bool,
3638 % \l_@@_fix_graphics_bool,
3639 % \l_@@_ref_add_space_bool,
3640 % \l_@@_cap_label_sep_tl,
3641 % \l_@@_ft_cap_format_tl,
3642 % \l_@@_alg_cap_format_tl,
3643 % \l_@@_ft_cap_align_tl,
3644 % \l_@@_alg_cap_align_tl,
3645 % \l_@@_add_alg_rule_vspace_bool,
3646 % \l_@@_tab_small_bool,
3647 % \l_@@__figure_align_tl,
3648 % \l_@@__table_align_tl,
3649 % \l_@@_alg_small_cap_bool,
3650 % \l_@@_alg_small_bool,
3651 % \l_@@_before_skip_clist,
3652 % \l_@@_after_skip_clist,
3653 % \l_@@_chap_tl,
3654 % \l_@@_sec_tl,
3655 % \l_@@_subsec_tl,
3656 % \l_@@_subsubsec_tl,
3657 % \l_@@_para_tl,
3658 % \l_@@_subpara_tl,
3659 % \l_@@_sym_mgn_bool,
3660 % \l_@@_page_v_align_tl
3661 % }
3662 % 标题数学字体是否加粗。
3663 % \begin{macrocode}
3664 \bool_new:N \l_@@_title_bold_math_bool
3665 % \end{macrocode}
3666 % \changes{v2.12.0.2}{2022/07/01}{精简变量名称}
3667 % 英文是否使用中文字体。
3668 % \begin{macrocode}
3669 \bool_new:N \l_@@_en_cjk_font_bool
3670 % \end{macrocode}
3671 % 语言。
3672 % \begin{macrocode}
3673 \tl_new:N \l_@@_lang_tl
3674 % \end{macrocode}
3675 % 参考文献支持方式。
3676 % \begin{macrocode}
3677 \tl_new:N \l_@@_bib_tool_tl
3678 % \end{macrocode}
3679 % 修改\pkgx{biblatex}默认选项。
3680 % \begin{macrocode}
3681 \tl_new:N \l_@@_biblatex_option_tl
3682 % \end{macrocode}
3683 % 设置文件搜索路径。
3684 % \begin{macrocode}
3685 \clist_new:N \l_@@_search_path_clist
3686 % \end{macrocode}
3687 % 是否修复文件导入命令。
3688 % \begin{macrocode}
3689 \bool_new:N \l_@@_fix_input_bool
3690 \bool_new:N \l_@@_fix_include_bool
3691 \bool_new:N \l_@@_fix_graphics_bool
3692 % \end{macrocode}
3693 % 是否在\tnx{ref}和\tnx{pageref}两侧自动调整中英文间空白。
3694 % \begin{macrocode}
3695 \tl_new:N \l_@@_ref_add_space_bool
3696 % \end{macrocode}
3697 % 标签与后面标题之间的间距。
3698 % \begin{macrocode}
3699 \tl_new:N \l_@@_cap_label_sep_tl
3700 % \end{macrocode}
3701 % 图、表、算法caption格式。
3702 % \begin{macrocode}
3703 \tl_new:N \l_@@_ft_cap_format_tl
3704 \tl_new:N \l_@@_alg_cap_format_tl
3705 % \end{macrocode}
3706 % 图、表、算法caption对齐方式。
3707 % \begin{macrocode}
3708 \tl_new:N \l_@@_ft_cap_align_tl
3709 \tl_new:N \l_@@_alg_cap_align_tl
3710 % \end{macrocode}
3711 % 设置算法三线间距。
3712 % \begin{macrocode}
3713 \bool_new:N \l_@@_add_alg_rule_vspace_bool
3714 % \end{macrocode}
3715 % 设置表格字号是否为五号。
3716 % \begin{macrocode}
3717 \bool_new:N \l_@@_tab_small_bool
3718 % \end{macrocode}
3719 % 设置图表内容对齐方式。
3720 % \begin{macrocode}
3721 \tl_new:N \l_@@_figure_align_tl
3722 \tl_new:N \l_@@_table_align_tl
3723 % \end{macrocode}
3724 % 设置算法Caption字号是否为五号。
3725 % \begin{macrocode}
3726 \bool_new:N \l_@@_alg_small_cap_bool
3727 % \end{macrocode}
3728 % 设置算法内容字号是否为五号。
3729 % \begin{macrocode}
3730 \bool_new:N \l_@@_alg_small_bool
3731 % \end{macrocode}
3732 % 设置章节标题前后的垂直间距。
3733 % \begin{macrocode}
3734 \clist_new:N \l_@@_before_skip_clist
3735 \clist_new:N \l_@@_after_skip_clist
3736 % \end{macrocode}
3737 % 设置章节标题字号。
3738 % \begin{macrocode}
3739 \tl_new:N \l_@@_chap_tl
3740 \tl_new:N \l_@@_sec_tl
3741 \tl_new:N \l_@@_subsec_tl
3742 \tl_new:N \l_@@_subsubsec_tl
3743 \tl_new:N \l_@@_para_tl
3744 \tl_new:N \l_@@_subpara_tl
3745 % \end{macrocode}
3746 % 设置页边距是否对称。
3747 % \begin{macrocode}
3748 \bool_new:N \l_@@_sym_mgn_bool
3749 % \end{macrocode}
3750 % 设置页面垂直方向的对齐方式。
3751 % \begin{macrocode}
3752 \tl_new:N \l_@@_page_v_align_tl
3753 % \end{macrocode}
3754 % \end{variable}
3755 % \begin{macro}{\keys_define:nn}
3756 % 定义样式键值。
3757 % \begin{macrocode}
3758 \keys_define:nn { xdu / style }
3759 {
3760 % \end{macrocode}
3761 % 标题数学字体是否加粗。
3762 % \begin{macrocode}
3763 title-bold-math .bool_set:N = \l_@@_title_bold_math_bool,
3764 % \end{macrocode}
3765 % 英文是否使用中文字体。
3766 % \begin{macrocode}
3767 en-cjk-font .bool_set:N = \l_@@_en_cjk_font_bool,
3768 % \end{macrocode}
3769 % 论文语言配置。
3770 % \begin{macrocode}
3771 language .choices:nn = { zh, en }
3772 { \tl_set_eq:NN \l_@@_lang_tl \l_keys_choice_tl },
3773 % \end{macrocode}
3774 % 参考文献支持方式配置。
3775 % \begin{macrocode}
3776 bib-backend .choices:nn = { bibtex, biblatex }
3777 { \tl_set_eq:NN \l_@@_bib_tool_tl \l_keys_choice_tl },
3778 % \end{macrocode}
3779 % 修改\pkgx{biblatex}默认选项。
3780 % \begin{macrocode}
3781 biblatex-option .tl_set:N = \l_@@_biblatex_option_tl,
3782 % \end{macrocode}
3783 % 设置文件搜索路径。
3784 % \begin{macrocode}
3785 file-search-path .clist_set:N = \l_@@_search_path_clist,
3786 % \end{macrocode}
3787 % 是否修复文件导入命令。
3788 % \begin{macrocode}
3789 fix-input .bool_set:N = \l_@@_fix_input_bool,
3790 fix-include .bool_set:N = \l_@@_fix_include_bool,
3791 fix-includegraphics .bool_set:N = \l_@@_fix_graphics_bool,
3792 % \end{macrocode}
3793 % 是否在\tnx{ref}和\tnx{pageref}两侧自动调整中英文间空白。
3794 % \begin{macrocode}
3795 ref-add-space .bool_set:N = \l_@@_ref_add_space_bool,
3796 % \end{macrocode}
3797 % 标签与后面标题之间的间距。
3798 % \begin{macrocode}
3799 caption-label-sep .tl_set:N = \l_@@_cap_label_sep_tl,
3800 % \end{macrocode}
3801 % 图、表、算法caption格式。
3802 % \begin{macrocode}
3803 ft-caption-format .choices:nn = { plain, hang }
3804 { \tl_set_eq:NN \l_@@_ft_cap_format_tl \l_keys_choice_tl },
3805 alg-caption-format .choices:nn = { plain, hang }
3806 { \tl_set_eq:NN \l_@@_alg_cap_format_tl \l_keys_choice_tl },
3807 % \end{macrocode}
3808 % 图、表、算法caption对齐方式。
3809 % \begin{macrocode}
3810 ft-caption-align .choices:nn = { left, centering, centering-left }
3811 { \tl_set_eq:NN \l_@@_ft_cap_align_tl \l_keys_choice_tl },
3812 alg-caption-align .choices:nn = { left, centering, centering-left }
3813 { \tl_set_eq:NN \l_@@_alg_cap_align_tl \l_keys_choice_tl },
3814 % \end{macrocode}
3815 % 设置算法三线间距。
3816 % \begin{macrocode}
3817 add-alg-rule-vspace .bool_set:N = \l_@@_add_alg_rule_vspace_bool,
3818 % \end{macrocode}
3819 % 设置表格字号是否为五号。
3820 % \begin{macrocode}
3821 table-small-font .bool_set:N = \l_@@_tab_small_bool,
3822 % \end{macrocode}
3823 % 设置图表内容对齐方式。
3824 % \begin{macrocode}
3825 figure-align .choices:nn = { left, centering, right }
3826 { \tl_set_eq:NN \l_@@_figure_align_tl \l_keys_choice_tl },
3827 table-align .choices:nn = { left, centering, right }
3828 { \tl_set_eq:NN \l_@@_table_align_tl \l_keys_choice_tl },
3829 % \end{macrocode}
3830 % 设置算法Caption字号是否为五号。
3831 % \begin{macrocode}
3832 alg-small-caption .bool_set:N = \l_@@_alg_small_cap_bool,
3833 algorithm-small-caption .bool_set:N = \l_@@_alg_small_cap_bool,
3834 % \end{macrocode}
3835 % 设置算法内容字号是否为五号。
3836 % \begin{macrocode}
3837 alg-small-font .bool_set:N = \l_@@_alg_small_bool,
3838 algorithm-small-font .bool_set:N = \l_@@_alg_small_bool,
3839 % \end{macrocode}
3840 % 设置章节标题前的垂直间距。
3841 % \begin{macrocode}
3842 before-skip .clist_set:N = \l_@@_before_skip_clist,
3843 % \end{macrocode}
3844 % 设置章节标题后的垂直间距。
3845 % \begin{macrocode}
3846 after-skip .clist_set:N = \l_@@_after_skip_clist,
3847 % \end{macrocode}
3848 % 设置章节标题字号。
3849 % \begin{macrocode}
3850 chap-zihao .tl_set:N = \l_@@_chap_tl,
3851 sec-zihao .tl_set:N = \l_@@_sec_tl,
3852 subsec-zihao .tl_set:N = \l_@@_subsec_tl,
3853 subsubsec-zihao .tl_set:N = \l_@@_subsubsec_tl,
3854 para-zihao .tl_set:N = \l_@@_para_tl,
3855 subpara-zihao .tl_set:N = \l_@@_subpara_tl,
3856 % \end{macrocode}
3857 % 设置页边距是否对称。
3858 % \begin{macrocode}
3859 symmetric-margin .bool_set:N = \l_@@_sym_mgn_bool,
3860 % \end{macrocode}
3861 % 设置页面垂直方向的对齐方式。
3862 % \begin{macrocode}
3863 page-vertical-align .tl_set:N = \l_@@_page_v_align_tl
3864 }
3865 % \end{macrocode}
3866 % \end{macro}
3867 % \begin{macro}{\keys_set:nn}
3868 % 初始设置。
3869 % \begin{macrocode}
3870 \keys_set:nn { xdu }
3871 {
3872 style / title-bold-math = false,
3873 style / en-cjk-font = false,
3874 style / language = zh,
3875 style / bib-backend = biblatex,
3876 style / biblatex-option = { },
3877 style / file-search-path = { },
3878 style / fix-input = false,
3879 style / fix-include = false,
3880 style / fix-includegraphics = false,
3881 style / ref-add-space = false,
3882 style / caption-label-sep = 0.75em,
3883 style / ft-caption-format = hang,
3884 style / alg-caption-format = hang,
3885 style / ft-caption-align = centering-left,
3886 style / alg-caption-align = left,
3887 style / add-alg-rule-vspace = false,
3888 style / table-small-font = true,
3889 style / figure-align = centering,
3890 style / table-align = centering,
3891 style / alg-small-caption = true,
3892 style / algorithm-small-caption = true,
3893 style / alg-small-font = true,
3894 style / algorithm-small-font = true,
3895 style / before-skip = { 24pt, 18pt, 12pt, 12pt, 12pt, 12pt },
3896 style / after-skip = { 18pt, 12pt, 6pt, 6pt, 6pt, 6pt },
3897 style / symmetric-margin = false,
3898 style / page-vertical-align = 顶部对齐
3899 }
3900 % \end{macrocode}
3901 % \end{macro}
3902 % \changes{v4.4.0.0}{2023/02/03}{标题数学字体配置}
3903 % \subsection{标题数学字体配置}
3904 % \begin{macro}{\@@_bold_math:}
3905 % 自定义数学字体加粗命令。
3906 % \begin{macrocode}
3907 \cs_new:Npn \@@_bold_math: { }
3908 \ctex_at_end_preamble:n
3909 {
3910 \bool_if:NT \l_@@_title_bold_math_bool
3911 {
3912 \tl_if_eq:NnT \l_@@_math_font_tl { cm }
3913 { \cs_set_eq:NN \@@_bold_math: \boldmath }
3914 }
3915 }
3916 % \end{macrocode}
3917 % \end{macro}
3918 % \begin{macrocode}
3919 %</thesis|xduugtp>
3920 %<*xdupgthesis>
3921 % \end{macrocode}
3922 % \changes{v1.22.0.0}{2022/06/05}{对照表样式配置}
3923 % \subsection{对照表样式配置}
3924 % \begin{variable}
3925 % {
3926 % \l_@@_customize_los_bool,
3927 % \l_@@_customize_loa_bool,
3928 % \l_@@_colspec_los_tl,
3929 % \l_@@_colspec_loa_tl,
3930 % \l_@@_title_row_los_bool,
3931 % \l_@@_title_row_los_bool,
3932 % }
3933 % 是否完全自定义符号对照。
3934 % \begin{macrocode}
3935 \bool_new:N \l_@@_customize_los_bool
3936 % \end{macrocode}
3937 % 是否完全自定义缩略语对照表。
3938 % \begin{macrocode}
3939 \bool_new:N \l_@@_customize_loa_bool
3940 % \end{macrocode}
3941 % 符号对照表列格式。
3942 % \begin{macrocode}
3943 \tl_new:N \l_@@_colspec_los_tl
3944 % \end{macrocode}
3945 % 缩略语对照表列格式。
3946 % \begin{macrocode}
3947 \tl_new:N \l_@@_colspec_loa_tl
3948 % \end{macrocode}
3949 % 是否每页均显示符号对照表标题行。
3950 % \begin{macrocode}
3951 \bool_new:N \l_@@_title_row_los_bool
3952 % \end{macrocode}
3953 % 是否每页均显示缩略语对照表标题行。
3954 % \begin{macrocode}
3955 \bool_new:N \l_@@_title_row_loa_bool
3956 % \end{macrocode}
3957 % \end{variable}
3958 % \begin{macro}{\keys_define:nn}
3959 % 定义信息键值。
3960 % \begin{macrocode}
3961 \keys_define:nn { xdu / style }
3962 {
3963 % \end{macrocode}
3964 % 是否完全自定义符号对照。
3965 % \begin{macrocode}
3966 customize-los .bool_set:N = \l_@@_customize_los_bool,
3967 % \end{macrocode}
3968 % 是否完全自定义缩略语对照表。
3969 % \begin{macrocode}
3970 customize-loa .bool_set:N = \l_@@_customize_loa_bool,
3971 % \end{macrocode}
3972 % 符号对照表列格式。
3973 % \begin{macrocode}
3974 colspec-los .tl_set:N = \l_@@_colspec_los_tl,
3975 % \end{macrocode}
3976 % 缩略语对照表列格式。
3977 % \begin{macrocode}
3978 colspec-loa .tl_set:N = \l_@@_colspec_loa_tl,
3979 % \end{macrocode}
3980 % 是否每页均显示符号对照表标题行。
3981 % \begin{macrocode}
3982 title-row-los .bool_set:N = \l_@@_title_row_los_bool,
3983 % \end{macrocode}
3984 % 是否每页均显示缩略语对照表标题行。
3985 % \begin{macrocode}
3986 title-row-loa .bool_set:N = \l_@@_title_row_loa_bool
3987 }
3988 % \end{macrocode}
3989 % \end{macro}
3990 % \begin{macro}{\keys_set:nn}
3991 % 初始设置。
3992 % \begin{macrocode}
3993 \keys_set:nn { xdu }
3994 {
3995 style / customize-los = true,
3996 style / customize-loa = true,
3997 style / colspec-los = { Q[l,h]X[l,h] },
3998 style / colspec-loa = { Q[l,h]X[l,h]X[l,h] },
3999 style / title-row-los = false,
4000 style / title-row-loa = false
4001 }
4002 % \end{macrocode}
4003 % \end{macro}
4004 % \changes{v1.26.0.0}{2022/06/07}{作者简介样式配置}
4005 % \subsection{作者简介样式配置}
4006 % \begin{variable}
4007 % {
4008 % \l_@@_cust_edubg_bool,
4009 % \l_@@_cust_resresult_bool
4010 % }
4011 % 是否完全自定义作者简介中教育背景。
4012 % \begin{macrocode}
4013 \bool_new:N \l_@@_cust_edubg_bool
4014 % \end{macrocode}
4015 % 是否完全自定义作者简介中攻读硕士学位期间的研究成果。
4016 % \begin{macrocode}
4017 \bool_new:N \l_@@_cust_resresult_bool
4018 % \end{macrocode}
4019 % \end{variable}
4020 % \begin{macro}{\keys_define:nn}
4021 % 定义信息键值。
4022 % \begin{macrocode}
4023 \keys_define:nn { xdu / style }
4024 {
4025 % \end{macrocode}
4026 % 是否完全自定义作者简介中教育背景。
4027 % \begin{macrocode}
4028 customize-edubg .bool_set:N = \l_@@_cust_edubg_bool,
4029 % \end{macrocode}
4030 % 是否完全自定义作者简介中攻读硕士学位期间的研究成果。
4031 % \begin{macrocode}
4032 customize-resresult .bool_set:N = \l_@@_cust_resresult_bool
4033 }
4034 % \end{macrocode}
4035 % \end{macro}
4036 % \begin{macro}{\keys_set:nn}
4037 % 初始设置。
4038 % \begin{macrocode}
4039 \keys_set:nn { xdu }
4040 {
4041 style / customize-edubg = true,
4042 style / customize-resresult = true
4043 }
4044 % \end{macrocode}
4045 % \end{macro}
4046 % \begin{macrocode}
4047 %</xdupgthesis>
4048 %<*class|xdufont>
4049 % \end{macrocode}
4050 % \subsection{键值选项}
4051 % \begin{macro}{\xdusetup}
4052 % 用户设置接口。
4053 % \begin{macrocode}
4054 \NewDocumentCommand \xdusetup { m }
4055 { \keys_set:nn { xdu } { #1 } }
4056 % \end{macrocode}
4057 % \end{macro}
4058 % \begin{macro}{\keys_define:nn}
4059 % 定义元(meta)键值对。
4060 % \begin{macrocode}
4061 \keys_define:nn { xdu }
4062 {
4063 style .meta:nn = { xdu / style } { #1 },
4064 info .meta:nn = { xdu / info } { #1 }
4065 }
4066 % \end{macrocode}
4067 % \end{macro}
4068 % \begin{macro}{\ProcessKeysOptions}
4069 % 处理选项。
4070 % \begin{macrocode}
4071 \ProcessKeysOptions { xdu / style }
4072 % \end{macrocode}
4073 % \end{macro}
4074 % \begin{macrocode}
4075 %</class|xdufont>
4076 %<*xdupgthesis>
4077 % \end{macrocode}
4078 % \subsection{内部文本}
4079 % \begin{variable}{l_@@_header_str}
4080 % \changes{v1.7.0.0}{2022/05/02}{研究生页眉文本}
4081 % 研究生页眉文本。
4082 % \begin{macrocode}
4083 \str_new:N \l_@@_header_str
4084 \ctex_at_end_preamble:n
4085 {
4086 \@@_lang_switch:nn
4087 {
4088 \tl_if_eq:NnTF \l_@@_gr_type_tl { 硕士 }
4089 { \str_set:Nn \l_@@_header_str { 西安电子科技大学硕士学位论文 } }
4090 { \str_set:Nn \l_@@_header_str { 西安电子科技大学博士学位论文 } }
4091 }
4092 {
4093 \tl_if_eq:NnTF \l_@@_gr_type_tl { 硕士 }
4094 {
4095 \str_set:Nn \l_@@_header_str
4096 { Master~Thesis~of~XIDIAN~UNIVERSITY }
4097 }
4098 {
4099 \str_set:Nn \l_@@_header_str
4100 { Doctoral~Dissertation~of~XIDIAN~UNIVERSITY }
4101 }
4102 }
4103 }
4104 % \end{macrocode}
4105 % \end{variable}
4106 % \begin{macrocode}
4107 %</xdupgthesis>
4108 %<*thesis>
4109 % \end{macrocode}
4110 % \subsection{内部函数}
4111 % \begin{macro}{\@@_lang_switch:nn}
4112 % 根据论文语言自动选择中文对应内容或英文对应内容。
4113 % \begin{arguments}
4114 % \item 中文对应内容。
4115 % \item 英文对应内容。
4116 % \end{arguments}
4117 % \begin{macrocode}
4118 \cs_new:Npn \@@_lang_switch:nn #1#2
4119 {
4120 \str_if_eq:NNTF { \l_@@_lang_tl } { zh }
4121 { #1 }
4122 { #2 }
4123 }
4124 % \end{macrocode}
4125 % \end{macro}
4126 % \begin{macro}{\@@_rm_family:,\@@_sf_family:,\@@_tt_family:}
4127 % 切换字体族时,英文根据配置选择是否使用中文字体。
4128 % \begin{macrocode}
4129 \cs_new:Npn \@@_rm_family:
4130 { \bool_if:NTF \l_@@_en_cjk_font_bool { \CJKfamily+ { rm } } { \rmfamily } }
4131 \cs_new:Npn \@@_sf_family:
4132 { \bool_if:NTF \l_@@_en_cjk_font_bool { \CJKfamily+ { sf } } { \sffamily } }
4133 \cs_new:Npn \@@_tt_family:
4134 { \bool_if:NTF \l_@@_en_cjk_font_bool { \CJKfamily+ { tt } } { \ttfamily } }
4135 % \end{macrocode}
4136 % \end{macro}
4137 % \changes{v4.3.1.0}{2023/02/03}{修复本科毕设论文页眉公式显示}
4138 % \begin{variable}{\l_@@_pure_title_tl}
4139 % 移除标题中换行符。
4140 % \begin{macrocode}
4141 \ctex_at_end_preamble:n
4142 {
4143 \tl_new:N \l_@@_pure_title_tl
4144 \tl_set_eq:NN \l_@@_pure_title_tl \l_@@_title_tl
4145 \tl_remove_all:Nn \l_@@_pure_title_tl { \\ }
4146 }
4147 % \end{macrocode}
4148 % \end{variable}
4149 % \changes{v4.0.2.0}{2022/12/26}{移除本科生毕业设计标题自动换行功能}
4150 % \begin{macro}{\@@_split_title:Nn,\@@_split_title:NV}
4151 % 拆分标题。
4152 % \begin{arguments}
4153 % \item 拆分后标题。
4154 % \item 拆分前标题。
4155 % \end{arguments}
4156 % \begin{macrocode}
4157 \cs_new_protected:Npn \@@_split_title:Nn #1#2
4158 {
4159 \seq_new:N \l_@@_title_seq
4160 \tl_if_in:nnTF { #2 } { \\ }
4161 {
4162 \seq_set_split:Nnn \l_@@_title_seq { \\ } { #2 }
4163 \clist_set_from_seq:NN #1 \l_@@_title_seq
4164 }
4165 { \clist_set:Nx #1 { #2 } }
4166 }
4167 \cs_generate_variant:Nn \@@_split_title:Nn { NV }
4168 % \end{macrocode}
4169 % \end{macro}
4170 % \begin{macro}{\@@_uline:n}
4171 % 绘制下划线。
4172 % \begin{macrocode}
4173 \cs_new:Npn \@@_uline:n #1
4174 { \CJKunderline [ thickness = 0.5pt ] { #1 } }
4175 % \end{macrocode}
4176 % \end{macro}
4177 % \begin{macro}{\@@_tl_set_if_empty:Nn}
4178 % \changes{v0.7.0.0}{2022/04/11}{对空凭据表赋值}
4179 % 对空凭据表赋值。
4180 % \begin{macrocode}
4181 \cs_new:Npn \@@_tl_set_if_empty:Nn #1#2
4182 { \tl_if_empty:NT #1 { \tl_set:Nn #1 { #2 } } }
4183 % \end{macrocode}
4184 % \end{macro}
4185 % \begin{macro}{\@@_get_text_width:Nn,\@@_get_text_width:NV}
4186 % 获取文本宽度。
4187 % \begin{arguments}
4188 % \item 文本宽度。
4189 % \item 文本。
4190 % \end{arguments}
4191 % \begin{macrocode}
4192 \cs_new:Npn \@@_get_text_width:Nn #1#2
4193 {
4194 \box_clear_new:N \l_@@_tmp_box
4195 \hbox_set:Nn \l_@@_tmp_box { #2 }
4196 \dim_set:Nn #1 { \box_wd:N \l_@@_tmp_box }
4197 }
4198 \cs_generate_variant:Nn \@@_get_text_width:Nn { NV }
4199 % \end{macrocode}
4200 % \end{macro}
4201 % \changes{v4.4.5.0}{2023/02/09}{修复书签中目录跳转异常}
4202 % \begin{macro}{\@@_add_bookmark:n}
4203 % 为当前位置添加书签。
4204 % \begin{macrocode}
4205 \cs_new:Npn \@@_add_bookmark:n #1
4206 {
4207 \cleardoublepage
4208 \currentpdfbookmark { #1 } { #1 }
4209 }
4210 % \end{macrocode}
4211 % \end{macro}
4212 % \begin{macro}{\@@_add_toc:n}
4213 % 章节添加目录。
4214 % \begin{macrocode}
4215 \cs_new:Npn \@@_add_toc:n #1
4216 {
4217 \cleardoublepage
4218 \phantomsection
4219 \addcontentsline { toc } { chapter } { #1 }
4220 }
4221 % \end{macrocode}
4222 % \end{macro}
4223 % \begin{macro}{\@@_n_chapter_head:n}
4224 % 新建无编号章节并添加页眉和书签。
4225 % \begin{macrocode}
4226 \cs_new:Npn \@@_n_chapter_head:n #1
4227 {
4228 \@@_add_bookmark:n { #1 }
4229 \chapter* { #1 }
4230 \markboth { #1 } { }
4231 }
4232 % \end{macrocode}
4233 % \end{macro}
4234 % \begin{macro}{\@@_n_chapter_head_ii:nn}
4235 % 新建无编号章节并添加页眉和书签并单独设置标题样式。
4236 % \begin{arguments}
4237 % \item 章节标题处。
4238 % \item 章节标题样式。
4239 % \end{arguments}
4240 % \begin{macrocode}
4241 \cs_new:Npn \@@_n_chapter_head_ii:nn #1#2
4242 {
4243 \group_begin:
4244 \ctexset { chapter / format = { #2 } }
4245 \@@_n_chapter_head:n { #1 }
4246 \group_end:
4247 }
4248 % \end{macrocode}
4249 % \end{macro}
4250 % \begin{macro}{\@@_n_chapter_head:nn}
4251 % \changes{v1.1.4.0}{2022/04/16}{新建无编号章节并单独添加页眉和书签}
4252 % 新建无编号章节并添加页眉和书签,多用于章节标题为2个汉字的情况。
4253 % \begin{arguments}
4254 % \item 书签和页眉处。
4255 % \item 章节标题处。
4256 % \end{arguments}
4257 % \begin{macrocode}
4258 \cs_new:Npn \@@_n_chapter_head:nn #1#2
4259 {
4260 \@@_add_bookmark:n { #1 }
4261 \chapter* { #2 }
4262 \markboth { #1 } { }
4263 }
4264 % \end{macrocode}
4265 % \end{macro}
4266 % \begin{macro}{\@@_n_chapter_head_ii:nnn}
4267 % \changes{v1.2.1.0}{2022/04/19}{新建无编号章节并单独添加页眉和书签并单独设置标题样式}
4268 % 新建无编号章节并添加页眉和书签并单独设置标题样式,多用于章节标题为2个汉字的情况。
4269 % \begin{arguments}
4270 % \item 章节标题处。
4271 % \item 书签和页眉处。
4272 % \item 章节标题样式。
4273 % \end{arguments}
4274 % \begin{macrocode}
4275 \cs_new:Npn \@@_n_chapter_head_ii:nnn #1#2#3
4276 {
4277 \group_begin:
4278 \ctexset { chapter / format = { #3 } }
4279 \@@_n_chapter_head:nn { #1 } { #2 }
4280 \group_end:
4281 }
4282 % \end{macrocode}
4283 % \end{macro}
4284 % \begin{macro}{\@@_n_chapter_head_toc:n}
4285 % 新建无编号章节并添加目录及页眉。
4286 % \begin{macrocode}
4287 \cs_new:Npn \@@_n_chapter_head_toc:n #1
4288 {
4289 \@@_add_toc:n { #1 }
4290 \chapter* { #1 }
4291 \markboth { #1 } { }
4292 }
4293 % \end{macrocode}
4294 % \end{macro}
4295 % \begin{macro}{\@@_n_chapter_head_toc:nn}
4296 % \changes{v1.1.4.0}{2022/04/16}{新建无编号章节并单独添加目录及页眉}
4297 % 新建无编号章节并添加目录及页眉,多用于章节标题为2个汉字的情况。
4298 % \begin{arguments}
4299 % \item 目录、书签、页眉处。
4300 % \item 章节标题处。
4301 % \end{arguments}
4302 % \begin{macrocode}
4303 \cs_new:Npn \@@_n_chapter_head_toc:nn #1#2
4304 {
4305 \@@_add_toc:n { #1 }
4306 \chapter* { #2 }
4307 \markboth { #1 } { }
4308 }
4309 % \end{macrocode}
4310 % \end{macro}
4311 % \begin{macro}{\@@_n_chapter_head_toc_ii:nn}
4312 % \changes{v1.28.1.0}{2022/06/18}{新建无编号章节并单独添加目录及页眉并单独设置标题样式}
4313 % 新建无编号章节并单独添加目录及页眉并单独设置标题样式。
4314 % \begin{arguments}
4315 % \item 目录、书签、页眉处。
4316 % \item 章节标题处。
4317 % \end{arguments}
4318 % \begin{macrocode}
4319 \cs_new:Npn \@@_n_chapter_head_toc_ii:nn #1#2
4320 {
4321 \group_begin:
4322 \ctexset { chapter / format = { #2 } }
4323 \@@_n_chapter_head_toc:n { #1 }
4324 \group_end:
4325 }
4326 % \end{macrocode}
4327 % \end{macro}
4328 % \begin{macro}{\@@_typeout_keywords:nNn}
4329 % \changes{v1.20.0.0}{2022/05/30}{允许关键词标签带格式}
4330 % 排版关键词。
4331 % \begin{arguments}
4332 % \item 标签名称。
4333 % \item 关键词列表。
4334 % \item 关键词分隔符。
4335 % \end{arguments}
4336 % \begin{macrocode}
4337 \cs_new:Npn \@@_typeout_keywords:nNn #1#2#3
4338 {
4339 \tl_clear_new:N \l_@@_keywords_label_str
4340 \tl_set:Nn \l_@@_keywords_label_tl { #1 }
4341 \dim_zero_new:N \l_@@_keywords_label_dim
4342 \@@_get_text_width:NV \l_@@_keywords_label_dim \l_@@_keywords_label_tl
4343 \begin { list } { \l_@@_keywords_label_tl }
4344 {
4345 \labelwidth \l_@@_keywords_label_dim
4346 \labelsep \c_zero_dim
4347 \rightmargin \c_zero_dim
4348 \leftmargin \l_@@_keywords_label_dim
4349 }
4350 \item \clist_use:Nnnn #2 { #3 } { #3 } { #3 }
4351 \end { list }
4352 }
4353 % \end{macrocode}
4354 % \end{macro}
4355 % \begin{macrocode}
4356 %</thesis>
4357 %<*thesis|xduugtp>
4358 % \end{macrocode}
4359 % \begin{macro}{\@@_str_max_dim:Nn}
4360 % \changes{v1.26.4.0}{2022/06/10}{计算字符串多大长度}
4361 % 计算字符串多大长度。
4362 % \begin{arguments}
4363 % \item 最大值长度。
4364 % \item 字符串。
4365 % \end{arguments}
4366 % \begin{macrocode}
4367 \dim_new:N \l_@@_str_dim
4368 \box_new:N \l_@@_str_box
4369 \cs_new:Npn \@@_str_max_dim:Nn #1#2
4370 {
4371 \hbox_set:Nn \l_@@_str_box { #2 }
4372 \dim_set:Nn \l_@@_str_dim { \box_wd:N \l_@@_str_box }
4373 \dim_set:Nn #1 { \dim_max:nn { \l_@@_str_dim } { #1 } }
4374 }
4375 % \end{macrocode}
4376 % \end{macro}
4377 % \begin{macrocode}
4378 %</thesis|xduugtp>
4379 %<*thesis>
4380 % \end{macrocode}
4381 % \subsection{额外命令}
4382 % \begin{macro}{\noauxwrite}
4383 % \changes{v1.15.0.0}{2022/05/13}{\tnx[]{noauxwrite}允许添加不影响现有引用列表顺序的引用}
4384 % \tnx[]{noauxwrite}允许添加不影响现有引用列表顺序的引用。
4385 % \begin{macrocode}
4386 \NewDocumentCommand \noauxwrite { m }
4387 {
4388 \if@filesw
4389 \@fileswfalse
4390 #1
4391 \@fileswtrue
4392 \else
4393 #1
4394 \fi
4395 }
4396 % \end{macrocode}
4397 % \end{macro}
4398 % \subsection{页面设置}
4399 % \subsubsection{页面尺寸}
4400 % \begin{macro}{\geometry,\newgeometry,\savegeometry}
4401 % \changes{v2.14.1.0}{2022/11/21}{支持多行页眉}
4402 % \changes{v1.5.1.0}{2022/05/01}{修正页脚高度}
4403 % \changes{v1.5.2.0}{2022/05/02}{修正底部页边距高度}
4404 % \changes{v1.26.8.0}{2022/06/13}{修正研究生页眉高度}
4405 % 正文页面。
4406 % \begin{description}
4407 % \item[本科生] 上3、下2、内3、外2;装订线1;页眉2、页脚1。
4408 % \item[研究生] 上3、\textbf{下2.5}、内2.5、外2.5;装订线0.5;页眉2、页脚$2.5-1.75=0.75$。
4409 % 实测上3.14,headheight和headsep均为实测。
4410 % \end{description}
4411 % \begin{macrocode}
4412 \newgeometry
4413 {
4414 %<*xduugthesis>
4415 top = 3cm,
4416 bottom = 2cm,
4417 inner = 3cm,
4418 outer = 2cm,
4419 bindingoffset = 1cm,
4420 head = 2cm,
4421 foot = 1cm
4422 %</xduugthesis>
4423 %<*xdupgthesis>
4424 top = 3.14cm,
4425 bottom = 2.5cm,
4426 inner = 2.5cm,
4427 outer = 2.5cm,
4428 bindingoffset = 0.5cm,
4429 headheight = 60pt,
4430 headsep = 10pt,
4431 foot = 0.75cm
4432 %</xdupgthesis>
4433 }
4434 \savegeometry { main }
4435 % \end{macrocode}
4436 % \changes{v1.5.1.0}{2022/05/01}{修正页脚高度}
4437 % \changes{v1.5.2.0}{2022/05/02}{修正底部页边距高度}
4438 % 左右对称正文页面。
4439 % \begin{description}
4440 % \item[本科生] 上3、下2、内3、外3;页眉2、页脚1。
4441 % \item[研究生] 上3、\textbf{下2.5}、内2.75、外2.75;页眉2、页脚$2.5-1.75=0.75$。
4442 % \end{description}
4443 % \begin{macrocode}
4444 \newgeometry
4445 {
4446 %<*xduugthesis>
4447 top = 3cm,
4448 bottom = 2cm,
4449 inner = 3cm,
4450 outer = 3cm,
4451 head = 2cm,
4452 foot = 1cm
4453 %</xduugthesis>
4454 %<*xdupgthesis>
4455 top = 3.14cm,
4456 bottom = 2.5cm,
4457 inner = 2.75cm,
4458 outer = 2.75cm,
4459 headheight = 60pt,
4460 headsep = 10pt,
4461 foot = 0.75cm
4462 %</xdupgthesis>
4463 }
4464 \savegeometry { main-sym }
4465 % \end{macrocode}
4466 % \changes{v0.10.3.0}{2022/04/14}{修复封面超页}
4467 % 封面页面。
4468 % \begin{description}
4469 % \item[本科生] 上2.5、下2、内3、外2。
4470 % \item[研究生] 上3、下1、内3、外2.5。
4471 % \end{description}
4472 % \begin{macrocode}
4473 \newgeometry
4474 {
4475 %<*xduugthesis>
4476 top = 2.5cm,
4477 bottom = 2cm,
4478 inner = 3cm,
4479 outer = 2cm
4480 %</xduugthesis>
4481 %<*xdupgthesis>
4482 top = 3cm,
4483 bottom = 1cm,
4484 inner = 3cm,
4485 outer = 2.5cm
4486 %</xdupgthesis>
4487 }
4488 \savegeometry { cover }
4489 % \end{macrocode}
4490 % \changes{v2.1.0.0}{2022/06/22}{无页边距页面}
4491 % 无页边距页面。
4492 % \begin{macrocode}
4493 %<*xdupgthesis>
4494 \newgeometry { margin = 0cm }
4495 \savegeometry { nomargin }
4496 %</xdupgthesis>
4497 % \end{macrocode}
4498 % \end{macro}
4499 % \begin{macrocode}
4500 %</thesis>
4501 %<*tp>
4502 % \end{macrocode}
4503 % \changes{v4.1.0.0}{2022/12/31}{设置本科生毕业设计开题报告页边距}
4504 % \begin{macro}{\newgeometry,\savegeometry,\loadgeometry}
4505 % 设置本科生毕业设计开题报告页边距。
4506 % \begin{macrocode}
4507 \newgeometry
4508 {
4509 left = 3.17cm,
4510 right = 3.17cm,
4511 top = 2.54cm,
4512 bottom = 2.54cm,
4513 footskip = 0cm,
4514 headsep = 0cm,
4515 headheight = 0cm
4516 }
4517 \savegeometry { main }
4518 \loadgeometry { main }
4519 % \end{macrocode}
4520 % \end{macro}
4521 % \begin{macrocode}
4522 %</tp>
4523 %<*thesis>
4524 % \end{macrocode}
4525 % \begin{macro}{\@@_load_main_geometry:}
4526 % \changes{v0.8.0.0}{2022/04/12}{根据用户配置加载正文页边距配置}
4527 % 根据用户配置加载正文页边距配置。
4528 % \begin{macrocode}
4529 \cs_new:Npn \@@_load_main_geometry:
4530 {
4531 \bool_if:NTF \l_@@_sym_mgn_bool
4532 { \loadgeometry { main-sym } }
4533 { \loadgeometry { main } }
4534 }
4535 % \end{macrocode}
4536 % \end{macro}
4537 % \subsubsection{页眉页脚}
4538 % \begin{macro}
4539 % {
4540 % \@@_chinese:,
4541 % \@@_arabic:,
4542 % \@@_roman:,
4543 % \@@_Roman:,
4544 % \@@_alph:,
4545 % \@@_Alph:,
4546 % \@@_fnsymbol:
4547 % }
4548 % \changes{v1.2.2.0}{2022/04/20}{定义序号转换函数}
4549 % 定义序号转换函数。
4550 % \begin{macrocode}
4551 \clist_map_inline:nn
4552 {
4553 { chinese },
4554 { arabic },
4555 { roman },
4556 { Roman },
4557 { alph },
4558 { Alph },
4559 { fnsymbol }
4560 }
4561 { \cs_new_eq:cc { @@ _ #1 : } { #1 } }
4562 % \end{macrocode}
4563 % \end{macro}
4564 % \begin{variable}{\l_@@_chaptername}
4565 % \changes{v1.2.2.0}{2022/04/20}{页眉内部英文章节名}
4566 % 页眉内部英文章节名。
4567 % \begin{macrocode}
4568 \tl_set:Nn \chaptername { Chapter }
4569 \tl_new:N \l_@@_chaptername
4570 \tl_set_eq:NN \l_@@_chaptername \chaptername
4571 % \end{macrocode}
4572 % \end{variable}
4573 % \begin{macro}{\chaptermark}
4574 % 设置奇数页页眉为章标题。
4575 % \begin{macrocode}
4576 \renewcommand { \chaptermark } [ 1 ]
4577 {
4578 \markboth
4579 {
4580 \@@_lang_switch:nn
4581 { \CTEXthechapter }
4582 { \l_@@_chaptername \space \@@_Roman: { chapter } }
4583 \quad #1
4584 }
4585 { }
4586 }
4587 % \end{macrocode}
4588 % \end{macro}
4589 % \begin{macro}{\fancypagestyle}
4590 % \changes{v0.1.1.0}{2022/04/03}{修正页眉字号}
4591 % \changes{v1.6.0.0}{2022/05/02}{设置页脚页码}
4592 % \changes{v1.7.0.0}{2022/05/02}{设置页眉}
4593 % \changes{v1.26.9.0}{2022/06/13}{修正页眉文字和双横线高度}
4594 % \changes{v2.8.0.0}{2022/06/26}{研究生学位论文支持移除页眉}
4595 % \changes{v2.9.0.0}{2022/06/26}{研究生学位论文支持移除页脚}
4596 % \changes{v2.9.1.0}{2022/06/26}{研究生学位论文支持移除页眉双横线}
4597 % 设置正文页眉页脚。
4598 % \begin{description}
4599 % \item[本科生] 页眉:宋体五号,居中排列。左面页眉为论文题目,右面页眉为章次和章标题。页眉底划线的宽度为0.75磅。页码:宋体小五号,排在页眉行的最外侧,不加任何修饰。
4600 % \item[研究生] 页眉设置:单面页码页眉标题为章节题目,每一章节的起始页必须在单面页码,双面页码页眉标题统一为“西安电子科技大学博/硕士学位论文”,页眉标题居中排列,字体为宋体,字号为五号。页眉文字下添加双横线,双横线宽度为0.5磅。页眉的“西安电子科技大学博士/硕士学位论文”统一翻译成:Doctoral Dissertation of XIDIAN UNIVERSITY/Master Thesis of XIDIAN UNIVERSITY。页码设置:前置部分的页码用罗马数字标识,字体为Times New Roman,字号为小五号;主体部分的页码用阿拉伯数字标识,字体为宋体,字号为小五号。页码统一居于页面底端中部,不加任何修饰。
4601 % \end{description}
4602 % \begin{macrocode}
4603 \fancypagestyle { plain }
4604 {
4605 \pagestyle { fancy }
4606 \fancyhf { }
4607 %<*xduugthesis>
4608 \fancyhead [ CE ] { \@@_rm_family: \zihao { 5 } \l_@@_pure_title_tl }
4609 \fancyhead [ CO ] { \@@_rm_family: \zihao { 5 } \leftmark }
4610 \fancyhead [ LE ] { \@@_rm_family: \zihao { -5 } \thepage }
4611 \fancyhead [ RO ] { \@@_rm_family: \zihao { -5 } \thepage }
4612 \renewcommand { \headrulewidth } { 0.75pt }
4613 %</xduugthesis>
4614 %<*xdupgthesis>
4615 \bool_if:NF \l_@@_rm_header_bool
4616 {
4617 \fancyhead [ CE ] { \@@_rm_family: \zihao { 5 } \l_@@_header_str }
4618 \fancyhead [ CO ] { \@@_rm_family: \zihao { 5 } \leftmark }
4619 }
4620 \bool_if:NTF \l_@@_rm_footer_bool
4621 { \fancyfoot [ C ] { } }
4622 { \fancyfoot [ C ] { \@@_rm_family: \zihao { -5 } \thepage } }
4623 \cs_set:Npn \headrulewidth { 0.5pt }
4624 \bool_if:NTF \l_@@_rm_header_bool
4625 { \cs_set:Npn \headrule { } }
4626 {
4627 \cs_set:Npn \headrule
4628 {
4629 \hrule \@height 0pt
4630 \skip_vertical:N 2pt
4631 \hrule \@height \headrulewidth
4632 \skip_vertical:N \headrulewidth
4633 \hrule \@height \headrulewidth
4634 \skip_vertical:N -\headrulewidth
4635 }
4636 }
4637 %</xdupgthesis>
4638 }
4639 %<*xdupgthesis>
4640 \fancypagestyle { front }
4641 {
4642 \pagestyle { plain }
4643 \bool_if:NTF \l_@@_rm_footer_bool
4644 { \fancyfoot [ C ] { } }
4645 { \fancyfoot [ C ] { \rmfamily \zihao { -5 } \thepage } }
4646 }
4647 %</xdupgthesis>
4648 % \end{macrocode}
4649 % \end{macro}
4650 % \subsubsection{对齐方式}
4651 % \begin{macro}{\raggedbottom,\flushbottom}
4652 % \changes{v1.13.0.0}{2022/05/08}{设置页面垂直方向的对齐方式}
4653 % \begin{macrocode}
4654 \ctex_at_end_preamble:n
4655 {
4656 \tl_if_eq:NnTF \l_@@_page_v_align_tl { 顶部对齐 }
4657 { \raggedbottom }
4658 { \flushbottom }
4659 }
4660 % \end{macrocode}
4661 % \end{macro}
4662 % \begin{macrocode}
4663 %</thesis>
4664 %<*xduugthesis>
4665 % \end{macrocode}
4666 % \subsection{标题设置}
4667 % \subsubsection{本科生}
4668 % 中文章标题黑体,三号,居中排列。节标题宋体,四号,居中排列。英文一级标题字体为Times New Roman,四号,正体,左对齐,以大写罗马数字(I、II 等)标出序号。其余各级标题的字体均为Times New Roman,小四号,正体。二级及以下级别的标题依次缩进4个英文字符,以1.1,1.2,1.1.1,1.1.2形式标出序号。
4669 % \paragraph{章节层次}
4670 % \begin{macro}{\ctexset}
4671 % 设置章节层次为subparagraph。
4672 % \begin{macrocode}
4673 \ctexset { secnumdepth=5 }
4674 % \end{macrocode}
4675 % \end{macro}
4676 % \paragraph{章节名字}
4677 % \begin{macro}{\ctexset}
4678 % 设置章节的名字。
4679 % \begin{macrocode}
4680 \ctexset
4681 {
4682 chapter / name =
4683 {
4684 \@@_lang_switch:nn { 第 } { \l_@@_chaptername \space },
4685 \@@_lang_switch:nn { 章 } { }
4686 },
4687 section / name = { },
4688 subsection / name = { },
4689 subsubsection / name = { },
4690 paragraph / name = { },
4691 subparagraph / name = { }
4692 }
4693 % \end{macrocode}
4694 % \end{macro}
4695 % \paragraph{章节编号}
4696 % \begin{macro}{\ctexset}
4697 % \changes{v1.2.1.0}{2022/04/19}{修正英文论文标题序号}
4698 % 设置章节编号的数字输出格式。
4699 % \begin{macrocode}
4700 \ctex_at_end_preamble:n
4701 {
4702 \@@_lang_switch:nn
4703 {
4704 \ctexset
4705 {
4706 chapter / number = { \chinese { chapter } },
4707 section / number = { \thesection },
4708 subsection / number = { \thesubsection },
4709 subsubsection / number = { \thesubsubsection },
4710 paragraph / number = { \theparagraph },
4711 subparagraph / number = { \thesubparagraph }
4712 }
4713 }
4714 {
4715 \ctexset
4716 {
4717 chapter / number = { \Roman { chapter } },
4718 section / number = { \thesection },
4719 subsection / number = { \thesubsection },
4720 subsubsection / number = { ( \roman { subsubsection } ) },
4721 paragraph / number = { ( \alph { paragraph } ) },
4722 subparagraph / number = { ( \arabic { subparagraph } ) }
4723 }
4724 }
4725 }
4726 % \end{macrocode}
4727 % \end{macro}
4728 % \paragraph{章节和标题}
4729 % \begin{macro}{\@@_zh_t:nnn}
4730 % 设置中文章节名字和随后的标题内容格式。
4731 % \begin{arguments}
4732 % \item 字体族。
4733 % \item 字号。
4734 % \item 位置。
4735 % \end{arguments}
4736 % \begin{macrocode}
4737 \cs_new:Npn \@@_zh_t:nnn #1#2#3
4738 {
4739 \use:c { @@_ #1 _family : }
4740 \zihao { \use:c { l_@@_ #2 _tl } }
4741 \str_if_eq:ccTF { #3 } { c }
4742 { \centering }
4743 { \raggedright }
4744 }
4745 % \end{macrocode}
4746 % \end{macro}
4747 % \begin{macro}{\@@_en_t:nnn}
4748 % \changes{v4.4.0.0}{2023/02/03}{本科生英文毕业设计所有级别标题中数学字体加粗}
4749 % \changes{v1.2.1.0}{2022/04/19}{英文章节样式增加位置参数}
4750 % 设置英文章节名字和随后的标题内容格式。
4751 % \begin{arguments}
4752 % \item 字号。
4753 % \item 位置。
4754 % \end{arguments}
4755 % \begin{macrocode}
4756 \cs_new:Npn \@@_en_t:nn #1#2
4757 {
4758 \rmfamily
4759 \zihao { \use:c { l_@@_ #1 _tl } }
4760 \bfseries \@@_bold_math:
4761 \str_if_eq:ccTF { #2 } { c }
4762 { \centering }
4763 { \raggedright }
4764 }
4765 % \end{macrocode}
4766 % \end{macro}
4767 % \begin{macro}{\ctexset}
4768 % \changes{v6.2.3.0}{2025/01/12}{修复本科生毕业设计三四五六级标题字号默认值}
4769 % \changes{v4.4.0.0}{2023/02/03}{本科生毕业设计一级标题中数学字体加粗}
4770 % \changes{v0.7.0.0}{2022/04/11}{自定义章节标题字号}
4771 % 设置章节名字和随后的标题内容格式。
4772 % \begin{macrocode}
4773 \ctex_at_end_preamble:n
4774 {
4775 \@@_lang_switch:nn
4776 {
4777 \@@_tl_set_if_empty:Nn \l_@@_chap_tl { 3 }
4778 \@@_tl_set_if_empty:Nn \l_@@_sec_tl { 4 }
4779 \@@_tl_set_if_empty:Nn \l_@@_subsec_tl { -4 }
4780 \@@_tl_set_if_empty:Nn \l_@@_subsubsec_tl { -4 }
4781 \@@_tl_set_if_empty:Nn \l_@@_para_tl { -4 }
4782 \@@_tl_set_if_empty:Nn \l_@@_subpara_tl { -4 }
4783 \ctexset
4784 {
4785 chapter / format = { \@@_zh_t:nnn { sf } { chap } { c } \@@_bold_math: },
4786 section / format = { \@@_zh_t:nnn { rm } { sec } { c } },
4787 subsection / format = { \@@_zh_t:nnn { rm } { subsec } { l } },
4788 subsubsection / format = { \@@_zh_t:nnn { rm } { subsubsec } { l } },
4789 paragraph / format = { \@@_zh_t:nnn { rm } { para } { l } },
4790 subparagraph / format = { \@@_zh_t:nnn { rm } { subpara } { l } }
4791 }
4792 }
4793 {
4794 \@@_tl_set_if_empty:Nn \l_@@_chap_tl { 3 }
4795 \@@_tl_set_if_empty:Nn \l_@@_sec_tl { 4 }
4796 \@@_tl_set_if_empty:Nn \l_@@_subsec_tl { -4 }
4797 \@@_tl_set_if_empty:Nn \l_@@_subsubsec_tl { -4 }
4798 \@@_tl_set_if_empty:Nn \l_@@_para_tl { -4 }
4799 \@@_tl_set_if_empty:Nn \l_@@_subpara_tl { -4 }
4800 \ctexset
4801 {
4802 chapter / format = { \@@_en_t:nn { chap } { c } },
4803 section / format = { \@@_en_t:nn { sec } { l } },
4804 subsection / format = { \@@_en_t:nn { subsec } { l } },
4805 subsubsection / format = { \@@_en_t:nn { subsubsec } { l } },
4806 paragraph / format = { \@@_en_t:nn { para } { l } },
4807 subparagraph / format = { \@@_en_t:nn { subpara } { l } }
4808 }
4809 }
4810 }
4811 % \end{macrocode}
4812 % \end{macro}
4813 % \begin{macro}{\ctexset}
4814 % 设置章节标题前后的垂直间距。
4815 % \changes{v0.4.0.0}{2022/04/05}{设置章节标题前后的垂直间距}
4816 % \begin{macrocode}
4817 \ctexset
4818 {
4819 chapter / fixskip = true,
4820 section / fixskip = true,
4821 subsection / fixskip = true,
4822 subsubsection / fixskip = true,
4823 paragraph / fixskip = true,
4824 subparagraph / fixskip = true,
4825 chapter / beforeskip = { \clist_item:Nn \l_@@_before_skip_clist { 1 } },
4826 section / beforeskip = { \clist_item:Nn \l_@@_before_skip_clist { 2 } },
4827 subsection / beforeskip = { \clist_item:Nn \l_@@_before_skip_clist { 3 } },
4828 subsubsection / beforeskip = { \clist_item:Nn \l_@@_before_skip_clist { 4 } },
4829 paragraph / beforeskip = { \clist_item:Nn \l_@@_before_skip_clist { 5 } },
4830 subparagraph / beforeskip = { \clist_item:Nn \l_@@_before_skip_clist { 6 } },
4831 chapter / afterskip = { \clist_item:Nn \l_@@_after_skip_clist { 1 } },
4832 section / afterskip = { \clist_item:Nn \l_@@_after_skip_clist { 2 } },
4833 subsection / afterskip = { \clist_item:Nn \l_@@_after_skip_clist { 3 } },
4834 subsubsection / afterskip = { \clist_item:Nn \l_@@_after_skip_clist { 4 } },
4835 paragraph / afterskip = { \clist_item:Nn \l_@@_after_skip_clist { 5 } },
4836 subparagraph / afterskip = { \clist_item:Nn \l_@@_after_skip_clist { 6 } }
4837 }
4838 % \end{macrocode}
4839 % \end{macro}
4840 % \begin{macrocode}
4841 %</xduugthesis>
4842 %<*xdupgthesis>
4843 % \end{macrocode}
4844 % \changes{v1.27.0.0}{2022/06/18}{研究生学位论文章节标题样式}
4845 % \subsubsection{研究生}
4846 % \paragraph{章节层次}
4847 % \begin{macro}{\ctexset}
4848 % 设置章节层次为subparagraph。
4849 % \begin{macrocode}
4850 \ctexset { secnumdepth=5 }
4851 % \end{macrocode}
4852 % \end{macro}
4853 % \paragraph{章节名字}
4854 % \begin{macro}{\ctexset}
4855 % \changes{v1.29.2.0}{2022/06/19}{修正英文研究生学位论文一级标题名称}
4856 % 设置章节的名字。
4857 % \begin{macrocode}
4858 \ctex_at_end_preamble:n
4859 {
4860 \@@_lang_switch:nn
4861 { \ctexset { chapter / name = { 第, 章 } } }
4862 { \ctexset { chapter / name = { Chapter\space } } }
4863 }
4864 \ctexset
4865 {
4866 section / name = { },
4867 subsection / name = { },
4868 subsubsection / name = { (, ) },
4869 paragraph / name = { (, ) },
4870 subparagraph / name = { (, ) }
4871 }
4872 % \end{macrocode}
4873 % \end{macro}
4874 % \paragraph{章节编号}
4875 % \begin{macro}{\ctexset}
4876 % \changes{v1.29.2.0}{2022/06/19}{修正英文研究生学位论文一级标题数字输出格式}
4877 % 设置章节编号的数字输出格式。
4878 % \begin{macrocode}
4879 \ctex_at_end_preamble:n
4880 {
4881 \@@_lang_switch:nn
4882 { \ctexset { chapter / number = { \chinese { chapter } } } }
4883 { \ctexset { chapter / number = { \Roman { chapter } } } }
4884 }
4885 \ctexset
4886 {
4887 section / number = { \thesection },
4888 subsection / number = { \thesubsection },
4889 subsubsection / number = { \arabic { subsubsection } },
4890 paragraph / number = { \alph { paragraph } },
4891 subparagraph / number = { \roman { subparagraph } }
4892 }
4893 % \end{macrocode}
4894 % \end{macro}
4895 % \paragraph{章节格式}
4896 % \begin{macro}
4897 % {
4898 % \@@_sec_format_i:n,
4899 % \@@_sec_format_ii:,
4900 % \@@_sec_format_iii:,
4901 % \ctexset
4902 % }
4903 % \changes{v4.4.0.0}{2023/02/03}{研究生学位论文标题中数学字体加粗}
4904 % \changes{v1.29.2.0}{2022/06/19}{修正英文研究生学位论文一级标题字体}
4905 % 设置章节名字和随后的标题内容格式。
4906 % \begin{macrocode}
4907 \cs_new:Npn \@@_sec_format_i:n #1
4908 {
4909 \@@_rm_family:
4910 \bfseries \@@_bold_math:
4911 \zihao { #1 }
4912 \dim_set:Nn \baselineskip { 20pt }
4913 }
4914 \cs_new:Npn \@@_sec_format_ii:
4915 {
4916 \@@_sf_family:
4917 \centering
4918 \@@_bold_math:
4919 \zihao { 3 }
4920 \dim_set:Nn \baselineskip { 20pt }
4921 }
4922 \cs_new:Npn \@@_sec_format_iii:
4923 { \@@_rm_family: \centering \zihao { 3 } \dim_set:Nn \baselineskip { 20pt } }
4924 \ctex_at_end_preamble:n
4925 {
4926 \@@_lang_switch:nn
4927 { \ctexset { chapter / format = { \@@_sec_format_ii: } } }
4928 { \ctexset { chapter / format = { \@@_sec_format_iii: } } }
4929 }
4930 \ctexset
4931 {
4932 section / format = { \@@_sec_format_i:n { -3 } },
4933 subsection / format = { \@@_sec_format_i:n { 4 } },
4934 subsubsection / format = { \@@_sec_format_i:n { 4 } },
4935 paragraph / format = { \@@_sec_format_i:n { 4 } },
4936 subparagraph / format = { \@@_sec_format_i:n { 4 } }
4937 }
4938 % \end{macrocode}
4939 % \end{macro}
4940 % \paragraph{章节编号与标题间距}
4941 % \begin{macro}{\ctexset}
4942 % 设置章节编号与标题间距。
4943 % \begin{macrocode}
4944 \ctexset
4945 {
4946 chapter / aftername = { \quad },
4947 section / aftername = { \enskip },
4948 subsection / aftername = { \enskip },
4949 subsubsection / aftername = { },
4950 paragraph / aftername = { },
4951 subparagraph / aftername = { }
4952 }
4953 % \end{macrocode}
4954 % \end{macro}
4955 % \paragraph{章节缩进}
4956 % \begin{macro}{\ctexset}
4957 % 设置章节标题本身的首行缩进。
4958 % \begin{macrocode}
4959 \ctexset
4960 {
4961 chapter / indent = { 0bp },
4962 section / indent = { 0bp },
4963 subsection / indent = { 24bp },
4964 subsubsection / indent = { 24bp },
4965 paragraph / indent = { 24bp },
4966 subparagraph / indent = { 24bp }
4967 }
4968 % \end{macrocode}
4969 % \end{macro}
4970 % \paragraph{章节间距}
4971 % \begin{macro}{\ctexset}
4972 % 设置章节标题前后的垂直间距。
4973 % \begin{macrocode}
4974 \ctexset
4975 {
4976 chapter / beforeskip = { 6pt },
4977 section / beforeskip = { 18pt },
4978 subsection / beforeskip = { 12pt },
4979 subsubsection / beforeskip = { 12pt },
4980 paragraph / beforeskip = { 12pt },
4981 subparagraph / beforeskip = { 12pt },
4982 chapter / afterskip = { 18pt },
4983 section / afterskip = { 12pt },
4984 subsection / afterskip = { 6pt },
4985 subsubsection / afterskip = { 6pt },
4986 paragraph / afterskip = { 6pt },
4987 subparagraph / afterskip = { 6pt }
4988 }
4989 % \end{macrocode}
4990 % \end{macro}
4991 % \begin{macrocode}
4992 %</xdupgthesis>
4993 %<*thesis>
4994 % \end{macrocode}
4995 % \subsection{目录}
4996 % \begin{macro}{\RequirePackage}
4997 % \changes{v0.4.1.0}{2022/04/05}{设置目录样式}
4998 % \changes{v1.14.1.0}{2022/05/10}{使用\tnx{PassOptionsToPackage}传递\pkgx{tocloft}宏包参数}
4999 % 设置目录样式。
5000 % \begin{macrocode}
5001 \PassOptionsToPackage { titles } { tocloft }
5002 \RequirePackage { tocloft }
5003 % \end{macrocode}
5004 % \end{macro}
5005 % \begin{macrocode}
5006 %</thesis>
5007 %<*xduugthesis>
5008 % \end{macrocode}
5009 % \subsubsection{本科生}
5010 % \begin{variable}{\cftchapleader}
5011 % 修改目录中一级标题引导点。
5012 % \begin{macrocode}
5013 \cs_set:Npn \cftchapleader { \bfseries \cftdotfill { \cftdotsep } }
5014 % \end{macrocode}
5015 % \end{variable}
5016 % \begin{variable}
5017 % {
5018 % \cftbeforechapskip,
5019 % \cftbeforesecskip
5020 % }
5021 % \changes{v1.10.1.0}{2022/05/04}{修正目录条目间距}
5022 % 设置一级标题与其余各级标题条目前垂直间距一致。
5023 % \begin{macrocode}
5024 \dim_set_eq:NN \cftbeforechapskip \cftbeforesecskip
5025 % \end{macrocode}
5026 % \end{variable}
5027 % \begin{variable}
5028 % {
5029 % \cftchapfont,
5030 % \cftchappagefont
5031 % }
5032 % \changes{v4.4.0.0}{2023/02/03}{本科生毕业设计目录一级标题中数学字体加粗}
5033 % 设置一级标题及相应页码字体字号。
5034 % \begin{macrocode}
5035 \clist_map_inline:nn
5036 {
5037 \cftchapfont,
5038 \cftchappagefont
5039 }
5040 { \renewcommand { #1 } { \@@_rm_family: \zihao { -4 } \bfseries \@@_bold_math: } }
5041 % \end{macrocode}
5042 % \end{variable}
5043 % \begin{variable}
5044 % {
5045 % \cftsecfont,,
5046 % \cftsubsecfont,,
5047 % \cftsubsubsecfont,,
5048 % \cftparafont,,
5049 % \cftsubparafont,,
5050 % \cftsecpagefont,,
5051 % \cftsubsecpagefont,,
5052 % \cftsubsubsecpagefont,,
5053 % \cftparapagefont,,
5054 % \cftsubparapagefont
5055 % }
5056 % 设置二三四五六级标题及相应页码字体字号。
5057 % \begin{macrocode}
5058 \clist_map_inline:nn
5059 {
5060 \cftsecfont,
5061 \cftsubsecfont,
5062 \cftsubsubsecfont,
5063 \cftparafont,
5064 \cftsubparafont,
5065 \cftsecpagefont,
5066 \cftsubsecpagefont,
5067 \cftsubsubsecpagefont,
5068 \cftparapagefont,
5069 \cftsubparapagefont
5070 }
5071 { \renewcommand { #1 } { \@@_rm_family: \zihao { -4 } } }
5072 % \end{macrocode}
5073 % \end{variable}
5074 % \begin{macrocode}
5075 %</xduugthesis>
5076 %<*xdupgthesis>
5077 % \end{macrocode}
5078 % \changes{v1.28.0.0}{2022/06/18}{研究生学位论文目录样式}
5079 % \subsubsection{研究生}
5080 % \begin{variable}{\cftdotsep}
5081 % 修改引导点之间的距离。
5082 % \begin{macrocode}
5083 \cs_set:Npn \cftdotsep { 0 }
5084 % \end{macrocode}
5085 % \end{variable}
5086 % \begin{variable}{\cftchapleader}
5087 % 修改目录中一级标题引导点。
5088 % \begin{macrocode}
5089 \cs_set:Npn \cftchapleader { \cftdotfill { \cftdotsep } }
5090 % \end{macrocode}
5091 % \end{variable}
5092 % \begin{variable}
5093 % {
5094 % \cftbeforechapskip,
5095 % \cftbeforesecskip
5096 % }
5097 % 设置一级标题与其余各级标题条目前垂直间距一致。
5098 % \begin{macrocode}
5099 \dim_set_eq:NN \cftbeforechapskip \cftbeforesecskip
5100 % \end{macrocode}
5101 % \end{variable}
5102 % \begin{variable}{\cftchapfont}
5103 % \changes{v4.4.0.0}{2023/02/03}{中文研究生学位论文目录中一级标题中数学字体加粗}
5104 % \changes{v1.29.2.0}{2022/06/19}{修正英文研究生学位论文目录中一级标题字体}
5105 % 设置一级标题字体字号。
5106 % \begin{macrocode}
5107 \ctex_at_end_preamble:n
5108 {
5109 \@@_lang_switch:nn
5110 { \cs_set:Npn \cftchapfont { \@@_sf_family: \@@_bold_math: \zihao { -4 } } }
5111 { \cs_set:Npn \cftchapfont { \@@_rm_family: \zihao { -4 } } }
5112 }
5113 % \end{macrocode}
5114 % \end{variable}
5115 % \begin{variable}
5116 % {
5117 % \cftsecfont,
5118 % \cftsubsecfont,
5119 % \cftchappagefont,
5120 % \cftsecpagefont,
5121 % \cftsubsecpagefont
5122 % }
5123 % 设置二三级标题及一二三级标题页码字体字号。
5124 % \begin{macrocode}
5125 \clist_map_inline:nn
5126 {
5127 \cftsecfont,
5128 \cftsubsecfont,
5129 \cftchappagefont,
5130 \cftsecpagefont,
5131 \cftsubsecpagefont
5132 }
5133 { \renewcommand { #1 } { \@@_rm_family: \zihao { -4 } } }
5134 % \end{macrocode}
5135 % \end{variable}
5136 % \begin{macrocode}
5137 %</xdupgthesis>
5138 %<*thesis>
5139 % \end{macrocode}
5140 % \subsection{文件配置}
5141 % \begin{macro}
5142 % {
5143 % \input,
5144 % \include,
5145 % \includegraphics
5146 % }
5147 % \changes{v2.12.0.0}{2022/07/01}{配置文件搜索路径}
5148 % 配置文件搜索路径。
5149 % \begin{macrocode}
5150 \ctex_at_end_preamble:n
5151 {
5152 \seq_if_empty:NF \l_@@_search_path_clist
5153 {
5154 \clist_map_inline:Nn \l_@@_search_path_clist
5155 { \seq_put_right:Nn \l_file_search_path_seq { #1 } }
5156 }
5157 \bool_if:NT \l_@@_fix_input_bool
5158 {
5159 \cs_new_eq:NN \@@_org_input:n \input
5160 \RenewDocumentCommand { \input } { m }
5161 { \@@_org_input:n { ./ #1 } }
5162 }
5163 \bool_if:NT \l_@@_fix_include_bool
5164 {
5165 \cs_new_eq:NN \@@_org_include:n \include
5166 \RenewDocumentCommand { \include } { m }
5167 { \@@_org_include:n { ./ #1 } }
5168 }
5169 \bool_if:NT \l_@@_fix_graphics_bool
5170 {
5171 \cs_new_eq:NN \@@_org_includegraphics:n \includegraphics
5172 \RenewDocumentCommand { \includegraphics } { o m }
5173 {
5174 \IfNoValueTF { #1 }
5175 { \@@_org_includegraphics:n { ./ #2 } }
5176 { \@@_org_includegraphics:n [ #1 ] { ./ #2 } }
5177 }
5178 }
5179 }
5180 % \end{macrocode}
5181 % \end{macro}
5182 % \subsection{公式}
5183 % \begin{macro}{\theequation}
5184 % 重定义公式编号样式。
5185 % \begin{macrocode}
5186 \renewcommand { \theequation } { \thechapter - \arabic { equation } }
5187 % \end{macrocode}
5188 % \end{macro}
5189 % \subsection{浮动体}
5190 % \begin{variable}
5191 % {
5192 % \topfraction,
5193 % \floatpagefraction
5194 % }
5195 % \changes{v2.11.0.0}{2022/06/30}{限制浮动环境占用大小}
5196 % 限制浮动环境占用大小。
5197 % \begin{macrocode}
5198 \cs_set:Npn \topfraction { .8 }
5199 \cs_set:Npn \floatpagefraction { .8 }
5200 % \end{macrocode}
5201 % \end{variable}
5202 % \subsection{算法}
5203 % \begin{macro}{\ALG@name,\algorithmcfname}
5204 % \changes{v1.1.1.0}{2022/04/15}{汉化算法标签名称}
5205 % 算法标签名称。
5206 % \begin{macrocode}
5207 \ctex_at_end_preamble:n
5208 {
5209 \clist_map_inline:nn
5210 {
5211 { \algorithmname },
5212 { \ALG@name },
5213 { \algorithmcfname }
5214 }
5215 { \cs_set:Npn #1 { \@@_lang_switch:nn { 算法 } { Algorithm } } }
5216 }
5217 % \end{macrocode}
5218 % \end{macro}
5219 % \begin{macro}{\thealgorithm,\floatplacement}
5220 % \changes{v0.10.1.0}{2022/04/13}{重定义算法编号样式}
5221 % \changes{v0.10.2.0}{2022/04/14}{修正算法环境未加载导致的无法编译}
5222 % \changes{v0.10.4.0}{2022/04/14}{修正\pkgx{algorithm}算法编号样式}
5223 % \changes{v1.0.1.0}{2022/04/14}{修改\pkgx{algorithm}算法浮动体默认浮动位置}
5224 % \changes{v1.1.2.0}{2022/04/15}{检测是否加载\pkgx{algorithm}}
5225 % 重定义\pkgx{algorithm}宏包算法编号样式并修改默认浮动位置。
5226 % \begin{macrocode}
5227 \PassOptionsToPackage { chapter } { algorithm }
5228 \ctex_at_end_preamble:n
5229 {
5230 \@ifpackageloaded { algorithm }
5231 {
5232 \cs_if_exist:NT \thealgorithm
5233 {
5234 \floatplacement { algorithm } { tbp }
5235 \cs_set:Npn \thealgorithm { \thechapter . \arabic { algorithm } }
5236 % \end{macrocode}
5237 % \end{macro}
5238 % \begin{macro}{\renewenvironment}
5239 % \changes{v1.1.0.0}{2022/04/15}{设置\pkgx{algorithm}算法内容字号}
5240 % 设置\pkgx{algorithm}算法内容字号。
5241 % \begin{macrocode}
5242 \bool_if:NT \l_@@_alg_small_bool
5243 {
5244 \renewenvironment { algorithm }
5245 {
5246 \@nameuse { fst@algorithm }
5247 \@float@setevery { algorithm }
5248 \ctex_gadd_ltxhook:nn
5249 { cmd/@floatboxreset/after }
5250 { \zihao { 5 } }
5251 \@float { algorithm }
5252 }
5253 { \float@end }
5254 }
5255 }
5256 }
5257 { }
5258 }
5259 % \end{macrocode}
5260 % \end{macro}
5261 % \begin{macro}{\thealgocf}
5262 % \changes{v0.10.4.0}{2022/04/14}{修正\pkgx{algorithm2e}算法编号样式}
5263 % \changes{v1.1.2.0}{2022/04/15}{检测是否加载\pkgx{algorithm2e}[]}
5264 % 重定义\pkgx{algorithm2e}宏包算法编号样式。
5265 % \begin{macrocode}
5266 \PassOptionsToPackage { algochapter } { algorithm2e }
5267 \ctex_at_end_preamble:n
5268 {
5269 \@ifpackageloaded { algorithm2e }
5270 {
5271 \cs_if_exist:NT \thealgocf
5272 {
5273 \cs_set:Npn \thealgocf { \thechapter . \arabic { algocf } }
5274 % \end{macrocode}
5275 % \end{macro}
5276 % \begin{macro}{\renewenvironment}
5277 % \changes{v1.0.3.0}{2022/04/15}{修改\pkgx{algorithm2e}算法浮动体默认浮动位置}
5278 % 修改\pkgx{algorithm2e}算法浮动体默认浮动位置。
5279 % \begin{macrocode}
5280 \renewenvironment { \algocf@envname } [ 1 ] [ tbp ]
5281 {
5282 \setboolean { algocf@algostar } { false }
5283 \setboolean { algocf@procenvironment } { false }
5284 \gdef \algocfautorefname { \algorithmautorefname }
5285 \begin { algocf@algorithm } [ #1 ] \ignorespaces
5286 }
5287 { \end { algocf@algorithm } \ignorespacesafterend }
5288 % \end{macrocode}
5289 % \end{macro}
5290 % \begin{macro}{\SetAlFnt}
5291 % \changes{v1.1.0.0}{2022/04/15}{设置\pkgx{algorithm2e}算法内容字号}
5292 % 设置\pkgx{algorithm2e}算法内容字号。
5293 % \begin{macrocode}
5294 \bool_if:NT \l_@@_alg_small_bool
5295 { \SetAlFnt { \zihao { 5 } } }
5296 }
5297 }
5298 { }
5299 }
5300 % \end{macrocode}
5301 % \end{macro}
5302 % \subsection{Caption}
5303 % \begin{macro}{\DeclareCaptionLabelSeparator,\DeclareCaptionFont,\captionsetup}
5304 % \changes{v6.0.1.0}{2023/03/03}{修正子图子表caption垂直间距}
5305 % \changes{v5.2.0.0}{2023/02/23}{设置图表caption前后垂直间距}
5306 % \changes{v3.0.0.0}{2022/12/03}{设置图表caption格式}
5307 % \changes{v2.17.0.0}{2022/11/28}{设置图表caption格式}
5308 % \changes{v0.1.2.0}{2022/04/03}{设置图片标签与后面标题之间的间距}
5309 % \changes{v0.1.3.0}{2022/04/03}{设置图片标签与标题字体字号}
5310 % \changes{v2.10.1.0}{2022/06/26}{修复算法标签与标题字体字号警告}
5311 % 设置图表标签与后面标题之间的间距及caption字体字号。
5312 % \begin{macrocode}
5313 \PassOptionsToPackage { ruled } { caption }
5314 \RequirePackage { caption }
5315 \DeclareCaptionLabelSeparator { customskip } { \hskip \l_@@_cap_label_sep_tl }
5316 \DeclareCaptionFont { customfont } { \@@_rm_family: \zihao { 5 } }
5317 \captionsetup
5318 {
5319 strut = off,
5320 labelsep = customskip,
5321 font = customfont
5322 }
5323 \captionsetup [ subfigure ] { strut = on, skip = 0pt }
5324 \captionsetup [ subtable ] { strut = on, skip = 0pt }
5325 \dim_set_eq:NN \intextsep \abovecaptionskip
5326 \ctex_at_end_preamble:n
5327 {
5328 \tl_if_eq:NnTF \l_@@_ft_cap_format_tl { hang }
5329 { \captionsetup { format = hang } }
5330 { \captionsetup { format = plain } }
5331 \tl_if_eq:NnTF \l_@@_ft_cap_align_tl { left }
5332 { \captionsetup { singlelinecheck = false, justification = justified } }
5333 {
5334 \tl_if_eq:NnTF \l_@@_ft_cap_align_tl { centering }
5335 { \captionsetup { singlelinecheck = false, justification = centerlast } }
5336 { \captionsetup { singlelinecheck = true, justification = justified } }
5337 }
5338 }
5339 % \end{macrocode}
5340 % \end{macro}
5341 % \begin{macro}{\DeclareCaptionFont,\captionsetup*}
5342 % \changes{v4.4.2.0}{2023/02/06}{修正\pkgx{algorithm}算法caption对齐方式}
5343 % \changes{v3.1.1.0}{2022/12/04}{修正\pkgx{algorithm}算法caption格式设置}
5344 % \changes{v3.0.0.0}{2022/12/03}{设置\pkgx{algorithm}算法caption格式}
5345 % \changes{v2.18.0.0}{2022/11/28}{设置\pkgx{algorithm}算法caption对齐方式}
5346 % \changes{v2.17.0.0}{2022/11/28}{设置\pkgx{algorithm}算法caption格式}
5347 % \changes{v1.0.4.0}{2022/04/15}{设置\pkgx{algorithm}算法标签与标题字体字号及标签与后面标题之间的间距}
5348 % \changes{v1.1.3.0}{2022/04/15}{修正\pkgx{algorithm}算法标签字体系列}
5349 % \changes{v2.6.0.0}{2022/06/25}{设置\pkgx{algorithm}算法Caption字号是否为五号}
5350 % 设置\pkgx{algorithm}算法标签与标题字体字号及标签与后面标题之间的间距。
5351 % \begin{macrocode}
5352 \DeclareCaptionFont { algcustomfont }
5353 {
5354 \@@_rm_family:
5355 \bool_if:NTF \l_@@_alg_small_cap_bool
5356 { \zihao { 5 } }
5357 { \zihao { -4 } }
5358 }
5359 \captionsetup* [ algorithm ]
5360 {
5361 labelsep = customskip,
5362 labelfont = algcustomfont,
5363 font = algcustomfont
5364 }
5365 \ctex_at_end_preamble:n
5366 {
5367 \tl_if_eq:NnTF \l_@@_alg_cap_format_tl { hang }
5368 { \captionsetup* [ algorithm ] { format = hang } }
5369 { \captionsetup* [ algorithm ] { format = plain } }
5370 \captionsetup* [ ruled ] { strut = off }
5371 \tl_if_eq:NnTF \l_@@_alg_cap_align_tl { left }
5372 {
5373 \captionsetup* [ algorithm ]
5374 { singlelinecheck = false, justification = justified }
5375 }
5376 {
5377 \tl_if_eq:NnTF \l_@@_alg_cap_align_tl { centering }
5378 {
5379 \captionsetup* [ algorithm ]
5380 { singlelinecheck = false, justification = centerlast }
5381 }
5382 {
5383 \captionsetup* [ ruled ] { singlelinecheck = true }
5384 \captionsetup* [ algorithm ] { justification = justified }
5385 }
5386 }
5387 }
5388 % \end{macrocode}
5389 % \end{macro}
5390 % \changes{v4.4.1.0}{2023/02/06}{修正\pkgx{algorithm}算法三线间距配置}
5391 % \changes{v3.1.0.0}{2022/12/03}{设置\pkgx{algorithm}算法三线间距}
5392 % \begin{macro}{\ctex_at_end_preamble:n}
5393 % 设置\pkgx{algorithm}算法三线间距。
5394 % \begin{macrocode}
5395 \ctex_at_end_preamble:n
5396 {
5397 \bool_if:NT \l_@@_add_alg_rule_vspace_bool
5398 {
5399 \@ifpackageloaded { algorithm }
5400 {
5401 \cs_set:Npn \fs@ruled
5402 {
5403 \cs_set_eq:NN \@fs@capt \floatc@plain
5404 \cs_set:Npn \@fs@pre { \hrule height .8pt depth 0pt \kern 5pt }
5405 \cs_set:Npn \@fs@post { \kern 5pt \hrule \relax }
5406 \cs_set:Npn \@fs@mid { \kern 5pt \hrule \kern 5pt }
5407 \cs_set_eq:NN \@fs@iftopcapt \iftrue
5408 }
5409 }
5410 { }
5411 }
5412 }
5413 % \end{macrocode}
5414 % \end{macro}
5415 % \begin{macro}{\SetAlgoCaptionSeparator,\SetAlCapNameFnt,\SetAlCapFnt}
5416 % \changes{v2.18.0.0}{2022/11/29}{设置\pkgx{algorithm2e}算法caption对齐方式}
5417 % \changes{v2.17.0.0}{2022/11/28}{设置\pkgx{algorithm2e}算法caption格式}
5418 % \changes{v1.0.0.0}{2022/04/14}{修正\pkgx{algorithm2e}算法标签与后面标题之间的间距}
5419 % \changes{v1.0.4.0}{2022/04/15}{修正\pkgx{algorithm2e}算法标签与标题字体字号}
5420 % \changes{v2.6.0.0}{2022/06/25}{设置\pkgx{algorithm2e}算法Caption字号是否为五号}
5421 % 设置\pkgx{algorithm2e}算法标签与标题字体字号及标签与后面标题之间的间距。
5422 % \begin{macrocode}
5423 \ctex_at_end_preamble:n
5424 {
5425 \@ifpackageloaded { algorithm2e }
5426 {
5427 \SetAlgoCaptionSeparator { \hbox_to_wd:nn { \l_@@_cap_label_sep_tl } { } }
5428 \bool_if:NTF \l_@@_alg_small_cap_bool
5429 {
5430 \SetAlCapNameFnt { \@@_rm_family: \zihao { 5 } }
5431 \SetAlCapFnt { \@@_rm_family: \zihao { 5 } }
5432 }
5433 {
5434 \SetAlCapNameFnt { \@@_rm_family: \zihao { -4 } }
5435 \SetAlCapFnt { \@@_rm_family: \zihao { -4 } }
5436 }
5437 \SetAlCapSty { }
5438 % \end{macrocode}
5439 % 设置\pkgx{algorithm2e}算法caption格式及对齐方式。
5440 % \begin{macrocode}
5441 \RenewDocumentCommand { \algocf@makecaption } { mm }
5442 {
5443 \box_clear_new:N \l_@@_algiie_capt_box
5444 \hbox_set:Nn \l_@@_algiie_capt_box
5445 { \AlCapFnt #1 \algocf@capseparator \AlCapNameFnt #2 }
5446 \dim_compare:nNnTF { \box_wd:N \l_@@_algiie_capt_box } > { \hsize }
5447 {
5448 \tl_if_eq:NnTF \l_@@_alg_cap_format_tl { hang }
5449 {
5450 \tl_if_eq:NnTF \l_@@_alg_cap_align_tl { centering }
5451 {
5452 \makebox { \AlCapFnt #1 \algocf@capseparator }
5453 \makebox
5454 {
5455 \parbox [ t ] { \hsize }
5456 { \centering \AlCapNameFnt #2 }
5457 }
5458 }
5459 {
5460 \makebox { \AlCapFnt #1 \algocf@capseparator }
5461 \makebox { \parbox [ t ] { \hsize } { \AlCapNameFnt #2 } }
5462 }
5463 }
5464 {
5465 \tl_if_eq:NnTF \l_@@_alg_cap_align_tl { centering }
5466 {
5467 \parbox { \columnwidth }
5468 { \centering \AlCapFnt #1 \algocf@capseparator \AlCapNameFnt #2 }
5469 }
5470 {
5471 \parbox { \columnwidth }
5472 { \AlCapFnt #1 \algocf@capseparator \AlCapNameFnt #2 }
5473 }
5474 }
5475 }
5476 {
5477 \tl_if_eq:NnTF \l_@@_alg_cap_align_tl { left }
5478 {
5479 \parbox { \columnwidth }
5480 { \AlCapFnt #1 \algocf@capseparator \AlCapNameFnt #2 }
5481 }
5482 {
5483 \parbox { \columnwidth }
5484 { \centering \AlCapFnt #1 \algocf@capseparator \AlCapNameFnt #2 }
5485 }
5486 }
5487 }
5488 \RenewDocumentCommand { \algocf@makecaption@ruled } { mm }
5489 { \global \sbox \algocf@capbox { \algocf@makecaption { #1 } { #2 } } }
5490 \RenewDocumentCommand { \algocf@makecaption@boxed } { mm }
5491 { \global \sbox \algocf@capbox { \algocf@makecaption { #1 } { #2 } } }
5492 }
5493 { }
5494 }
5495 % \end{macrocode}
5496 % \end{macro}
5497 % \changes{v4.4.1.0}{2023/02/06}{修正\pkgx{algorithm2e}算法三线间距配置}
5498 % \changes{v3.1.0.0}{2022/12/03}{设置\pkgx{algorithm2e}算法三线间距}
5499 % \begin{macro}{\ctex_at_end_preamble:n}
5500 % 设置\pkgx{algorithm2e}算法三线间距。
5501 % \begin{macrocode}
5502 \ctex_at_end_preamble:n
5503 {
5504 \bool_if:NT \l_@@_add_alg_rule_vspace_bool
5505 {
5506 \@ifpackageloaded { algorithm2e }
5507 {
5508 \dim_set:Nn \interspacetitleruled { 5pt }
5509 \dim_set:Nn \interspacealgoruled { 5pt }
5510 }
5511 { }
5512 }
5513 }
5514 % \end{macrocode}
5515 % \end{macro}
5516 % \begin{macro}{\@@_tblr_caption_box:n}
5517 % \changes{v2.16.2.0}{2022/11/27}{\envx[]{longtblr}环境整页宽的caption盒子}
5518 % \pkgx[]{tabularray}中\envx{longtblr}环境整页宽的caption盒子。
5519 % \begin{macrocode}
5520 \cs_new:Npn \@@_tblr_caption_box:n #1
5521 { \makebox [ \tablewidth ] { \parbox { \columnwidth } { #1 } } }
5522 % \end{macrocode}
5523 % \end{macro}
5524 % \begin{macro}{\SetTblrStyle,\DefTblrTemplate}
5525 % \changes{v5.2.0.0}{2023/02/23}{适配\pkgx{tabularray}宏包caption前后垂直间距}
5526 % \changes{v2.17.0.0}{2022/11/28}{设置\pkgx{tabularray}中\envx{longtblr}环境caption格式}
5527 % \changes{v2.16.3.0}{2022/11/27}{适配不同语言下的\envx{longtblr}环境中标题和尾部的续表文本}
5528 % \changes{v2.16.2.0}{2022/11/27}{修正\envx{longtblr}环境caption宽度}
5529 % \changes{v1.11.0.0}{2022/05/06}{适配\pkgx{tabularray}宏包caption样式}
5530 % 设置\pkgx{tabularray}宏包中表格标签与后面标题之间的间距及caption字体字号。
5531 % \begin{macrocode}
5532 \ctex_at_end_preamble:n
5533 {
5534 \@ifpackageloaded { tabularray }
5535 {
5536 \SetTblrOuter [ tblr, longtblr, talltblr ]
5537 { presep = \belowcaptionskip + \intextsep, headsep = \abovecaptionskip }
5538 \SetTblrStyle { head } { font = \@@_rm_family: \zihao { 5 } }
5539 \DefTblrTemplate { caption-sep } { default }
5540 { \hskip \l_@@_cap_label_sep_tl }
5541 \tl_if_eq:NnTF \l_@@_cap_format_tl { hang }
5542 {
5543 \DefTblrTemplate { firsthead } { default }
5544 { \@@_tblr_caption_box:n { \UseTblrTemplate { caption } { default } } }
5545 \DefTblrTemplate { middlehead, lasthead } { default }
5546 { \@@_tblr_caption_box:n { \UseTblrTemplate { capcont } { default } } }
5547 }
5548 {
5549 \DefTblrTemplate { firsthead } { default }
5550 { \@@_tblr_caption_box:n { \UseTblrTemplate { caption } { plain } } }
5551 \DefTblrTemplate { middlehead, lasthead } { default }
5552 { \@@_tblr_caption_box:n { \UseTblrTemplate { capcont } { plain } } }
5553 }
5554 \DefTblrTemplate { firstfoot, middlefoot } { default }
5555 { \@@_tblr_caption_box:n { \UseTblrTemplate { contfoot } { default } } }
5556 \DefTblrTemplate { lastfoot } { default }
5557 {
5558 \@@_tblr_caption_box:n
5559 {
5560 \UseTblrTemplate { note } { default }
5561 \UseTblrTemplate { remark } { default }
5562 }
5563 }
5564 \DefTblrTemplate { conthead-text } { default }
5565 { \@@_lang_switch:nn { (续表) } { (Continued) } }
5566 \DefTblrTemplate { contfoot-text } { default }
5567 { \@@_lang_switch:nn { 接下页 } { Continued~on~next~page } }
5568 }
5569 { }
5570 }
5571 % \end{macrocode}
5572 % \end{macro}
5573 % \subsection{图片}
5574 % \changes{v6.1.0.0}{2023/03/04}{设置\envx{figure}环境中内容对齐方式}
5575 % \begin{macro}{\@floatboxreset}
5576 % 设置\envx{figure}环境中内容对齐方式。
5577 % \begin{macrocode}
5578 \ctex_at_end_preamble:n
5579 {
5580 \tl_if_eq:NnTF \l_@@_figure_align_tl { left }
5581 {
5582 \AtBeginEnvironment { figure }
5583 { \g@addto@macro { \@floatboxreset } { \raggedright } }
5584 }
5585 {
5586 \tl_if_eq:NnTF \l_@@_figure_align_tl { centering }
5587 {
5588 \AtBeginEnvironment { figure }
5589 { \g@addto@macro { \@floatboxreset } { \centering } }
5590 }
5591 {
5592 \AtBeginEnvironment { figure }
5593 { \g@addto@macro { \@floatboxreset } { \raggedleft } }
5594 }
5595 }
5596 }
5597 % \end{macrocode}
5598 % \end{macro}
5599 % \begin{macro}{\PassOptionsToPackage,\captionsetup*}
5600 % \changes{v0.4.2.0}{2022/04/05}{设置子图标签与标题字体字号}
5601 % 设置子图标签与标题字体字号,支持\pkgx{subfig}和\pkgx{subcaption}宏包。
5602 % \begin{macrocode}
5603 \PassOptionsToPackage { font = small } { subfig }
5604 \captionsetup* [ sub ] { font = customfont }
5605 % \end{macrocode}
5606 % \end{macro}
5607 % \begin{macro}{\captionsetup}
5608 % \changes{v1.13.4.0}{2022/05/08}{设置\pkgx{subfig}宏包子图引用样式}
5609 % 设置\pkgx{subfig}宏包子图引用样式。
5610 % \begin{macrocode}
5611 \ctex_at_end_preamble:n
5612 {
5613 \@ifpackageloaded { subfig }
5614 { \captionsetup [ subfloat ] { subrefformat = parens } }
5615 { }
5616 }
5617 % \end{macrocode}
5618 % \end{macro}
5619 % \begin{macro}{\thesubfigure}
5620 % \changes{v4.1.1.0}{2023/01/16}{适配子表样式}
5621 % \changes{v1.13.5.0}{2022/05/08}{设置\pkgx{subcaption}宏包子图引用样式}
5622 % \changes{v1.20.1.0}{2022/05/30}{修复\pkgx{subcaption}宏包子图标签样式}
5623 % 设置\pkgx{subcaption}宏包子图子表引用样式。
5624 % \begin{macrocode}
5625 \PassOptionsToPackage { labelformat = simple } { subcaption }
5626 \ctex_at_end_preamble:n
5627 {
5628 \@ifpackageloaded { subcaption }
5629 {
5630 \cs_set:Npn \thesubfigure { ( \alph { subfigure } ) }
5631 \cs_set:Npn \thesubtable { ( \alph { subtable } ) }
5632 }
5633 { }
5634 }
5635 % \end{macrocode}
5636 % \end{macro}
5637 % \subsection{表格}
5638 % \changes{v6.1.0.0}{2023/03/04}{设置\envx{table}环境中内容对齐方式}
5639 % \begin{macro}{\@floatboxreset}
5640 % 设置\envx{table}环境中内容对齐方式。
5641 % \begin{macrocode}
5642 \ctex_at_end_preamble:n
5643 {
5644 \tl_if_eq:NnTF \l_@@_table_align_tl { left }
5645 {
5646 \AtBeginEnvironment { table }
5647 { \g@addto@macro { \@floatboxreset } { \raggedright } }
5648 }
5649 {
5650 \tl_if_eq:NnTF \l_@@_table_align_tl { centering }
5651 {
5652 \AtBeginEnvironment { table }
5653 { \g@addto@macro { \@floatboxreset } { \centering } }
5654 }
5655 {
5656 \AtBeginEnvironment { table }
5657 { \g@addto@macro { \@floatboxreset } { \raggedleft } }
5658 }
5659 }
5660 }
5661 % \end{macrocode}
5662 % \end{macro}
5663 % \changes{v6.1.0.0}{2023/03/04}{修改表格字号设置方法}
5664 % \changes{v0.10.0.0}{2022/04/13}{设置表格字号是否为五号}
5665 % \changes{v1.0.2.0}{2022/04/14}{修复表格五号字无法设定浮动位置}
5666 % \begin{macro}{\@floatboxreset}
5667 % 设置表格字号是否为五号。
5668 % \begin{macrocode}
5669 \ctex_at_end_preamble:n
5670 {
5671 \bool_if:NT \l_@@_tab_small_bool
5672 {
5673 \AtBeginEnvironment { table }
5674 { \g@addto@macro { \@floatboxreset } { \small } }
5675 }
5676 }
5677 % \end{macrocode}
5678 % \end{macro}
5679 % \begin{macro}{longtable}
5680 % \changes{v1.3.0.0}{2022/04/20}{设置\envx{longtable}环境字号是否为五号}
5681 % 设置\pkgx{longtable}宏包中\envx{longtable}环境字号是否为五号。
5682 % \begin{macrocode}
5683 \ctex_at_end_preamble:n
5684 {
5685 \@ifpackageloaded { longtable }
5686 {
5687 \bool_if:NT \l_@@_tab_small_bool
5688 {
5689 \ctex_gadd_ltxhook:nn
5690 { env/longtable/begin }
5691 { \small }
5692 }
5693 }
5694 { }
5695 }
5696 % \end{macrocode}
5697 % \end{macro}
5698 % \begin{macro}{tblr,longtblr}
5699 % \changes{v1.11.0.0}{2022/05/06}{适配\pkgx{tabularray}宏包中\envx{tblr}和\envx{longtblr}环境字号}
5700 % 设置\pkgx{tabularray}宏包中\envx{tblr}和\envx{longtblr}环境字号是否为五号。
5701 % \begin{macrocode}
5702 \ctex_at_end_preamble:n
5703 {
5704 \@ifpackageloaded { tabularray }
5705 {
5706 \bool_if:NT \l_@@_tab_small_bool
5707 {
5708 \ctex_gadd_ltxhook:nn
5709 { env/tblr/begin }
5710 { \small }
5711 \ctex_gadd_ltxhook:nn
5712 { env/longtblr/begin }
5713 { \small }
5714 }
5715 }
5716 { }
5717 }
5718 % \end{macrocode}
5719 % \end{macro}
5720 % \begin{macrocode}
5721 %</thesis>
5722 %<*thesis|tp>
5723 % \end{macrocode}
5724 % \subsection{超链接和PDF元数据}
5725 % \begin{macro}{\hypersetup}
5726 % \changes{v0.5.0.0}{2022/04/05}{添加PDF主题元数据}
5727 % \changes{v1.10.0.0}{2022/05/04}{添加PDF应用程序元数据}
5728 % 配置超链接和PDF元数据。
5729 % \begin{macrocode}
5730 \RequirePackage { hyperref }
5731 \hypersetup
5732 {
5733 bookmarksnumbered,
5734 hidelinks
5735 }
5736 \ctex_at_end_preamble:n
5737 {
5738 \hypersetup
5739 {
5740 %<thesis> pdftitle = \l_@@_pure_title_tl,
5741 %<xduugtp> pdfsubject = { 西安电子科技大学本科生毕业论文(设计)开题报告 },
5742 %<xduugtp> pdfcreator = { XeLaTeX~with~xduugtp~class~in~XDUTS },
5743 %<xduugthesis> pdfsubject = { 西安电子科技大学本科毕业设计论文 },
5744 %<xduugthesis> pdfcreator = { XeLaTeX~with~xduugthesis~class~in~XDUTS },
5745 %<xdupgthesis> pdfsubject = \l_@@_header_str,
5746 %<xdupgthesis> pdfcreator = { XeLaTeX~with~xdupgthesis~class~in~XDUTS },
5747 pdfauthor = \l_@@_author_str
5748 }
5749 }
5750 % \end{macrocode}
5751 % \end{macro}
5752 % \begin{macrocode}
5753 %</thesis|tp>
5754 %<*thesis>
5755 % \end{macrocode}
5756 % \subsection{交叉引用}
5757 % \begin{macro}{\ref,\pageref}
5758 % \changes{v1.2.0.0}{2022/04/16}{优化中文环境下\tnx{ref}两侧中英文间空白}
5759 % \changes{v1.13.3.0}{2022/05/08}{优化中文环境下\tnx{pageref}两侧中英文间空白}
5760 % 优化中文环境下\tnx{ref}和\tnx{pageref}两侧中英文间空白。
5761 % \begin{macrocode}
5762 \ctex_at_end_preamble:n
5763 {
5764 \bool_if:NT \l_@@_ref_add_space_bool
5765 {
5766 \str_if_eq:NNT { \l_@@_lang_tl } { zh }
5767 {
5768 \RequirePackage { xspace }
5769 \xspaceaddexceptions { 。?!,、;:“”‘’—….--~·《》<>_ }
5770 \cs_generate_variant:Nn \str_if_in:nnTF { xnTF }
5771 \ctex_after_end_preamble:n
5772 {
5773 \cs_set_eq:NN \@@_trad_ref:n \ref
5774 \cs_set:Npn \ref #1
5775 {
5776 \str_if_in:xnTF { \__hyp_get_anchor:n { #1 } } { chapter }
5777 { \@@_trad_ref:n { #1 } }
5778 { \xspace \@@_trad_ref:n { #1 } \xspace }
5779 }
5780 \cs_set_eq:NN \@@_trad_page_ref:n \pageref
5781 \cs_set:Npn \pageref #1
5782 { \xspace \@@_trad_page_ref:n { #1 } \xspace }
5783 }
5784 }
5785 }
5786 }
5787 % \end{macrocode}
5788 % \end{macro}
5789 % \begin{macrocode}
5790 %</thesis>
5791 %<*thesis|tp>
5792 % \end{macrocode}
5793 % \subsection{参考文献}
5794 % \begin{macro}{\@@_begin_document:n}
5795 % 钩子。
5796 % \begin{macrocode}
5797 \cs_new_protected:Npn \@@_begin_document:n #1
5798 { \ctex_gadd_ltxhook:nn { env/document/begin } { #1 } }
5799 % \end{macrocode}
5800 % \end{macro}
5801 % \begin{macro}{\RequirePackage,\bibliographystyle,\addbibresource}
5802 % \changes{v1.13.6.0}{2022/05/09}{移除\pkgx{natbib}宏包显式调用}
5803 % \changes{v1.14.0.0}{2022/05/10}{为\bibtex{}提供\tnx{parencite}命令}
5804 % \changes{v1.14.1.0}{2022/05/10}{使用\tnx{PassOptionsToPackage}传递\pkgx{gbt7714}和\pkgx{biblatex}宏包参数}
5805 % \changes{v2.2.4.0}{2022/06/24}{修改参考文献\bibtex{}标签右对齐}
5806 % \changes{v2.2.5.0}{2022/06/24}{修改\bibtex{}和\pkgx{biblatex}字体配置方式}
5807 % \changes{v2.7.1.0}{2022/06/26}{修改\pkgx{biblatex}中斜杠字符字体族}
5808 % 参考文献。
5809 % \begin{macrocode}
5810 \PassOptionsToPackage { sort&compress } { gbt7714 }
5811 \PassOptionsToPackage { style = gb7714-2015 } { biblatex }
5812 \@@_begin_document:n
5813 {
5814 \tl_if_eq:NnTF \l_@@_bib_tool_tl { bibtex }
5815 {
5816 \RequirePackage { gbt7714 }
5817 \bibliographystyle { gbt7714-numerical }
5818 \cs_set:Npn \@biblabel #1 { \hfill [ #1 ] }
5819 \cs_set:Npn \bibsection { }
5820 \dim_set:Nn \bibsep { 0pt }
5821 \NewDocumentCommand \parencite { m }
5822 { \group_begin: \citestyle { numbers } \cite { #1 } \group_end: }
5823 }
5824 {
5825 \PassOptionsToPackage { \l_@@_biblatex_option_tl } { biblatex }
5826 \RequirePackage { biblatex }
5827 \clist_map_inline:Nn \l_@@_bib_file_clist { \addbibresource { #1 } }
5828 \defbibheading { bibliography } [ ] { }
5829 \dim_set:Nn \biblabelsep { 1ex }
5830 \dim_set:Nn \bibitemsep { 0pt }
5831 \cs_set_eq:NN \SlashFont \rmfamily
5832 }
5833 % \end{macrocode}
5834 % \bibtex[]{}和\pkgx{biblatex}通用字体字号配置。
5835 % \begin{macrocode}
5836 \cs_set:Npn \bibfont
5837 {
5838 %<xdupgthesis> \rmfamily
5839 %<xduugthesis> \@@_rm_family:
5840 %<thesis> \zihao { 5 }
5841 %<tp> \zihao { -4 }
5842 %<xdupgthesis> \dim_set:Nn \baselineskip { 20pt }
5843 }
5844 }
5845 % \end{macrocode}
5846 % \begin{macrocode}
5847 %<*xdupgthesis>
5848 % \end{macrocode}
5849 % \changes{v4.4.4.0}{2023/02/09}{精简研究生学位论文移除参考文献列表宏包调用}
5850 % \changes{v2.12.2.0}{2022/08/15}{修正本科毕业设计参考文献列表编译错误}
5851 % \changes{v2.7.0.0}{2022/06/26}{\bibtex[]{}下允许不生成文献列表}
5852 % \bibtex[]{}下允许不生成文献列表。
5853 % \begin{macrocode}
5854 \ctex_at_end_preamble:n
5855 {
5856 \tl_if_eq:NnT \l_@@_bib_tool_tl { bibtex }
5857 {
5858 \bool_if:NT \l_@@_rm_ref_bool
5859 { \RequirePackage { bibentry } }
5860 }
5861 }
5862 % \end{macrocode}
5863 % \begin{macrocode}
5864 %</xdupgthesis>
5865 % \end{macrocode}
5866 % \end{macro}
5867 % \begin{macrocode}
5868 %</thesis|tp>
5869 %<*thesis>
5870 % \end{macrocode}
5871 % \subsection{附录}
5872 % \begin{macro}{\@@_appendix:}
5873 % 附录环境。
5874 % \changes{v0.3.0.0}{2022/04/04}{增加附录环境}
5875 % \changes{v0.3.1.0}{2022/04/04}{修正附录中图表编号样式}
5876 % \changes{v0.10.2.0}{2022/04/14}{修正附录中算法编号样式}
5877 % \changes{v0.10.4.0}{2022/04/14}{修正附录中\pkgx{algorithm2e}算法编号样式}
5878 % \changes{v1.2.2.0}{2022/04/20}{修正英文附录编号}
5879 % \begin{macrocode}
5880 \cs_new:Npn \@@_appendix:
5881 {
5882 \cs_set:Npn \appendixname { \@@_lang_switch:nn { 附录 } { Appendix } }
5883 \tl_set_eq:NN \l_@@_chaptername \appendixname
5884 \cs_set_eq:NN \@@_Roman: \@@_Alph:
5885 \appendix
5886 \renewcommand { \thefigure } { \thechapter \arabic { figure } }
5887 \renewcommand { \thetable } { \thechapter \arabic { table } }
5888 \cs_if_exist:NT \thealgorithm
5889 { \cs_set:Npn \thealgorithm { \thechapter \arabic { algorithm } } }
5890 \cs_if_exist:NT \thealgocf
5891 { \cs_set:Npn \thealgocf { \thechapter \arabic { algocf } } }
5892 \bool_if_exist:NTF \l_@@_rm_appendix_bool
5893 {
5894 \bool_if:NF \l_@@_rm_appendix_bool
5895 {
5896 \clist_map_inline:Nn \l_@@_appendix_clist
5897 { \file_if_exist_input:n { ##1 } }
5898 }
5899 }
5900 {
5901 \clist_map_inline:Nn \l_@@_appendix_clist
5902 { \file_if_exist_input:n { ##1 } }
5903 }
5904 }
5905 % \end{macrocode}
5906 % \begin{macrocode}
5907 %</thesis>
5908 % \end{macrocode}
5909 % \end{macro}
5910 % \begin{macrocode}
5911 %<*xduugthesis>
5912 % \end{macrocode}
5913 % \changes{v1.26.7.1}{2022/06/12}{整理代码结构}
5914 % \subsection{前言部分}
5915 % \subsubsection{本科生}
5916 % \paragraph{前言组件}
5917 % \begin{macro}{\@@_cover_i:nn}
5918 % 绘制班级和学号。
5919 % \begin{arguments}
5920 % \item 标签名称。
5921 % \item 班级和学号对应值。
5922 % \end{arguments}
5923 % \begin{macrocode}
5924 \cs_new:Npn \@@_cover_i:nn #1#2
5925 {
5926 \vbox_to_ht:nn { 12pt }
5927 {
5928 \mode_leave_vertical:
5929 \hfill
5930 \hbox:n
5931 {
5932 \@@_rm_family: \zihao { -4 } \bfseries
5933 \hbox_to_wd:nn { 3em } { #1 }
5934 \skip_horizontal:n { 1em }
5935 \@@_uline:n { \hbox_to_wd:nn { 15ex } { \hfil #2 \hfil } }
5936 \skip_horizontal:n { 1.5cm }
5937 }
5938 }
5939 }
5940 % \end{macrocode}
5941 % \end{macro}
5942 % \begin{macro}{\@@_cover_ii:nnn}
5943 % \changes{v0.6.1.0}{2022/04/11}{修复logo不存在导致的无法编译}
5944 % \changes{v1.13.1.0}{2022/05/08}{使用融合logo文件}
5945 % 绘制西电logo。
5946 % \begin{arguments}
5947 % \item 盒子高度。
5948 % \item logo高度。
5949 % \item logo类型。
5950 % \end{arguments}
5951 % \begin{macrocode}
5952 \cs_new:Npn \@@_cover_ii:nnn #1#2#3
5953 {
5954 \vbox_to_ht:nn { #1 }
5955 {
5956 \mode_leave_vertical:
5957 \hfil
5958 \file_if_exist:nT { xdulogo.pdf }
5959 {
5960 \str_if_eq:nnTF { #3 } { text }
5961 { \includegraphics [ page = 1, height = #2 ] { xdulogo.pdf } }
5962 { \includegraphics [ page = 2, height = #2 ] { xdulogo.pdf } }
5963 }
5964 \hfil
5965 }
5966 }
5967 % \end{macrocode}
5968 % \end{macro}
5969 % \begin{macro}{\@@_cover_iii:nnnnn}
5970 % 绘制论文信息。
5971 % \begin{arguments}
5972 % \item 标签宽度。
5973 % \item 标签名称。
5974 % \item 字体族。
5975 % \item 字号。
5976 % \item 论文信息。
5977 % \end{arguments}
5978 % \begin{macrocode}
5979 \cs_new:Npn \@@_cover_iii:nnnnn #1#2#3#4#5
5980 {
5981 \vbox_to_ht:nn { 42.5pt }
5982 {
5983 \vfill
5984 \mode_leave_vertical:
5985 \hfil
5986 \hbox:n
5987 {
5988 \@@_rm_family:
5989 \zihao { 3 }
5990 \hbox_to_wd:nn { #1 } { \bfseries #2 }
5991 \skip_horizontal:n { 1em }
5992 \zihao { -3 }
5993 \@@_uline:n
5994 {
5995 \hbox_to_wd:nn { 16em }
5996 { \hfil \use:c { @@_ #3 _family : } \zihao { #4 } #5 \hfil }
5997 }
5998 }
5999 \hfil
6000 }
6001 }
6002 % \end{macrocode}
6003 % \end{macro}
6004 % \begin{variable}{\l_@@_is_ent_bool,\l_@@_is_wide_bool}
6005 % \changes{v0.8.1.0}{2022/04/12}{封面导师标签标志位}
6006 % 是否为校外毕设,是否为宽名称。
6007 % \begin{macrocode}
6008 \bool_new:N \l_@@_is_ent_bool
6009 \bool_new:N \l_@@_is_wide_bool
6010 % \end{macrocode}
6011 % \end{variable}
6012 % \begin{macro}{\@@_cover_iii:nnnn}
6013 % \changes{v0.8.1.0}{2022/04/12}{使用标志位计算论文信息标签宽度}
6014 % \changes{v0.1.4.0}{2022/04/03}{自动调整论文信息标签宽度}
6015 % 绘制论文信息并自动调整论文信息标签宽度。
6016 % \begin{arguments}
6017 % \item 标签名称。
6018 % \item 字体族。
6019 % \item 字号。
6020 % \item 论文信息。
6021 % \end{arguments}
6022 % \begin{macrocode}
6023 \ctex_at_end_preamble:n
6024 {
6025 \tl_if_blank:VF \l_@@_supv_dept_str
6026 { \bool_set_true:N \l_@@_is_wide_bool }
6027 \tl_if_blank:VF \l_@@_supv_ent_str
6028 { \bool_set_true:N \l_@@_is_wide_bool }
6029 \tl_if_blank:VF \l_@@_supv_sch_str
6030 { \bool_set_true:N \l_@@_is_wide_bool }
6031 \cs_new:Npn \@@_cover_iii:nnnn #1#2#3#4
6032 {
6033 \bool_if:NTF \l_@@_is_wide_bool
6034 { \@@_cover_iii:nnnnn { 6em } { #1 } { #2 } { #3 } { #4 } }
6035 { \@@_cover_iii:nnnnn { 4em } { #1 } { #2 } { #3 } { #4 } }
6036 }
6037 }
6038 % \end{macrocode}
6039 % \end{macro}
6040 % \paragraph{重定义\tn{frontmatter}}
6041 % \begin{macro}{\frontmatter,\@@_frontmatter:}
6042 % \changes{v1.9.1.0}{2022/05/04}{修正封面元素位置及尺寸}
6043 % 排版前言部分。
6044 % \begin{macrocode}
6045 \RenewDocumentCommand { \frontmatter } { } { }
6046 \cs_new:Npn \@@_frontmatter:
6047 {
6048 \loadgeometry { cover }
6049 \pagestyle { empty }
6050 \dim_set:Nn \parindent { 0pt }
6051 % \end{macrocode}
6052 % 排版班级和学号。
6053 % \begin{macrocode}
6054 \@@_cover_i:nn { 班级 } { \l_@@_class_id_str }
6055 \@@_cover_i:nn { 学号 } { \l_@@_student_id_str }
6056 \skip_vertical:n { 30pt }
6057 % \end{macrocode}
6058 % 排版西电文字logo。
6059 % \begin{macrocode}
6060 \@@_cover_ii:nnn { 65pt } { 35pt } { text }
6061 % \end{macrocode}
6062 % \changes{v1.13.2.0}{2022/05/08}{修正封面标题偏移}
6063 % 排版封面标题。
6064 % \begin{macrocode}
6065 \vbox_to_ht:nn { 90pt }
6066 {
6067 \mode_leave_vertical:
6068 \hfil
6069 \hbox_to_wd:nn { 375pt } { \sffamily \zihao { 0 } 本科毕业设计论文 }
6070 \hfil
6071 }
6072 % \end{macrocode}
6073 % 排版西电logo。
6074 % \begin{macrocode}
6075 \@@_cover_ii:nnn { 140pt } { 120pt } { icon }
6076 % \end{macrocode}
6077 % \changes{v4.4.0.0}{2023/02/03}{本科毕设论文标题中公式字体加粗}
6078 % \changes{v4.3.1.0}{2023/02/03}{修复本科毕设论文标题公式显示}
6079 % 拆分论文标题并排版。
6080 % \begin{macrocode}
6081 \clist_new:N \l_@@_title_clist
6082 \@@_split_title:NV \l_@@_title_clist \l_@@_title_tl
6083 \tl_set:Nx \l_@@_title_i_tl { \clist_item:Nn \l_@@_title_clist { 1 } }
6084 \tl_set:Nx \l_@@_title_ii_tl { \clist_item:Nn \l_@@_title_clist { 2 } }
6085 \@@_cover_iii:nnnn { 题目 } { sf } { 3 } { \@@_bold_math: \l_@@_title_i_tl }
6086 \tl_if_blank:VF \l_@@_title_ii_tl
6087 { \@@_cover_iii:nnnn { } { sf } { 3 } { \@@_bold_math: \l_@@_title_ii_tl } }
6088 % \end{macrocode}
6089 % 排版学院、专业、学生姓名。
6090 % \begin{macrocode}
6091 \@@_cover_iii:nnnn { 学院 } { rm } { -3 } { \l_@@_dept_str }
6092 \@@_cover_iii:nnnn { 专业 } { rm } { -3 } { \l_@@_major_str }
6093 \@@_cover_iii:nnnn { 学生姓名 } { rm } { -3 } { \l_@@_author_str }
6094 % \end{macrocode}
6095 % \changes{v0.8.1.0}{2022/04/12}{修正封面论文信息标签宽度}
6096 % 校外毕设,排版校外导师姓名、校内导师姓名。
6097 % \begin{macrocode}
6098 \tl_if_blank:VF \l_@@_supv_ent_str
6099 { \bool_set_true:N \l_@@_is_ent_bool }
6100 \tl_if_blank:VF \l_@@_supv_sch_str
6101 { \bool_set_true:N \l_@@_is_ent_bool }
6102 \bool_if:NTF \l_@@_is_ent_bool
6103 {
6104 \@@_cover_iii:nnnn { 校外导师姓名 } { rm } { -3 } { \l_@@_supv_ent_str }
6105 \@@_cover_iii:nnnn { 校内导师姓名 } { rm } { -3 } { \l_@@_supv_sch_str }
6106 }
6107 % \end{macrocode}
6108 % \changes{v6.2.1.0}{2025/01/12}{修复本科生毕业设计导师信息录入}
6109 % \changes{v1.15.1.0}{2022/05/21}{使用\csx{group_begin:}和\csx{group_end:}替换分组}
6110 % 校内毕设,排版导师姓名、院内导师姓名。
6111 % \begin{macrocode}
6112 {
6113 \@@_cover_iii:nnnn { 导师姓名 } { rm } { -3 } { \l_@@_supv_str }
6114 \tl_if_blank:VF \l_@@_supv_dept_str
6115 {
6116 \@@_cover_iii:nnnn
6117 { 院内导师姓名 }
6118 { rm }
6119 { -3 }
6120 { \l_@@_supv_dept_str }
6121 }
6122 }
6123 \cleardoublepage
6124 % \end{macrocode}
6125 % \changes{v0.8.0.0}{2022/04/12}{支持对称页边距}
6126 % \changes{v1.10.2.0}{2022/05/04}{修正正文前页码样式}
6127 % 更换页面尺寸、页面样式和页码样式。
6128 % \begin{macrocode}
6129 \@@_load_main_geometry:
6130 \pagestyle { plain }
6131 \pagenumbering { roman }
6132 % \end{macrocode}
6133 % \changes{v1.2.1.0}{2022/04/19}{修正英文论文下中文摘要标题样式}
6134 % 中文摘要,宋体小四号。
6135 % \begin{macrocode}
6136 \@@_lang_switch:nn
6137 { \@@_n_chapter_head:nn { 摘要 } { 摘 { \quad } 要 } }
6138 {
6139 \@@_n_chapter_head_ii:nnn
6140 { 摘要 }
6141 { 摘 { \quad } 要 }
6142 { \@@_sf_family: \zihao { 3 } \centering }
6143 }
6144 \group_begin:
6145 \dim_set:Nn \parindent { 2 \ccwd }
6146 \rmfamily \zihao { -4 }
6147 \file_if_exist_input:n { \l_@@_abstract_zh_tl }
6148 \group_end:
6149 % \end{macrocode}
6150 % \changes{v1.10.3.0}{2022/05/04}{使用弹性长度分隔关键词}
6151 % 关键词弹性分隔间距。
6152 % \begin{macrocode}
6153 \cs_new:Npn \@@_keywords_space: { \hspace { 2em plus 1em minus 1em } }
6154 % \end{macrocode}
6155 % \changes{v4.4.0.0}{2023/02/03}{本科生毕业设计中文关键词中数学字体加粗}
6156 % 中文关键词,黑体小四号。
6157 % \begin{macrocode}
6158 \group_begin:
6159 \sffamily \@@_bold_math: \zihao { -4 } \par
6160 \@@_typeout_keywords:nNn
6161 { 关键词: } { \l_@@_keywords_zh_clist } { \@@_keywords_space: }
6162 \group_end:
6163 \cleardoublepage
6164 % \end{macrocode}
6165 % 英文摘要,Times New Roman字体,小四号。
6166 % \changes{v0.4.3.0}{2022/04/05}{修正英文摘要标题字体}
6167 % \begin{macrocode}
6168 \@@_n_chapter_head_ii:nn
6169 { ABSTRACT } { \rmfamily \zihao { 3 } \bfseries \centering }
6170 \group_begin:
6171 \dim_set:Nn \parindent { 2 \ccwd }
6172 \rmfamily \zihao { -4 }
6173 \file_if_exist_input:n { \l_@@_abstract_en_tl }
6174 \group_end:
6175 % \end{macrocode}
6176 % \changes{v6.2.7.0}{2025/04/12}{修改本科生毕业设计英文关键词冒号字符}
6177 % \changes{v4.4.0.0}{2023/02/03}{本科生毕业设计英文关键词中数学字体加粗}
6178 % 英文关键词,Times New Roman字体加粗,小四号。
6179 % \begin{macrocode}
6180 \group_begin:
6181 \rmfamily \zihao { -4 } \bfseries \@@_bold_math: \par
6182 \@@_typeout_keywords:nNn
6183 { Keywords:~ } { \l_@@_keywords_en_clist } { \@@_keywords_space: }
6184 \group_end:
6185 \cleardoublepage
6186 % \end{macrocode}
6187 % \changes{v1.1.4.0}{2022/04/16}{为目录章节标题增加间距}
6188 % \changes{v1.1.5.0}{2022/04/16}{目录中移除目录章节}
6189 % 目录。
6190 % \begin{macrocode}
6191 \setcounter { tocdepth } { 5 }
6192 \@@_n_chapter_head:nn
6193 { \@@_lang_switch:nn { 目录 } { Contents } }
6194 { \@@_lang_switch:nn { 目 { \quad } 录 } { Contents } }
6195 \@starttoc { toc }
6196 \cleardoublepage
6197 }
6198 % \end{macrocode}
6199 % \end{macro}
6200 % \begin{macrocode}
6201 %</xduugthesis>
6202 %<*xdupgthesis>
6203 % \end{macrocode}
6204 % \subsubsection{研究生}
6205 % \paragraph{封面}
6206 % \begin{variable}
6207 % {
6208 % \l_@@_phd,
6209 % \l_@@_master,
6210 % \l_@@_ac,
6211 % \l_@@_pro
6212 % }
6213 % \changes{v2.18.1.0}{2022/12/01}{移除部分研究生类型布尔变量}
6214 % \changes{v1.16.0.0}{2022/05/22}{研究生类别}
6215 % \changes{v1.17.0.0}{2022/05/28}{增加学术和专业研究生布尔变量}
6216 % \changes{v1.18.0.0}{2022/05/29}{增加硕士和博士研究生布尔变量}
6217 % 研究生类别。
6218 % \begin{macrocode}
6219 \bool_new:N \l_@@_phd
6220 \bool_new:N \l_@@_master
6221 \bool_new:N \l_@@_ac
6222 \bool_new:N \l_@@_pro
6223 \ctex_at_end_preamble:n
6224 {
6225 \tl_if_eq:NnTF \l_@@_gr_type_tl { 硕士 }
6226 { \bool_set_true:N \l_@@_master }
6227 { \bool_set_true:N \l_@@_phd }
6228 \tl_if_eq:NnTF \l_@@_degree_type_tl { 学术 }
6229 { \bool_set_true:N \l_@@_ac }
6230 { \bool_set_true:N \l_@@_pro }
6231 }
6232 % \end{macrocode}
6233 % \end{variable}
6234 % \begin{macro}{\@@_cover_i:nnnnn}
6235 % \changes{v1.16.0.0}{2022/05/22}{绘制研究生封面单行内容}
6236 % \changes{v1.17.0.0}{2022/05/28}{绘制研究生封面和题名页单行内容}
6237 % 绘制研究生封面和题名页单行内容。
6238 % \begin{arguments}
6239 % \item 盒子高度。
6240 % \item 字体族。
6241 % \item 字号。
6242 % \item 是否加粗。
6243 % \item 盒子内容。
6244 % \end{arguments}
6245 % \begin{macrocode}
6246 \cs_new:Npn \@@_cover_i:nnnnn #1#2#3#4#5
6247 {
6248 \dim_set:Nn \baselineskip { 20pt }
6249 \vbox_to_ht:nn { #1 }
6250 {
6251 \vfill
6252 \mode_leave_vertical:
6253 \hfil
6254 \use:c { #2 family } \zihao { #3 }
6255 \str_if_eq:nnTF { #4 } { bf } { \bfseries } { }
6256 #5
6257 \hfil
6258 }
6259 }
6260 % \end{macrocode}
6261 % \end{macro}
6262 % \begin{macro}{\@@_cover_ii:nnnn}
6263 % \changes{v1.16.0.0}{2022/05/22}{绘制研究生封面论文信息}
6264 % \changes{v1.26.4.0}{2022/06/10}{研究生封面论文信息可指定宽度}
6265 % 绘制研究生封面论文信息。
6266 % \begin{arguments}
6267 % \item 标签宽度。
6268 % \item 标签名称。
6269 % \item 盒子宽度。
6270 % \item 盒子内容。
6271 % \end{arguments}
6272 % \begin{macrocode}
6273 \cs_new:Npn \@@_cover_ii:nnnn #1#2#3#4
6274 {
6275 \dim_set:Nn \baselineskip { 20pt }
6276 \vbox_to_ht:nn { 25pt }
6277 {
6278 \vfill
6279 \mode_leave_vertical:
6280 \hfil
6281 \hbox:n
6282 {
6283 \zihao { 4 } \bfseries
6284 \hbox_to_wd:nn { #1 } { \sffamily #2 }
6285 \skip_horizontal:n { 0.5em }
6286 \@@_uline:n
6287 {
6288 \skip_horizontal:n { 9em - #1 }
6289 \hbox_to_wd:nn { #3 } { \hfil \rmfamily #4 \hfil }
6290 }
6291 }
6292 \hfil
6293 }
6294 }
6295 % \end{macrocode}
6296 % \end{macro}
6297 % \begin{macro}{\@@_cover_iii:nnnn}
6298 % \changes{v1.17.0.0}{2022/05/28}{绘制研究生中文题名页顶部信息}
6299 % 绘制研究生中文题名页顶部信息。
6300 % \begin{arguments}
6301 % \item 标签宽度。
6302 % \item 标签名称。
6303 % \item 值宽度。
6304 % \item 值内容。
6305 % \end{arguments}
6306 % \begin{macrocode}
6307 \cs_new:Npn \@@_cover_iii:nnnn #1#2#3#4
6308 {
6309 \dim_set:Nn \baselineskip { 20pt }
6310 \hbox:n
6311 {
6312 \rmfamily \zihao { 5 } \bfseries
6313 \hbox_to_wd:nn { #1 } { #2 }
6314 \skip_horizontal:n { 0.5em }
6315 \@@_uline:n { \hbox_to_wd:nn { #3 } { \hfil #4 \hfil } }
6316 }
6317 }
6318 % \end{macrocode}
6319 % \end{macro}
6320 % \begin{macro}{\@@_en_month:n}
6321 % \changes{v1.18.0.0}{2022/05/29}{英文月份}
6322 % 英文月份。
6323 % \begin{macrocode}
6324 \cs_new:Npn \@@_en_month:n #1
6325 {
6326 \str_case:Vn #1
6327 {
6328 { 1 } { January }
6329 { 2 } { February }
6330 { 3 } { March }
6331 { 4 } { April }
6332 { 5 } { May }
6333 { 6 } { June }
6334 { 7 } { July }
6335 { 8 } { August }
6336 { 9 } { September }
6337 { 10 } { October }
6338 { 11 } { November }
6339 { 12 } { December }
6340 { 01 } { January }
6341 { 02 } { February }
6342 { 03 } { March }
6343 { 04 } { April }
6344 { 05 } { May }
6345 { 06 } { June }
6346 { 07 } { July }
6347 { 08 } { August }
6348 { 09 } { September }
6349 }
6350 }
6351 % \end{macrocode}
6352 % \end{macro}
6353 % \begin{macro}{\@@_zh_today:,\@@_en_today:}
6354 % \changes{v1.17.0.0}{2022/05/28}{中文今日年月}
6355 % \changes{v1.18.0.0}{2022/05/29}{英文今日年月}
6356 % 今日年月。
6357 % \begin{macrocode}
6358 \cs_new:Npn \@@_zh_today:
6359 { \int_use:N \c_sys_year_int 年 \int_use:N \c_sys_month_int 月 }
6360 \cs_new:Npn \@@_en_today:
6361 { \@@_en_month:n { \c_sys_month_int } ~ \int_use:N \c_sys_year_int }
6362 % \end{macrocode}
6363 % \end{macro}
6364 % \begin{macro}{\@@_split_submit_date:N}
6365 % \changes{v1.17.0.0}{2022/05/28}{拆分提交日期为年和月}
6366 % 拆分提交日期为年和月。
6367 % \begin{macrocode}
6368 \seq_new:N \l_@@_submit_date_seq
6369 \cs_new:Npn \@@_split_submit_date:N #1
6370 {
6371 \seq_set_split:NnV \l_@@_submit_date_seq { - } \l_@@_submit_date_str
6372 \clist_set_from_seq:NN #1 \l_@@_submit_date_seq
6373 }
6374 % \end{macrocode}
6375 % \end{macro}
6376 % \begin{macro}{\@@_zh_submit_date:}
6377 % \changes{v1.17.0.0}{2022/05/28}{中文提交日期}
6378 % 中文提交日期。
6379 % \begin{macrocode}
6380 \clist_new:N \l_@@_submit_date_clist
6381 \cs_new:Npn \@@_zh_submit_date:
6382 {
6383 \str_if_empty:NTF \l_@@_submit_date_str
6384 { \@@_zh_today: }
6385 {
6386 \@@_split_submit_date:N \l_@@_submit_date_clist
6387 \clist_item:Nn \l_@@_submit_date_clist { 1 } 年
6388 \clist_item:Nn \l_@@_submit_date_clist { 2 } 月
6389 }
6390 }
6391 % \end{macrocode}
6392 % \end{macro}
6393 % \begin{macro}{\@@_en_submit_date:}
6394 % \changes{v1.18.0.0}{2022/05/29}{英文提交日期}
6395 % 英文提交日期。
6396 % \begin{macrocode}
6397 \str_new:N \l_@@_submit_date_month_str
6398 \cs_new:Npn \@@_en_submit_date:
6399 {
6400 \str_if_empty:NTF \l_@@_submit_date_str
6401 { \@@_en_today: }
6402 {
6403 \@@_split_submit_date:N \l_@@_submit_date_clist
6404 \str_set:Nx \l_@@_submit_date_month_str
6405 { \clist_item:Nn \l_@@_submit_date_clist { 2 } }
6406 \@@_en_month:n { \l_@@_submit_date_month_str } ~
6407 \clist_item:Nn \l_@@_submit_date_clist { 1 }
6408 }
6409 }
6410 % \end{macrocode}
6411 % \end{macro}
6412 % \begin{macro}{\@@_cover_author_info:}
6413 % \changes{v2.18.1.0}{2022/12/01}{修正专业博士封面和题名页信息}
6414 % \changes{v1.26.4.0}{2022/06/10}{研究生封面底部作者信息}
6415 % 研究生封面底部作者信息。
6416 % \begin{macrocode}
6417 \cs_new:Npn \@@_cover_author_info:
6418 {
6419 % \end{macrocode}
6420 % 计算作者信息最大宽度。
6421 % \begin{macrocode}
6422 \rmfamily \zihao { 4 }
6423 \dim_new:N \l_@@_cover_author_info_dim
6424 \dim_set:Nn \l_@@_cover_author_info_dim { 7em }
6425 \@@_str_max_dim:Nn \l_@@_cover_author_info_dim { \l_@@_author_str }
6426 \bool_if:NTF \l_@@_pro
6427 {
6428 \@@_str_max_dim:Nn \l_@@_cover_author_info_dim
6429 { \l_@@_supv_str \enskip \l_@@_supv_t_str }
6430 \str_if_empty:NF \l_@@_supv_ii_str
6431 {
6432 \@@_str_max_dim:Nn \l_@@_cover_author_info_dim
6433 { \l_@@_supv_ii_str \enskip \l_@@_supv_ii_t_str }
6434 }
6435 \@@_str_max_dim:Nn \l_@@_cover_author_info_dim
6436 { \l_@@_supv_ent_str \enskip \l_@@_supv_ent_t_str }
6437 }
6438 {
6439 \@@_str_max_dim:Nn \l_@@_cover_author_info_dim
6440 { \l_@@_supv_str \enskip \l_@@_supv_t_str }
6441 \str_if_empty:NF \l_@@_supv_ii_str
6442 {
6443 \@@_str_max_dim:Nn \l_@@_cover_author_info_dim
6444 { \l_@@_supv_ii_str \enskip \l_@@_supv_ii_t_str }
6445 }
6446 }
6447 \@@_str_max_dim:Nn \l_@@_cover_author_info_dim { \l_@@_degree_str }
6448 \dim_add:Nn \l_@@_cover_author_info_dim { 3em }
6449 % \end{macrocode}
6450 % 排版封面论文信息。
6451 % \begin{macrocode}
6452 \@@_cover_ii:nnnn { 4em } { 作者姓名 }
6453 { \l_@@_cover_author_info_dim }
6454 { \l_@@_author_str }
6455 \bool_if:NTF \l_@@_pro
6456 {
6457 \@@_cover_ii:nnnn { 9em } { 学校导师姓名、职称 }
6458 { \l_@@_cover_author_info_dim }
6459 { \l_@@_supv_str \enskip \l_@@_supv_t_str }
6460 \str_if_empty:NF \l_@@_supv_ii_str
6461 {
6462 \@@_cover_ii:nnnn { 9em } { }
6463 { \l_@@_cover_author_info_dim }
6464 { \l_@@_supv_ii_str \enskip \l_@@_supv_ii_t_str }
6465 }
6466 \@@_cover_ii:nnnn { 9em } { 企业导师姓名、职称 }
6467 { \l_@@_cover_author_info_dim }
6468 { \l_@@_supv_ent_str \enskip \l_@@_supv_ent_t_str }
6469 }
6470 {
6471 \@@_cover_ii:nnnn { 9em } { 指导教师姓名、职称 }
6472 { \l_@@_cover_author_info_dim }
6473 { \l_@@_supv_str \enskip \l_@@_supv_t_str }
6474 \str_if_empty:NF \l_@@_supv_ii_str
6475 {
6476 \@@_cover_ii:nnnn { 9em } { }
6477 { \l_@@_cover_author_info_dim }
6478 { \l_@@_supv_ii_str \enskip \l_@@_supv_ii_t_str }
6479 }
6480 }
6481 \@@_cover_ii:nnnn { 6em } { 申请学位类别 }
6482 { \l_@@_cover_author_info_dim }
6483 { \l_@@_degree_str }
6484 }
6485 % \end{macrocode}
6486 % \end{macro}
6487 % \paragraph{中文题名页}
6488 % \begin{macro}{\@@_zh_title_page_info:}
6489 % \changes{v1.26.7.0}{2022/06/11}{拆分研究生中文题名页底部信息}
6490 % 中文题名页底部信息。
6491 % \begin{macrocode}
6492 \cs_new:Npn \@@_zh_title_page_info:
6493 {
6494 % \end{macrocode}
6495 % \changes{v1.26.6.0}{2022/06/11}{研究生中文题名页底部信息宽度测量}
6496 % 底部信息宽度测量。
6497 % \begin{macrocode}
6498 \rmfamily \zihao { 4 }
6499 \dim_new:N \l_@@_zh_title_page_info_dim
6500 \@@_str_max_dim:Nn \l_@@_zh_title_page_info_dim
6501 { 作者姓名:\l_@@_author_str }
6502 \bool_if:NTF \l_@@_ac
6503 {
6504 \@@_str_max_dim:Nn \l_@@_zh_title_page_info_dim
6505 { 一级学科:\l_@@_major_str }
6506 \@@_str_max_dim:Nn \l_@@_zh_title_page_info_dim
6507 { 二级学科(研究方向):\l_@@_sub_major_str }
6508 }
6509 {
6510 \@@_str_max_dim:Nn \l_@@_zh_title_page_info_dim
6511 { 领\qquad{}域:\l_@@_domain_str }
6512 }
6513 \@@_str_max_dim:Nn \l_@@_zh_title_page_info_dim
6514 { 学位类别:\l_@@_degree_str }
6515 \bool_if:NTF \l_@@_pro
6516 {
6517 \@@_str_max_dim:Nn \l_@@_zh_title_page_info_dim
6518 { 学校导师姓名、职称:\l_@@_supv_str \enskip \l_@@_supv_t_str }
6519 \str_if_empty:NF \l_@@_supv_ii_str
6520 {
6521 \@@_str_max_dim:Nn \l_@@_zh_title_page_info_dim
6522 { 学校导师姓名、职称:\l_@@_supv_ii_str \enskip \l_@@_supv_ii_t_str }
6523 }
6524 \@@_str_max_dim:Nn \l_@@_zh_title_page_info_dim
6525 { 企业导师姓名、职称:\l_@@_supv_ent_str \enskip \l_@@_supv_ent_t_str }
6526 }
6527 {
6528 \@@_str_max_dim:Nn \l_@@_zh_title_page_info_dim
6529 { 指导教师姓名、职称:\l_@@_supv_str \enskip \l_@@_supv_t_str }
6530 \str_if_empty:NF \l_@@_supv_ii_str
6531 {
6532 \@@_str_max_dim:Nn \l_@@_zh_title_page_info_dim
6533 { 指导教师姓名、职称:\l_@@_supv_ii_str \enskip \l_@@_supv_ii_t_str }
6534 }
6535 }
6536 \@@_str_max_dim:Nn \l_@@_zh_title_page_info_dim
6537 { 学\qquad{}院:\l_@@_dept_str }
6538 \@@_str_max_dim:Nn \l_@@_zh_title_page_info_dim
6539 { 提交日期:\@@_zh_submit_date: }
6540 % \end{macrocode}
6541 % \changes{v1.26.6.0}{2022/06/11}{研究生中文题名页底部信息自动居中}
6542 % \changes{v1.26.10.0}{2022/06/17}{修正中文题名页底部信息字体系列}
6543 % 底部信息。
6544 % \begin{macrocode}
6545 \dim_new:N \l_@@_zh_title_page_info_skip_dim
6546 \dim_set_eq:NN \l_@@_zh_title_page_info_skip_dim \linewidth
6547 \dim_sub:Nn \l_@@_zh_title_page_info_skip_dim { \l_@@_zh_title_page_info_dim }
6548 \skip_horizontal:n { \dim_eval:n { \l_@@_zh_title_page_info_skip_dim / 2 } }
6549 \vbox:n
6550 {
6551 \rmfamily \zihao { 4 }
6552 \dim_set:Nn \baselineskip { 32pt }
6553 { \bfseries 作者姓名: } \l_@@_author_str
6554 \bool_if:NTF \l_@@_ac
6555 {
6556 \par
6557 { \bfseries 一级学科: } \l_@@_major_str
6558 \par
6559 { \bfseries 二级学科(研究方向): } \l_@@_sub_major_str
6560 }
6561 {
6562 \par
6563 { \bfseries 领\qquad{}域: } \l_@@_domain_str
6564 }
6565 \par
6566 { \bfseries 学位类别: } \l_@@_degree_str
6567 \bool_if:NTF \l_@@_pro
6568 {
6569 \par
6570 { \bfseries 学校导师姓名、职称: }
6571 \l_@@_supv_str \enskip \l_@@_supv_t_str
6572 \str_if_empty:NF \l_@@_supv_ii_str
6573 {
6574 \par
6575 \phantom { 学校导师姓名、职称: }
6576 \l_@@_supv_ii_str \enskip \l_@@_supv_ii_t_str
6577 }
6578 \par
6579 { \bfseries 企业导师姓名、职称: }
6580 \l_@@_supv_ent_str \enskip \l_@@_supv_ent_t_str
6581 }
6582 {
6583 \par
6584 { \bfseries 指导教师姓名、职称: }
6585 \l_@@_supv_str \enskip \l_@@_supv_t_str
6586 \str_if_empty:NF \l_@@_supv_ii_str
6587 {
6588 \par
6589 \phantom { 指导教师姓名、职称: }
6590 \l_@@_supv_ii_str \enskip \l_@@_supv_ii_t_str
6591 }
6592 }
6593 \par
6594 { \bfseries 学\qquad{}院: } \l_@@_dept_str
6595 \par
6596 { \bfseries 提交日期: } \@@_zh_submit_date:
6597 }
6598 }
6599 % \end{macrocode}
6600 % \end{macro}
6601 % \begin{macro}{\@@_zh_title_page:}
6602 % \changes{v1.17.0.0}{2022/05/28}{中文题名页}
6603 % 中文题名页。
6604 % \begin{macrocode}
6605 \cs_new:Npn \@@_zh_title_page:
6606 {
6607 % \end{macrocode}
6608 % 顶部信息。
6609 % \begin{macrocode}
6610 \vbox:n { }
6611 \skip_vertical:n { -7.5pt }
6612 \dim_set:Nn \baselineskip { 15.6bp }
6613 \vbox:n
6614 {
6615 \mode_leave_vertical:
6616 \@@_cover_iii:nnnn { 4em } { 学校代码 } { 7em } { 10701 }
6617 \hfill
6618 \@@_cover_iii:nnnn { 3em } { 学号 } { 7em } { \l_@@_student_id_str }
6619 }
6620 \vbox:n
6621 {
6622 \mode_leave_vertical:
6623 \@@_cover_iii:nnnn { 4em } { 分类号 } { 7em } { \l_@@_clc_str }
6624 \hfill
6625 \@@_cover_iii:nnnn { 3em } { 密级 } { 7em } { \l_@@_secret_lv_str }
6626 }
6627 % \end{macrocode}
6628 % 学校名称和论文类型。
6629 % \begin{macrocode}
6630 \@@_cover_i:nnnnn { 100pt } { sf } { 1 } { bf } { 西安电子科技大学 }
6631 \@@_cover_i:nnnnn { 85pt } { rm } { -1 } { bf } { \l_@@_gr_type_tl 学位论文 }
6632 % \end{macrocode}
6633 % \changes{v4.4.0.0}{2023/02/03}{研究生中文题名页标题中数学字体加粗}
6634 % \changes{v1.18.1.0}{2022/05/30}{不拆分研究生中文题名页标题}
6635 % 论文标题。
6636 % \begin{macrocode}
6637 \skip_vertical:n { 87.5pt }
6638 \vbox_to_ht:nn { 150pt }
6639 {
6640 \rmfamily \zihao { 2 } \bfseries \@@_bold_math: \centering
6641 \dim_set:Nn \baselineskip { 30pt }
6642 \l_@@_title_tl
6643 }
6644 % \end{macrocode}
6645 % 底部信息。
6646 % \begin{macrocode}
6647 \group_begin:
6648 \@@_zh_title_page_info:
6649 \group_end:
6650 \cleardoublepage
6651 }
6652 % \end{macrocode}
6653 % \end{macro}
6654 % \paragraph{中文题名页}
6655 % \begin{macro}{\@@_en_title_supv:n}
6656 % \changes{v1.18.0.0}{2022/05/29}{英文题名页底部导师姓名拼音盒子}
6657 % 英文题名页底部导师姓名拼音盒子。
6658 % \begin{macrocode}
6659 \dim_new:N \l_@@_supv_dim
6660 \dim_new:N \l_@@_supv_max_dim
6661 \box_new:N \l_@@_supv_box
6662 \cs_new:Npn \@@_en_title_supv:n #1
6663 {
6664 \rmfamily \zihao { 3 }
6665 \dim_zero:N \l_@@_supv_max_dim
6666 \hbox_set:Nn \l_@@_supv_box { \l_@@_supv_en_str }
6667 \dim_set:Nn \l_@@_supv_dim { \box_wd:N \l_@@_supv_box }
6668 \dim_set:Nn \l_@@_supv_max_dim
6669 { \dim_max:nn { \l_@@_supv_dim } { \l_@@_supv_max_dim } }
6670 \str_if_empty:NF \l_@@_supv_ii_str
6671 {
6672 \hbox_set:Nn \l_@@_supv_box { \l_@@_supv_ii_en_str }
6673 \dim_set:Nn \l_@@_supv_dim { \box_wd:N \l_@@_supv_box }
6674 \dim_set:Nn \l_@@_supv_max_dim
6675 { \dim_max:nn { \l_@@_supv_dim } { \l_@@_supv_max_dim } }
6676 }
6677 \bool_if:NT \l_@@_pro
6678 {
6679 \hbox_set:Nn \l_@@_supv_box { \l_@@_supv_ent_en_str }
6680 \dim_set:Nn \l_@@_supv_dim { \box_wd:N \l_@@_supv_box }
6681 \dim_set:Nn \l_@@_supv_max_dim
6682 { \dim_max:nn { \l_@@_supv_dim } { \l_@@_supv_max_dim } }
6683 }
6684 \hbox_to_wd:nn { \l_@@_supv_max_dim } { #1 \hfil } \quad
6685 }
6686 % \end{macrocode}
6687 % \end{macro}
6688 % \begin{macro}{\@@_en_title_supv_t:n}
6689 % \changes{v1.18.0.0}{2022/05/29}{英文题名页底部导师英文职称盒子}
6690 % 英文题名页底部导师英文职称盒子。
6691 % \begin{macrocode}
6692 \dim_new:N \l_@@_supv_t_dim
6693 \dim_new:N \l_@@_supv_t_max_dim
6694 \box_new:N \l_@@_supv_t_box
6695 \cs_new:Npn \@@_en_title_supv_t:n #1
6696 {
6697 \rmfamily \zihao { 3 }
6698 \dim_zero:N \l_@@_supv_t_max_dim
6699 \hbox_set:Nn \l_@@_supv_t_box { \l_@@_supv_t_en_str }
6700 \dim_set:Nn \l_@@_supv_t_dim { \box_wd:N \l_@@_supv_t_box }
6701 \dim_set:Nn \l_@@_supv_t_max_dim
6702 { \dim_max:nn { \l_@@_supv_t_dim } { \l_@@_supv_t_max_dim } }
6703 \str_if_empty:NF \l_@@_supv_ii_str
6704 {
6705 \hbox_set:Nn \l_@@_supv_t_box { \l_@@_supv_ii_t_en_str }
6706 \dim_set:Nn \l_@@_supv_t_dim { \box_wd:N \l_@@_supv_t_box }
6707 \dim_set:Nn \l_@@_supv_t_max_dim
6708 { \dim_max:nn { \l_@@_supv_t_dim } { \l_@@_supv_t_max_dim } }
6709 }
6710 \bool_if:NT \l_@@_pro
6711 {
6712 \hbox_set:Nn \l_@@_supv_t_box { \l_@@_supv_ent_t_en_str }
6713 \dim_set:Nn \l_@@_supv_t_dim { \box_wd:N \l_@@_supv_t_box }
6714 \dim_set:Nn \l_@@_supv_t_max_dim
6715 { \dim_max:nn { \l_@@_supv_t_dim } { \l_@@_supv_t_max_dim } }
6716 }
6717 \hbox_to_wd:nn { \l_@@_supv_t_max_dim } { #1 \hfil } \quad
6718 }
6719 % \end{macrocode}
6720 % \end{macro}
6721 % \begin{macro}{\@@_en_title_page:}
6722 % \changes{v4.4.0.0}{2023/02/03}{研究生英文题名页标题中数学字体加粗}
6723 % \changes{v1.18.0.0}{2022/05/29}{英文题名页}
6724 % \changes{v1.26.1.0}{2022/06/07}{修复作者拼音为空无法编译}
6725 % \changes{v1.26.11.0}{2022/06/17}{修复非专业硕士英文题名页英文一级学科}
6726 % 英文题名页。
6727 % \begin{macrocode}
6728 \cs_new:Npn \@@_en_title_page:
6729 {
6730 \vbox:n { }
6731 \skip_vertical:n { -3.5pt }
6732 \dim_set:Nn \baselineskip { 30pt }
6733 \vbox_to_ht:nn { 170pt }
6734 {
6735 \rmfamily \zihao { 2 } \bfseries \@@_bold_math: \centering
6736 \dim_set:Nn \baselineskip { 30pt }
6737 \l_@@_title_en_str
6738 }
6739 \vbox_to_ht:nn { 360pt }
6740 {
6741 \rmfamily \zihao { 3 } \centering
6742 \dim_set:Nn \baselineskip { 30pt }
6743 A
6744 \bool_if:NTF \l_@@_master { ~thesis~ } { ~dissertation~ }
6745 submitted~to\\
6746 XIDIAN~UNIVERSITY\\
6747 in~partial~fulfillment~of~the~requirements\\
6748 for~the~degree~of
6749 \bool_if:NTF \l_@@_master { ~Master\\ } { ~Doctor~of~Philosophy\\ }
6750 in
6751 \bool_if:NTF \l_@@_pro
6752 { ~\l_@@_degree_en_str\\ }
6753 { ~\l_@@_major_en_str\\ }
6754 }
6755 \vbox:n
6756 {
6757 \rmfamily \zihao { 3 } \centering
6758 \dim_set:Nn \baselineskip { 30pt }
6759 By\\
6760 \l_@@_author_en_str
6761 \str_if_empty:NTF \l_@@_author_en_str
6762 { \skip_vertical:N \baselineskip }
6763 { \\ }
6764 Supervisor:~\@@_en_title_supv:n { \l_@@_supv_en_str }
6765 Title:~\@@_en_title_supv_t:n { \l_@@_supv_t_en_str } \\
6766 \str_if_empty:NF \l_@@_supv_ii_str
6767 {
6768 \phantom { Supervisor:~ } \@@_en_title_supv:n { \l_@@_supv_ii_en_str }
6769 \phantom { Title:~ } \@@_en_title_supv_t:n { \l_@@_supv_ii_t_en_str } \\
6770 }
6771 \bool_if:NT \l_@@_pro
6772 {
6773 Supervisor:~ \@@_en_title_supv:n { \l_@@_supv_ent_en_str }
6774 Title:~ \@@_en_title_supv_t:n { \l_@@_supv_ent_t_en_str } \\
6775 }
6776 \@@_en_submit_date:
6777 }
6778 \cleardoublepage
6779 }
6780 % \end{macrocode}
6781 % \end{macro}
6782 % \paragraph{声明页}
6783 % \begin{macro}
6784 % {
6785 % \@@_statement_scan_sign_uline:n,
6786 % \@@_statement_scan_sign:nnnn
6787 % }
6788 % \changes{v2.2.0.0}{2022/06/23}{声明页签字扫描文件}
6789 % 声明页签字扫描文件。
6790 % \begin{macrocode}
6791 \cs_new:Npn \@@_statement_scan_sign_uline:n #1
6792 {
6793 \@@_uline:n
6794 {
6795 \vbox_to_ht:nn { 17.5pt }
6796 {
6797 \vfil
6798 \hbox_to_wd:nn { 10em }
6799 {
6800 \hfil
6801 \includegraphics [ width = 10em, height = 25pt, keepaspectratio ] { #1 }
6802 \hfil
6803 }
6804 }
6805 }
6806 }
6807 \cs_new:Npn \@@_statement_scan_sign:nnnn #1#2#3#4
6808 {
6809 \vbox_to_ht:nn { 30pt }
6810 {
6811 \vfil
6812 #1:
6813 \@@_statement_scan_sign_uline:n { #2 }
6814 \hfill
6815 #3:
6816 \@@_statement_scan_sign_uline:n { #4 }
6817 }
6818 }
6819 % \end{macrocode}
6820 % \end{macro}
6821 % \begin{macro}{\@@_statement:}
6822 % \changes{v6.2.5.0}{2025/02/17}{修正声明页字距}
6823 % \changes{v6.2.4.0}{2025/02/05}{修正研究生学位论文关于论文使用授权的说明标题后空行}
6824 % \changes{v6.2.0.0}{2025/01/11}{更新研究生学位论文关于论文使用授权的说明}
6825 % \changes{v1.19.0.0}{2022/05/30}{学位论文独创性声明和关于论文使用授权的说明}
6826 % \changes{v2.2.0.0}{2022/06/23}{支持声明页插入签字扫描文件}
6827 % 学位论文独创性声明和关于论文使用授权的说明。
6828 % \begin{macrocode}
6829 \cs_new:Npn \@@_statement:
6830 {
6831 \vbox:n { }
6832 \skip_vertical:n { -8.5pt }
6833 \vbox_to_ht:nn { 59.5pt }
6834 {
6835 \rmfamily \zihao { 4 } \bfseries \centering
6836 \dim_set:Nn \baselineskip { 20pt }
6837 西安电子科技大学\\
6838 学位论文独创性(或创新性)声明
6839 }
6840 \vbox_to_ht:nn { 120pt }
6841 {
6842 \rmfamily \zihao { -4 }
6843 \xeCJKsetup { CJKglue = { \hskip 0pt } }
6844 \dim_set:Nn \parindent { 2em }
6845 \dim_set:Nn \baselineskip { 20pt }
6846 秉承学校严谨的学风和优良的科学道德,本人声明所呈交的论文是我个人在导师指
6847 导下进行的研究工作及取得的研究成果。尽我所知,除了文中特别加以标注和致谢
6848 中所罗列的内容以外,论文中不包含其他人已经发表或撰写过的研究成果;也不包
6849 含为获得西安电子科技大学或其它教育机构的学位或证书而使用过的材料。与我一
6850 同工作的同事对本研究所做的任何贡献均已在论文中作了明确的说明并表示了谢意。
6851 \par
6852 学位论文若有不实之处,本人承担一切法律责任。
6853 \vfil
6854 }
6855 \clist_if_empty:NT \l_@@_statement_sign_clist
6856 { \skip_vertical:n { 20pt } }
6857 \vbox_to_ht:nn { 155pt }
6858 {
6859 \rmfamily \zihao { -4 }
6860 \dim_set:Nn \parindent { 2em }
6861 \dim_set:Nn \baselineskip { 20pt }
6862 \clist_if_empty:NTF \l_@@_statement_sign_clist
6863 {
6864 本人签名:\@@_uline:n { \skip_horizontal:n { 10em } }
6865 \hfill
6866 日\qquad{}期:\@@_uline:n { \skip_horizontal:n { 10em } }
6867 }
6868 {
6869 \@@_statement_scan_sign:nnnn
6870 { 本人签名 } { \clist_item:Nn \l_@@_statement_sign_clist { 1 } }
6871 { 日\qquad{}期 } { \clist_item:Nn \l_@@_statement_sign_clist { 2 } }
6872 }
6873 }
6874 \clist_if_empty:NF \l_@@_statement_sign_clist
6875 { \skip_vertical:n { 20pt } }
6876 \vbox_to_ht:nn { 60pt }
6877 {
6878 \rmfamily \zihao { 4 } \bfseries \centering
6879 \dim_set:Nn \baselineskip { 20pt }
6880 西安电子科技大学\\
6881 关于论文使用授权的说明
6882 }
6883 \vbox_to_ht:nn { 160pt }
6884 {
6885 \rmfamily \zihao { -4 }
6886 \xeCJKsetup { CJKglue = { \hskip 0pt } }
6887 \dim_set:Nn \parindent { 2em }
6888 \dim_set:Nn \baselineskip { 20pt }
6889 本人完全了解西安电子科技大学有关保留和使用学位论文的规定,即:研究生在校
6890 攻读学位期间论文工作的知识产权属于西安电子科技大学。学校有权保留并向国家
6891 有关部门或机构送交学位论文的复印件和电子版,以学术交流为目的赠送和交换学
6892 位论文,允许学位论文被查阅、借阅和复印,将学位论文的全部或部分内容编入有
6893 关数据库进行检索和提供相应阅览服务;允许采用影印、缩印或其它复制手段保存
6894 学位论文。同时本人保证,结合学位论文研究成果完成的论文、发明专利等成果,
6895 署名单位为西安电子科技大学。
6896 \par
6897 本人保证遵守上述规定。
6898 \par
6899 (保密的论文在解密后遵守此规定)
6900 \vfil
6901 }
6902 \clist_if_empty:NT \l_@@_statement_sign_clist
6903 { \skip_vertical:n { 20pt } }
6904 \vbox:n
6905 {
6906 \rmfamily \zihao { -4 }
6907 \dim_set:Nn \parindent { 2em }
6908 \dim_set:Nn \baselineskip { 40pt }
6909 \clist_if_empty:NTF \l_@@_statement_sign_clist
6910 {
6911 本人签名:\@@_uline:n { \skip_horizontal:n { 10em } }
6912 \hfill
6913 导师签名:\@@_uline:n { \skip_horizontal:n { 10em } }
6914 \par
6915 日\qquad{}期:\@@_uline:n { \skip_horizontal:n { 10em } }
6916 \hfill
6917 日\qquad{}期:\@@_uline:n { \skip_horizontal:n { 10em } }
6918 }
6919 {
6920 \@@_statement_scan_sign:nnnn
6921 { 本人签名 } { \clist_item:Nn \l_@@_statement_sign_clist { 3 } }
6922 { 导师签名 } { \clist_item:Nn \l_@@_statement_sign_clist { 5 } }
6923 \par
6924 \@@_statement_scan_sign:nnnn
6925 { 日\qquad{}期 } { \clist_item:Nn \l_@@_statement_sign_clist { 4 } }
6926 { 日\qquad{}期 } { \clist_item:Nn \l_@@_statement_sign_clist { 6 } }
6927 }
6928 }
6929 \cleardoublepage
6930 }
6931 % \end{macrocode}
6932 % \end{macro}
6933 % \paragraph{中英文摘要}
6934 % \begin{macro}{\@@_zh_abstract_keywords:}
6935 % \changes{v1.20.0.0}{2022/05/30}{中文摘要和关键词}
6936 % \changes{v1.28.1.0}{2022/06/18}{添加中文摘要至目录}
6937 % \changes{v1.28.2.0}{2022/06/18}{修正英文语言下中文摘要标题样式}
6938 % 中文摘要和关键词。
6939 % \begin{macrocode}
6940 \cs_new:Npn \@@_zh_abstract_keywords:
6941 {
6942 % \end{macrocode}
6943 % 中文摘要。
6944 % \begin{macrocode}
6945 \@@_n_chapter_head_toc:nn { 摘要 } { 摘 { \quad } 要 }
6946 \@@_lang_switch:nn { } { \@@_add_zh_toc:nn { chapter } { 摘要 } }
6947 \group_begin:
6948 \dim_set:Nn \parindent { 2 \ccwd }
6949 \rmfamily \zihao { -4 }
6950 \dim_set:Nn \baselineskip { 20pt }
6951 \file_if_exist_input:n { \l_@@_abstract_zh_tl }
6952 \group_end:
6953 % \end{macrocode}
6954 % 中文关键词。
6955 % \begin{macrocode}
6956 \group_begin:
6957 \rmfamily \zihao { -4 }
6958 \dim_set:Nn \baselineskip { 20pt }
6959 \skip_vertical:n { 20pt }
6960 \@@_typeout_keywords:nNn
6961 { \textbf { 关键词 } : } { \l_@@_keywords_zh_clist } { , }
6962 \group_end:
6963 \cleardoublepage
6964 }
6965 % \end{macrocode}
6966 % \end{macro}
6967 % \begin{macro}{\@@_en_abstract_keywords:}
6968 % \changes{v1.20.0.0}{2022/05/30}{英文摘要和关键词}
6969 % \changes{v1.28.1.0}{2022/06/18}{添加英文摘要至目录}
6970 % \changes{v1.28.2.0}{2022/06/18}{修正英文摘要标题样式}
6971 % \changes{v1.28.3.0}{2022/06/18}{修正目录中英文摘要标题样式}
6972 % 英文摘要和关键词。
6973 % \begin{macrocode}
6974 \cs_new:Npn \@@_en_abstract_keywords:
6975 {
6976 % \end{macrocode}
6977 % 英文摘要。
6978 % \begin{macrocode}
6979 \@@_n_chapter_head_toc_ii:nn
6980 { \textrm { ABSTRACT } } { \centering \rmfamily \zihao { 3 } \dim_set:Nn \baselineskip { 20pt } }
6981 \@@_lang_switch:nn { } { \@@_add_zh_toc:nn { chapter } { \textrm { ABSTRACT } } }
6982 \group_begin:
6983 \dim_set:Nn \parskip { 20pt }
6984 \rmfamily \zihao { -4 }
6985 \dim_set:Nn \baselineskip { 20pt }
6986 \file_if_exist:nT { \l_@@_abstract_en_tl } { \skip_vertical:n { -20pt } }
6987 \file_if_exist_input:n { \l_@@_abstract_en_tl }
6988 \group_end:
6989 % \end{macrocode}
6990 % 英文关键词。
6991 % \begin{macrocode}
6992 \group_begin:
6993 \rmfamily \zihao { -4 }
6994 \dim_set:Nn \baselineskip { 20pt }
6995 \skip_vertical:n { 20pt }
6996 \@@_typeout_keywords:nNn
6997 { \textbf { Keywords } : } { \l_@@_keywords_en_clist } { ,~ }
6998 \group_end:
6999 \cleardoublepage
7000 }
7001 % \end{macrocode}
7002 % \end{macro}
7003 % \paragraph{图表索引}
7004 % \begin{macro}{\@@_loft_label_num_width:nN}
7005 % \changes{v1.21.0.0}{2022/06/01}{计算图表索引编号标签最大宽度}
7006 % 计算图表索引编号标签最大宽度。
7007 % \begin{macrocode}
7008 \cs_new:Npn \@@_loft_label_num_width:nN #1#2
7009 {
7010 % \end{macrocode}
7011 % 读取索引文件。
7012 % \begin{macrocode}
7013 \tl_clear_new:N \l_@@_loft_tl
7014 \file_get:nnN
7015 { \jobname.#1 }
7016 { \let\do\@makeother \dospecials }
7017 \l_@@_loft_tl
7018 % \end{macrocode}
7019 % 使用正则表达式匹配索引编号。
7020 % \begin{macrocode}
7021 \seq_clear_new:N \l_@@_loft_label_num_seq
7022 \cs_generate_variant:Nn \regex_extract_all:nnN { nVN }
7023 \str_if_eq:nnTF { #1 } { lof }
7024 {
7025 \regex_extract_all:nVN
7026 { \\contentsline\ \{figure\}\{\\numberline\ \{\K[0-9A-Z\.]+ }
7027 \l_@@_loft_tl \l_@@_loft_label_num_seq
7028 }
7029 {
7030 \regex_extract_all:nVN
7031 { \\contentsline\ \{table\}\{\\numberline\ \{\K[0-9A-Z\.]+ }
7032 \l_@@_loft_tl \l_@@_loft_label_num_seq
7033 }
7034 % \end{macrocode}
7035 % 计算所有索引编号的最大宽度。
7036 % \begin{macrocode}
7037 \dim_zero_new:N \l_@@_loft_label_num_dim
7038 \seq_map_inline:Nn \l_@@_loft_label_num_seq
7039 {
7040 \@@_get_text_width:Nn \l_@@_loft_label_num_dim { ##1 }
7041 \dim_set:Nn #2 { \dim_max:nn { \l_@@_loft_label_num_dim } { #2 } }
7042 }
7043 }
7044 % \end{macrocode}
7045 % \end{macro}
7046 % \begin{macro}{\@@_list_of_figure:}
7047 % \changes{v1.21.0.0}{2022/05/31}{插图索引}
7048 % \changes{v1.28.1.0}{2022/06/18}{添加插图索引至目录}
7049 % \changes{v1.29.3.0}{2022/06/19}{修正插图索引字号}
7050 % 插图索引。
7051 % \begin{macrocode}
7052 \cs_new:Npn \@@_list_of_figure:
7053 {
7054 \@@_n_chapter_head_toc:n
7055 { \@@_lang_switch:nn { 插图索引 } { List~of~Figures } }
7056 \@@_lang_switch:nn { } { \@@_add_zh_toc:nn { chapter } { 插图索引 } }
7057 \group_begin:
7058 \addtocontents { lof } { \vspace { 10pt } }
7059 \renewcommand { \addvspace } [1] { }
7060 % \end{macrocode}
7061 % 配置文本标签及宽度。
7062 % \begin{macrocode}
7063 \tl_set:Nn \cftfigpresnum { \figurename \space }
7064 \dim_zero_new:N \l_@@_lof_label_dim
7065 \@@_get_text_width:NV \l_@@_lof_label_dim \cftfigpresnum
7066 \dim_set:Nn \cftfignumwidth { \l_@@_lof_label_dim }
7067 % \end{macrocode}
7068 % 配置索引编号标签宽度。
7069 % \begin{macrocode}
7070 \dim_new:N \l_@@_lof_label_num_max_dim
7071 \@@_loft_label_num_width:nN { lof } \l_@@_lof_label_num_max_dim
7072 \dim_add:Nn \cftfignumwidth { \l_@@_lof_label_num_max_dim }
7073 \dim_add:Nn \cftfignumwidth { .75em }
7074 \dim_set:Nn \cftfigindent { 0pt }
7075 % \end{macrocode}
7076 % 排版索引表。
7077 % \begin{macrocode}
7078 \rmfamily \zihao { -4 } \dim_set:Nn \baselineskip { 20pt }
7079 \@starttoc { lof }
7080 \group_end:
7081 \cleardoublepage
7082 }
7083 % \end{macrocode}
7084 % \end{macro}
7085 % \begin{macro}{\@@_list_of_table:}
7086 % \changes{v1.21.0.0}{2022/05/31}{表格索引}
7087 % \changes{v1.28.1.0}{2022/06/18}{添加表格索引至目录}
7088 % \changes{v1.29.3.0}{2022/06/19}{修正表格索引字号}
7089 % 表格索引。
7090 % \begin{macrocode}
7091 \cs_new:Npn \@@_list_of_table:
7092 {
7093 \@@_n_chapter_head_toc:n
7094 { \@@_lang_switch:nn { 表格索引 } { List~of~Tables } }
7095 \@@_lang_switch:nn { } { \@@_add_zh_toc:nn { chapter } { 表格索引 } }
7096 \group_begin:
7097 \addtocontents { lot } { \vspace { 10pt } }
7098 \renewcommand { \addvspace } [1] { }
7099 % \end{macrocode}
7100 % 配置文本标签及宽度。
7101 % \begin{macrocode}
7102 \tl_set:Nn \cfttabpresnum { \tablename \space }
7103 \dim_zero_new:N \l_@@_lot_label_dim
7104 \@@_get_text_width:NV \l_@@_lot_label_dim \cfttabpresnum
7105 \dim_set:Nn \cfttabnumwidth { \l_@@_lot_label_dim }
7106 % \end{macrocode}
7107 % 配置索引编号标签宽度。
7108 % \begin{macrocode}
7109 \dim_new:N \l_@@_lot_label_num_max_dim
7110 \@@_loft_label_num_width:nN { lot } \l_@@_lot_label_num_max_dim
7111 \dim_add:Nn \cfttabnumwidth { \l_@@_lot_label_num_max_dim }
7112 \dim_add:Nn \cfttabnumwidth { .75em }
7113 \dim_set:Nn \cfttabindent { 0pt }
7114 % \end{macrocode}
7115 % 排版索引表。
7116 % \begin{macrocode}
7117 \rmfamily \zihao { -4 } \dim_set:Nn \baselineskip { 20pt }
7118 \@starttoc { lot }
7119 \group_end:
7120 \cleardoublepage
7121 }
7122 % \end{macrocode}
7123 % \end{macro}
7124 % \paragraph{对照表}
7125 % \begin{macro}{\UseTblrLibrary,\NewTblrTheme}
7126 % \changes{v1.22.0.0}{2022/06/05}{对照表样式}
7127 % 对照表样式。
7128 % \begin{macrocode}
7129 \ctex_at_end_preamble:n
7130 {
7131 \bool_new:N \l_@@_load_tabularray_bool
7132 \bool_if:NF \l_@@_customize_los_bool
7133 { \bool_set_true:N \l_@@_load_tabularray_bool }
7134 \bool_if:NF \l_@@_customize_loa_bool
7135 { \bool_set_true:N \l_@@_load_tabularray_bool }
7136 \bool_if:NT \l_@@_load_tabularray_bool
7137 {
7138 \RequirePackage { tabularray }
7139 \UseTblrLibrary { functional }
7140 \NewTblrTheme { losloatheme }
7141 {
7142 \DefTblrTemplate { caption-tag } { default } { }
7143 \DefTblrTemplate { caption-sep } { default } { }
7144 \DefTblrTemplate { caption-text } { default } { }
7145 \DefTblrTemplate { conthead-text } { default } { }
7146 \DefTblrTemplate { contfoot-text } { default } { }
7147 }
7148 }
7149 \cs_generate_variant:Nn \__tblr_parse_colrow_spec:nn { nV }
7150 }
7151 % \end{macrocode}
7152 % \end{macro}
7153 % \begin{variable}{\l_@@_losa_add_skip_dim}
7154 % \changes{v2.10.2.0}{2022/06/28}{对照表行间距补偿值}
7155 % 对照表行间距补偿值:
7156 % $20pt-12bp\times(72.27/72)pt/bp\times1.2\times1.3=1.2098pt$。
7157 % \begin{macrocode}
7158 \dim_new:N \l_@@_losa_add_skip_dim
7159 \dim_set:Nn \l_@@_losa_add_skip_dim { 1.2098pt }
7160 % \end{macrocode}
7161 % \end{variable}
7162 % \begin{macro}{\@@_symbols_list:}
7163 % \changes{v1.22.0.0}{2022/06/05}{符号对照表}
7164 % \changes{v1.26.2.0}{2022/06/09}{修复符号对照表列格式解析错误}
7165 % \changes{v1.26.3.0}{2022/06/09}{修复符号对照表文件导入接口}
7166 % \changes{v1.26.5.0}{2022/06/10}{修复符号对照表空文件标题行错误}
7167 % \changes{v1.28.1.0}{2022/06/18}{添加符号对照表至目录}
7168 % \changes{v1.29.1.0}{2022/06/19}{修复符号对照表引起的章节段前段后间距错误}
7169 % \changes{v2.2.1.0}{2022/06/23}{移除表格索引中生成的符号对照表}
7170 % \changes{v2.10.2.0}{2022/06/28}{修正符号对照表行内行间距}
7171 % 符号对照表。
7172 % \begin{macrocode}
7173 \cs_new:Npn \@@_symbols_list:
7174 {
7175 \@@_n_chapter_head_toc:n
7176 { \@@_lang_switch:nn { 符号对照表 } { List~of~Symbols } }
7177 \@@_lang_switch:nn { } { \@@_add_zh_toc:nn { chapter } { 符号对照表 } }
7178 % \end{macrocode}
7179 % \changes{v6.2.6.0}{2025/03/18}{修正自定义符号对照表字号}
7180 % 是否完全自定义符号对照表。
7181 % \begin{macrocode}
7182 \bool_if:NTF \l_@@_customize_los_bool
7183 {
7184 \group_begin:
7185 \zihao { -4 }
7186 \file_if_exist_input:n { \l_@@_los_str }
7187 \group_end:
7188 }
7189 {
7190 % \end{macrocode}
7191 % 配置符号对照表标题行。
7192 % \begin{macrocode}
7193 \tl_new:N \l_@@_los_head_tl
7194 \@@_lang_switch:nn
7195 { \tl_set:Nn \l_@@_los_head_tl { 符号 & 符号名称 \\ } }
7196 { \tl_set:Nn \l_@@_los_head_tl { Notation & Description \\ } }
7197 % \end{macrocode}
7198 % 是否每页均显示符号对照表标题行。
7199 % \begin{macrocode}
7200 \tl_new:N \l_@@_los_rowhead_tl
7201 \bool_if:NTF \l_@@_title_row_los_bool
7202 { \tl_set:Nn \l_@@_los_rowhead_tl { 1 } }
7203 { \tl_set:Nn \l_@@_los_rowhead_tl { 0 } }
7204 % \end{macrocode}
7205 % 使用\envx{longtblr}环境排版符号对照表。
7206 % \begin{macrocode}
7207 \tl_new:N \l_@@_los_begin_tblr_tl
7208 \tl_set:Nx \l_@@_los_begin_tblr_tl
7209 {
7210 \exp_not:n
7211 {
7212 \begin { longtblr }
7213 [
7214 evaluate = \fileIfExistInput,
7215 expand = \l_@@_los_head_tl,
7216 entry = none,
7217 theme = losloatheme
7218 ]
7219 }
7220 {
7221 colspec = { \exp_not:V \l_@@_colspec_los_tl },
7222 \exp_not:n
7223 {
7224 rowhead = \int_compare:nNnTF
7225 { \value { rowcount } } > { 1 }
7226 { \l_@@_los_rowhead_tl } { 0 },
7227 cells = {
7228 font = \rmfamily \zihao { -4 }
7229 \dim_add:Nn \baselineskip { \l_@@_losa_add_skip_dim }
7230 },
7231 abovesep = 0pt,
7232 belowsep = \l_@@_losa_add_skip_dim
7233 }
7234 }
7235 }
7236 \tl_use:N \l_@@_los_begin_tblr_tl
7237 \l_@@_los_head_tl
7238 \fileIfExistInput { \l_@@_los_str }
7239 \end { longtblr }
7240 }
7241 }
7242 % \end{macrocode}
7243 % \end{macro}
7244 % \begin{macro}{\@@_abbreviations_list:}
7245 % \changes{v1.22.0.0}{2022/06/05}{缩略语对照表}
7246 % \changes{v1.26.2.0}{2022/06/09}{修复缩略语对照表列格式解析错误}
7247 % \changes{v1.26.3.0}{2022/06/09}{修复缩略语对照表文件导入接口}
7248 % \changes{v1.26.5.0}{2022/06/10}{修复缩略语对照表空文件标题行错误}
7249 % \changes{v1.28.1.0}{2022/06/18}{添加缩略语对照表至目录}
7250 % \changes{v1.29.1.0}{2022/06/19}{修复缩略语对照表引起的章节段前段后间距错误}
7251 % \changes{v2.2.1.0}{2022/06/23}{移除表格索引中生成的缩略语对照表}
7252 % \changes{v2.10.2.0}{2022/06/28}{修正缩略语对照表行内行间距}
7253 % 缩略语对照表。
7254 % \begin{macrocode}
7255 \cs_new:Npn \@@_abbreviations_list:
7256 {
7257 \@@_n_chapter_head_toc:n
7258 { \@@_lang_switch:nn { 缩略语对照表 } { List~of~Abbreviations } }
7259 \@@_lang_switch:nn { } { \@@_add_zh_toc:nn { chapter } { 缩略语对照表 } }
7260 % \end{macrocode}
7261 % \changes{v6.2.6.0}{2025/03/18}{修正自定义缩略语对照表字号}
7262 % 是否完全自定义缩略语对照表。
7263 % \begin{macrocode}
7264 \bool_if:NTF \l_@@_customize_loa_bool
7265 {
7266 \group_begin:
7267 \zihao { -4 }
7268 \file_if_exist_input:n { \l_@@_loa_str }
7269 \group_end:
7270 }
7271 {
7272 % \end{macrocode}
7273 % 配置缩略语对照表标题行。
7274 % \begin{macrocode}
7275 \tl_new:N \l_@@_loa_head_tl
7276 \@@_lang_switch:nn
7277 {
7278 \tl_set:Nn \l_@@_loa_head_tl
7279 { 缩略语 & 英文全称 & 中文对照 \\ }
7280 }
7281 {
7282 \tl_set:Nn \l_@@_loa_head_tl
7283 { Abbreviation & English~Full~Name & Chinese~Full~Name \\ }
7284 }
7285 % \end{macrocode}
7286 % 是否每页均显示缩略语对照表标题行。
7287 % \begin{macrocode}
7288 \tl_new:N \l_@@_loa_rowhead_tl
7289 \bool_if:NTF \l_@@_title_row_loa_bool
7290 { \tl_set:Nn \l_@@_loa_rowhead_tl { 1 } }
7291 { \tl_set:Nn \l_@@_loa_rowhead_tl { 0 } }
7292 % \end{macrocode}
7293 % 使用\envx{longtblr}环境排版缩略语对照表。
7294 % \begin{macrocode}
7295 \tl_new:N \l_@@_loa_begin_tblr_tl
7296 \tl_set:Nx \l_@@_loa_begin_tblr_tl
7297 {
7298 \exp_not:n
7299 {
7300 \begin { longtblr }
7301 [
7302 evaluate = \fileIfExistInput,
7303 expand = \l_@@_loa_head_tl,
7304 entry = none,
7305 theme = losloatheme
7306 ]
7307 }
7308 {
7309 colspec = { \exp_not:V \l_@@_colspec_loa_tl },
7310 \exp_not:n
7311 {
7312 rowhead = \int_compare:nNnTF
7313 { \value { rowcount } } > { 1 }
7314 { \l_@@_loa_rowhead_tl } { 0 },
7315 cells = {
7316 font = \rmfamily \zihao { -4 }
7317 \dim_add:Nn \baselineskip { \l_@@_losa_add_skip_dim }
7318 },
7319 abovesep = 0pt,
7320 belowsep = \l_@@_losa_add_skip_dim
7321 }
7322 }
7323 }
7324 \tl_use:N \l_@@_loa_begin_tblr_tl
7325 \l_@@_loa_head_tl
7326 \fileIfExistInput { \l_@@_loa_str }
7327 \end { longtblr }
7328 }
7329 }
7330 % \end{macrocode}
7331 % \end{macro}
7332 % \begin{macro}{\@@_add_zh_toc:nn}
7333 % \changes{v4.4.0.0}{2023/02/03}{中文目录一级标题数学字体加粗}
7334 % \changes{v1.30.0.0}{2022/06/20}{添加章节至中文目录}
7335 % \begin{macrocode}
7336 \cs_new:Npn \@@_add_zh_toc:nn #1#2
7337 {
7338 \str_if_eq:NNTF { #1 } { chapter }
7339 {
7340 \phantomsection \addcontentsline { zh.toc }
7341 { #1 } { \@@_sf_family: \@@_bold_math: #2 }
7342 }
7343 { \phantomsection \addcontentsline { zh.toc } { #1 } { #2 } }
7344 }
7345 % \end{macrocode}
7346 % \end{macro}
7347 % \paragraph{重定义\tn{frontmatter}}
7348 % \begin{macro}{\frontmatter,\@@_frontmatter:}
7349 % \changes{v1.5.0.0}{2022/05/01}{设置封面页边距}
7350 % \changes{v1.6.0.0}{2022/05/02}{设置页脚页码}
7351 % \changes{v1.16.0.0}{2022/05/22}{绘制研究生封面}
7352 % \changes{v2.7.0.0}{2022/06/26}{研究生学位论文支持移除前言部分页面}
7353 % 排版前言部分。
7354 % \begin{macrocode}
7355 \RenewDocumentCommand { \frontmatter } { } { }
7356 \cs_new:Npn \@@_frontmatter:
7357 {
7358 \loadgeometry { cover }
7359 \pagestyle { empty }
7360 \dim_set:Nn \parindent { 0pt }
7361 \dim_set:Nn \baselineskip { 20pt }
7362 \bool_if:NF \l_@@_rm_cover_bool
7363 {
7364 % \end{macrocode}
7365 % \changes{v4.4.0.0}{2023/02/03}{研究生封面标题中数学字体加粗}
7366 % \changes{v1.18.1.0}{2022/05/30}{不拆分研究生封面标题}
7367 % 封面标题。
7368 % \begin{macrocode}
7369 \vbox:n { }
7370 \skip_vertical:n { 435pt }
7371 \vbox_to_ht:nn { 120pt }
7372 {
7373 \rmfamily \zihao { 2 } \bfseries \@@_bold_math: \centering
7374 \dim_set:Nn \baselineskip { 30pt }
7375 \l_@@_title_tl
7376 }
7377 % \end{macrocode}
7378 % 封面底部作者信息。
7379 % \begin{macrocode}
7380 \@@_cover_author_info:
7381 \cleardoublepage
7382 }
7383 % \end{macrocode}
7384 % 中英文题名页。
7385 % \begin{macrocode}
7386 \bool_if:NF \l_@@_rm_title_page_bool
7387 {
7388 \@@_lang_switch:nn
7389 { \@@_zh_title_page: \@@_en_title_page: }
7390 { \@@_en_title_page: \@@_zh_title_page: }
7391 }
7392 % \end{macrocode}
7393 % 声明页。
7394 % \begin{macrocode}
7395 \bool_if:NF \l_@@_rm_statement_bool
7396 {
7397 \file_if_exist:nTF { \l_@@_statement_scan_str }
7398 {
7399 \loadgeometry { nomargin }
7400 \vbox_to_ht:nn { \textheight }
7401 {
7402 \vfil
7403 \centering
7404 \includegraphics
7405 [ width = \textwidth, height = \textheight, keepaspectratio ]
7406 { \l_@@_statement_scan_str }
7407 \vfil
7408 }
7409 \cleardoublepage
7410 }
7411 { \@@_statement: }
7412 }
7413 % \end{macrocode}
7414 % 更改页面样式。
7415 % \begin{macrocode}
7416 \@@_load_main_geometry:
7417 \pagestyle { front }
7418 \pagenumbering { Roman }
7419 \dim_set:Nn \baselineskip { 20pt }
7420 % \end{macrocode}
7421 % 中英文摘要。
7422 % \begin{macrocode}
7423 \bool_if:NF \l_@@_rm_abstract_bool
7424 {
7425 \@@_lang_switch:nn
7426 { \@@_zh_abstract_keywords: \@@_en_abstract_keywords: }
7427 { \@@_en_abstract_keywords: \@@_zh_abstract_keywords: }
7428 }
7429 % \end{macrocode}
7430 % 图表索引。
7431 % \begin{macrocode}
7432 \bool_if:NF \l_@@_rm_lof_bool
7433 { \@@_list_of_figure: }
7434 \bool_if:NF \l_@@_rm_lot_bool
7435 { \@@_list_of_table: }
7436 % \end{macrocode}
7437 % 符号对照表和缩略语对照表。
7438 % \begin{macrocode}
7439 \bool_if:NF \l_@@_rm_los_bool
7440 { \@@_symbols_list: }
7441 \bool_if:NF \l_@@_rm_loa_bool
7442 { \@@_abbreviations_list: }
7443 % \end{macrocode}
7444 % \changes{v1.23.0.0}{2022/06/05}{研究生学位论文目录}
7445 % \changes{v1.28.0.0}{2022/06/18}{设置研究生学位论文目录深度}
7446 % 目录。
7447 % \begin{macrocode}
7448 \bool_if:NF \l_@@_rm_toc_bool
7449 {
7450 \setcounter { tocdepth } { 2 }
7451 \@@_n_chapter_head:nn
7452 { \@@_lang_switch:nn { 目录 } { Contents } }
7453 { \@@_lang_switch:nn { 目 { \quad } 录 } { Contents } }
7454 \@starttoc { toc }
7455 \cleardoublepage
7456 % \end{macrocode}
7457 % \changes{v1.30.0.0}{2022/06/20}{英文研究生学位论文中文目录}
7458 % 英文研究生学位论文中文目录。
7459 % \begin{macrocode}
7460 \@@_lang_switch:nn { }
7461 {
7462 \setcounter { tocdepth } { 2 }
7463 \@@_n_chapter_head:nn { 目录 } { \@@_sf_family: 目 { \quad } 录 }
7464 \@starttoc { zh.toc }
7465 \cleardoublepage
7466 }
7467 }
7468 }
7469 % \end{macrocode}
7470 % \end{macro}
7471 % \begin{macrocode}
7472 %</xdupgthesis>
7473 %<*xduugthesis>
7474 % \end{macrocode}
7475 % \subsection{正文部分}
7476 % \subsubsection{本科生}
7477 % \begin{macro}{\mainmatter,\@@_mainmatter:}
7478 % \changes{v0.8.0.0}{2022/04/12}{支持对称页边距}
7479 % 排版正文部分。
7480 % \begin{macrocode}
7481 \RenewDocumentCommand { \mainmatter } { } { }
7482 \cs_new:Npn \@@_mainmatter:
7483 {
7484 \@@_load_main_geometry:
7485 \pagestyle { plain }
7486 \pagenumbering { arabic }
7487 \dim_set:Nn \parindent { 2 \ccwd }
7488 \rmfamily \zihao { -4 }
7489 }
7490 % \end{macrocode}
7491 % \end{macro}
7492 % \begin{macrocode}
7493 %</xduugthesis>
7494 %<*xdupgthesis>
7495 % \end{macrocode}
7496 % \subsubsection{研究生}
7497 % \begin{macro}{\mainmatter,\@@_mainmatter:}
7498 % \changes{v1.5.0.0}{2022/05/01}{设置正文页边距}
7499 % \changes{v1.6.0.0}{2022/05/02}{设置页脚页码}
7500 % \changes{v1.23.1.0}{2022/06/05}{设置正文字号和行间距}
7501 % \changes{v2.10.3.0}{2022/06/28}{修正公式与正文间距}
7502 % 排版正文部分。
7503 % \begin{macrocode}
7504 \RenewDocumentCommand { \mainmatter } { } { }
7505 \cs_new:Npn \@@_mainmatter:
7506 {
7507 \@@_load_main_geometry:
7508 \pagestyle { plain }
7509 \pagenumbering { arabic }
7510 \dim_set:Nn \parindent { 2 \ccwd }
7511 \rmfamily \zihao { -4 }
7512 \dim_set:Nn \baselineskip { 20pt }
7513 % \end{macrocode}
7514 % \changes{v4.2.0.0}{2023/01/28}{修改英文研究生学位论文标题命令参数格式}
7515 % \changes{v1.30.0.0}{2022/06/20}{英文研究生学位论文目录中正文一二三级中英双语标题}
7516 % 英文研究生学位论文目录中正文一二三级中英双语标题。
7517 % \begin{macrocode}
7518 \@@_lang_switch:nn { }
7519 {
7520 \cs_new_eq:NN \@@_org_chapter:n \chapter
7521 \RenewDocumentCommand { \chapter } { m o }
7522 {
7523 \@@_org_chapter:n { ##1 }
7524 \@@_add_zh_toc:nn { chapter }
7525 {
7526 \numberline { 第 \chinese { chapter } 章 \hspace { .3em } }
7527 \IfNoValueTF { ##2 } { ##1 } { ##2 }
7528 }
7529 }
7530 \cs_new_eq:NN \@@_org_section:n \section
7531 \RenewDocumentCommand { \section } { m o }
7532 {
7533 \@@_org_section:n { ##1 }
7534 \@@_add_zh_toc:nn { section }
7535 { \numberline { \thesection } \IfNoValueTF { ##2 } { ##1 } { ##2 } }
7536 }
7537 \cs_new_eq:NN \@@_org_subsection:n \subsection
7538 \RenewDocumentCommand { \subsection } { m o }
7539 {
7540 \@@_org_subsection:n { ##1 }
7541 \@@_add_zh_toc:nn { subsection }
7542 { \numberline { \thesubsection } \IfNoValueTF { ##2 } { ##1 } { ##2 } }
7543 }
7544 }
7545 % \end{macrocode}
7546 % 修正公式与正文间距。
7547 % \begin{macrocode}
7548 \dim_set:Nn \abovedisplayskip { 12bp }
7549 \dim_set:Nn \belowdisplayskip { 12bp }
7550 \dim_set:Nn \abovedisplayshortskip { 0bp }
7551 \dim_set:Nn \belowdisplayshortskip { 12bp }
7552 }
7553 % \end{macrocode}
7554 % \end{macro}
7555 % \begin{macrocode}
7556 %</xdupgthesis>
7557 %<*xduugthesis>
7558 % \end{macrocode}
7559 % \subsection{后记部分}
7560 % \subsubsection{本科生}
7561 % \begin{macro}{\backmatter,\@@_backmatter:}
7562 % 排版后记部分。
7563 % \begin{macrocode}
7564 \RenewDocumentCommand { \backmatter } { } { }
7565 \cs_new:Npn \@@_backmatter:
7566 {
7567 % \end{macrocode}
7568 % \changes{v1.1.4.0}{2022/04/16}{为致谢章节标题增加间距}
7569 % 致谢。
7570 % \begin{macrocode}
7571 \@@_n_chapter_head_toc:nn
7572 { \@@_lang_switch:nn { 致谢 } { Acknowledgements } }
7573 { \@@_lang_switch:nn { 致 { \quad } 谢 } { Acknowledgements } }
7574 \group_begin:
7575 \dim_set:Nn \parindent { 2 \ccwd }
7576 \rmfamily \zihao { -4 }
7577 \file_if_exist_input:n { \l_@@_ack_tl }
7578 \group_end:
7579 % \end{macrocode}
7580 % 参考文献。
7581 % \changes{v0.2.1.0}{2022/04/04}{参考文献添加至目录}
7582 % \changes{v0.5.2.0}{2022/04/07}{修正参考文献列表字体字号}
7583 % \changes{v1.3.1.0}{2022/04/21}{修复参考文献列表字体字号}
7584 % \changes{v1.4.1.0}{2022/04/27}{修复bibtex产生的多余参考文献列表章节}
7585 % \changes{v2.2.2.0}{2022/06/24}{修正本科生毕业设计参考文献行间距}
7586 % \changes{v2.2.3.0}{2022/06/24}{修改本科生毕业设计参考文献\bibtex{}字体字号设置方式}
7587 % \changes{v2.2.5.0}{2022/06/24}{修改本科生毕业设计参考文献标签与文献内容的间距}
7588 % \changes{v2.6.1.0}{2022/06/25}{修正本科生毕业设计参考文献斜杠符号字体}
7589 % \begin{macrocode}
7590 \cs_set:Npn \bibname { \@@_lang_switch:nn { 参考文献 } { Bibliography } }
7591 \@@_n_chapter_head_toc:n { \bibname }
7592 \group_begin:
7593 \tl_if_eq:NnTF \l_@@_bib_tool_tl { bibtex }
7594 {
7595 \dim_set:Nn \labelsep { 1ex }
7596 \bibliography { \l_@@_bib_file_clist }
7597 }
7598 { \printbibliography }
7599 \group_end:
7600 % \end{macrocode}
7601 % 本科生毕业设计附录。
7602 % \begin{macrocode}
7603 \@@_appendix:
7604 }
7605 % \end{macrocode}
7606 % \end{macro}
7607 % \begin{macrocode}
7608 %</xduugthesis>
7609 %<*xdupgthesis>
7610 % \end{macrocode}
7611 % \subsubsection{研究生}
7612 % \begin{macro}{\RequirePackage,\newenvironment}
7613 % \changes{v1.26.0.0}{2022/06/07}{作者简介样式}
7614 % 作者简介样式。
7615 % \begin{macrocode}
7616 \ctex_at_end_preamble:n
7617 {
7618 % \end{macrocode}
7619 % 计算列表和表格缩进距离。
7620 % \begin{macrocode}
7621 \dim_new:N \l_@@_bio_indent_dim
7622 \box_new:N \l_@@_bio_indent_box
7623 \hbox_set:Nn \l_@@_bio_indent_box { \rmfamily \zihao { -3 } \bfseries 1. \quad}
7624 \dim_set:Nn \l_@@_bio_indent_dim { \box_wd:N \l_@@_bio_indent_box }
7625 % \end{macrocode}
7626 % 定义教育背景表格环境。
7627 % \begin{macrocode}
7628 \bool_if:NF \l_@@_cust_edubg_bool
7629 {
7630 \RequirePackage { tabularray }
7631 \newenvironment { edubg }
7632 {
7633 \dim_set:Nn \parindent { 0pt }
7634 \begin { tblr }
7635 {
7636 colspec = { @{ \skip_horizontal:N \l_@@_bio_indent_dim } lX @{ } },
7637 rows = { font = \zihao { -4 } \dim_set:Nn \baselineskip { 20pt } }
7638 }
7639 }
7640 {
7641 \end { tblr }
7642 \dim_set:Nn \parindent { 2 \ccwd }
7643 }
7644 }
7645 % \end{macrocode}
7646 % 定义研究成果列表。
7647 % \begin{macrocode}
7648 \bool_if:NF \l_@@_cust_resresult_bool
7649 {
7650 \RequirePackage { enumitem }
7651 \SetEnumitemKey { resresult }
7652 {
7653 label = {[}\arabic*{]},
7654 left = \l_@@_bio_indent_dim,
7655 align = right,
7656 parsep = 0pt,
7657 itemsep = 0pt,
7658 topsep = 0pt
7659 }
7660 \newenvironment { resresult }
7661 { \begin { enumerate } [ resresult ] }
7662 { \end { enumerate } }
7663 }
7664 }
7665 % \end{macrocode}
7666 % \end{macro}
7667 % \changes{v2.7.0.0}{2022/06/26}{研究生学位论文支持移除后记部分页面}
7668 % \begin{macro}{\backmatter,\@@_backmatter:}
7669 % 排版后记部分。
7670 % \begin{macrocode}
7671 \RenewDocumentCommand { \backmatter } { } { }
7672 \cs_new:Npn \@@_backmatter:
7673 {
7674 % \end{macrocode}
7675 % 研究生学位论文附录。
7676 % \begin{macrocode}
7677 \@@_appendix:
7678 % \end{macrocode}
7679 % \changes{v1.30.0.0}{2022/06/20}{恢复英文研究生学位论文后记一二三级标题命令}
7680 % 恢复英文研究生学位论文后记一二三级标题命令。
7681 % \begin{macrocode}
7682 \@@_lang_switch:nn { }
7683 {
7684 \cs_set_eq:NN \chapter \@@_org_chapter:n
7685 \cs_set_eq:NN \section \@@_org_section:n
7686 \cs_set_eq:NN \subsection \@@_org_subsection:n
7687 }
7688 % \end{macrocode}
7689 % \changes{v1.25.0.0}{2022/06/05}{研究生学位论文参考文献}
7690 % \changes{v2.2.2.0}{2022/06/24}{修正研究生学位论文参考文献行间距}
7691 % \changes{v2.2.3.0}{2022/06/24}{修改研究生学位论文参考文献\bibtex{}字体字号设置方式}
7692 % \changes{v2.2.5.0}{2022/06/24}{修改研究生学位论文参考文献标签与文献内容的间距}
7693 % \changes{v2.6.1.0}{2022/06/25}{修正研究生学位论文参考文献斜杠符号字体}
7694 % 参考文献。
7695 % \begin{macrocode}
7696 \bool_if:NF \l_@@_rm_ref_bool
7697 {
7698 \cs_set:Npn \bibname { \@@_lang_switch:nn { 参考文献 } { Bibliography } }
7699 \@@_n_chapter_head_toc:n { \bibname }
7700 \@@_lang_switch:nn { } { \@@_add_zh_toc:nn { chapter } { 参考文献 } }
7701 }
7702 \group_begin:
7703 \tl_if_eq:NnTF \l_@@_bib_tool_tl { bibtex }
7704 {
7705 \bool_if:NTF \l_@@_rm_ref_bool
7706 { \nobibliography { \l_@@_bib_file_clist } }
7707 {
7708 \dim_set:Nn \labelsep { 1ex }
7709 \bibliography { \l_@@_bib_file_clist }
7710 }
7711 }
7712 {
7713 \bool_if:NF \l_@@_rm_ref_bool
7714 { \printbibliography }
7715 }
7716 \group_end:
7717 % \end{macrocode}
7718 % \changes{v6.2.2.0}{2025/01/05}{修复研究生学位论文致谢二三级标题序号}
7719 % \changes{v1.24.0.0}{2022/06/05}{研究生学位论文致谢}
7720 % 致谢。
7721 % \begin{macrocode}
7722 \bool_if:NF \l_@@_rm_ack_bool
7723 {
7724 \@@_n_chapter_head_toc:nn
7725 { \@@_lang_switch:nn { 致谢 } { Acknowledgements } }
7726 { \@@_lang_switch:nn { 致 { \quad } 谢 } { Acknowledgements } }
7727 \@@_lang_switch:nn { } { \@@_add_zh_toc:nn { chapter } { 致谢 } }
7728 \group_begin:
7729 \dim_set:Nn \parindent { 2 \ccwd }
7730 \rmfamily \zihao { -4 }
7731 \dim_set:Nn \baselineskip { 20pt }
7732 \ctexset
7733 {
7734 section / number = { \arabic { section } . },
7735 section / format = { \rmfamily \zihao { -3 } \bfseries \raggedright },
7736 subsection / number = { \arabic { section } . \arabic { subsection } },
7737 subsection / format = { \rmfamily \zihao { 4 } \bfseries \raggedright }
7738 }
7739 \setcounter { section } { 0 }
7740 \file_if_exist_input:n { \l_@@_ack_tl }
7741 \group_end:
7742 }
7743 % \end{macrocode}
7744 % \changes{v1.26.0.0}{2022/06/07}{研究生学位论文作者简介}
7745 % \changes{v1.28.4.0}{2022/06/18}{移除研究生学位论文目录中作者简介二三级标题}
7746 % 作者简介。
7747 % \begin{macrocode}
7748 \bool_if:NF \l_@@_rm_bio_bool
7749 {
7750 \@@_n_chapter_head_toc:n
7751 { \@@_lang_switch:nn { 作者简介 } { Author~Biography } }
7752 \@@_lang_switch:nn { } { \@@_add_zh_toc:nn { chapter } { 作者简介 } }
7753 \group_begin:
7754 \dim_set:Nn \parindent { 2 \ccwd }
7755 \rmfamily \zihao { -4 }
7756 \dim_set:Nn \baselineskip { 20pt }
7757 % \end{macrocode}
7758 % \changes{v4.0.1.0}{2022/12/11}{兼容\pkgx{calc}包}
7759 % 配置作者简介部分标题样式。
7760 % \begin{macrocode}
7761 \ctexset
7762 {
7763 section / number = { \arabic { section } . },
7764 section / format = { \rmfamily \zihao { -3 } \bfseries \raggedright },
7765 subsection / number = { \arabic { section } . \arabic { subsection } },
7766 subsection / format = { \rmfamily \zihao { 4 } \bfseries \raggedright },
7767 subsection / indent = { \l_@@_bio_indent_dim }
7768 }
7769 % \end{macrocode}
7770 % \changes{v6.2.2.0}{2025/01/05}{修复研究生学位论文作者简介二三级标题序号}
7771 % \changes{v6.1.3.0}{2023/03/13}{修复研究生学位论文作者简介书签深度}
7772 % \changes{v4.4.3.0}{2023/02/09}{修复研究生学位论文书签深度}
7773 % 作者简介文件。
7774 % \begin{macrocode}
7775 \addtocontents { toc } { \protect \setcounter { tocdepth } { 0 } }
7776 \setcounter { tocdepth } { 0 }
7777 \setcounter { section } { 0 }
7778 \file_if_exist_input:n { \l_@@_bio_str }
7779 \addtocontents { toc } { \protect \setcounter { tocdepth } { 2 } }
7780 \setcounter { tocdepth } { 2 }
7781 \group_end:
7782 }
7783 % \end{macrocode}
7784 % \changes{v6.1.4.0}{2023/03/13}{修复研究生学位论文尾页缺失}
7785 % \begin{macrocode}
7786 \cleardoublepage
7787 }
7788 % \end{macrocode}
7789 % \end{macro}
7790 % \begin{macrocode}
7791 %</xdupgthesis>
7792 %<*thesis>
7793 % \end{macrocode}
7794 % \subsection{前言、正文和后记部分}
7795 % \changes{v4.0.0.0}{2022/12/11}{本科生毕业设计和研究生学位论文添加前言、正文和后记部分}
7796 % 本科生毕业设计和研究生学位论文添加前言、正文和后记部分。
7797 % \begin{macrocode}
7798 \ctex_after_end_preamble:n { \@@_frontmatter: \@@_mainmatter: }
7799 \AtEndDocument { \@@_backmatter: }
7800 % \end{macrocode}
7801 % \begin{macrocode}
7802 %</thesis>
7803 %<*xduugtp>
7804 % \end{macrocode}
7805 % \changes{v4.1.0.0}{2022/12/31}{增加本科生毕业设计开题报告}
7806 % \subsection{本科生毕业设计开题报告}
7807 % \begin{macro}{\tcbset}
7808 % 自定义线框样式。
7809 % \begin{macrocode}
7810 \PassOptionsToPackage { breakable } { tcolorbox }
7811 \RequirePackage { tcolorbox }
7812 \dim_new:N \l_@@_box_margin_dim
7813 \dim_set:Nn \l_@@_box_margin_dim { 5pt }
7814 \dim_new:N \l_@@_box_rule_dim
7815 \dim_set:Nn \l_@@_box_rule_dim { 0.5pt }
7816 \tcbset
7817 {
7818 standard~jigsaw,
7819 sharp~corners = all,
7820 colframe = black,
7821 opacityback = 0,
7822 boxsep = 0pt,
7823 boxrule = \l_@@_box_rule_dim,
7824 top = \l_@@_box_margin_dim,
7825 bottom = \l_@@_box_margin_dim,
7826 left = \l_@@_box_margin_dim,
7827 right = \l_@@_box_margin_dim,
7828 beforeafter~skip = 0pt,
7829 before~upper =
7830 {
7831 \dim_set:Nn \parindent { 2em }
7832 \dim_set:Nn \baselineskip { 20pt }
7833 }
7834 }
7835 \tcbset
7836 {
7837 tpboxi/.style =
7838 {
7839 breakable = true,
7840 height~fixed~for = first~and~middle
7841 },
7842 tpboxii/.style =
7843 {
7844 breakable = true,
7845 height~fixed~for = all,
7846 height~fill = maximum
7847 },
7848 tpboxiii/.style =
7849 {
7850 height = .5\textheight + .5\l_@@_box_rule_dim,
7851 space~to~upper = true,
7852 lower~separated = false,
7853 halign~lower = flush~right
7854 }
7855 }
7856 % \end{macrocode}
7857 % \end{macro}
7858 % \begin{macro}{tpbox}
7859 % 自定义\envx{tpbox}环境,便于实现用户正文输入为空亦可编译。
7860 % \begin{macrocode}
7861 \RequirePackage { graphicx }
7862 \int_new:N \l_@@_sign_no_int
7863 \int_set:Nn \l_@@_sign_no_int { 1 }
7864 \NewDocumentEnvironment { tpbox } { oo }
7865 { \IfNoValueF { #1 } { \begin { tcolorbox } [ #1 ] } }
7866 {
7867 \IfNoValueF { #1 }
7868 {
7869 \IfNoValueF { #2 }
7870 {
7871 \tcblower
7872 签名
7873 \clist_if_empty:NTF \l_@@_sign_clist
7874 { \skip_horizontal:n { 6em } \hbox:n { } }
7875 {
7876 \skip_horizontal:n { 1em }
7877 \includegraphics [ width = 10em, height = 25pt, keepaspectratio ]
7878 {
7879 \str_if_eq:nnTF { #2 } { 指导教师意见 }
7880 { \clist_item:Nn \l_@@_sign_clist { 1 } }
7881 { \clist_item:Nn \l_@@_sign_clist { 2 } }
7882 }
7883 }
7884 \\
7885 \clist_if_empty:NTF \l_@@_date_clist
7886 { \@@_zh_today: }
7887 {
7888 \str_if_eq:nnTF { #2 } { 指导教师意见 }
7889 { \clist_item:Nn \l_@@_zh_date_clist { 1 } }
7890 { \clist_item:Nn \l_@@_zh_date_clist { 2 } }
7891 }
7892 }
7893 \end { tcolorbox }
7894 }
7895 }
7896 % \end{macrocode}
7897 % \end{macro}
7898 % \begin{macro}{\@@_bib:}
7899 % \begin{macrocode}
7900 \cs_new:Npn \@@_bib:
7901 {
7902 \cs_set:Npn \bibname { 参考文献 }
7903 \subsection* { \bibname }
7904 \group_begin:
7905 \tl_if_eq:NnTF \l_@@_bib_tool_tl { bibtex }
7906 {
7907 \dim_set:Nn \labelsep { 1ex }
7908 \bibliography { \l_@@_bib_file_clist }
7909 }
7910 { \printbibliography }
7911 \group_end:
7912 }
7913 % \end{macrocode}
7914 % \end{macro}
7915 % \begin{macro}{\section}
7916 % 重定义\tnx{section}命令。
7917 % \begin{macrocode}
7918 \cs_new_eq:NN \@@_org_sec:n \section
7919 \RenewDocumentCommand \section { m }
7920 {
7921 \str_case:nnTF { #1 }
7922 {
7923 { 论文名称及项目来源 }
7924 {
7925 \end { tpbox }
7926 \begin { tpbox } [tpboxi]
7927 }
7928 { 研究目的和意义 }
7929 {
7930 \end { tpbox }
7931 \skip_vertical:n { -\l_@@_box_rule_dim }
7932 \skip_vertical:n { \z@skip }
7933 \begin { tpbox } [ tpboxii ]
7934 }
7935 { 国内外研究现状和发展趋势 }
7936 {
7937 \end { tpbox }
7938 \begin { tpbox } [ tpboxii ]
7939 }
7940 { 主要研究内容、要解决的问题及本文的初步方案 }
7941 {
7942 \@@_bib:
7943 \end { tpbox }
7944 \begin { tpbox } [ tpboxii ]
7945 }
7946 { 工作的主要阶段、进度和完成时间 }
7947 {
7948 \end { tpbox }
7949 \begin { tpbox } [ tpboxi ]
7950 }
7951 { 已进行的前期准备工作 }
7952 {
7953 \end { tpbox }
7954 \skip_vertical:n { -\l_@@_box_rule_dim }
7955 \skip_vertical:n { \z@skip }
7956 \begin { tpbox } [ tpboxii ]
7957 }
7958 { 指导教师意见 }
7959 {
7960 \end { tpbox }
7961 \begin { tpbox } [ tpboxiii ] [ 指导教师意见 ]
7962 }
7963 { 学院审核意见 }
7964 {
7965 \end { tpbox }
7966 \skip_vertical:n { -\l_@@_box_rule_dim }
7967 \skip_vertical:n { \z@skip }
7968 \begin { tpbox } [ tpboxiii ] [ 学院审核意见 ]
7969 }
7970 }
7971 { \@@_org_sec:n { #1 } }
7972 { }
7973 }
7974 % \end{macrocode}
7975 % \end{macro}
7976 % \begin{macro}{\pagestyle}
7977 % 移除页码。
7978 % \begin{macrocode}
7979 \pagestyle { empty }
7980 % \end{macrocode}
7981 % \end{macro}
7982 % \begin{macro}{\ctexset}
7983 % 设置标题样式。
7984 % \begin{macrocode}
7985 \ctexset
7986 {
7987 section / name = { ,、 },
7988 subsection / name = { (,) },
7989 subsubsection / name = { (,) },
7990 section / number = { \chinese { section } },
7991 subsection / number = { \chinese { subsection } },
7992 subsubsection / number = { \arabic { subsubsection } },
7993 section / format = { \raggedright \zihao { -4 } },
7994 subsection / format = { \raggedright \zihao { -4 } },
7995 subsubsection / format = { \raggedright \zihao { -4 } },
7996 section / aftername = { },
7997 subsection / aftername = { },
7998 subsubsection / aftername = { },
7999 section / beforeskip = { 0pt },
8000 subsection / beforeskip = { 8pt },
8001 subsubsection / beforeskip = { 8pt },
8002 section / afterskip = { 0pt },
8003 subsection / afterskip = { 0pt },
8004 subsubsection / afterskip = { 0pt },
8005 section / indent = { 0em },
8006 subsection / indent = { 0em },
8007 subsubsection / indent = { 2em },
8008 }
8009 % \end{macrocode}
8010 % \end{macro}
8011 % \begin{macro}{\@@_uline:n,\@@_uline:nn}
8012 % 下划线。
8013 % \begin{macrocode}
8014 \RequirePackage { xeCJKfntef }
8015 \cs_new:Npn \@@_uline:n #1
8016 { \CJKunderline [ thickness = 1pt ] { #1 } }
8017 \cs_new:Npn \@@_uline:nn #1#2
8018 { \CJKunderline [ thickness = 1pt ] { \hbox_to_wd:nn { #1 } { \hfil #2 \hfil } } }
8019 % \end{macrocode}
8020 % \end{macro}
8021 % \begin{variable}{\l_@@_cover_author_info_dim}
8022 % 获取封面作者信息最大宽度。
8023 % \begin{macrocode}
8024 \dim_new:N \l_@@_cover_author_info_dim
8025 \dim_set:Nn \l_@@_cover_author_info_dim { 5em }
8026 \ctex_at_end_preamble:n
8027 {
8028 \rmfamily \zihao { -3 }
8029 \@@_str_max_dim:Nn \l_@@_cover_author_info_dim { \l_@@_author_str }
8030 \@@_str_max_dim:Nn \l_@@_cover_author_info_dim { \l_@@_major_str }
8031 \@@_str_max_dim:Nn \l_@@_cover_author_info_dim { \l_@@_student_id_str }
8032 \@@_str_max_dim:Nn \l_@@_cover_author_info_dim { \l_@@_supv_str }
8033 \dim_add:Nn \l_@@_cover_author_info_dim { 2em }
8034 }
8035 % \end{macrocode}
8036 % \end{variable}
8037 % \begin{macro}{\@@_cover_author_info:nn}
8038 % 绘制封面作者信息。
8039 % \begin{macrocode}
8040 \cs_new:Npn \@@_cover_author_info:nn #1#2
8041 {
8042 \vbox_to_ht:nn { 31pt }
8043 {
8044 \mode_leave_vertical:
8045 \hfil
8046 \hbox:n
8047 {
8048 \rmfamily \zihao { -3 }
8049 \hbox_to_wd:nn { 4em } { #1 }
8050 \skip_horizontal:n { 0.5em }
8051 \@@_uline:nn { \l_@@_cover_author_info_dim } { #2 }
8052 }
8053 \hfil
8054 }
8055 }
8056 % \end{macrocode}
8057 % \end{macro}
8058 % \begin{variable}{\l_@@_pure_dept_str}
8059 % 移除末尾的学院二字。
8060 % \begin{macrocode}
8061 \cs_generate_variant:Nn \str_if_eq:nnTF { xnTF }
8062 \ctex_at_end_preamble:n
8063 {
8064 \str_new:N \l_@@_pure_dept_str
8065 \str_if_eq:xnTF { \str_range:Nnn \l_@@_dept_str { -2 } { -1 } } { 学院 }
8066 { \str_set:Nx \l_@@_pure_dept_str { \str_range:Nnn \l_@@_dept_str { 1 } { -3 } } }
8067 { \str_set:NV \l_@@_pure_dept_str \l_@@_dept_str }
8068 }
8069 % \end{macrocode}
8070 % \end{variable}
8071 % \begin{macro}{\@@_zh_today:}
8072 % 今日年月日。
8073 % \begin{macrocode}
8074 \cs_new:Npn \@@_zh_today:
8075 {
8076 \int_use:N \c_sys_year_int 年
8077 \int_use:N \c_sys_month_int 月
8078 \int_use:N \c_sys_day_int 日
8079 }
8080 % \end{macrocode}
8081 % \end{macro}
8082 % \begin{macro}{\@@_split_submit_date:N}
8083 % 拆分提交日期为年、月和日。
8084 % \begin{macrocode}
8085 \seq_new:N \l_@@_submit_date_seq
8086 \cs_new:Npn \@@_split_submit_date:N #1
8087 {
8088 \seq_set_split:NnV \l_@@_submit_date_seq { - } \l_@@_submit_date_str
8089 \clist_set_from_seq:NN #1 \l_@@_submit_date_seq
8090 }
8091 % \end{macrocode}
8092 % \end{macro}
8093 % \begin{macro}{\@@_zh_submit_date:}
8094 % \changes{v1.17.0.0}{2022/05/28}{中文提交日期}
8095 % 中文提交日期。
8096 % \begin{macrocode}
8097 \clist_new:N \l_@@_submit_date_clist
8098 \cs_new:Npn \@@_zh_submit_date:
8099 {
8100 \str_if_empty:NTF \l_@@_submit_date_str
8101 { \@@_zh_today: }
8102 {
8103 \@@_split_submit_date:N \l_@@_submit_date_clist
8104 \clist_item:Nn \l_@@_submit_date_clist { 1 } 年
8105 \clist_item:Nn \l_@@_submit_date_clist { 2 } 月
8106 \clist_item:Nn \l_@@_submit_date_clist { 3 } 日
8107 }
8108 }
8109 % \end{macrocode}
8110 % \end{macro}
8111 % \begin{variable}
8112 % {
8113 % \l_@@_zh_date_clist,
8114 % \l_@@_zh_date_one_clist,
8115 % \l_@@_date_seq
8116 % }
8117 % 格式化开题签名日期。
8118 % \begin{macrocode}
8119 \clist_new:N \l_@@_zh_date_clist
8120 \clist_new:N \l_@@_zh_date_one_clist
8121 \seq_new:N \l_@@_date_seq
8122 \ctex_at_end_preamble:n
8123 {
8124 \clist_map_inline:Nn \l_@@_date_clist
8125 {
8126 \seq_set_split:Nnn \l_@@_date_seq { - } { #1 }
8127 \clist_set_from_seq:NN \l_@@_zh_date_one_clist \l_@@_date_seq
8128 \clist_put_right:Nx \l_@@_zh_date_clist
8129 {
8130 \clist_item:Nn \l_@@_zh_date_one_clist { 1 } 年
8131 \clist_item:Nn \l_@@_zh_date_one_clist { 2 } 月
8132 \clist_item:Nn \l_@@_zh_date_one_clist { 3 } 日
8133 }
8134 }
8135 }
8136 % \end{macrocode}
8137 % \end{variable}
8138 % \begin{macro}{\@@_cover:,\ctex_after_end_preamble:n}
8139 % 绘制封面。
8140 % \begin{macrocode}
8141 \cs_new:Npn \@@_cover:
8142 {
8143 \vbox:n { }
8144 \skip_vertical:n { -5pt }
8145 \vbox_to_ht:nn { 85pt }
8146 {
8147 \rmfamily \zihao { -2 } \centering
8148 西安电子科技大学 \@@_uline:n { \l_@@_pure_dept_str } 学院
8149 }
8150 \vbox_to_ht:nn { 32.5pt }
8151 {
8152 \sffamily \zihao { 2 } \centering
8153 本科生毕业论文(设计)开题报告
8154 }
8155 \vbox_to_ht:nn { 171pt }
8156 {
8157 \CJKfamily+ { sf } \zihao { -3 } \centering
8158 (\l_@@_class_str{} 届)
8159 }
8160 \@@_cover_author_info:nn { 学生姓名 } { \l_@@_author_str }
8161 \@@_cover_author_info:nn { 专业 } { \l_@@_major_str }
8162 \@@_cover_author_info:nn { 学号 } { \l_@@_student_id_str }
8163 \@@_cover_author_info:nn { 指导教师 } { \l_@@_supv_str }
8164 \skip_vertical:n { 92pt }
8165 \vbox_to_ht:nn { 81.5pt }
8166 {
8167 \rmfamily \zihao { 4 } \centering
8168 \@@_zh_submit_date:
8169 }
8170 \vbox:n
8171 {
8172 \rmfamily \zihao { 5 } \centering
8173 (本表一式三份,学生、指导教师、学院各一份)
8174 }
8175 }
8176 \ctex_after_end_preamble:n { \@@_cover: \clearpage }
8177 % \end{macrocode}
8178 % \end{macro}
8179 % \begin{macro}{\ctex_after_end_preamble:n,\AtEndDocument}
8180 % 实现用户正文为空可编译。
8181 % \begin{macrocode}
8182 \ctex_after_end_preamble:n { \begin { tpbox } }
8183 \AtEndDocument { \end { tpbox } }
8184 % \end{macrocode}
8185 % \end{macro}
8186 % \begin{macrocode}
8187 %</xduugtp>
8188 % \end{macrocode}
8189 % \begin{macrocode}
8190 %<@@=>
8191 % \end{macrocode}
8192 % \end{implementation}
8193 % \Finale