Skip to content
Snippets Groups Projects
njuthesis.dtx 311 KiB
Newer Older
% \iffalse meta-comment
% !TeX program  = XeLaTeX
% !TeX encoding = UTF-8
Yu Xiong's avatar
Yu Xiong committed
% Copyright (C) 2021 - 2023
% by Nanjing University Linux User Group
% <git+nju-lug-email-3104-issue-@yaoge123.cn>
% It may be distributed and/or modified under the conditions of the
% LaTeX Project Public License (LPPL), either version 1.3c of this
Yu Xiong's avatar
Yu Xiong committed
% license or (at your option) any later version. The latest version
% of this license is in the file
%    https://www.latex-project.org/lppl.txt
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is Yu Xiong.
%
% This work consists of the files njuthesis.dtx,
%           and the derived files njuthesis.ins,
%                                 njuthesis.cls,
%                                 njuthesis-doc.cls,
%                                 njuthesis-graduate.def,
%                                 njuthesis-postdoctoral.def,
%                                 njuthesis-undergraduate.def,
%                                 njuthesis.pdf,
%                             and README.md.
%
% -----------------------------------------------------------------------
% The development version of the template can be found at
%    https://github.com/nju-lug/NJUThesis
%
% for those people who are interested.
%
%<*internal>
\begingroup
  \def\NameOfLaTeXe{LaTeX2e}
\expandafter\endgroup\ifx\NameOfLaTeXe\fmtname\else
\csname fi\endcsname
%</internal>
%
%<*install>
\input docstrip.tex
\keepsilent
\askforoverwritefalse

\preamble

Yu Xiong's avatar
Yu Xiong committed
Copyright (C) 2021 - 2023
by Nanjing University Linux User Group
<git+nju-lug-email-3104-issue-@yaoge123.cn>

This file may be distributed and/or modified under the conditions of
the LaTeX Project Public License, either version 1.3c of this license
or (at your option) any later version.  The latest version of this
license is in:

  http://www.latex-project.org/lppl.txt

and version 1.3 or later is part of all distributions of LaTeX version
2005/12/01 or later.

