Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • cloustile/njuthesis
  • GGbond/njuthesis
  • caomeng/njuthesis
  • yilye/njuthesis
  • kopanswer/njuthesis
  • Dansen/njuthesis
  • junjimy/njuthesis
  • wuqizuo123/njuthesis
  • zxlll-/njuthesis
  • Michael/njuthesis
  • bcbhfz/njuthesis
  • LingDu/njuthesis
  • jiejiangwu/njuthesis
  • Tilnel/njuthesisundergraduate
  • nju-lug/nju-latex-templates/njuthesis
15 results
Show changes
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
\section{符号示例} \section{符号示例}
Caligraphic letters: $\mathcal{A}$ Caligraphic letters: $\mathcal{A}$
Mathbb letters: $\mathbb{A}$ Mathbb letters: $\mathbb{A}$
...@@ -10,11 +10,21 @@ Mathfrak letters: $\mathfrak{A}$ ...@@ -10,11 +10,21 @@ Mathfrak letters: $\mathfrak{A}$
Math Sans serif letters: $\mathsf{A}$ Math Sans serif letters: $\mathsf{A}$
Math bold letters: $\mathbf{A}$ Math bold letters: $\mathbf{A},\symbf{A}$
Math bold italic letters: $\mathbi{A}$ Math bold italic letters: $\mathbi{A}$
\section{公式示例} \section{公式示例}
% Thanks to github.com/YuanshengZhao/Garamond-Math
公式字体示例
\[
\displaystyle \ointctrclockwise\mathcal{D}[x(t)]\sqrt{\frac{\displaystyle3\uppi^2-\sum_{q=0}^{\infty}(z+\hat L)^{q}\exp(\symrm{i}q^2 \hbar x)}{\displaystyle (\symsfup{Tr}\symbfcal{A})\left(\symbf\Lambda_{j_1j_2}^{i_1i_2}\Gamma_{i_1i_2}^{j_1j_2}\hookrightarrow\vec D\cdot \symbf P \right)}}
=\underbrace{\widetilde{\left\langle \frac{\notin \emptyset}{\varpi\alpha_{k\uparrow}}\middle\vert \frac{\partial_\mu T_{\mu\nu}}{2}\right\rangle}}_{\mathrm{K}_3\mathrm{Fe}(\mathrm{CN})_6} ,\forall z \in \mathbb{R}
\]
你可以使用\verb|equation|环境插入公式,如\cref{eq:dewitt}
\begin{equation}\label{eq:dewitt} \begin{equation}\label{eq:dewitt}
\int \mathrm{e}^{ax} \tanh {bx} \, \mathrm{d}x = \int \mathrm{e}^{ax} \tanh {bx} \, \mathrm{d}x =
\begin{dcases} \begin{dcases}
...@@ -28,62 +38,26 @@ Math bold italic letters: $\mathbi{A}$ ...@@ -28,62 +38,26 @@ Math bold italic letters: $\mathbi{A}$
\end{dcases} \end{dcases}
\end{equation} \end{equation}
你可以使用\lstinline|equation|环境插入公式,如\cref{eq:dewitt},代码如下: \section{定理环境}
\begin{lstlisting}[style=LaTeX]
\begin{equation}
\int \mathrm{e}^{ax} \tanh {bx} \, \mathrm{d}x =
\begin{dcases}
\begin{multlined}
\frac{\mathrm{e}^{(a+2b)x}}{(a + 2b)} \,
{{}_2F_1} \left( 1 + \frac{a}{2b}, 1, 2+\frac{a}{2b}, -\mathrm{e}^{2bx} \right) \\
- \frac{1}{a} \mathrm{e}^{ax} \, {{}_2F_1} \left( 1, \frac{a}{2b}, 1 + \frac{a}{2b}, -\mathrm{e}^{2bx} \right)
\end{multlined}
& a \ne b \\
\frac{e^{ax} - 2 \tan^{-1}(\mathrm{e}^{ax})}{a} & a = b
\end{dcases}
\end{equation}
\end{lstlisting}
使用mathtools包会与unicode-math包产生一些命令的冲突,直接引用会输出以下两条警告 \cref{pf:me1}\cref{pf:me1}\cref{def:others1}\cref{def:others1}\cref{thm:sleep}
\begin{lstlisting}
Using \overbracket and \underbracket from `mathtools' package. Use \Uoverbracket and \Uunderbracket for original `unicode-math' definition.
I'm going to overwrite the following commands from the `mathtools' package: \dblcolon, \coloneqq, \Coloneqq, \eqqcolon.
\end{lstlisting}
这些警告已被手动抑制。
\section{定理环境} \begin{proof}\label{pf:me1}
证明我是我
\end{proof}
\begin{definition}[他人]\label{def:others1}
定义他人即地狱
\end{definition}
\begin{proof} \begin{proof}\label{pf:me2}
证明我是我 证明我是我
\end{proof} \end{proof}
\begin{definition}[他人] \begin{definition}[他人]\label{def:others2}
定义他人即地狱 定义他人即地狱
\end{definition} \end{definition}
全部数学环境如下所示 \begin{theorem}[睡觉]\label{thm:sleep}
管他呢先睡觉吧!
\begin{table}[htbp] \end{theorem}
\caption{数学环境}
\label{tab:mathenv}
\begin{tabular}{cc}
\toprule
标签 & 名称 \\
\midrule
algorithm & 算法 \\
assumption & 假设 \\
axiom & 公理 \\
conclusion & 结论 \\
condition & 条件 \\
corollary & 推论 \\
definition & 定义 \\
example &\\
lemma & 引理 \\
proof & 证明 \\
property & 性质 \\
proposition & 命题 \\
remark & 注解 \\
theorem & 定理 \\
\bottomrule
\end{tabular}
\end{table}
\begin{preface}
我想,每个\hologo{LaTeX}极客的最终目标都是写一个属于自己的class,而自己很幸运地在\href{https://git.nju.edu.cn/nju-lug/lug-introduction}{NJU Linux User Group}获得了这样的机会。
感慨万千,一时语塞。实在不知道写啥好,表演个朗诵课文吧。
\zhlipsum[108-110][name=zhufu]
\vspace{1cm}
\begin{flushright}
徐阿通\\
2021年初秋于扬州
\end{flushright}
\end{preface}
\chapter{引用和超链接}
\label{chap:reference}
\hologo{LaTeX}的一大优势在于可以自动生成带超链接的引用条目。
\section{超链接}
\lstinline|\href{<url>}{<name>}|
\section{文档内容的引用}
使用\lstinline|cleveref|宏包实现了带图、表等项目名称的智能引用,仅需使用\lstinline|\cref{<label>}|命令。相关定义位于\lstinline|profile/reference.sty|。
\subsection{图片}
\lstinline|\href{<url>}{<名称>}|
\subsection{图片}
\lstinline|\label{tab:mytab}|
\subsection{表格}
\lstinline|\label{fig:myfig}|
\subsection{公式}
\lstinline|\label{eq:myeq}|
\subsection{其他数学环境}
\lstinline|\label{def:mydef}|
\subsection{章节}
\lstinline|\label{sec:mysec}|
\chapter{学科特殊环境}
\section{代码}
% the listings package
\subsection{行内代码}
一共有三种方法可以生成行内代码:
\begin{itemize}
\item 使用 \texttt{\textbackslash verb} 抄录环境:\verb!<Your code>!
\item 使用 \texttt{\textbackslash lstinline} 行内代码环境:\lstinline[basicstyle=\tt]+<Your code>+
\item 使用简写的行内代码环境:|<Your code>|
\end{itemize}
在前两者中,只要使用在代码中未出现的符号将代码包括在内即可。
\subsection{代码块}
代码示例。在构建 \textsf{njuvisual} 宏包时,使用 inkscape 程序从矢量图导出的 \textsf{tikz} 曲线代码并不美观,需要缩进、对齐,因而拜托鄢老师编写了如下的 Python 脚本。
\begin{lstlisting}[language=Python,morekeywords={startswith,endswith,split,strip,join,find,append,replace}]
def deal_tuple(s):
if s.startswith("("):
# s be like (x,y)
return "( {0:>9}, {1:>9} )".format(*s[1:-1].split(","))
else:
return s
indent = len(".. controls ( 0.0000, 0.0000 )") - 1
def deal_line(s):
s = " ".join(map(deal_tuple, s.split()))
if s.find(")") != -1:
s = " " * (indent - s.find(")")) + s
return s
try:
while True:
s = input().strip()
if s.startswith("\path"):
l = []
while not s.endswith(";"):
l.append(s) # use this instead of += for speedup
s = input().strip()
l.append(s[:-1]) # remove trailing ;
# NOTE: all strings in l should be newline-free
head, rp, body = " ".join(l).replace(".. controls", "\n.. controls").replace(
"--", "\n--").replace(")(", ")\n(").replace("cycle(", "cycle\n(").partition("]")
# force the program to keep newlines added manually
result = "\n".join(map(deal_line, body.splitlines()))
print(head, rp, "\n", result, ";", sep="")
else:
print(s)
except EOFError as e:
pass
\end{lstlisting}
\section{算法块}
使用 {algorithm}{algorithmic} 的算法示例\footnote{两者均位于 \textsf{algorithms}}
\begin{algorithm}[htbp]
\caption{Lanczos Algorithm}
\begin{algorithmic}
\STATE - Choose an initial state $\vec{b}_0$ and a maximum iteration number $m$
\FOR{$n=0,\ldots m$}
\STATE - Construct the space $K = \spn\{\vec{b}_0 , \ldots \vec{b}_n \}$
\STATE - Obtain $\vec{C} = \hat{H} \vec{b}_n$
\IF{$\vec{C} \in K$}
\STATE Set $\vec{b}_{n+1}$ to a random vector orthogonal to $K$
\ELSE
\STATE Orthogonalize $\vec{C}$ against $K$, yielding $\vec{b}_{n+1}$
\ENDIF\ENDFOR
\end{algorithmic}
\end{algorithm}
\section{物理}
% the physics package
\begin{equation}
\expval{A}{\Psi}
\end{equation}
\section{化学}
\subsection{化学式}
1972年,R. J. Fiela、E. Koros、R. Noyes等通过实验对BZ振荡反应作了解释。其主要思想
是:系统中存在着两个受溴离子浓度控制的过程A和B,当$[\ce{Br-}]$高于临界浓度$[\ce{Br-}]_\text{crit}$时发生
A过程,当$[\ce{Br-}]$低于$[\ce{Br-}]_\text{crit}$时发生B过程。也就是说$[\ce{Br-}]$起着开关作用,它控制着从A到
B过程,再由B到A过程的转变。在A过程,由于化学反应$[\ce{Br-}]$降低,当$[\ce{Br-}]$低于$[\ce{Br-}]_\text{crit}$
时,B过程发生。在B过程中,\ce{Br-}再生,$[\ce{Br-}]$增加,当$[\ce{Br-}]$再次高于$[\ce{Br-}]_\text{crit}$时,A过程再次
发生。这样系统就在A过程与B过程间往复振荡。下面用\ce{BrO3- - Ce^{3+} - MA - H2SO4}系统为例
加以说明。\cite{qiujinhengetal2010}
% 当$[\ce{Br-}]$足够高时,发生下列A过程:
% \begin{equation}
% \ce{BrO3- + Br- + 2H+ ->[k_1] HBrO2 +HOBr}
% \end{equation}
% \begin{equation}
% \ce{HBrO2 + Br- + H+ ->[k_2] 2HOBr}
% \end{equation}
% 其中第一步是速率控制步,当达到准定态时,有
% \begin{equation*}
% \left[\ce{HBrO2}\right] =\frac{k_1}{k_2}\left[\ce{BrO3-}\right]\left[\ce{H+}\right]
% \end{equation*}
% 当$[\ce{Br-}]$低时,\ce{Ce^{3+}}被氧化发生下列B过程:
% \begin{equation}
% \ce{BrO3- + HBrO2 + 2H+ ->[k_3] 2HBrO2 + H2O}
% \end{equation}
% \begin{equation}
% \ce{BrO2 + Ce^{3+} + H+ ->[k_4] HBrO2 + Ce^{4+}}
% \end{equation}
% \begin{equation}
% \ce{2HBrO2 ->[k_5] BrO3- + HOBr + H+}
% \end{equation}
% 反应(3)是速率控制步,经反应(3)、反应(4)将自催化产生\ce{HBrO2},达到准定态
% 时,有
% \begin{equation*}
% [\ce{HBrO2}] \approx \frac{k_3}{2k_5}[\ce{BrO3-}][\ce{H+}]
% \end{equation*}
% 由反应(2)和反应(3)可以看出:\ce{Br}和\ce{BrO3-}是竞争\ce{HBrO2}的。当$k_2[\ce{Br-}]>k_3[\ce{BrO3-}]$时,自催化过程不可能发生。自催化是BZ振荡反应中必不可少的步骤,否则该振荡不
% 能发生。\ce{Br-}的临界浓度为
% \begin{equation*}
% [\ce{Br-}]_\text{crit} =\frac{k_3}{k_2}[\ce{BrO3-}] =\num{5e-6}[\ce{BrO3-}]
% \end{equation*}
% \ce{Br-}的再生可通过下列过程实现:
% \begin{equation}
% \ce{4Ce^{4+} + BrCH(COOH)2 +H2O + HOBr ->[k_6] Br- + 4Ce^{3+} + 3CO2 + 6H+}
% \end{equation}
% 该系统的总反应为
% \begin{equation}
% \ce{2H+ + 2BrO3- + 2CH2(COOH)2 -> BrCH(COOH)2 + 3CO2 + 4H2O}
% \end{equation}
% 振荡的控制物种是\ce{Br-}。
\subsection{结构式}
% \begin{figure}[H]
% \centering
% \chemfig{[:18]*5(-=(-CHO)-N-=)}
% \end{figure}
\schemestart
\setchemfig{chemfig style=blue} \chemname[3ex]{\chemfig{[:-60]*6(-=)([:90]*6(=-EDG))}}{Diene}
\hspace{10mm}
\setchemfig{chemfig style=red} \chemname[3ex]{\chemfig{[:-60]*6(=)([::90]-EWG)}}{Dienophile}
\hspace{10mm}
\arrow(.mid east--.mid west)[,1.5]
\hspace{10mm}
\chemfig{[:-60]*6(=[,,,,blue]-[,,,,blue]--[,,,,red](<[,,,,red]{\color{red}E}|{\color{red}WG})-(<[,,,,blue]{\color{blue}EDG})-[,,,,blue])}
\schemestop
% pkg modiagram
% \begin{modiagram}[names,distance=5cm,names-style={draw=black}]
% \atom[C]{left}{
% 2s = {3.6;pair},
% 2p = {6.3;up,up},
% label = {
% 2sleft = {2s},
% 2pyleft = {2p}
% }
% }
% \atom[O]{right}{
% 2s = {0;pair},
% 2p = {4.8;pair,up,up},
% label = {
% 2sright = {2s},
% 2pyright = {2p}
% }
% }
% \molecule[CO]{
% 2sMO = {0.4;pair,pair},
% 2pMO = {0.2/0.5,0.5/0.2;pair,pair,pair},
% }
% \node[right] at (2sigma.45) {$3\sigma$};
% \node[right] at (2sigma*.-45) {$4\sigma$};
% \node[right] at (2piz.45) { $1\pi$};
% \node[right] at (2psigma.45) {$5\sigma$};
% \node[right] at (2piz*.45) {$2\pi$};
% \node[right] at (2psigma*.45) {$6\sigma$};
% \EnergyAxis[title=Energy]
% \end{modiagram}
\chapter{南京大学本科毕业论文(设计)的 \chapter[本科毕业论文格式规定]{南京大学本科毕业论文(设计)的撰写规范和装订要求(试行)}
撰写规范和装订要求(试行)}
\label{chap:standard} \label{chap:standard}
本科毕业论文(设计)是本科教学中的重要环节,为规范本科毕业论文(设计)的工作,特制订毕业论文(设计)的撰写和装订要求,请同学们按照要求执行。如各院系已经制定了相应的规范,则按照院系的要求执行。 本科毕业论文(设计)是本科教学中的重要环节,为规范本科毕业论文(设计)的工作,特制订毕业论文(设计)的撰写和装订要求,请同学们按照要求执行。如各院系已经制定了相应的规范,则按照院系的要求执行。
...@@ -82,7 +81,8 @@ ...@@ -82,7 +81,8 @@
\subsection{注释} \subsection{注释}
毕业论文(设计)中有个别名词或情况需要解释时,可加注说明。注释采用脚注,每页独立编号,即每页都从1开始编码,编号用1,2,3……,文中编号用上标。 毕业论文(设计)中有个别名词或情况需要解释时,可加注说明。注释采用脚注,每页独立编号,即每页都从1开始编码,编号用1,2,3……,文中编号用上标。
(十)参考文献
\subsection{参考文献}
参考文献的著录应符合国家标准,参考文献的序号左顶格,并用数字加方括号表示,如“[1]”。每一条参考文献著录均以“.”结束。 参考文献的著录应符合国家标准,参考文献的序号左顶格,并用数字加方括号表示,如“[1]”。每一条参考文献著录均以“.”结束。
\section{毕业论文(设计)装订要求} \section{毕业论文(设计)装订要求}
......
test/name.png

106 KiB

\def\TEST{}
\documentclass{njuthesis}
\njusetup{bib/style=author-year}
\input{test.tex}
\def\TEST{}
\documentclass[type=doctor,nl-cover]{njuthesis}
\input{test.tex}
\def\TEST{}
\documentclass[type=master,decl-page]{njuthesis}
\input{test.tex}
\def\TEST{}
\documentclass[decl-page,oneside]{njuthesis}
\input{test.tex}
@ARTICLE{njuthesis, @ARTICLE{njuthesis,
title = {南京大学学士学位论文 LaTeX 模板}, title = {南京大学学士学位论文 LaTeX 模板},
AUTHOR = {NJU-LUG}, AUTHOR = {NJU-LUG},
JOURNALTITLE = {Github}, JOURNALTITLE = {Github},
YEAR = {2021} YEAR = {2021}
} }
@book{goossens93, @book{goossens93,
author = "Frank Mittelbach and Michel Goossens and Johannes Braams and David Carlisle and Chris Rowley", author = "Frank Mittelbach and Michel Goossens and Johannes Braams and David Carlisle and Chris Rowley",
title = "The {LaTeX} Companion", title = "The {LaTeX} Companion",
year = "1993", year = "1993",
publisher = "Addison-Wesley", publisher = "Addison-Wesley",
address = "Reading, Massachusetts" address = "Reading, Massachusetts"
} }
@ARTICLE{segl03, @book{qiujinhengetal2010,
AUTHOR = "Segletes, S. B. AND Walters, W. P.", location = {北京},
TITLE = {Extensions to the Exact Solution of the Long-Rod title = {物理化学实验},
Penetration/Erosion Equations}, isbn = {7-04-029811-2},
JOURNAL = "IJIE", abstract = {本书由绪论、实验、基础知识与技术和附录四部分组成,其中35个实验涵盖了热力学、动力学、电化学、表面性质与胶体化学和结构化学等物理化学分支的内容;基础知识与技术主要介绍了本书实验涉及的实验方法和技术以及仪器的使用方法。},
YEAR = "2003", pagetotal = {326},
VOLUME = "28", publisher = {高等教育出版社},
PAGES = "363--376" author = {{邱金恒} and {孙尔康} and {吴强}},
date = {2010-09},
langid = {pinyin}
}
@inproceedings{Nemec1997-209-214,
title = {Force control of redundant robots},
author = {B Nemec and Zhao, Mou Mou},
booktitle = {Processings of Symposium on Robot Control},
shortbooktitle = {(PSRC)},
pages = {209-214},
country = {Nantes France},
year = {1997},
author+an = {2=thesisauthor}
}
@article{Chiani1998-2998-3008,
title = {Error probability for block codes over channels with block interference},
author = {Zhao, Mou Mou and Chiani, M.},
journal = {IEEE Trans. Inf. Theory},
shortbooktitle = {(ITIT)},
number = {7},
pages = {2998-3008},
volume = {44},
year = {1998},
author+an = {1=thesisauthor;2=corresponding}
}
@article{Chiani1998a,
title = {Error probability for block codes over channels with block interference},
author = {Zhang, Mou Mou and Chiani, M.},
journal = {IEEE Trans. Inf. Theory},
shortbooktitle = {(ITIT)},
number = {7},
pages = {2998-3008},
volume = {44},
year = {1998},
author+an = {2=corresponding}
}
@Article{riedl2009quasi,
author = {Riedl, Ch and Coletti, C and Iwasaki, T and Zakharov, AA and Starke, U},
date-modified = {2021-12-28 19:15:06 +0800},
journal = {Physical review letters},
number = {24},
pages = {246804},
publisher = {APS},
title = {Quasi-free-standing epitaxial graph\-ene on SiC obtained by hydrogen intercalation},
volume = {103},
year = {2009}
} }
test/test.png

55.1 KiB

...@@ -2,54 +2,174 @@ ...@@ -2,54 +2,174 @@
% 本文档用于测试 njuthesis 是否正常工作 % 本文档用于测试 njuthesis 是否正常工作
% 其内容不具有任何参考意义 % 其内容不具有任何参考意义
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[degree=phd,nlcover]{njuthesis}
\ifdefined\TEST\else
\njusetup { % 自行编译前需反注释以下任意命令
info = { \documentclass{njuthesis}
titlea = {一种使用南京大学\hologo{LaTeX}模版}, % \documentclass[minimal]{njuthesis}
titleb = {编写毕业论文的经验性方法}, % \documentclass[type=master]{njuthesis}
titlec = {(仅供测试使用)}, % \documentclass[type=doctor]{njuthesis}
title* = {An Empirical Way of Composing Thesis with NJU \hologo{LaTeX} Template}, % \documentclass[type=postdoc]{njuthesis}
keywords = {我,就是,充数的,关键词}, % \documentclass[oneside]{njuthesis}
keywords* = {Dummy,Keywords,Here,{it is}}, % \documentclass[cjk-font=noto,latin-font=gyre]{njuthesis}
grade = {2018}, % \documentclass[cjk-font=source,latin-font=gyre]{njuthesis}
student-id = {dz18114514}, % \documentclass[cjk-font=founder,latin-font=gyre]{njuthesis}
author = {周煜华}, % \documentclass[decl-page]{njuthesis}
author* = {Zhou~Yuhua}, % \documentclass[draft]{njuthesis}
department = {拉太赫科学与技术学院}, \fi
department* = {School~of~\hologo{LaTeX}},
major = {拉太赫语言学}, \njusetup[info]{
major* = {\hologo{LaTeX}~Linguistics}, title = {一种使用南京大学 \hologo{LaTeX} 模板\\编写毕业论文的经验性方法},
field = {拉太赫语言在现当代的使用}, title* = {An Empirical Way of Composing Thesis with NJU \hologo{LaTeX} Template},
field* = {Contemporary~Usage~of~the~\hologo{LaTeX}~Language}, keywords = {我,就是,充数的,关键词},
supervisora = {李成殿}, keywords* = {Dummy,Keywords,Here,{it is}},
supervisora*= {Li~Chengdian}, grade = {2018},
supervisora-title = {教授}, % student-id = {DZ18114514},
supervisora-title* = {Professor}, student-id = {189114514},
supervisorb = {孙赫弥}, author = {周煜华},
supervisorb* = {Sun~Hemi}, author* = {Zhou~Yuhua},
supervisorb-title = {副教授}, department = {拉太赫科学与技术学院},
supervisorb-title* = {Associate~professor}, department* = {School~of~\hologo{LaTeX}},
submit-date = {2021年8月10日}, major = {拉太赫语言学},
submit-date* = {Aug 10, 2021}, major* = {\hologo{LaTeX}~Linguistics},
defend-date = {2021年9月19日}, field = {拉太赫语言在现当代的使用},
chairman = {张晓山~教授}, field* = {Contemporary~Usage~of~the~\hologo{LaTeX}~Language},
reviewer = {王瑞希~教授,郭德纲~副教授,华芈库~教授,戴菲菲~教授}, supervisor = {李成殿,教授},
clc = {0175.2}, supervisor* = {Professor Li Chengdian},
secret-level = {限制}, % supervisor-ii = {孙赫弥,副教授},
udc = {004.72}, % supervisor-ii* = {Associate~professor~Sun~Hemi},
supervisor-contact = {拉太赫科学与技术学院~枝江市结丘路~19~号~114514}, % submit-date = {2021-08-10},
} % defend-date = {2021-09-19},
chairman = {张晓山~教授},
reviewer = {王瑞希~教授,郭德纲~副教授,华芈库~教授,戴菲菲~教授},
clc = {0175.2},
secret-level = {限制},
udc = {004.72},
supervisor-contact = {拉太赫科学与技术学院~枝江市结丘路~19~号~114514},
email={git+nju-lug-email-3104-issue-@yaoge123.cn}
}
\njusetup[bib]{
% style = author-year,
resource = {test.bib},
option = {doi=false, isbn=false, url=false, eprint=false}
}
\njusetup[image]{
nju-emblem = {wug},
nju-name = {name}
}
\njusetup[abstract/title-style]{natural}
\njusetup{
abstract/toc-entry = false,
tableofcontents/toc-entry = false,
math/style = ISO
}
\njusetup[theorem]{
style = remark,
header-font = \sffamily\bfseries,
body-font = \ttfamily,
qed-symbol = \ensuremath { \male },
counter = section,
define,
}
\njusetup[footnote]{
style={circled},
circledtext-option={resize=none,boxcolor=blue,boxtype=ox+,boxfill=red!30}
} }
\addbibresource{test.bib} % \addbibresource{test.bib}
% \ctexset{
% contentsname = { 目\qquad{}次 },
% listfigurename = { 插图清单 },
% listtablename = { 表格清单 }
% }
\njusetname{notation}{术语表}
\njusetname{tableofcontents}{\qquad{}}
\njusetname{listoffigures}{插图清单}
\njusetname{listoftables}{表格清单}
\njusetname{abstract}[b]{我是摘要}
\njusetname*{abstract}[b]{Abstract}
% \njusetlength{coveruline}{330pt}
\njusetformat{chapter}{\raggedleft\kaishu\zihao{-1}}
% \usepackage{multirow,tabularray,wrapfig,subcaption}
% \usepackage{listings,algorithm,algorithmic}
% \usepackage{siunitx,physics,chemfig}
% \usepackage[version=4]{mhchem}
\usepackage{hologo,blindtext,zhlipsum,mathtools}
% \setmonofont{cmun}[
% Extension = .otf,
% UprightFont = *btl,
% BoldFont = *tb,
% ItalicFont = *bto,
% BoldItalicFont = *tx,
% HyphenChar = None]
% \lstdefinestyle{njulisting}
% {
% basewidth = 0.5 em,
% lineskip = 3 pt,
% basicstyle = \tiny\ttfamily,
% keywordstyle = \bfseries\ttfamily\color{njuviolet},
% commentstyle = \itshape\ttfamily\color{gray},
% stringstyle = \color{njumagenta},
% numbers = left,
% captionpos = t,
% breaklines = true,
% xleftmargin = 2 em,
% xrightmargin = 2 em
% }
% \lstset{
% style = njulisting,
% flexiblecolumns
% }
% % \lstMakeShortInline[
% % style=njulisting,
% % basicstyle=\normalsize\tt,
% % columns=fixed]|
% \setchemfig{
% atom sep=14.4pt,
% double bond sep=2.6pt,
% bond style={line width=0.6pt},
% cram width=2.0pt,
% bond offset=1.6pt
% }
% \renewcommand*\printatom[1]{\small\ensuremath{\mathsf{#1}}}
% https://tex.stackexchange.com/questions/33264/span-as-a-math-operator
\DeclareMathOperator{\spn}{span}
\NewDocumentCommand\mathbi{m}{\textbf{\em #1}}
\begin{document} \begin{document}
\maketitle % \frontmatter
\maketitle
% \begin{preface}
% 感慨万千,一时语塞。实在不知道写啥好,表演个朗诵课文吧。
\input{chapters/Abstract} % \zhlipsum[108-110][name=zhufu]
\input{chapters/Preface}
% \vspace{1cm}
% \begin{flushright}
% 某人\\
% 2021年初秋于扬州
% \end{flushright}
% \end{preface}
\begin{abstract}
\zhlipsum[76-90][name=zhufu]
\end{abstract}
\begin{abstract*}
\blindtext
\end{abstract*}
\raggedbottom
\tableofcontents \tableofcontents
\listoffigures \listoffigures
...@@ -57,23 +177,98 @@ ...@@ -57,23 +177,98 @@
\mainmatter \mainmatter
\input{chapters/Introduction} \begin{notation}[10cm]
\input{chapters/Environments} \item[DMRG] 密度矩阵重整化群 (Density-Matrix Reformation-Group)
\input{chapters/Layout} \item[DFT] 密度泛函理论 (Density functional theory)
\input{chapters/FigTabCode} \item[PCR] 聚合酶链式反应 (Polymerase Chain Reaction)
\item[HTTP] 超文本传输协议 (Hypertext Transfer Protocol)
\item[CSS] 层叠样式表 (Cascading Style Sheets)
\item[GUI] 图形用户界面 (Graphical User Interface)
\item[CLI] 命令行界面 (Command-Line Interface)
\item[IPO] 首次公开募股 (Initial Public Offering)
\item[CDO] 抵押债务证券 (Collateralized Debt Obligations)
\item[IPR] 国内称为贷款基础利率,美国、香港等地则称为最优惠贷款利率 (Loan Prime Rate)
\item[$k_\mathrm{B}$] 玻尔兹曼常数
\item[$h$] 普朗克常数
\item[$\hbar$] 约化普朗克常数
\item[$c$] 光速
\item[$x$] 坐标
\item[$p$] 动量
\item[$t$] 时间
\item[$\mu$] 约化质量
\item[$I$] 转动惯量
\item[呜呜呜] 特别长会怎样呢哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈
\item[呜呜呜] 特别长会怎样呢哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈
\item[呜呜呜] 特别长会怎样呢哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈
\item[呜呜呜] 特别长会怎样呢哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈
\end{notation}
\chapter[非常长的标题不好看]{如果标题非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常长会怎样呢}
\label{ch:longtitle}
\section[还是用短点的吧]{如果标题非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常长会怎样呢}
\cref{ch:longtitle}答案是使用可选参数:\verb+\chapter[短描述]{完整的长标题}+
\zhlipsum[1-10][name=zhufu]
\subsection{测试}
\zhlipsum[11-20][name=zhufu]
\section{列表环境}
\begin{itemize}
\item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试
\item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试
\item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试
\end{itemize}
\begin{enumerate}
\item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试
\item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试
\item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试
\end{enumerate}
\begin{description}
\item[测试测试] 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测
\item[测试测试] 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测
\item[测试测试] 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测
\end{description}
\chapter{脚注}
测试脚注的编号效果%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\footnote{测试测试测试测试测试测试测试测试测试测试测试测试}%
\input{chapters/FigAndTab}
% \input{chapters/Specific}
\input{chapters/Mathematics} \input{chapters/Mathematics}
\input{chapters/Reference}
\input{chapters/Bibliography} \input{chapters/Bibliography}
\printbibliography[ \printbibliography
heading=bibintoc,
title=参考文献]
\input{chapters/Acknowledgement} \begin{acknowledgement}
感谢\href{https://git.nju.edu.cn/nju-lug/lug-introduction}{NJU Linux User Group}
\end{acknowledgement}
\appendix % \appendix
\input{chapters/Achievements} % \input{chapters/Achievements}
\input{chapters/Standard} % \input{chapters/Standard}
\end{document} \end{document}
test/wug.png

75.4 KiB