Newer
Older
% !TeX program = XeLaTeX
% !TeX encoding = UTF-8
% It may be distributed and/or modified under the conditions of the
% LaTeX Project Public License (LPPL), either version 1.3c of this
% license or (at your option) any later version. The latest version
% 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-undergraduate.def,
% njuthesis-graduate.def,
% -----------------------------------------------------------------------
% The development version of the template can be found at
% https://github.com/nju-lug/NJUThesis
%
% for those people who are interested.
%
%<*internal>
\iffalse
%</internal>
%
%<*internal>
\fi
\begingroup
\def\NameOfLaTeXe{LaTeX2e}
\expandafter\endgroup\ifx\NameOfLaTeXe\fmtname\else
\csname fi\endcsname
%</internal>
%
\keepsilent
\askforoverwritefalse
\preamble
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.
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}}
\file{\jobname-undergraduate.def} {\from{\jobname.dtx}{definition-ug}}
\file{\jobname-graduate.def} {\from{\jobname.dtx}{definition-g}}
%<*internal>
\usedir{source/latex/njuthesis}
%</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-graduate.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
%
%<*internal>
\fi
%</internal>
%
%<+!driver>\GetIdInfo $Id: njuthesis.dtx 0.16.1 2022-03-25 15:00:00 +0800 NJU LUG <git+nju-lug-email-3104-issue-@yaoge123.cn>$
%<class> {Thesis template for Nanjing University}
%<class>\ProvidesExplClass{njuthesis}
%<definition-ug> {Undergraduate definition file for njuthesis}
%<definition-ug>\ProvidesExplFile{njuthesis-undergraduate.def}
%<definition-g> {Graduate definition file for njuthesis}
%<definition-g>\ProvidesExplFile{njuthesis-graduate.def}
%<!driver> {\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription}
%</!(driver|install)>
\usepackage[firstpage=true]{background}
\backgroundsetup{contents={\njuemblem[white!85!gray]{22cm}{!}},scale=1,angle=0,hshift=-4cm}
\newcommand\agrd[1]{\textcolor{agrd}{\sffamily 〈#1〉}}
\newcommand\bgrd[1]{\textcolor{at@guard}{\sffamily #1}}
pdftitle = {The njuthesis class - LaTeX thesis template for Nanjing University},
citecolor = njublue,
linkcolor = njuviolet,
urlcolor = njumagenta}
\DefTblrTemplate{caption-tag}{default}{表\hspace{0.25em}\thetable}
\SetTblrStyle{caption-tag}{font=\bfseries}
\lstdefinestyle{style@base}
{
basewidth = 0.5 em,
gobble = 3,
lineskip = 3 pt,
frame = l,
framerule = 1 pt,
framesep = 0 pt,
xleftmargin = 2 em,
xrightmargin = 3 em,
escapeinside = {(*}{*)},
basicstyle = \small\ttfamily,
keywordstyle = \bfseries\color{njuviolet},
commentstyle = \itshape\color{white!50!gray},
stringstyle = \color{nju-chem-red},
backgroundcolor = \color{white!95!gray}
}
\lstdefinestyle{style@shell}
{
style = style@base,
rulecolor = \color{njumagenta},
language = bash,
alsoletter = {-},
}
\lstdefinestyle{style@latex}
{
style = style@base,
rulecolor = \color{njublue},
language = [LaTeX]TeX,
alsoletter = {*, -},
texcsstyle = *\color{njuviolet},
emphstyle = [1]\color{nju-ai-orange},
emphstyle = [2]\color{nju-cs-green}
}
\lstnewenvironment{shellexample}[1][]{%
\lstset{style=style@shell, #1}}{}
\lstnewenvironment{latexexample}[1][]{%
\lstset{style=style@latex, #1}}{}
% \title{\color{njuviolet}{The \cls{njuthesis} class\\
% \textbf{南京大学学位论文模板}}}
% \thanks{E-mail: \href{mailto:git+nju-lug-email-3104-issue-@yaoge123.cn}
% \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}{实现自动打包发布。}
% \changes{v0.9}{2021/09/15}{使用 DocStrip 合并模板文件。}
% \changes{v0.9}{2021/09/15}{大幅度修改宏名称以符合 \hologo{LaTeX3} 规范。}
% \changes{v0.16}{2022/03/01}{分离本科生和研究生模板配置。}
% 南京大学学位论文 \hologo{LaTeX} 模板 \cls{njuthesis} 基于本科生院的论文撰写
% 规范制作,同时参考研究生院提供的硕士、博士学位材料包,用于生成符合南京大学学
% 位论文排版要求和相应的国家规范、行业标准的学位论文,旨在为同学提供毕业论文书
% 写的方便。
% The \cls{njuthesis} class is intended for typesetting Nanjing University
% dissertations with \hologo{LaTeX}, providing support for bachelor, master,
% and doctoral thesis.
% 在使用本模板时,我们默认您同意以下内容:
% \begin{enumerate}
% \item 本模板通过 LPPL 1.3c 协议开放源代码,您可以随意使用编译出的 PDF 文件。
% \item 遇到本文档没有覆盖的问题属于正常情况,欢迎提交反馈意见。
% \end{enumerate}
% 我们的 \href{https://git.nju.edu.cn/nju-lug/lug-introduction}
% {Linux 用户组}始终欢迎您的加入!
% \cls{njuthesis},即南京大学学位论文模板,是一个由南京大学 Linux
% 用户组维护的,用于处理本校学生毕业论文排版需求的 \hologo{LaTeX} 模板。
% 本模板使用的本科生毕业论文模板格式依据
% 《关于启动南京大学2022届本科毕业论文(设计)工作的通知》\cite{nju2021},
% 研究生学位论文格式依据研究生院提供的材料包。
% 在本文正式介绍 \cls{njuthesis} 论文模板前,您也许并不熟悉 \hologo{TeX} 排版系统。话不多说,请先完整体验一遍下述的工作流程:
% \fcolorbox{olgreen}{gray!5}{\parbox{\textwidth-5em}{%
% \hspace{2em}\begin{minipage}[c]{10cm}
% \item 访问 \url{https://tex.nju.edu.cn}
% \item 点击右上角~\olbutton{注册}~按钮,
% 用\href{https://itsc.nju.edu.cn/1b/ce/c21586a334798/page.htm}
% {南大邮箱}注册账号
% \item 登录您的账号
% \item 点击左上角~\olbutton{创建新项目}~按钮,选择~\olbutton{论文模板}
% \item 随意取名,点击~\olbutton{创建}~按钮
% 是,但也不一定。有人坚持认为应该做一些\emph{直观、清晰、有手就行、一
% 条路走到底}的教程,而不是\emph{长篇累牍的精细介绍},其核心论据在于:
% 现代人类总体上需要快速取得成就感,而且大部分可能用到本模板的同学不
% 会具备必要的基础知识。反驳的观点在于过分简单的实验总是浪费时间的,
% 尤其是在您可能早已掌握基本用法的情况下。但,不论如何,这番操作总会
% 使您预览到 \cls{njuthesis} 论文模板的实际样式。
% 具体是哪里不满意?如果是\emph{样式存在偏差},请联系模板的作者;如果
% \emph{不能访问前文提到的在线编译网站},请考虑检查网络连接,依次咨询
% 本校\href{https://itsc.nju.edu.cn}{信息化管理建设服务中心}和该网站
% 的维护者\href{mailto:my@yaoge123.cn}{姚舸老师};如果\emph{报错},请
% 点击左上角的菜单按钮,查看编译器是否显示为 |XeLaTeX|;
% 再如果\emph{还有其他原因},通过这几分钟的实验我们也可以得到一个相当
% 有益的结论:\emph{也许 Word 模板更加适合您}。这可以节省下熟悉
% \hologo{TeX} 排版软件使用方法所需的可观时间。
% \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}
Loading
Loading full blame...