Yu Xiong's avatar
Yu Xiong committed
To produce the documentation run the original source files ending with
`.dtx' through XeTeX.
\endpreamble

\generate{
  \usedir{tex/latex/njuthesis}
    \file{\jobname.cls}               {\from{\jobname.dtx}{class}}
Yu Xiong's avatar
Yu Xiong committed
    \file{\jobname-undergraduate.def} {\from{\jobname.dtx}{def-u}}
    \file{\jobname-graduate.def}      {\from{\jobname.dtx}{def-g}}
    \file{\jobname-postdoctoral.def}  {\from{\jobname.dtx}{def-p}}
    \file{\jobname-doc.cls}           {\from{\jobname.dtx}{doc-cls}}
%<*internal>
  \usedir{source/latex/njuthesis}
    \file{\jobname.ins}               {\from{\jobname.dtx}{install}}
%</internal>
}

\obeyspaces
\Msg{*************************************************************}
\Msg{*                                                           *}
\Msg{* To finish the installation you have to move the following *}
\Msg{* files into a directory searched by TeX:                   *}
\Msg{*                                                           *}
\Msg{* The recommended directory is TDS:tex/latex/njuthesis      *}
\Msg{*                                                           *}
\Msg{*     njuthesis.cls                                         *}
\Msg{*     njuthesis-doc.cls                                     *}
\Msg{*     njuthesis-graduate.def                                *}
\Msg{*     njuthesis-postdoctoral.def                            *}
\Msg{*     njuthesis-undergraduate.def                           *}
\Msg{*     njuthesis.ins                                         *}
\Msg{*                                                           *}
\Msg{* To produce the documentation, run the file njuthesis.dtx  *}
\Msg{* through XeLaTeX.                                          *}
\Msg{*                                                           *}
\Msg{* Happy TeXing!                                             *}
\Msg{*                                                           *}
\Msg{*************************************************************}

\endbatchfile
%</install>
%
%<*internal>
\fi
%</internal>
%
%<class>\NeedsTeXFormat{LaTeX2e}
%<*!(driver|install)>
%<+!driver>\GetIdInfo $Id: njuthesis.dtx 1.3.2 2023-12-05 16:30:00
%<+!driver>  +0800 NJU LUG <git+nju-lug-email-3104-issue-@yaoge123.cn>$
%<class>  {Thesis template for Nanjing University}
%<class>\ProvidesExplClass{njuthesis}
Yu Xiong's avatar
Yu Xiong committed
%<def-u>  {Undergraduate definition file for njuthesis}
%<def-u>\ProvidesExplFile{njuthesis-undergraduate.def}
%<def-g>  {Graduate definition file for njuthesis}
Yu Xiong's avatar
Yu Xiong committed
%<def-g>\ProvidesExplFile{njuthesis-graduate.def}
Yu Xiong's avatar
Yu Xiong committed
% ^^A 诚耀百廿,雄创一流
% ^^A 南京大学一百二十周年华诞邀您共襄盛举!
%<def-p>  {Postdoctoral definition file for njuthesis}
%<def-p>\ProvidesExplFile{njuthesis-postdoctoral.def}
%<doc-cls>  {Documentation style for njuthesis}
%<doc-cls>\ProvidesExplFile{njuthesis-doc.cls}
%<!driver>  {\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription}
%</!(driver|install)>
\ProvidesFile{njuthesis.dtx}
\PassOptionsToClass{codehigh}{njuthesis-doc}
\documentclass{njuthesis-doc}
\begin{document}
  \DocInput{njuthesis.dtx}
Yu Xiong's avatar
Yu Xiong committed
  \PrintChanges
\end{document}
%</driver>
% \fi
%
% \title{\color{njuviolet}{The \cls{njuthesis} class\\
%   \textbf{南京大学学位论文模板}}}
%
% \author{南京大学 Linux 用户组
%   \thanks{E-mail: \href{mailto:git+nju-lug-email-3104-issue-@yaoge123.cn}
%     {git+nju-lug-email-3104-issue-@yaoge123.cn}}}
%
% \date{v1.3.2 \quad 2023-12-05}
Yu Xiong's avatar
Yu Xiong committed
% \changes{v0.1}{2021/09/04}{开始开发。}
% \changes{v0.2}{2021/09/07}{初步搭建了可用的模板。}
% \changes{v0.3}{2021/09/09}{使用自动构建工具进行测试。}
% \changes{v0.4}{2021/09/09}{将个人信息使用内置命令输入。}
% \changes{v0.5}{2021/09/10}{新增了对第二导师的支持。}
% \changes{v0.6}{2021/09/10}{封装个人信息}
% \changes{v0.6}{2021/09/10}{实现自动打包发布。}
Yu Xiong's avatar
Yu Xiong committed
% \changes{v0.7}{2021/09/11}{增加对研究生模板的支持}
Yu Xiong's avatar
Yu Xiong committed
% \changes{v0.7}{2021/09/12}{将 \cls{njuthesis} 发布在 CTAN。}
Yu Xiong's avatar
Yu Xiong committed
% \changes{v0.8}{2021/09/12}{修复已知问题,进行公开宣传。}
% \changes{v0.9}{2021/09/15}{使用 DocStrip 合并模板文件。}
Yu Xiong's avatar
Yu Xiong committed
% \changes{v0.9}{2021/09/15}{大幅度修改宏名称以符合 \LaTeX3 规范。}
% \changes{v0.9}{2021/09/15}{进一步完善文档。}
Yu Xiong's avatar
Yu Xiong committed
% \changes{v0.10}{2021/09/24}{删除了生成自述文件的代码。}
% \changes{v0.12}{2021/11/28}{删除内置的 \pkg{njuvisual} 代码。}
% \changes{v0.12}{2021/11/29}{更新了说明文档封面设计。}
% \changes{v0.12}{2021/11/30}{区分测试文件和空白模板。}
% \changes{v0.12}{2021/12/06}{修改了说明文档的代码呈现样式。}
% \changes{v0.13}{2021/12/12}{优化了编译速度。}
% \changes{v0.13}{2021/12/15}{适配2022届本科生毕业毕业论文(设计)规范。}
% \changes{v0.13}{2021/12/16}{默认不加载 \pkg{listings} 宏包。}
Yu Xiong's avatar
Yu Xiong committed
% \changes{v0.14}{2022/01/13}{将本模板内嵌入南大 \TeX{} 网站。}
% \changes{v0.16}{2022/03/01}{分离本科生和研究生模板配置。}
% \changes{v0.19}{2022/05/23}{对研究生普通封面进行若干细节修改。}
% \changes{v0.19}{2022/05/23}{对国家图书馆封面进行若干细节修改。}
% \changes{v0.20}{2022/06/08}{更正本科生模板部分字样。}
% \changes{v1.0}{2022/06/29}{移除毕业设计封面。}
% \changes{v1.0}{2022/07/05}{按类型重命名变量。}
% \changes{v1.0}{2022/07/23}{新增博士后出站报告模板。}
% \changes{v1.0}{2022/07/28}{在手册中以不同颜色指示不同模块。}
% \changes{v1.0}{2022/08/02}{删除 \LaTeX 基础用法的说明。}
Yu Xiong's avatar
Yu Xiong committed
% \changes{v1.1}{2023/01/05}{适配2023届本科生毕业毕业论文(设计)规范。}
% \changes{v1.1}{2023/01/05}{适配新版南大 \LaTeX 在线编辑器。}
%
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% \let\abstractname\relax
Yu Xiong's avatar
Yu Xiong committed
% \begin{abstract}
% \cls{njuthesis} 是制作南京大学本科生毕业论文、研究生学位论文、博士后出站报告的
% \LaTeX 文档类。本模板基于本科生院的论文撰写规范制作,同时参考研究生院提供的硕士、
Yu Xiong's avatar
Yu Xiong committed
% 博士学位材料包,用于生成符合南京大学排版要求和相应的国家标准的学位论
% 文,力求通过 \LaTeX3 语法实现清晰的实现逻辑、较高的可定制性以及友好的用户接口。
Yu Xiong's avatar
Yu Xiong committed
% \end{abstract}
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% \begin{abstract}
Yu Xiong's avatar
Yu Xiong committed
% The \cls{njuthesis} class is intended for typesetting Nanjing University
Yu Xiong's avatar
Yu Xiong committed
% dissertations with \LaTeX, providing support for bachelor, master,
% doctoral theses as well as postdoctoral reports.
Yu Xiong's avatar
Yu Xiong committed
% \end{abstract}
%
Yu Xiong's avatar
Yu Xiong committed
% \vspace{2cm}
Yu Xiong's avatar
Yu Xiong committed
% \def\abstractname{特别声明}
% \begin{abstract}
% 在使用本模板时,我们默认您同意以下内容:
% \begin{enumerate}
%   \item 本模板通过 LPPL 1.3c 协议开放源代码,您可以随意使用编译出的 PDF 文件。
Yu Xiong's avatar
Yu Xiong committed
%   \item 本模板与学校官方部门并不存在合作关系,
%         作者不对使用本模板产生的格式审查问题负责。
%   \item 遇到本文档没有覆盖的问题属于正常情况,欢迎提交反馈意见。
% \end{enumerate}
Yu Xiong's avatar
Yu Xiong committed
% 我们的 \href{https://git.nju.edu.cn/nju-lug/lug-introduction}
%   {Linux 用户组}始终欢迎您的加入!
Yu Xiong's avatar
Yu Xiong committed
% \end{abstract}
%
Yu Xiong's avatar
Yu Xiong committed
% \clearpage
Yu Xiong's avatar
Yu Xiong committed
%
% \setcounter{tocdepth}{4}
Yu Xiong's avatar
Yu Xiong committed
% \tableofcontents
% \begin{documentation}
Yu Xiong's avatar
Yu Xiong committed
% \section{模板介绍}
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% \cls{njuthesis},即南京大学学位论文模板,是一个由南京大学 Linux
Yu Xiong's avatar
Yu Xiong committed
% 用户组维护的,用于处理本校学生毕业论文排版需求的 \LaTeX 模板。
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% 本模板使用的本科生毕业论文模板格式依据
Yu Xiong's avatar
Yu Xiong committed
% 《关于启动南京大学2023届本科毕业论文(设计)工作的通知》\cite{nju-bachelor-2023},
atXY's avatar
atXY committed
% 研究生学位论文格式依据研究生院提供的材料包\cite{nju-graduate-2023}。
% 博士后出站报告格式要求与博士学位论文一致\cite{nju-postdoc-2022},
% 封面、摘要的设计参考了部分既有报告。
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% \subsection{开始之前}
% \label{subsec:first-things-first}
%
% 在本文正式介绍 \cls{njuthesis} 论文模板前,您也许并不熟悉 \LaTeX 模板的使用方法。
% 话不多说,请先按部就班体验一遍下述的工作流程:
%
% \bigskip
% \fcolorbox{tpblue}{gray!5}{\parbox{\textwidth-5em}{%
% \hspace{2em}\begin{minipage}[c]{10cm}
% \begin{enumerate}
%   \item 访问 \url{https://tex.nju.edu.cn}
%   \item 点击\tpbutton{使用南大统一身份认证登录}
%   \item 点击右上角\tpbutton{LaTeX 模板},选择\tpbutton{南京大学学位论文}
%   \item 点击进入刚刚新建的项目
% \end{enumerate}
% \end{minipage}}}
%
% \bigskip
% 稍等片刻,您会在浏览器右侧发现一份新生成的空白论文。
% 如果它的效果令您满意,不妨以 \file{njuthesis-sample.tex} 为基础开始写作。
%
% \subparagraph{我一定要体验上述流程吗?}
% 是,但也不一定。有人坚持认为应该做一些\emph{直观、清晰、有手就行、一
% 条路走到底}的教程,而不是\emph{长篇累牍的精细介绍},其核心论据在于:
% 现代人类总体上需要快速取得成就感,而且大部分可能用到本模板的同学不
% 会具备必要的基础知识。反驳的观点在于过分简单的实验总是浪费时间的,
% 尤其是在您可能早已掌握基本用法的情况下。但,不论如何,这番操作总会
% 使您预览到 \cls{njuthesis} 论文模板的实际样式。
%
% \subparagraph{我并没有见到理想的结果。}
% 具体是哪里不满意?如果是\emph{样式存在偏差},请联系模板的作者;如果
% \emph{不能访问前文提到的在线编译网站},请考虑检查网络连接,依次咨询
% 本校\href{https://itsc.nju.edu.cn}{信息化管理建设服务中心}和该网站
% 的维护者\href{mailto:my@yaoge123.cn}{姚舸老师};如果\emph{报错},请
% 点击左上角的菜单按钮,查看编译器是否显示为 |XeLaTeX|;
% 再如果\emph{还有其他原因},通过这几分钟的实验我们也可以得到一个极其
% 有益的结论:\emph{也许 Word 模板更加适合您}。这可以节省下熟悉
% \TeX{} 排版软件使用方法所需的可观时间。
%
% \subparagraph{但我依然对 \LaTeX 一无所知!}
% 这意味着您真的得花些时间在\emph{长篇累牍的精细介绍}上。
% 如果您已经下定决心,请接着向后阅读,有需要时善用搜索引擎。
% \subsection{历史沿革}
% 十几年来,多位热心校友发布过自己编写的模板,在 GitHub 网站上可考的包括:
% \begin{enumerate}
Yu Xiong's avatar
Yu Xiong committed
%   \item 杨文博(\href{http://yangwenbo.com/}{@solrex})的
%        njuthesis(2010 - 2018) \cite{wenboyang2013}
%   \item \href{https://github.com/fireblue}{@fireblue} 基于杨文博模板的
%        NJUThesis(2013)\cite{fireblue2013}
%   \item \href{https://github.com/wenhai-zheng}{@wenhai-zheng} 的
%        NJUThesis(2013)\cite{wenhai-zheng2013}
%   \item 曹增乐(\href{https://github.com/ZLCao}{@ZLCao})的
%        NJUBachelor(2013 - 2016)\cite{zenglecao2013}
%   \item 胡海星(\href{http://haixing-hu.github.io/}{@Haixing-Hu})的
%        NJU-Thesis(2013 - 2018)\cite{haixinghu2013}
%   \item 张楚珩(\href{https://github.com/zhangchuheng123}{@zhangchuheng123})
%        基于胡海星模板的 NJUThesis(2016)\cite{chuhengzhang2016}
%   \item 蒋炎岩(\href{http://ics.nju.edu.cn/~jyy/}{@jiangyy})的
%        njuthesis(2017 - 2019)\cite{yanyanjiang2017}
%   \item \href{https://github.com/njuHan}{@njuHan} 基于胡海星模板的
%        NJU-Thesis(2018 - 2021)
%   \item 饶安逸(\href{https://anyirao.com/}{@AnyiRao})基于张楚珩模板的
%        NJU Thesis 2018(2018)\cite{anyirao2018}
%   \item 赵懿晨(\href{https://fengchendian.github.io/about.html}
%        {@FengChendian})基于饶安逸模板的
%        NJU Thesis 2021(2021)\cite{yichenzhao2021}
% \end{enumerate}
% 至于不幸而未进行代码版本管理的,甚至于说以压缩包形式流传于各人硬盘中的,就更不可计数了。
%
Yu Xiong's avatar
Yu Xiong committed
% 与其让一千个学生做一千种不同的模板,不如有人牵起头来,集中力量办大事。因此,南
% 京大学 Linux User Group 的有志之士在2021年暑期联合起来,参考以上的现成模板,兼
% 顾友校 \cls{fduthesis}\cite{fduthesis}、\textsc{THuThesis}\cite{thuthesis} 等
Yu Xiong's avatar
Yu Xiong committed
% 优秀项目,构建了这一全新模板,力求通过 \LaTeX3 语法和清晰的接口实现良
% 好的易用性和可维护性。
% 目前,本模板的主要维护者包括:
% \begin{itemize}
Yu Xiong's avatar
Yu Xiong committed
%   ^^A \item 赵懿晨
Yu Xiong's avatar
Yu Xiong committed
%   \item 熊煜
Yu Xiong's avatar
Yu Xiong committed
%   ^^A \item 马畅
Yu Xiong's avatar
Yu Xiong committed
%
% \subsection{快速上手}
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% \LaTeX 并不是一种零门槛的语言,亦不是南京大学学生的必备技能。有同学听
Yu Xiong's avatar
Yu Xiong committed
% 到“\emph{给毕业论文交差也得写代码}”这种事情就头疼,实在是我们不愿意见到而必须
Yu Xiong's avatar
Yu Xiong committed
% 要面对的情况。目前,中文互联网上的 \LaTeX 写作教程可谓汗牛充栋,然而
% 如何快速准确找到所需要的用法,尤其是 \LaTeX3 的新接口,需要一定的时间
Yu Xiong's avatar
Yu Xiong committed
% 或者良好的英文阅读能力。在本文档的写作中,我们无力从盘古开天辟地开始从头构建您
% 的相关知识体系,只能\emph{尽力做到有求必应},在需要的地方顺带提一嘴,以期使您
% 少走点弯路。
Yu Xiong's avatar
Yu Xiong committed
%
% 如果您希望在使用本模板前了解一些关于这个排版软件的基础知识,在此尝试列举一些有
% 所帮助的资料:
Yu Xiong's avatar
Yu Xiong committed
% \begin{description}
Yu Xiong's avatar
Yu Xiong committed
%   \item[\textit{lshort}] 著名的介绍文档,已被译为多种语言,
%                          推荐通读其中文版\cite{lshort-zh-cn}。
Yu Xiong's avatar
Yu Xiong committed
%   \item[《\LaTeX 入门》] 刘海洋著\cite{刘海洋2013latex入门}。
Yu Xiong's avatar
Yu Xiong committed
% \end{description}
%
%
% \subsection{关于本说明手册}
%
Yu Xiong's avatar
Yu Xiong committed
% 本模板通过 \textsc{DocStrip} 进行维护,实际上是一种\emph{文学编程}。文学编程的
% 本体是那些用来说明的文字,按写书写文章的方式组织。\file{njuthesis.dtx} 包含
% \cls{njuthesis} 文档类的所有信息。前半部分为模板说明,即各种常用命令与必要的使
Yu Xiong's avatar
Yu Xiong committed
% 用方法;后半部分为代码实现,为带有详细注释的 \TeX{} 源代码。后者配合附
Yu Xiong's avatar
Yu Xiong committed
% 录,为有意了解本模板实现细节的同学提供必要指引。
Yu Xiong's avatar
Yu Xiong committed
% 下文中将出现若干特殊格式,用来指示代码组件。譬如,无衬线字体的
% \pkg{pkg-example} 为宏包名,等宽字体的 \file{file-example.xxx} 为文件名,等宽
Yu Xiong's avatar
Yu Xiong committed
% 字体的 \opt{opt-example} 为选项名,等宽字体的 \env{env-example} 为需要
Yu Xiong's avatar
Yu Xiong committed
%  |\begin{}|和|\end{}|的环境名,等。本手册提供的代码示例中,左侧边线呈现南大标
% 准洋红色 {\color{njumagenta}$\blacksquare$} 的属于终端命令,呈南大标准蓝色
Yu Xiong's avatar
Yu Xiong committed
% {\color{njublue}$\blacksquare$} 的属于 \LaTeX 源代码。
Yu Xiong's avatar
Yu Xiong committed
%
%
% \subsection{许可说明}
%
% \file{njuthesis.dtx} 文件以及由其直接产生的所有文件被称为
% \cls{njuthesis} 文档类,或者在本文中简称为本模板。
%
% \subparagraph{版权信息}
Yu Xiong's avatar
Yu Xiong committed
%   本模板之版权隶属于 © 2021 - 2023 南京大学 Linux 用户组。
%
% \subparagraph{发布和修改}
%   本模板的发布和(或)修改遵守 LaTeX Project Public License(版本 1.3c 或更高)
% 的条款。该许可证的最新版本位于 \url{http://www.latex-project.org/lppl.txt},
% 1.3c 及更新的版本随附于 2003/12/01 版本以后的所有 \LaTeX 发行版。
%
% \subparagraph{联系作者}
%   如果您在使用最新版模板时发现了任何问题,抑或有意向参与本模板的维护,
% 请通过 \href{https://github.com/nju-lug/NJUThesis/issues}{GitHub Issue}
% 或者 QQ 群聊\footnote{群号是 991559926。}联系 NJU LUG。
Yu Xiong's avatar
Yu Xiong committed
%
% \section{安装}
Yu Xiong's avatar
Yu Xiong committed
% \label{sec:setup}
Yu Xiong's avatar
Yu Xiong committed
% 本节主要介绍本宏包的获取、安装以及编译方式。
Yu Xiong's avatar
Yu Xiong committed
% \subsection{获取模板}
% \cls{njuthesis} 目前处于积极的维护中,主要可通过以下三种途径获取模板文件:
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% \subparagraph{CTAN}
Yu Xiong's avatar
Yu Xiong committed
% \href{https://ctan.org/}{CTAN}\footnote{The Comprehensive \TeX{}
% Archive Network} 是所有 \TeX{} 相关材料的中枢。
Yu Xiong's avatar
Yu Xiong committed
% 本模板的 CTAN 页面
% \footnote{\href{https://ctan.org/pkg/njuthesis}{\cls{njuthesis}} 已经于2021年9
% 月12日发布在 CTAN,用于绘制南大图标的
% \href{https://ctan.org/pkg/njuvisual}{\pkg{njuvisual}} 也已于同年11月28日发
% 布,两者已被 \TeX{} Live 和 \MiKTeX 收录。}上提供基本的介绍信息,可以下载
% 说明文档(本文档)和宏包源代码。当然,使用这一来源时并不需要接触后者,请参考
Yu Xiong's avatar
Yu Xiong committed
% \ref{subsubsec:standard-installation} 的标准安装方法。
%
% \subparagraph{GitHub 仓库}
% 最新开发进度会提交在本项目的
% \href{https://github.com/nju-lug/NJUThesis}{Github仓库}。仓库内仅包含源代码、
% 空白模板及测试文件,不可直接用于写作。这些文件对应的使用方法请参考
% \ref{subsubsec:on-the-fly-installation}。如果由于网络原因不便访问主仓库,也可
Yu Xiong's avatar
Yu Xiong committed
% 以从 \href{https://git.nju.edu.cn/nju-lug/nju-latex-templates/njuthesis}
% {NJU Git 同步镜像}获取项目工程文件。
Yu Xiong's avatar
Yu Xiong committed
%
% \subparagraph{GitHub Releases}
Yu Xiong's avatar
Yu Xiong committed
% 本模板不定期将已有的新功能和问题修复打包为新的正式发行版,赋以更改后的版本号,
% 发布在 \href{https://github.com/nju-lug/NJUThesis/releases/latest}{Github
% Releases 页面}。如果由于网络原因不便访问主仓库,也可以从\ignorespaces
% \href{https://mirror.nju.edu.cn/github-release/nju-lug/NJUThesis/LatestRelease/}
% {南京大学镜像站下载页面}获取。可供下载的文件包括下列三种:
Yu Xiong's avatar
Yu Xiong committed
%   \begin{description}
%     \item[\file{njuthesis-v*.pdf}] 模板说明文档(本文档)。
Yu Xiong's avatar
Yu Xiong committed
%     \item[\file{njuthesis-user-v*.zip}] 交付给用户的完整模板包,
%          包括格式文件和范本文档,可在解压后用于本地编译,
%          也可直接上传至在线编译网站。
%     \item[\file{njuthesis-ctan-v*.zip}] 交付给 CTAN 的源代码包,
%          普通用户请忽略。
Yu Xiong's avatar
Yu Xiong committed
%   \end{description}
%
%
% \subsubsection{文件构成}
%
Yu Xiong's avatar
Yu Xiong committed
% 本模板由数量众多的文件组成,\emph{所有可能遇到的}文件如表
% \ref{tab:njuthesis-files} 所示。
%
% \begin{table}[ht]
%   \centering
%   \begin{talltblr}[
Yu Xiong's avatar
Yu Xiong committed
%       caption = {\cls{njuthesis}文件构成},
%       label = {tab:njuthesis-files},
%       note{a} = {仅供开发使用,并不会在发布版本中出现。}
%     ] { row{1} = {font=\bfseries}, colspec = {ll} }
%     名称                               & 说明                             \\
%     \file{.vscode}                     & Visual Studio Code 配置文件      \\
%     \file{CHANGELOG.md}                & 修订记录                         \\
%     \file{latexmkrc}                   & \pkg{latexmk} 配置文件           \\
%     \file{LICENSE}                     & 许可证                           \\
%     \file{njuthesis.cls}               & 模板文档类                       \\
%     \file{njuthesis.dtx}\TblrNote{a}   & 文档类源代码                     \\
%     \file{njuthesis.ins}\TblrNote{a}   & 文档类安装脚本                   \\
%     \file{njuthesis.pdf}               & 用户手册(本文档)               \\
%     \file{njuthesis-doc.cls}           & 用户手册样式                     \\
%     \file{njuthesis-sample.bib}        & 示例参考文献列表                 \\
%     \file{njuthesis-sample.tex}        & 示例文档,不妨以此为基础撰写论文 \\
%     \file{njuthesis-graduate.def}      & 研究生参数配置文件               \\
%     \file{njuthesis-postdoctoral.def}  & 博士后参数配置文件               \\
%     \file{njuthesis-undergraduate.def} & 本科生参数配置文件               \\
%     \file{README.md}                   & 自述文件                         \\
%   \end{talltblr}
Yu Xiong's avatar
Yu Xiong committed
% \subsection{本地安装}
%
% \subsubsection{标准安装}
% \label{subsubsec:standard-installation}
%
Yu Xiong's avatar
Yu Xiong committed
% 我们\emph{始终建议}使用宏包管理器将 \cls{njuthesis} 安装到您的 \TeX 系
% 统。您可以通过 \TL~Manager 或者 \MiKTeX~Console 等图形化包管理器直接搜
% 索并安装 \cls{njuthesis} (及其依赖的 \pkg{njuvisual})最新的
% 稳定版。同时,您也可以使用终端命令。例如,假设您使用的是 \TL,
Yu Xiong's avatar
Yu Xiong committed
% 键入下述 \pkg{tlmgr} 的命令(很可能需要管理员权限):
% \begin{shellexample}[morekeywords={tlmgr},emph={install}]
Yu Xiong's avatar
Yu Xiong committed
%   tlmgr install njuthesis njuvisual
% \end{shellexample}
Yu Xiong's avatar
Yu Xiong committed
% 即可完成安装,无需额外准备 \file{.cls} 文件。
Yu Xiong's avatar
Yu Xiong committed
% 另一方面,CTAN 依赖开发者手动上传更新,版本更新具有滞后性。如果使用时遇到了问
% 题,不妨使用下一小节的\emph{即时安装方法}优先载入较新的格式文件。
% {\color{red}|[!]|} 如果您具备相关经验\footnote{譬如熟悉命令行操作、使用的是 \TL
% 发行版等},可以在下载仓库内全部文件后,于该目录下运行
% \begin{shellexample}[morekeywords={l3build},emph={install}]
Yu Xiong's avatar
Yu Xiong committed
%   l3build install
% \end{shellexample}
% 来安装本模板的最新版。
Yu Xiong's avatar
Yu Xiong committed
% \subsubsection{即时安装}
% \label{subsubsec:on-the-fly-installation}
Yu Xiong's avatar
Yu Xiong committed
% 在某些情况下(例如需要上传至在线编译平台、新版本提供了急需的错误修复),您可能
% 需要独立的 \file{.cls} 格式文件。此时请前往前述的 Releases 页面下载
% \emph{完整模板包}。
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% 对于希望使用主仓库中版本的用户,本模板也提供了扁平化安装脚本,用于释放供编译的
% 空白模板和格式文件。Windows 用户请直接双击打开 \file{install-win.bat};其他平
% 台(包括 macOS 和 Linux)用户请在此目录下运行
Yu Xiong's avatar
Yu Xiong committed
% \begin{shellexample}[morekeywords={bash}]
%   bash install-unix.sh
% \end{shellexample}
Yu Xiong's avatar
Yu Xiong committed
% 该脚本会生成一个 \file{mythesis/} 目录以便从头写作,仓库内除此文件夹以外的内容
% 都可以尽情删除。
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% {\color{red}|[!]|} 请注意,如果仅仅是希望使用这个模板撰写论文,请无论如何都不
% 要从手动编译 \file{source} 文件夹下的源代码开始,这样做只会浪费生命中宝贵的数
Yu Xiong's avatar
Yu Xiong committed
% 分钟时间。如果遇到了问题,请前往 GitHub 仓库提出 issue。我们只推荐希望参与开发
% 的同学接触 \file{.dtx} 文件。
% \subsection{本地编译}
Yu Xiong's avatar
Yu Xiong committed
% \label{subsec:localcompile}
Yu Xiong's avatar
Yu Xiong committed
% 本地编译的安装过程分为两个阶段:安装 \TeX 发行版以及配置
% 编辑器。前者提供了可以被命令行终端调用的编译程序,
% 后者则提供了语法高亮、自动编译等人性化功能。
Yu Xiong's avatar
Yu Xiong committed
% \subsubsection{安装 \TeX{} 发行版}
Yu Xiong's avatar
Yu Xiong committed
% 首先需要下载并安装 \TeX{} 软件发行版,其中包括引擎、宏包、字体、文档等。
% 各操作系统适用情况请参考表~\ref {tab:texdistribution}。第一次
% 编译前请务必通过 \MiKTeX~Console、\TL~Manager 等图形化程序或
Yu Xiong's avatar
Yu Xiong committed
% \pkg{tlmgr} \emph{手动更新全部宏包}以避免潜在的兼容性问题。
% \begin{table}[ht]
Yu Xiong's avatar
Yu Xiong committed
%   \caption{\TeX 软件发行版一览}
%   \label{tab:texdistribution}
%   \begin{tabular}{cccc}
%     \toprule
Yu Xiong's avatar
Yu Xiong committed
%     \TeX    & Windows   & macOS     & Linux     \\
Yu Xiong's avatar
Yu Xiong committed
%     \TL     & $\bullet$ &           & $\bullet$ \\
%     \MacTeX &           & $\bullet$ &           \\
%     \MiKTeX & $\bullet$ & $\bullet$ & $\bullet$ \\
%     \bottomrule
%   \end{tabular}
% \end{table}
% 以下是一些值得注意的要点:
% \begin{itemize}
Yu Xiong's avatar
Yu Xiong committed
%   \item 可以参照这份\emph{手把手的教程}\cite{install-latex-guide-zh-cn}。
Yu Xiong's avatar
Yu Xiong committed
%   \item 校园网环境中访问\ignorespaces
%         \href{https://mirror.nju.edu.cn/download/TeX%20排版系统}
%         {南京大学开源软件镜像站}可以获得最佳的下载体验。
Yu Xiong's avatar
Yu Xiong committed
%   \item 使用最新的发行版,即版本号为2022或者22。
Yu Xiong's avatar
Yu Xiong committed
%   \item 对于 Windows 和 macOS 用户,更推荐轻量化的 \MiKTeX 套件。
Yu Xiong's avatar
Yu Xiong committed
% ^^A   \item Linux 用户请尽可能下载 full 版本,如 |texlive-full|。
% ^^A         换言之,下载最大的软件包。
%   \item 对于一部分用到新版本特性的宏包,\cls{njuthesis} 内置了版本检查
%         \footnote{譬如遇到 l3 过时问题请运行 |tlmgr update l3packages|。}
%         ,请确认各宏包已升级至最新版。
% \end{itemize}
Yu Xiong's avatar
Yu Xiong committed
%
% \subsubsection{配置编辑器}
% \changes{v0.11}{2021/11/23}{提供 TeXstudio 配置文件。}
Yu Xiong's avatar
Yu Xiong committed
%
% 配置完编译器后,还需要一个\emph{文本编辑器}来完成 \file{.tex} 文件内容的写作。
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% 关于具体使用哪一种,至今仍有相当一部分人认为Windows自带的\emph{记事本}是
% 最好的文本编辑器。但对于本项目而言,在此诚心诚意地推荐您使用\emph{更现代
Yu Xiong's avatar
Yu Xiong committed
% 更美观更多功能}的编辑器,譬如\emph{安装了 \LaTeX Workshop 插件的
Yu Xiong's avatar
Yu Xiong committed
% \href{https://code.visualstudio.com/}{Visual Studio Code}}。您也可以根据
% 个人的喜好随意使用 TeXworks、TeXstudio 等编辑器,顺手就行。
Yu Xiong's avatar
Yu Xiong committed
%
% \cls{njuthesis} 为一些常见编辑器提供了配置文件,如
% \begin{description}
Yu Xiong's avatar
Yu Xiong committed
%   \item[Visual Studio Code] 本模板在 \file{.vscode/} 中提供一份
Yu Xiong's avatar
Yu Xiong committed
%        \LaTeX Workshop 插件的简易配置,在打开文件夹后将自动导入,
Yu Xiong's avatar
Yu Xiong committed
%        可以省略初始配置步骤直接使用。
%   \item[TeXstudio] 本模板提供 \file{conf.txsprofile},可以使用快捷键
%        |alt+O+P| 导入配置文件。为了简化流程\footnote{当然,也可以设置
Yu Xiong's avatar
Yu Xiong committed
%        为使用 \XeLaTeX 编译,然后按照 \ref{subsubsec:compileseq}
Yu Xiong's avatar
Yu Xiong committed
%        内容使用快捷键 |F8| 手动编译参考文献。},该配置文件使用
%        \pkg{latexmk},第一次编译前请参考下一节内容安装 Perl。
% \end{description}
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% \subsubsection{编译顺序}
% \label{subsubsec:compileseq}
Yu Xiong's avatar
Yu Xiong committed
% \TeX 本身是命令行程序,通过不同的命令调用所需的编译引擎,
Yu Xiong's avatar
Yu Xiong committed
% 编辑器提供的快捷按钮实际只是做了包装。为了便于排查运行错误,
% 以下通过具体终端命令简要描述编译过程。
% 编译本模板的过程可以概括为下述步骤:
% \begin{enumerate}
%   \item 生成初始文档
%   \item 生成参考文献信息
%   \item 生成页码、编号、目录
%   \item 将参考文献列表页插入目录
% \end{enumerate}
Yu Xiong's avatar
Yu Xiong committed
% 总计需要编译四次。\emph{假设即将使用的主文件名为
% \file{njuthesis-sample.tex}},应采用以下命令顺序进行编译,
% 以生成内容正确的 \file{njuthesis-sample.pdf}。输出的 PDF
Yu Xiong's avatar
Yu Xiong committed
% 文档位于同一目录下。该目录下同时会生成若干中间文件。
% 编译命令具体为引擎名称加主文件名,在编译 \file{.tex} 文件时,
Yu Xiong's avatar
Yu Xiong committed
% 文件扩展名可以省略不写。现阶段 \cls{njuthesis} 仅支持 \XeTeX
% 与 \LuaTeX 引擎,以及 \biber 文献工具。请注意,几种命令的输出文件
% 基本相同,可以任取一种;但如果您不清楚这两种编译引擎的区别,
% 或者对多步编译感到困惑,我们建议优先使用 |latexmk -xelatex|。
Yu Xiong's avatar
Yu Xiong committed
% \subparagraph{使用 \XeLaTeX}
% 标准的 \XeTeX 引擎四步编译方法。
% \begin{shellexample}[morekeywords={xelatex,biber}]
Yu Xiong's avatar
Yu Xiong committed
%   xelatex njuthesis-sample
%   biber njuthesis-sample
%   xelatex njuthesis-sample
%   xelatex njuthesis-sample
% \end{shellexample}
Yu Xiong's avatar
Yu Xiong committed
% \subparagraph{使用 \LuaLaTeX}
% 标准的 \LuaTeX 引擎四步编译方法。
%
% \begin{shellexample}[morekeywords={lualatex,biber}]
Yu Xiong's avatar
Yu Xiong committed
%   lualatex njuthesis-sample
%   biber njuthesis-sample
%   lualatex njuthesis-sample
%   lualatex njuthesis-sample
% \end{shellexample}
% \subparagraph{使用 \pkg{latexmk}}
Yu Xiong's avatar
Yu Xiong committed
% \pkg{latexmk}\cite{latexmk} 是一个基于 Perl 脚本的自动编译工具,
% 宗旨是通过单一命令简化上述的多次编译流程。
% 在使用该命令前,请确保安装了以下软件:
% \begin{description}
Yu Xiong's avatar
Yu Xiong committed
%   \item[Perl] 一般预装于 macOS 和 Linux,而 Windows 用户需要单独安装
%        \href{https://strawberryperl.com/}{Strawberry Perl}。
atxy's avatar
atxy committed
%   \item[\normalfont\pkg{latexmk}] 如果终端找不到 |latexmk| 命令,需使用包管理器单独安装。
% \end{description}
%
% 该命令的使用方法为
% \begin{shellexample}[morekeywords={latexmk}]
Yu Xiong's avatar
Yu Xiong committed
%   latexmk njuthesis-sample
% \end{shellexample}
Yu Xiong's avatar
Yu Xiong committed
% 直接运行会调用 \pdfLaTeX 引擎导致报错。
% 如需指定编译引擎,可以加入 |-xelatex| 或 |-lualatex| 参数。
Yu Xiong's avatar
Yu Xiong committed
% 例如,指定 \XeLaTeX 的命令为
% \begin{shellexample}[morekeywords={latexmk},emph={-xelatex}]
Yu Xiong's avatar
Yu Xiong committed
%   latexmk -xelatex njuthesis-sample
% \end{shellexample}
% 此外,可以选择使用以下命令清理编译生成的临时文件。
% \begin{shellexample}[morekeywords={latexmk},emph={-c}]
%   latexmk -c
% \end{shellexample}
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% \subsection{在线编译}
Yu Xiong's avatar
Yu Xiong committed
% \label{subsec:onlinecompile}
Yu Xiong's avatar
Yu Xiong committed
%
atxy's avatar
atxy committed
% 相信您在接触了本地编译以后,很快就会意识到一些十分显然的事实,譬如 \TeX 编译器
% 安装过程较为漫长\footnote{因此对于 Windows 推荐 \MiKTeX。},占用空间过大
% \footnote{事实上,可以通过 |scheme-infraonly| 模式安装 \TL,随后利用 \pkg{tlmgr}
% 安装依赖宏包,这份宏包列表可以在 Git 仓库的 \file{.github/workflows/build.yml}
% 找到。},而且在一部分处理器性能不佳的电脑上需要较长编译时间\footnote{出于文件 IO
% 速度的差异,同一个模板在 Linux 编译可以相对 Windows 节省约一半耗时。}。
% 拒绝接受这些麻烦的同学可以尝试本节介绍的在线编译方法。
Yu Xiong's avatar
Yu Xiong committed
% {\color{red}|[!]|} 使用在线编辑器时请谨慎备份您的心血结晶。
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% \subsubsection{南大 \TeX 平台简介}
% \changes{v0.2}{2021/09/07}{添加对南大 \TeX 的支持。}
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% 当前的\href{https://tex.nju.edu.cn}{南大 \TeX} 基于
% \href{https://www.texpage.com}{TeXPage} 提供的服务,
% 是 \href{https://sci.nju.edu.cn/}{eScience 中心}为南大在校师生提供的
% 免费 \LaTeX 在线编辑器,首次使用时需凭统一身份认证激活账号。
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% \subsubsection{操作步骤}
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% 本说明手册开头的 \ref{subsec:first-things-first} 即呈现了网站内嵌的
% \cls{njuthesis} 模板的使用方法。
% 如果网站更新不及时,也可以按如下步骤手动上传包含模板的压缩包。
Yu Xiong's avatar
Yu Xiong committed
% \begin{enumerate}
%   \item 登录\href{https://tex.nju.edu.cn}{南大 \TeX 网站}
%   \item 上传~\ref{subsubsec:on-the-fly-installation}~节得到的压缩文件。
%   \item 在项目页面左上角的\tpbutton{设置}中,确认编译器为 |XeLaTeX| 或者 |LuaLaTeX|
%   \item 仿照 \file{njuthesis-sample.tex} 编写论文
%   \item 点击右上角\tpbutton{编译}按钮进行编译和预览
% \end{enumerate}
%
%
% \subsection{版本升级}
%
Yu Xiong's avatar
Yu Xiong committed
% 本模板仍在开发中,将不断发布新版本,您可能需要不定期进行更新以得到
% 对于已知问题的修复补丁。每个版本的更新内容记录于 Git 仓库中的
% \file{CHANGELOG.md}。除非特别提到选项变化,升级时一般无需更改 \file{.tex}
% 文件内容\footnote{在确实发生了接口变动,例如选项名称发生了更改,
% 一种稳妥做法是将论文内容迁移至新版的 \file{njuthesis-sample.tex}}。
% 基于安装和编译方式的差异,可以按照当前工作文件夹内是否有 \file{.cls}
% 文件分别进行更新操作。
Yu Xiong's avatar
Yu Xiong committed
% 下载 \file{njuthesis-user-v*.zip},使用其中新版的 \file{.cls}、\file{.def}
% 文件覆盖旧版本。
%
% \subparagraph{没有}
Yu Xiong's avatar
Yu Xiong committed
% 如果使用的是南大 \TeX,更新内置模板时会进行公告,一般为上传 CTAN
Yu Xiong's avatar
Yu Xiong committed
% 后一周内。如果是本地安装,请直接使用包管理器进行更新:
% \begin{shellexample}[morekeywords={tlmgr},emph={update}]
Yu Xiong's avatar
Yu Xiong committed
%   tlmgr update --all
% \end{shellexample}
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
%
% \section{使用方法}
Yu Xiong's avatar
Yu Xiong committed
% \subsection{标准结构}
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% 典型的 \cls{njuthesis} 主文件结构应该如下所示:
Yu Xiong's avatar
Yu Xiong committed
%
% \begin{latexexample}[moretexcs={\njusetup,\tableofcontents,
%   \maketitle,\mainmatter,\chapter,\printbibliography},emph={[1]document}]
%   \documentclass{njuthesis}
%   \njusetup{}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{document}
%   \maketitle
%   \tableofcontents
%   \mainmatter
%   \chapter{欢迎}
%   使用 \LaTeX{}!
%   \printbibliography
Yu Xiong's avatar
Yu Xiong committed
%   \end{document}
% \end{latexexample}
Yu Xiong's avatar
Yu Xiong committed
%
% 如果您尝试编译上面的代码,会发现自己得到了一个5页的 PDF 文档,
% 是一份空白的本科生论文。当然,这个文档实际上没有任何内容,
% 接下来的部分会介绍具体填写内容的方法。
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% \subsection{模板选项}
Yu Xiong's avatar
Yu Xiong committed
%
% 模板选项位于 \tn{documentclass} 后的方括号内,用于指定模板的行为。
% 下文中尖括号内列出了若干个允许的选项,其中加粗的为默认选项(缺省值)。
% \subsubsection{学位信息}
% \begin{function}[added=2021-09-07,updated=2022-07-23]{type}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{type} = <(bachelor)|master|doctor|postdoc>
%   \end{syntax}
% 选择毕业论文模板类型,这将决定模板整体的外观。可选值分别为
% 学士(本科生)、硕士研究生、博士研究生和博士后,默认为学士。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
%
% \begin{function}[added=2021-09-07,updated=2022-07-01]{degree}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{degree} = <(academic)|professional>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 选择研究生的学位类型。可选值分别学术型和专业型,默认为学术型。
% \end{function}
%
% \subsubsection{特殊页面}
%
% \begin{function}[added=2021-09-07,updated=2022-07-05]{nl-cover}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{nl-cover} = <\TFF>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 是否使用国家图书馆封面,默认关闭。
% 通过此项可用国家图书馆封面\emph{替换}普通封面。
Yu Xiong's avatar
Yu Xiong committed
% 由于本科生院文件中并未提及相关规定,故本选项仅对于研究生有效。
%
% \begin{function}[updated=2022-01-06]{decl-page}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{decl-page} = <\TFF>
%   \end{syntax}
% 是否需要自动生成声明页面,默认关闭。
% 通过此项,对于本科生模板可在封面后添加的诚信承诺书,对于研究生模板可在
% 封面后添加原创性声明\footnote{其中的打勾符号依赖 \pkg{unicode-math}。},
% 并且在最后一页添加学位论文出版授权书。
Yu Xiong's avatar
Yu Xiong committed
% 对于需要手动插入承诺书扫描页的情况,可以在导言区载入 \pkg{pdfpages} 宏包
atxy's avatar
atxy committed
% \cite{pdfpages},并在所需位置使用该宏包提供的 \tn{includepdf} 命令。
% 例如,可以用如下所示的命令插入扫描件的第一页,并插入紧随的一个空白页。
% \begin{latexexample}[moretexcs={\includepdf},emph={[2]pages}]
%   \includepdf[pages={1,{}}]{scanned.pdf}
%   % \setcounter{page}{1} % 使扫描页不占用页码
% \end{latexexample}
%
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% \subsubsection{页面模式}
%
% \begin{function}[added=2022-01-14]{oneside,twoside}
%   \begin{syntax}
atxy's avatar
atxy committed
%     <\OPT{oneside}|(\OPT{twoside})>
%   \end{syntax}
% 开启单面或双面模式,默认为双面模式。
% \end{function}
%
Yu Xiong's avatar
Yu Xiong committed
% 本选项继承自 \LaTeXe \cls{book} 标准文档类。
% 单双面选项为全局选项,开启后会改变页码编号,以及部分宏包的行为。
Yu Xiong's avatar
Yu Xiong committed
% 在单面模式下,页面是连续的,不会产生空白页;在双面模式下,
% 新的一章以及封面、摘要、参考文献表等特殊页面都会从奇数页开始,
% 在奇数页结束的内容后会补上一页空页,更适合印刷输出。
% \begin{function}[added=2021-12-15]{draft}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{draft} = <\TFF>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
Yu Xiong's avatar
Yu Xiong committed
% 是否开启草稿模式,默认关闭。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
%
Yu Xiong's avatar
Yu Xiong committed
% 本选项继承自 \LaTeXe \cls{book} 标准文档类。
% 草稿模式为全局选项,启用这一选项将产生以下整体影响:
Yu Xiong's avatar
Yu Xiong committed
% \begin{itemize}
%   \item 禁用封面的绘制(包括承诺和声明)
Yu Xiong's avatar
Yu Xiong committed
%   \item 显示页面文字范围边框以及页眉页脚线
%   \item 在超出宽度的内容右侧添加黑色方块标记
Yu Xiong's avatar
Yu Xiong committed
%   \item 不再渲染图片,使用含有图片路径的空白盒子占位
%   \item 不再渲染超链接及生成 PDF 书签
% \end{itemize}
% 草稿模式有助于提升编译速度以及检查格式问题,建议在定稿前始终开启。
Yu Xiong's avatar
Yu Xiong committed
%
% 启用这一选项也会改变特定宏包的行为,譬如在草稿模式下 \pkg{listings}
% 宏包的代码环境不会显示内容,具体效果需要参照各个宏包的说明文档。
% 如需抵消草稿模式的影响,请使用 \opt{final} 选项载入相关宏包。
% \begin{function}[added=2022-04-19,updated=2022-09-26]{anonymous}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{anonymous} = <\TFF>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 是否开启盲审模式。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
%
% 盲审模式会抹除论文中的学校和个人信息,效果包括:
% \begin{itemize}
%   \item 不显示校名校徽图片
%   \item 不显示“南京大学”字样
%   \item 不显示作者、导师等基本信息
%   \item 不显示声明页、致谢页
Yu Xiong's avatar
Yu Xiong committed
% \end{itemize}
%
Yu Xiong's avatar
Yu Xiong committed
% \subsubsection{可选宏包}
% \label{subsubsec:optional-pkg}
% \begin{function}[added=2022-08-03]{
Yu Xiong's avatar
Yu Xiong committed
%   biblatex,
%   cleveref,
Yu Xiong's avatar
Yu Xiong committed
%   unicode-math}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{biblatex}     = <\TTF>
%     \OPT{cleveref}     = <\TTF>
%     \OPT{ntheorem}     = <\TTF>
%     \OPT{enumitem}     = <\TTF>
%     \OPT{footmisc}     = <\TTF>
%     \OPT{unicode-math} = <\TTF>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 是否默认载入某些宏包,默认均是。选项名和宏包名是一致的。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
%
% \begin{function}[added=2022-08-03]{minimal}
%   \begin{syntax}
atxy's avatar
atxy committed
%     <\OPT{minimal}>
% 最小化模式,禁用所有上述宏包。
% \end{function}
%
% 本模板内置了一系列宏包以进行功能扩展。这些宏包为:
Yu Xiong's avatar
Yu Xiong committed
% \begin{description}
atxy's avatar
atxy committed
%   \item[\normalfont\pkg{biblatex}] 复杂参考文献数据的处理。
%   \item[\normalfont\pkg{cleveref}] 按来源类型自动处理引用标签。
%   \item[\normalfont\pkg{ntheorem}] 定理类环境定制。
%   \item[\normalfont\pkg{enumitem}] 列表环境样式定制。
%   \item[\normalfont\pkg{footmisc}] 脚注样式定制。
%   \item[\normalfont\pkg{unicode-math}] 支持 Unicode 数学字体。
Yu Xiong's avatar
Yu Xiong committed
% \end{description}
%
% 在某些情况下,这些宏包会与旧有的经验方法冲突,可以使用上述选项在模板
% 中禁用这些宏包,从而手动配置相关功能。
%
% \subsubsection{配置文件}
%
% \begin{function}[added=2022-02-23]{config}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{config} = \Arg{文件}
%   \end{syntax}
% 配置文件路径。
% \end{function}
Yu Xiong's avatar
Yu Xiong committed
% 本选项可用于载入额外的用户配置文件。该文件支持 \LaTeX3 语法。
Yu Xiong's avatar
Yu Xiong committed
%
%
% \subsubsection{指定字体}
%
% 学校论文格式要求使用的字体一般已经预装在各个操作系统,
% 本模板针对不同平台进行了自动检测适配,可以开箱即用。
% 如果希望更改本模板使用的字体,请填写以下两个选项以覆盖默认设置。
% \begin{function}[added=2021-09-07,updated=2021-12-18]{cjk-font,latin-font}
mc's avatar
mc committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{cjk-font} = <win|mac|fandol|founder|noto|source|none>
%     \OPT{latin-font} = <win|mac|gyre|none>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
Yu Xiong's avatar
Yu Xiong committed
% 手动指定字体。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
%
% 根据学校论文格式的要求,本模板使用的中文字体主要有{\songti 宋体}、
% {\heiti 黑体}、{\kaishu 楷体}、{\fangsong 仿宋}四种;
% 西文字体主要有衬线体(\textup{serif})、无衬线体(\textsf{sans-serif})
% 和等宽字体(\texttt{monospace})三种。
% 在生成论文时,需要将每一种字体(宋体、楷体)与一种字库(操作系统中的
% \file{.ttf} 文件)相对应。由于不同操作系统自带的字库不同,
% 在不同的操作系统上使用同一套配置会导致缺字、编译出错等后果。
mc's avatar
mc committed
% 因此,本模板对于中文字体和西文字体都提供了多种字体配置。
Yu Xiong's avatar
Yu Xiong committed
% 若要手动选择字体,则需将字体设置为 \opt{none},再通过 \pkg{fontspec}
% 宏包或 \pkg{ctex} 宏包中给出的命令来实现。
%
% \begin{function}[added=2022-07-02]{font-path}
%   \begin{syntax}
%     font-path = \Arg{文件夹}
%   \end{syntax}
% 字体文件目录。
% \end{function}
%
% 模板用到的部分字体(例如华文中宋)可能尚未安装在操作系统,
% 可以使用此选项手动指定搜索路径。
Yu Xiong's avatar
Yu Xiong committed
%
% ^^A 本模板默认使用操作系统安装的字体。可以使用本选项从任意目录载入字体。
%
% \paragraph{中文}
%
% 本模板提供的中文字体配置如表 \ref{tab:cjk-fontset} 所示。
Yu Xiong's avatar
Yu Xiong committed
% 在不指定字体配置的情况下,本模板默认使用与操作系统相对应的字体配置
Yu Xiong's avatar
Yu Xiong committed
% (见表中前三行,Windows 和 macOS 以外的系统采用
% \href{https://www.ctan.org/pkg/fandol}{Fandol} 配置)。
% 此外,我们也单独提供了\href{https://www.foundertype.com}
% {方正}和\href{https://github.com/adobe-fonts}{思源}两套中文字体配置。
%
% \begin{table}[!htbp]
%   \def\FD{http://www.foundertype.com/index.php/FontInfo/index/id/1}
%   \def\MN{https://mirrors.nju.edu.cn/adobe-fonts/source-han-}
%   \def\OT{/OTF/SimplifiedChinese/}
%   \def\FZ#1#2{\href{\FD #1}{方正 #2}}
%   \def\SC#1#2{\href{\MN #1\OT}{思源 #2 体}}
%   \centering
mc's avatar
mc committed
%   \begin{talltblr}[
Yu Xiong's avatar
Yu Xiong committed
%     caption = {中文字体配置},
%     label = {tab:cjk-fontset},
%     note{a} = {请下载简繁扩展(即 GBK 编码)版本},
%     note{b} = {使用\href{\FD164}{方正小标宋}作为方正书宋的粗体},
%     note{c} = {使用\href{\FD131}{方正黑体}作为方正细黑一的粗体},
Yu Xiong's avatar
Yu Xiong committed
%     note{d} = {在部分操作系统中可能已经预装 Google Noto 字体。
Yu Xiong's avatar
Yu Xiong committed
%       考虑到获取字体的难易程度,单独安装时建议采用 Adobe Source Han 字体
%       表示思源字体,请下载 Simplified Chinese(即后缀名为 SC)的版本},
%     note{e} = {思源字体并不包含楷书和仿宋,而 Adobe
%       楷体和仿宋难以直接下载,因此使用方正字体代替} ]
Yu Xiong's avatar
Yu Xiong committed
%     { cell{2}{2,4} = {white!70!njuyellow},
Yu Xiong's avatar
Yu Xiong committed
%       cell{4}{4}   = {white!70!njuyellow},
Yu Xiong's avatar
Yu Xiong committed
%       colspec = {ccccc} }
Yu Xiong's avatar
Yu Xiong committed
%   \toprule
Yu Xiong's avatar
Yu Xiong committed
%     配置名称         & 宋体             & 黑体               & 楷书          & 仿宋          \\
Yu Xiong's avatar
Yu Xiong committed
%   \midrule
Yu Xiong's avatar
Yu Xiong committed
%     \opt{win}        & 中易宋体         & 中易黑体           & 中易楷体      & 中易仿宋      \\
%     \opt{mac}        & 华文宋体         & 华文黑体           & 华文楷体      & 华文仿宋      \\
%     \opt{fandol}     & Fandol 宋体      & Fandol 黑体        & Fandol 楷体   & Fandol 仿宋   \\
%     \opt{founder}\TA & \FZ{51}{书宋}\TB & \FZ{61}{细黑一}\TC & \FZ{37}{楷体} & \FZ{28}{仿宋} \\
%     \opt{noto}   \TD & 思源宋体         & 思源黑体           & 方正楷体\TE   & 方正仿宋\TE   \\
%     \opt{source} \TD & \SC{serif}{宋}   & \SC{sans}{黑}      & 方正楷体\TE   & 方正仿宋\TE   \\
Yu Xiong's avatar
Yu Xiong committed
%   \bottomrule
mc's avatar
mc committed
%   \end{talltblr}
% \end{table}
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% 由于各操作系统对自带字体的支持程度不同,本模板对不同字体加粗的方式
% 有所差别,表 \ref{tab:cjk-fontset} 中,黄色底色的字体采用算法加粗。
% 除此以外,各种字体在设计上也存在差异,因此本模板在不同操作系统下编
% 译的结果可能存在细微不同,使用时请注意。若想要获得与 Word 版本模板
% 最为贴近的体验,可以通过手动安装 Windows 自带的中易宋体、中易黑体、
% 中易楷体和中易仿宋,并设置使用 Windows 字体来实现。
Yu Xiong's avatar
Yu Xiong committed
% \paragraph{西文}
%
% 本模板提供的西文字体配置如表 \ref{tab:latin-fontset} 所示。
% 在不指定字体配置的情况下,本模板默认使用与操作系统相对应的
% 字体配置。Windows 和 macOS 以外的系统采用 \opt{gyre} 配置。
Yu Xiong's avatar
Yu Xiong committed
% \begin{table}[!htbp]
%   \def\TG#1{TG~#1~\TA}
%   \centering
Yu Xiong's avatar
Yu Xiong committed
%   \begin{talltblr} [
%       caption = {西文字体配置},
%       label   = {tab:latin-fontset},
Yu Xiong's avatar
Yu Xiong committed
%       note{a} = {TG 表示 \href{http://www.gust.org.pl/projects/e-foundry/tex-gyre}{\TeX~Gyre}。} ]
Yu Xiong's avatar
Yu Xiong committed
%     { colspec = {cccc} }
%       配置名称   & 衬线体          & 无衬线体   & 等宽字体    \\
%       \opt{win}  & Times~New~Roman & Arial      & Courier~New \\
%       \opt{mac}  & Times~New~Roman & Arial      & Menlo       \\
%       \opt{gyre} & \TG{Termes}     & \TG{Heros} & \TG{Cursor} \\
Yu Xiong's avatar
Yu Xiong committed
%   \end{talltblr}
% \end{table}
Yu Xiong's avatar
Yu Xiong committed
%
% macOS 用户需要额外注意的是,此系统内置的 Times New Roman 并没有 smcp
% 这一特性,所以 \tn{textsc} 命令无法产生正确的小型大写字母字型,导致
% 研究生模板英文封面的部分内容不能正确显示。另外,macOS 中的 Times 字体
% 也不包含 smcp 特性。
% 相应的解决办法是拷贝一份 Windows 预装的 Times New Roman
% \footnote{Times New Roman(或 TimesNewRomanPSMT)在 Windows 和 macOS
% 下的区别在于版本。根据我们的测试,Windows 10 下该字体的版本为 7.00,
% 而 macOS Monterey 下该字体的版本为 5.01.3x。这显然是苹果的问题。},
% 或者使用 \TeX{} Live 内置的 \TeX{} Gyre Termes 字体
% \footnote{\TeX{} Gyre Termes 可以视作 Times New Roman 的重制版,两者的
% 视觉感受是一致的。},这两个字体都具备 smcp 特性。
% 本模板在检测到 Times New Roman 不包含 smcp 特性时,会抛出警告并使用
% \TeX{} Gyre Termes 字体进行替换。
Yu Xiong's avatar
Yu Xiong committed
% \paragraph{数学}
%
% \begin{function}[added=2022-07-02]{math-font}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{math-font} = <asana|cambria|fira|garamond|lm|...|termes|(xits)|none>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 设置数学字体。完整列表见表 {tab:math-fontset}。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
%
% 本模板默认采用 \pkg{unicode-math} 宏包配置数学模式下使用的字体。
% 与原生 \LaTeX{} 最接近的字体对应 \opt{lm},MS Word 预装的字体对应 \opt{cambria}。
Yu Xiong's avatar
Yu Xiong committed
% \begin{table}[!htbp]
%   \def\NCM{New Computer Modern}
Yu Xiong's avatar
Yu Xiong committed
%   \centering
%   \begin{talltblr} [
%       caption = {数学字体配置},
%       label   = {tab:math-fontset},
Yu Xiong's avatar
Yu Xiong committed
%       note{a} = {TG 表示 \href{http://www.gust.org.pl/projects/e-foundry/tex-gyre}{\TeX~Gyre}。},
Yu Xiong's avatar
Yu Xiong committed
%       note{b} = {粗体使用 XITS Math Bold。} ]
%     { colspec = {ccl} }
%   \toprule
%     配置名称          & 字体名称            & 描述                       \\
Yu Xiong's avatar
Yu Xiong committed
%   \midrule
%     \opt{asana}       & Asana Math          &                            \\
%     \opt{cambria}     & Cambria Math        & 微软 Office 预装的数学字体 \\
%     \opt{fira}        & Fira Math           & 无衬线数学字体,Fira 风格  \\
%     \opt{garamond}    & Garamond Math       & Garamond 风格              \\
%     \opt{lm}          & Latin Modern Math   & Computer Modern 风格       \\
%     \opt{libertinus}  & Libertinus Math     &                            \\
atxy's avatar
atxy committed
%     \opt{newcm}       & \NCM~Math           & Computer Modern 风格       \\
%     \opt{stix}        & STIX Math           & Times 风格                 \\
%     \opt{bonum}       & TG Bonum Math   \TA &                            \\
%     \opt{dejavu}      & TG DejaVu Math  \TA & DejaVu 风格                \\
%     \opt{pagella}     & TG Pagella Math \TA & Palatino 风格              \\
%     \opt{schola}      & TG Schola Math  \TA &                            \\
%     \opt{termes}      & TG Termes Math  \TA & Times 风格                 \\
%     \opt{xits}        & XITS Math       \TB & 基于 STIX,Times 风格      \\
Yu Xiong's avatar
Yu Xiong committed
%   \bottomrule
%   \end{talltblr}
% \end{table}
%
% \paragraph{授权}
Yu Xiong's avatar
Yu Xiong committed
%
atxy's avatar
atxy committed
% 本节提及的字库中,中文字库只有方正书宋、方正黑体、方正楷体、方正仿宋、
% 两种思源字体和四种Fandol字体能够\emph{免费商用};
atxy's avatar
atxy committed
% 英文字库中只有 Times New Roman、XITS 和三种 \TeX~Gyre字体能够\emph{免费商用}。
% 因此,若需要将本模板用于商业相关的活动,请咨询专业人士。
%
Yu Xiong's avatar
Yu Xiong committed
%
% \subsection{设置接口}
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% \begin{function}[added=2021-09-10,updated=2022-08-01]{\njusetup}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
Yu Xiong's avatar
Yu Xiong committed
%     \tn{njusetup}\oarg{键路径}\marg{设置项}
Yu Xiong's avatar
Yu Xiong committed
% \cls{njuthesis} 文档类的通用设置命令,提供自定义接口。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
%
atxy's avatar
atxy committed
% 根据可选参数填写方式不同,\tn{njusetup} 共有四种等效的使用方式,
Yu Xiong's avatar
Yu Xiong committed
% 可以根据实际情况进行灵活选择。
%
atxy's avatar
atxy committed
% 在键路径留空时,为最基础的用法。此时设置项的参数是一个使用
% \emph{英文半角逗号}分隔的键值列表,通常形如 \meta{key}|=|\meta{value}。
Yu Xiong's avatar
Yu Xiong committed
%
atxy's avatar
atxy committed
% \begin{latexexample}[moretexcs={\njusetup},emph={[2]info,bib},
%   emph={[3]title,author,resource}]
Yu Xiong's avatar
Yu Xiong committed
%   \njusetup{
%       info/title   = {奇文},
%       info/author  = {佚名},
atxy's avatar
atxy committed
%       bib/resource = {ref1.bib, ref2.bib}
Yu Xiong's avatar
Yu Xiong committed
%     }
% \end{latexexample}
%
% 以上为最基础的填写方法,可以分组为:
%
atxy's avatar
atxy committed
% \begin{latexexample}[moretexcs={\njusetup},emph={[2]info,bib},
%   emph={[3]title,author,resource}]
Yu Xiong's avatar
Yu Xiong committed
%   \njusetup{
%       info = {
%           title    = {奇文},
%           author   = {佚名}
%         },
%       bib = {
atxy's avatar
atxy committed
%           resource = {ref1.bib, ref2.bib},
Yu Xiong's avatar
Yu Xiong committed
%         }
%     }
% \end{latexexample}
%
% 在键路径填入模块(类)时,只能设定当前模块下的选项。此时参数是键值列表。
%
atxy's avatar
atxy committed
% \begin{latexexample}[moretexcs={\njusetup},emph={[2]info,bib},
%   emph={[3]title,author,resource}]
Yu Xiong's avatar
Yu Xiong committed
%   \njusetup[info]{
%       title    = {奇文},
%       author   = {佚名}
%     }
%   \njusetup[bib]{
atxy's avatar
atxy committed
%       resource = {ref1.bib, ref2.bib}
Yu Xiong's avatar
Yu Xiong committed
%     }
% \end{latexexample}
%
% 在键路径填入具体选项名称时,只能设定该选项的值。
%
atxy's avatar
atxy committed
% \begin{latexexample}[moretexcs={\njusetup},emph={[2]info,bib},
%   emph={[3]title,author,resource}]
Yu Xiong's avatar
Yu Xiong committed
%   \njusetup[info/title]{奇文}
%   \njusetup[info/author]{佚名}
atxy's avatar
atxy committed
%   \njusetup[bib/resource]{ref1.bib, ref2.bib}
Yu Xiong's avatar
Yu Xiong committed
% \end{latexexample}
%
%
% \subsection{个人信息}
%
Yu Xiong's avatar
Yu Xiong committed
% |info| 类用于设置个人信息。
% 以下为全部的个人信息参数,其中带有星号的为对应的英文字段。
Yu Xiong's avatar
Yu Xiong committed
%
% \begin{function}[updated=2022-01-14]{info/title,info/title*}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{title}  = \Arg{标题}
%     \OPT{title*} = \Arg{英文标题}
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 题目。由于封面上提供给中文题目的横线长度有限\footnote{单行最长约为15
% 个汉字,建议总长度不超过45字,当然你也可以对照 \ref{subsubsec:modify-length}
% 节修改横线长度},本模板默认会自动对标题进行换行。
% 如果需要手动指定换行位点,请使用换行控制符( |\\| )。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
%
% 绘制封面及摘要中的标题涉及断行处理,无法对空字符串产生正确结果。
% 因而在手动将标题设置为空时,本模板将抛出如下错误:
% \begin{shellexample}[deletekeywords={in}]
%   ! Package njuthesis Error: The title should not be left blank.
%   (njuthesis)                Please check whether you have fill in both
%   (njuthesis)                Chinese and English titles.
% \end{shellexample}
%
Yu Xiong's avatar
Yu Xiong committed
% \begin{function}[updated=2021-10-01]{info/keywords,info/keywords*}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{keywords}  = \Arg{关键词}
%     \OPT{keywords*} = \Arg{英文关键词}
% 关键词列表。关键词之间需要使用英文半角逗号隔开,
% 含有空格的关键字需要使用花括号包裹以避免歧义。可以参照下方的填写示例。
Yu Xiong's avatar
Yu Xiong committed
% \begin{function}[updated=2021-10-01]{info/grade}
atxy's avatar
atxy committed
%     \OPT{grade} = \Arg{20XX}
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 年级,推荐格式为“20XX”。
% \end{function}
%
Yu Xiong's avatar
Yu Xiong committed
% \begin{function}[updated=2021-10-01]{info/student-id}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{student-id} = \Arg{学号或工号}
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
Yu Xiong's avatar
Yu Xiong committed
% 学号或工号。南京大学本科生为9位数字学号,
% 研究生为两位大写字母标识加上数字组成的学号(2022级改为纯数字)。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
%
Yu Xiong's avatar
Yu Xiong committed
% \begin{function}[updated=2021-10-01]{info/author,info/author*}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{author}  = \Arg{你的名字}
%     \OPT{author*} = \Arg{姓名拼音}
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 姓名。
% \end{function}
Yu Xiong's avatar
Yu Xiong committed
% \begin{function}[updated=2021-10-01]{info/department,info/department*}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{department}  = \Arg{院系}
%     \OPT{department*} = \Arg{院系}
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 院系。
% \end{function}
% \begin{function}[updated=2023-12-05]{info/major,info/major*}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{major}  = \Arg{专业}
%     \OPT{major}  = \Arg{封面专业, 摘要专业}
atxy's avatar
atxy committed
%     \OPT{major*} = \Arg{专业}
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 专业。研究生的专业型学位封面上,“专业学位类别(领域)”一栏的
% 填写内容可能与摘要页不一致,可以使用半角逗号分隔两个值。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
Yu Xiong's avatar
Yu Xiong committed
% \begin{function}[updated=2021-10-01]{info/field,info/field*}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{field}  = \Arg{方向}
%     \OPT{field*} = \Arg{方向}
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 研究领域。只有研究生存在研究领域的说法,本科生无需填写。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
Yu Xiong's avatar
Yu Xiong committed
%
% \begin{function}[updated=2022-01-12]{info/supervisor,info/supervisor*}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{supervisor}  = \Arg{导师姓名,职称}
%     \OPT{supervisor*} = \Arg{导师英文全称}
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
Yu Xiong's avatar
Yu Xiong committed
% 导师全称。请使用逗号( |,| )分隔导师的中文姓名与职称,英文名则不需添加逗号。
% \end{function}
%
% \begin{function}[updated=2021-01-12]{info/supervisor-ii,info/supervisor-ii*}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{supervisor-ii}  = \Arg{第二导师姓名,职称}
%     \OPT{supervisor-ii*} = \Arg{第二导师英文全称}
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 第二导师全称。无第二导师时不填即可。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
Yu Xiong's avatar
Yu Xiong committed
% \begin{function}[updated=2022-01-14]{info/submit-date}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{submit-date} = \Arg{yyyy-mm-dd}
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 提交日期。中英文日期现在可以由 ISO 日期格式\cite{gb-t-7408-2005}
% 的字符串统一生成。如果在等号后留空,则原本中文日期处使用空白的年月日字样;
% 如果不添加此设置项,则自动使用编译当天日期。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
%
% \begin{function}[updated=2022-01-14]{info/defend-date}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{defend-date} = \Arg{yyyy-mm-dd}
%   \end{syntax}
% 答辩日期,只对研究生有效,要求同提交日期。
% \end{function}
%
% \begin{function}[updated=2022-05-23]{info/confer-date}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{confer-date} = \Arg{yyyy-mm-dd}
%   \end{syntax}
% 学位授予日期,只用于国家图书馆封面,要求同提交日期。
% \end{function}
%
% \begin{function}[updated=2022-05-23]{info/bottom-date}
atxy's avatar
atxy committed
%     \OPT{bottom-date} = \Arg{yyyy-mm-dd}
%   \end{syntax}
% 底部日期,只用于国家图书馆封面,要求同提交日期。
% \end{function}
%
% \begin{function}[updated=2022-05-27]{info/chairman,info/reviewer}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{chairman} = \Arg{答辩主席姓名职称}
%     \OPT{reviewer} = \Arg{答辩评委姓名职称}
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 答辩委员会信息,分别为评审委员会主席及成员的姓名加职称,只对研究生有效。
% 评审成员名单以逗号分隔的列表形式存储,填写方法同关键词。
% 如果是盲审,填入“盲审”二字即可。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
%
% \begin{function}[updated=2021-10-01]{info/clc,info/udc}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
%     \OPT{clc} = \Arg{中国图书分类号}
%     \OPT{udc} = \Arg{国际图书分类号}
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 研究生学位论文封面上的\href{http://www.ztflh.com/}{中国图书分类号}和\ignorespaces
% \href{http://www.udcsummary.info/php/index.php?lang=chi&pr=Y}{国际图书分类号}。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
%
% \begin{function}[updated=2021-10-01]{info/secret-level}
%   \begin{syntax}
%     \OPT{secret-level} = \Arg{密级}
%   \end{syntax}
% 研究生学位论文封面上的密级。
% \end{function}
%
% \begin{function}[updated=2021-10-01]{info/supervisor-contact}
%   \begin{syntax}
%     \OPT{supervisor-contact} = \Arg{导师联系方式}
%   \end{syntax}
% 国家图书馆封面上的导师联系方式。
% \end{function}
%
% \begin{function}[added=2023-04-29]{info/school-code}
%   \begin{syntax}
%     \OPT{school-code} = \Arg{10284}
%   \end{syntax}
% 研究生学位论文封面上的学校代码。\CJKsout{你不会真的想改这个吧?}
% \end{function}
%
% \begin{function}[added=2023-04-24]{info/degree,info/degree*}
%   \begin{syntax}
%     \OPT{degree}  = \Arg{中文学位名}
%     \OPT{degree*} = \Arg{英文学位名}
%   \end{syntax}
% 研究生国家图书馆封面英文封面上的学位名称。默认会由模板通过 \opt{degree}
% 和 \opt{type} 文档类选项生成,也可以由本选项自定义名称。
% \end{function}
Yu Xiong's avatar
Yu Xiong committed
% \subsubsection{输入示范}
Yu Xiong's avatar
Yu Xiong committed
% 本科生可以参考如下范例输入个人信息。注意不能有空行。
atxy's avatar
atxy committed
% \begin{latexexample}[moretexcs={\njusetup},emph={[2]info},emph={[3]title,title*,
%   keywords,keywords*,grade,student-id,author,author*,department,department*,
%   major,major*,supervisor,supervisor*,submit-date}]
Yu Xiong's avatar
Yu Xiong committed
%   \njusetup[info]{
%       title        = {第一行标题\\第二行标题},
atxy's avatar
atxy committed
%       title*       = {My Awesome Work},
Yu Xiong's avatar
Yu Xiong committed
%       keywords     = {我,就是,充数的,关键词},
%       keywords*    = {Dummy, Keywords, Here, {it is}},
%       grade        = {2018},
%       student-id   = {189114514},
%       author       = {周煜华},
%       author*      = {Zhou Yuhua},
%       department   = {化学化工学院},
%       department*  = {School of Chemistry and Chemical Engineering},
%       major        = {化学},
%       major*       = {Chemistry},
%       supervisor   = {李成殿,教授},
%       supervisor*  = {Professor Li Chengdian},
%       submit-date  = {2021-09-12}
%   }
% \end{latexexample}
Yu Xiong's avatar
Yu Xiong committed
%
% 研究生可以参考如下列表输入个人信息
Yu Xiong's avatar
Yu Xiong committed
%
atxy's avatar
atxy committed
% \begin{latexexample}[moretexcs={\njusetup},emph={[2]info},emph={[3]title,title*,
%   keywords,keywords*,grade,student-id,author,author*,department,department*,
%   major,major*,field,field*,supervisor,supervisor*,submit-date,defend-date,email}]
Yu Xiong's avatar
Yu Xiong committed
%   \njusetup[info]{
%       title        = {第一行标题\\第二行标题\\第三行标题},
atxy's avatar
atxy committed
%       title*       = {My Awesome Work},
Yu Xiong's avatar
Yu Xiong committed
%       keywords     = {我,就是,充数的,关键词},
%       keywords*    = {Dummy,Keywords,Here,{it is}},
%       grade        = {2018},
%       student-id   = {DZ18114514},
%       author       = {周煜华},
%       author*      = {Zhou Yuhua},
%       department   = {化学化工学院},
%       department*  = {School of Chemistry and Chemical Engineering},
%       major        = {化学},
%       major*       = {Chemistry},
%       field        = {物理化学},
%       field*       = {Physical Chemistry},
%       supervisor   = {李成殿,教授},
%       supervisor*  = {Professor Li Chengdian},
%       submit-date  = {2021-09-12},
%       defend-date  = {2022-01-15},
%       clc          = {0175.2},
%       udc          = {004.72},
%       secret-level = {公开},
%       chairman     = {张~教授},
%       reviewer     = {王~教授,赵~副教授,李~助理研究员},
Yu Xiong's avatar
Yu Xiong committed
%       email        = {git+nju-lug-email-3104-issue-@yaoge123.cn}
%   }
% \end{latexexample}
%
% 如果需要国家图书馆封面,还需要加入如下信息
%
atxy's avatar
atxy committed
% \begin{latexexample}[moretexcs={\njusetup},emph={[2]info},emph={[3]confer-date,
%   bottom-date,chairman,reviewer,clc,secret-level,udc,supervisor-contact}]
Yu Xiong's avatar
Yu Xiong committed
%   \njusetup[info]{
%       confer-date  = {2022-05-20},
%       bottom-date  = {2022-05-21},
%       supervisor-contact = {化学化工学院 仙林大道 163 号 210046}
Yu Xiong's avatar
Yu Xiong committed
%   }
% \end{latexexample}
%
% 博士后可以参考如下范例输入个人信息。
%
atxy's avatar
atxy committed
% \begin{latexexample}[moretexcs={\njusetup},emph={[2]info},emph={[3]title,title*,
%   keywords,keywords*,student-id,author,department,major,supervisor,submit-date}]
Yu Xiong's avatar
Yu Xiong committed
%   \njusetup[info]{
%       title        = {第一行标题\\第二行标题},
atxy's avatar
atxy committed
%       title*       = {My Awesome Work},
Yu Xiong's avatar
Yu Xiong committed
%       keywords     = {我,就是,充数的,关键词},
%       keywords*    = {Dummy, Keywords, Here, {it is}},
%       student-id   = {189114514},
%       author       = {周煜华},
%       department   = {化学化工学院},
%       major        = {化学},
%       supervisor   = {李成殿,教授},
%       submit-date  = {2021-09-12}
% \end{latexexample}
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% \subsection{编写正文}
Yu Xiong's avatar
Yu Xiong committed
%
Yu Xiong's avatar
Yu Xiong committed
% 与导言区相对的是正文,位于 \env{document} 环境内。
% \begin{function}{\mainmatter}
atxy's avatar
atxy committed
%   \tn{mainmatter} 标志着正文的开始,使用阿拉伯数字重新进行页码编号,
%   并设置页眉页脚格式。
% \end{function}
% \begin{function}{\chaptermark,\sectionmark}
%   \begin{syntax}
%     \tn{chapter}\oarg{用在页眉的章标题}\marg{完整的章标题}
Yu Xiong's avatar
Yu Xiong committed
%     \tn{sectionmark}\marg{用在目录中的章标题}
%     \tn{section}\oarg{用在页眉的章标题}\marg{完整的节标题}
%     \tn{sectionmark}\marg{用在目录节标题}
%   \end{syntax}
% 如果页眉内容发生了冲突,可使用这两个命令细化定制。
% \end{function}
%
Yu Xiong's avatar
Yu Xiong committed
%
% \subsubsection{页面}
%
% 在本模板预定义的页面样式中:本科生使用 \opt{plain} 样式,无页眉,
% 页面编号使用五号罗马体,居中位于页脚;研究生使用 \opt{headings} 样式,
% 页眉使用五号楷体,包括章名(奇数页右侧)和节名(偶数页左侧),
% 页面编号使用五号罗马体,居中位于页脚。在单面模式下,页眉会同时显示章节名。
%
% 考虑到各个院系对于页眉内容的规定并不一致,本模板提供了若干个自定义选项。
%
Yu Xiong's avatar
Yu Xiong committed
% \begin{function}{header/content,header/content*,footer/content,footer/content*}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{content}  = \{\Arg{位置}\Arg{内容},\Arg{位置}\Arg{内容},...\}
%     \OPT{content*} = \{\Arg{位置}\Arg{内容},\Arg{位置}\Arg{内容},...\}
%   \end{syntax}
% 页眉页脚的格式与内容设置。带有星号的设置项供单面模式下使用。
% \end{function}
%
atxy's avatar
atxy committed
% 页眉页脚的内容设置是一个逗号分隔的列表,实际上是 \tn{fancyhead} 和
% \tn{fancyfoot} 命令的选项。前一个花括号内为大写字母指定的位置选项,
% 可使用左(\opt{L})、中(\opt{C})、右(\opt{R})。
% 双面模式下可额外指定出现在奇数页(\opt{O})还是偶数页(\opt{E})。
% 详细说明请参考 \pkg{fancyhdr} 的手册。
%
% 接下来展示了一个手动设置页眉内容的例子。这里我们清空了页脚,
% 并将页眉格式设置成五号黑体,奇数页左侧为节名,右侧为页码,
% 偶数页左侧为页码,右侧为章名。
Yu Xiong's avatar
Yu Xiong committed
% \begin{latexexample}[moretexcs={\njusetup,\sffamily,\njusetformat},
atxy's avatar
atxy committed
%   emph={[2]header,footer},emph={[3]content}]
Yu Xiong's avatar
Yu Xiong committed
%   \njusetup[header/content]{
%       { OR } { \thepage }, { OL } { \rightmark },
%       { EL } { \thepage }, { ER } { \leftmark  }
%   },
%   \njusetup[footer/content]{}
%   \njusetformat{header}{\small\sffamily}
% \end{latexexample}
%
%
Yu Xiong's avatar
Yu Xiong committed
% \subsubsection{字形}
% 本模板继承 \pkg{ctex} 宏集提供的字形字号设置,以备不时之需。换句话说,
% 除非你有十足的把握,认为某处字体产生了偏差\footnote{在此情况下也应当
% 直接到 GitHub 仓库反馈},否则无需动用这些命令处理样式问题。
Yu Xiong's avatar
Yu Xiong committed
% \begin{function}[added=2021-09-22]{\njuline}
%   \begin{syntax}
%     \tn{njuline}\Arg{文字}
%   \end{syntax}
Yu Xiong's avatar
Yu Xiong committed
% 为了避免原生 \tn{uline} 命令在中文环境下不能正常换行的问题,
Yu Xiong's avatar
Yu Xiong committed
% 本模板使用 \tn{njuline} 作为替代方案,分别对 \XeLaTeX 的
% \pkg{xeCJKfntef} 包和 \LuaLaTeX 的 \pkg{lua-ul}
Yu Xiong's avatar
Yu Xiong committed
% 包中的下划线命令进行了包装。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
Yu Xiong's avatar
Yu Xiong committed
% \subsubsection{列表}
%
% 模板默认载入 \pkg{enumitem} 宏包,对三个常用列表环境内的条目间距进行压缩。
% 可以通过第 \ref{subsubsec:optional-pkg} 节提供的选项禁用该宏包。
% \subsubsection{图片}
%
% \begin{function}[added=2022-08-06]{image/path}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{path} = \{\marg{路径1},\marg{路径2},...\}
atxy's avatar
atxy committed
% 图片搜索路径,等效于 \tn{graphicspath}。这个选项仅能设置一次。
Yu Xiong's avatar
Yu Xiong committed
% \subsubsection{脚注}
%
% \begin{function}[added=2022-05-01,updated=2022-10-16]{footnote/style}
%   \begin{syntax}
%     \OPT{style} = <(plain)|pifont|circled|circled*>
%   \end{syntax}
% 设置脚注编号样式。默认为普通数字;使用 \opt{pifont} 可修改为带圈数字,
Yu Xiong's avatar
Yu Xiong committed
% 由于字体包含的字符数量有限,单页不建议超过10条脚注;使用 \opt{circled} 或 \opt{circled*}
% 选项同样可修改为带圈数字,且不受单页脚注数量的限制,带星号的选项为黑底白字(阴文)。
% \footnote{此功能依赖的 \pkg{circledtext} 宏包于 2022 年 4 月发布,可能需要手动安装。}
% \end{function}
%
% \begin{function}[added=2022-10-16]{footnote/circledtext-option}
%   \begin{syntax}
%     \OPT{circledtext-option} = \meta{选项列表}
%   \end{syntax}
% \opt{circled} 或 \opt{circled*} 选项的带圈数字编号使用 \pkg{circledtext}
% 宏包绘制,可使用本选项载入更多定制设置,详见其手册。
% \end{function}
%
% \begin{function}[added=2022-10-16]{footnote/hang}
%   \begin{syntax}
%     \OPT{hang} = \TTF
%   \end{syntax}
% 是否进行悬挂缩进。默认为是,缩进宽度为 \qty{1.5}{em}。
% \end{function}
%
% 脚注样式的调整依赖 \pkg{footmisc}。如果希望使用 \LaTeX 的默认样式,
% 可以通过第 \ref{subsubsec:optional-pkg} 节提供的选项禁用该宏包。
%
% \subsubsection{数学符号}
Yu Xiong's avatar
Yu Xiong committed
% ^^A \url{https://www.caam.rice.edu/~heinken/latex/symbols.pdf}
% ^^A http://mirrors.ctan.org/macros/unicodetex/latex/unicode-math/unimath-symbols.pdf
% 模板使用 \pkg{unicode-math} 宏包配置数学字体,该方案目前不兼容
% 传统的 \pkg{amsfonts}、\pkg{amssymb}、\pkg{bm}
Yu Xiong's avatar
Yu Xiong committed
% \footnote{\url{https://tex.stackexchange.com/q/528831/}}
% 、\pkg{upgreek} 等宏包。需要使用新方案提供的相应命令。
% 例如,加粗数学符号的命令为 \tn{symbf}。
% 更多细节请查阅 \pkg{unicode-math} 手册。
%
% 如果您对此并不熟悉,也可以通过第 \ref{subsubsec:optional-pkg}
% 节提供的选项禁用该宏包。\footnote{禁用后本节提供的设置均不会生效。}
%
Yu Xiong's avatar
Yu Xiong committed
% 中文论文的数学符号默认遵循 GB/T 3102--93《物理科学和技术中
% 使用的数学符号》\cite{gb-3102-93},该标准参照采纳 ISO 31-11:1992,
Yu Xiong's avatar
Yu Xiong committed
% \footnote{目前已更新为 ISO 80000-2:2019。},
Yu Xiong's avatar
Yu Xiong committed
% 但是与 \TeX{} 默认的美国数学学会(AMS)的习惯有许多差异。
Yu Xiong's avatar
Yu Xiong committed
%
% \begin{function}[added=2022-07-31]{math/style}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{style} = <TeX|ISO|(GB)>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 数学符号风格。
% \end{function}
%
% 默认的国标风格 \opt{GB} 相当于在导言区设置了
atxy's avatar
atxy committed
% \begin{latexexample}[moretexcs={\njusetup},emph={[2]math},
%   emph={[3]integral,integral-limits,less-than-or-equal,
%   math-ellipsis,partial,real-part,vector,uppercase-greek}]
Yu Xiong's avatar
Yu Xiong committed
%   \njusetup[math]{
Yu Xiong's avatar
Yu Xiong committed
%       integral           = upright,
%       integral-limits    = false,
Yu Xiong's avatar
Yu Xiong committed
%       less-than-or-equal = slanted,
Yu Xiong's avatar
Yu Xiong committed
%       math-ellipsis      = centered,
Yu Xiong's avatar
Yu Xiong committed
%       partial            = upright,
%       real-part          = roman,
Yu Xiong's avatar
Yu Xiong committed
%       vector             = boldfont,
Yu Xiong's avatar
Yu Xiong committed
%       uppercase-greek    = italic
Yu Xiong's avatar
Yu Xiong committed
%   }
% \end{latexexample}
%
% 用户也可以逐项修改数学样式。
%
% \begin{function}[added=2022-07-31]{math/integral}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{integral} = <upright|slanted>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 积分号的正/斜体。
% 该选项需要字体的支持,目前仅限 \opt{xits}、\opt{newcm}。
% \end{function}
%
% \begin{function}[added=2022-07-31]{math/integral-limits}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{integral-limits} = <\TF>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 积分号上下限的位置,可选:\opt{true}(在上下)、\opt{false}(在右侧)。
% 这个设置只影响行间公式,行内公式统一居右侧,不受影响。
% \end{function}
%
% \begin{function}[added=2022-07-31]{math/less-than-or-equal}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{less-than-or-equal} = <slanted|horizontal>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 小于等于号和大于等于号的字形。
atxy's avatar
atxy committed
% 这将控制 \tn{le}、\tn{ge}、\tn{leq} 和 \tn{geq} 的符号是
Yu Xiong's avatar
Yu Xiong committed
% “$\leqslant$、$\geqslant$”还是“$\leq$、$\geq$”。
% \end{function}
%
% \begin{function}[added=2022-07-31]{math/math-ellipsis}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{math-ellipsis} = <centered|lower>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
atxy's avatar
atxy committed
% 省略号 \tn{dots} 的样式,可选:\opt{centered}(按照中文的习惯固定居中)、
Yu Xiong's avatar
Yu Xiong committed
% \opt{lower}(取决于前后符号的位置)。
atxy's avatar
atxy committed
% 其他的省略号命令如 \tn{lots}、\tn{cdots} 则不受影响。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
%
% \begin{function}[added=2022-07-31]{math/partial}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{partial} = <upright|italic>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 偏微分符号的正/斜体。
% \end{function}
%
% \begin{function}[added=2022-07-31]{math/real-part}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{real-part} = <roman|fraktur>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
atxy's avatar
atxy committed
% 实部 \tn{Re} 和虚部 \tn{Im} 的字体。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
%
% \begin{function}[added=2022-07-31]{math/vector}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{vector} = <boldfont|arrow>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 向量的表示方法,可选粗斜体或箭头。
% \end{function}
%
% \begin{function}[added=2022-07-31]{math/uppercase-greek}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{uppercase-greek} = <upright|italic>
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 大写希腊字母的正/斜体。
atxy's avatar
atxy committed
% 有限增量符号 $\increment x$ 固定使用正体,推荐使用 \tn{increment} 表示。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
%
% 本模板的设置并不能覆盖所有符号,一些需要写作时手动处理的要点包括:
Yu Xiong's avatar
Yu Xiong committed
% \begin{itemize}
%   \item 数学常数和特殊函数名用正体,如
%   \begin{itemize}
%     \item $\uppi$ 使用 |$\uppi$|
%     \item $\symup{i}$ 使用 |$\symup{i}$|
%     \item $\symup{e}$ 使用 |$\symup{e}$|
Yu Xiong's avatar
Yu Xiong committed
%   \end{itemize}
%   \item 微分号使用正体,如
%   \begin{itemize}
%     \item $\mathrm{d} \varphi / \mathrm{d} t$
%           使用 |$\mathrm{d} \varphi / \mathrm{d} t$|
%   \end{itemize}
% \end{itemize}
% \subsubsection{定理环境}
% 模板使用 \pkg{ntheorem} 宏包配置定理类环境,提供了一系列选项。
% 您也可以通过第 \ref{subsubsec:optional-pkg} 节提供的选项禁用该宏包。
% \footnote{禁用后本节提供的设置均不会生效。}
% 以下选项用于定义定理类环境的样式。
%
% \begin{function}[added=2022-04-21]{theorem/style}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{style} = <(plain)|break|change|margin|empty|...>
atxy's avatar
atxy committed
% 定理基本样式。等效于 \tn{theoremstyle}\marg{样式名称}。
% \end{function}
%
% \begin{function}[added=2022-04-21]{theorem/header-font}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{header-font} = \meta{头部字体格式}
atxy's avatar
atxy committed
% 定理头部字体格式。等效于 \tn{theoremheaderfont}\marg{格式}。
% \end{function}
%
% \begin{function}[added=2022-04-21]{theorem/body-font}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{body-font} = \meta{内部字体格式}
atxy's avatar
atxy committed
% 定理内部字体格式。等效于 \tn{theorembodyfont}\marg{格式}。
% \end{function}
%
% \begin{function}[added=2022-04-21]{theorem/qed-symbol}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{qed-symbol} = \meta{证毕符号}
atxy's avatar
atxy committed
% 证毕符号。等效于 \tn{theoremsymbol}\marg{符号}。默认为空心方块(\mdlgwhtsquare)。
% 禁用 \pkg{unicode-math} 时为实心黑色方块(\rule{1ex}{1ex})。
% \end{function}
%
% \begin{function}[added=2022-04-21]{theorem/counter}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{counter} = <part|(chapter)|section|...>
%   \end{syntax}
% 定理计数器范围。
% \end{function}
%
% \begin{function}[added=2023-05-07]{theorem/share-counter}
%   \begin{syntax}
%     \OPT{share-counter} = <\TFF>
%   \end{syntax}
% 是否共享计数器。
% \end{function}
%
% 模板的默认设置等效于
%
atxy's avatar
atxy committed
% \begin{latexexample}[moretexcs={\njusetup,\bfseries,\itshape,\mdlgwhtsquare},
atxy's avatar
atxy committed
%   emph={[2]theorem},emph={[3]style,header-font,body-font,qed-symbol,counter}]
%   \njusetup[theorem]{
%       style         = plain,
%       header-font   = \normalfont \bfseries ,
%       body-font     = \itshape ,
%       qed-symbol    = \ensuremath { \mdlgwhtsquare },
%       counter       = chapter,
%       share-counter = false
%   }
% \end{latexexample}
%
% 以下选项用于创建定理类环境。
%
% \begin{function}[added=2022-08-05]{theorem/type}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{type} = \{\marg{环境名,类型标识} \marg{头名称},...\}
%   \end{syntax}
% 需要定义的定理类型列表。在可选的 \meta{类型标识} 中,含有\emph{星号}表示
% 需要编号,含有\emph{加号}需要证毕符号。该选项存储的是用来定义环境的参数,
% 而\emph{不会直接创建环境},且每次调用都会覆盖前面定义的环境列表。
% \end{function}
%
% \opt{theorem/type} 初始定义的环境列表如表~\ref{tab:mathenv} 所示。
% 这些环境并没有预先创建,使用方法见下面的例子。
% \begin{table}[htbp]
%   \centering
%   \begin{talltblr} [
%       caption = {预置的数学定理环境},
%       label   = {tab:mathenv},
%       note{a} = {证明环境较为特殊,不编号且会在结尾添加证毕符号。} ]
%     { colspec = {cc|cc} }
%       标签       & 名称     & 标签       & 名称     \\
%       axiom      & 公理     & lemma      & 引理     \\
%       corollary  & 推论     & proof \TA  & 证明     \\
%       definition & 定义     & theorem    & 定理     \\
%       example    & 例       &            &          \\
%   \end{talltblr}
% \begin{function}[added=2022-08-05]{theorem/define}
%   \begin{syntax}
atxy's avatar
atxy committed
%      <\OPT{define}>
%   \end{syntax}
% 创建定理环境。
% \end{function}
% \opt{theorem/define} 并没有参数。这个选项在调用后会读取
% \opt{theorem/type} 保存的列表以及前方的样式设置并创建相应环境。
% 这也就意味着该选项在 \opt{theorem/type} 为空时会报错。
%
% 在下面这个例子中,我们先创建了预置的七种环境。除了无编号的
% \env{proof},其余六种共用一个计数器。随后我们将定理内部文字字体改为
% 宋体,定义了 \env{exercise} 和 \env{solution} 两种定理环境,后者没有编号。
%
% \begin{latexexample}[moretexcs={\njusetup,\normalfont},
atxy's avatar
atxy committed
%   emph={[2]theorem},emph={[3]define,body-font,type}]
%   \njusetup[theorem]{
%       share-counter = true ,
atxy's avatar
atxy committed
%       define ,
%       body-font   = \normalfont ,
%       type        = {
%           { {exercise} {习题} },
%           { {solution,*} {解} }
%       },
%       define
%   }
% \end{latexexample}
% \subsubsection{编号}
% \begin{function}[added=2022-07-31]{label-sep/figure,label-sep/table,label-sep/equation}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{figure}   = \meta{符号}
%     \OPT{table}    = \meta{符号}
%     \OPT{equation} = \meta{符号}
%   \end{syntax}
% 图片、表格、公式编号中的连接符样式,默认为短横线(en dash)。
% \end{function}
%
Yu Xiong's avatar
Yu Xiong committed
% \subsection{参考文献}
%
% 本模板默认载入 \pkg{biblatex} 宏包,使用 \hologo{biber} 作为后端,
% 通过 \pkg{biblatex-gb7714-2015}\cite{biblatex-gb7714-2015} 实现
% GB/T 7714--2015 \cite{gb-t-7714-2015} 规定的参考文献著录规则国家标准。
% 需要使用 |biber| 命令编译才会显示正确的条目序号,详情请参照第
% \ref{subsubsec:compileseq} 节。本节提供的所有选项均基于此方案。
% 出于简化命令的考虑,本模板并不计划支持 \hologo{BibTeX},但您可以通过第
% \ref{subsubsec:optional-pkg} 节提供的选项禁用默认的参考文献工具,
% 自行利用 \pkg{gbt7714} 等宏包完成参考文献样式的配置。
% \begin{function}[added=2021-12-19]{bib/style}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{style} = <(numeric)|author-year|\meta{自定义样式}>
%   \end{syntax}
% 参考文献样式。可选顺序编码制 \opt{numeric} 和著者-出版年制 \opt{author-year},
% 或自行填入任意其他 \pkg{biblatex} 样式。默认为顺序编码制。
% \end{function}
%
% 参考文献样式是一个整体的设置,会对正文中引用的文献的标注方法和
% 参考文献表的输出格式产生影响。根据国家规定\cite{gb-t-7714-2015},
% 可以按照参考文献表的组织方式分为以下两种样式:
Yu Xiong's avatar
Yu Xiong committed
% \begin{description}
%   \item[顺序编码制] 顺序编码制是按正文中引用的文献出现的先后顺序连续
%                     编码,将序号置于方括号中。参考文献表采用顺序编码
%                     制组织时,各篇文献应按正文部分标注的序号依次列出。
%   \item[著者-出版年制] 正文引用的文献采用著者-出版年制时,各篇文献的
%                        标注内容由著者姓氏与出版年构成,并置于"()"内。
%                        参考文献表采用著者-出版年制组织时,各篇文献首
%                        先按文种集中,然后按著者字顺和出版年排列。
Yu Xiong's avatar
Yu Xiong committed
% \end{description}
% 对于本科生而言,学校规定文件表明参考文献表应当“用数字加方括号
Yu Xiong's avatar
Yu Xiong committed
% 表示”\cite{nju-bachelor-2023},符合顺序编码制的格式,保持默认设置即可。
% \begin{function}[added=2022-02-15]{bib/option}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{option} = \meta{选项列表}
%   \end{syntax}
% 待传入 \pkg{biblatex} 宏包的额外选项列表。
% \end{function}
%
% 本模板中 \pkg{biblatex} 并不是显式载入的。
Yu Xiong's avatar
Yu Xiong committed
% 如需在其基础上进行一些定制,可使用本设置项载入宏包选项\cite{biblatex}。
% \begin{function}[added=2021-12-19]{bib/resource}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{resource} = \Arg{文件}
%   \end{syntax}
% 参考文献数据源。类似于 \tn{addbibresource} 命令,但可以使用逗号分隔的
% 列表形式。必须使用带扩展名(\file{.bib})的完整文件名。
% \end{function}
Yu Xiong's avatar
Yu Xiong committed
% \begin{function}{\addbibresource}
%   \begin{syntax}
%     \tn{addbibresource}\Arg{文件}
%   \end{syntax}
% 添加参考文献源文件。为了与 \pkg{biblatex} 进行兼容,也可使用本命令
% 添加数据源。本命令不支持逗号分隔多个文件的形式,如果希望额外添加参
% 考文献列表,需要在导言区中多次调用。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
% 可以参考如下范例进行参考文献设置。
% 其中 \opt{bib/option} 的内容旨在关闭部分不需显示的文献信息,
% 并采取仅首字母大写的作者姓名格式,可根据需要使用。
atxy's avatar
atxy committed
% \begin{latexexample}[moretexcs={\njusetup},emph={[2]bib},
%   emph={[3]style,resource,option}]
Yu Xiong's avatar
Yu Xiong committed
%   \njusetup[bib]{
%       style    = author-year,
%       resource = {njuthesis-sample.bib},
%       option   = {
%           doi       = false,
%           isbn      = false,
%           url       = false,
%           eprint    = false,
%           gbnamefmt = lowercase
%       }
%   }
% \end{latexexample}
%
% \subsubsection{参考文献表}
%
% \begin{function}{\printbibliography}
% 生成参考文献表。
% \end{function}
% 显然只有被引用过的条目才会被输出至参考文献表。
%
% 假如需要在每章末尾附上单独的参考文献表,导言区添加以下设置,
atxy's avatar
atxy committed
% 并在每章后使用 \tn{printbibliography} 即可。
Yu Xiong's avatar
Yu Xiong committed
% \begin{latexexample}[moretexcs={\njusetup},emph={[2]bib},emph={[3]option}]
Yu Xiong's avatar
Yu Xiong committed
%   \njusetup[bib/option]{refsection = chapter}
% \end{latexexample}
%
% 如果开启了草稿模式,您可能会注意到部分条目存在超宽的问题。对此,
% 需要将 \pkg{biblatex-gb7714-2015} 宏包手动更新至 2022-04-16 以后的版本。
Yu Xiong's avatar
Yu Xiong committed
% 此外,由于 \TeX{} 预置的断词位置是有限的,不能覆盖学术上使用的复杂词汇,
% 您也可以自行在 \file{.bib} 文件中设置断行点,例如可以将 graphene
% 一词修改为 graph|\-|ene。
% \subsubsection{正文引用}
Yu Xiong's avatar
Yu Xiong committed
%   \begin{syntax}
%     \tn{cite}\marg{文献}
%     \tn{cite}\oarg{页码}\marg{文献}
Yu Xiong's avatar
Yu Xiong committed
%   \end{syntax}
% 在正文中引用参考文献。
Yu Xiong's avatar
Yu Xiong committed
% \end{function}
% 引用命令 \tn{cite} 含有多个变体,以便使用文献条目中不同的信息域。
% 在两种参考文献样式下,这些命令的行为具体存在一些差异,
% 详见表 \ref{tab:numeric-style} 和表 \ref{tab:author-year-style}。
Yu Xiong's avatar
Yu Xiong committed
%   \begin{talltblr} [
%       caption = {顺序编码制下的引用样式},
%       label   = {tab:numeric-style} ]
Yu Xiong's avatar
Yu Xiong committed
%     { colspec = {cll} }
Yu Xiong's avatar
Yu Xiong committed
%       引用方式 & 命令               &  排版效果                  \\
Yu Xiong's avatar
Yu Xiong committed
%       单篇文献 & \tn{cite}          & 上标可设置页码             \\
%       单篇文献 & \tn{parencite}     & 非上标可设置页码           \\
%       多篇文献 & \tn{cite}          & 上标,逗号隔开或短横线连接 \\
%       标注页码 & \tn{pagescite}     & 上标加自动页码             \\
%       标注作者 & \tn{textcite}      & 作者为主语加非上标编号     \\
%       标注作者 & \tn{authornumcite} & 作者为主语加上标编号       \\
%       完整脚注 & \tn{footfullcite}  & 脚注方式                   \\
Yu Xiong's avatar
Yu Xiong committed
%   \end{talltblr}
% \end{table}
%
% \begin{table}[ht]
%   \centering
Yu Xiong's avatar
Yu Xiong committed
%   \begin{talltblr} [
%       caption = {著者-出版年制下的引用样式},
%       label   = {tab:author-year-style},
%       note{a} = {在此样式下 \tn{parencite} 效果等同于 \tn{cite}。} ]
Yu Xiong's avatar
Yu Xiong committed
%     { colspec = {cll} }
%       引用方式       & 命令               & 排版效果                       \\
%       单篇文献       & \tn{cite} \TA      & 作者加年份用括号包围可设置页码 \\
%       多篇文献       & \tn{cite}          & 分号隔开                       \\
%       标注页码       & \tn{pagescite}     & 作者加年份用括号包围自动页码   \\
%       标注年份       & \tn{yearcite}      & 用括号包围的年份               \\
%       标注年份、页码 & \tn{yearpagescite} & 提供年份用括号包围自动页码     \\
%       标注作者       & \tn{textcite}      & 作者为主语加加括号包围年份     \\
%       完整脚注       & \tn{footfullcite}  & 脚注方式                       \\
%     \bottomrule
%   \end{talltblr}
% \end{table}
%
%
% \subsubsection{文献管理}
%
% 参考文献数据源理应是通过文献管理软件导出的,而不是逐条手动填写的。
%
% \subparagraph{使用 EndNote}
% 南京大学信息化建设管理服务中心已购买
% \href{https://itsc.nju.edu.cn/EndNote/list.htm}{EndNote}
% 供全校师生免费使用,最新版为 EndNote 20。
% \subparagraph{使用 JabRef}
% \href{https://www.jabref.org/}{JabRef} 是一款开源、跨平台的文献管理软件。
% JabRef 提供了对 \hologo{BibTeX} 和 \pkg{biblatex} 的原生支持,
% 能够直接管理 \file{.bib} 文件, 还可以向 TeXstudio 等外部软件推送引用命令。
% \subparagraph{使用 Zotero}
% \href{https://www.zotero.org/}{Zotero} 也是一款开源、跨平台的文献管理软件。
% Zotero 更为通用,其功能可以通过 \href{https://github.com/l0o0/jasminum}{Jasminum}、
% \href{https://github.com/retorquere/zotero-better-bibtex}{Better BibTeX}、
% \href{https://github.com/bwiernik/zotero-shortdoi}{DOI Manager} 等第三方插件,
% 以及 Zotero Connector 浏览器插件进行增强。
% \subsection{特殊页面}
% 本模板也预定义了一系列用于生成所需的特殊页面的命令与环境。
%
%
% \subsubsection{封面}
%
% \begin{function}{\maketitle}
% 本科生模板仅会生成中文封面;研究生模板会生成中英文封面。
% 如果选择了 \opt{nl-cover},\emph{仅仅}会生成研究生的国家图书馆封面。
Yu Xiong's avatar
Yu Xiong committed
% 如果选择了 \opt{decl-page},会在封面后生成本科生的诚信承诺书或研究生的
% 原创性声明。在启用草稿模式后封面绘制将被禁用。
%
% \paragraph{封面图片}
%
% \begin{function}[added=2021-12-23,updated=2022-08-06]{
%   image/nju-emblem,image/nju-name}
atxy's avatar
atxy committed
%     \OPT{nju-emblem} = \Arg{文件}
%     \OPT{nju-name}   = \Arg{文件}
% 校名、校徽图片文件路径。
% 通过以上选项可以使用外置的校徽和校名图片,两个选项\emph{任一留空}则不会生效。
% 本模板封面中校徽及校名的绘制默认依赖 \pkg{njuvisual} 宏包提供的 \tikzlogo
% 矢量曲线,耗时较长,在替换为外置图片后可节省约1秒的编译时长。
%
%
% \subsubsection{摘要页}
% \changes{v0.11}{2021/10/01}{简化了摘要的编写方式。}
atxy's avatar
atxy committed
% \DescribeEnv{abstract}
% \DescribeEnv{abstract*}
% 摘要。带星号的会生成英文摘要。
%
% \begin{latexexample}[emph={[1]abstract,abstract*}]
%   \begin{abstract}
%       我的中文摘要
%   \end{abstract}
%
%   \begin{abstract*}
%       Abstract in English
%   \end{abstract*}
% \end{latexexample}
%
% \begin{function}[added=2022-02-04,updated=2022-07-31]{abstract/toc-entry}
atxy's avatar
atxy committed
%     \OPT{toc-entry} = <\TTF>
Yu Xiong's avatar
Yu Xiong committed
% 是否将摘要条目插入目录,默认开启。
% 关闭此选项后摘要页将不会出现在目录中,仅保留其 PDF 书签。
% \begin{function}[added=2023-04-23]{abstract/underline}
%   \begin{syntax}
%     \OPT{underline} = <\TTF>
%   \end{syntax}
% 选择研究生英文摘要条目内容是否需要下划线。默认添加。
% \end{function}
%
% \begin{function}[added=2022-03-26,updated=2022-07-31]{abstract/title-style}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{title-style} = <(strict)|centered|natural>
%   \end{syntax}
% 选择研究生摘要标题样式。
% 默认为严格模式(\opt{strict}),即完全模仿材料包要求。
% \end{function}
%
% 材料包中的 Word 空白模板仅有两行空白下划线。
% 根据填写习惯的不同,模板预置了三种样式:
% \begin{itemize}
%   \item \opt{strict},在两行空白下划线上左对齐填写标题。
%         如果该标题不足一行,则第二行下划线留空;
%         如果长度超出两行,则向后延伸并抛出一个警告信息。
%   \item \opt{centered},将严格模式的左对齐改为居中。
%   \item \opt{natural},仅居中标题,不做行数检查。
%         本模式更适合较短的题目。
% \end{itemize}
%
% \subsubsection{前言页}
atxy's avatar
atxy committed
% \DescribeEnv{preface}
% 使用 \env{preface} 环境定义。
% \begin{latexexample}[emph={[1]preface,flushright}]
%   \begin{preface}
%       我的前言
%       \vspace{1cm}
%       \begin{flushright}
%       我的名字\\
%       时间地点
%       \end{flushright}
%   \end{preface}
% \end{latexexample}
%
%
% \subsubsection{目录页}
%
% \begin{function}{\tableofcontents,\listoffigures,\listoftables}
% 分别生成目录、图片目录和表格目录。
% \end{function}
%
% \begin{function}[added=2022-08-08]{tableofcontents/dotline}
%   \begin{syntax}
atxy's avatar
atxy committed
%     \OPT{dotline} = <chapter|(section)>
%   \end{syntax}
% 目录中的引导线设置。选择 \opt{chapter} 会为章标题后添加引导线。
% \end{function}
% \begin{function}[added=2022-02-04,updated=2022-07-31]{
%   tableofcontents/toc-entry,listoffigures/toc-entry,
%   listoftables/toc-entry}
atxy's avatar
atxy committed
%     \OPT{toc-entry} = <\TTF>
% 是否在目录中显示目录自身的条目,默认开启。关闭后目录、
Yu Xiong's avatar
Yu Xiong committed
% 插图目录和表格目录将不会出现在目录中,仅保留其 PDF 书签。
% 注意,虽然名称一样,但这其实是对应三种目录的三个选项。
% 如果仅需要禁用插图目录和表格目录的条目,可以这样设置
atxy's avatar
atxy committed
% \begin{latexexample}[moretexcs={\njusetup},emph={[3]toc-entry},
%   emph={[2]tableofcontents,listoffigures,listoftables}]
%   \njusetup{
Yu Xiong's avatar
Yu Xiong committed
%       tableofcontents/toc-entry = true, % 仅作展示,无需手动启用
%       listoffigures/toc-entry   = false,
%       listoftables/toc-entry    = false
%   }
% \end{latexexample}
% 目录页的标题名称一般无需修改\footnote{尽管根据《学位论文编写规则》国家标准
% \cite{gb-t-7713.1-2006},学位论文中理应使用“目次”这一名称来指代篇目的列表,
% 我们仍然建议遵从学校给出的范例。}。如有需求,请参考 \ref{subsubsec:edit-text} 节。
%
Yu Xiong's avatar
Yu Xiong committed
% \subsubsection{符号表}
%
atxy's avatar
atxy committed
% \DescribeEnv{notation}
% \DescribeEnv{notation*}
% 符号表,或者称为术语表、缩略词对照表。带有星号的符号表环境不会插入目录。
% \begin{syntax}
%   \tn{begin}\{notation\}\oarg{说明宽度}\oarg{符号宽度}
%   \quad\tn{item}\oarg{符号} \meta{说明}
%   \tn{end}\{notation\}
% \end{syntax}
% \subsubsection{致谢页}
%
atxy's avatar
atxy committed
% \DescribeEnv{acknowledgement}
% 使用 \env{acknowledgement} 环境生成致谢页,附带有相应目录条目。
% 在开启盲审模式时,仅显示该目录条目。
% \begin{latexexample}[emph={[1]acknowledgement}]
%   \begin{acknowledgement}
%       感谢NJU LUG
%   \end{acknowledgement}
% \end{latexexample}
%
%
% \subsubsection{附录页}
%
% \begin{function}{\appendix}
Yu Xiong's avatar
Yu Xiong committed
% 附录放在本命令后,以英文字母进行编号,编写方式同正文。
% \subsubsection{成果列表}
%
% \begin{function}[added=2021-09-29,updated=2021-12-20]{\njupaperlist}
%   \begin{syntax}
%     \tn{njupaperlist}\oarg{标题}\marg{文献}
%   \end{syntax}
Yu Xiong's avatar
Yu Xiong committed
% 成果列表,生成一个列举文献条目的无编号节。可选参数为标题,
% 默认为“发表文章目录”。\Arg{文献} 的填写方式同 \tn{cite},
% 多个文献需要使用英文半角逗号隔开。
Yu Xiong's avatar
Yu Xiong committed
% 一个简单的例子如下所示:
% \begin{latexexample}[moretexcs={\njuchapter,\njupaperlist}]
%   \njuchapter{攻读博士学位期间研究成果}
%   \njupaperlist[攻读博士学位期间发表的学术论文]{
%     Nemec1997-209-214,Chiani1998-2998-3008,Chiani1998a}
% \end{latexexample}
%
% 为了便于识别,成果列表中默认对发表年份进行加粗处理。而对作者姓名的处理较为复杂。
% 利用 \pkg{biblatex} 的数据注解机制可以实现对特定文献信息的样式修改
% \footnote{\url{https://blog.csdn.net/xenonhu/article/details/120853247}},
% 在此可以用来实现指定作者姓名的突出。经过注解后的一则参考文献条目如下所示:
% \begin{latexexample}[emph={[1]@inproceedings},emph={[2]author}]
%   @inproceedings{Nemec1997-209-214,
%     title = {Force control of redundant robots},
%     author = {B Nemec and Zhao, Mou Mou},
%     author+an = {2=thesisauthor},
%     booktitle = {Processings of Symposium on Robot Control},
%     shortbooktitle = {(PSRC)},
%     pages = {209-214},
%     country = {Nantes France},
%     year = {1997}
%   }
% \end{latexexample}
% 其中 |author+an| 提供了注解的标记,格式为 \meta{序号}|=|\meta{标签},
% 以上条目中即是将第二名作者加入了指定论文作者的注解。\tn{njupaperlist}
% 会识别 |thesisauthor| 标签,为其指代的作者姓名进行加粗下划线处理。
% 除手动进行标记以外,以下也提供一种自动化处理办法。
% 下载 \href{https://github.com/hushidong/biblatex-map}{bibmap}
% 全部文件后,修改主目录下的 \file{bibmapaddauthoran.py} 中 |fieldsource|
% 为需要匹配的姓名,将需要进行标记的 \file{.bib} 文件拷贝至本目录
% (此处使用 \file{test.bib} 进行示范),运行以下命令生成的参考文献数据源
% 即可被成果列表识别加粗。
Yu Xiong's avatar
Yu Xiong committed
% \begin{shellexample}[morekeywords={python},deletekeywords={test}]
%   python bibmap.py test.bib -m bibmapaddauthoran.py
% \end{shellexample}
% \subsection{额外定制}
%
% 在研究生院松散的规定下,本模板仅能提供一个大体适用的框架,
% 势必需要为用户修改留出空间。这一节将提供一些定制方法。
%
% \subsubsection{固定文本}
% \label{subsubsec:edit-text}
%
% \begin{function}{\njusetname,\njusetname*,\njusettext,\njusettext*}
%   \begin{syntax}
Yu Xiong's avatar
Yu Xiong committed
%     \tn{njusetname}\marg{名称}\oarg{变体}\marg{内容}
%     \tn{njusetname*}\marg{名称}\oarg{变体}\marg{内容}
%     \tn{njusettext}\marg{名称}\oarg{变体}\marg{内容}
%     \tn{njusettext*}\marg{名称}\oarg{变体}\marg{内容}
%   \end{syntax}
% 修改固定文本内容,带星号的命令表示修改对应的英文字段。
% 名称对应的默认内容可以参见 \ref{subsubsec:constant-name} 与
% \ref{subsubsec:constant-text} 节。
Loading
Loading full blame...