Skip to content
Snippets Groups Projects
Unverified Commit 3baf6ecf authored by atxy-blip's avatar atxy-blip Committed by GitHub
Browse files

feat: v0.14.0 更新

parents 8228c1d8 a87ec509
No related branches found
No related tags found
No related merge requests found
Showing
with 1554 additions and 779 deletions
root = true
[*]
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8
end_of_line = lf
indent_style = space
[*.{dtx,tex,bib}]
indent_size = 2
...@@ -6,15 +6,18 @@ labels: bug ...@@ -6,15 +6,18 @@ labels: bug
assignees: '' assignees: ''
--- ---
**前提**
- [ ] 我已尝试更新模板版本
- [ ] 我已在模板手册、项目 wiki以及既有 issue 中检索过该问题
**描述** **描述**
简要说明问题的症状。 简要说明问题的症状。
**最小工作示例** **最小工作示例**
一段完整的可供编译的 TeX 代码,用来复现上述问题。请删除所有不会引起该问题的内容。譬如,对于正文格式出现的问题,不必添加 `\njusetup` `\tableofcontents` 等命令。 一段完整的可供编译的 TeX 代码,用来复现上述问题。这段代码应当从 `\documentclass` 开始,到 `\end{document}` 结束。请删除所有不会引起该问题的内容。譬如,对于正文格式出现的问题,不必添加 `\njusetup` `\tableofcontents` 等命令。
``` ```
\documentclass[]{njuthesis} \documentclass[]{njuthesis}
...... ...
\end{document} \end{document}
``` ```
...@@ -26,6 +29,7 @@ assignees: '' ...@@ -26,6 +29,7 @@ assignees: ''
- 操作系统:[e.g. Windows 10] - 操作系统:[e.g. Windows 10]
- TeX 发行版:[e.g. TeX Live 2021] - TeX 发行版:[e.g. TeX Live 2021]
- 编译命令:[e.g. xelatex] - 编译命令:[e.g. xelatex]
- 模板版本:[e.g. v0.14.0]
**额外信息** **额外信息**
任何你认为有帮助的信息。 任何你认为有帮助的信息。
...@@ -11,7 +11,7 @@ on: ...@@ -11,7 +11,7 @@ on:
env: env:
CTAN_URL: https://mirrors.rit.edu/CTAN CTAN_URL: https://mirrors.rit.edu/CTAN
TL_PACKAGES: algorithms alphalph auxhook background biber biblatex biblatex-gb7714-2015 bibtex blindtext booktabs caption chemfig cleveref cm-unicode colortbl csquotes ctex dashundergaps diagbox emptypage enumitem everypage fancyhdr fancyvrb fandol float footmisc gbt7714 hologo hycolor hypdoc hyperref l3build latexmk libertinus-fonts listings lua-ul lualatex-math luatex85 makecell makeindex mathtools mhchem microtype multirow natbib newcomputermodern ninecolors njuvisual ntheorem pict2e physics preview psnfss setspace simplekv siunitx standalone symbol tex-gyre tex-gyre-math threeparttable translator underscore unicode-math url wrapfig xits xstring zhlipsum zref TL_PACKAGES: algorithms alphalph auxhook background biber biblatex biblatex-gb7714-2015 bibtex blindtext booktabs caption chemfig cleveref cm-unicode colortbl csquotes ctex dashundergaps diagbox emptypage enumitem everypage fancyhdr fancyvrb fandol float footmisc gbt7714 hologo hycolor hypdoc hyperref l3build latexmk libertinus-fonts listings lua-ul lualatex-math luatex85 makecell makeindex mathtools mhchem microtype multirow natbib newcomputermodern ninecolors njuvisual ntheorem pict2e physics preview psnfss setspace simplekv siunitx standalone symbol tabularray tex-gyre tex-gyre-math threeparttable translator underscore unicode-math url wrapfig xits xstring zhlipsum zref
jobs: jobs:
build-on-ubuntu: build-on-ubuntu:
...@@ -42,6 +42,8 @@ jobs: ...@@ -42,6 +42,8 @@ jobs:
run: | run: |
${{ env.SET_PATH }} ${{ env.SET_PATH }}
cd test cd test
mv ../scripts/* .
pdflatex --shell-escape "generate-img.tex"
latexmk -halt-on-error -time -pdfxe -jobname=test-xetex test.tex latexmk -halt-on-error -time -pdfxe -jobname=test-xetex test.tex
latexmk -halt-on-error -time -pdflua -jobname=test-luatex test.tex latexmk -halt-on-error -time -pdflua -jobname=test-luatex test.tex
......
...@@ -49,16 +49,17 @@ jobs: ...@@ -49,16 +49,17 @@ jobs:
${{ env.SET_PATH }} ${{ env.SET_PATH }}
l3build ctan l3build ctan
mv njuthesis-ctan.zip njuthesis-ctan-$VERSION.zip mv njuthesis-ctan.zip njuthesis-ctan-$VERSION.zip
cp build/doc/njuthesis.pdf njuthesis-$VERSION.pdf mv njuthesis.pdf njuthesis-$VERSION.pdf
- name: Zip RELEASE package - name: Zip RELEASE package
run: | run: |
${{ env.SET_PATH }} ${{ env.SET_PATH }}
xetex njuvisual.dtx xetex njuvisual.dtx
mv build/unpacked/njuthesis.cls njuthesis.cls mv docs/* .
mv docs/njuthesis-sample.bib njuthesis-sample.bib mv scripts/* .
mv docs/njuthesis-sample.tex njuthesis-sample.tex mv build/unpacked/njuthesis.cls .
zip -r njuthesis-$VERSION.zip .vscode njuthesis-sample.tex njuthesis-sample.bib njuthesis.cls njuvisual.sty conf.txsprofile LICENSE README.md pdflatex --shell-escape "generate-img.tex"
zip -r njuthesis-user-$VERSION.zip njuthesis-sample.tex njuthesis-sample.bib njuthesis.cls njuvisual.sty nju-emblem.pdf nju-name.pdf LICENSE README.md
- uses: "marvinpinto/action-automatic-releases@latest" - uses: "marvinpinto/action-automatic-releases@latest"
with: with:
...@@ -66,5 +67,5 @@ jobs: ...@@ -66,5 +67,5 @@ jobs:
prerelease: false prerelease: false
files: | files: |
njuthesis-v*.pdf njuthesis-v*.pdf
njuthesis-v*.zip njuthesis-user-v*.zip
njuthesis-ctan-v*.zip njuthesis-ctan-v*.zip
The `njuthesis` class The `njuthesis` class
===================== =====================
The `njuthesis` class is intended for typesetting Nanjing University dissertations with LaTeX, providing support for bachelor, masters, and doctoral thesis. Compilation of this class requires either `xelatex` or `lualatex` engine. The `njuthesis` class is intended for typesetting Nanjing University
dissertations with LaTeX, providing support for bachelor, master, and
doctoral thesis. Compilation of this class requires either `xelatex`
or `lualatex` engine.
Contributing Contributing
------------ ------------
...@@ -13,7 +16,7 @@ are always welcome. ...@@ -13,7 +16,7 @@ are always welcome.
Wiki Wiki
---- ----
Please see [Chinese wiki](https://github.com/nju-lug/NJUThesis/wiki) Please see [Chinese wiki](https://github.com/nju-lug/NJUThesis/wiki).
License License
------- -------
...@@ -25,4 +28,4 @@ version. ...@@ -25,4 +28,4 @@ version.
----- -----
Copyright (C) 2021 by NJU LUG. Copyright (C) 2021 - 2022 by NJU LUG.
# NJU Thesis # NJU Thesis: 南京大学学位论文 LaTeX 模板
[![njuthesis](https://img.shields.io/badge/njuthesis-latex-blue)](https://git.nju.edu.cn/nju-lug/nju-latex-templates) [![njuthesis](https://img.shields.io/badge/njuthesis-latex-blue)](https://git.nju.edu.cn/nju-lug/nju-latex-templates)
[![overleaf](https://img.shields.io/badge/overleaf-supported-brightgreen)](https://tex.nju.edu.cn) [![overleaf](https://img.shields.io/badge/overleaf-supported-brightgreen)](https://tex.nju.edu.cn)
...@@ -6,74 +6,54 @@ ...@@ -6,74 +6,54 @@
[![CTAN](https://img.shields.io/ctan/v/njuthesis.svg)](https://www.ctan.org/pkg/njuthesis) [![CTAN](https://img.shields.io/ctan/v/njuthesis.svg)](https://www.ctan.org/pkg/njuthesis)
[![GitHub release](https://img.shields.io/github/release/nju-lug/NJUThesis/all.svg)](https://github.com/nju-lug/NJUThesis/releases/latest) [![GitHub release](https://img.shields.io/github/release/nju-lug/NJUThesis/all.svg)](https://github.com/nju-lug/NJUThesis/releases/latest)
> 此项目是基于[NJU thesis 2021](https://github.com/FengChendian/NJUThesis2021)的重构版本,目前本科生及研究生版本**已经基本重构完成**。 > 此项目是基于 [NJU thesis 2021](https://github.com/FengChendian/NJUThesis2021) 的重构版本,目前本科生及研究生版本**已经重构完成**。
> 然而,研究生院并未提供完善的规定,部分格式来自于本科生院。**如果院系另有要求,请提交issue**。 > 然而,研究生院并未提供完善的规定,部分格式来自于本科生院。**如果院系另有要求,请提交 issue**。
原来的[NJU thesis 2021](https://github.com/FengChendian/NJUThesis2021)模板太过古老并且不支持硕士、博士论文,目前难以维护,因此为了模板的可持续发展,现在将对该项目进行重构,项目挂载于[NJU-LUG](https://github.com/nju-lug)组织仓库下,目前已[发布在CTAN](https://ctan.org/pkg/njuthesis) 本模板基于本科生院的论文撰写规范制作,同时参考研究生院提供的硕士、博士学位材料包,用于生成符合南京大学排版要求和相应的国家规范、行业标准的学位论文,力求通过 LaTeX3 语法实现清晰的实现逻辑、较高的可定制性以及友好的用户接口。目前 [`njuthesis`](https://ctan.org/pkg/njuthesis) 文档类已发布在CTAN。
相关文档请参见[本项目wiki](https://github.com/nju-lug/NJUThesis/wiki)
## 快速开始 ## 快速开始
请首先阅读 [Releases](https://github.com/nju-lug/NJUThesis/releases/latest) 中附带的 `njuthesis.pdf` ,这份说明文档详尽阐述了模板的特性和使用方法。 请首先阅读[用户手册](http://mirrors.ctan.org/macros/unicodetex/latex/njuthesis/njuthesis.pdf),其中详尽阐述了模板的特性和使用方法。
对于普通用户,推荐使用下述的**南大TeX编译方法**
### 本地编译
1. [从南大镜像站下载](https://mirror.nju.edu.cn/download/app/TeX%20%E6%8E%92%E7%89%88%E7%B3%BB%E7%BB%9F)并安装最新的TeX发行版(推荐MiKTeX),并更新所有宏包
2. 下载包含[模板全部文件](https://github.com/nju-lug/NJUThesis/releases/latest)的压缩包`njuthesis.zip`
3. 根据需要更改`njuthesis-sample.tex`文件中的内容
4. 在模板根目录下运行`latexmk`运行编译,得到对应的PDF文件
#### 关于本地编译
- 模板支持`latexmk``xelatex``lualatex`三种编译方式 对于普通用户,首要推荐使用下述的**南大TeX编译方法**
- 如果使用`latexmk`,请务必使用完整的命令`latexmk -xelatex`以免产生不必要的问题
- 如果使用`xelatex``lualatex`,需要按照`xelatex/lualatex` -> `biber` -> `xelatex/lualatex` -> `xelatex/lualatex`的顺序编译四次
- 仓库中`.vscode`附带一份VScode的LaTeX WorkShop的配置文件,可根据需要使用
### [南大TeX](https://tex.nju.edu.cn)编译 ### 南大 TeX 编译
[南大TeX](https://tex.nju.edu.cn)eScience中心为南大在校师生提供的在线LaTeX编译平台,已*预置本模板*。只需参考`njuthesis-sample.tex`新建文档,在项目内页面左上角的`Menu`中,将编译器改为`XeLaTeX``LuaLaTeX`即可编写论文,不必上传`.cls`等格式文件 [南大 TeX](https://tex.nju.edu.cn)[eScience 中心](https://sci.nju.edu.cn)为南大在校师生提供的在线 TeX 编译平台,已*安装有本模板的最新版*。在*2022年春节更新*后,只需在**创建新项目**菜单中选择**论文模板**即可开始写作
#### 上传模板的方法(不推荐) ### 本地编译
如果希望对模板格式进行修改,或者南大TeX安装的版本未及时更新错误补丁,也可以自行上传本模板进行在线写作。
1. 下载包含[模板全部文件](https://github.com/nju-lug/NJUThesis/releases/latest)的压缩包`njuthesis.zip`
2. 登录[南大TeX](https://tex.nju.edu.cn),点击New Project -> Upload Project上传刚刚得到的压缩包,上传后`njuthesis-sample.tex``njuthesis.cls`等文件应在根目录,0.10.0以后的目录结构如下所示:
```shell
NJUThesis/
│ njuthesis-sample.bib
│ njuthesis-sample.tex
│ njuthesis.cls
│ njuvisual.sty
```
3. 在南大TeX项目内页面左上角的`Menu`中,将编译器改为`XeLaTeX``LuaLaTeX`
4. 编写TeX文档
### 关于DocStrip文件 请使用包管理器安装 `njuthesis``njuvisual` 的最新版。
从0.9.0版以后,本模板以DocStrip(`.dtx`)格式进行维护。常规的`.cls``.sty`格式文件可从Releases页面下载或使用以下方法提取。我们只建议有经验的同学使用这一文件。 新手同学不妨直接使用以下流程:
DocStrip格式合并了LaTeX源代码和说明文档,更有利于宏包的发布。要使用该文件,请在当前工作目录下打开终端: 1. [从南大镜像站下载](https://mirror.nju.edu.cn/download/app/TeX%20%E6%8E%92%E7%89%88%E7%B3%BB%E7%BB%9F)并安装最新的 TeX 发行版,并更新所有宏包
2. 下载包含[模板全部文件](https://github.com/nju-lug/NJUThesis/releases/latest)的压缩包 `njuthesis-user-v*.zip`
3. 根据需要更改 `njuthesis-sample.tex` 文件中的内容
4. 在模板根目录下运行 `latexmk -xelatex` 运行编译,得到对应的 PDF 文件
- 输入`xetex njuthesis.dtx`以提取宏包内容 ### 典型结构
- 输入`latexmk njuthesis.dtx`以生成并查看内置的文档
请注意,由于文件重名原因,项目中的示例论文模板已被重命名为`njuthesis-sample.tex` ```
\documentclass{njuthesis}
\njusetup{}
\begin{document}
\maketitle
\tableofcontents
\mainmatter
\chapter{欢迎}
使用 \LaTeX{}
\printbibliography
\end{document}
```
## 常见问题 ## 常见问题
请参见[常见问题](https://github.com/nju-lug/NJUThesis/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98) 请参见[本项目 Wiki](https://github.com/nju-lug/NJUThesis/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98)
## 贡献 ## 贡献
如果你发现了模板的问题,欢迎在 Github 中提交 [issue](https://github.com/nju-lug/NJUThesis/issues) 或者 [PR](https://github.com/nju-lug/NJUThesis/pulls) 如果你发现了模板的问题,欢迎在 GitHub 中提交 [issue](https://github.com/nju-lug/NJUThesis/issues) 或者 [PR](https://github.com/nju-lug/NJUThesis/pulls)
## 许可 ## 许可
......
...@@ -8,7 +8,7 @@ module = "njuthesis" ...@@ -8,7 +8,7 @@ module = "njuthesis"
checkengines = {"xetex", "luatex"} checkengines = {"xetex", "luatex"}
checkopts = "-interaction=batchmode" checkopts = "-interaction=batchmode"
textfiles = {"LICENSE", "*.md"} textfiles = {"LICENSE", "*.md", "*.ins"}
ctanreadme = "README-CTAN.md" ctanreadme = "README-CTAN.md"
sourcefiledir = "source" sourcefiledir = "source"
......
@ARTICLE{njuthesis,
title = {南京大学学士学位论文 LaTeX 模板},
AUTHOR = {NJU-LUG},
JOURNALTITLE = {Github},
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, @article{schollwock2011,
AUTHOR = "Segletes, S. B. AND Walters, W. P.", title = {The Density-Matrix Renormalization Group in the Age of Matrix Product States},
TITLE = {Extensions to the Exact Solution of the Long-Rod author = {Schollwöck, Ulrich},
Penetration/Erosion Equations}, date = {2011-01},
JOURNAL = "IJIE", journaltitle = {Annals of Physics},
YEAR = "2003", shortjournal = {Annals of Physics},
VOLUME = "28", volume = {326},
PAGES = "363--376" number = {1},
pages = {96--192},
issn = {00034916},
doi = {10.1016/j.aop.2010.09.012},
url = {https://linkinghub.elsevier.com/retrieve/pii/S0003491610001752},
urldate = {2021-10-11},
abstract = {The density-matrix renormalization group method (DMRG) has established itself over the last decade as the leading method for the simulation of the statics and dynamics of one-dimensional strongly correlated quantum lattice systems. In the further development of the method, the realization that DMRG operates on a highly interesting class of quantum states, so-called matrix product states (MPS), has allowed a much deeper understanding of the inner structure of the DMRG method, its further potential and its limitations. In this paper, I want to give a detailed exposition of current DMRG thinking in the MPS language in order to make the advisable implementation of the family of DMRG algorithms in exclusively MPS terms transparent. I then move on to discuss some directions of potentially fruitful further algorithmic development: while DMRG is a very mature method by now, I still see potential for further improvements, as exemplified by a number of recently introduced algorithms.},
langid = {english}
} }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% NJU Thesis % NJU Thesis
% 南京大学毕业论文LaTeX模板 % 南京大学毕业论文LaTeX模板
% Version 0.13.x (2021-12-13) % Version 0.14.x (2021-12-21)
% %
% 请关注项目地址以获取最新变化 % 请关注项目地址以获取最新变化
% https://github.com/nju-lug/NJUThesis % https://github.com/nju-lug/NJUThesis
...@@ -9,22 +9,27 @@ ...@@ -9,22 +9,27 @@
% https://ctan.org/pkg/njuthesis % https://ctan.org/pkg/njuthesis
% %
% 贡献者 % 贡献者
% Yu XIONG @atxy-blip Yichen ZHAO @FengChendian % Yu XIONG @atxy-blip Yichen ZHAO @FengChendian
% Song GAO @myandeg Chang MA @glatavento % Song GAO @myandeg Chang MA @glatavento
% Yilun SUN @HermitSun Yinfeng LIN @linyinfeng % Yilun SUN @HermitSun Yinfeng LIN @linyinfeng
% %
% 许可证 % 许可证
% LaTeX Project Public License(版本 1.3c 或更高) % LaTeX Project Public License(版本 1.3c 或更高)
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%------------------------------------------------- %---------------------------------------------------------------------
% 一些提高使用体验的小技巧: % 一些提高使用体验的小技巧:
% 1. 请务必使用 UTF-8 编码编写和保存本文档 % 1. 请务必使用 UTF-8 编码编写和保存本文档
% 2. 请务必使用 XeLaTeX 或 LuaLaTeX 引擎进行编译 % 2. 请务必使用 XeLaTeX 或 LuaLaTeX 引擎进行编译
% 3. 不保证接口稳定,写作前一定要读一读说明文档 % 3. 不保证接口稳定,写作前一定要读一读说明文档
% 4. 以百分号(%)开头的内容为注释,可以随意删除 % 4. 以百分号(%)开头的内容为注释,可以随意删除
%------------------------------------------------- %---------------------------------------------------------------------
%---------------------------------------------------------------------
% 请先阅读使用手册:
% http://mirrors.ctan.org/macros/unicodetex/latex/njuthesis/njuthesis.pdf
%---------------------------------------------------------------------
\documentclass[ \documentclass[
% 模板选项: % 模板选项:
...@@ -33,7 +38,7 @@ ...@@ -33,7 +38,7 @@
% degree = ug|mg|mf|phd, % 学位类型,默认为本科 % degree = ug|mg|mf|phd, % 学位类型,默认为本科
% type = thesis|design, % 文档类型,默认为毕业论文 % type = thesis|design, % 文档类型,默认为毕业论文
% nlcover = true|false, % 是否需要国家图书馆封面,默认关闭 % nlcover = true|false, % 是否需要国家图书馆封面,默认关闭
% orig-decl = true|false, % 是否需要诚信承诺书或原创性声明,默认关闭 % decl-page = true|false, % 是否需要诚信承诺书或原创性声明,默认关闭
% %
% 建议定稿前一直开启草稿模式以提升编译速度 % 建议定稿前一直开启草稿模式以提升编译速度
% draft = true|false, % 是否开启草稿模式,默认关闭 % draft = true|false, % 是否开启草稿模式,默认关闭
...@@ -62,20 +67,20 @@ ...@@ -62,20 +67,20 @@
% 直接填写标题就是自动换行 % 直接填写标题就是自动换行
% 可以使用英文半角感叹号(!)手动指定换行位置 % 可以使用英文半角感叹号(!)手动指定换行位置
% %
title* = {My Title in English}, title* = {My Title in English},
% 英文题目 % 英文题目
% %
author = {姓名}, author = {姓名},
% 作者姓名 % 作者姓名
% %
author* = {Ming Xing}, author* = {Ming Xing},
% 作者英文姓名 % 作者英文姓名
% 一般使用拼音 % 一般使用拼音
% %
keywords = {我,就是,充数的,关键词}, keywords = {我,就是,充数的,关键词},
% 中文关键词列表 % 中文关键词列表
% 使用英文半角逗号(,)分隔 % 使用英文半角逗号(,)分隔
% %
keywords* = {Dummy,Keywords,Here,{It Is}}, keywords* = {Dummy,Keywords,Here,{It Is}},
% 英文关键词 % 英文关键词
% 使用英文半角逗号(,)分隔 % 使用英文半角逗号(,)分隔
...@@ -106,17 +111,17 @@ ...@@ -106,17 +111,17 @@
% 导师职称 % 导师职称
% 新版对选项名称进行了改动 % 新版对选项名称进行了改动
% %
supervisor-ii = {第二导师}, % supervisor-ii = {第二导师},
supervisor-ii* = {My Second Supervisor}, % supervisor-ii* = {My Second Supervisor},
supervisor-ii-title = {副教授}, % supervisor-ii-title = {副教授},
supervisor-ii-title* = {Associate professor}, % supervisor-ii-title* = {Associate professor},
% 第二导师 % 第二导师
% 新版对选项名称进行了改动 % 新版对选项名称进行了改动
% 如果确实没有第二导师,不填写即可 % 如果确实没有第二导师,不填写即可
% %
submit-date = {2021年8月10日}, submit-date = {2021年8月10日},
% 提交日期 % 提交日期
% %
% %
% 以下均为研究生项 % 以下均为研究生项
field = {物理化学}, field = {物理化学},
...@@ -154,10 +159,41 @@ ...@@ -154,10 +159,41 @@
江苏省南京市栖霞区仙林大道163号 江苏省南京市栖霞区仙林大道163号
} }
% 导师联系方式 % 导师联系方式
},
%
%
% bib 类用于参考文献设置
bib = {
% style = author-year,
% 参考文献样式
% 默认为顺序编码制(numeric)
% 可选著者-出版年制(author-year)
%
resource = {njuthesis-sample.bib}
% 参考文献数据源
% 需要带扩展名的完整文件名
% 可使用逗号分隔多个文件
% 此条等效于 \addbibresource 命令
},
%
%
% style 类用于外观样式设置
style = {
emblem-img = {nju-emblem},
% 外置校徽图片路径
% 建议使用矢量图
% 使用外置图片有助于减少编译时间
% 空置时会自动导入 njuisual 宏包的矢量曲线
%
name-img = {nju-name}
% 外置校名图片路径
% 说明同上
} }
} }
% 自行使用所需宏包 % 自行载入所需宏包
% \usepackage{subcaption} % 用于嵌套小幅图像,比 subfig 和 subfigure 好用
% \usepackage{wrapfig} % 用于生成文字环绕的图片
% \usepackage{siunitx} % 用于书写单位符号 % \usepackage{siunitx} % 用于书写单位符号
% \usepackage[version=4]{mhchem} % 用于绘制分子式 % \usepackage[version=4]{mhchem} % 用于绘制分子式
% \usepackage{listings} % 用于展示代码 % \usepackage{listings} % 用于展示代码
...@@ -166,9 +202,6 @@ ...@@ -166,9 +202,6 @@
% 设置图片存储位置 % 设置图片存储位置
\graphicspath{{figure/}} \graphicspath{{figure/}}
% 导入参考文献数据
\addbibresource{njuthesis-sample.bib}
% 在导言区随意定制所需命令 % 在导言区随意定制所需命令
% https://tex.stackexchange.com/questions/33264/span-as-a-math-operator % https://tex.stackexchange.com/questions/33264/span-as-a-math-operator
\DeclareMathOperator{\spn}{span} \DeclareMathOperator{\spn}{span}
...@@ -179,9 +212,9 @@ ...@@ -179,9 +212,9 @@
% 开始编写论文 % 开始编写论文
\begin{document} \begin{document}
%------------------------------------------------- %---------------------------------------------------------------------
% 封面、摘要、前言和目录 % 封面、摘要、前言和目录
%------------------------------------------------- %---------------------------------------------------------------------
% 生成封面页 % 生成封面页
\maketitle \maketitle
...@@ -191,6 +224,10 @@ ...@@ -191,6 +224,10 @@
% 如需抑制这些信息,可以反注释以下命令 % 如需抑制这些信息,可以反注释以下命令
% \raggedbottom % \raggedbottom
% \begin{preface}
% 前言
% \end{preface}
\begin{abstract} \begin{abstract}
中文摘要 中文摘要
\end{abstract} \end{abstract}
...@@ -199,10 +236,6 @@ ...@@ -199,10 +236,6 @@
English abstract English abstract
\end{abstract*} \end{abstract*}
\begin{preface}
前言
\end{preface}
% 生成目录 % 生成目录
\tableofcontents \tableofcontents
% 生成图片清单 % 生成图片清单
...@@ -210,9 +243,9 @@ ...@@ -210,9 +243,9 @@
% 生成表格清单 % 生成表格清单
\listoftables \listoftables
%------------------------------------------------- %---------------------------------------------------------------------
% 正文部分 % 正文部分
%------------------------------------------------- %---------------------------------------------------------------------
\mainmatter \mainmatter
% 建议将论文内容拆分为多个文件 % 建议将论文内容拆分为多个文件
...@@ -224,24 +257,28 @@ ...@@ -224,24 +257,28 @@
\chapter{引言} \chapter{引言}
%------------------------------------------------- \section{tDMRG}
矩阵乘积态也被用于含时薛定谔方程的求解,形成了含时密度矩阵重整化群方法\cite{schollwock2011}
%---------------------------------------------------------------------
% 参考文献 % 参考文献
%------------------------------------------------- %---------------------------------------------------------------------
% 生成参考文献页 % 生成参考文献页
\printbibliography \printbibliography
%------------------------------------------------- %---------------------------------------------------------------------
% 致谢 % 致谢
%------------------------------------------------- %---------------------------------------------------------------------
\begin{acknowledgement} \begin{acknowledgement}
感谢 \href{https://git.nju.edu.cn/nju-lug/lug-introduction}{NJU Linux User Group} 感谢 \href{https://git.nju.edu.cn/nju-lug/lug-introduction}{LUG@NJU}
\end{acknowledgement} \end{acknowledgement}
%------------------------------------------------- %---------------------------------------------------------------------
% 附录部分 % 附录部分
%------------------------------------------------- %---------------------------------------------------------------------
% 附录部分使用单独的字母序号 % 附录部分使用单独的字母序号
\appendix \appendix
......
...@@ -6,15 +6,23 @@ cd "mythesis" ...@@ -6,15 +6,23 @@ cd "mythesis"
cp -f "../docs/njuthesis-sample.tex" . cp -f "../docs/njuthesis-sample.tex" .
cp -f "../docs/njuthesis-sample.bib" . cp -f "../docs/njuthesis-sample.bib" .
cp -f "../source/njuthesis.dtx" . cp -f "../source/njuthesis.dtx" .
cp -f "../scripts/generate-img.tex" .
wget -q "https://mirror.nju.edu.cn/CTAN/macros/latex/contrib/njuvisual/njuvisual.dtx" wget -q "https://mirror.nju.edu.cn/CTAN/macros/latex/contrib/njuvisual/njuvisual.dtx"
wget -q "https://mirror.nju.edu.cn/CTAN/macros/latex/contrib/njuvisual/njuvisual-curves.dtx" wget -q "https://mirror.nju.edu.cn/CTAN/macros/latex/contrib/njuvisual/njuvisual-curves.dtx"
xetex "njuthesis.dtx" > /dev/null xetex "njuthesis.dtx" > /dev/null
xetex "njuvisual.dtx" > /dev/null xetex "njuvisual.dtx" > /dev/null
pdflatex --shell-escape "generate-img.tex" > /dev/null
rm *.aux
rm *.auxlock
rm *.dpth
rm *.dtx rm *.dtx
rm *.ins rm *.ins
rm *.log rm *.log
rm *.md5
rm generate-img.tex
rm generate-img.pdf
cd .. cd ..
...@@ -6,15 +6,23 @@ CD "mythesis" ...@@ -6,15 +6,23 @@ CD "mythesis"
COPY /Y "..\docs\njuthesis-sample.tex" . COPY /Y "..\docs\njuthesis-sample.tex" .
COPY /Y "..\docs\njuthesis-sample.bib" . COPY /Y "..\docs\njuthesis-sample.bib" .
COPY /Y "..\source\njuthesis.dtx" . COPY /Y "..\source\njuthesis.dtx" .
COPY /Y "..\scripts\generate-img.tex" .
curl -s -o "njuvisual.dtx" "https://mirror.nju.edu.cn/CTAN/macros/latex/contrib/njuvisual/njuvisual.dtx" curl -s -o "njuvisual.dtx" "https://mirror.nju.edu.cn/CTAN/macros/latex/contrib/njuvisual/njuvisual.dtx"
curl -s -o "njuvisual-curves.dtx" "https://mirror.nju.edu.cn/CTAN/macros/latex/contrib/njuvisual/njuvisual-curves.dtx" curl -s -o "njuvisual-curves.dtx" "https://mirror.nju.edu.cn/CTAN/macros/latex/contrib/njuvisual/njuvisual-curves.dtx"
xetex "njuthesis.dtx" > NUL xetex "njuthesis.dtx" > NUL
xetex "njuvisual.dtx" > NUL xetex "njuvisual.dtx" > NUL
pdflatex --shell-escape "generate-img.tex" > NUL
DEL "*.aux"
DEL "*.auxlock"
DEL "*.dpth"
DEL "*.dtx" DEL "*.dtx"
DEL "*.ins" DEL "*.ins"
DEL "*.log" DEL "*.log"
DEL "*.md5"
DEL "generate-img.tex"
DEL "generate-img.pdf"
CD .. CD ..
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 本文件用于生成黑色的校徽和校名图片
% 编译命令为 pdflatex --shell-escape generate-img
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage{njuvisual}
\usetikzlibrary{external}
\tikzexternalize[prefix=nju-]
\begin{document}
\tikzsetnextfilename{emblem}\njuemblem[black]{!}{!}
\tikzsetnextfilename{name}\njuname[black]{!}{!}
\end{document}
This diff is collapsed.
\njuchapter{攻读博士学位期间研究成果及参与项目情况} \njuchapter{攻读博士学位期间研究成果及参与项目情况}
\njupaperlist{goossens93,segl03} \njupaperlist[攻读博士学位期间发表的学术论文]{Nemec1997-209-214,Chiani1998-2998-3008,Chiani1998a}
\njupaperlist*{goossens93,njuthesis}
\section*{攻读博士学位期间参与的科研课题} \section*{攻读博士学位期间参与的科研课题}
......
...@@ -3,4 +3,11 @@ ...@@ -3,4 +3,11 @@
\section{引用命令} \section{引用命令}
南京大学模板\cite{njuthesis} 顺序编码制的 \cite{qiujinhengetal2010,njuthesis,riedl2009quasi}(上标可设置页码)、\parencite{qiujinhengetal2010}(非上标可设置页码)、\pagescite{qiujinhengetal2010}(上
标加自动页码)、\textcite{qiujinhengetal2010}(提供作者为主语加非上标编号)、\authornumcite{qiujinhengetal2010}(提供作
者为主语加上标编号)、\footfullcite{qiujinhengetal2010}(脚注方式)
著者-年份制的\cite{qiujinhengetal2010,njuthesis,riedl2009quasi}(作者加年份用
括号包围可设置页码)、\pagescite{qiujinhengetal2010}(作者加年份用括号包围自动页码)、\yearcite{qiujinhengetal2010}(提供
年份用括号包围)、\yearpagescite{qiujinhengetal2010}(提供年份用括号包围自动页码)、\textcite{qiujinhengetal2010}(提供主
语作者加括号包围年份)、\footfullcite{qiujinhengetal2010}(脚注方式)。
...@@ -88,13 +88,105 @@ except EOFError as e: ...@@ -88,13 +88,105 @@ except EOFError as e:
\section{化学} \section{化学}
化学式: \subsection{化学式}
\begin{equation}
\frac{\varphi_{\ce{Ag +AgCl, Cl^{-}}}^{\ominus}-\varphi_{\ce{Ag +AgCl, Cl^{-}}}}{\varphi_{\ce{Ag +AgCl, Cl^{-}}}^{\ominus}}=\frac{0.0623}{0.8035}\times100\%=7.76\% 1972年,R. J. Fiela、E. Koros、R. Noyes等通过实验对BZ振荡反应作了解释。其主要思想
\end{equation} 是:系统中存在着两个受溴离子浓度控制的过程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}$
\begin{figure}[H] 时,B过程发生。在B过程中,\ce{Br-}再生,$[\ce{Br-}]$增加,当$[\ce{Br-}]$再次高于$[\ce{Br-}]_\text{crit}$时,A过程再次
\centering 发生。这样系统就在A过程与B过程间往复振荡。下面用\ce{BrO3- - Ce^{3+} - MA - H2SO4}系统为例
\chemfig{[:18]*5(-=(-CHO)-N-=)} 加以说明。\cite{qiujinhengetal2010}
\end{figure}
\ No newline at end of file % 当$[\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}
...@@ -81,7 +81,8 @@ ...@@ -81,7 +81,8 @@
\subsection{注释} \subsection{注释}
毕业论文(设计)中有个别名词或情况需要解释时,可加注说明。注释采用脚注,每页独立编号,即每页都从1开始编码,编号用1,2,3……,文中编号用上标。 毕业论文(设计)中有个别名词或情况需要解释时,可加注说明。注释采用脚注,每页独立编号,即每页都从1开始编码,编号用1,2,3……,文中编号用上标。
(十)参考文献
\subsection{参考文献}
参考文献的著录应符合国家标准,参考文献的序号左顶格,并用数字加方括号表示,如“[1]”。每一条参考文献著录均以“.”结束。 参考文献的著录应符合国家标准,参考文献的序号左顶格,并用数字加方括号表示,如“[1]”。每一条参考文献著录均以“.”结束。
\section{毕业论文(设计)装订要求} \section{毕业论文(设计)装订要求}
......
test/name.png

32 KiB

@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}
} }
...@@ -2,19 +2,22 @@ ...@@ -2,19 +2,22 @@
% 本文档用于测试 njuthesis 是否正常工作 % 本文档用于测试 njuthesis 是否正常工作
% 其内容不具有任何参考意义 % 其内容不具有任何参考意义
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \documentclass{njuthesis} \documentclass{njuthesis}
\documentclass[orig-decl]{njuthesis} % \documentclass[cjk-font=noto,latin-font=gyre]{njuthesis}
% \documentclass[cjk-font=source,latin-font=gyre]{njuthesis}
% \documentclass[cjk-font=founder,latin-font=gyre]{njuthesis}
% \documentclass[decl-page]{njuthesis}
% \documentclass[draft]{njuthesis} % \documentclass[draft]{njuthesis}
% \documentclass[type=design]{njuthesis} % \documentclass[type=design]{njuthesis}
% \documentclass[degree=mg]{njuthesis} % \documentclass[degree=mg]{njuthesis}
% \documentclass[degree=mf,orig-decl]{njuthesis} % \documentclass[degree=mf,decl-page]{njuthesis}
% \documentclass[degree=phd,draft]{njuthesis} % \documentclass[degree=phd,draft]{njuthesis}
% \documentclass[degree=phd,nlcover]{njuthesis} % \documentclass[degree=phd,nlcover]{njuthesis}
\njusetup { \njusetup {
info = { info = {
title = {一种使用南京大学 \hologo{LaTeX} 模板!编写毕业论文的经验性方法}, title = {一种使用南京大学 \hologo{LaTeX} 模板!编写毕业论文的经验性方法},
title* = {An Empirical Way of Composing Thesis with NJU \hologo{LaTeX} Template}, title* = {An Empirical Way of Composing Thesis with NJU \hologo{LaTeX} Template},
keywords = {我,就是,充数的,关键词}, keywords = {我,就是,充数的,关键词},
keywords* = {Dummy,Keywords,Here,{it is}}, keywords* = {Dummy,Keywords,Here,{it is}},
grade = {2018}, grade = {2018},
...@@ -44,50 +47,84 @@ ...@@ -44,50 +47,84 @@
secret-level = {限制}, secret-level = {限制},
udc = {004.72}, udc = {004.72},
supervisor-contact = {拉太赫科学与技术学院~枝江市结丘路~19~号~114514}, supervisor-contact = {拉太赫科学与技术学院~枝江市结丘路~19~号~114514},
},
bib = {
% style = author-year,
resource = {test.bib}
},
style = {
emblem-img = {wug},
name-img = {name}
} }
} }
% \addbibresource{test.bib}
\usepackage{listings,algorithm,algorithmic} \ctexset{
\usepackage{siunitx,physics,chemfig} contentsname = {\hspace{2em}},
\usepackage[version=4]{mhchem} % listfigurename = { 插图清单 },
\usepackage{blindtext,zhlipsum} % listtablename = { 表格清单 }
}
\addbibresource{test.bib} \usepackage{multirow,tabularray,wrapfig,subcaption}
% \usepackage{listings,algorithm,algorithmic}
% \usepackage{siunitx,physics,chemfig}
% \usepackage[version=4]{mhchem}
\usepackage{hologo,blindtext,zhlipsum}
% \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 % https://tex.stackexchange.com/questions/33264/span-as-a-math-operator
\DeclareMathOperator{\spn}{span} \DeclareMathOperator{\spn}{span}
\renewcommand{\vec}[1]{\mathbf{#1}} \renewcommand{\vec}[1]{\mathbf{#1}}
% \RenewDocumentCommand\vec{m}{\mathbf{#1}}
\NewDocumentCommand\mathbi{m}{\textbf{\em #1}} \NewDocumentCommand\mathbi{m}{\textbf{\em #1}}
\lstdefinestyle{njulisting}
{
basewidth = 0.5 em,
lineskip = 3 pt,
basicstyle = \tiny\tt,
keywordstyle = \bf,
commentstyle = \it\color{gray},
numbers = left,
captionpos = t,
breaklines = true,
xleftmargin = 2 em,
xrightmargin = 2 em
}
\lstset{
style = njulisting,
flexiblecolumns
}
% \lstMakeShortInline[
% style=njulisting,
% basicstyle=\normalsize\tt,
% columns=fixed]|
\begin{document} \begin{document}
% \frontmatter % \frontmatter
\maketitle \maketitle
% \input{chapters/Preface}
\input{chapters/Abstract} \input{chapters/Abstract}
\input{chapters/Preface}
\raggedbottom \raggedbottom
% \flushbottom % \flushbottom
...@@ -103,7 +140,7 @@ ...@@ -103,7 +140,7 @@
\section[还是用短点的吧]{如果标题非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常长会怎样呢} \section[还是用短点的吧]{如果标题非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常长会怎样呢}
\cref{ch:longtitle}答案是使用可选参数:\verb+\chapter[短描述]{完整的长标题}+ \cref{ch:longtitle}答案是使用可选参数:\verb+\chapter[短描述]{完整的长标题}+
\zhlipsum[1-20][name=zhufu] \zhlipsum[1-10][name=zhufu]
\chapter{列表环境} \chapter{列表环境}
...@@ -111,27 +148,48 @@ ...@@ -111,27 +148,48 @@
\item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试 \item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试
\item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试 \item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试
\item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试 \item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试
\item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试
\end{itemize} \end{itemize}
\begin{enumerate} \begin{enumerate}
\item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试 \item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试
\item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试 \item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试
\item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试 \item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试
\item 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试
\end{enumerate} \end{enumerate}
\begin{description} \begin{description}
\item[测试测试] 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试 \item[测试测试] 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测
\item[测试测试] 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试 \item[测试测试] 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测
\item[测试测试] 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试 \item[测试测试] 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测
\item[测试测试] 测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试
\end{description} \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/FigAndTab}
\input{chapters/Specific} % \input{chapters/Specific}
\input{chapters/Mathematics} \input{chapters/Mathematics}
\input{chapters/Bibliography} \input{chapters/Bibliography}
% \sloppy
% \emergencystretch=1em
\printbibliography \printbibliography
\input{chapters/Acknowledgement} \input{chapters/Acknowledgement}
...@@ -139,6 +197,6 @@ ...@@ -139,6 +197,6 @@
\appendix \appendix
\input{chapters/Achievements} \input{chapters/Achievements}
\input{chapters/Standard} % \input{chapters/Standard}
\end{document} \end{document}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment