├── .github ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE │ └── bug_report.md ├── dependabot.yml ├── tl_packages └── workflows │ ├── release.yml │ ├── sync-lug-git.yml │ └── test.yml ├── .gitignore ├── .vscode └── settings.json ├── CHANGELOG.md ├── LICENSE ├── Makefile ├── README.md ├── bib └── ustc.bib ├── build.lua ├── chapters ├── abstract.tex ├── achievements.tex ├── acknowledgements.tex ├── citations.tex ├── complementary.tex ├── floats.tex ├── innovations.tex ├── intro.tex ├── math.tex └── notation.tex ├── figures ├── ustc-badge.pdf ├── ustc-name-stxingkai.pdf ├── ustc-name.pdf └── ustc-title-page-heading.pdf ├── latexmkrc ├── main.tex ├── test ├── config-biblatex.lua ├── config-bibtex.lua ├── config-crossref.lua ├── config-nomencl.lua ├── save.sh ├── support │ ├── chapters.tex │ ├── info.tex │ ├── refs-authoryear.bib │ ├── refs-bachelor.bib │ └── refs-numerical.bib ├── test.sh ├── testfiles-biblatex │ ├── biblatex-authoryear.tex │ ├── biblatex-authoryear.tlg │ ├── biblatex-bachelor.tex │ ├── biblatex-bachelor.tlg │ ├── biblatex-inline.tex │ ├── biblatex-inline.tlg │ ├── biblatex-numeric.tex │ └── biblatex-numeric.tlg ├── testfiles-bibtex │ ├── bibtex-authoryear.tex │ ├── bibtex-authoryear.tlg │ ├── bibtex-bachelor.tex │ ├── bibtex-bachelor.tlg │ ├── bibtex-inline.tex │ ├── bibtex-inline.tlg │ ├── bibtex-numerical.tex │ └── bibtex-numerical.tlg ├── testfiles-crossref │ ├── equation-parentheses.tex │ ├── equation-parentheses.tlg │ ├── main-bachelor-arabic.tex │ ├── main-bachelor-arabic.tlg │ ├── main-bachelor-english.tex │ ├── main-bachelor-english.tlg │ ├── main-bachelor.tex │ ├── main-bachelor.tlg │ ├── main-english.tex │ ├── main-english.tlg │ ├── main-lof.tex │ ├── main-lof.tlg │ ├── main-loft.tex │ ├── main-loft.tlg │ ├── main-lot.tex │ ├── main-lot.tlg │ ├── main.tex │ ├── main.tlg │ ├── package-bicaption.tex │ └── package-bicaption.tlg ├── testfiles-nomencl │ ├── package-nomencl.tex │ └── package-nomencl.tlg └── testfiles │ ├── package-siunitx.tex │ ├── package-siunitx.tlg │ ├── statement-secret.tex │ ├── statement-secret.tlg │ ├── statement.tex │ ├── statement.tlg │ ├── title-page-bachelor.tex │ ├── title-page-bachelor.tlg │ ├── title-page-doctor-academic.tex │ ├── title-page-doctor-academic.tlg │ ├── title-page-doctor-engineering.tex │ ├── title-page-doctor-engineering.tlg │ ├── title-page-master-academic.tex │ ├── title-page-master-academic.tlg │ ├── title-page-master-engineering.tex │ ├── title-page-master-engineering.tlg │ ├── title-page-master-professional.tex │ ├── title-page-master-professional.tlg │ ├── title-page-secret.tex │ └── title-page-secret.tlg ├── ustcsetup.tex ├── ustcthesis-authoryear.bbx ├── ustcthesis-authoryear.bst ├── ustcthesis-authoryear.cbx ├── ustcthesis-bachelor.bbx ├── ustcthesis-bachelor.bst ├── ustcthesis-bachelor.cbx ├── ustcthesis-doc.tex ├── ustcthesis-inline.cbx ├── ustcthesis-numeric.bbx ├── ustcthesis-numeric.cbx ├── ustcthesis-numerical.bst └── ustcthesis.cls /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ### 要参与 LaTeX 模板的开发,首先要熟悉面向用户的命令和工具,除了 lshort,还应熟悉: 2 | 3 | - latex2e: 系统地介绍了 LATEX 使用的方方面面的文档,有平时很多用不到但是 LATEX 提供了的命令 4 | 5 | - 所用宏包的文档(可能还有源码): 6 | 7 | - 常用的工具 latexmk, texdoc 8 | 9 | - 一些调试技巧如 `\show` 和 `\meaning` 命令 10 | 11 | 12 | ### 下面是面向开发的文档: 13 | 14 | - clsguide: 给 LaTaX2e 宏包作者的指南 15 | 16 | - fntguide, fontspec 字体的设置 17 | 18 | - classes: 三个标准文档类 article, book, report 的实现 19 | 20 | - source2e: LaTaX2e 的源码 21 | 22 | - macros2e: 集中介绍了 LaTaX2e 里使用的一些内部宏,用于参考 23 | 24 | - dtxtut: LaTeX 的宏包与说明文档的封装方式,更详细的有 docstrip 和 doc,[Joseph Wright 的文章](http://www.texdev.net/2009/10/06/a-model-dtx-file/) 介绍了更好封装的技巧 25 | 26 | 27 | ### 关于更低层的 TeX 只是,有以下资料: 28 | 29 | - TeXbook: Knuth 的 TeX 圣经,了解底层 TeX 的原理必读。还有更简略一点的介绍文档 TeXbyTopic 和 impatient。 30 | 31 | - The LaTeX Companion: 一本大而全的书。 32 | 33 | 34 | ### 关于 BibTeX,应阅读以下文档: 35 | 36 | - btxdoc, btxhak: BibTeX 的说明文档 37 | 38 | - btxbst.doc: BibTeX 的三个标准 bst 的源文件(带注释) 39 | 40 | - ttb: 关于 bst 更详细的介绍 41 | 42 | - natbib: natbib 宏包的文档 43 | 44 | LaTeX3 的开发正在进行中,其底层接又已经相对成熟和稳定。xecjk 和 ctex 均是建立 在 LaTeX3 基础上的。关于 LaTeX3 的语法的文档有: 45 | 46 | - l3styleguide: 这是 LaTeX3 项目组写给开发者的指南 47 | 48 | - expl3: 这是 LaTeX3 编程接口宏包的文档 49 | 50 | - interface3: 这是 LaTeX3 的开发者接口文档 51 | 52 | - source3: 这是 LaTeX3 的实现 53 | 54 | 55 | 56 | ### 参考: 57 | 58 | [开发一个 LaTeX 宏包需要多少知识? - 知乎](https://www.zhihu.com/question/27017364) 59 | 60 | [如何写一个package或者class - 知乎专栏](https://zhuanlan.zhihu.com/p/19705200) 61 | 62 | 63 | ### 一些高质量的模板: 64 | 65 | - 清华大学 [xueruini/thuthesis](https://github.com/xueruini/thuthesis) 66 | 67 | - 中国科学院大学 [mohuangrui/ucasthesis](https://github.com/mohuangrui/ucasthesis) 68 | 69 | - 复旦大学 [Stone-Zeng/fduthesis](https://github.com/Stone-Zeng/fduthesis) 70 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 报告 bug 3 | about: 报告模板中的 bug,帮助我们改进 4 | 5 | --- 6 | 7 | ## 检查 8 | - [ ] 已经阅读《研究生学位论文撰写手册》或《中国科学技术大学本科毕业论文(设计)格式》 9 | - [ ] 已经将模板升级到了最新版 10 | - [ ] 已经阅读使用说明文档 `ustcthesis.pdf` 11 | - [ ] 已经阅读 [常见问题](https://github.com/ustctug/ustcthesis/wiki/常见问题) 12 | 13 | ## 编译环境 14 | - 编译的系统:macOS 10.14 / Windows 10 / Ubuntu 18.04 / Overleaf 15 | - TeX 发行版:TeX Live 2019 / MacTeX 2019 / MiKTeX 2.9.6753 16 | - 模板类型:doctor / master / bachelor 17 | 18 | ## 描述问题 19 | 《研究生学位论文撰写手册》第 xx 页要求……而模板编译的结果是…… 20 | 21 | 截图: 22 | 23 | 24 | 复现上述问题的代码: 25 | ```TeX 26 | \documentclass[degree=doctor]{ustcthesis} 27 | \begin{document} 28 | abc 29 | \end{document} 30 | ``` 31 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "github-actions" # See documentation for possible values 9 | directory: "/" # Location of package manifests 10 | schedule: 11 | interval: "weekly" 12 | -------------------------------------------------------------------------------- /.github/tl_packages: -------------------------------------------------------------------------------- 1 | # The test framework itself 2 | l3build 3 | latexmk 4 | # 5 | # Required to build formats 6 | bibtex 7 | latex-bin 8 | makeindex 9 | tex 10 | # 11 | # Assuming a 'basic' font set up, metafont is required to avoid 12 | # warnings with some packages and errors with others 13 | metafont 14 | mfware 15 | # 16 | # Dependencies for xeCJK 17 | fontspec 18 | ulem 19 | xecjk 20 | xetex 21 | # Dependencies for LuaTeX 22 | chinese-jfm 23 | lualatex-math 24 | # 25 | # Dependencies for ctex 26 | cjk 27 | ctex 28 | zhnumber 29 | # 30 | # Dependencies for algorithm2e 31 | algorithm2e 32 | ifoddpage 33 | relsize 34 | # 35 | # Dependencies for biblatex 36 | biber 37 | biblatex 38 | biblatex-gb7714-2015 39 | xstring 40 | # 41 | # Dependencies for nomencl 42 | nomencl 43 | koma-script 44 | xkeyval 45 | # 46 | # Dependencies for ustcthesis 47 | bigfoot 48 | caption 49 | enumitem 50 | fancyhdr 51 | footmisc 52 | filehook 53 | natbib 54 | notoccite 55 | multirow 56 | titlesec 57 | unicode-math 58 | # 59 | # Dependencies for fonts 60 | fandol 61 | stix2-otf 62 | tex-gyre 63 | xits 64 | # 65 | # Dependencies for extra packages 66 | booktabs 67 | threeparttable 68 | siunitx 69 | # 70 | # Dependencies for doc 71 | hypdoc 72 | listings 73 | xcolor 74 | # 75 | # Dependencies for tests 76 | mwe 77 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | push: 5 | tags: 6 | - "v**" 7 | 8 | jobs: 9 | release: 10 | if: ${{ github.repository == 'ustctug/ustcthesis' }} 11 | name: Create GitHub release 12 | runs-on: ubuntu-latest 13 | 14 | steps: 15 | - name: Checkout 16 | uses: actions/checkout@v4 17 | 18 | - name: Set up TeX Live 19 | uses: zauguin/install-texlive@v4 20 | with: 21 | package_file: .github/tl_packages 22 | 23 | - name: Build zip 24 | run: make zip 25 | 26 | - name: Extract release notes 27 | id: extract-release-notes 28 | uses: ffurrer2/extract-release-notes@v2 29 | 30 | - name: Create GitHub release 31 | uses: ncipollo/release-action@v1 32 | if: startsWith(github.ref, 'refs/tags/v') 33 | with: 34 | artifacts: ustcthesis-*.zip 35 | body: ${{ steps.extract-release-notes.outputs.release_notes }} 36 | -------------------------------------------------------------------------------- /.github/workflows/sync-lug-git.yml: -------------------------------------------------------------------------------- 1 | name: Sync to LUG git 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | 8 | jobs: 9 | sync: 10 | name: Sync 11 | runs-on: ubuntu-latest 12 | steps: 13 | 14 | - name: Checkout 15 | uses: actions/checkout@v4 16 | with: 17 | fetch-depth: 0 18 | 19 | - uses: yesolutions/mirror-action@master 20 | with: 21 | REMOTE: 'https://git.lug.ustc.edu.cn/ustctug/ustcthesis.git' 22 | GIT_USERNAME: ${{ secrets.GIT_LUG_USERNAME }} 23 | GIT_PASSWORD: ${{ secrets.GIT_LUG_PASSWORD }} 24 | PUSH_ALL_REFS: false 25 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: Test 2 | 3 | on: 4 | push: 5 | pull_request: 6 | workflow_dispatch: 7 | 8 | jobs: 9 | test: 10 | if: ${{ !contains(github.event.head_commit.message, 'ci skip') }} 11 | name: Test 12 | runs-on: ubuntu-latest 13 | steps: 14 | - name: Checkout 15 | uses: actions/checkout@v4 16 | 17 | - name: Set up TeX Live 18 | uses: zauguin/install-texlive@v4 19 | with: 20 | package_file: .github/tl_packages 21 | 22 | - name: Test example 23 | run: make main 24 | 25 | - name: Test example with LuaTeX 26 | run: | 27 | make clean 28 | latexmk -lualatex main.tex 29 | 30 | - name: Test doc 31 | run: make doc 32 | 33 | - name: Run regression tests 34 | run: make test 35 | 36 | - name: Archive failed test output 37 | if: ${{ failure() }} 38 | uses: actions/upload-artifact@v4 39 | with: 40 | name: testfiles 41 | path: build/**/*.diff 42 | retention-days: 3 43 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | main.pdf 2 | ustcthesis-*.zip 3 | ustcthesis-doc.pdf 4 | *.hd 5 | 6 | ## test files: 7 | build/ 8 | test/**/*.pdf 9 | 10 | ## Core latex/pdflatex auxiliary files: 11 | *.aux 12 | *.lof 13 | *.log 14 | *.lot 15 | *.fls 16 | *.out 17 | *.toc 18 | *.fmt 19 | *.fot 20 | *.cb 21 | *.cb2 22 | .*.lb 23 | 24 | ## Intermediate documents: 25 | *.dvi 26 | *.xdv 27 | *-converted-to.* 28 | # these rules might exclude image files for figures etc. 29 | # *.ps 30 | # *.eps 31 | # *.pdf 32 | 33 | ## Generated if empty string is given at "Please type another file name for output:" 34 | .pdf 35 | 36 | ## Bibliography auxiliary files (bibtex/biblatex/biber): 37 | *.bbl 38 | *.bcf 39 | *.blg 40 | *-blx.aux 41 | *-blx.bib 42 | *.run.xml 43 | 44 | ## Build tool auxiliary files: 45 | *.fdb_latexmk 46 | *.synctex 47 | *.synctex(busy) 48 | *.synctex.gz 49 | *.synctex.gz(busy) 50 | *.pdfsync 51 | 52 | ## Build tool directories for auxiliary files 53 | # latexrun 54 | latex.out/ 55 | 56 | ## Auxiliary and intermediate files from other packages: 57 | # algorithms 58 | *.alg 59 | *.loa 60 | 61 | # achemso 62 | acs-*.bib 63 | 64 | # amsthm 65 | *.thm 66 | 67 | # beamer 68 | *.nav 69 | *.pre 70 | *.snm 71 | *.vrb 72 | 73 | # changes 74 | *.soc 75 | 76 | # comment 77 | *.cut 78 | 79 | # cprotect 80 | *.cpt 81 | 82 | # elsarticle (documentclass of Elsevier journals) 83 | *.spl 84 | 85 | # endnotes 86 | *.ent 87 | 88 | # fixme 89 | *.lox 90 | 91 | # feynmf/feynmp 92 | *.mf 93 | *.mp 94 | *.t[1-9] 95 | *.t[1-9][0-9] 96 | *.tfm 97 | 98 | #(r)(e)ledmac/(r)(e)ledpar 99 | *.end 100 | *.?end 101 | *.[1-9] 102 | *.[1-9][0-9] 103 | *.[1-9][0-9][0-9] 104 | *.[1-9]R 105 | *.[1-9][0-9]R 106 | *.[1-9][0-9][0-9]R 107 | *.eledsec[1-9] 108 | *.eledsec[1-9]R 109 | *.eledsec[1-9][0-9] 110 | *.eledsec[1-9][0-9]R 111 | *.eledsec[1-9][0-9][0-9] 112 | *.eledsec[1-9][0-9][0-9]R 113 | 114 | # glossaries 115 | *.acn 116 | *.acr 117 | *.glg 118 | *.glo 119 | *.gls 120 | *.glsdefs 121 | 122 | # gnuplottex 123 | *-gnuplottex-* 124 | 125 | # gregoriotex 126 | *.gaux 127 | *.gtex 128 | 129 | # htlatex 130 | *.4ct 131 | *.4tc 132 | *.idv 133 | *.lg 134 | *.trc 135 | *.xref 136 | 137 | # hyperref 138 | *.brf 139 | 140 | # knitr 141 | *-concordance.tex 142 | # TODO Comment the next line if you want to keep your tikz graphics files 143 | *.tikz 144 | *-tikzDictionary 145 | 146 | # listings 147 | *.lol 148 | 149 | # makeidx 150 | *.idx 151 | *.ilg 152 | *.ind 153 | *.ist 154 | 155 | # minitoc 156 | *.maf 157 | *.mlf 158 | *.mlt 159 | *.mtc[0-9]* 160 | *.slf[0-9]* 161 | *.slt[0-9]* 162 | *.stc[0-9]* 163 | 164 | # minted 165 | _minted* 166 | *.pyg 167 | 168 | # morewrites 169 | *.mw 170 | 171 | # nomencl 172 | *.nlg 173 | *.nlo 174 | *.nls 175 | 176 | # pax 177 | *.pax 178 | 179 | # pdfpcnotes 180 | *.pdfpc 181 | 182 | # sagetex 183 | *.sagetex.sage 184 | *.sagetex.py 185 | *.sagetex.scmd 186 | 187 | # scrwfile 188 | *.wrt 189 | 190 | # sympy 191 | *.sout 192 | *.sympy 193 | sympy-plots-for-*.tex/ 194 | 195 | # pdfcomment 196 | *.upa 197 | *.upb 198 | 199 | # pythontex 200 | *.pytxcode 201 | pythontex-files-*/ 202 | 203 | # tcolorbox 204 | *.listing 205 | 206 | # thmtools 207 | *.loe 208 | 209 | # TikZ & PGF 210 | *.dpth 211 | *.md5 212 | *.auxlock 213 | 214 | # todonotes 215 | *.tdo 216 | 217 | # easy-todo 218 | *.lod 219 | 220 | # xcolor 221 | *.xcp 222 | 223 | # xmpincl 224 | *.xmpi 225 | 226 | # xindy 227 | *.xdy 228 | 229 | # xypic precompiled matrices 230 | *.xyc 231 | 232 | # endfloat 233 | *.ttt 234 | *.fff 235 | 236 | # Latexian 237 | TSWLatexianTemp* 238 | 239 | ## Editors: 240 | # WinEdt 241 | *.bak 242 | *.sav 243 | 244 | # Texpad 245 | .texpadtmp 246 | 247 | # LyX 248 | *.lyx~ 249 | 250 | # Kile 251 | *.backup 252 | 253 | # KBibTeX 254 | *~[0-9]* 255 | 256 | # auto folder when using emacs and auctex 257 | ./auto/* 258 | *.el 259 | 260 | # expex forward references with \gathertags 261 | *-tags.tex 262 | 263 | # standalone packages 264 | *.sta 265 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "latex-workshop.intellisense.unimathsymbols.enabled": true, 3 | "latex-workshop.latex.recipes": [ 4 | { 5 | "name": "latexmk (xelatex)", 6 | "tools": [ 7 | "xelatexmk" 8 | ] 9 | }, 10 | { 11 | "name": "latexmk (lualatex)", 12 | "tools": [ 13 | "lualatexmk" 14 | ] 15 | } 16 | ], 17 | "latex-workshop.latex.tools": [ 18 | { 19 | "name": "xelatexmk", 20 | "command": "latexmk", 21 | "args": [ 22 | "-synctex=1", 23 | "-interaction=nonstopmode", 24 | "-file-line-error", 25 | "-xelatex", 26 | "-outdir=%OUTDIR%", 27 | "%DOC%" 28 | ], 29 | "env": {} 30 | }, 31 | { 32 | "name": "lualatexmk", 33 | "command": "latexmk", 34 | "args": [ 35 | "-synctex=1", 36 | "-interaction=nonstopmode", 37 | "-file-line-error", 38 | "-lualatex", 39 | "-outdir=%OUTDIR%", 40 | "%DOC%" 41 | ], 42 | "env": {} 43 | }, 44 | ] 45 | } 46 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to this project will be documented in this file. 4 | 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 | 8 | ## [Unreleased] 9 | 10 | ### Fixed 11 | 12 | - 修正 LuaTeX 部分符号错误地使用西文字体([tuna/thuthesis#1022](https://github.com/tuna/thuthesis/issues/1022))。 13 | 14 | ## [4.0.0-beta.9] - 2025-05-25 15 | 16 | ### Changed 17 | 18 | - 本科生参考文献的期刊题名不再使用斜体([#457](https://github.com/ustctug/ustcthesis/pull/457))。 19 | - 页眉距离边界改为 1.5 cm([#413](https://github.com/ustctug/ustcthesis/issues/413))。 20 | - 更新参考文献格式。 21 | 22 | ### Fixed 23 | 24 | - 本科生的空白页不显示页码([#457](https://github.com/ustctug/ustcthesis/pull/458))。 25 | - 本科生表格、插图标题按照 Word 模板使用 22 pt 行距。 26 | - 本科生表格内容使用 1.5 倍行距。 27 | - 修正“关键词”的格式。 28 | - 修正参考文献表的缩进格式。 29 | 30 | ## [4.0.0-beta.8] - 2025-04-16 31 | 32 | ### Changed 33 | 34 | - 科研成果列表的序号改为方括号([#449](https://github.com/ustctug/ustcthesis/issues/449#issuecomment-2804822791))。 35 | - 更新科研成果列表的缩进([#449](https://github.com/ustctug/ustcthesis/issues/449#issuecomment-2804870730))。 36 | 37 | ### Fixed 38 | 39 | - 修正中文摘要的关键词和分隔符([#449](https://github.com/ustctug/ustcthesis/issues/449)、[#450](https://github.com/ustctug/ustcthesis/issues/450))。 40 | - 修正插图和附表清单的标签([#449](https://github.com/ustctug/ustcthesis/issues/449))。 41 | 42 | ## [4.0.0-beta.7] - 2025-04-07 43 | 44 | ### Added 45 | 46 | - 新增 `eqn-paren-style` 控制中文数学公式的编号(`\eqref`)使用全角或半角括号([#420](https://github.com/ustctug/ustcthesis/issues/420))。 47 | - 添加博士学位论文的“创新性说明”环境 `innovations`(研究生院 2025-02-27 Word 模板,[#423](https://github.com/ustctug/ustcthesis/issues/423))。 48 | - 添加 `degree-type = engineering` 工程学位类型([#427](https://github.com/ustctug/ustcthesis/issues/427))。 49 | 50 | ### Changed 51 | 52 | - 中文数学公式的编号(`\eqref`)默认使用全角括号([#420](https://github.com/ustctug/ustcthesis/issues/420))。 53 | - 封面的横向页边距改为 3.17 cm([#424](https://github.com/ustctug/ustcthesis/issues/424))。 54 | - 更新封面的格式([#438](https://github.com/ustctug/ustcthesis/issues/438))。 55 | - 更新原创性和授权使用声明的格式。 56 | - 数学式的改为段前6磅、段后6磅(研究生院 2025-03-12 Word 模板)。 57 | - 图表标题的对齐方式改为 `centerlast`(两端对齐、末行居中)([#442](https://github.com/ustctug/ustcthesis/issues/442))。 58 | - 英文摘要改为悬挂缩进 2 em(研究生院 2025-03-12 Word 模板)。 59 | - 英文关键词改为悬挂缩进 6.5 em(研究生院 2025-03-12 Word 模板)。 60 | 61 | ### Fixed 62 | 63 | - 修正复数 Practice supervisors 的拼写([#431](https://github.com/ustctug/ustcthesis/pull/431))。 64 | - 修正英文摘要的缩进为 1 em([#434](https://github.com/ustctug/ustcthesis/pull/434))。 65 | - 修正图注和表注格式。 66 | 67 | ### Removed 68 | 69 | - 移除封面的“专业/工程学位类型”([#427](https://github.com/ustctug/ustcthesis/issues/427#issuecomment-2714402725))。 70 | - 移除研究生的三级以下节标题的设置([#445](https://github.com/ustctug/ustcthesis/issues/445))。 71 | 72 | ## [4.0.0-beta.6] - 2025-02-25 73 | 74 | ### Changed 75 | 76 | - 调整页眉距边界 2.0 cm(研究生院 2024-12-05 Word 模板修改,[#411](https://github.com/ustctug/ustcthesis/issues/411#issuecomment-2652543582))。 77 | - 空白页添加页码(研究生院 2024-12-05 Word 模板修改,[#390](https://github.com/ustctug/ustcthesis/issues/390#issuecomment-2652974038))。 78 | - 修改符号说明的页脚样式(研究生院 2024-12-05 Word 模板修改,[#411](https://github.com/ustctug/ustcthesis/issues/411#issuecomment-2656237617))。 79 | - 图注较短时居中([#414](https://github.com/ustctug/ustcthesis/issues/414))。 80 | - 修改章节标题的格式(研究生院 2024-12-05 Word 模板修改,[#411](https://github.com/ustctug/ustcthesis/issues/390#issuecomment-2677732743))。 81 | 82 | ## [4.0.0-beta.5] - 2025-02-10 83 | 84 | ### Fixed 85 | 86 | - 修正英文摘要标题“ABSTRACT”的粗体([#411](https://github.com/ustctug/ustcthesis/issues/411#issuecomment-2577181494))。 87 | - 修正中文封面的“企业导师”([#411](https://github.com/ustctug/ustcthesis/issues/390#issuecomment-2646114373))。 88 | 89 | ## [4.0.0-beta.4] - 2025-01-05 90 | 91 | ### Added 92 | 93 | - 新增科研成果列表环境 `theachievements`。 94 | - 新增图注命令 `\figurenote`。 95 | 96 | ### Changed 97 | 98 | - 章标题取消加粗(研究生院 2024-12-05 Word 模板修改,[#411](https://github.com/ustctug/ustcthesis/issues/411))。 99 | - 调整科研成果示例(研究生院 2024-12-05 Word 模板修改,[#411](https://github.com/ustctug/ustcthesis/issues/411))。 100 | - 更新专业硕士论文封面:“专业领域”改为“学科专业”,“Advisor”改为“Practice supervisor”(研究生院 2024-12-05 Word 模板修改,[#390](https://github.com/ustctug/ustcthesis/issues/390#issuecomment-2558042581))。 101 | - 图表的标题字号改为 11pt(研究生院 2024-12-05 Word 模板修改)。 102 | - 表题改为宋体(研究生院 2024-12-05 Word 模板修改)。 103 | - 图注、表注字号改为 11pt(研究生院 2024-12-05 Word 模板修改)。 104 | - 调整插图、表格与文字的间距(研究生院 2024-12-05 Word 模板修改)。 105 | - 修改表单元格中的字号和行距(研究生院 2024-12-05 Word 模板修改)。 106 | 107 | ### Deprecated 108 | 109 | - 图注、表注命令 `\note` 已经过时,改为使用 `\figurenote` 或 `\tablenote` 命令。 110 | 111 | ## [4.0.0-beta.3] - 2024-12-15 112 | 113 | ### Added 114 | 115 | - 新增“插图和附表清单” `\listoffiguresandtables`(研究生院 2024-12-05 Word 模板修改)。 116 | 117 | ### Changed 118 | 119 | - 英文封面的“Finished time”改为“Completion date”(研究生院 2024-12-05 Word 模板修改,[#390](https://github.com/ustctug/ustcthesis/issues/390#issuecomment-2532580113))。 120 | - 英文摘要的“Key Words”改为大写“KEY WORDS”(研究生院 2024-12-05 Word 模板修改,[#390](https://github.com/ustctug/ustcthesis/issues/390#issuecomment-2532580113))。 121 | - 章标题较短时(四字以下)不再空字(研究生院 2024-12-05 Word 模板修改,[#390](https://github.com/ustctug/ustcthesis/issues/390#issuecomment-2532580113))。 122 | - “在读期间发表的学术论文与取得的研究成果”改为“在读期间取得的科研成果”(研究生院 2024-12-05 Word 模板修改,[#390](https://github.com/ustctug/ustcthesis/issues/390#issuecomment-2532580113))。 123 | - 关键词之间改用分号间隔(研究生院 2024-12-05 Word 模板修改)。 124 | - 英文摘要的页眉改为大写“ABSTRACT”(研究生院 2024-12-05 Word 模板修改)。 125 | - 目录的章标题改为黑体小四号(研究生院 2024-12-05 Word 模板修改)。 126 | - 目录的二级节标题改为宋体(研究生院 2024-12-05 Word 模板修改)。 127 | - 目录的引导线改为句点(研究生院 2024-12-05 Word 模板修改)。 128 | - “表格清单”改为“附表清单”(研究生院 2024-12-05 Word 模板修改)。 129 | - 更新英文封面布局(研究生院 2024-12-05 Word 模板修改)。 130 | 131 | ## [4.0.0-beta.2] - 2024-11-18 132 | 133 | ### Changed 134 | 135 | - 封面中“导师姓名”改为“导师”(研究生院 2024-10-14 Word 模板修改,[#406](https://github.com/ustctug/ustcthesis/issues/406))。 136 | 137 | ## [4.0.0-beta.1] - 2024-10-18 138 | 139 | ### Changed 140 | 141 | - 本科生参考文献改用 GB/T 7714 格式([zepinglee/gbt7714-bibtex-style#169](https://github.com/zepinglee/gbt7714-bibtex-style/issues/169))。 142 | - 专业博士的封面改为“工程博士”(研究生院 2024-09-23 Word 模板修改,[#402](https://github.com/ustctug/ustcthesis/issues/402))。 143 | 144 | ## [3.3.5] - 2024-05-09 145 | 146 | ### Changed 147 | 148 | - 本科生摘要关键词的分隔符改为分号,同步教务处 2023-05-06 的修改([#376](https://github.com/ustctug/ustcthesis/issues/376))。 149 | - 本科生的参考文献格式恢复为 2021 年版,同步教务处 2023-05-06 的修改([#376](https://github.com/ustctug/ustcthesis/issues/376))。 150 | - 二级节标题不再缩进(研究生院 2024-03-01 Word 模板)。 151 | - 标题的编号使用 Times New Roman 字体(研究生院 2024-03-01 Word 模板)。 152 | 153 | ## [3.3.4] - 2023-05-10 154 | 155 | ### Changed 156 | 157 | - 本科生的正文不再另页右页(`\cleardoublepage`)。 158 | - 去掉本科生空白页的页码。 159 | - 目录的引导线更加稠密。 160 | - 更新本科生扉页(内封)格式,同步教务处 2023-05-08 版《[中国科学技术大学本科毕业论文(设计)扉页(内封)](https://www.teach.ustc.edu.cn/?attachment_id=15889)》([#374](https://github.com/ustctug/ustcthesis/issues/374))。 161 | 162 | ## [3.3.3] - 2022-05-17 163 | 164 | ### Added 165 | 166 | - 新增选项 `reviewer` 选择是否在声明页显示“评审专家签名”([#334](https://github.com/ustctug/ustcthesis/issues/334))。 167 | 168 | ### Changed 169 | 170 | - 更新 2022 年 3 月版本科生的参考文献格式([#346](https://github.com/ustctug/ustcthesis/issues/346))。 171 | - 研究生的关键词分隔符为空一字和“, ”。 172 | 173 | ### Fixed 174 | 175 | - 修正 `biblatex` 的参考文献表中期刊名的大小写([#338](https://github.com/ustctug/ustcthesis/issues/338))。 176 | - 消除本科生封面的 overfull box 警告([#345](https://github.com/ustctug/ustcthesis/issues/345))。 177 | - 修正本科生的关键词分隔符为“、”和“, ”([#354](https://github.com/ustctug/ustcthesis/issues/354))。 178 | 179 | ## [3.3.2] - 2022-03-25 180 | 181 | ### Added 182 | 183 | - 新增选项 `math-font = cm` (Computer Modern)([#324](https://github.com/ustctug/ustcthesis/issues/324))。 184 | - 新增 LuaLaTeX 支持(虽然很慢)。 185 | 186 | ### Changed 187 | 188 | - 专业学位类型 `professional-type` 为空时不再显示括号([#325](https://github.com/ustctug/ustcthesis/issues/325))。 189 | - 本科生的英文摘要标题改为小二号“ABSTRACT”(2021 年 11 月新版,[#332](https://github.com/ustctug/ustcthesis/issues/332))。 190 | - 本科生的目录中去掉摘要(2021 年 11 月新版)。 191 | - 调整本科生的章节顺序(2021 年 11 月新版)。 192 | - 本科生的目录中加入致谢(2021 年 11 月新版)。 193 | - 本科生致谢的末尾增加日期(2021 年 11 月新版)。 194 | 195 | ### Fixed 196 | 197 | - 修复了载入 `natbib` 前设置 `cite-style` 无效的问题([#327](https://github.com/ustctug/ustcthesis/issues/327))。 198 | 199 | ## [3.3.1] - 2021-12-10 200 | 201 | ### Changed 202 | 203 | - 同步新版《撰写手册》(2016 年 12 月版,2019 年 第 3 次印刷)([#291](https://github.com/ustctug/ustcthesis/issues/291))。 204 | - 本科生的第一章开启于奇数页。 205 | - 按照新版《手册》的要求,目录中的二级标题使用仿宋体 12 磅([#316](https://github.com/ustctug/ustcthesis/issues/316))。 206 | - `biblatex` 的参考文献表中题名改为转换成 sentence case(感谢 [@hushidong](https://github.com/hushidong))([#315](https://github.com/ustctug/ustcthesis/issues/315))。 207 | - 本科生的封面改为制本厂的格式([#301](https://github.com/ustctug/ustcthesis/issues/301))。 208 | - 参考文献表中预印本的文献类型标识改为“A”。 209 | 210 | ### Fixed 211 | 212 | - 修正了与 `chapterbib` 宏包的兼容性。 213 | - 修正了本科生 PDF 书签中页码的错误([#293](https://github.com/ustctug/ustcthesis/issues/293))。 214 | - 修正了表题的字体([#295](https://github.com/ustctug/ustcthesis/issues/295))。 215 | - 修正了 `article` 只有 `date` 时年份缺失的问题([#299](https://github.com/ustctug/ustcthesis/issues/299))。 216 | - 修正了 biblatex 参考文献的页眉([#311](https://github.com/ustctug/ustcthesis/issues/311))。 217 | - 修正授权使用声明中的“保密”为“控阅”([#314](https://github.com/ustctug/ustcthesis/issues/314))。 218 | - 修正本科生参考文献的格式。 219 | - 修正了图题的段后距离([#307](https://github.com/ustctug/ustcthesis/issues/307))。 220 | - 参考文献表中专利文献使用 `address`/`location` 输出专利国别。 221 | 222 | ### Removed 223 | 224 | - 去掉了 `siunitx` 的 `inter-unit-product` 设置。 225 | 226 | ## [3.3.0] - 2021-03-18 227 | 228 | ### Added 229 | 230 | - 添加软件工程专业的封面的格式的支持。 231 | - 新增 biblatex 的支持([#282](https://github.com/ustctug/ustcthesis/issues/282))。 232 | - 新增数学符号风格选项 `math-style`。 233 | - 新增选项控制数学字体风格的细节:`uppercase-greek`、`less-than-or-equal`、`integral`、`integral-limits`、`partial`、`math-ellipsis` 和 `real-part`。 234 | 235 | ### Changed 236 | 237 | - 同步本科生 2020 年版规定。 238 | 239 | ### Removed 240 | 241 | - 移除 `math-commands.tex`。 242 | 243 | ### Fixed 244 | 245 | - 修正附录章节的编号。 246 | - 修正参考文献中期刊的页码前的空格([#264](https://github.com/ustctug/ustcthesis/issues/264))。 247 | 248 | 249 | ## [3.2.1] - 2020-04-03 250 | 251 | ### Added 252 | 253 | - 添加对 `chapterbib` 宏包的支持。 254 | 255 | ### Fixed 256 | 257 | - 修正 LaTeX3 的 `\str_if_eq_x` 已过时的报错 - [#241](https://github.com/ustctug/ustcthesis/issues/241) 258 | 259 | ### Removed 260 | 261 | 移除 `.dtx` 文件。 262 | 263 | ## [3.2] - 2020-01-01 264 | 265 | ### Changed 266 | 267 | - 使用 `\ustcsetup` 进行设置。 268 | - 目录开启于奇数页。 269 | 270 | ### Added 271 | 272 | - 导入 goodfeli/dlbook_notation 的 `math-commands.tex`。 273 | 274 | ## [3.1.06] - 2019-05-01 275 | 276 | ### Fixed 277 | 278 | - 处理 `hyperref` 与 `unicode-math` 的兼容性问题 - [#223](https://github.com/ustctug/ustcthesis/issues/223)。 279 | 280 | ## [3.1.05] - 2019-04-21 281 | 282 | ### Changed 283 | 284 | - 使用 XITS Math 作为数学字体。 285 | 286 | ## [3.1.04] - 2019-03-21 287 | 288 | ### Fixed 289 | 290 | - 禁止扩大段间距 - [#209](https://github.com/ustctug/ustcthesis/issues/209)。 291 | - 修正图表标题与正文之间的距离。 292 | 293 | ## [3.1.03] - 2019-01-01 294 | 295 | ### Fixed 296 | 297 | - 修正英文模式下的 Unicode 引号字体 - [CTeX-org/ctex-kit#309](https://github.com/CTeX-org/ctex-kit/issues/389)。 298 | - 修正算法的格式。 299 | - 修正图表清单的格式。 300 | 301 | ## [3.1.02] - 2018-10-30 302 | 303 | ### Changed 304 | 305 | - 取消依赖 `hyperref`。 306 | 307 | ### Added 308 | 309 | - 支持 `siunix` 宏包。 310 | - 支持 `nomencl` 宏包。 311 | 312 | ### Fixed 313 | 314 | - 修正 macOS 的伪粗黑体。 315 | 316 | ## [3.1.01] - 2018-10-06 317 | 318 | ### Changed 319 | 320 | - 调整伪粗体的粗细程度。 321 | - 同步 `xits` 字体文件名的修改。 322 | - 取消依赖 `etoolbox`。 323 | 324 | ### Fixed 325 | 326 | - 修正 Windows 上“找不到 Courier New”。 327 | - 更正章节标题的行距。 328 | 329 | ## [3.1] - 2018-09-01 330 | 331 | ### Changed 332 | 333 | - 使用 `unicode-math` 处理数学字体。 334 | - 优化了浮动体放置策略的默认参数。 335 | 336 | ### Fixed 337 | 338 | - 更正封面的校名。 339 | - 更正了数学符号以满足国标要求。 340 | - 更正 subsubsection 的前后距离。 341 | - 修复列表中各项之间过大的间距。 342 | 343 | ## [3.0.b] - 2018-05-18 344 | 345 | ### Fixed 346 | 347 | - 更正符号说明的字号。 348 | - 更正研究生的目录为另面起。 349 | - 更正本科生参考文献的字号。 350 | 351 | ## [3.0.a] - 2018-05-16 352 | 353 | ### Fixed 354 | 355 | - 更正本科生英文模板的章节格式。 356 | - 更正图表的注释格式。 357 | 358 | ## [3.0.9] - 2018-05-04 359 | 360 | ### Changed 361 | 362 | - 调整 subsubsection 的缩进。 363 | - 参考文献不再著录“出版地不详”等信息。 364 | 365 | ## [3.0.8] - 2018-04-21 366 | 367 | ### Fixed 368 | 369 | - 更正 subsection 的格式。 370 | 371 | ## [3.0.7] - 2018-04-18 372 | 373 | ### Added 374 | 375 | - 参考文献允许著录多个 DOI。 376 | 377 | ### Fixed 378 | 379 | - 更正页眉英文大写的错误。 380 | - 更正本科生 subsection 的缩进。 381 | 382 | ## [3.0.6] - 2018-04-12 383 | 384 | ### Changed 385 | 386 | - 取消使用微软雅黑。 387 | 388 | ### Fixed 389 | 390 | - 修正文献引用之间的连接号为 hyphen。 391 | - 修正参考文献页码的连接号为 hyphen。 392 | 393 | ## [3.0.5] - 2018-04-11 394 | 395 | ### Fixed 396 | 397 | - 更正“专业学位类型"的字体。 398 | - 专业学位的封面更正为“专业领域”。 399 | 400 | ## [3.0.4] - 2018-03-30 401 | 402 | ### Fixed 403 | 404 | - 脚注按页计数。 405 | 406 | ## [3.0.3] - 2018-03-29 407 | 408 | ### Fixed 409 | 410 | - 顺序编码制连续两个文献引用之间使用连接号。 411 | 412 | ## [3.0.2] - 2018-03-16 413 | 414 | ### Changed 415 | 416 | - 著者-出版年式文献引用不再排序。 417 | 418 | ### Fixed 419 | 420 | - 更正本科生的页码。 421 | - 更正参考文献姓名的“others”。 422 | 423 | ## [3.0.1] - 2017-12-12 424 | 425 | ### Fixed 426 | 427 | - 更正范数命令失效的错误。 428 | - 更正 paragraph 的前后距离。 429 | 430 | 431 | ## [3.0] - 2017-07-01 432 | 433 | ### Added 434 | 435 | - 页码居中。 436 | - 脚注线长度为版心宽度四分之一。 437 | - 脚注用带圈序号,缩进两字。 438 | - 符号说明不加页码。 439 | - 章题为两字时中间空两字,三字时空一字,四字时空半字,四字以上不空。 440 | - 空白页不加页眉。 441 | - 正文新的一章另面起。 442 | - 更正了 LaTeX 的大于等于号。 443 | - 新增二级以下节标题的缩进。 444 | - 摘要关键词间隔符号改用分号。 445 | - 摘要不再加入目录。 446 | - 图表的编号、标题加粗。 447 | - 参考文献列表不出现“[S.l.]: [s.n.]”。 448 | - 允许文献序号作为叙述文字的一部分。 449 | - 优化图注、算法的行距。 450 | - 二级以下节标题编号下采用“1.”、“(1)”、“①”。 451 | 452 | [Unreleased]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.9...HEAD 453 | [4.0.0-beta.9]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.8...v4.0.0-beta.9 454 | [4.0.0-beta.8]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.7...v4.0.0-beta.8 455 | [4.0.0-beta.7]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.6...v4.0.0-beta.7 456 | [4.0.0-beta.6]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.5...v4.0.0-beta.6 457 | [4.0.0-beta.5]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.4...v4.0.0-beta.5 458 | [4.0.0-beta.4]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.3...v4.0.0-beta.4 459 | [4.0.0-beta.3]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.2...v4.0.0-beta.3 460 | [4.0.0-beta.2]: https://github.com/ustctug/ustcthesis/compare/v4.0.0-beta.1...v4.0.0-beta.2 461 | [4.0.0-beta.1]: https://github.com/ustctug/ustcthesis/compare/v3.3.5...v4.0.0-beta.1 462 | [3.3.5]: https://github.com/ustctug/ustcthesis/compare/v3.3.4...v3.3.5 463 | [3.3.4]: https://github.com/ustctug/ustcthesis/compare/v3.3.3...v3.3.4 464 | [3.3.3]: https://github.com/ustctug/ustcthesis/compare/v3.3.2...v3.3.3 465 | [3.3.2]: https://github.com/ustctug/ustcthesis/compare/v3.3.1...v3.3.2 466 | [3.3.1]: https://github.com/ustctug/ustcthesis/compare/v3.3.0...v3.3.1 467 | [3.3.0]: https://github.com/ustctug/ustcthesis/compare/v3.2.1...v3.3.0 468 | [3.2.1]: https://github.com/ustctug/ustcthesis/compare/v3.2...v3.2.1 469 | [3.2]: https://github.com/ustctug/ustcthesis/compare/v3.2...v3.1.06 470 | [3.1.06]: https://github.com/ustctug/ustcthesis/compare/v3.1.05...v3.1.06 471 | [3.1.05]: https://github.com/ustctug/ustcthesis/compare/v3.1.04...v3.1.05 472 | [3.1.04]: https://github.com/ustctug/ustcthesis/compare/v3.1.03...v3.1.04 473 | [3.1.03]: https://github.com/ustctug/ustcthesis/compare/v3.1.02...v3.1.03 474 | [3.1.02]: https://github.com/ustctug/ustcthesis/compare/v3.1.01...v3.1.02 475 | [3.1.01]: https://github.com/ustctug/ustcthesis/compare/v3.1...v3.1.01 476 | [3.1]: https://github.com/ustctug/ustcthesis/compare/v3.0.b...v3.1 477 | [3.0.b]: https://github.com/ustctug/ustcthesis/compare/v3.0.a...v3.0.b 478 | [3.0.a]: https://github.com/ustctug/ustcthesis/compare/v3.0.9...v3.0.a 479 | [3.0.9]: https://github.com/ustctug/ustcthesis/compare/v3.0.8...v3.0.9 480 | [3.0.8]: https://github.com/ustctug/ustcthesis/compare/v3.0.7...v3.0.8 481 | [3.0.7]: https://github.com/ustctug/ustcthesis/compare/v3.0.6...v3.0.7 482 | [3.0.6]: https://github.com/ustctug/ustcthesis/compare/v3.0.5...v3.0.6 483 | [3.0.5]: https://github.com/ustctug/ustcthesis/compare/v3.0.4...v3.0.5 484 | [3.0.4]: https://github.com/ustctug/ustcthesis/compare/v3.0.3...v3.0.4 485 | [3.0.3]: https://github.com/ustctug/ustcthesis/compare/v3.0.2...v3.0.3 486 | [3.0.2]: https://github.com/ustctug/ustcthesis/compare/v3.0.1...v3.0.2 487 | [3.0.1]: https://github.com/ustctug/ustcthesis/compare/v3.0...v3.0.1 488 | [3.0]: https://github.com/ustctug/ustcthesis/releases/tag/v3.0 489 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The LaTeX Project Public License 2 | =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 3 | 4 | LPPL Version 1.3c 2008-05-04 5 | 6 | Copyright 1999 2002-2008 LaTeX3 Project 7 | Everyone is allowed to distribute verbatim copies of this 8 | license document, but modification of it is not allowed. 9 | 10 | 11 | PREAMBLE 12 | ======== 13 | 14 | The LaTeX Project Public License (LPPL) is the primary license under 15 | which the LaTeX kernel and the base LaTeX packages are distributed. 16 | 17 | You may use this license for any work of which you hold the copyright 18 | and which you wish to distribute. This license may be particularly 19 | suitable if your work is TeX-related (such as a LaTeX package), but 20 | it is written in such a way that you can use it even if your work is 21 | unrelated to TeX. 22 | 23 | The section `WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE', 24 | below, gives instructions, examples, and recommendations for authors 25 | who are considering distributing their works under this license. 26 | 27 | This license gives conditions under which a work may be distributed 28 | and modified, as well as conditions under which modified versions of 29 | that work may be distributed. 30 | 31 | We, the LaTeX3 Project, believe that the conditions below give you 32 | the freedom to make and distribute modified versions of your work 33 | that conform with whatever technical specifications you wish while 34 | maintaining the availability, integrity, and reliability of 35 | that work. If you do not see how to achieve your goal while 36 | meeting these conditions, then read the document `cfgguide.tex' 37 | and `modguide.tex' in the base LaTeX distribution for suggestions. 38 | 39 | 40 | DEFINITIONS 41 | =========== 42 | 43 | In this license document the following terms are used: 44 | 45 | `Work' 46 | Any work being distributed under this License. 47 | 48 | `Derived Work' 49 | Any work that under any applicable law is derived from the Work. 50 | 51 | `Modification' 52 | Any procedure that produces a Derived Work under any applicable 53 | law -- for example, the production of a file containing an 54 | original file associated with the Work or a significant portion of 55 | such a file, either verbatim or with modifications and/or 56 | translated into another language. 57 | 58 | `Modify' 59 | To apply any procedure that produces a Derived Work under any 60 | applicable law. 61 | 62 | `Distribution' 63 | Making copies of the Work available from one person to another, in 64 | whole or in part. Distribution includes (but is not limited to) 65 | making any electronic components of the Work accessible by 66 | file transfer protocols such as FTP or HTTP or by shared file 67 | systems such as Sun's Network File System (NFS). 68 | 69 | `Compiled Work' 70 | A version of the Work that has been processed into a form where it 71 | is directly usable on a computer system. This processing may 72 | include using installation facilities provided by the Work, 73 | transformations of the Work, copying of components of the Work, or 74 | other activities. Note that modification of any installation 75 | facilities provided by the Work constitutes modification of the Work. 76 | 77 | `Current Maintainer' 78 | A person or persons nominated as such within the Work. If there is 79 | no such explicit nomination then it is the `Copyright Holder' under 80 | any applicable law. 81 | 82 | `Base Interpreter' 83 | A program or process that is normally needed for running or 84 | interpreting a part or the whole of the Work. 85 | 86 | A Base Interpreter may depend on external components but these 87 | are not considered part of the Base Interpreter provided that each 88 | external component clearly identifies itself whenever it is used 89 | interactively. Unless explicitly specified when applying the 90 | license to the Work, the only applicable Base Interpreter is a 91 | `LaTeX-Format' or in the case of files belonging to the 92 | `LaTeX-format' a program implementing the `TeX language'. 93 | 94 | 95 | 96 | CONDITIONS ON DISTRIBUTION AND MODIFICATION 97 | =========================================== 98 | 99 | 1. Activities other than distribution and/or modification of the Work 100 | are not covered by this license; they are outside its scope. In 101 | particular, the act of running the Work is not restricted and no 102 | requirements are made concerning any offers of support for the Work. 103 | 104 | 2. You may distribute a complete, unmodified copy of the Work as you 105 | received it. Distribution of only part of the Work is considered 106 | modification of the Work, and no right to distribute such a Derived 107 | Work may be assumed under the terms of this clause. 108 | 109 | 3. You may distribute a Compiled Work that has been generated from a 110 | complete, unmodified copy of the Work as distributed under Clause 2 111 | above, as long as that Compiled Work is distributed in such a way that 112 | the recipients may install the Compiled Work on their system exactly 113 | as it would have been installed if they generated a Compiled Work 114 | directly from the Work. 115 | 116 | 4. If you are the Current Maintainer of the Work, you may, without 117 | restriction, modify the Work, thus creating a Derived Work. You may 118 | also distribute the Derived Work without restriction, including 119 | Compiled Works generated from the Derived Work. Derived Works 120 | distributed in this manner by the Current Maintainer are considered to 121 | be updated versions of the Work. 122 | 123 | 5. If you are not the Current Maintainer of the Work, you may modify 124 | your copy of the Work, thus creating a Derived Work based on the Work, 125 | and compile this Derived Work, thus creating a Compiled Work based on 126 | the Derived Work. 127 | 128 | 6. If you are not the Current Maintainer of the Work, you may 129 | distribute a Derived Work provided the following conditions are met 130 | for every component of the Work unless that component clearly states 131 | in the copyright notice that it is exempt from that condition. Only 132 | the Current Maintainer is allowed to add such statements of exemption 133 | to a component of the Work. 134 | 135 | a. If a component of this Derived Work can be a direct replacement 136 | for a component of the Work when that component is used with the 137 | Base Interpreter, then, wherever this component of the Work 138 | identifies itself to the user when used interactively with that 139 | Base Interpreter, the replacement component of this Derived Work 140 | clearly and unambiguously identifies itself as a modified version 141 | of this component to the user when used interactively with that 142 | Base Interpreter. 143 | 144 | b. Every component of the Derived Work contains prominent notices 145 | detailing the nature of the changes to that component, or a 146 | prominent reference to another file that is distributed as part 147 | of the Derived Work and that contains a complete and accurate log 148 | of the changes. 149 | 150 | c. No information in the Derived Work implies that any persons, 151 | including (but not limited to) the authors of the original version 152 | of the Work, provide any support, including (but not limited to) 153 | the reporting and handling of errors, to recipients of the 154 | Derived Work unless those persons have stated explicitly that 155 | they do provide such support for the Derived Work. 156 | 157 | d. You distribute at least one of the following with the Derived Work: 158 | 159 | 1. A complete, unmodified copy of the Work; 160 | if your distribution of a modified component is made by 161 | offering access to copy the modified component from a 162 | designated place, then offering equivalent access to copy 163 | the Work from the same or some similar place meets this 164 | condition, even though third parties are not compelled to 165 | copy the Work along with the modified component; 166 | 167 | 2. Information that is sufficient to obtain a complete, 168 | unmodified copy of the Work. 169 | 170 | 7. If you are not the Current Maintainer of the Work, you may 171 | distribute a Compiled Work generated from a Derived Work, as long as 172 | the Derived Work is distributed to all recipients of the Compiled 173 | Work, and as long as the conditions of Clause 6, above, are met with 174 | regard to the Derived Work. 175 | 176 | 8. The conditions above are not intended to prohibit, and hence do not 177 | apply to, the modification, by any method, of any component so that it 178 | becomes identical to an updated version of that component of the Work as 179 | it is distributed by the Current Maintainer under Clause 4, above. 180 | 181 | 9. Distribution of the Work or any Derived Work in an alternative 182 | format, where the Work or that Derived Work (in whole or in part) is 183 | then produced by applying some process to that format, does not relax or 184 | nullify any sections of this license as they pertain to the results of 185 | applying that process. 186 | 187 | 10. a. A Derived Work may be distributed under a different license 188 | provided that license itself honors the conditions listed in 189 | Clause 6 above, in regard to the Work, though it does not have 190 | to honor the rest of the conditions in this license. 191 | 192 | b. If a Derived Work is distributed under a different license, that 193 | Derived Work must provide sufficient documentation as part of 194 | itself to allow each recipient of that Derived Work to honor the 195 | restrictions in Clause 6 above, concerning changes from the Work. 196 | 197 | 11. This license places no restrictions on works that are unrelated to 198 | the Work, nor does this license place any restrictions on aggregating 199 | such works with the Work by any means. 200 | 201 | 12. Nothing in this license is intended to, or may be used to, prevent 202 | complete compliance by all parties with all applicable laws. 203 | 204 | 205 | NO WARRANTY 206 | =========== 207 | 208 | There is no warranty for the Work. Except when otherwise stated in 209 | writing, the Copyright Holder provides the Work `as is', without 210 | warranty of any kind, either expressed or implied, including, but not 211 | limited to, the implied warranties of merchantability and fitness for a 212 | particular purpose. The entire risk as to the quality and performance 213 | of the Work is with you. Should the Work prove defective, you assume 214 | the cost of all necessary servicing, repair, or correction. 215 | 216 | In no event unless required by applicable law or agreed to in writing 217 | will The Copyright Holder, or any author named in the components of the 218 | Work, or any other party who may distribute and/or modify the Work as 219 | permitted above, be liable to you for damages, including any general, 220 | special, incidental or consequential damages arising out of any use of 221 | the Work or out of inability to use the Work (including, but not limited 222 | to, loss of data, data being rendered inaccurate, or losses sustained by 223 | anyone as a result of any failure of the Work to operate with any other 224 | programs), even if the Copyright Holder or said author or said other 225 | party has been advised of the possibility of such damages. 226 | 227 | 228 | MAINTENANCE OF THE WORK 229 | ======================= 230 | 231 | The Work has the status `author-maintained' if the Copyright Holder 232 | explicitly and prominently states near the primary copyright notice in 233 | the Work that the Work can only be maintained by the Copyright Holder 234 | or simply that it is `author-maintained'. 235 | 236 | The Work has the status `maintained' if there is a Current Maintainer 237 | who has indicated in the Work that they are willing to receive error 238 | reports for the Work (for example, by supplying a valid e-mail 239 | address). It is not required for the Current Maintainer to acknowledge 240 | or act upon these error reports. 241 | 242 | The Work changes from status `maintained' to `unmaintained' if there 243 | is no Current Maintainer, or the person stated to be Current 244 | Maintainer of the work cannot be reached through the indicated means 245 | of communication for a period of six months, and there are no other 246 | significant signs of active maintenance. 247 | 248 | You can become the Current Maintainer of the Work by agreement with 249 | any existing Current Maintainer to take over this role. 250 | 251 | If the Work is unmaintained, you can become the Current Maintainer of 252 | the Work through the following steps: 253 | 254 | 1. Make a reasonable attempt to trace the Current Maintainer (and 255 | the Copyright Holder, if the two differ) through the means of 256 | an Internet or similar search. 257 | 258 | 2. If this search is successful, then enquire whether the Work 259 | is still maintained. 260 | 261 | a. If it is being maintained, then ask the Current Maintainer 262 | to update their communication data within one month. 263 | 264 | b. If the search is unsuccessful or no action to resume active 265 | maintenance is taken by the Current Maintainer, then announce 266 | within the pertinent community your intention to take over 267 | maintenance. (If the Work is a LaTeX work, this could be 268 | done, for example, by posting to comp.text.tex.) 269 | 270 | 3a. If the Current Maintainer is reachable and agrees to pass 271 | maintenance of the Work to you, then this takes effect 272 | immediately upon announcement. 273 | 274 | b. If the Current Maintainer is not reachable and the Copyright 275 | Holder agrees that maintenance of the Work be passed to you, 276 | then this takes effect immediately upon announcement. 277 | 278 | 4. If you make an `intention announcement' as described in 2b. above 279 | and after three months your intention is challenged neither by 280 | the Current Maintainer nor by the Copyright Holder nor by other 281 | people, then you may arrange for the Work to be changed so as 282 | to name you as the (new) Current Maintainer. 283 | 284 | 5. If the previously unreachable Current Maintainer becomes 285 | reachable once more within three months of a change completed 286 | under the terms of 3b) or 4), then that Current Maintainer must 287 | become or remain the Current Maintainer upon request provided 288 | they then update their communication data within one month. 289 | 290 | A change in the Current Maintainer does not, of itself, alter the fact 291 | that the Work is distributed under the LPPL license. 292 | 293 | If you become the Current Maintainer of the Work, you should 294 | immediately provide, within the Work, a prominent and unambiguous 295 | statement of your status as Current Maintainer. You should also 296 | announce your new status to the same pertinent community as 297 | in 2b) above. 298 | 299 | 300 | WHETHER AND HOW TO DISTRIBUTE WORKS UNDER THIS LICENSE 301 | ====================================================== 302 | 303 | This section contains important instructions, examples, and 304 | recommendations for authors who are considering distributing their 305 | works under this license. These authors are addressed as `you' in 306 | this section. 307 | 308 | Choosing This License or Another License 309 | ---------------------------------------- 310 | 311 | If for any part of your work you want or need to use *distribution* 312 | conditions that differ significantly from those in this license, then 313 | do not refer to this license anywhere in your work but, instead, 314 | distribute your work under a different license. You may use the text 315 | of this license as a model for your own license, but your license 316 | should not refer to the LPPL or otherwise give the impression that 317 | your work is distributed under the LPPL. 318 | 319 | The document `modguide.tex' in the base LaTeX distribution explains 320 | the motivation behind the conditions of this license. It explains, 321 | for example, why distributing LaTeX under the GNU General Public 322 | License (GPL) was considered inappropriate. Even if your work is 323 | unrelated to LaTeX, the discussion in `modguide.tex' may still be 324 | relevant, and authors intending to distribute their works under any 325 | license are encouraged to read it. 326 | 327 | A Recommendation on Modification Without Distribution 328 | ----------------------------------------------------- 329 | 330 | It is wise never to modify a component of the Work, even for your own 331 | personal use, without also meeting the above conditions for 332 | distributing the modified component. While you might intend that such 333 | modifications will never be distributed, often this will happen by 334 | accident -- you may forget that you have modified that component; or 335 | it may not occur to you when allowing others to access the modified 336 | version that you are thus distributing it and violating the conditions 337 | of this license in ways that could have legal implications and, worse, 338 | cause problems for the community. It is therefore usually in your 339 | best interest to keep your copy of the Work identical with the public 340 | one. Many works provide ways to control the behavior of that work 341 | without altering any of its licensed components. 342 | 343 | How to Use This License 344 | ----------------------- 345 | 346 | To use this license, place in each of the components of your work both 347 | an explicit copyright notice including your name and the year the work 348 | was authored and/or last substantially modified. Include also a 349 | statement that the distribution and/or modification of that 350 | component is constrained by the conditions in this license. 351 | 352 | Here is an example of such a notice and statement: 353 | 354 | %% pig.dtx 355 | %% Copyright 2005 M. Y. Name 356 | % 357 | % This work may be distributed and/or modified under the 358 | % conditions of the LaTeX Project Public License, either version 1.3 359 | % of this license or (at your option) any later version. 360 | % The latest version of this license is in 361 | % http://www.latex-project.org/lppl.txt 362 | % and version 1.3 or later is part of all distributions of LaTeX 363 | % version 2005/12/01 or later. 364 | % 365 | % This work has the LPPL maintenance status `maintained'. 366 | % 367 | % The Current Maintainer of this work is M. Y. Name. 368 | % 369 | % This work consists of the files pig.dtx and pig.ins 370 | % and the derived file pig.sty. 371 | 372 | Given such a notice and statement in a file, the conditions 373 | given in this license document would apply, with the `Work' referring 374 | to the three files `pig.dtx', `pig.ins', and `pig.sty' (the last being 375 | generated from `pig.dtx' using `pig.ins'), the `Base Interpreter' 376 | referring to any `LaTeX-Format', and both `Copyright Holder' and 377 | `Current Maintainer' referring to the person `M. Y. Name'. 378 | 379 | If you do not want the Maintenance section of LPPL to apply to your 380 | Work, change `maintained' above into `author-maintained'. 381 | However, we recommend that you use `maintained', as the Maintenance 382 | section was added in order to ensure that your Work remains useful to 383 | the community even when you can no longer maintain and support it 384 | yourself. 385 | 386 | Derived Works That Are Not Replacements 387 | --------------------------------------- 388 | 389 | Several clauses of the LPPL specify means to provide reliability and 390 | stability for the user community. They therefore concern themselves 391 | with the case that a Derived Work is intended to be used as a 392 | (compatible or incompatible) replacement of the original Work. If 393 | this is not the case (e.g., if a few lines of code are reused for a 394 | completely different task), then clauses 6b and 6d shall not apply. 395 | 396 | 397 | Important Recommendations 398 | ------------------------- 399 | 400 | Defining What Constitutes the Work 401 | 402 | The LPPL requires that distributions of the Work contain all the 403 | files of the Work. It is therefore important that you provide a 404 | way for the licensee to determine which files constitute the Work. 405 | This could, for example, be achieved by explicitly listing all the 406 | files of the Work near the copyright notice of each file or by 407 | using a line such as: 408 | 409 | % This work consists of all files listed in manifest.txt. 410 | 411 | in that place. In the absence of an unequivocal list it might be 412 | impossible for the licensee to determine what is considered by you 413 | to comprise the Work and, in such a case, the licensee would be 414 | entitled to make reasonable conjectures as to which files comprise 415 | the Work. 416 | 417 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | MAIN = main 2 | NAME = ustcthesis 3 | CLSFILES = $(NAME).cls 4 | BSTFILES = $(NAME)-numerical.bst $(NAME)-authoryear.bst $(NAME)-bachelor.bst 5 | 6 | SHELL = bash 7 | LATEXMK = latexmk -xelatex 8 | VERSION = $(shell cat $(NAME).cls | egrep -o "\\ustcthesisversion{[0-9.]+[0-9a-z.-]*" \ 9 | | egrep -o "[0-9.]+[0-9a-z.-]*") 10 | TEXMF = $(shell kpsewhich --var-value TEXMFHOME) 11 | 12 | .PHONY : main cls doc test save clean all install distclean zip FORCE_MAKE 13 | 14 | main : $(MAIN).pdf 15 | 16 | all : main doc 17 | 18 | cls : $(CLSFILES) $(BSTFILES) 19 | 20 | doc : $(NAME)-doc.pdf 21 | 22 | $(MAIN).pdf : $(MAIN).tex $(CLSFILES) $(BSTFILES) FORCE_MAKE 23 | $(LATEXMK) $< 24 | 25 | $(NAME)-doc.pdf : $(NAME)-doc.tex FORCE_MAKE 26 | $(LATEXMK) $< 27 | 28 | test: 29 | l3build check 30 | 31 | save: 32 | bash test/save.sh 33 | 34 | clean : FORCE_MAKE 35 | $(LATEXMK) -c $(MAIN).tex $(NAME)-doc.tex 36 | 37 | cleanall : 38 | $(LATEXMK) -C $(MAIN).tex $(NAME)-doc.tex 39 | 40 | install : cls doc 41 | mkdir -p $(TEXMF)/{doc,source,tex}/latex/$(NAME) 42 | mkdir -p $(TEXMF)/bibtex/bst/$(NAME) 43 | cp $(BSTFILES) $(TEXMF)/bibtex/bst/$(NAME) 44 | cp $(NAME)-doc.pdf $(TEXMF)/doc/latex/$(NAME)/$(NAME).pdf 45 | cp $(CLSFILES) $(TEXMF)/tex/latex/$(NAME) 46 | 47 | zip : main doc 48 | ln -sf . $(NAME) 49 | zip -r $(NAME)-v$(VERSION).zip $(NAME)/{*.md,LICENSE,\ 50 | $(NAME)-doc.tex,$(NAME)-doc.pdf,$(NAME).cls,*.bst,*.bbx,*.cbx,figures,\ 51 | $(MAIN).tex,ustcsetup.tex,chapters,bib,$(MAIN).pdf,\ 52 | latexmkrc,Makefile} 53 | rm $(NAME) 54 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 中国科学技术大学学位论文 LaTeX 模板 2 | 3 | [![GitHub release](https://img.shields.io/github/release/ustctug/ustcthesis/all.svg)](https://github.com/ustctug/ustcthesis/releases/latest) 4 | [![GitHub commits](https://img.shields.io/github/commits-since/ustctug/ustcthesis/latest.svg)](https://github.com/ustctug/ustcthesis/commits/master) 5 | [![Test](https://github.com/ustctug/ustcthesis/actions/workflows/test.yml/badge.svg)](https://github.com/ustctug/ustcthesis/actions/workflows/test.yml) 6 | 7 | 本项目是中国科学技术大学的学位论文 LaTeX 模板 ustcthesis,按照 8 | 研究生《[学位论文撰写模板](https://gradschool.ustc.edu.cn/column/65)》(2024-12-05) 9 | 和 10 | 《[中国科学技术大学本科毕业论文(设计)格式](https://www.teach.ustc.edu.cn/?attachment_id=13867)》 11 | 的要求编写,兼容最新版的 TeX Live、MacTeX 、MiKTeX 发行版,支持跨平台使用。 12 | 13 | 注意: 14 | 15 | 1. 使用说明文档 `ustcthesis-doc.pdf` 在发布版中附带,用户也可自行编译;**使用模板前应仔细阅读**。 16 | 17 | 2. 本模板要求 TeX Live、MacTeX、MiKTeX 不低于 2017 年的发行版, 18 | 并且尽可能升级到最新。安装和升级方法见 19 | [新手指南](https://github.com/ustctug/ustcthesis/wiki/新手指南)。 20 | 21 | 3. **不支持** [CTeX 套装](https://github.com/ustctug/ustcthesis/wiki/常见问题#3-模板支持用-ctex-套装编译吗)。 22 | 23 | 24 | ## 下载地址 25 | 26 | - GitHub Releases: 27 | 28 | - 校内镜像: 29 | 30 | - TexPage 模板 31 | 32 | - LoongTeX 33 | 34 | - Overleaf 模板 35 | 36 | - 研究生院网站(版本较旧,不推荐): 37 | 38 | 39 | ## 编译文档 40 | 41 | - 编译模板的使用说明文档 `ustcthesis-doc.pdf`: 42 | ``` 43 | latexmk -xelatex ustcthesis-doc.tex 44 | ``` 45 | - 编译论文 `main.pdf`: 46 | ``` 47 | latexmk -xelatex main.tex 48 | ``` 49 | - 如需清理论文编译过程中的临时文件,可以: 50 | ``` 51 | latexmk -c 52 | ``` 53 | 54 | - 以上编译过程也可以用 `make` 工具: 55 | ``` 56 | make doc # 编译生成 ustcthesis-doc.pdf 57 | make # 编译生成论文 main.pdf 58 | make clean # 删除编译过程中生成的临时文件 59 | ``` 60 | 61 | ## 反馈问题 62 | 63 | 如果发现模板有问题,请按照以下步骤操作: 64 | 65 | 1. 阅读学校的标准,判断是否符合学校的要求; 66 | 2. 阅读 [常见问题 FAQ](https://github.com/ustctug/ustcthesis/wiki/常见问题); 67 | 3. 将 TeX 发行版和宏包升级到最新,并且将模板升级到 Github 上最新版本, 68 | 查看问题是否已经修复; 69 | 4. 在 [GitHub Issues](https://github.com/ustctug/ustcthesis/issues) 70 | 中搜索该问题的关键词; 71 | 5. 在 [GitHub Issues](https://github.com/ustctug/ustcthesis/issues) 72 | 中提出新 issue,并回答以下问题: 73 | - 使用了什么版本的 TeX Live / MacTeX / MiKTeX ? 74 | - 具体的问题是什么? 75 | - 正确的结果应该是什么样的? 76 | - 是否应该附上相关源码或者截图? 77 | 78 | 如果导师或者院系在格式上有额外的要求,请将老师的邮件转发给模板作者。 79 | 作者会考虑增加接口以便修改格式。 80 | 81 | 82 | ## 更多资料 83 | 84 | - [LaTeX 新手入门指南](https://github.com/ustctug/ustcthesis/wiki/新手指南) 85 | - [常见问题 FAQ](https://github.com/ustctug/ustcthesis/wiki/常见问题) 86 | - [参与开发](https://github.com/ustctug/ustcthesis/wiki/参与开发) 87 | -------------------------------------------------------------------------------- /bib/ustc.bib: -------------------------------------------------------------------------------- 1 | @article{knuth84, 2 | author = {Donald E. Knuth}, 3 | title = {Literate Programming}, 4 | journal = {The Computer Journal}, 5 | year = {1984}, 6 | number = {2}, 7 | volume = {27}, 8 | pages = {97--111}, 9 | } 10 | 11 | @book{knuth86a, 12 | author = {Donald E. Knuth}, 13 | title = {The {\TeX}book}, 14 | volume = {A}, 15 | publisher = {Addison-Wesley}, 16 | address = {Reading, MA, USA}, 17 | year = {1986}, 18 | series = {Computers and Typesetting}, 19 | } 20 | 21 | @book{lamport94, 22 | author = {Leslie Lamport}, 23 | title = {{\LaTeX}: a Document Preparation System}, 24 | publisher = {Addison-Wesley}, 25 | address = {Reading, MA, USA}, 26 | edition = {2}, 27 | year = {1994}, 28 | } 29 | 30 | @book{tlc2, 31 | author = {Frank Mittelbach and Michel Goossens and Johannes 32 | Braams and David Carlisle}, 33 | title = {The {\LaTeX} Companion}, 34 | publisher = {Addison-Wesley}, 35 | address = {Reading, MA, USA}, 36 | edition = {2}, 37 | year = {2004}, 38 | } 39 | 40 | 41 | 2.14.1 顺序编码制 42 | 43 | @book{sunliguang2016jidi, 44 | editor = {孙立广}, 45 | title = {极地科学前沿与热点:顶级期刊论文摘要汇编(1999—2010)}, 46 | address = {合肥}, 47 | publisher = {中国科学技术大学出版社}, 48 | year = {2016}, 49 | pages = {222}, 50 | } 51 | 52 | @book{liyongchi2016zhangliang, 53 | author = {李永池}, 54 | title = {张量初步和近代连续介质力学概论}, 55 | edition = {2}, 56 | address = {合肥}, 57 | publisher = {中国科学技术大学出版社}, 58 | year = {2016}, 59 | pages = {61}, 60 | } 61 | 62 | @book{liujingshuang2014shidi, 63 | author = {刘景双}, 64 | title = {湿地生态系统碳、氮、硫、磷生物地球化学过程}, 65 | address = {合肥}, 66 | publisher = {中国科学技术大学出版社}, 67 | year = {2014}, 68 | } 69 | 70 | @book{crawford1995future, 71 | author = {Crawford, Walt and Gorman, Michael}, 72 | title = {Future Libraries: Dreams, Madness, \& Reality}, 73 | address = {Chicago}, 74 | publisher = {American Library Association}, 75 | year = {1995}, 76 | } 77 | 78 | @book{ifla1977names, 79 | author = {{International Federation of Library Association and Institutions}}, 80 | title = {Names of Persons: National Usage for Entry in Catalogues}, 81 | edition = {3}, 82 | address = {London}, 83 | publisher = {IFLA Internation Office for UBC}, 84 | year = {1977}, 85 | } 86 | 87 | @incollection{chenggenwei1999hongshui, 88 | author = {程根伟}, 89 | title = {1998年长江洪水的成因与减灾对策}, 90 | editor = {许厚泽 and 赵其国}, 91 | booktitle = {长江流域洪涝灾害与科技对策}, 92 | address = {北京}, 93 | publisher = {科学出版社}, 94 | year = {1999}, 95 | pages = {26--32}, 96 | } 97 | 98 | @incollection{chenjinbiao1980jixian, 99 | author = {陈晋镳 and 张惠民 and 朱士兴 and 赵震 and 王振刚}, 100 | title = {蓟县震旦亚界研究}, 101 | editor = {中国地质科学院天津地质矿产研究所}, 102 | booktitle = {中国震旦亚界}, 103 | address = {天津}, 104 | publisher = {天津科学技术出版社}, 105 | year = {1980}, 106 | pages = {56--114}, 107 | } 108 | 109 | @incollection{buseck2018subsolidus, 110 | title = {Subsolidus Phenomena in Pyroxenes}, 111 | author = {Buseck, Peter R and Nord, Jr., Gordon L and Veblen, David R}, 112 | editor = {Charles T. Prewitt}, 113 | booktitle = {Pyroxenes}, 114 | address = {Washington, D.C.}, 115 | publisher = {Mineralogical Society of America}, 116 | year = {1980}, 117 | pages = {117--212}, 118 | } 119 | 120 | @inproceedings{fourney1971advances, 121 | author = {Fourney, M E}, 122 | title = {Advances in Holographic Photoelasticity}, 123 | booktitle = {American Society of Mechanical Engineers.Applied Mechanics Division.Symposium on Applications of Holography in Mechanics, August 23-25,1971,University of Southern California, Los Angeles, California}, 124 | address = {New York}, 125 | publisher = {ASME}, 126 | year = {1971}, 127 | pages = {17--38}, 128 | } 129 | 130 | @article{kongqingyong2015keji, 131 | author = {孔庆勇 and 郭红健 and 孔庆和}, 132 | title = {我国科技期刊的金字塔分层模型及发展路径初探}, 133 | journal = {中国科技期刊研究}, 134 | year = {2015}, 135 | volume = {26}, 136 | number = {10}, 137 | pages = {1100--1103}, 138 | } 139 | 140 | @article{yanghongsheng2013siku, 141 | author = {杨洪升}, 142 | title = {四库馆私家抄校书考略}, 143 | journal = {文献}, 144 | year = {2013}, 145 | number = {1}, 146 | pages = {56--75}, 147 | } 148 | 149 | @article{yuxiao2012hulianwang, 150 | author = {于潇 and 刘义 and 柴跃廷 and others}, 151 | title = {互联网药品可信交易环境中主体资质审核备案模式}, 152 | journal = {清华大学学报(自然科学版)}, 153 | year = {2012}, 154 | volume = {52}, 155 | number = {11}, 156 | pages = {1518--1521}, 157 | } 158 | 159 | @article{desmarais1992carbon, 160 | author = {Des Marais, David J and Strauss, H and Summons, R E and others}, 161 | title = {Carbon Isotope Evidence for the Stepwise Oxidation of the Proterozoic Environment}, 162 | journal = {Nature}, 163 | year = {1992}, 164 | volume = {359}, 165 | pages = {605--609}, 166 | } 167 | 168 | @article{hewitt1984technical, 169 | title = {Technical Services in 1983}, 170 | author = {HEWITT, Joe A}, 171 | journal = {Library Resource Services}, 172 | year = {1984}, 173 | } 174 | 175 | @newspaper{dingwenxiang2000shuzi, 176 | author = {丁文详}, 177 | title = {数字革命与竞争国际化}, 178 | journal = {中国青年报}, 179 | year = {2000}, 180 | date = {2000-11-20}, 181 | number = {15}, 182 | } 183 | 184 | @patent{jiangxizhou1989waifu, 185 | author = {姜锡洲}, 186 | title = {一种温热外敷药制备方案}, 187 | address = {中国}, 188 | number = {88105607.3}, 189 | year = {1989}, 190 | date = {1989-07-26}, 191 | } 192 | 193 | @database{wanjinkun1996wenzhai, 194 | author = {万锦坤}, 195 | title = {中国大学学报论文文摘(1983--1993)(英文版)}, 196 | medium = {CD}, 197 | address = {北京}, 198 | publisher = {中国大百科全书出版社}, 199 | year = {1996}, 200 | } 201 | 202 | @article{christine1998plant, 203 | title = {Plant physiology: Plant Biology in the {Genome Era}}, 204 | author = {Mlot, Christine}, 205 | journal = {Science}, 206 | volume = {281}, 207 | pages = {331--332}, 208 | year = {1998}, 209 | urldate = {1998-09-23}, 210 | } 211 | 212 | @phdthesis{sunyuwen2000hanyu, 213 | author = {孙玉文}, 214 | title = {汉语变调构词研究}, 215 | address = {北京}, 216 | school = {北京大学}, 217 | year = {2000}, 218 | } 219 | 220 | @phdthesis{cairns1965infrared, 221 | author = {Cairns, Bruce Richard}, 222 | title = {Infrared Spectroscopic Studies of Solid Oxygen}, 223 | address = {Berkeley}, 224 | school = {Univ. of California}, 225 | date = {1965}, 226 | } 227 | 228 | @proceedings{lixuexuehui1990lunwenji, 229 | title = {第 3 届全国实验流体力学学术会议论文集}, 230 | editor = {中国力学学会}, 231 | address = {天津}, 232 | year = {1990}, 233 | } 234 | 235 | @proceedings{rosenthall1963mathematical, 236 | editor = {Rosenthall, Edward M}, 237 | title = {Proceedings of the {Fifth Canadian Mathematical Congress}, {University of Montreal}, 1961}, 238 | address = {Toronto}, 239 | publisher = {University of Toronto Press}, 240 | year = {1963}, 241 | } 242 | 243 | 244 | 2.14.2 著者-出版年制 245 | 246 | @book{baker1995future, 247 | author = {Baker, S K and Jackson, M E}, 248 | title = {The Future of Resource Sharing}, 249 | address = {New York}, 250 | publisher = {The Haworth Press}, 251 | year = {1995}, 252 | } 253 | 254 | @book{nigeluopangdi1996shuzi, 255 | author = {尼葛洛庞帝}, 256 | title = {数字化生存}, 257 | translator = {胡泳 and 范海燕}, 258 | address = {海口}, 259 | publisher = {海南出版社}, 260 | year = {1996}, 261 | key = {ni2 ge3 luo4 pang2 di4}, 262 | } 263 | 264 | @article{yangzongying1996dianzi, 265 | author = {杨宗英}, 266 | title = {电子图书馆的现实模型}, 267 | journal = {中国图书馆学报}, 268 | year = {1996}, 269 | number = {2}, 270 | pages = {24--29}, 271 | key = {yang2 zong1 ying1}, 272 | } 273 | 274 | @book{liubin2014lixue, 275 | author = {刘斌}, 276 | title = {力学}, 277 | address = {合肥}, 278 | puslisher = {中国科学技术大学出版社}, 279 | pages = {24--29}, 280 | year = {2014}, 281 | key = {yang2 zong1 ying1}, 282 | } 283 | 284 | 285 | 本科毕业论文(设计)参考文献式样 286 | 287 | @article{ustc-bachelor:01, 288 | title = {网络时代经济发展战略特征}, 289 | author = {刘文富 and 顾丽梅}, 290 | year = {2000}, 291 | journal = {学术研究}, 292 | volume = {21}, 293 | number = {4}, 294 | pages = {35--40}, 295 | url = {https://kns.cnki.net/kcms2/article/abstract?v=3uoqIhG8C44YLTlOAiTRKgchrJ08w1e79zTD32bjb4xSTlZqRyr7rTIf7ok1AFpatLUPx8UT1OWFBNkw65sK7Uwjbq66SQOt&uniplatform=NZKPT}, 296 | langid = {chinese} 297 | } 298 | 299 | @book{ustc-bachelor:02, 300 | title = {知识时代的企业合作经营}, 301 | author = {肖渡 and 沈群红 and 张芸 and 胡汉辉}, 302 | year = {2000}, 303 | pages = {67--69}, 304 | publisher = {北京大学出版社}, 305 | address = {北京}, 306 | url = {https://book.douban.com/subject/1632549/}, 307 | langid = {chinese} 308 | } 309 | 310 | @techreport{ustc-bachelor:03, 311 | title = {Technology for Economic Growth}, 312 | author = {{The White House}}, 313 | year = {1993}, 314 | month = nov, 315 | address = {Washington}, 316 | url = {https://clintonwhitehouse6.archives.gov/1993/11/1993-11-04-technology-for-economic-growth-table-of-contents.html}, 317 | langid = {english} 318 | } 319 | 320 | @article{ustc-bachelor:04, 321 | title = {Vibrational Dependence of the Anisotropic Intermolecular Potential of Argon-Hydrogen Chloride}, 322 | author = {Hutson, Jeremy M.}, 323 | year = {1992}, 324 | month = may, 325 | journal = {J. Phys. Chem.}, 326 | volume = {96}, 327 | number = {11}, 328 | pages = {4237--4247}, 329 | issn = {0022-3654}, 330 | doi = {10.1021/j100190a026}, 331 | url = {https://doi.org/10.1021/j100190a026}, 332 | urldate = {2023-05-31}, 333 | langid = {english} 334 | } 335 | -------------------------------------------------------------------------------- /build.lua: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env texlua 2 | 3 | module = "ustcthesis" 4 | 5 | testfiledir = "./test/testfiles" 6 | testsuppdir = "./test/support" 7 | 8 | demofiles = {"main.tex", "bib", "chapters"} 9 | installfiles = {"*.cls", "*.bst", "*.bbx", "*.cbx", "figures"} 10 | sourcefiles = {"*.cls", "*.bst", "*.bbx", "*.cbx", "figures"} 11 | tagfiles = {"*.cls", "ustcthesis-doc.tex", "CHANGELOG.md", "main.tex"} 12 | 13 | checkengines = {"xetex"} 14 | stdengine = "xetex" 15 | 16 | checkconfigs = { 17 | "build", 18 | "test/config-crossref", 19 | "test/config-nomencl", 20 | "test/config-bibtex", 21 | "test/config-biblatex", 22 | } 23 | 24 | typesetexe = "xelatex" 25 | unpackexe = "xetex" 26 | 27 | checkopts = "-file-line-error -halt-on-error -interaction=nonstopmode" 28 | typesetopts = "-file-line-error -halt-on-error -interaction=nonstopmode" 29 | 30 | lvtext = ".tex" 31 | 32 | function update_tag(file, content, tagname, tagdate) 33 | tagname = string.gsub(tagname, "^v", "") 34 | local url = "https://github.com/ustctug/ustcthesis" 35 | local date = string.gsub(tagdate, "%-", "/") 36 | 37 | content = string.gsub(content, 38 | "Copyright %(C%) (%d%d%d%d)%-%d%d%d%d", 39 | "Copyright (C) %1-" .. os.date("%Y")) 40 | 41 | if string.match(file, "%.cls$") then 42 | content = string.gsub(content, "\\newcommand\\ustcthesisversion{[0-9a-z.-]+", 43 | "\\newcommand\\ustcthesisversion{" .. tagname) 44 | 45 | content = string.gsub(content, "\\ProvidesClass{ustcthesis}%[%d%d%d%d/%d%d/%d%d", 46 | "\\ProvidesClass{ustcthesis}[" .. date) 47 | 48 | elseif string.match(file, "%-doc.tex") then 49 | content = string.gsub(content, "v[0-9a-z.-]+\\qquad %d%d%d%d%-%d%d%-%d%d", 50 | "v" .. tagname .. "\\qquad " .. tagdate) 51 | 52 | elseif string.match(file, "CHANGELOG.md") then 53 | local previous = string.match(content, "/compare/v([0-9a-z.-]+)%.%.%.HEAD") 54 | if tagname == previous then return content end 55 | content = string.gsub(content, 56 | "## %[Unreleased%]", 57 | "## [Unreleased]\n\n## [" .. tagname .. "] - " .. tagdate) 58 | 59 | content = string.gsub(content, 60 | previous:gsub("%.", "%%."):gsub("%-", "%%-") .. "%.%.%.HEAD", 61 | tagname .. "...HEAD\n[" .. tagname .. "]: " .. url .. "/compare/v" 62 | .. previous .. "...v" .. tagname) 63 | end 64 | return content 65 | end 66 | -------------------------------------------------------------------------------- /chapters/abstract.tex: -------------------------------------------------------------------------------- 1 | % !TeX root = ../main.tex 2 | 3 | \ustcsetup{ 4 | keywords = {学位论文, 摘要, 关键词}, 5 | keywords* = {Dissertation, Abstract, Keywords}, 6 | } 7 | 8 | \begin{abstract} 9 | 摘要是论文内容的总结概括,应简要说明论文的研究目的、基本研究内容、研究方法或过程、结果和结论,突出论文的创新之处。 10 | 摘要应具有独立性和自明性,即不用阅读全文,就能获得论文必要的信息。 11 | 摘要中不宜使用公式、图表,不引用文献。 12 | 13 | 摘要分中文和英文两种,中文在前,英文在后,内容及段落须相互呼应。博士论文中文摘要一般800~1000个汉字,硕士论文中文摘要一般600个汉字。 14 | 英文摘要的篇幅参照中文摘要。 15 | 16 | 论文的关键词,是为了文献标引工作从论文中选取出来用以表示全文主题内容信息的单词或术语。建议关键词数量不超过8个,每个关键词之间用分号间隔。 17 | 18 | 英文摘要部分的标题为“ABSTRACT”。 19 | 每个关键词第一个字母大写,关键词之间用半角逗号加空一格间隔,英文关键词与中文关键词须相互呼应。 20 | 21 | \end{abstract} 22 | 23 | \begin{abstract*} 24 | The length of the English abstract should refer to that of the Chinese abstract. 25 | The title of the English abstract is “ABSTRACT”. 26 | The first letter of each keyword should be capitalized, and keywords should be separated by a halfwidth comma and a space. 27 | The English keywords and Chinese keywords should correspond to each other. 28 | \end{abstract*} 29 | -------------------------------------------------------------------------------- /chapters/achievements.tex: -------------------------------------------------------------------------------- 1 | % !TeX root = ../main.tex 2 | 3 | \begin{achievements} 4 | 5 | \begin{theachievements}[已发表论文] 6 | \item xx. 中国科学技术大学研究生学位论文撰写规范. 中国科学技术大学学报,2024,1. 7 | \item …… 8 | \end{theachievements} 9 | 10 | \begin{theachievements}[发明专利] 11 | \item xx. 一种温热外敷药制备方案. 授权号:CN123456789B,2023-08-12. 12 | \item …… 13 | \end{theachievements} 14 | 15 | \begin{theachievements}[会议论文] 16 | \item xx. 关于人工智能在学位授予工作的应用,人工智能国际研讨会,2023,12. 17 | \item …… 18 | \end{theachievements} 19 | 20 | \begin{theachievements}[参与的科研项目] 21 | \item 智能计算板卡与整机,科技委重点项目-课题,2018-2020. 22 | \item …… 23 | \end{theachievements} 24 | 25 | \end{achievements} 26 | -------------------------------------------------------------------------------- /chapters/acknowledgements.tex: -------------------------------------------------------------------------------- 1 | % !TeX root = ../main.tex 2 | 3 | \begin{acknowledgements} 4 | 5 | 在研究学习期间,我有幸得到了三位老师的教导, 6 | 他们是:我的导师,中国科大XXX研究员,中科院X昆明动物所马老师以及美国犹他大学的XXX老师。 7 | 三位深厚的学术功底,严谨的工作态度和敏锐的科学洞察力使我受益良多。 8 | 衷心感谢他们多年来给予我的悉心教导和热情帮助。 9 | 10 | 感谢XXX老师在实验方面的指导以及教授的帮助。 11 | 科大的XXX同学和XXX同学参与了部分试验工作,在此深表谢意。 12 | 13 | \end{acknowledgements} 14 | -------------------------------------------------------------------------------- /chapters/citations.tex: -------------------------------------------------------------------------------- 1 | % !TeX root = ../main.tex 2 | 3 | \chapter{引用文献的标注} 4 | 5 | 模板使用 \pkg{natbib} 宏包来设置参考文献引用的格式, 6 | 更多引用方法可以参考该宏包的使用说明。 7 | 8 | 9 | 10 | \section{顺序编码制} 11 | 12 | \subsection{角标数字标注法} 13 | 14 | \ustcsetup{ 15 | cite-style = super, 16 | } 17 | \noindent 18 | \begin{tabular}{l@{\quad$\Rightarrow$\quad}l} 19 | \verb|\cite{knuth86a}| & \cite{knuth86a} \\ 20 | \verb|\citet{knuth86a}| & \citet{knuth86a} \\ 21 | \verb|\cite[42]{knuth86a}| & \cite[42]{knuth86a} \\ 22 | \verb|\cite{knuth86a,tlc2}| & \cite{knuth86a,tlc2} \\ 23 | \verb|\cite{knuth86a,knuth84}| & \cite{knuth86a,knuth84} \\ 24 | \end{tabular} 25 | 26 | 27 | \subsection{数字标注法} 28 | 29 | \ustcsetup{ 30 | cite-style = inline, 31 | } 32 | \noindent 33 | \begin{tabular}{l@{\quad$\Rightarrow$\quad}l} 34 | \verb|\cite{knuth86a}| & \cite{knuth86a} \\ 35 | \verb|\citet{knuth86a}| & \citet{knuth86a} \\ 36 | \verb|\cite[42]{knuth86a}| & \cite[42]{knuth86a} \\ 37 | \verb|\cite{knuth86a,tlc2}| & \cite{knuth86a,tlc2} \\ 38 | \verb|\cite{knuth86a,knuth84}| & \cite{knuth86a,knuth84} \\ 39 | \end{tabular} 40 | 41 | 42 | 43 | \section{著者-出版年制标注法} 44 | 45 | \ustcsetup{ 46 | cite-style = authoryear, 47 | } 48 | \noindent 49 | \begin{tabular}{l@{\quad$\Rightarrow$\quad}l} 50 | \verb|\cite{knuth86a}| & \cite{knuth86a} \\ 51 | \verb|\citep{knuth86a}| & \citep{knuth86a} \\ 52 | \verb|\citet[42]{knuth86a}| & \citet[42]{knuth86a} \\ 53 | \verb|\citep[42]{knuth86a}| & \citep[42]{knuth86a} \\ 54 | \verb|\cite{knuth86a,tlc2}| & \cite{knuth86a,tlc2} \\ 55 | \verb|\cite{knuth86a,knuth84}| & \cite{knuth86a,knuth84} \\ 56 | \end{tabular} 57 | 58 | \ustcsetup{ 59 | cite-style = super, 60 | } 61 | 62 | % 注意,参考文献列表中的每条文献在正文中都要被引用。这里只是为了示例。 63 | \nocite{*} 64 | -------------------------------------------------------------------------------- /chapters/complementary.tex: -------------------------------------------------------------------------------- 1 | % !TeX root = ../main.tex 2 | 3 | \chapter{补充材料} 4 | 5 | 6 | \section{补充章节} 7 | 8 | 补充内容。 9 | -------------------------------------------------------------------------------- /chapters/floats.tex: -------------------------------------------------------------------------------- 1 | % !TeX root = ../main.tex 2 | 3 | \chapter{插图和表格} 4 | 5 | \section{三线表} 6 | 7 | 三线表是《撰写手册》推荐使用的格式,如表~\ref{tab:exampletable}。 8 | 9 | \begin{table} 10 | \centering 11 | \bicaption{表号和表题在表的正上方}{The English caption} 12 | \label{tab:exampletable} 13 | \begin{tabular}{cl} 14 | \toprule 15 | 类型 & 描述 \\ 16 | \midrule 17 | 挂线表 & 挂线表也称系统表、组织表,用于表现系统结构 \\ 18 | 无线表 & 无线表一般用于设备配置单、技术参数列表等 \\ 19 | 卡线表 & 卡线表有完全表,不完全表和三线表三种 \\ 20 | \bottomrule 21 | \end{tabular} 22 | \end{table} 23 | 24 | 如果有表注,推荐使用 \pkg{threeparttable}。这样可以与表格对齐,满足部分评审老师的要求。 25 | 26 | \begin{table} 27 | \centering 28 | \begin{threeparttable} 29 | \caption{带表注的表格} 30 | \label{tab:tablewithnotes} 31 | \begin{tabular}{cl} 32 | \toprule 33 | 类型 & 描述 \\ 34 | \midrule 35 | 挂线表 & 挂线表也称系统表、组织表,用于表现系统结构 \\ 36 | 无线表 & 无线表一般用于设备配置单、技术参数列表等 \\ 37 | 卡线表 & 卡线表有完全表,不完全表和三线表三种 \\ 38 | \bottomrule 39 | \end{tabular} 40 | \begin{tablenotes}[flushleft] 41 | \item 注:表注分两种,第一种是对全表的注释,用不加阿拉伯数字排在表的下边, 42 | 前面加“注:”;第二种是和表内的某处文字或数字相呼应的注, 43 | 在表里面用带圈的阿拉伯数字在右上角标出,然后在表下面用同样的圈码注出来 44 | \end{tablenotes} 45 | \end{threeparttable} 46 | \end{table} 47 | 48 | 编制表格应简单明了,表达一致,明晰易懂,表文呼应、内容一致。 49 | 排版时表格字号略小,或变换字体,尽量不分页,尽量不跨节。 50 | 表格太大需要转页时,需要在续表上方注明“续表”,表头页应重复排出。 51 | 52 | 53 | 54 | \section{插图} 55 | 56 | 有的同学可能听说“\LaTeX{} 只能使用 eps 格式的图片”,甚至把 jpg 格式转为 eps。 57 | 事实上,这种做法已经过时。 58 | 而且每次编译时都要要调用外部工具解析 eps,导致降低编译速度。 59 | 所以我们推荐矢量图直接使用 pdf 格式,位图使用 jpeg 或 png 格式。 60 | 61 | \begin{figure}[ht] 62 | \centering 63 | \includegraphics[width=0.3\textwidth]{ustc-badge.pdf} 64 | \bicaption{图号、图题置于图的下方}{The English caption} 65 | \label{fig:badge} 66 | \figurenote{若有图注,图注置于图题下方。 67 | 多个图注则须顺序编号,注序左缩进2字,与注文之间空一字符,续行悬挂缩进左对齐,两端对齐。 68 | 注文的字数较少且是短语时,末尾不可加标点,多个图注可以在同一行通过自由选取字符空格将各个图注间隔开来; 69 | 注文的字数较多或者甚至需要用句子说明时,该图注可以独立成行。 70 | } 71 | \end{figure} 72 | 73 | 关于图片的并排,推荐使用较新的 \pkg{subcaption} 宏包, 74 | 不建议使用 \pkg{subfigure} 或 \pkg{subfig} 等宏包。 75 | 76 | 77 | 78 | \section{算法环境} 79 | 80 | 模板中使用 \pkg{algorithm2e} 宏包实现算法环境。关于该宏包的具体用法, 81 | 请阅读宏包的官方文档。 82 | 83 | \begin{algorithm} 84 | \SetAlgoLined 85 | \KwData{this text} 86 | \KwResult{how to write algorithm with \LaTeX2e } 87 | 88 | initialization\; 89 | \While{not at end of this document}{ 90 | read current\; 91 | \eIf{understand}{ 92 | go to next section\; 93 | current section becomes this one\; 94 | }{ 95 | go back to the beginning of current section\; 96 | } 97 | } 98 | \caption{算法示例1} 99 | \label{algo:algorithm1} 100 | \end{algorithm} 101 | 102 | 注意,我们可以在论文中插入算法,但是插入大段的代码是愚蠢的。 103 | 然而这并不妨碍有的同学选择这么做,对于这些同学,建议用 \pkg{listings} 宏包。 104 | -------------------------------------------------------------------------------- /chapters/innovations.tex: -------------------------------------------------------------------------------- 1 | % !TeX root = ../main.tex 2 | 3 | \begin{innovations} 4 | 5 | 学术博士学位论文应当体现作者具有独立从事科学研究工作的能力,并在所学领域做出创造性的成果。 6 | 故在此须说明本学位论文的创新性,确保符合学术博士学位论文的创新要求,字数在800字以内。 7 | 8 | \end{innovations} 9 | 10 | 11 | % \begin{innovations} 12 | % 13 | % 工程博士学位论文应主要聚焦工程实践和应用研究,须体现工程性、创新性、实践性、应用性特征, 14 | % 体现学位申请人在专业领域掌握坚实全面的基础理论和系统深入的专门知识, 15 | % 具有独立承担专业实践工作的能力,在专业实践领域做出创新性成果, 16 | % 对推动本专业领域知识和技术的发展作出重要贡献。 17 | % 18 | % 故在此须说明本学位论文的创新性及应用性,确保符合工程博士学位论文要求,字数在800字以内。 19 | % 20 | % \end{innovations} 21 | -------------------------------------------------------------------------------- /chapters/intro.tex: -------------------------------------------------------------------------------- 1 | % !TeX root = ../main.tex 2 | 3 | \chapter{简介} 4 | 5 | \section{一级节标题} 6 | 7 | \subsection{二级节标题} 8 | 9 | \subsubsection{三级节标题} 10 | 11 | 本模板 \pkg{ustcthesis} 是中国科学技术大学本科生和研究生学位论文的 \LaTeX{} 12 | 模板, 按照《中国科学技术大学研究生学位论文撰写手册》(最近在修订中,以下简称《撰写手册》)和 13 | 《\href{https://www.teach.ustc.edu.cn/?attachment_id=13867} 14 | {中国科学技术大学本科毕业论文(设计)格式}》的要求编写。 15 | 16 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 17 | incididunt ut labore et dolore magna aliqua. 18 | Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut 19 | aliquip ex ea commodo consequat. 20 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 21 | fugiat nulla pariatur. 22 | Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia 23 | deserunt mollit anim id est laborum. 24 | 25 | 26 | 27 | \section{脚注} 28 | 29 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 30 | incididunt ut labore et dolore magna aliqua. 31 | \footnote{Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris 32 | nisi ut aliquip ex ea commodo consequat. 33 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore 34 | eu fugiat nulla pariatur.} 35 | -------------------------------------------------------------------------------- /chapters/math.tex: -------------------------------------------------------------------------------- 1 | % !TeX root = ../main.tex 2 | 3 | \chapter{数学} 4 | 5 | \section{数学符号} 6 | 7 | 《撰写手册》要求数学符号遵循 GB/T 3102.11—1993《物理科学和技术中使用的数学符号》 8 | \footnote{原 GB 3102.11—1993,自 2017 年 3 月 23 日起,该标准转为推荐性标准。}。 9 | 该标准参照采纳 ISO 31-11:1992 \footnote{目前已更新为 ISO 80000-2:2019。}, 10 | 但是与 \TeX{} 默认的美国数学学会(AMS)的符号习惯有所区别。 11 | 具体地来说主要有以下差异: 12 | \begin{enumerate} 13 | \item 大写希腊字母默认为斜体,如 14 | \begin{equation*} 15 | \Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega. 16 | \end{equation*} 17 | 注意有限增量符号 $\increment$ 固定使用正体,模板提供了 \cs{increment} 命令。 18 | \item 小于等于号和大于等于号使用倾斜的字形 $\le$、$\ge$。 19 | \item 积分号使用正体,比如 $\int$、$\oint$。 20 | \item 21 | 偏微分符号 $\partial$ 使用正体。 22 | \item 23 | 省略号 \cs{dots} 按照中文的习惯固定居中,比如 24 | \begin{equation*} 25 | 1, 2, \dots, n \quad 1 + 2 + \dots + n. 26 | \end{equation*} 27 | \item 28 | 实部 $\Re$ 和虚部 $\Im$ 的字体使用罗马体。 29 | \end{enumerate} 30 | 31 | 以上数学符号样式的差异可以在模板中统一设置。 32 | 但是还有一些需要用户在写作时进行处理: 33 | \begin{enumerate} 34 | \item 数学常数和特殊函数名用正体,如 35 | \begin{equation*} 36 | \uppi = 3.14\dots; \quad 37 | \symup{i}^2 = -1; \quad 38 | \symup{e} = \lim_{n \to \infty} \left( 1 + \frac{1}{n} \right)^n. 39 | \end{equation*} 40 | \item 微分号使用正体,比如 $\dif y / \dif x$。 41 | \item 向量、矩阵和张量用粗斜体(\cs{symbf}),如 $\symbf{x}$、$\symbf{\Sigma}$、$\symbfsf{T}$。 42 | \item 自然对数用 $\ln x$ 不用 $\log x$。 43 | \end{enumerate} 44 | 45 | 模板中使用 \pkg{unicode-math} 宏包配置数学字体。 46 | 该宏包与传统的 \pkg{amsfonts}、\pkg{amssymb}、\pkg{bm}、 47 | \pkg{mathrsfs}、\pkg{upgreek} 等宏包\emph{不}兼容。 48 | 本模板作了处理,用户可以直接使用 \cs{bm}, \cs{mathscr}, 49 | \cs{upGamma} 等命令。 50 | 关于数学符号更多的用法,参见 \pkg{unicode-math} 宏包的使用说明和符号列表 51 | \pkg{unimath-symbols}。 52 | 53 | 54 | 55 | \section{数学公式} 56 | 57 | 数学公式可以使用 \env{equation} 和 \env{equation*} 环境。 58 | 注意数学公式的引用应前后带括号,建议使用 \cs{eqref} 命令,比如式~\eqref{eq:example}。 59 | \begin{equation} 60 | \hat{f}(\xi) = \int_{-\infty}^\infty f(x) \eu^{-2 \uppi \iu x \xi} \dif x. 61 | \label{eq:example} 62 | \end{equation} 63 | 64 | 多行公式尽可能在“=”处对齐,推荐使用 \env{align} 环境,比如式~\eqref{eq:align_2}。 65 | \begin{align} 66 | a & = b + c + d + e \label{eq:align_1} \\ 67 | & = f + g. \label{eq:align_2} 68 | \end{align} 69 | 70 | 71 | 72 | \section{量和单位} 73 | 74 | 量和单位要求严格执行 GB 3100~3102—1993 有关量和单位的规定。 75 | 宏包 \pkg{siunitx} 提供了更好的数字和单位支持: 76 | \begin{itemize} 77 | \item 为了阅读方便,四位以上的整数或小数推荐采用千分空的分节方式:\num{55235367.34623}。 78 | 四位以内的整数可以不加千分空:\num{1256}。 79 | \item 数值与单位符号间留适当空隙:\SI{25.4}{mm},\SI{5.97e24}{\kilo\gram}, 80 | \SI{-273.15}{\degreeCelsius}。 例外:\SI{12.3}{\degree},\ang{1;2;3}。 81 | \item 组合单位默认使用 APS 的格式,即相乘的单位之间留一定空隙: \si{kg.m.s^{-2}}, 82 | 也可以使用居中的圆点: \si[inter-unit-product = \ensuremath{{}\cdot{}}]{kg.m.s^{-2}}。 83 | GB 3100—1993 对两者都允许,建议全文统一设置。 84 | \item 量值范围使用“~”:\SIrange{10}{15}{mol/L}。 85 | \item 注意:词头 \textmu{} 不能写为 u,如:\si{umol} 应为 \si{\micro\mole}、\si{\umol}。 86 | \end{itemize} 87 | 88 | 89 | 90 | \section{定理和证明} 91 | 92 | 示例文件中使用 \pkg{amsthm} 宏包配置了定理、引理和证明等环境。 93 | 用户也可以使用 \pkg{ntheorem} 宏包。 94 | 95 | \begin{definition} 96 | If the integral of function $f$ is measurable and non-negative, we define 97 | its (extended) \textbf{Lebesgue integral} by 98 | \begin{equation} 99 | \int f = \sup_g \int g, 100 | \end{equation} 101 | where the supremum is taken over all measurable functions $g$ such that 102 | $0 \le g \le f$, and where $g$ is bounded and supported on a set of 103 | finite measure. 104 | \end{definition} 105 | 106 | \begin{assumption} 107 | The communication graph is strongly connected. 108 | \end{assumption} 109 | 110 | \begin{example} 111 | Simple examples of functions on $\mathbb{R}^d$ that are integrable 112 | (or non-integrable) are given by 113 | \begin{equation} 114 | f_a(x) = 115 | \begin{cases} 116 | |x|^{-a} & \text{if } |x| \le 1, \\ 117 | 0 & \text{if } x > 1. 118 | \end{cases} 119 | \end{equation} 120 | \begin{equation} 121 | F_a(x) = \frac{1}{1 + |x|^a}, \qquad \text{all } x \in \mathbb{R}^d. 122 | \end{equation} 123 | Then $f_a$ is integrable exactly when $a < d$, while $F_a$ is integrable 124 | exactly when $a > d$. 125 | \end{example} 126 | 127 | \begin{lemma}[Fatou] 128 | Suppose $\{f_n\}$ is a sequence of measurable functions with $f_n \geq 0$. 129 | If $\lim_{n \to \infty} f_n(x) = f(x)$ for a.e. $x$, then 130 | \begin{equation} 131 | \int f \le \liminf_{n \to \infty} \int f_n. 132 | \end{equation} 133 | \end{lemma} 134 | 135 | \begin{remark} 136 | We do not exclude the cases $\int f = \infty$, 137 | or $\liminf_{n \to \infty} f_n = \infty$. 138 | \end{remark} 139 | 140 | \begin{corollary} 141 | Suppose $f$ is a non-negative measurable function, and $\{f_n\}$ a sequence 142 | of non-negative measurable functions with 143 | $f_n(x) \le f(x)$ and $f_n(x) \to f(x)$ for almost every $x$. Then 144 | \begin{equation} 145 | \lim_{n \to \infty} \int f_n = \int f. 146 | \end{equation} 147 | \end{corollary} 148 | 149 | \begin{proposition} 150 | Suppose $f$ is integrable on $\mathbb{R}^d$. Then for every $\epsilon > 0$: 151 | \begin{enumerate} 152 | \renewcommand{\theenumi}{\roman{enumi}} 153 | \item There exists a set of finite measure $B$ (a ball, for example) such 154 | that 155 | \begin{equation} 156 | \int_{B^c} |f| < \epsilon. 157 | \end{equation} 158 | \item There is a $\delta > 0$ such that 159 | \begin{equation} 160 | \int_E |f| < \epsilon \qquad \text{whenever } m(E) < \delta. 161 | \end{equation} 162 | \end{enumerate} 163 | \end{proposition} 164 | 165 | \begin{theorem} 166 | Suppose $\{f_n\}$ is a sequence of measurable functions such that 167 | $f_n(x) \to f(x)$ a.e. $x$, as $n$ tends to infinity. 168 | If $|f_n(x)| \le g(x)$, where $g$ is integrable, then 169 | \begin{equation} 170 | \int |f_n - f| \to 0 \qquad \text{as } n \to \infty, 171 | \end{equation} 172 | and consequently 173 | \begin{equation} 174 | \int f_n \to \int f \qquad \text{as } n \to \infty. 175 | \end{equation} 176 | \end{theorem} 177 | 178 | \begin{proof} 179 | Trivial. 180 | \end{proof} 181 | 182 | \newtheorem*{axiomofchoice}{Axiom of choice} 183 | \begin{axiomofchoice} 184 | Suppose $E$ is a set and ${E_\alpha}$ is a collection of 185 | non-empty subsets of $E$. Then there is a function $\alpha 186 | \mapsto x_\alpha$ (a ``choice function'') such that 187 | \begin{equation} 188 | x_\alpha \in E_\alpha,\qquad \text{for all }\alpha. 189 | \end{equation} 190 | \end{axiomofchoice} 191 | 192 | \newtheorem{observation}{Observation} 193 | \begin{observation} 194 | Suppose a partially ordered set $P$ has the property 195 | that every chain has an upper bound in $P$. Then the 196 | set $P$ contains at least one maximal element. 197 | \end{observation} 198 | \begin{proof}[A concise proof] 199 | Obvious. 200 | \end{proof} 201 | -------------------------------------------------------------------------------- /chapters/notation.tex: -------------------------------------------------------------------------------- 1 | % !TeX root = ../main.tex 2 | 3 | \begin{notation} 4 | 5 | \begin{notationlist}{2em} 6 | \item[$\displaystyle a$] The number of angels per unit area 7 | \item[$\displaystyle N$] The number of angels per needle point 8 | \item[$\displaystyle A$] The area of the needle point 9 | \item[$\displaystyle \sigma$] The total mass of angels per unit area 10 | \item[$\displaystyle m$] The mass of one angel 11 | \item[$\displaystyle \sum_{i=1}^n a_i$] The sum of $a_i$ 12 | \end{notationlist} 13 | 14 | \end{notation} 15 | 16 | 17 | 18 | % 也可以使用 nomencl 宏包 19 | 20 | % \printnomenclature 21 | 22 | % \nomenclature{$\displaystyle a$}{The number of angels per unit are} 23 | % \nomenclature{$\displaystyle N$}{The number of angels per needle point} 24 | % \nomenclature{$\displaystyle A$}{The area of the needle point} 25 | % \nomenclature{$\displaystyle \sigma$}{The total mass of angels per unit area} 26 | % \nomenclature{$\displaystyle m$}{The mass of one angel} 27 | % \nomenclature{$\displaystyle \sum_{i=1}^n a_i$}{The sum of $a_i$} 28 | -------------------------------------------------------------------------------- /figures/ustc-badge.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ustctug/ustcthesis/6ac76d9f7eddc43e1567d2e720fb2b4621d85ea0/figures/ustc-badge.pdf -------------------------------------------------------------------------------- /figures/ustc-name-stxingkai.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ustctug/ustcthesis/6ac76d9f7eddc43e1567d2e720fb2b4621d85ea0/figures/ustc-name-stxingkai.pdf -------------------------------------------------------------------------------- /figures/ustc-name.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ustctug/ustcthesis/6ac76d9f7eddc43e1567d2e720fb2b4621d85ea0/figures/ustc-name.pdf -------------------------------------------------------------------------------- /figures/ustc-title-page-heading.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ustctug/ustcthesis/6ac76d9f7eddc43e1567d2e720fb2b4621d85ea0/figures/ustc-title-page-heading.pdf -------------------------------------------------------------------------------- /latexmkrc: -------------------------------------------------------------------------------- 1 | $pdf_mode = 5; 2 | 3 | $xelatex = "xelatex -file-line-error -halt-on-error -interaction=nonstopmode -no-pdf -synctex=1 %O %S"; 4 | $xdvipdfmx = "xdvipdfmx -q -E -o %D %O %S"; 5 | $lualatex = "lualatex -file-line-error -halt-on-error -interaction=nonstopmode -synctex=1 %O %S"; 6 | 7 | $bibtex_use = 1.5; 8 | 9 | $clean_ext = "hd loa synctex.gz xdv"; 10 | 11 | $makeindex = "makeindex -s gind.ist %O -o %D %S"; 12 | add_cus_dep('glo', 'gls', 0, 'glo2gls'); 13 | sub glo2gls { 14 | system("makeindex -s gglo.ist -o \"$_[0].gls\" \"$_[0].glo\""); 15 | } 16 | push @generated_exts, "glo", "gls"; 17 | 18 | add_cus_dep('nlo', 'nls', 0, 'nlo2nls'); 19 | sub nlo2nls { 20 | system("makeindex -s nomencl.ist -o \"$_[0].nls\" \"$_[0].nlo\""); 21 | } 22 | push @generated_exts, "nlo", "nls"; 23 | -------------------------------------------------------------------------------- /main.tex: -------------------------------------------------------------------------------- 1 | % !TeX encoding = UTF-8 2 | % !TeX program = xelatex 3 | % !TeX spellcheck = en_US 4 | 5 | \documentclass[degree=doctor]{ustcthesis} 6 | % degree = doctor | master | bachelor 7 | % degree-type = academic | professional | engineering 8 | % language = chinese | english 9 | % fontset = windows | mac | ubuntu | fandol 10 | 11 | % 加载宏包、全部的配置 12 | \input{ustcsetup} 13 | 14 | 15 | \begin{document} 16 | 17 | \maketitle 18 | \copyrightpage 19 | 20 | \frontmatter 21 | \include{chapters/innovations} % 博士学位论文的创新性说明 22 | \include{chapters/abstract} 23 | \tableofcontents 24 | % \listoffigures 25 | % \listoftables 26 | \listoffiguresandtables 27 | % \include{chapters/notation} 28 | 29 | \mainmatter 30 | \include{chapters/intro} 31 | \include{chapters/floats} 32 | \include{chapters/math} 33 | \include{chapters/citations} 34 | 35 | \bibliography{bib/ustc} % 参考文献使用 BibTeX 编译 36 | % \printbibliography % 参考文献使用 BibLaTeX 编译 37 | 38 | \appendix 39 | \include{chapters/complementary} 40 | 41 | \backmatter 42 | \include{chapters/acknowledgements} 43 | \include{chapters/achievements} 44 | 45 | \end{document} 46 | -------------------------------------------------------------------------------- /test/config-biblatex.lua: -------------------------------------------------------------------------------- 1 | testfiledir = "./test/testfiles-biblatex" 2 | 3 | checkruns = 3 4 | 5 | function runtest_tasks(name, run) 6 | if run == 1 then 7 | return "biber --quiet " .. name 8 | else 9 | return "" 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /test/config-bibtex.lua: -------------------------------------------------------------------------------- 1 | testfiledir = "./test/testfiles-bibtex" 2 | 3 | checkruns = 3 4 | 5 | function runtest_tasks(name, run) 6 | if run == 1 then 7 | return "bibtex -terse " .. name 8 | else 9 | return "" 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /test/config-crossref.lua: -------------------------------------------------------------------------------- 1 | testfiledir = "./test/testfiles-crossref" 2 | 3 | checkruns = 2 4 | -------------------------------------------------------------------------------- /test/config-nomencl.lua: -------------------------------------------------------------------------------- 1 | testfiledir = "./test/testfiles-nomencl" 2 | 3 | checkruns = 2 4 | 5 | function runtest_tasks(name) 6 | return "makeindex -s nomencl.ist -o " .. name .. ".nls " .. name .. ".nlo" 7 | end 8 | -------------------------------------------------------------------------------- /test/save.sh: -------------------------------------------------------------------------------- 1 | save_file () { 2 | test="$1"; 3 | for config in main crossref nomencl bibtex biblatex; do 4 | if [[ "$config" == "main" ]]; then 5 | test_dir="test/testfiles"; 6 | else 7 | test_dir="test/testfiles-$config"; 8 | fi 9 | file_path="$test_dir/$test.tex"; 10 | if [ -f "$file_path" ]; then 11 | if [[ "$config" == "main" ]]; then 12 | l3build save --halt-on-error "$test" || exit 1; 13 | else 14 | l3build save --halt-on-error --config "test/config-$config" "$test" || exit 1; 15 | fi 16 | break; 17 | fi 18 | done 19 | } 20 | 21 | save_config () { 22 | config="$1"; 23 | if [[ "$config" == "main" ]]; then 24 | for testfile in test/testfiles/*.tex; do 25 | test="$(basename "$testfile" .tex)"; 26 | l3build save --halt-on-error "$test" || exit 1; 27 | done 28 | else 29 | for testfile in "test/testfiles-$config"/*.tex ; do 30 | test="$(basename "$testfile" .tex)"; 31 | l3build save --halt-on-error --config "test/config-$config" "$test" || exit 1; 32 | done 33 | fi 34 | } 35 | 36 | 37 | if [[ $# -eq 0 ]]; then 38 | for config in main crossref nomencl bibtex biblatex; do 39 | save_config $config; 40 | done 41 | else 42 | case $1 in 43 | main|crossref|nomencl|bibtex|biblatex) 44 | save_config "$1"; 45 | ;; 46 | 47 | *) 48 | save_file "$1"; 49 | ;; 50 | esac 51 | fi 52 | -------------------------------------------------------------------------------- /test/support/chapters.tex: -------------------------------------------------------------------------------- 1 | \frontmatter 2 | \begin{innovations} 3 | 学术博士学位论文应当体现作者具有独立从事科学研究工作的能力,并在所学领域做出创造性的成果。 4 | 故在此须说明本学位论文的创新性,确保符合学术博士学位论文的创新要求,字数要求在200至400字之间。 5 | \end{innovations} 6 | 7 | \ustcsetup{ 8 | keywords = {学位论文, 关键词 2, 关键词 3, 关键词 4, 关键词 5, 关键词 6, 关键词 7, 关键词 8}, 9 | keywords* = {Dissertation, Keyword 2, Keyword 3, Keyword 4, Keyword 5, Keyword 6, Keyword 7, Keyword 8}, 10 | } 11 | 12 | \begin{abstract} 13 | 研究生学位论文是研究生在研究工作中所取得成果的集中反映,代表着研究生研究工作的水平,也是申请和授予相应学位的主要依据。\par 14 | …… 15 | \end{abstract} 16 | 17 | \begin{abstract*} 18 | Graduate dissertation is a graduate student in research results of concentrated reflection, represents the level of the graduate research work, is also the main basis of application and corresponding degree granted.\par 19 | \dots 20 | \end{abstract*} 21 | 22 | \tableofcontents 23 | 24 | \listoffiguresandtables 25 | 26 | \begin{notation} 27 | Notations. 28 | \end{notation} 29 | 30 | \mainmatter 31 | 32 | \chapter{引言} 33 | 34 | 研究生学位论文质量是反应了研究生培养质量,是授予相应学位的主要依据。 35 | 要能代表研究生研究工作的水平,也是申请和授予相应学位的主要依据。 36 | 提高学位论文的质量和水平是研究生教育最重要的任务,需要学生和导师的共同努力。 37 | 通常学位论文只能有一个主题,该主题应针对某学科领域中的一个具体问题展开深入、系统的研究, 38 | 并得出有价值的研究结论。 39 | 40 | \section{学位论文中的常见问题分析} 41 | 42 | 从问题的分类上来看主要存在内容上的问题和格式上的问题, 43 | 很多时候这两方面的问题又是相互交叉和影响的。 44 | 45 | \subsection{常见内容问题} 46 | 47 | 文章缺乏逻辑性,结构不合理。 48 | 有些研究生甚至不知道学位论文应该如何写,如有的摘要与正文内容不一致, 49 | 摘要中出现参考文献和非公知公认的符号、缩写,甚至出现摘要、引言、结论等部分内容一样的情况; 50 | 有的方法与结果混乱,方法中提到的而在结果中没有出现,或在结果中出现的内容而方法中没有提及; 51 | 有的结果并非客观描述,其中夹杂着大量的讨论,而在讨论部分又与结果有大段的重复等等。 52 | 53 | 54 | \chapter{内容要素} 55 | 56 | \section{有关图、表和表达式} 57 | 58 | 图、表和表达式按章连续编号,用两个阿拉伯数字表示,前一数字为章的序号, 59 | 后一数字为本章内图、表或表达式的顺序号。 60 | 两数字间用半角小数点“.”连接。 61 | 例如“图~\ref{fig:example}”、“表~\ref{tab:example}”、“式\eqref{eq:example}”等等。 62 | 63 | \subsection{插图} 64 | 65 | 插图一般由图、图题、图注构成。 66 | 67 | \begin{figure}[h] 68 | \centering 69 | \includegraphics[width=0.3\textwidth]{figures/ustc-badge.pdf} 70 | \caption{图题置于图的下方} 71 | \label{fig:example} 72 | \figurenote{若有图注,图注置于图题下方。 73 | 注文的字数较少且是短语时,末尾不可加标点,多个图注可以在同一行通过自由选取字符空格将各个图注间隔开来; 74 | 注文的字数较多或者甚至需要用句子说明时,该图注可以独立成行。 75 | } 76 | \end{figure} 77 | 78 | 不宜将多个插图连续排版,插图与文字论述段落应穿插排版。 79 | 80 | \subsection{表格} 81 | 82 | 表格一般由表、表题、表注构成。 83 | 84 | \begin{table}[h] 85 | \centering 86 | \caption{表题置于表的上方} 87 | \label{tab:example} 88 | \begin{tabular}{cl} 89 | \toprule 90 | 类型 & 描述 \\ 91 | \midrule 92 | 挂线表 & 挂线表也称系统表、组织表,用于表现系统结构 \\ 93 | 无线表 & 无线表一般用于设备配置单、技术参数列表等 \\ 94 | 卡线表 & 卡线表有完全表,不完全表和三线表三种 \\ 95 | \bottomrule 96 | \end{tabular} 97 | \end{table} 98 | 99 | 不宜将多个表格连续排版,表格与文字论述段落应穿插排版。 100 | 101 | \clearpage 102 | 103 | \subsection{表达式} 104 | 105 | 表达式主要是指分章连续编有序号的数字表达式。 106 | \begin{equation} 107 | w_1 = u_{11} - u_{12} u_{21} 108 | \label{eq:example} 109 | \end{equation} 110 | 表达式的行距根据需要采用,段前6磅、段后6磅。 111 | 112 | \chapter{引用} 113 | \ustcsetup{cite-style=super} 114 | \cite{knuth86a} 115 | 116 | \begin{thebibliography}{1} 117 | \bibitem[Knuth(1986)]{knuth86a} 118 | KNUTH~D~E. 119 | \newblock Computers and typesetting: volume~A\quad The 120 | {\TeX}book\allowbreak[M]. 121 | \newblock Reading, MA, USA: Addison-Wesley, 1986. 122 | \end{thebibliography} 123 | 124 | \appendix 125 | \chapter{附录章节} 126 | 附录内容。 127 | 128 | \backmatter 129 | \begin{acknowledgements} 130 | 致谢内容。 131 | \end{acknowledgements} 132 | 133 | \begin{achievements} 134 | 135 | \begin{theachievements}[已发表论文] 136 | \item xx. 中国科学技术大学研究生学位论文撰写规范. 中国科学技术大学学报,2024,1. 137 | \item …… 138 | \end{theachievements} 139 | 140 | \begin{theachievements}[发明专利] 141 | \item xx. 一种温热外敷药制备方案. 授权号:CN123456789B,2023-08-12. 142 | \item …… 143 | \end{theachievements} 144 | 145 | \begin{theachievements}[会议论文] 146 | \item xx. 关于人工智能在学位授予工作的应用,人工智能国际研讨会,2023,12. 147 | \item …… 148 | \end{theachievements} 149 | 150 | \begin{theachievements}[参与的科研项目] 151 | \item 智能计算板卡与整机,科技委重点项目-课题,2018-2020. 152 | \item …… 153 | \end{theachievements} 154 | 155 | \end{achievements} 156 | -------------------------------------------------------------------------------- /test/support/info.tex: -------------------------------------------------------------------------------- 1 | \ustcsetup{ 2 | title = {论文题目\\论文题目\\论文题目}, 3 | title* = {Title\\Title\\Title}, 4 | author = {作者姓名}, 5 | author* = {Author Name}, 6 | speciality = {学科专业}, 7 | speciality* = {Speciality}, 8 | supervisor = {XXX~教授, XXX~教授}, 9 | supervisor* = {Prof.~XXX, Prof.~XXX}, 10 | date = {2025-03-12}, 11 | } 12 | -------------------------------------------------------------------------------- /test/support/refs-authoryear.bib: -------------------------------------------------------------------------------- 1 | 2.14.2 著者-出版年制 2 | 3 | @book{baker1995future, 4 | author = {Baker, S K and Jackson, M E}, 5 | title = {The Future of Resource Sharing}, 6 | address = {New York}, 7 | publisher = {The Haworth Press}, 8 | year = {1995}, 9 | } 10 | 11 | @book{nigeluopangdi1996shuzi, 12 | author = {尼葛洛庞帝}, 13 | title = {数字化生存}, 14 | translator = {胡泳 and 范海燕}, 15 | address = {海口}, 16 | publisher = {海南出版社}, 17 | year = {1996}, 18 | key = {ni2 ge3 luo4 pang2 di4}, 19 | } 20 | 21 | @article{yangzongying1996dianzi, 22 | author = {杨宗英}, 23 | title = {电子图书馆的现实模型}, 24 | journal = {中国图书馆学报}, 25 | year = {1996}, 26 | number = {2}, 27 | pages = {24--29}, 28 | key = {yang2 zong1 ying1}, 29 | } 30 | 31 | @book{liubin2014lixue, 32 | author = {刘斌}, 33 | title = {力学}, 34 | address = {合肥}, 35 | publisher = {中国科学技术大学出版社}, 36 | year = {2014}, 37 | key = {liu2 bin1}, 38 | } 39 | -------------------------------------------------------------------------------- /test/support/refs-bachelor.bib: -------------------------------------------------------------------------------- 1 | 本科毕业论文(设计)参考文献式样 2 | 3 | @article{ustc-bachelor:01, 4 | title = {网络时代经济发展战略特征}, 5 | author = {刘文富 and 顾丽梅}, 6 | year = {2000}, 7 | journal = {学术研究}, 8 | volume = {21}, 9 | number = {4}, 10 | pages = {35--40}, 11 | url = {https://kns.cnki.net/kcms2/article/abstract?v=3uoqIhG8C44YLTlOAiTRKgchrJ08w1e79zTD32bjb4xSTlZqRyr7rTIf7ok1AFpatLUPx8UT1OWFBNkw65sK7Uwjbq66SQOt&uniplatform=NZKPT}, 12 | langid = {chinese} 13 | } 14 | 15 | @book{ustc-bachelor:02, 16 | title = {知识时代的企业合作经营}, 17 | author = {肖渡 and 沈群红 and 张芸 and 胡汉辉}, 18 | year = {2000}, 19 | pages = {67--69}, 20 | publisher = {北京大学出版社}, 21 | address = {北京}, 22 | url = {https://book.douban.com/subject/1632549/}, 23 | langid = {chinese} 24 | } 25 | 26 | @techreport{ustc-bachelor:03, 27 | title = {Technology for Economic Growth}, 28 | author = {{The White House}}, 29 | year = {1993}, 30 | month = nov, 31 | address = {Washington}, 32 | url = {https://clintonwhitehouse6.archives.gov/1993/11/1993-11-04-technology-for-economic-growth-table-of-contents.html}, 33 | langid = {english} 34 | } 35 | 36 | @article{ustc-bachelor:04, 37 | title = {Vibrational Dependence of the Anisotropic Intermolecular Potential of Argon-Hydrogen Chloride}, 38 | author = {Hutson, Jeremy M.}, 39 | year = {1992}, 40 | month = may, 41 | journal = {J. Phys. Chem.}, 42 | volume = {96}, 43 | number = {11}, 44 | pages = {4237--4247}, 45 | issn = {0022-3654}, 46 | doi = {10.1021/j100190a026}, 47 | url = {https://doi.org/10.1021/j100190a026}, 48 | urldate = {2023-05-31}, 49 | langid = {english} 50 | } 51 | -------------------------------------------------------------------------------- /test/support/refs-numerical.bib: -------------------------------------------------------------------------------- 1 | 2.14.1 顺序编码制 2 | 3 | (1) 专著(普通图书) 4 | 5 | @book{sunliguang2016jidi, 6 | editor = {孙立广}, 7 | title = {极地科学前沿与热点:顶级期刊论文摘要汇编(1999—2010)}, 8 | address = {合肥}, 9 | publisher = {中国科学技术大学出版社}, 10 | year = {2016}, 11 | pages = {222}, 12 | } 13 | 14 | @book{liyongchi2016zhangliang, 15 | author = {李永池}, 16 | title = {张量初步和近代连续介质力学概论}, 17 | edition = {2}, 18 | address = {合肥}, 19 | publisher = {中国科学技术大学出版社}, 20 | year = {2016}, 21 | pages = {61}, 22 | } 23 | 24 | @book{liujingshuang2014shidi, 25 | author = {刘景双}, 26 | title = {湿地生态系统碳、氮、硫、磷生物地球化学过程}, 27 | address = {合肥}, 28 | publisher = {中国科学技术大学出版社}, 29 | year = {2014}, 30 | } 31 | 32 | @book{crawford1995future, 33 | author = {Crawford, Walt and Gorman, Michael}, 34 | title = {Future Libraries: Dreams, Madness, \& Reality}, 35 | address = {Chicago}, 36 | publisher = {American Library Association}, 37 | year = {1995}, 38 | } 39 | 40 | @book{ifla1977names, 41 | author = {{International Federation of Library Association and Institutions}}, 42 | title = {Names of Persons: National Usage for Entry in Catalogues}, 43 | edition = {3}, 44 | address = {London}, 45 | publisher = {IFLA Internation Office for UBC}, 46 | year = {1977}, 47 | } 48 | 49 | (2) 专著中的析出文献 50 | 51 | @incollection{chenggenwei1999hongshui, 52 | author = {程根伟}, 53 | title = {1998年长江洪水的成因与减灾对策}, 54 | editor = {许厚泽 and 赵其国}, 55 | booktitle = {长江流域洪涝灾害与科技对策}, 56 | address = {北京}, 57 | publisher = {科学出版社}, 58 | year = {1999}, 59 | pages = {26--32}, 60 | } 61 | 62 | @incollection{chenjinbiao1980jixian, 63 | author = {陈晋镳 and 张惠民 and 朱士兴 and 赵震 and 王振刚}, 64 | title = {蓟县震旦亚界研究}, 65 | editor = {中国地质科学院天津地质矿产研究所}, 66 | booktitle = {中国震旦亚界}, 67 | address = {天津}, 68 | publisher = {天津科学技术出版社}, 69 | year = {1980}, 70 | pages = {56--114}, 71 | } 72 | 73 | @incollection{buseck2018subsolidus, 74 | title = {Subsolidus Phenomena in Pyroxenes}, 75 | author = {Buseck, Peter R and Nord, Jr., Gordon L and Veblen, David R}, 76 | editor = {Charles T. Prewitt}, 77 | booktitle = {Pyroxenes}, 78 | address = {Washington, D.C.}, 79 | publisher = {Mineralogical Society of America}, 80 | year = {1980}, 81 | pages = {117--211}, 82 | } 83 | 84 | @inproceedings{fourney1971advances, 85 | author = {Fourney, M E}, 86 | title = {Advances in Holographic Photoelasticity}, 87 | booktitle = {American Society of Mechanical Engineers.Applied Mechanics Division.Symposium on Applications of Holography in Mechanics, August 23-25,1971,University of Southern California, Los Angeles, California}, 88 | address = {New York}, 89 | publisher = {ASME}, 90 | year = {1971}, 91 | pages = {17--38}, 92 | } 93 | 94 | (3) 期刊中的析出文献 95 | 96 | @article{kongqingyong2015keji, 97 | author = {孔庆勇 and 郭红健 and 孔庆和}, 98 | title = {我国科技期刊的金字塔分层模型及发展路径初探}, 99 | journal = {中国科技期刊研究}, 100 | year = {2015}, 101 | volume = {26}, 102 | number = {10}, 103 | pages = {1100--1103}, 104 | } 105 | 106 | @article{yanghongsheng2013siku, 107 | author = {杨洪升}, 108 | title = {四库馆私家抄校书考略}, 109 | journal = {文献}, 110 | year = {2013}, 111 | number = {1}, 112 | pages = {56--75}, 113 | } 114 | 115 | @article{yuxiao2012hulianwang, 116 | author = {于潇 and 刘义 and 柴跃廷 and others}, 117 | title = {互联网药品可信交易环境中主体资质审核备案模式}, 118 | journal = {清华大学学报(自然科学版)}, 119 | year = {2012}, 120 | volume = {52}, 121 | number = {11}, 122 | pages = {1518--1521}, 123 | } 124 | 125 | @article{desmarais1992carbon, 126 | author = {Des Marais, David J and Strauss, H and Summons, R E and others}, 127 | title = {Carbon Isotope Evidence for the Stepwise Oxidation of the Proterozoic Environment}, 128 | journal = {Nature}, 129 | year = {1992}, 130 | volume = {359}, 131 | pages = {605--609}, 132 | } 133 | 134 | @article{hewitt1984technical, 135 | title = {Technical Services in 1983}, 136 | author = {HEWITT, Joe A}, 137 | journal = {Library Resource Services}, 138 | year = {1984}, 139 | } 140 | 141 | (4) 报纸中的析出文献 142 | 143 | @newspaper{dingwenxiang2000shuzi, 144 | author = {丁文详}, 145 | title = {数字革命与竞争国际化}, 146 | journal = {中国青年报}, 147 | year = {2000}, 148 | date = {2000-11-20}, 149 | number = {15}, 150 | } 151 | 152 | (5) 专利文献 153 | 154 | @patent{jxz, 155 | author = {姜锡洲}, 156 | title = {一种温热外敷药制备方案}, 157 | address = {中国}, 158 | number = {88105607.3}, 159 | year = {1989}, 160 | date = {1989-07-26}, 161 | } 162 | 163 | (6) 电子文献 164 | 165 | @database{wjk, 166 | author = {万锦坤}, 167 | title = {中国大学学报论文文摘(1983--1993)(英文版)}, 168 | medium = {CD}, 169 | address = {北京}, 170 | publisher = {中国大百科全书出版社}, 171 | year = {1996}, 172 | } 173 | 174 | @article{christine1998plant, 175 | title = {Plant physiology: Plant Biology in the {Genome Era}}, 176 | author = {Mlot, Christine}, 177 | journal = {Science}, 178 | volume = {281}, 179 | pages = {331--332}, 180 | year = {1998}, 181 | urldate = {1998-09-23}, 182 | } 183 | 184 | (7) 学位论文 185 | 186 | @phdthesis{sunyuwen2000hanyu, 187 | author = {孙玉文}, 188 | title = {汉语变调构词研究}, 189 | address = {北京}, 190 | school = {北京大学}, 191 | year = {2000}, 192 | } 193 | 194 | @phdthesis{cairns1965infrared, 195 | author = {Cairns, Bruce Richard}, 196 | title = {Infrared Spectroscopic Studies of Solid Oxygen}, 197 | address = {Berkeley}, 198 | school = {Univ. of California}, 199 | date = {1965}, 200 | } 201 | 202 | (7) 论文集、会议录 203 | 204 | @proceedings{lixuexuehui1990lunwenji, 205 | editor = {中国力学学会}, 206 | title = {第 3 届全国实验流体力学学术会议论文集}, 207 | address = {天津}, 208 | year = {1990}, 209 | } 210 | 211 | @proceedings{rosenthall1963mathematical, 212 | editor = {Rosenthall, Edward M}, 213 | title = {Proceedings of the {Fifth Canadian Mathematical Congress}, {University of Montreal}, 1961}, 214 | address = {Toronto}, 215 | publisher = {University of Toronto Press}, 216 | year = {1963}, 217 | } 218 | -------------------------------------------------------------------------------- /test/test.sh: -------------------------------------------------------------------------------- 1 | test="$(basename $1 .tex)"; 2 | baseline_dir="test/baseline"; 3 | diff_dir="test/diff"; 4 | baseline_path="$baseline_dir/$test.pdf"; 5 | for config in main crossref nomencl bibtex biblatex; do 6 | if [[ "$config" == "main" ]]; then 7 | test_dir="test/testfiles"; 8 | build_dir="build/test"; 9 | else 10 | test_dir="test/testfiles-$config"; 11 | build_dir="build/test-test/config-$config"; 12 | fi 13 | file_path="$test_dir/$test.tex"; 14 | if [ -f "$file_path" ]; then 15 | if [[ "$config" == "main" ]]; then 16 | l3build save --halt-on-error "$test" || exit 1; 17 | else 18 | l3build save --halt-on-error --config "test/config-$config" "$test" || exit 1; 19 | fi 20 | output_path="$build_dir/$test.pdf"; 21 | xdvipdfmx "$build_dir/$test.xdv" -o "$output_path"; 22 | if [ -f "$baseline_path" ]; then 23 | if [ ! -d "$diff_dir" ]; then 24 | mkdir -p "$diff_dir"; 25 | fi 26 | diff_path="$diff_dir/$test-diff.pdf"; 27 | diff-pdf --output-diff "$diff_path" "$baseline_path" "$output_path"; 28 | open "$diff_path"; 29 | else 30 | open "$output_path"; 31 | fi 32 | break; 33 | fi 34 | done 35 | -------------------------------------------------------------------------------- /test/testfiles-biblatex/biblatex-authoryear.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \usepackage[style=ustcthesis-authoryear]{biblatex} 5 | \addbibresource{refs-authoryear.bib} 6 | 7 | \pagestyle{empty} 8 | 9 | \begin{document} 10 | \START 11 | \showoutput 12 | 13 | Citation \cite{baker1995future} test\par 14 | Citation \cite{baker1995future} test\par 15 | Citation \cite{baker1995future} test\par 16 | 17 | 引用\citet{yangzongying1996dianzi}测试\par 18 | 引用\citet[42]{yangzongying1996dianzi}测试\par 19 | 引用\citep{yangzongying1996dianzi}测试\par 20 | 引用\citep[42]{yangzongying1996dianzi}测试\par 21 | 引用\citep[见][]{yangzongying1996dianzi}测试\par 22 | 引用\citep[见][42]{yangzongying1996dianzi}测试\par 23 | 引用\citet*{yangzongying1996dianzi}测试\par 24 | 引用\citep*{yangzongying1996dianzi}测试\par 25 | 26 | Citation \citet{baker1995future} test\par 27 | Citation \citet[42]{baker1995future} test\par 28 | Citation \citep{baker1995future} test\par 29 | Citation \citep[42]{baker1995future} test\par 30 | Citation \citep[see][]{baker1995future} test\par 31 | Citation \citep[see][42]{baker1995future} test\par 32 | Citation \citet*{baker1995future} test\par 33 | Citation \citep*{baker1995future} test\par 34 | 35 | \nocite{*} 36 | 37 | \backmatter 38 | \printbibliography 39 | 40 | \clearpage 41 | \OMIT 42 | \end{document} 43 | -------------------------------------------------------------------------------- /test/testfiles-biblatex/biblatex-bachelor.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=bachelor,fontset=fandol]{ustcthesis} 3 | 4 | \usepackage[style=ustcthesis-bachelor]{biblatex} 5 | \addbibresource{refs-bachelor.bib} 6 | 7 | \pagestyle{empty} 8 | 9 | \begin{document} 10 | \START 11 | \showoutput 12 | 13 | 引用\citet{ustc-bachelor:01}测试\par 14 | 引用\citet[42]{ustc-bachelor:01}测试\par 15 | 引用\citep{ustc-bachelor:01}测试\par 16 | 引用\citep[42]{ustc-bachelor:01}测试\par 17 | 引用\citep[见][]{ustc-bachelor:02}测试\par 18 | 引用\citep[见][42]{ustc-bachelor:02}测试\par 19 | 20 | Citation \citet{ustc-bachelor:03} test\par 21 | Citation \citet[42]{ustc-bachelor:03} test\par 22 | Citation\citep{ustc-bachelor:03} test\par 23 | Citation\citep[42]{ustc-bachelor:03} test\par 24 | Citation \citep[see][]{ustc-bachelor:04} test\par 25 | Citation \citep[see][42]{ustc-bachelor:04} test\par 26 | 27 | 引用\citep{ustc-bachelor:01}测试\par 28 | 引用\citep{ustc-bachelor:01,ustc-bachelor:02}测试\par 29 | 引用\citep{ustc-bachelor:01,ustc-bachelor:02,ustc-bachelor:03}测试\par 30 | 31 | \nocite{*} 32 | 33 | \backmatter 34 | \printbibliography 35 | 36 | \clearpage 37 | \OMIT 38 | \end{document} 39 | -------------------------------------------------------------------------------- /test/testfiles-biblatex/biblatex-inline.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \usepackage[ 5 | bibstyle = ustcthesis-numeric, 6 | citestyle = ustcthesis-inline, 7 | ]{biblatex} 8 | \addbibresource{refs-numerical.bib} 9 | 10 | \pagestyle{empty} 11 | 12 | \begin{document} 13 | \START 14 | \showoutput 15 | 16 | 引用\cite{sunliguang2016jidi}测试\par 17 | 引用\cite[42]{sunliguang2016jidi}测试\par 18 | 引用\cite[见][]{liyongchi2016zhangliang}测试\par 19 | 引用\cite[见][42]{liujingshuang2014shidi}测试\par 20 | 21 | Citation \cite{crawford1995future} test\par 22 | Citation \cite[42]{crawford1995future} test\par 23 | Citation \cite[see][]{ifla1977names} test\par 24 | Citation \cite[see][42]{ifla1977names} test\par 25 | 26 | 引用\cite{sunliguang2016jidi}测试\par 27 | 引用\cite{liyongchi2016zhangliang,liujingshuang2014shidi}测试\par 28 | 引用\cite{crawford1995future,ifla1977names,chenggenwei1999hongshui}测试\par 29 | 30 | \nocite{*} 31 | 32 | \backmatter 33 | \printbibliography 34 | 35 | \clearpage 36 | \OMIT 37 | \end{document} 38 | -------------------------------------------------------------------------------- /test/testfiles-biblatex/biblatex-numeric.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \usepackage[style=ustcthesis-numeric]{biblatex} 5 | \addbibresource{refs-numerical.bib} 6 | 7 | \pagestyle{empty} 8 | 9 | \begin{document} 10 | \START 11 | \showoutput 12 | 13 | 引用\citet{sunliguang2016jidi}测试\par 14 | 引用\citet[42]{sunliguang2016jidi}测试\par 15 | 引用\citep{liyongchi2016zhangliang}测试\par 16 | 引用\citep[42]{liyongchi2016zhangliang}测试\par 17 | 引用\citep[见][]{liujingshuang2014shidi}测试\par 18 | 引用\citep[见][42]{liujingshuang2014shidi}测试\par 19 | 20 | Citation \citet{crawford1995future} test\par 21 | Citation \citet[42]{crawford1995future} test\par 22 | Citation\citep{crawford1995future} test\par 23 | Citation\citep[42]{crawford1995future} test\par 24 | Citation \citep[see][]{ifla1977names} test\par 25 | Citation \citep[see][42]{ifla1977names} test\par 26 | 27 | 引用\citep{sunliguang2016jidi}测试\par 28 | 引用\citep{liyongchi2016zhangliang,liujingshuang2014shidi}测试\par 29 | 引用\citep{crawford1995future,ifla1977names,chenggenwei1999hongshui}测试\par 30 | 31 | \nocite{*} 32 | 33 | \backmatter 34 | \printbibliography 35 | 36 | \clearpage 37 | \OMIT 38 | \end{document} 39 | -------------------------------------------------------------------------------- /test/testfiles-bibtex/bibtex-authoryear.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \usepackage{natbib} 5 | \bibliographystyle{ustcthesis-authoryear} 6 | 7 | \pagestyle{empty} 8 | 9 | \begin{document} 10 | \START 11 | \showoutput 12 | 13 | Citation \cite{baker1995future} test\par 14 | Citation \cite{baker1995future} test\par 15 | Citation \cite{baker1995future} test\par 16 | 17 | 引用\citet{yangzongying1996dianzi}测试\par 18 | 引用\citet[42]{yangzongying1996dianzi}测试\par 19 | 引用\citep{yangzongying1996dianzi}测试\par 20 | 引用\citep[42]{yangzongying1996dianzi}测试\par 21 | 引用\citep[见][]{yangzongying1996dianzi}测试\par 22 | 引用\citep[见][42]{yangzongying1996dianzi}测试\par 23 | 引用\citet*{yangzongying1996dianzi}测试\par 24 | 引用\citep*{yangzongying1996dianzi}测试\par 25 | 26 | Citation \citet{baker1995future} test\par 27 | Citation \citet[42]{baker1995future} test\par 28 | Citation \citep{baker1995future} test\par 29 | Citation \citep[42]{baker1995future} test\par 30 | Citation \citep[see][]{baker1995future} test\par 31 | Citation \citep[see][42]{baker1995future} test\par 32 | Citation \citet*{baker1995future} test\par 33 | Citation \citep*{baker1995future} test\par 34 | 35 | 引用\citealt{yangzongying1996dianzi}测试\par 36 | 引用\citealt*{yangzongying1996dianzi}测试\par 37 | 引用\citealp{yangzongying1996dianzi}测试\par 38 | 引用\citealp*{yangzongying1996dianzi}测试\par 39 | 引用\citealp{yangzongying1996dianzi,liubin2014lixue}测试\par 40 | 引用\citealp[42]{yangzongying1996dianzi}测试\par 41 | 引用\citenum{yangzongying1996dianzi}测试\par 42 | 引用\citetext{priv.\ comm.}测试\par 43 | 44 | Citation \citeauthor{baker1995future} Test\par 45 | Citation \citeauthor*{baker1995future} Test\par 46 | Citation \citeyear{baker1995future} Test\par 47 | Citation \citeyearpar{baker1995future} Test\par 48 | 49 | \nocite{*} 50 | 51 | \backmatter 52 | \bibliography{refs-authoryear} 53 | 54 | \clearpage 55 | \OMIT 56 | \end{document} 57 | -------------------------------------------------------------------------------- /test/testfiles-bibtex/bibtex-bachelor.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=bachelor,fontset=fandol]{ustcthesis} 3 | 4 | \usepackage[sort]{natbib} 5 | \bibliographystyle{ustcthesis-bachelor} 6 | 7 | \pagestyle{empty} 8 | 9 | \begin{document} 10 | \START 11 | \showoutput 12 | 13 | 引用\citet{ustc-bachelor:01}测试\par 14 | 引用\citet[42]{ustc-bachelor:01}测试\par 15 | 引用\citep{ustc-bachelor:01}测试\par 16 | 引用\citep[42]{ustc-bachelor:01}测试\par 17 | 引用\citep[见][]{ustc-bachelor:02}测试\par 18 | 引用\citep[见][42]{ustc-bachelor:02}测试\par 19 | 20 | Citation \citet{ustc-bachelor:03} test\par 21 | Citation \citet[42]{ustc-bachelor:03} test\par 22 | Citation\citep{ustc-bachelor:03} test\par 23 | Citation\citep[42]{ustc-bachelor:03} test\par 24 | Citation \citep[see][]{ustc-bachelor:04} test\par 25 | Citation \citep[see][42]{ustc-bachelor:04} test\par 26 | 27 | 引用\citep{ustc-bachelor:01}测试\par 28 | 引用\citep{ustc-bachelor:01,ustc-bachelor:02}测试\par 29 | 引用\citep{ustc-bachelor:01,ustc-bachelor:02,ustc-bachelor:03}测试\par 30 | 31 | \nocite{*} 32 | 33 | \backmatter 34 | \bibliography{refs-bachelor} 35 | 36 | \clearpage 37 | \OMIT 38 | \end{document} 39 | -------------------------------------------------------------------------------- /test/testfiles-bibtex/bibtex-inline.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \usepackage[sort]{natbib} 5 | \bibliographystyle{ustcthesis-numerical} 6 | 7 | \ustcsetup{ 8 | cite-style = inline, 9 | } 10 | 11 | \pagestyle{empty} 12 | 13 | \begin{document} 14 | \START 15 | \showoutput 16 | 17 | 引用\citet{sunliguang2016jidi}测试\par 18 | 引用\citet[42]{sunliguang2016jidi}测试\par 19 | 引用\citep{liyongchi2016zhangliang}测试\par 20 | 引用\citep[42]{liyongchi2016zhangliang}测试\par 21 | 引用\citep[见][]{liujingshuang2014shidi}测试\par 22 | 引用\citep[见][42]{liujingshuang2014shidi}测试\par 23 | 24 | Citation \citet{crawford1995future} test\par 25 | Citation \citet[42]{crawford1995future} test\par 26 | Citation \citep{crawford1995future} test\par 27 | Citation \citep[42]{crawford1995future} test\par 28 | Citation \citep[see][]{ifla1977names} test\par 29 | Citation \citep[see][42]{ifla1977names} test\par 30 | 31 | 引用\citep{sunliguang2016jidi}测试\par 32 | 引用\citep{liyongchi2016zhangliang,liujingshuang2014shidi}测试\par 33 | 引用\citep{crawford1995future,ifla1977names,chenggenwei1999hongshui}测试\par 34 | 35 | \nocite{*} 36 | 37 | \backmatter 38 | \bibliography{refs-numerical} 39 | 40 | \clearpage 41 | \OMIT 42 | \end{document} 43 | -------------------------------------------------------------------------------- /test/testfiles-bibtex/bibtex-numerical.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \usepackage[sort]{natbib} 5 | \bibliographystyle{ustcthesis-numerical} 6 | 7 | \pagestyle{empty} 8 | 9 | \begin{document} 10 | \START 11 | \showoutput 12 | 13 | 引用\citet{sunliguang2016jidi}测试\par 14 | 引用\citet[42]{sunliguang2016jidi}测试\par 15 | 引用\citep{liyongchi2016zhangliang}测试\par 16 | 引用\citep[42]{liyongchi2016zhangliang}测试\par 17 | 引用\citep[见][]{liujingshuang2014shidi}测试\par 18 | 引用\citep[见][42]{liujingshuang2014shidi}测试\par 19 | 20 | Citation \citet{crawford1995future} test\par 21 | Citation \citet[42]{crawford1995future} test\par 22 | Citation\citep{crawford1995future} test\par 23 | Citation\citep[42]{crawford1995future} test\par 24 | Citation \citep[see][]{ifla1977names} test\par 25 | Citation \citep[see][42]{ifla1977names} test\par 26 | 27 | 引用\citep{sunliguang2016jidi}测试\par 28 | 引用\citep{liyongchi2016zhangliang,liujingshuang2014shidi}测试\par 29 | 引用\citep{crawford1995future,ifla1977names,chenggenwei1999hongshui}测试\par 30 | 31 | \nocite{*} 32 | 33 | \backmatter 34 | \bibliography{refs-numerical} 35 | 36 | \clearpage 37 | \OMIT 38 | \end{document} 39 | -------------------------------------------------------------------------------- /test/testfiles-crossref/equation-parentheses.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \setlength{\parindent}{0pt} 5 | 6 | \begin{document} 7 | \START 8 | \showoutput 9 | 10 | 式(3.1)\par 11 | 12 | \setcounter{chapter}{3} 13 | 14 | \TEST{Chinese fullwidth equation parentheses}{ 15 | 式~\eqref{eq:example}\par 16 | 式 \eqref{eq:example}\par 17 | 式\eqref{eq:example}\par 18 | } 19 | 20 | \ustcsetup{eqn-paren-style = half} 21 | 22 | \TEST{Chinese halfwidth equation parentheses}{ 23 | 式~\eqref{eq:example}\par 24 | 式 \eqref{eq:example}\par 25 | 式\eqref{eq:example}\par 26 | } 27 | 28 | \ustcsetup{eqn-paren-style = full} 29 | 30 | \ustcsetup{language = english} 31 | 32 | \TEST{English equation parentheses}{ 33 | equation~\eqref{eq:example}\par 34 | equation \eqref{eq:example}\par 35 | equation\eqref{eq:example}\par 36 | } 37 | 38 | \clearpage 39 | 40 | \begin{equation} 41 | y = f(x) 42 | \label{eq:example} 43 | \end{equation} 44 | 45 | \OMIT 46 | 47 | \end{document} 48 | -------------------------------------------------------------------------------- /test/testfiles-crossref/equation-parentheses.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: Chinese fullwidth equation parentheses 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: Chinese halfwidth equation parentheses 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: English equation parentheses 13 | ============================================================ 14 | ============================================================ 15 | Completed box being shipped out [1] 16 | \vbox(722.98453+4.11038)x435.04271 17 | .\glue -29.59128 18 | .\vbox(752.5758+4.11038)x417.11752, shifted 17.92519 19 | ..\vbox(13.942+0.0)x417.11752, glue set 0.24084fil 20 | ...\glue 0.0 plus 1.0fil 21 | ...\hbox(13.70116+0.0)x417.11752 22 | ....\special{color push Black} 23 | ....\hbox(13.70116+0.0)x417.11752 24 | .....\hbox(13.70116+0.0)x417.11752 25 | ......\vbox(13.70116+0.0)x417.11752 26 | .......\hbox(9.59077+4.11038)x417.11752 27 | ........\hbox(0.0+0.0)x0.0, glue set - 417.11752fil 28 | .........\vbox(0.0+0.0)x417.11752 29 | ..........\hbox(0.0+0.0)x417.11752, glue set 208.55876fil 30 | ...........\hbox(0.0+0.0)x0.0 31 | ...........\penalty 10000 32 | ...........\glue(\parfillskip) 0.0 plus 1.0fil 33 | ...........\glue(\rightskip) 0.0 plus 1.0fil 34 | .........\glue 0.0 plus 1.0fil minus 1.0fil 35 | ........\glue 0.0 plus 1.0fill 36 | ........\vbox(9.59077+4.11038)x417.11752 37 | .........\hbox(9.59077+4.11038)x417.11752, glue set 208.55876fil 38 | ..........\glue(\leftskip) 0.0 plus 1.0fil 39 | ..........\hbox(0.0+0.0)x0.0 40 | ..........\rule(9.59077+4.11038)x0.0 41 | ..........\penalty 10000 42 | ..........\glue(\parfillskip) 0.0 43 | ..........\glue(\rightskip) 0.0 plus 1.0fil 44 | ........\glue 0.0 plus 1.0fill 45 | ........\hbox(0.0+0.0)x0.0, glue set - 417.11752fil 46 | .........\glue 0.0 plus 1.0fil minus 1.0fil 47 | .........\vbox(0.0+0.0)x417.11752 48 | ..........\hbox(0.0+0.0)x417.11752, glue set 417.11752fil 49 | ...........\glue(\leftskip) 0.0 plus 1.0fil 50 | ...........\hbox(0.0+0.0)x0.0 51 | ...........\penalty 10000 52 | ...........\glue(\parfillskip) 0.0 53 | ...........\glue(\rightskip) 0.0 54 | .......\glue 0.0 55 | .......\rule(0.7528+0.0)x417.11752 56 | .......\glue -0.7528 57 | .....\glue 0.0 plus 1.0fil minus 1.0fil 58 | ....\special{color pop} 59 | ..\glue 15.6491 60 | ..\glue(\lineskip) 0.0 61 | ..\vbox(700.50723+0.0)x417.11752, glue set 507.77803fil 62 | ...\write-{} 63 | ...\glue(\topskip) 2.364 64 | ...\hbox(9.636+2.40898)x417.11752, glue set 373.56282fil 65 | ....\hbox(0.0+0.0)x0.0 66 | ....\TU/FandolSong(0)/m/n/12.045 式 67 | ....\glue 0.0 plus 0.61353 68 | ....\glue 7.63654 minus 6.0225 69 | ....\rule(0.0+0.0)x-7.63654 70 | ....\TU/FandolSong(0)/m/n/12.045 ( 71 | ....\penalty 10000 72 | ....\glue 0.0 73 | ....\TU/texgyretermes(0)/m/n/12.045 3.1 74 | ....\penalty 10000 75 | ....\TU/FandolSong(0)/m/n/12.045 ) 76 | ....\rule(0.0+0.0)x-7.63654 77 | ....\kern 0.00047 78 | ....\kern -0.00047 79 | ....\kern -0.99623 80 | ....\kern 0.99623 81 | ....\penalty 10000 82 | ....\glue(\parfillskip) 0.0 plus 1.0fil 83 | ....\glue(\rightskip) 0.0 84 | ...\glue(\parskip) 0.0 85 | ...\glue(\parskip) 0.0 86 | ...\glue(\baselineskip) 8.03001 87 | ...\hbox(9.636+2.40898)x417.11752, glue set 365.92628fil 88 | ....\hbox(0.0+0.0)x0.0 89 | ....\TU/FandolSong(0)/m/n/12.045 式 90 | ....\kern -0.00017 91 | ....\kern 0.00017 92 | ....\penalty 10000 93 | ....\hbox(9.636+2.40898)x39.14624 94 | .....\kern 0.0 95 | .....\glue 7.63654 minus 6.0225 96 | .....\rule(0.0+0.0)x-7.63654 97 | .....\TU/FandolSong(0)/m/n/12.045 ( 98 | .....\kern 0.00009 99 | .....\kern -0.00009 100 | .....\kern -0.99622 101 | .....\kern 0.99622 102 | .....\penalty 10000 103 | .....\glue 0.0 104 | .....\TU/texgyretermes(0)/m/n/12.045 3.1 105 | .....\kern -0.0002 106 | .....\kern 0.0002 107 | .....\hbox(0.0+0.0)x0.0 108 | .....\penalty 10000 109 | .....\TU/FandolSong(0)/m/n/12.045 ) 110 | .....\rule(0.0+0.0)x-7.63654 111 | .....\kern 0.00047 112 | .....\kern -0.00047 113 | .....\kern -0.99623 114 | .....\kern 0.99623 115 | .....\glue 7.63654 minus 6.0225 116 | ....\penalty 10000 117 | ....\glue(\parfillskip) 0.0 plus 1.0fil 118 | ....\glue(\rightskip) 0.0 119 | ...\glue(\parskip) 0.0 120 | ...\glue(\parskip) 0.0 121 | ...\glue(\baselineskip) 8.03001 122 | ...\hbox(9.636+2.40898)x417.11752, glue set 365.92628fil 123 | ....\hbox(0.0+0.0)x0.0 124 | ....\TU/FandolSong(0)/m/n/12.045 式 125 | ....\kern -0.00018 126 | ....\kern 0.00018 127 | ....\hbox(9.636+2.40898)x39.14624 128 | .....\kern 0.0 129 | .....\glue 7.63654 minus 6.0225 130 | .....\rule(0.0+0.0)x-7.63654 131 | .....\TU/FandolSong(0)/m/n/12.045 ( 132 | .....\kern 0.00009 133 | .....\kern -0.00009 134 | .....\kern -0.99622 135 | .....\kern 0.99622 136 | .....\penalty 10000 137 | .....\glue 0.0 138 | .....\TU/texgyretermes(0)/m/n/12.045 3.1 139 | .....\kern -0.0002 140 | .....\kern 0.0002 141 | .....\hbox(0.0+0.0)x0.0 142 | .....\penalty 10000 143 | .....\TU/FandolSong(0)/m/n/12.045 ) 144 | .....\rule(0.0+0.0)x-7.63654 145 | .....\kern 0.00047 146 | .....\kern -0.00047 147 | .....\kern -0.99623 148 | .....\kern 0.99623 149 | .....\glue 7.63654 minus 6.0225 150 | ....\penalty 10000 151 | ....\glue(\parfillskip) 0.0 plus 1.0fil 152 | ....\glue(\rightskip) 0.0 153 | ...\glue(\parskip) 0.0 154 | ...\glue(\parskip) 0.0 155 | ...\glue(\baselineskip) 8.03001 156 | ...\hbox(9.636+2.40898)x417.11752, glue set 365.92628fil 157 | ....\hbox(0.0+0.0)x0.0 158 | ....\TU/FandolSong(0)/m/n/12.045 式 159 | ....\kern 0.0 160 | ....\kern -0.00017 161 | ....\kern 0.00017 162 | ....\hbox(9.636+2.40898)x39.14624 163 | .....\kern 0.0 164 | .....\glue 7.63654 minus 6.0225 165 | .....\rule(0.0+0.0)x-7.63654 166 | .....\TU/FandolSong(0)/m/n/12.045 ( 167 | .....\kern 0.00009 168 | .....\kern -0.00009 169 | .....\kern -0.99622 170 | .....\kern 0.99622 171 | .....\penalty 10000 172 | .....\glue 0.0 173 | .....\TU/texgyretermes(0)/m/n/12.045 3.1 174 | .....\kern -0.0002 175 | .....\kern 0.0002 176 | .....\hbox(0.0+0.0)x0.0 177 | .....\penalty 10000 178 | .....\TU/FandolSong(0)/m/n/12.045 ) 179 | .....\rule(0.0+0.0)x-7.63654 180 | .....\kern 0.00047 181 | .....\kern -0.00047 182 | .....\kern -0.99623 183 | .....\kern 0.99623 184 | .....\glue 7.63654 minus 6.0225 185 | ....\penalty 10000 186 | ....\glue(\parfillskip) 0.0 plus 1.0fil 187 | ....\glue(\rightskip) 0.0 188 | ...\glue(\parskip) 0.0 189 | ...\glue(\parskip) 0.0 190 | ...\glue(\baselineskip) 8.36728 191 | ...\hbox(9.29874+2.13194)x417.11752, glue set 378.98306fil 192 | ....\hbox(0.0+0.0)x0.0 193 | ....\TU/FandolSong(0)/m/n/12.045 式 194 | ....\kern -0.00017 195 | ....\kern 0.00017 196 | ....\penalty 10000 197 | ....\glue 3.01125 plus 1.50562 minus 1.00374 198 | ....\hbox(8.14243+2.13194)x23.07822 199 | .....\TU/texgyretermes(0)/m/n/12.045 (3.1 200 | .....\kern -0.0002 201 | .....\kern 0.0002 202 | .....\hbox(0.0+0.0)x0.0 203 | .....\TU/texgyretermes(0)/m/n/12.045 ) 204 | .....\kern -0.0002 205 | .....\kern 0.0002 206 | ....\penalty 10000 207 | ....\glue(\parfillskip) 0.0 plus 1.0fil 208 | ....\glue(\rightskip) 0.0 209 | ...\glue(\parskip) 0.0 210 | ...\glue(\parskip) 0.0 211 | ...\glue(\baselineskip) 8.64432 212 | ...\hbox(9.29874+2.13194)x417.11752, glue set 378.98306fil 213 | ....\hbox(0.0+0.0)x0.0 214 | ....\TU/FandolSong(0)/m/n/12.045 式 215 | ....\kern -0.00018 216 | ....\kern 0.00018 217 | ....\glue 3.01125 plus 1.50562 minus 1.00374 218 | ....\hbox(8.14243+2.13194)x23.07822 219 | .....\TU/texgyretermes(0)/m/n/12.045 (3.1 220 | .....\kern -0.0002 221 | .....\kern 0.0002 222 | .....\hbox(0.0+0.0)x0.0 223 | .....\TU/texgyretermes(0)/m/n/12.045 ) 224 | .....\kern -0.0002 225 | .....\kern 0.0002 226 | ....\penalty 10000 227 | ....\glue(\parfillskip) 0.0 plus 1.0fil 228 | ....\glue(\rightskip) 0.0 229 | ...\glue(\parskip) 0.0 230 | ...\glue(\parskip) 0.0 231 | ...\glue(\baselineskip) 8.64432 232 | ...\hbox(9.29874+2.13194)x417.11752, glue set 381.99431fil 233 | ....\hbox(0.0+0.0)x0.0 234 | ....\TU/FandolSong(0)/m/n/12.045 式 235 | ....\kern 0.0 236 | ....\kern -0.00017 237 | ....\kern 0.00017 238 | ....\hbox(8.14243+2.13194)x23.07822 239 | .....\TU/texgyretermes(0)/m/n/12.045 (3.1 240 | .....\kern -0.0002 241 | .....\kern 0.0002 242 | .....\hbox(0.0+0.0)x0.0 243 | .....\TU/texgyretermes(0)/m/n/12.045 ) 244 | .....\kern -0.0002 245 | .....\kern 0.0002 246 | ....\penalty 10000 247 | ....\glue(\parfillskip) 0.0 plus 1.0fil 248 | ....\glue(\rightskip) 0.0 249 | ...\glue(\parskip) 0.0 250 | ...\glue(\parskip) 0.0 251 | ...\glue(\baselineskip) 9.80063 252 | ...\hbox(8.14243+2.61375)x417.11752, glue set 349.66554fil 253 | ....\hbox(0.0+0.0)x0.0 254 | ....\TU/texgyretermes(0)/m/n/12.045 equation 255 | ....\kern -0.0002 256 | ....\kern 0.0002 257 | ....\penalty 10000 258 | ....\glue 3.01125 plus 1.50562 minus 1.00374 259 | ....\hbox(8.14243+2.13194)x23.07822 260 | .....\TU/texgyretermes(0)/m/n/12.045 (3.1 261 | .....\kern -0.0002 262 | .....\kern 0.0002 263 | .....\hbox(0.0+0.0)x0.0 264 | .....\TU/texgyretermes(0)/m/n/12.045 ) 265 | .....\kern -0.0002 266 | .....\kern 0.0002 267 | ....\penalty 10000 268 | ....\glue(\parfillskip) 0.0 plus 1.0fil 269 | ....\glue(\rightskip) 0.0 270 | ...\glue(\parskip) 0.0 271 | ...\glue(\parskip) 0.0 272 | ...\glue(\baselineskip) 9.31882 273 | ...\hbox(8.14243+2.61375)x417.11752, glue set 349.66554fil 274 | ....\hbox(0.0+0.0)x0.0 275 | ....\TU/texgyretermes(0)/m/n/12.045 equation 276 | ....\kern 0.0 277 | ....\glue 3.01125 plus 1.50562 minus 1.00374 278 | ....\hbox(8.14243+2.13194)x23.07822 279 | .....\TU/texgyretermes(0)/m/n/12.045 (3.1 280 | .....\kern -0.0002 281 | .....\kern 0.0002 282 | .....\hbox(0.0+0.0)x0.0 283 | .....\TU/texgyretermes(0)/m/n/12.045 ) 284 | .....\kern -0.0002 285 | .....\kern 0.0002 286 | ....\penalty 10000 287 | ....\glue(\parfillskip) 0.0 plus 1.0fil 288 | ....\glue(\rightskip) 0.0 289 | ...\glue(\parskip) 0.0 290 | ...\glue(\parskip) 0.0 291 | ...\glue(\baselineskip) 9.31882 292 | ...\hbox(8.14243+2.61375)x417.11752, glue set 352.67679fil 293 | ....\hbox(0.0+0.0)x0.0 294 | ....\TU/texgyretermes(0)/m/n/12.045 equation 295 | ....\kern 0.0 296 | ....\kern -0.0002 297 | ....\kern 0.0002 298 | ....\hbox(8.14243+2.13194)x23.07822 299 | .....\TU/texgyretermes(0)/m/n/12.045 (3.1 300 | .....\kern -0.0002 301 | .....\kern 0.0002 302 | .....\hbox(0.0+0.0)x0.0 303 | .....\TU/texgyretermes(0)/m/n/12.045 ) 304 | .....\kern -0.0002 305 | .....\kern 0.0002 306 | ....\penalty 10000 307 | ....\glue(\parfillskip) 0.0 plus 1.0fil 308 | ....\glue(\rightskip) 0.0 309 | ...\glue -2.61375 310 | ...\glue 0.0 plus 1.0fil 311 | ...\glue 0.0 312 | ...\glue 0.0 plus 0.0001fil 313 | ..\glue(\baselineskip) 6.86415 314 | ..\hbox(15.61333+4.11038)x417.11752 315 | ...\special{color push Black} 316 | ...\hbox(15.61333+4.11038)x417.11752 317 | ....\hbox(15.61333+4.11038)x417.11752 318 | .....\vbox(15.61333+4.11038)x417.11752 319 | ......\rule(0.0+0.0)x417.11752 320 | ......\glue 6.02255 321 | ......\hbox(9.59077+4.11038)x417.11752 322 | .......\hbox(0.0+0.0)x0.0, glue set - 417.11752fil 323 | ........\vbox(0.0+0.0)x417.11752 324 | .........\hbox(0.0+0.0)x417.11752, glue set 208.55876fil 325 | ..........\hbox(0.0+0.0)x0.0 326 | ..........\penalty 10000 327 | ..........\glue(\parfillskip) 0.0 plus 1.0fil 328 | ..........\glue(\rightskip) 0.0 plus 1.0fil 329 | ........\glue 0.0 plus 1.0fil minus 1.0fil 330 | .......\glue 0.0 plus 1.0fill 331 | .......\vbox(9.59077+4.11038)x417.11752 332 | ........\hbox(9.59077+4.11038)x417.11752, glue set 205.92392fil 333 | .........\glue(\leftskip) 0.0 plus 1.0fil 334 | .........\hbox(0.0+0.0)x0.0 335 | .........\TU/texgyretermes(0)/m/n/10.53937 1 336 | .........\kern -0.0002 337 | .........\kern 0.0002 338 | .........\rule(9.59077+4.11038)x0.0 339 | .........\penalty 10000 340 | .........\glue(\parfillskip) 0.0 341 | .........\glue(\rightskip) 0.0 plus 1.0fil 342 | .......\glue 0.0 plus 1.0fill 343 | .......\hbox(0.0+0.0)x0.0, glue set - 417.11752fil 344 | ........\glue 0.0 plus 1.0fil minus 1.0fil 345 | ........\vbox(0.0+0.0)x417.11752 346 | .........\hbox(0.0+0.0)x417.11752, glue set 417.11752fil 347 | ..........\glue(\leftskip) 0.0 plus 1.0fil 348 | ..........\hbox(0.0+0.0)x0.0 349 | ..........\penalty 10000 350 | ..........\glue(\parfillskip) 0.0 351 | ..........\glue(\rightskip) 0.0 352 | ....\glue 0.0 plus 1.0fil minus 1.0fil 353 | ...\special{color pop} 354 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(1)/m/n' will be 355 | (Font) scaled to size 9.03375pt on input line .... 356 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(1)/m/n' will be 357 | (Font) scaled to size 7.227pt on input line .... 358 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(2)/m/n' will be 359 | (Font) scaled to size 12.0461pt on input line .... 360 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(2)/m/n' will be 361 | (Font) scaled to size 9.03458pt on input line .... 362 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(2)/m/n' will be 363 | (Font) scaled to size 7.22766pt on input line .... 364 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(3)/m/n' will be 365 | (Font) scaled to size 12.0437pt on input line .... 366 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(3)/m/n' will be 367 | (Font) scaled to size 9.03278pt on input line .... 368 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(3)/m/n' will be 369 | (Font) scaled to size 7.22623pt on input line .... 370 | LaTeX Font Info: Font shape `TU/STIXTwoMath-Regular(0)/m/n' will be 371 | (Font) scaled to size 8.59444pt on input line .... 372 | LaTeX Font Info: Font shape `TU/STIXTwoMath-Regular(0)/m/n' will be 373 | (Font) scaled to size 6.87555pt on input line .... 374 | -------------------------------------------------------------------------------- /test/testfiles-crossref/main-bachelor-arabic.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=bachelor,section-style=arabic,fontset=fandol]{ustcthesis} 3 | 4 | \usepackage{booktabs} 5 | 6 | \begin{document} 7 | \START 8 | \showoutput 9 | 10 | \include{chapters} 11 | 12 | \clearpage 13 | \OMIT 14 | \end{document} 15 | -------------------------------------------------------------------------------- /test/testfiles-crossref/main-bachelor-english.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=bachelor,language=english,fontset=fandol]{ustcthesis} 3 | 4 | \usepackage{booktabs} 5 | 6 | \begin{document} 7 | \START 8 | \showoutput 9 | 10 | \include{chapters} 11 | 12 | \clearpage 13 | \OMIT 14 | \end{document} 15 | -------------------------------------------------------------------------------- /test/testfiles-crossref/main-bachelor.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=bachelor,fontset=fandol]{ustcthesis} 3 | 4 | \usepackage{booktabs} 5 | 6 | \begin{document} 7 | \START 8 | \showoutput 9 | 10 | \include{chapters} 11 | 12 | \clearpage 13 | \OMIT 14 | \end{document} 15 | -------------------------------------------------------------------------------- /test/testfiles-crossref/main-english.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,language=english,fontset=fandol]{ustcthesis} 3 | 4 | \usepackage{booktabs} 5 | 6 | \begin{document} 7 | \START 8 | \showoutput 9 | 10 | \include{chapters} 11 | 12 | \clearpage 13 | \OMIT 14 | \end{document} 15 | -------------------------------------------------------------------------------- /test/testfiles-crossref/main-lof.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \begin{document} 5 | \START 6 | \showoutput 7 | 8 | \listoffigures 9 | 10 | \clearpage 11 | \OMIT 12 | 13 | \mainmatter 14 | \chapter{Foo} 15 | 16 | \begin{figure} 17 | \caption{Figure foo} 18 | \end{figure} 19 | 20 | \begin{figure} 21 | \caption{Figure A long long long long long long long long long caption} 22 | \end{figure} 23 | 24 | \begin{figure} 25 | \caption{Figure foo} 26 | \end{figure} 27 | 28 | 29 | 30 | \chapter{Bar} 31 | 32 | \begin{figure} 33 | \caption{Figure foo} 34 | \end{figure} 35 | 36 | \begin{figure} 37 | \caption{Figure bar} 38 | \end{figure} 39 | 40 | \begin{figure} 41 | \caption{Figure foo} 42 | \end{figure} 43 | 44 | \end{document} 45 | -------------------------------------------------------------------------------- /test/testfiles-crossref/main-lof.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Package fontspec Info: 4 | (fontspec) Font family 'FandolHei(0)' created for font 'FandolHei' with options [Extension={.otf},UprightFont={*-Regular},BoldFont={*-Bold}]. 5 | (fontspec) 6 | (fontspec) This font family consists of the following NFSS series/shapes: 7 | (fontspec) 8 | (fontspec) - 'normal' (m/n) with NFSS spec.: <->"[FandolHei-Regular.otf]/OT:language=dflt;" 9 | (fontspec) - 'bold' (b/n) with NFSS spec.: <->"[FandolHei-Bold.otf]/OT:language=dflt;" 10 | (main-lof.lof) 11 | \tf@lof=\write... 12 | Completed box being shipped out [1] 13 | \vbox(722.98453+4.11038)x435.04271 14 | .\glue -29.59128 15 | .\vbox(752.5758+4.11038)x417.11752, shifted 17.92519 16 | ..\vbox(13.942+0.0)x417.11752, glue set 0.24084fil 17 | ...\glue 0.0 plus 1.0fil 18 | ...\hbox(13.70116+0.0)x417.11752 19 | ....\special{color push Black} 20 | ....\hbox(13.70116+0.0)x417.11752 21 | .....\hbox(13.70116+0.0)x417.11752 22 | ......\vbox(13.70116+0.0)x417.11752 23 | .......\hbox(9.59077+4.11038)x417.11752 24 | ........\hbox(0.0+0.0)x0.0, glue set - 417.11752fil 25 | .........\vbox(0.0+0.0)x417.11752 26 | ..........\hbox(0.0+0.0)x417.11752, glue set 208.55876fil 27 | ...........\hbox(0.0+0.0)x0.0 28 | ...........\penalty 10000 29 | ...........\glue(\parfillskip) 0.0 plus 1.0fil 30 | ...........\glue(\rightskip) 0.0 plus 1.0fil 31 | .........\glue 0.0 plus 1.0fil minus 1.0fil 32 | ........\glue 0.0 plus 1.0fill 33 | ........\vbox(9.59077+4.11038)x417.11752 34 | .........\hbox(9.59077+4.11038)x417.11752, glue set 187.48003fil 35 | ..........\glue(\leftskip) 0.0 plus 1.0fil 36 | ..........\hbox(0.0+0.0)x0.0 37 | ..........\TU/FandolSong(0)/m/n/10.53937 插 38 | ..........\glue 0.0 plus 0.44923 39 | ..........\TU/FandolSong(0)/m/n/10.53937 图 40 | ..........\glue 0.0 plus 0.44923 41 | ..........\TU/FandolSong(0)/m/n/10.53937 清 42 | ..........\glue 0.0 plus 0.44923 43 | ..........\TU/FandolSong(0)/m/n/10.53937 单 44 | ..........\kern -0.00017 45 | ..........\kern 0.00017 46 | ..........\rule(9.59077+4.11038)x0.0 47 | ..........\penalty 10000 48 | ..........\glue(\parfillskip) 0.0 49 | ..........\glue(\rightskip) 0.0 plus 1.0fil 50 | ........\glue 0.0 plus 1.0fill 51 | ........\hbox(0.0+0.0)x0.0, glue set - 417.11752fil 52 | .........\glue 0.0 plus 1.0fil minus 1.0fil 53 | .........\vbox(0.0+0.0)x417.11752 54 | ..........\hbox(0.0+0.0)x417.11752, glue set 417.11752fil 55 | ...........\glue(\leftskip) 0.0 plus 1.0fil 56 | ...........\hbox(0.0+0.0)x0.0 57 | ...........\penalty 10000 58 | ...........\glue(\parfillskip) 0.0 59 | ...........\glue(\rightskip) 0.0 60 | .......\glue 0.0 61 | .......\rule(0.7528+0.0)x417.11752 62 | .......\glue -0.7528 63 | .....\glue 0.0 plus 1.0fil minus 1.0fil 64 | ....\special{color pop} 65 | ..\glue 15.6491 66 | ..\glue(\lineskip) 0.0 67 | ..\vbox(700.50723+0.0)x417.11752, glue set 511.00464fil 68 | ...\write-{} 69 | ...\write-{} 70 | ...\marks1{\__mark_id:n {1}插图清单} 71 | ...\marks2{\__mark_id:n {2}} 72 | ...\mark{{插图清单}{}} 73 | ...\write-{} 74 | ...\glue(\topskip) 12.0 75 | ...\rule(0.0+0.0)x* 76 | ...\penalty 10000 77 | ...\glue 7.02625 78 | ...\glue 0.0 79 | ...\glue(\parskip) 0.0 80 | ...\glue(\parskip) 0.0 81 | ...\glue(\baselineskip) 8.49573 82 | ...\hbox(12.38226+2.9229)x417.11752, glue set 176.43877fil 83 | ....\glue(\leftskip) 0.0 plus 1.0fil 84 | ....\TU/FandolHei(0)/m/n/16.06 插 85 | ....\glue 0.0 plus 1.37729 86 | ....\TU/FandolHei(0)/m/n/16.06 图 87 | ....\glue 0.0 plus 1.37729 88 | ....\TU/FandolHei(0)/m/n/16.06 清 89 | ....\glue 0.0 plus 1.37729 90 | ....\TU/FandolHei(0)/m/n/16.06 单 91 | ....\kern -0.00017 92 | ....\kern 0.00017 93 | ....\penalty 10000 94 | ....\glue(\parfillskip) 0.0 95 | ....\glue(\rightskip) 0.0 plus 1.0fil 96 | ...\penalty 10000 97 | ...\glue 19.07124 98 | ...\glue 0.0 plus 0.1 99 | ...\penalty 10000 100 | ...\glue(\parskip) 0.0 101 | ...\glue(\parskip) 0.0 102 | ...\glue(\baselineskip) 3.09967 103 | ...\hbox(14.05243+6.02255)x417.11752, glue set 316.07205fill 104 | ....\glue(\leftskip) 42.15749 105 | ....\hbox(0.0+0.0)x0.0 106 | ....\rule(14.05243+6.02255)x0.0 107 | ....\hbox(8.84103+1.73447)x0.0, glue set - 42.15749fil 108 | .....\glue 0.0 plus 1.0fil minus 1.0fil 109 | .....\hbox(8.84103+1.73447)x42.15749 110 | ......\special{color push Black} 111 | ......\TU/FandolSong(0)/m/n/12.045 图 112 | ......\kern -0.00017 113 | ......\kern 0.00017 114 | ......\penalty 10000 115 | ......\glue 3.01125 plus 1.50562 minus 1.00374 116 | ......\TU/texgyretermes(0)/m/n/12.045 1.1 117 | ......\kern -0.0002 118 | ......\kern 0.0002 119 | ......\glue 12.045 120 | ......\special{color pop} 121 | ....\TU/texgyretermes(0)/m/n/12.045 Figure 122 | ....\glue 3.01125 plus 1.50562 minus 1.00374 123 | ....\TU/texgyretermes(0)/m/n/12.045 foo 124 | ....\kern -0.0002 125 | ....\kern 0.0002 126 | ....\rule(14.05243+6.02255)x0.0 127 | ....\kern 0.0 128 | ....\glue 2.00749 129 | ....\glue -4.015 130 | ....\glue 3.01125 131 | ....\leaders 0.0 plus 1.0fill 132 | .....\hbox(1.2045+0.13248)x4.015, glue set 1.00375fil 133 | ......\glue 0.0 plus 1.0fil minus 1.0fil 134 | ......\hbox(1.2045+0.13248)x3.01125 135 | .......\special{color push Black} 136 | .......\TU/texgyretermes(0)/m/n/12.045 . 137 | .......\kern -0.0002 138 | .......\kern 0.0002 139 | .......\special{color pop} 140 | ....\kern 0.0 141 | ....\glue 2.00749 142 | ....\TU/texgyretermes(0)/m/n/12.045 1 143 | ....\kern -0.0002 144 | ....\kern 0.0002 145 | ....\penalty 10000 146 | ....\glue(\parfillskip) 0.0 plus 1.0fil 147 | ....\glue(\rightskip) 0.0 148 | ...\penalty 10000 149 | ...\penalty 0 150 | ...\glue 0.0 plus 0.1 151 | ...\penalty 10000 152 | ...\glue(\parskip) 0.0 153 | ...\glue(\parskip) 0.0 154 | ...\glue(\baselineskip) 0.00002 155 | ...\hbox(14.05243+6.02255)x417.11752, glue set 64.63281fill 156 | ....\glue(\leftskip) 42.15749 157 | ....\hbox(0.0+0.0)x0.0 158 | ....\rule(14.05243+6.02255)x0.0 159 | ....\hbox(8.84103+1.73447)x0.0, glue set - 42.15749fil 160 | .....\glue 0.0 plus 1.0fil minus 1.0fil 161 | .....\hbox(8.84103+1.73447)x42.15749 162 | ......\special{color push Black} 163 | ......\TU/FandolSong(0)/m/n/12.045 图 164 | ......\kern -0.00017 165 | ......\kern 0.00017 166 | ......\penalty 10000 167 | ......\glue 3.01125 plus 1.50562 minus 1.00374 168 | ......\TU/texgyretermes(0)/m/n/12.045 1.2 169 | ......\kern -0.0002 170 | ......\kern 0.0002 171 | ......\glue 12.045 172 | ......\special{color pop} 173 | ....\TU/texgyretermes(0)/m/n/12.045 Figure 174 | ....\glue 3.01125 plus 1.50562 minus 1.00374 175 | ....\TU/texgyretermes(0)/m/n/12.045 A 176 | ....\glue 3.01125 plus 1.5041 minus 1.00473 177 | ....\TU/texgyretermes(0)/m/n/12.045 long 178 | ....\glue 3.01125 plus 1.50562 minus 1.00374 179 | ....\TU/texgyretermes(0)/m/n/12.045 long 180 | ....\glue 3.01125 plus 1.50562 minus 1.00374 181 | ....\TU/texgyretermes(0)/m/n/12.045 long 182 | ....\glue 3.01125 plus 1.50562 minus 1.00374 183 | ....\TU/texgyretermes(0)/m/n/12.045 long 184 | ....\glue 3.01125 plus 1.50562 minus 1.00374 185 | ....\TU/texgyretermes(0)/m/n/12.045 long 186 | ....\glue 3.01125 plus 1.50562 minus 1.00374 187 | ....\TU/texgyretermes(0)/m/n/12.045 long 188 | ....\glue 3.01125 plus 1.50562 minus 1.00374 189 | ....\TU/texgyretermes(0)/m/n/12.045 long 190 | ....\glue 3.01125 plus 1.50562 minus 1.00374 191 | ....\TU/texgyretermes(0)/m/n/12.045 long 192 | ....\glue 3.01125 plus 1.50562 minus 1.00374 193 | ....\TU/texgyretermes(0)/m/n/12.045 long 194 | ....\glue 3.01125 plus 1.50562 minus 1.00374 195 | ....\TU/texgyretermes(0)/m/n/12.045 caption 196 | ....\kern -0.0002 197 | ....\kern 0.0002 198 | ....\rule(14.05243+6.02255)x0.0 199 | ....\kern 0.0 200 | ....\glue 2.00749 201 | ....\glue -4.015 202 | ....\glue 3.01125 203 | ....\leaders 0.0 plus 1.0fill 204 | .....\hbox(1.2045+0.13248)x4.015, glue set 1.00375fil 205 | ......\glue 0.0 plus 1.0fil minus 1.0fil 206 | ......\hbox(1.2045+0.13248)x3.01125 207 | .......\special{color push Black} 208 | .......\TU/texgyretermes(0)/m/n/12.045 . 209 | .......\kern -0.0002 210 | .......\kern 0.0002 211 | .......\special{color pop} 212 | ....\kern 0.0 213 | ....\glue 2.00749 214 | ....\TU/texgyretermes(0)/m/n/12.045 1 215 | ....\kern -0.0002 216 | ....\kern 0.0002 217 | ....\penalty 10000 218 | ....\glue(\parfillskip) 0.0 plus 1.0fil 219 | ....\glue(\rightskip) 0.0 220 | ...\penalty 10000 221 | ...\penalty 0 222 | ...\glue 0.0 plus 0.1 223 | ...\penalty 10000 224 | ...\glue(\parskip) 0.0 225 | ...\glue(\parskip) 0.0 226 | ...\glue(\baselineskip) 0.00002 227 | ...\hbox(14.05243+6.02255)x417.11752, glue set 316.07205fill 228 | ....\glue(\leftskip) 42.15749 229 | ....\hbox(0.0+0.0)x0.0 230 | ....\rule(14.05243+6.02255)x0.0 231 | ....\hbox(8.84103+1.73447)x0.0, glue set - 42.15749fil 232 | .....\glue 0.0 plus 1.0fil minus 1.0fil 233 | .....\hbox(8.84103+1.73447)x42.15749 234 | ......\special{color push Black} 235 | ......\TU/FandolSong(0)/m/n/12.045 图 236 | ......\kern -0.00017 237 | ......\kern 0.00017 238 | ......\penalty 10000 239 | ......\glue 3.01125 plus 1.50562 minus 1.00374 240 | ......\TU/texgyretermes(0)/m/n/12.045 1.3 241 | ......\kern -0.0002 242 | ......\kern 0.0002 243 | ......\glue 12.045 244 | ......\special{color pop} 245 | ....\TU/texgyretermes(0)/m/n/12.045 Figure 246 | ....\glue 3.01125 plus 1.50562 minus 1.00374 247 | ....\TU/texgyretermes(0)/m/n/12.045 foo 248 | ....\kern -0.0002 249 | ....\kern 0.0002 250 | ....\rule(14.05243+6.02255)x0.0 251 | ....\kern 0.0 252 | ....\glue 2.00749 253 | ....\glue -4.015 254 | ....\glue 3.01125 255 | ....\leaders 0.0 plus 1.0fill 256 | .....\hbox(1.2045+0.13248)x4.015, glue set 1.00375fil 257 | ......\glue 0.0 plus 1.0fil minus 1.0fil 258 | ......\hbox(1.2045+0.13248)x3.01125 259 | .......\special{color push Black} 260 | .......\TU/texgyretermes(0)/m/n/12.045 . 261 | .......\kern -0.0002 262 | .......\kern 0.0002 263 | .......\special{color pop} 264 | ....\kern 0.0 265 | ....\glue 2.00749 266 | ....\TU/texgyretermes(0)/m/n/12.045 1 267 | ....\kern -0.0002 268 | ....\kern 0.0002 269 | ....\penalty 10000 270 | ....\glue(\parfillskip) 0.0 plus 1.0fil 271 | ....\glue(\rightskip) 0.0 272 | ...\penalty 10000 273 | ...\glue 10.0 274 | ...\glue -16.0 275 | ...\penalty 0 276 | ...\glue 6.0 277 | ...\glue 10.0 278 | ...\glue 0.0 plus 0.1 279 | ...\penalty 10000 280 | ...\glue(\parskip) 0.0 281 | ...\glue(\parskip) 0.0 282 | ...\glue(\baselineskip) 0.00002 283 | ...\hbox(14.05243+6.02255)x417.11752, glue set 316.07205fill 284 | ....\glue(\leftskip) 42.15749 285 | ....\hbox(0.0+0.0)x0.0 286 | ....\rule(14.05243+6.02255)x0.0 287 | ....\hbox(8.84103+1.73447)x0.0, glue set - 42.15749fil 288 | .....\glue 0.0 plus 1.0fil minus 1.0fil 289 | .....\hbox(8.84103+1.73447)x42.15749 290 | ......\special{color push Black} 291 | ......\TU/FandolSong(0)/m/n/12.045 图 292 | ......\kern -0.00017 293 | ......\kern 0.00017 294 | ......\penalty 10000 295 | ......\glue 3.01125 plus 1.50562 minus 1.00374 296 | ......\TU/texgyretermes(0)/m/n/12.045 2.1 297 | ......\kern -0.0002 298 | ......\kern 0.0002 299 | ......\glue 12.045 300 | ......\special{color pop} 301 | ....\TU/texgyretermes(0)/m/n/12.045 Figure 302 | ....\glue 3.01125 plus 1.50562 minus 1.00374 303 | ....\TU/texgyretermes(0)/m/n/12.045 foo 304 | ....\kern -0.0002 305 | ....\kern 0.0002 306 | ....\rule(14.05243+6.02255)x0.0 307 | ....\kern 0.0 308 | ....\glue 2.00749 309 | ....\glue -4.015 310 | ....\glue 3.01125 311 | ....\leaders 0.0 plus 1.0fill 312 | .....\hbox(1.2045+0.13248)x4.015, glue set 1.00375fil 313 | ......\glue 0.0 plus 1.0fil minus 1.0fil 314 | ......\hbox(1.2045+0.13248)x3.01125 315 | .......\special{color push Black} 316 | .......\TU/texgyretermes(0)/m/n/12.045 . 317 | .......\kern -0.0002 318 | .......\kern 0.0002 319 | .......\special{color pop} 320 | ....\kern 0.0 321 | ....\glue 2.00749 322 | ....\TU/texgyretermes(0)/m/n/12.045 2 323 | ....\kern -0.0002 324 | ....\kern 0.0002 325 | ....\penalty 10000 326 | ....\glue(\parfillskip) 0.0 plus 1.0fil 327 | ....\glue(\rightskip) 0.0 328 | ...\penalty 10000 329 | ...\penalty 0 330 | ...\glue 0.0 plus 0.1 331 | ...\penalty 10000 332 | ...\glue(\parskip) 0.0 333 | ...\glue(\parskip) 0.0 334 | ...\glue(\baselineskip) 0.00002 335 | ...\hbox(14.05243+6.02255)x417.11752, glue set 316.26477fill 336 | ....\glue(\leftskip) 42.15749 337 | ....\hbox(0.0+0.0)x0.0 338 | ....\rule(14.05243+6.02255)x0.0 339 | ....\hbox(8.84103+1.73447)x0.0, glue set - 42.15749fil 340 | .....\glue 0.0 plus 1.0fil minus 1.0fil 341 | .....\hbox(8.84103+1.73447)x42.15749 342 | ......\special{color push Black} 343 | ......\TU/FandolSong(0)/m/n/12.045 图 344 | ......\kern -0.00017 345 | ......\kern 0.00017 346 | ......\penalty 10000 347 | ......\glue 3.01125 plus 1.50562 minus 1.00374 348 | ......\TU/texgyretermes(0)/m/n/12.045 2.2 349 | ......\kern -0.0002 350 | ......\kern 0.0002 351 | ......\glue 12.045 352 | ......\special{color pop} 353 | ....\TU/texgyretermes(0)/m/n/12.045 Figure 354 | ....\glue 3.01125 plus 1.50562 minus 1.00374 355 | ....\TU/texgyretermes(0)/m/n/12.045 bar 356 | ....\kern -0.0002 357 | ....\kern 0.0002 358 | ....\rule(14.05243+6.02255)x0.0 359 | ....\kern 0.0 360 | ....\glue 2.00749 361 | ....\glue -4.015 362 | ....\glue 3.01125 363 | ....\leaders 0.0 plus 1.0fill 364 | .....\hbox(1.2045+0.13248)x4.015, glue set 1.00375fil 365 | ......\glue 0.0 plus 1.0fil minus 1.0fil 366 | ......\hbox(1.2045+0.13248)x3.01125 367 | .......\special{color push Black} 368 | .......\TU/texgyretermes(0)/m/n/12.045 . 369 | .......\kern -0.0002 370 | .......\kern 0.0002 371 | .......\special{color pop} 372 | ....\kern 0.0 373 | ....\glue 2.00749 374 | ....\TU/texgyretermes(0)/m/n/12.045 2 375 | ....\kern -0.0002 376 | ....\kern 0.0002 377 | ....\penalty 10000 378 | ....\glue(\parfillskip) 0.0 plus 1.0fil 379 | ....\glue(\rightskip) 0.0 380 | ...\penalty 10000 381 | ...\penalty 0 382 | ...\glue 0.0 plus 0.1 383 | ...\penalty 10000 384 | ...\glue(\parskip) 0.0 385 | ...\glue(\parskip) 0.0 386 | ...\glue(\baselineskip) 0.00002 387 | ...\hbox(14.05243+6.02255)x417.11752, glue set 316.07205fill 388 | ....\glue(\leftskip) 42.15749 389 | ....\hbox(0.0+0.0)x0.0 390 | ....\rule(14.05243+6.02255)x0.0 391 | ....\hbox(8.84103+1.73447)x0.0, glue set - 42.15749fil 392 | .....\glue 0.0 plus 1.0fil minus 1.0fil 393 | .....\hbox(8.84103+1.73447)x42.15749 394 | ......\special{color push Black} 395 | ......\TU/FandolSong(0)/m/n/12.045 图 396 | ......\kern -0.00017 397 | ......\kern 0.00017 398 | ......\penalty 10000 399 | ......\glue 3.01125 plus 1.50562 minus 1.00374 400 | ......\TU/texgyretermes(0)/m/n/12.045 2.3 401 | ......\kern -0.0002 402 | ......\kern 0.0002 403 | ......\glue 12.045 404 | ......\special{color pop} 405 | ....\TU/texgyretermes(0)/m/n/12.045 Figure 406 | ....\glue 3.01125 plus 1.50562 minus 1.00374 407 | ....\TU/texgyretermes(0)/m/n/12.045 foo 408 | ....\kern -0.0002 409 | ....\kern 0.0002 410 | ....\rule(14.05243+6.02255)x0.0 411 | ....\kern 0.0 412 | ....\glue 2.00749 413 | ....\glue -4.015 414 | ....\glue 3.01125 415 | ....\leaders 0.0 plus 1.0fill 416 | .....\hbox(1.2045+0.13248)x4.015, glue set 1.00375fil 417 | ......\glue 0.0 plus 1.0fil minus 1.0fil 418 | ......\hbox(1.2045+0.13248)x3.01125 419 | .......\special{color push Black} 420 | .......\TU/texgyretermes(0)/m/n/12.045 . 421 | .......\kern -0.0002 422 | .......\kern 0.0002 423 | .......\special{color pop} 424 | ....\kern 0.0 425 | ....\glue 2.00749 426 | ....\TU/texgyretermes(0)/m/n/12.045 2 427 | ....\kern -0.0002 428 | ....\kern 0.0002 429 | ....\penalty 10000 430 | ....\glue(\parfillskip) 0.0 plus 1.0fil 431 | ....\glue(\rightskip) 0.0 432 | ...\penalty 10000 433 | ...\glue -6.0 434 | ...\glue 0.0 plus 1.0fil 435 | ...\glue 0.0 436 | ...\glue 0.0 plus 0.0001fil 437 | ..\glue(\baselineskip) 6.86415 438 | ..\hbox(15.61333+4.11038)x417.11752 439 | ...\special{color push Black} 440 | ...\hbox(15.61333+4.11038)x417.11752 441 | ....\hbox(15.61333+4.11038)x417.11752 442 | .....\vbox(15.61333+4.11038)x417.11752 443 | ......\rule(0.0+0.0)x417.11752 444 | ......\glue 6.02255 445 | ......\hbox(9.59077+4.11038)x417.11752 446 | .......\hbox(0.0+0.0)x0.0, glue set - 417.11752fil 447 | ........\vbox(0.0+0.0)x417.11752 448 | .........\hbox(0.0+0.0)x417.11752, glue set 208.55876fil 449 | ..........\hbox(0.0+0.0)x0.0 450 | ..........\penalty 10000 451 | ..........\glue(\parfillskip) 0.0 plus 1.0fil 452 | ..........\glue(\rightskip) 0.0 plus 1.0fil 453 | ........\glue 0.0 plus 1.0fil minus 1.0fil 454 | .......\glue 0.0 plus 1.0fill 455 | .......\vbox(9.59077+4.11038)x417.11752 456 | ........\hbox(9.59077+4.11038)x417.11752, glue set 205.92392fil 457 | .........\glue(\leftskip) 0.0 plus 1.0fil 458 | .........\hbox(0.0+0.0)x0.0 459 | .........\TU/texgyretermes(0)/m/n/10.53937 1 460 | .........\kern -0.0002 461 | .........\kern 0.0002 462 | .........\rule(9.59077+4.11038)x0.0 463 | .........\penalty 10000 464 | .........\glue(\parfillskip) 0.0 465 | .........\glue(\rightskip) 0.0 plus 1.0fil 466 | .......\glue 0.0 plus 1.0fill 467 | .......\hbox(0.0+0.0)x0.0, glue set - 417.11752fil 468 | ........\glue 0.0 plus 1.0fil minus 1.0fil 469 | ........\vbox(0.0+0.0)x417.11752 470 | .........\hbox(0.0+0.0)x417.11752, glue set 417.11752fil 471 | ..........\glue(\leftskip) 0.0 plus 1.0fil 472 | ..........\hbox(0.0+0.0)x0.0 473 | ..........\penalty 10000 474 | ..........\glue(\parfillskip) 0.0 475 | ..........\glue(\rightskip) 0.0 476 | ....\glue 0.0 plus 1.0fil minus 1.0fil 477 | ...\special{color pop} 478 | -------------------------------------------------------------------------------- /test/testfiles-crossref/main-loft.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \begin{document} 5 | \START 6 | \showoutput 7 | 8 | \listoffiguresandtables 9 | 10 | \clearpage 11 | \OMIT 12 | 13 | \mainmatter 14 | \chapter{Foo} 15 | 16 | \begin{figure} 17 | \caption{Figure foo} 18 | \end{figure} 19 | 20 | \begin{figure} 21 | \caption{Figure A long long long long long long long long long caption} 22 | \end{figure} 23 | 24 | \begin{figure} 25 | \caption{Figure foo} 26 | \end{figure} 27 | 28 | \begin{table} 29 | \caption{Table foo} 30 | \end{table} 31 | 32 | \begin{table} 33 | \caption{Table bar} 34 | \end{table} 35 | 36 | \begin{table} 37 | \caption{Table foo} 38 | \end{table} 39 | 40 | 41 | 42 | \chapter{Bar} 43 | 44 | \begin{figure} 45 | \caption{Figure foo} 46 | \end{figure} 47 | 48 | \begin{figure} 49 | \caption{Figure bar} 50 | \end{figure} 51 | 52 | \begin{figure} 53 | \caption{Figure foo} 54 | \end{figure} 55 | 56 | \begin{table} 57 | \caption{Table foo} 58 | \end{table} 59 | 60 | \begin{table} 61 | \caption{Table bar} 62 | \end{table} 63 | 64 | \begin{table} 65 | \caption{Table foo} 66 | \end{table} 67 | 68 | \end{document} 69 | -------------------------------------------------------------------------------- /test/testfiles-crossref/main-lot.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \begin{document} 5 | \START 6 | \showoutput 7 | 8 | \listoftables 9 | 10 | \clearpage 11 | \OMIT 12 | 13 | \mainmatter 14 | \chapter{Foo} 15 | 16 | \begin{table} 17 | \caption{Table foo} 18 | \end{table} 19 | 20 | \begin{table} 21 | \caption{Table bar} 22 | \end{table} 23 | 24 | \begin{table} 25 | \caption{Table foo} 26 | \end{table} 27 | 28 | 29 | 30 | \chapter{Bar} 31 | 32 | \begin{table} 33 | \caption{Table foo} 34 | \end{table} 35 | 36 | \begin{table} 37 | \caption{Table bar} 38 | \end{table} 39 | 40 | \begin{table} 41 | \caption{Table foo} 42 | \end{table} 43 | 44 | \end{document} 45 | -------------------------------------------------------------------------------- /test/testfiles-crossref/main-lot.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | Package fontspec Info: 4 | (fontspec) Font family 'FandolHei(0)' created for font 'FandolHei' with options [Extension={.otf},UprightFont={*-Regular},BoldFont={*-Bold}]. 5 | (fontspec) 6 | (fontspec) This font family consists of the following NFSS series/shapes: 7 | (fontspec) 8 | (fontspec) - 'normal' (m/n) with NFSS spec.: <->"[FandolHei-Regular.otf]/OT:language=dflt;" 9 | (fontspec) - 'bold' (b/n) with NFSS spec.: <->"[FandolHei-Bold.otf]/OT:language=dflt;" 10 | (main-lot.lot) 11 | \tf@lot=\write... 12 | Completed box being shipped out [1] 13 | \vbox(722.98453+4.11038)x435.04271 14 | .\glue -29.59128 15 | .\vbox(752.5758+4.11038)x417.11752, shifted 17.92519 16 | ..\vbox(13.942+0.0)x417.11752, glue set 0.24084fil 17 | ...\glue 0.0 plus 1.0fil 18 | ...\hbox(13.70116+0.0)x417.11752 19 | ....\special{color push Black} 20 | ....\hbox(13.70116+0.0)x417.11752 21 | .....\hbox(13.70116+0.0)x417.11752 22 | ......\vbox(13.70116+0.0)x417.11752 23 | .......\hbox(9.59077+4.11038)x417.11752 24 | ........\hbox(0.0+0.0)x0.0, glue set - 417.11752fil 25 | .........\vbox(0.0+0.0)x417.11752 26 | ..........\hbox(0.0+0.0)x417.11752, glue set 208.55876fil 27 | ...........\hbox(0.0+0.0)x0.0 28 | ...........\penalty 10000 29 | ...........\glue(\parfillskip) 0.0 plus 1.0fil 30 | ...........\glue(\rightskip) 0.0 plus 1.0fil 31 | .........\glue 0.0 plus 1.0fil minus 1.0fil 32 | ........\glue 0.0 plus 1.0fill 33 | ........\vbox(9.59077+4.11038)x417.11752 34 | .........\hbox(9.59077+4.11038)x417.11752, glue set 187.48003fil 35 | ..........\glue(\leftskip) 0.0 plus 1.0fil 36 | ..........\hbox(0.0+0.0)x0.0 37 | ..........\TU/FandolSong(0)/m/n/10.53937 附 38 | ..........\glue 0.0 plus 0.44923 39 | ..........\TU/FandolSong(0)/m/n/10.53937 表 40 | ..........\glue 0.0 plus 0.44923 41 | ..........\TU/FandolSong(0)/m/n/10.53937 清 42 | ..........\glue 0.0 plus 0.44923 43 | ..........\TU/FandolSong(0)/m/n/10.53937 单 44 | ..........\kern -0.00017 45 | ..........\kern 0.00017 46 | ..........\rule(9.59077+4.11038)x0.0 47 | ..........\penalty 10000 48 | ..........\glue(\parfillskip) 0.0 49 | ..........\glue(\rightskip) 0.0 plus 1.0fil 50 | ........\glue 0.0 plus 1.0fill 51 | ........\hbox(0.0+0.0)x0.0, glue set - 417.11752fil 52 | .........\glue 0.0 plus 1.0fil minus 1.0fil 53 | .........\vbox(0.0+0.0)x417.11752 54 | ..........\hbox(0.0+0.0)x417.11752, glue set 417.11752fil 55 | ...........\glue(\leftskip) 0.0 plus 1.0fil 56 | ...........\hbox(0.0+0.0)x0.0 57 | ...........\penalty 10000 58 | ...........\glue(\parfillskip) 0.0 59 | ...........\glue(\rightskip) 0.0 60 | .......\glue 0.0 61 | .......\rule(0.7528+0.0)x417.11752 62 | .......\glue -0.7528 63 | .....\glue 0.0 plus 1.0fil minus 1.0fil 64 | ....\special{color pop} 65 | ..\glue 15.6491 66 | ..\glue(\lineskip) 0.0 67 | ..\vbox(700.50723+0.0)x417.11752, glue set 511.00464fil 68 | ...\write-{} 69 | ...\write-{} 70 | ...\marks1{\__mark_id:n {1}附表清单} 71 | ...\marks2{\__mark_id:n {2}} 72 | ...\mark{{附表清单}{}} 73 | ...\write-{} 74 | ...\glue(\topskip) 12.0 75 | ...\rule(0.0+0.0)x* 76 | ...\penalty 10000 77 | ...\glue 7.02625 78 | ...\glue 0.0 79 | ...\glue(\parskip) 0.0 80 | ...\glue(\parskip) 0.0 81 | ...\glue(\baselineskip) 8.49573 82 | ...\hbox(12.38226+2.9229)x417.11752, glue set 176.43877fil 83 | ....\glue(\leftskip) 0.0 plus 1.0fil 84 | ....\TU/FandolHei(0)/m/n/16.06 附 85 | ....\glue 0.0 plus 1.37729 86 | ....\TU/FandolHei(0)/m/n/16.06 表 87 | ....\glue 0.0 plus 1.37729 88 | ....\TU/FandolHei(0)/m/n/16.06 清 89 | ....\glue 0.0 plus 1.37729 90 | ....\TU/FandolHei(0)/m/n/16.06 单 91 | ....\kern -0.00017 92 | ....\kern 0.00017 93 | ....\penalty 10000 94 | ....\glue(\parfillskip) 0.0 95 | ....\glue(\rightskip) 0.0 plus 1.0fil 96 | ...\penalty 10000 97 | ...\glue 19.07124 98 | ...\glue 0.0 plus 0.1 99 | ...\penalty 10000 100 | ...\glue(\parskip) 0.0 101 | ...\glue(\parskip) 0.0 102 | ...\glue(\baselineskip) 3.09967 103 | ...\hbox(14.05243+6.02255)x417.11752, glue set 320.81778fill 104 | ....\glue(\leftskip) 42.15749 105 | ....\hbox(0.0+0.0)x0.0 106 | ....\rule(14.05243+6.02255)x0.0 107 | ....\hbox(9.31079+2.09581)x0.0, glue set - 42.15749fil 108 | .....\glue 0.0 plus 1.0fil minus 1.0fil 109 | .....\hbox(9.31079+2.09581)x42.15749 110 | ......\special{color push Black} 111 | ......\TU/FandolSong(0)/m/n/12.045 表 112 | ......\kern -0.00017 113 | ......\kern 0.00017 114 | ......\penalty 10000 115 | ......\glue 3.01125 plus 1.50562 minus 1.00374 116 | ......\TU/texgyretermes(0)/m/n/12.045 1.1 117 | ......\kern -0.0002 118 | ......\kern 0.0002 119 | ......\glue 12.045 120 | ......\special{color pop} 121 | ....\TU/texgyretermes(0)/m/n/12.045 Table 122 | ....\glue 3.01125 plus 1.50562 minus 1.00374 123 | ....\TU/texgyretermes(0)/m/n/12.045 foo 124 | ....\kern -0.0002 125 | ....\kern 0.0002 126 | ....\rule(14.05243+6.02255)x0.0 127 | ....\kern 0.0 128 | ....\glue 2.00749 129 | ....\glue -4.015 130 | ....\glue 3.01125 131 | ....\leaders 0.0 plus 1.0fill 132 | .....\hbox(1.2045+0.13248)x4.015, glue set 1.00375fil 133 | ......\glue 0.0 plus 1.0fil minus 1.0fil 134 | ......\hbox(1.2045+0.13248)x3.01125 135 | .......\special{color push Black} 136 | .......\TU/texgyretermes(0)/m/n/12.045 . 137 | .......\kern -0.0002 138 | .......\kern 0.0002 139 | .......\special{color pop} 140 | ....\kern 0.0 141 | ....\glue 2.00749 142 | ....\TU/texgyretermes(0)/m/n/12.045 1 143 | ....\kern -0.0002 144 | ....\kern 0.0002 145 | ....\penalty 10000 146 | ....\glue(\parfillskip) 0.0 plus 1.0fil 147 | ....\glue(\rightskip) 0.0 148 | ...\penalty 10000 149 | ...\penalty 0 150 | ...\glue 0.0 plus 0.1 151 | ...\penalty 10000 152 | ...\glue(\parskip) 0.0 153 | ...\glue(\parskip) 0.0 154 | ...\glue(\baselineskip) 0.00002 155 | ...\hbox(14.05243+6.02255)x417.11752, glue set 321.0105fill 156 | ....\glue(\leftskip) 42.15749 157 | ....\hbox(0.0+0.0)x0.0 158 | ....\rule(14.05243+6.02255)x0.0 159 | ....\hbox(9.31079+2.09581)x0.0, glue set - 42.15749fil 160 | .....\glue 0.0 plus 1.0fil minus 1.0fil 161 | .....\hbox(9.31079+2.09581)x42.15749 162 | ......\special{color push Black} 163 | ......\TU/FandolSong(0)/m/n/12.045 表 164 | ......\kern -0.00017 165 | ......\kern 0.00017 166 | ......\penalty 10000 167 | ......\glue 3.01125 plus 1.50562 minus 1.00374 168 | ......\TU/texgyretermes(0)/m/n/12.045 1.2 169 | ......\kern -0.0002 170 | ......\kern 0.0002 171 | ......\glue 12.045 172 | ......\special{color pop} 173 | ....\TU/texgyretermes(0)/m/n/12.045 Table 174 | ....\glue 3.01125 plus 1.50562 minus 1.00374 175 | ....\TU/texgyretermes(0)/m/n/12.045 bar 176 | ....\kern -0.0002 177 | ....\kern 0.0002 178 | ....\rule(14.05243+6.02255)x0.0 179 | ....\kern 0.0 180 | ....\glue 2.00749 181 | ....\glue -4.015 182 | ....\glue 3.01125 183 | ....\leaders 0.0 plus 1.0fill 184 | .....\hbox(1.2045+0.13248)x4.015, glue set 1.00375fil 185 | ......\glue 0.0 plus 1.0fil minus 1.0fil 186 | ......\hbox(1.2045+0.13248)x3.01125 187 | .......\special{color push Black} 188 | .......\TU/texgyretermes(0)/m/n/12.045 . 189 | .......\kern -0.0002 190 | .......\kern 0.0002 191 | .......\special{color pop} 192 | ....\kern 0.0 193 | ....\glue 2.00749 194 | ....\TU/texgyretermes(0)/m/n/12.045 1 195 | ....\kern -0.0002 196 | ....\kern 0.0002 197 | ....\penalty 10000 198 | ....\glue(\parfillskip) 0.0 plus 1.0fil 199 | ....\glue(\rightskip) 0.0 200 | ...\penalty 10000 201 | ...\penalty 0 202 | ...\glue 0.0 plus 0.1 203 | ...\penalty 10000 204 | ...\glue(\parskip) 0.0 205 | ...\glue(\parskip) 0.0 206 | ...\glue(\baselineskip) 0.00002 207 | ...\hbox(14.05243+6.02255)x417.11752, glue set 320.81778fill 208 | ....\glue(\leftskip) 42.15749 209 | ....\hbox(0.0+0.0)x0.0 210 | ....\rule(14.05243+6.02255)x0.0 211 | ....\hbox(9.31079+2.09581)x0.0, glue set - 42.15749fil 212 | .....\glue 0.0 plus 1.0fil minus 1.0fil 213 | .....\hbox(9.31079+2.09581)x42.15749 214 | ......\special{color push Black} 215 | ......\TU/FandolSong(0)/m/n/12.045 表 216 | ......\kern -0.00017 217 | ......\kern 0.00017 218 | ......\penalty 10000 219 | ......\glue 3.01125 plus 1.50562 minus 1.00374 220 | ......\TU/texgyretermes(0)/m/n/12.045 1.3 221 | ......\kern -0.0002 222 | ......\kern 0.0002 223 | ......\glue 12.045 224 | ......\special{color pop} 225 | ....\TU/texgyretermes(0)/m/n/12.045 Table 226 | ....\glue 3.01125 plus 1.50562 minus 1.00374 227 | ....\TU/texgyretermes(0)/m/n/12.045 foo 228 | ....\kern -0.0002 229 | ....\kern 0.0002 230 | ....\rule(14.05243+6.02255)x0.0 231 | ....\kern 0.0 232 | ....\glue 2.00749 233 | ....\glue -4.015 234 | ....\glue 3.01125 235 | ....\leaders 0.0 plus 1.0fill 236 | .....\hbox(1.2045+0.13248)x4.015, glue set 1.00375fil 237 | ......\glue 0.0 plus 1.0fil minus 1.0fil 238 | ......\hbox(1.2045+0.13248)x3.01125 239 | .......\special{color push Black} 240 | .......\TU/texgyretermes(0)/m/n/12.045 . 241 | .......\kern -0.0002 242 | .......\kern 0.0002 243 | .......\special{color pop} 244 | ....\kern 0.0 245 | ....\glue 2.00749 246 | ....\TU/texgyretermes(0)/m/n/12.045 1 247 | ....\kern -0.0002 248 | ....\kern 0.0002 249 | ....\penalty 10000 250 | ....\glue(\parfillskip) 0.0 plus 1.0fil 251 | ....\glue(\rightskip) 0.0 252 | ...\penalty 10000 253 | ...\glue 10.0 254 | ...\glue -16.0 255 | ...\penalty 0 256 | ...\glue 6.0 257 | ...\glue 10.0 258 | ...\glue 0.0 plus 0.1 259 | ...\penalty 10000 260 | ...\glue(\parskip) 0.0 261 | ...\glue(\parskip) 0.0 262 | ...\glue(\baselineskip) 0.00002 263 | ...\hbox(14.05243+6.02255)x417.11752, glue set 320.81778fill 264 | ....\glue(\leftskip) 42.15749 265 | ....\hbox(0.0+0.0)x0.0 266 | ....\rule(14.05243+6.02255)x0.0 267 | ....\hbox(9.31079+2.09581)x0.0, glue set - 42.15749fil 268 | .....\glue 0.0 plus 1.0fil minus 1.0fil 269 | .....\hbox(9.31079+2.09581)x42.15749 270 | ......\special{color push Black} 271 | ......\TU/FandolSong(0)/m/n/12.045 表 272 | ......\kern -0.00017 273 | ......\kern 0.00017 274 | ......\penalty 10000 275 | ......\glue 3.01125 plus 1.50562 minus 1.00374 276 | ......\TU/texgyretermes(0)/m/n/12.045 2.1 277 | ......\kern -0.0002 278 | ......\kern 0.0002 279 | ......\glue 12.045 280 | ......\special{color pop} 281 | ....\TU/texgyretermes(0)/m/n/12.045 Table 282 | ....\glue 3.01125 plus 1.50562 minus 1.00374 283 | ....\TU/texgyretermes(0)/m/n/12.045 foo 284 | ....\kern -0.0002 285 | ....\kern 0.0002 286 | ....\rule(14.05243+6.02255)x0.0 287 | ....\kern 0.0 288 | ....\glue 2.00749 289 | ....\glue -4.015 290 | ....\glue 3.01125 291 | ....\leaders 0.0 plus 1.0fill 292 | .....\hbox(1.2045+0.13248)x4.015, glue set 1.00375fil 293 | ......\glue 0.0 plus 1.0fil minus 1.0fil 294 | ......\hbox(1.2045+0.13248)x3.01125 295 | .......\special{color push Black} 296 | .......\TU/texgyretermes(0)/m/n/12.045 . 297 | .......\kern -0.0002 298 | .......\kern 0.0002 299 | .......\special{color pop} 300 | ....\kern 0.0 301 | ....\glue 2.00749 302 | ....\TU/texgyretermes(0)/m/n/12.045 2 303 | ....\kern -0.0002 304 | ....\kern 0.0002 305 | ....\penalty 10000 306 | ....\glue(\parfillskip) 0.0 plus 1.0fil 307 | ....\glue(\rightskip) 0.0 308 | ...\penalty 10000 309 | ...\penalty 0 310 | ...\glue 0.0 plus 0.1 311 | ...\penalty 10000 312 | ...\glue(\parskip) 0.0 313 | ...\glue(\parskip) 0.0 314 | ...\glue(\baselineskip) 0.00002 315 | ...\hbox(14.05243+6.02255)x417.11752, glue set 321.0105fill 316 | ....\glue(\leftskip) 42.15749 317 | ....\hbox(0.0+0.0)x0.0 318 | ....\rule(14.05243+6.02255)x0.0 319 | ....\hbox(9.31079+2.09581)x0.0, glue set - 42.15749fil 320 | .....\glue 0.0 plus 1.0fil minus 1.0fil 321 | .....\hbox(9.31079+2.09581)x42.15749 322 | ......\special{color push Black} 323 | ......\TU/FandolSong(0)/m/n/12.045 表 324 | ......\kern -0.00017 325 | ......\kern 0.00017 326 | ......\penalty 10000 327 | ......\glue 3.01125 plus 1.50562 minus 1.00374 328 | ......\TU/texgyretermes(0)/m/n/12.045 2.2 329 | ......\kern -0.0002 330 | ......\kern 0.0002 331 | ......\glue 12.045 332 | ......\special{color pop} 333 | ....\TU/texgyretermes(0)/m/n/12.045 Table 334 | ....\glue 3.01125 plus 1.50562 minus 1.00374 335 | ....\TU/texgyretermes(0)/m/n/12.045 bar 336 | ....\kern -0.0002 337 | ....\kern 0.0002 338 | ....\rule(14.05243+6.02255)x0.0 339 | ....\kern 0.0 340 | ....\glue 2.00749 341 | ....\glue -4.015 342 | ....\glue 3.01125 343 | ....\leaders 0.0 plus 1.0fill 344 | .....\hbox(1.2045+0.13248)x4.015, glue set 1.00375fil 345 | ......\glue 0.0 plus 1.0fil minus 1.0fil 346 | ......\hbox(1.2045+0.13248)x3.01125 347 | .......\special{color push Black} 348 | .......\TU/texgyretermes(0)/m/n/12.045 . 349 | .......\kern -0.0002 350 | .......\kern 0.0002 351 | .......\special{color pop} 352 | ....\kern 0.0 353 | ....\glue 2.00749 354 | ....\TU/texgyretermes(0)/m/n/12.045 2 355 | ....\kern -0.0002 356 | ....\kern 0.0002 357 | ....\penalty 10000 358 | ....\glue(\parfillskip) 0.0 plus 1.0fil 359 | ....\glue(\rightskip) 0.0 360 | ...\penalty 10000 361 | ...\penalty 0 362 | ...\glue 0.0 plus 0.1 363 | ...\penalty 10000 364 | ...\glue(\parskip) 0.0 365 | ...\glue(\parskip) 0.0 366 | ...\glue(\baselineskip) 0.00002 367 | ...\hbox(14.05243+6.02255)x417.11752, glue set 320.81778fill 368 | ....\glue(\leftskip) 42.15749 369 | ....\hbox(0.0+0.0)x0.0 370 | ....\rule(14.05243+6.02255)x0.0 371 | ....\hbox(9.31079+2.09581)x0.0, glue set - 42.15749fil 372 | .....\glue 0.0 plus 1.0fil minus 1.0fil 373 | .....\hbox(9.31079+2.09581)x42.15749 374 | ......\special{color push Black} 375 | ......\TU/FandolSong(0)/m/n/12.045 表 376 | ......\kern -0.00017 377 | ......\kern 0.00017 378 | ......\penalty 10000 379 | ......\glue 3.01125 plus 1.50562 minus 1.00374 380 | ......\TU/texgyretermes(0)/m/n/12.045 2.3 381 | ......\kern -0.0002 382 | ......\kern 0.0002 383 | ......\glue 12.045 384 | ......\special{color pop} 385 | ....\TU/texgyretermes(0)/m/n/12.045 Table 386 | ....\glue 3.01125 plus 1.50562 minus 1.00374 387 | ....\TU/texgyretermes(0)/m/n/12.045 foo 388 | ....\kern -0.0002 389 | ....\kern 0.0002 390 | ....\rule(14.05243+6.02255)x0.0 391 | ....\kern 0.0 392 | ....\glue 2.00749 393 | ....\glue -4.015 394 | ....\glue 3.01125 395 | ....\leaders 0.0 plus 1.0fill 396 | .....\hbox(1.2045+0.13248)x4.015, glue set 1.00375fil 397 | ......\glue 0.0 plus 1.0fil minus 1.0fil 398 | ......\hbox(1.2045+0.13248)x3.01125 399 | .......\special{color push Black} 400 | .......\TU/texgyretermes(0)/m/n/12.045 . 401 | .......\kern -0.0002 402 | .......\kern 0.0002 403 | .......\special{color pop} 404 | ....\kern 0.0 405 | ....\glue 2.00749 406 | ....\TU/texgyretermes(0)/m/n/12.045 2 407 | ....\kern -0.0002 408 | ....\kern 0.0002 409 | ....\penalty 10000 410 | ....\glue(\parfillskip) 0.0 plus 1.0fil 411 | ....\glue(\rightskip) 0.0 412 | ...\penalty 10000 413 | ...\glue -6.0 414 | ...\glue 0.0 plus 1.0fil 415 | ...\glue 0.0 416 | ...\glue 0.0 plus 0.0001fil 417 | ..\glue(\baselineskip) 6.86415 418 | ..\hbox(15.61333+4.11038)x417.11752 419 | ...\special{color push Black} 420 | ...\hbox(15.61333+4.11038)x417.11752 421 | ....\hbox(15.61333+4.11038)x417.11752 422 | .....\vbox(15.61333+4.11038)x417.11752 423 | ......\rule(0.0+0.0)x417.11752 424 | ......\glue 6.02255 425 | ......\hbox(9.59077+4.11038)x417.11752 426 | .......\hbox(0.0+0.0)x0.0, glue set - 417.11752fil 427 | ........\vbox(0.0+0.0)x417.11752 428 | .........\hbox(0.0+0.0)x417.11752, glue set 208.55876fil 429 | ..........\hbox(0.0+0.0)x0.0 430 | ..........\penalty 10000 431 | ..........\glue(\parfillskip) 0.0 plus 1.0fil 432 | ..........\glue(\rightskip) 0.0 plus 1.0fil 433 | ........\glue 0.0 plus 1.0fil minus 1.0fil 434 | .......\glue 0.0 plus 1.0fill 435 | .......\vbox(9.59077+4.11038)x417.11752 436 | ........\hbox(9.59077+4.11038)x417.11752, glue set 205.92392fil 437 | .........\glue(\leftskip) 0.0 plus 1.0fil 438 | .........\hbox(0.0+0.0)x0.0 439 | .........\TU/texgyretermes(0)/m/n/10.53937 1 440 | .........\kern -0.0002 441 | .........\kern 0.0002 442 | .........\rule(9.59077+4.11038)x0.0 443 | .........\penalty 10000 444 | .........\glue(\parfillskip) 0.0 445 | .........\glue(\rightskip) 0.0 plus 1.0fil 446 | .......\glue 0.0 plus 1.0fill 447 | .......\hbox(0.0+0.0)x0.0, glue set - 417.11752fil 448 | ........\glue 0.0 plus 1.0fil minus 1.0fil 449 | ........\vbox(0.0+0.0)x417.11752 450 | .........\hbox(0.0+0.0)x417.11752, glue set 417.11752fil 451 | ..........\glue(\leftskip) 0.0 plus 1.0fil 452 | ..........\hbox(0.0+0.0)x0.0 453 | ..........\penalty 10000 454 | ..........\glue(\parfillskip) 0.0 455 | ..........\glue(\rightskip) 0.0 456 | ....\glue 0.0 plus 1.0fil minus 1.0fil 457 | ...\special{color pop} 458 | -------------------------------------------------------------------------------- /test/testfiles-crossref/main.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \usepackage{booktabs} 5 | 6 | \begin{document} 7 | \START 8 | \showoutput 9 | 10 | \include{chapters} 11 | 12 | \clearpage 13 | \OMIT 14 | \end{document} 15 | -------------------------------------------------------------------------------- /test/testfiles-crossref/package-bicaption.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test.tex} 2 | \documentclass[degree=doctor, fontset=fandol]{ustcthesis} 3 | 4 | \usepackage{bicaption} 5 | 6 | \pagestyle{empty} 7 | 8 | \begin{document} 9 | \START 10 | \showoutput 11 | 12 | \frontmatter 13 | 14 | \listoffigures 15 | 16 | \mainmatter 17 | 18 | 图题置于图的下方,图名末尾不可加标点。 19 | 20 | \begin{figure}[h] 21 | \centering 22 | \includegraphics{example-image.pdf} 23 | \bicaption{图题置于图的“下方”}{If there is an English caption, place it “below” the Chinese caption} 24 | \label{fig:example} 25 | \end{figure} 26 | 27 | 若有英文图题,另起一行置于中文图题下方。 28 | 29 | \clearpage 30 | \OMIT 31 | \end{document} 32 | -------------------------------------------------------------------------------- /test/testfiles-nomencl/package-nomencl.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \usepackage{nomencl} 5 | \makenomenclature 6 | 7 | \begin{document} 8 | \START 9 | \showoutput 10 | 11 | \frontmatter 12 | \printnomenclature 13 | 14 | \mainmatter 15 | \chapter{Main matter} 16 | Lorem ipsum. 17 | \nomenclature{$a$}{The number of angels per unit area} 18 | \nomenclature{$N$}{The number of angels per needle point} 19 | \nomenclature{$A$}{The area of the needle point} 20 | \nomenclature{$\sigma$}{The total mass of angels per unit area} 21 | \nomenclature{$m$}{The mass of one angel} 22 | 23 | \clearpage 24 | \OMIT 25 | \end{document} 26 | -------------------------------------------------------------------------------- /test/testfiles/package-siunitx.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \usepackage{siunitx} 5 | 6 | \pagestyle{empty} 7 | 8 | \newcommand\test{\par 9 | \num{12345.67890} \par 10 | \num{.3e45} \par 11 | \unit{kg.m.s^{-1}} 12 | % https://github.com/sjtug/SJTUThesis/issues/439 13 | \unit{\kelvin\per\square\um\degreeCelsius\per\ohm} \par 14 | $\unit{\kelvin\per\square\um\degreeCelsius\per\ohm}$ \par 15 | \qty{1.23}{J.mol^{-1}.K^{-1}} 16 | \numlist{10;20} \par 17 | \numlist{10;20;30} \par 18 | \qtylist{0.13;0.67}{\milli\metre} \par 19 | \qtylist{0.13;0.67;0.80}{\milli\metre} \par 20 | \numrange{10}{20} \par 21 | \qtyrange{10}{20}{\degreeCelsius} \par 22 | } 23 | 24 | 25 | \begin{document} 26 | \START 27 | \showoutput 28 | 29 | \ustcsetup{language=chinese} 30 | \noindent 中文: 31 | \test 32 | 33 | \ustcsetup{language=english} 34 | \noindent English: 35 | \test 36 | 37 | \clearpage 38 | \OMIT 39 | \end{document} 40 | -------------------------------------------------------------------------------- /test/testfiles/statement-secret.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \input{info} 5 | \ustcsetup{ 6 | secret-level = {秘密}, 7 | secret-level* = {Secret}, 8 | secret-year = {20}, 9 | } 10 | 11 | \begin{document} 12 | \START 13 | \showoutput 14 | 15 | \copyrightpage 16 | 17 | \clearpage 18 | \OMIT 19 | \end{document} 20 | -------------------------------------------------------------------------------- /test/testfiles/statement.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \input{info} 5 | 6 | \begin{document} 7 | \START 8 | \showoutput 9 | 10 | \copyrightpage 11 | 12 | \clearpage 13 | \OMIT 14 | \end{document} 15 | -------------------------------------------------------------------------------- /test/testfiles/title-page-bachelor.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=bachelor,fontset=fandol]{ustcthesis} 3 | 4 | \ustcsetup{ 5 | title = {论文题目第一行\\论文题目第二行}, 6 | author = {王小明}, 7 | speciality = {数学与应用数学}, 8 | supervisor = {李华~教授}, 9 | student-id = {PB19000000}, % 学号,本科生需要填写 10 | date = {2023-05-01}, % 默认为今日 11 | } 12 | 13 | \begin{document} 14 | \START 15 | \showoutput 16 | 17 | \maketitle 18 | 19 | \clearpage 20 | \OMIT 21 | \end{document} 22 | -------------------------------------------------------------------------------- /test/testfiles/title-page-bachelor.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | File: figures/ustc-name-stxingkai.pdf Graphic file (type pdf) 4 | 5 | Package fontspec Info: 6 | (fontspec) Font family 'FandolHei(0)' created for font 'FandolHei' with options [Extension={.otf},UprightFont={*-Regular},BoldFont={*-Bold}]. 7 | (fontspec) 8 | (fontspec) This font family consists of the following NFSS series/shapes: 9 | (fontspec) 10 | (fontspec) - 'normal' (m/n) with NFSS spec.: <->"[FandolHei-Regular.otf]/OT:language=dflt;" 11 | (fontspec) - 'bold' (b/n) with NFSS spec.: <->"[FandolHei-Bold.otf]/OT:language=dflt;" 12 | File: figures/ustc-badge.pdf Graphic file (type pdf) 13 | 14 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(1)/m/n' will be 15 | (Font) scaled to size 16.06pt on input line .... 16 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(1)/m/n' will be 17 | (Font) scaled to size 14.05249pt on input line .... 18 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(1)/m/n' will be 19 | (Font) scaled to size 10.53937pt on input line .... 20 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(2)/m/n' will be 21 | (Font) scaled to size 16.06146pt on input line .... 22 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(2)/m/n' will be 23 | (Font) scaled to size 14.05377pt on input line .... 24 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(2)/m/n' will be 25 | (Font) scaled to size 10.54033pt on input line .... 26 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(3)/m/n' will be 27 | (Font) scaled to size 16.05827pt on input line .... 28 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(3)/m/n' will be 29 | (Font) scaled to size 14.05098pt on input line .... 30 | LaTeX Font Info: Font shape `TU/XITSMath-Regular(3)/m/n' will be 31 | (Font) scaled to size 10.53824pt on input line .... 32 | LaTeX Font Info: Font shape `TU/STIXTwoMath-Regular(0)/m/n' will be 33 | (Font) scaled to size 15.27899pt on input line .... 34 | LaTeX Font Info: Font shape `TU/STIXTwoMath-Regular(0)/m/n' will be 35 | (Font) scaled to size 13.36911pt on input line .... 36 | LaTeX Font Info: Font shape `TU/STIXTwoMath-Regular(0)/m/n' will be 37 | (Font) scaled to size 10.02684pt on input line .... 38 | Completed box being shipped out [1] 39 | \vbox(722.98453+0.0)x435.04271 40 | .\glue -29.59128 41 | .\vbox(752.5758+0.0)x417.11752, shifted 17.92519 42 | ..\vbox(13.942+0.0)x417.11752, glue set 13.942fil 43 | ...\glue 0.0 plus 1.0fil 44 | ...\hbox(0.0+0.0)x417.11752 45 | ....\special{color push Black} 46 | ....\hbox(0.0+0.0)x417.11752 47 | ....\special{color pop} 48 | ..\glue 15.6491 49 | ..\glue(\lineskip) 0.0 50 | ..\vbox(700.50723+0.0)x417.11752, glue set 42.47424fil 51 | ...\write-{} 52 | ...\write-{} 53 | ...\glue(\topskip) 12.0 54 | ...\rule(0.0+0.0)x* 55 | ...\penalty 10000 56 | ...\glue 29.61061 57 | ...\glue 0.0 58 | ...\glue(\parskip) 0.0 59 | ...\glue(\parskip) 0.0 60 | ...\glue(\lineskip) 1.0 61 | ...\hbox(37.13866+0.0)x417.11752, glue set 70.54349fil 62 | ....\glue(\leftskip) 0.0 plus 1.0fil 63 | ....\hbox(0.0+0.0)x0.0 64 | ....\hbox(37.13866+0.0)x276.03056 65 | .....\hbox(37.13875+0.0)x276.03125 66 | ......\hbox(37.13875+0.0)x276.03125 67 | .......\hbox(37.13875+0.0)x0.0 68 | ........\special{pdf:btrans} 69 | ........\special{x:scale 1 1} 70 | ........\hbox(37.13875+0.0)x0.0, glue set - 276.03125fil 71 | .........\hbox(37.13875+0.0)x276.03125 72 | ..........\XeTeXpdffile ".../ustc-name-stxingkai.pdf" 73 | .........\glue 0.0 plus 1.0fil minus 1.0fil 74 | ........\special{pdf:etrans} 75 | .......\kern 276.03125 76 | .......\glue 0.0 plus 1.0fil minus 1.0fil 77 | ....\penalty 10000 78 | ....\glue(\parfillskip) 0.0 79 | ....\glue(\rightskip) 0.0 plus 1.0fil 80 | ...\glue 0.803 81 | ...\glue 0.0 82 | ...\glue(\parskip) 0.0 83 | ...\glue(\parskip) 0.0 84 | ...\glue(\baselineskip) 29.11678 85 | ...\hbox(43.95622+10.06157)x417.11752, glue set 24.3707fil 86 | ....\glue(\leftskip) 0.0 plus 1.0fil 87 | ....\hbox(0.0+0.0)x0.0 88 | ....\TU/FandolHei(0)/m/n/56.20999 本 89 | ....\glue 6.22324 90 | ....\TU/FandolHei(0)/m/n/56.20999 科 91 | ....\glue 6.22324 92 | ....\TU/FandolHei(0)/m/n/56.20999 毕 93 | ....\glue 6.22324 94 | ....\TU/FandolHei(0)/m/n/56.20999 业 95 | ....\glue 6.22324 96 | ....\TU/FandolHei(0)/m/n/56.20999 论 97 | ....\glue 6.22324 98 | ....\TU/FandolHei(0)/m/n/56.20999 文 99 | ....\kern -0.00017 100 | ....\kern 0.00017 101 | ....\penalty 10000 102 | ....\glue(\parfillskip) 0.0 103 | ....\glue(\rightskip) 0.0 plus 1.0fil 104 | ...\glue 52.19499 105 | ...\glue 0.0 106 | ...\glue(\parskip) 0.0 107 | ...\glue(\parskip) 0.0 108 | ...\glue(\lineskip) 1.0 109 | ...\hbox(126.47249+0.0)x417.11752, glue set 145.32443fil 110 | ....\glue(\leftskip) 0.0 plus 1.0fil 111 | ....\hbox(0.0+0.0)x0.0 112 | ....\special{color push cmyk 1 0.8 0 0} 113 | ....\hbox(126.47249+0.0)x126.46866 114 | .....\hbox(126.46896+0.0)x126.46896 115 | ......\hbox(126.46896+0.0)x126.46896 116 | .......\hbox(126.46896+0.0)x0.0 117 | ........\special{pdf:btrans} 118 | ........\special{x:scale 0.31657 0.31657} 119 | ........\hbox(399.4925+0.0)x0.0, glue set - 399.4925fil 120 | .........\hbox(399.4925+0.0)x399.4925 121 | ..........\XeTeXpdffile ".../ustc-badge.pdf" 122 | .........\glue 0.0 plus 1.0fil minus 1.0fil 123 | ........\special{pdf:etrans} 124 | .......\kern 126.46896 125 | .......\glue 0.0 plus 1.0fil minus 1.0fil 126 | ....\special{color pop} 127 | ....\penalty 10000 128 | ....\glue(\parfillskip) 0.0 129 | ....\glue(\rightskip) 0.0 plus 1.0fil 130 | ...\glue 43.16124 131 | ...\glue 0.0 132 | ...\glue(\parskip) 0.0 133 | ...\glue(\parskip) 0.0 134 | ...\glue(\baselineskip) 1.98743 135 | ...\hbox(20.09506+95.33618)x417.11752 136 | ....\glue(\leftskip) 0.0 plus 1.0fil 137 | ....\hbox(0.0+0.0)x0.0 138 | ....\vbox(20.09506+95.33618)x417.11752, glue set 43.95023fil 139 | .....\hbox(20.09506+4.41046)x417.11752, glue set 117.21756fil 140 | ......\glue(\leftskip) 0.0 plus 1.0fil 141 | ......\hbox(0.0+0.0)x0.0 142 | ......\TU/FandolHei(0)/b/n/26.09749 论 143 | ......\glue 0.0 plus 3.98097 144 | ......\TU/FandolHei(0)/b/n/26.09749 文 145 | ......\glue 0.0 plus 3.98097 146 | ......\TU/FandolHei(0)/b/n/26.09749 题 147 | ......\glue 0.0 plus 3.98097 148 | ......\TU/FandolHei(0)/b/n/26.09749 目 149 | ......\glue 0.0 plus 3.98097 150 | ......\TU/FandolHei(0)/b/n/26.09749 第 151 | ......\glue 0.0 plus 3.98097 152 | ......\TU/FandolHei(0)/b/n/26.09749 一 153 | ......\glue 0.0 plus 3.98097 154 | ......\TU/FandolHei(0)/b/n/26.09749 行 155 | ......\kern -0.00017 156 | ......\kern 0.00017 157 | ......\penalty 10000 158 | ......\glue(\parfillskip) 0.0 159 | ......\glue(\rightskip) 0.0 plus 1.0fil 160 | .....\glue 0.0 161 | .....\glue(\parskip) 0.0 162 | .....\glue(\parskip) 0.0 163 | .....\glue(\baselineskip) 22.46997 164 | .....\hbox(20.09506+4.41046)x417.11752, glue set 117.21756fil 165 | ......\glue(\leftskip) 0.0 plus 1.0fil 166 | ......\hbox(0.0+0.0)x0.0 167 | ......\TU/FandolHei(0)/b/n/26.09749 论 168 | ......\glue 0.0 plus 3.98097 169 | ......\TU/FandolHei(0)/b/n/26.09749 文 170 | ......\glue 0.0 plus 3.98097 171 | ......\TU/FandolHei(0)/b/n/26.09749 题 172 | ......\glue 0.0 plus 3.98097 173 | ......\TU/FandolHei(0)/b/n/26.09749 目 174 | ......\glue 0.0 plus 3.98097 175 | ......\TU/FandolHei(0)/b/n/26.09749 第 176 | ......\glue 0.0 plus 3.98097 177 | ......\TU/FandolHei(0)/b/n/26.09749 二 178 | ......\glue 0.0 plus 3.98097 179 | ......\TU/FandolHei(0)/b/n/26.09749 行 180 | ......\kern -0.00017 181 | ......\kern 0.00017 182 | ......\penalty 10000 183 | ......\glue(\parfillskip) 0.0 184 | ......\glue(\rightskip) 0.0 plus 1.0fil 185 | .....\glue 0.0 plus 1.0fil minus 1.0fil 186 | ....\penalty 10000 187 | ....\glue(\parfillskip) 0.0 188 | ....\glue(\rightskip) 0.0 plus 1.0fil 189 | ...\glue(\parskip) 0.0 190 | ...\glue(\parskip) 0.0 191 | ...\glue(\lineskip) 1.0 192 | ...\hbox(83.56248+75.53175)x417.11752, glue set 38.92502fil 193 | ....\glue(\leftskip) 0.0 plus 1.0fil 194 | ....\hbox(0.0+0.0)x0.0 195 | ....\glue 10.03749 196 | ....\hbox(83.56248+75.53175)x329.23 197 | .....\mathon 198 | .....\vbox(83.56248+75.53175)x329.23 199 | ......\hbox(22.2731+9.54575)x329.23 200 | .......\glue(\tabskip) 0.0 201 | .......\hbox(22.2731+9.54575)x90.3375 202 | ........\rule(22.2731+9.54575)x0.0 203 | ........\glue 0.0 204 | ........\vbox(12.70346+9.54575)x90.3375 205 | .........\hbox(12.70346+9.54575)x90.3375, glue set 21.40799fil 206 | ..........\hbox(0.0+0.0)x0.0 207 | ..........\TU/FandolHei(0)/m/n/16.06 作 208 | ..........\glue 0.0 plus 1.37729 209 | ..........\TU/FandolHei(0)/m/n/16.06 者 210 | ..........\glue 0.0 plus 1.37729 211 | ..........\TU/FandolHei(0)/m/n/16.06 姓 212 | ..........\glue 0.0 plus 1.37729 213 | ..........\TU/FandolHei(0)/m/n/16.06 名 214 | ..........\penalty 10000 215 | ..........\TU/FandolHei(0)/m/n/16.06 : 216 | ..........\rule(0.0+0.0)x-11.37048 217 | ..........\kern 0.00069 218 | ..........\kern -0.00069 219 | ..........\kern -0.99649 220 | ..........\kern 0.99649 221 | ..........\penalty 10000 222 | ..........\rule(0.0+9.54575)x0.0 223 | ..........\penalty 10000 224 | ..........\glue(\parfillskip) 0.0 plus 1.0fil 225 | ..........\glue(\rightskip) 0.0 226 | ........\glue 0.0 plus 1.0fil 227 | ........\glue 0.0 228 | .......\glue(\tabskip) 0.0 229 | .......\hbox(22.2731+9.54575)x238.8925 230 | ........\glue 0.0 231 | ........\glue 0.0 plus 1.0fil 232 | ........\glue 0.00002 233 | ........\hbox(12.045+2.6017)x238.89249, glue set 95.35625fil 234 | .........\glue 0.0 plus 1.0fil minus 1.0fil 235 | .........\TU/FandolHei(0)/m/n/16.06 王 236 | .........\glue 0.0 plus 1.37729 237 | .........\TU/FandolHei(0)/m/n/16.06 小 238 | .........\glue 0.0 plus 1.37729 239 | .........\TU/FandolHei(0)/m/n/16.06 明 240 | .........\kern -0.00017 241 | .........\kern 0.00017 242 | .........\glue 0.0 plus 1.0fil minus 1.0fil 243 | ........\glue 0.0 plus 1.0fil 244 | ........\glue 0.0 245 | .......\glue(\tabskip) 0.0 246 | ......\glue(\lineskip) 0.0 247 | ......\hbox(0.5+0.0)x329.23 248 | .......\glue(\tabskip) 0.0 249 | .......\hbox(0.5+0.0)x90.3375 250 | .......\glue(\tabskip) 0.0 251 | .......\hbox(0.5+0.0)x238.8925, glue set 238.8925fill 252 | ........\leaders 0.0 plus 1.0fill 253 | .........\rule(0.5+0.0)x* 254 | .......\glue(\tabskip) 0.0 255 | ......\glue -0.5 256 | ......\glue(\lineskip) 0.0 257 | ......\hbox(22.2731+9.54575)x329.23 258 | .......\glue(\tabskip) 0.0 259 | .......\hbox(22.2731+9.54575)x90.3375 260 | ........\rule(22.2731+9.54575)x0.0 261 | ........\glue 0.0 262 | ........\vbox(12.38226+9.54575)x90.3375 263 | .........\hbox(12.38226+9.54575)x90.3375, glue set 21.40799fil 264 | ..........\hbox(0.0+0.0)x0.0 265 | ..........\TU/FandolHei(0)/m/n/16.06 学 266 | ..........\kern -0.00017 267 | ..........\kern 0.00017 268 | ..........\glue 16.06 269 | ..........\glue 16.06 270 | ..........\TU/FandolHei(0)/m/n/16.06 号 271 | ..........\penalty 10000 272 | ..........\TU/FandolHei(0)/m/n/16.06 : 273 | ..........\rule(0.0+0.0)x-11.37048 274 | ..........\kern 0.00069 275 | ..........\kern -0.00069 276 | ..........\kern -0.99649 277 | ..........\kern 0.99649 278 | ..........\penalty 10000 279 | ..........\rule(0.0+9.54575)x0.0 280 | ..........\penalty 10000 281 | ..........\glue(\parfillskip) 0.0 plus 1.0fil 282 | ..........\glue(\rightskip) 0.0 283 | ........\glue 0.0 plus 1.0fil 284 | ........\glue 0.0 285 | .......\glue(\tabskip) 0.0 286 | .......\hbox(22.2731+9.54575)x238.8925 287 | ........\glue 0.0 288 | ........\glue 0.0 plus 1.0fil 289 | ........\glue 0.00002 290 | ........\hbox(10.85655+0.3533)x238.89249, glue set 77.50555fil 291 | .........\glue 0.0 plus 1.0fil minus 1.0fil 292 | .........\TU/texgyretermes(0)/m/n/16.06 PB19000000 293 | .........\kern -0.0002 294 | .........\kern 0.0002 295 | .........\glue 0.0 plus 1.0fil minus 1.0fil 296 | ........\glue 0.0 plus 1.0fil 297 | ........\glue 0.0 298 | .......\glue(\tabskip) 0.0 299 | ......\glue(\lineskip) 0.0 300 | ......\hbox(0.5+0.0)x329.23 301 | .......\glue(\tabskip) 0.0 302 | .......\hbox(0.5+0.0)x90.3375 303 | .......\glue(\tabskip) 0.0 304 | .......\hbox(0.5+0.0)x238.8925, glue set 238.8925fill 305 | ........\leaders 0.0 plus 1.0fill 306 | .........\rule(0.5+0.0)x* 307 | .......\glue(\tabskip) 0.0 308 | ......\glue -0.5 309 | ......\glue(\lineskip) 0.0 310 | ......\hbox(22.2731+9.54575)x329.23 311 | .......\glue(\tabskip) 0.0 312 | .......\hbox(22.2731+9.54575)x90.3375 313 | ........\rule(22.2731+9.54575)x0.0 314 | ........\glue 0.0 315 | ........\vbox(12.5268+9.54575)x90.3375 316 | .........\hbox(12.5268+9.54575)x90.3375, glue set 21.40799fil 317 | ..........\hbox(0.0+0.0)x0.0 318 | ..........\TU/FandolHei(0)/m/n/16.06 专 319 | ..........\kern -0.00017 320 | ..........\kern 0.00017 321 | ..........\glue 16.06 322 | ..........\glue 16.06 323 | ..........\TU/FandolHei(0)/m/n/16.06 业 324 | ..........\penalty 10000 325 | ..........\TU/FandolHei(0)/m/n/16.06 : 326 | ..........\rule(0.0+0.0)x-11.37048 327 | ..........\kern 0.00069 328 | ..........\kern -0.00069 329 | ..........\kern -0.99649 330 | ..........\kern 0.99649 331 | ..........\penalty 10000 332 | ..........\rule(0.0+9.54575)x0.0 333 | ..........\penalty 10000 334 | ..........\glue(\parfillskip) 0.0 plus 1.0fil 335 | ..........\glue(\rightskip) 0.0 336 | ........\glue 0.0 plus 1.0fil 337 | ........\glue 0.0 338 | .......\glue(\tabskip) 0.0 339 | .......\hbox(22.2731+9.54575)x238.8925 340 | ........\glue 0.0 341 | ........\glue 0.0 plus 1.0fil 342 | ........\glue 0.00002 343 | ........\hbox(12.4465+2.93896)x238.89249, glue set 63.23625fil 344 | .........\glue 0.0 plus 1.0fil minus 1.0fil 345 | .........\TU/FandolHei(0)/m/n/16.06 数 346 | .........\glue 0.0 plus 1.37729 347 | .........\TU/FandolHei(0)/m/n/16.06 学 348 | .........\glue 0.0 plus 1.37729 349 | .........\TU/FandolHei(0)/m/n/16.06 与 350 | .........\glue 0.0 plus 1.37729 351 | .........\TU/FandolHei(0)/m/n/16.06 应 352 | .........\glue 0.0 plus 1.37729 353 | .........\TU/FandolHei(0)/m/n/16.06 用 354 | .........\glue 0.0 plus 1.37729 355 | .........\TU/FandolHei(0)/m/n/16.06 数 356 | .........\glue 0.0 plus 1.37729 357 | .........\TU/FandolHei(0)/m/n/16.06 学 358 | .........\kern -0.00017 359 | .........\kern 0.00017 360 | .........\glue 0.0 plus 1.0fil minus 1.0fil 361 | ........\glue 0.0 plus 1.0fil 362 | ........\glue 0.0 363 | .......\glue(\tabskip) 0.0 364 | ......\glue(\lineskip) 0.0 365 | ......\hbox(0.5+0.0)x329.23 366 | .......\glue(\tabskip) 0.0 367 | .......\hbox(0.5+0.0)x90.3375 368 | .......\glue(\tabskip) 0.0 369 | .......\hbox(0.5+0.0)x238.8925, glue set 238.8925fill 370 | ........\leaders 0.0 plus 1.0fill 371 | .........\rule(0.5+0.0)x* 372 | .......\glue(\tabskip) 0.0 373 | ......\glue -0.5 374 | ......\glue(\lineskip) 0.0 375 | ......\hbox(22.2731+9.54575)x329.23 376 | .......\glue(\tabskip) 0.0 377 | .......\hbox(22.2731+9.54575)x90.3375 378 | ........\rule(22.2731+9.54575)x0.0 379 | ........\glue 0.0 380 | ........\vbox(12.25378+9.54575)x90.3375 381 | .........\hbox(12.25378+9.54575)x90.3375, glue set 21.40799fil 382 | ..........\hbox(0.0+0.0)x0.0 383 | ..........\TU/FandolHei(0)/m/n/16.06 导 384 | ..........\kern -0.00017 385 | ..........\kern 0.00017 386 | ..........\glue 32.12 387 | ..........\TU/FandolHei(0)/m/n/16.06 师 388 | ..........\penalty 10000 389 | ..........\TU/FandolHei(0)/m/n/16.06 : 390 | ..........\rule(0.0+0.0)x-11.37048 391 | ..........\kern 0.00069 392 | ..........\kern -0.00069 393 | ..........\kern -0.99649 394 | ..........\kern 0.99649 395 | ..........\penalty 10000 396 | ..........\rule(0.0+9.54575)x0.0 397 | ..........\penalty 10000 398 | ..........\glue(\parfillskip) 0.0 plus 1.0fil 399 | ..........\glue(\rightskip) 0.0 400 | ........\glue 0.0 plus 1.0fil 401 | ........\glue 0.0 402 | .......\glue(\tabskip) 0.0 403 | .......\hbox(22.2731+9.54575)x238.8925 404 | ........\glue 0.0 405 | ........\glue 0.0 plus 1.0fil 406 | ........\glue 0.00002 407 | ........\hbox(12.59103+2.7623)x238.89249, glue set 83.31125fil 408 | .........\glue 0.0 plus 1.0fil minus 1.0fil 409 | .........\TU/FandolHei(0)/m/n/16.06 李 410 | .........\glue 0.0 plus 1.37729 411 | .........\TU/FandolHei(0)/m/n/16.06 华 412 | .........\kern -0.00017 413 | .........\kern 0.00017 414 | .........\penalty 10000 415 | .........\glue 4.015 plus 2.00749 minus 1.33833 416 | .........\TU/FandolHei(0)/m/n/16.06 教 417 | .........\glue 0.0 plus 1.37729 418 | .........\TU/FandolHei(0)/m/n/16.06 授 419 | .........\kern -0.00018 420 | .........\kern 0.00018 421 | .........\glue 4.015 plus 2.00749 minus 1.33833 422 | .........\glue 0.0 plus 1.0fil minus 1.0fil 423 | ........\glue 0.0 plus 1.0fil 424 | ........\glue 0.0 425 | .......\glue(\tabskip) 0.0 426 | ......\glue(\lineskip) 0.0 427 | ......\hbox(0.5+0.0)x329.23 428 | .......\glue(\tabskip) 0.0 429 | .......\hbox(0.5+0.0)x90.3375 430 | .......\glue(\tabskip) 0.0 431 | .......\hbox(0.5+0.0)x238.8925, glue set 238.8925fill 432 | ........\leaders 0.0 plus 1.0fill 433 | .........\rule(0.5+0.0)x* 434 | .......\glue(\tabskip) 0.0 435 | ......\glue -0.5 436 | ......\glue(\lineskip) 0.0 437 | ......\hbox(22.2731+9.54575)x329.23 438 | .......\glue(\tabskip) 0.0 439 | .......\hbox(22.2731+9.54575)x90.3375 440 | ........\rule(22.2731+9.54575)x0.0 441 | ........\glue 0.0 442 | ........\vbox(12.54286+9.54575)x90.3375 443 | .........\hbox(12.54286+9.54575)x90.3375, glue set 21.40799fil 444 | ..........\hbox(0.0+0.0)x0.0 445 | ..........\TU/FandolHei(0)/m/n/16.06 完 446 | ..........\glue 0.0 plus 1.37729 447 | ..........\TU/FandolHei(0)/m/n/16.06 成 448 | ..........\glue 0.0 plus 1.37729 449 | ..........\TU/FandolHei(0)/m/n/16.06 时 450 | ..........\glue 0.0 plus 1.37729 451 | ..........\TU/FandolHei(0)/m/n/16.06 间 452 | ..........\penalty 10000 453 | ..........\TU/FandolHei(0)/m/n/16.06 : 454 | ..........\rule(0.0+0.0)x-11.37048 455 | ..........\kern 0.00069 456 | ..........\kern -0.00069 457 | ..........\kern -0.99649 458 | ..........\kern 0.99649 459 | ..........\penalty 10000 460 | ..........\rule(0.0+9.54575)x0.0 461 | ..........\penalty 10000 462 | ..........\glue(\parfillskip) 0.0 plus 1.0fil 463 | ..........\glue(\rightskip) 0.0 464 | ........\glue 0.0 plus 1.0fil 465 | ........\glue 0.0 466 | .......\glue(\tabskip) 0.0 467 | .......\hbox(22.2731+9.54575)x238.8925 468 | ........\glue 0.0 469 | ........\glue 0.0 plus 1.0fil 470 | ........\glue 0.00002 471 | ........\hbox(12.5268+2.79442)x238.89249, glue set 61.22876fil 472 | .........\glue 0.0 plus 1.0fil minus 1.0fil 473 | .........\TU/texgyretermes(0)/m/n/16.06 2023 474 | .........\glue 4.015 plus 2.00749 minus 1.33833 475 | .........\TU/FandolHei(0)/m/n/16.06 年 476 | .........\glue 4.015 plus 2.00749 minus 1.33833 477 | .........\TU/texgyretermes(0)/m/n/16.06 5 478 | .........\glue 4.015 plus 2.00749 minus 1.33833 479 | .........\TU/FandolHei(0)/m/n/16.06 月 480 | .........\glue 4.015 plus 2.00749 minus 1.33833 481 | .........\TU/texgyretermes(0)/m/n/16.06 1 482 | .........\glue 4.015 plus 2.00749 minus 1.33833 483 | .........\TU/FandolHei(0)/m/n/16.06 日 484 | .........\kern -0.00017 485 | .........\kern 0.00017 486 | .........\glue 0.0 plus 1.0fil minus 1.0fil 487 | ........\glue 0.0 plus 1.0fil 488 | ........\glue 0.0 489 | .......\glue(\tabskip) 0.0 490 | ......\glue(\lineskip) 0.0 491 | ......\hbox(0.5+0.0)x329.23 492 | .......\glue(\tabskip) 0.0 493 | .......\hbox(0.5+0.0)x90.3375 494 | .......\glue(\tabskip) 0.0 495 | .......\hbox(0.5+0.0)x238.8925, glue set 238.8925fill 496 | ........\leaders 0.0 plus 1.0fill 497 | .........\rule(0.5+0.0)x* 498 | .......\glue(\tabskip) 0.0 499 | ......\glue -0.5 500 | .....\mathoff 501 | ....\penalty 10000 502 | ....\glue(\parfillskip) 0.0 503 | ....\glue(\rightskip) 0.0 plus 1.0fil 504 | ...\glue -6.0 505 | ...\glue 0.0 plus 1.0fil 506 | ...\glue 0.0 507 | ...\glue 0.0 plus 0.0001fil 508 | ..\glue(\baselineskip) 22.47748 509 | ..\hbox(0.0+0.0)x417.11752 510 | ...\special{color push Black} 511 | ...\hbox(0.0+0.0)x417.11752 512 | ...\special{color pop} 513 | Completed box being shipped out [2] 514 | \vbox(722.98453+0.0)x435.04271 515 | .\glue -29.59128 516 | .\vbox(752.5758+0.0)x417.11752, shifted 17.92519 517 | ..\vbox(13.942+0.0)x417.11752, glue set 13.942fil 518 | ...\glue 0.0 plus 1.0fil 519 | ...\hbox(0.0+0.0)x417.11752 520 | ....\special{color push Black} 521 | ....\hbox(0.0+0.0)x417.11752 522 | ....\special{color pop} 523 | ..\glue 15.6491 524 | ..\glue(\lineskip) 0.0 525 | ..\vbox(700.50723+0.0)x0.0, glue set 688.4337fil 526 | ...\write-{} 527 | ...\glue(\topskip) 12.0 528 | ...\hbox(0.0+0.0)x0.0 529 | ...\glue 0.0 plus 1.0fil 530 | ...\glue 0.0 531 | ...\glue 0.0 plus 0.0001fil 532 | ..\glue(\baselineskip) 22.47748 533 | ..\hbox(0.0+0.0)x417.11752 534 | ...\special{color push Black} 535 | ...\hbox(0.0+0.0)x417.11752 536 | ...\special{color pop} 537 | -------------------------------------------------------------------------------- /test/testfiles/title-page-doctor-academic.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \input{info} 5 | 6 | \begin{document} 7 | \START 8 | \showoutput 9 | 10 | \maketitle 11 | 12 | \clearpage 13 | \OMIT 14 | \end{document} 15 | -------------------------------------------------------------------------------- /test/testfiles/title-page-doctor-engineering.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor, degree-type=engineering, fontset=fandol]{ustcthesis} 3 | 4 | \input{info} 5 | 6 | \ustcsetup{ 7 | practice-supervisor = {XXX~教授, XXX~教授}, 8 | practice-supervisor* = {Prof.~XXX, Prof.~XXX}, 9 | } 10 | 11 | \begin{document} 12 | \START 13 | \showoutput 14 | 15 | \maketitle 16 | 17 | \clearpage 18 | \OMIT 19 | \end{document} 20 | -------------------------------------------------------------------------------- /test/testfiles/title-page-master-academic.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=master, fontset=fandol]{ustcthesis} 3 | 4 | \input{info} 5 | 6 | 7 | \begin{document} 8 | \START 9 | \showoutput 10 | 11 | \maketitle 12 | 13 | \clearpage 14 | \OMIT 15 | \end{document} 16 | -------------------------------------------------------------------------------- /test/testfiles/title-page-master-engineering.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=master, degree-type=engineering, fontset=fandol]{ustcthesis} 3 | 4 | \input{info} 5 | 6 | \ustcsetup{ 7 | practice-supervisor = {XXX~教授, XXX~教授}, 8 | practice-supervisor* = {Prof.~XXX, Prof.~XXX}, 9 | } 10 | 11 | \begin{document} 12 | \START 13 | \showoutput 14 | 15 | \maketitle 16 | 17 | \clearpage 18 | \OMIT 19 | \end{document} 20 | -------------------------------------------------------------------------------- /test/testfiles/title-page-master-professional.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=master,degree-type=professional,fontset=fandol]{ustcthesis} 3 | 4 | \input{info} 5 | 6 | \ustcsetup{ 7 | practice-supervisor = {XXX~教授, XXX~教授}, 8 | practice-supervisor* = {Prof.~XXX, Prof.~XXX}, 9 | } 10 | 11 | 12 | \begin{document} 13 | \START 14 | \showoutput 15 | 16 | \maketitle 17 | 18 | \clearpage 19 | \OMIT 20 | \end{document} 21 | -------------------------------------------------------------------------------- /test/testfiles/title-page-secret.tex: -------------------------------------------------------------------------------- 1 | \input{regression-test} 2 | \documentclass[degree=doctor,fontset=fandol]{ustcthesis} 3 | 4 | \input{info} 5 | \ustcsetup{ 6 | secret-level = {秘密}, 7 | secret-level* = {Secret}, 8 | secret-year = {20}, 9 | } 10 | 11 | \begin{document} 12 | \START 13 | \showoutput 14 | 15 | \maketitle 16 | 17 | \clearpage 18 | \OMIT 19 | \end{document} 20 | -------------------------------------------------------------------------------- /ustcsetup.tex: -------------------------------------------------------------------------------- 1 | % !TeX root = ./main.tex 2 | 3 | \ustcsetup{ 4 | title = {中国科学技术大学\\学位论文模板示例文档 v\ustcthesisversion}, 5 | title* = {An example of thesis template for University of Science 6 | and Technology of China v\ustcthesisversion}, 7 | author = {李泽平}, 8 | author* = {Li Zeping}, 9 | speciality = {数学与应用数学}, 10 | speciality* = {Mathematics and Applied Mathematics}, 11 | supervisor = {XXX~教授, XXX~教授}, 12 | supervisor* = {Prof. XXX, Prof. XXX}, 13 | % practice-supervisor = {XXX~教授, XXX~教授}, % 专业/工程学位的实践导师 14 | % practice-supervisor* = {Prof. XXX, Prof. XXX}, 15 | % date = {2017-05-01}, % 完成时间,默认为今日 16 | % department = {数学科学学院}, % 院系,本科生需要填写 17 | % student-id = {PB11001000}, % 学号,本科生需要填写 18 | % secret-level = {秘密}, % 绝密|机密|秘密|控阅,注释本行则公开 19 | % secret-level* = {Secret}, % Top secret | Highly secret | Secret 20 | % secret-year = {10}, % 保密/控阅期限 21 | % reviewer = true, % 声明页显示“评审专家签名” 22 | % 23 | % 数学字体 24 | % math-style = GB, % 可选:GB, TeX, ISO 25 | math-font = xits, % 可选:stix, xits, libertinus 26 | } 27 | 28 | 29 | % 加载宏包 30 | 31 | % 定理类环境宏包 32 | \usepackage{amsthm} 33 | 34 | % 插图 35 | \usepackage{graphicx} 36 | 37 | % 英文图题、表题 38 | \usepackage{bicaption} 39 | 40 | % 三线表 41 | \usepackage{booktabs} 42 | 43 | % 表注 44 | \usepackage{threeparttable} 45 | 46 | % 跨页表格 47 | \usepackage{longtable} 48 | 49 | % 算法 50 | \usepackage[ruled,linesnumbered]{algorithm2e} 51 | 52 | % SI 量和单位 53 | \usepackage{siunitx} 54 | 55 | % 参考文献使用 BibTeX + natbib 宏包 56 | % 顺序编码制 57 | \usepackage[sort]{natbib} 58 | \bibliographystyle{ustcthesis-numerical} 59 | 60 | % 著者-出版年制 61 | % \usepackage{natbib} 62 | % \bibliographystyle{ustcthesis-authoryear} 63 | 64 | % 本科生参考文献的著录格式 65 | % \usepackage[sort]{natbib} 66 | % \bibliographystyle{ustcthesis-bachelor} 67 | 68 | % 参考文献使用 BibLaTeX 宏包 69 | % \usepackage[style=ustcthesis-numeric]{biblatex} 70 | % \usepackage[bibstyle=ustcthesis-numeric,citestyle=ustcthesis-inline]{biblatex} 71 | % \usepackage[style=ustcthesis-authoryear]{biblatex} 72 | % \usepackage[style=ustcthesis-bachelor]{biblatex} 73 | % 声明 BibLaTeX 的数据库 74 | % \addbibresource{bib/ustc.bib} 75 | 76 | % 配置图片的默认目录 77 | \graphicspath{{figures/}} 78 | 79 | % 数学命令 80 | \makeatletter 81 | \newcommand\dif{% % 微分符号 82 | \mathop{}\!% 83 | \ifustc@math@style@TeX 84 | d% 85 | \else 86 | \mathrm{d}% 87 | \fi 88 | } 89 | \makeatother 90 | \newcommand\eu{{\symup{e}}} 91 | \newcommand\iu{{\symup{i}}} 92 | 93 | % 用于写文档的命令 94 | \DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} 95 | \DeclareRobustCommand\env[1]{\texttt{#1}} 96 | \DeclareRobustCommand\pkg[1]{\textsf{#1}} 97 | \DeclareRobustCommand\file[1]{\nolinkurl{#1}} 98 | 99 | % hyperref 宏包在最后调用 100 | \usepackage{hyperref} 101 | -------------------------------------------------------------------------------- /ustcthesis-authoryear.bbx: -------------------------------------------------------------------------------- 1 | \ProvidesFile{ustcthesis-authoryear.bbx}[2021/01/19 v1.0 USTCThesis biblatex 2 | bibliography style] 3 | 4 | \RequireBibliographyStyle{gb7714-2015ay} 5 | 6 | \ExecuteBibliographyOptions{ 7 | gbnamefmt = lowercase, 8 | gbpub = false, 9 | url = false, 10 | doi = false, 11 | } 12 | 13 | \defbibenvironment{bibliography} 14 | {\list 15 | {} 16 | {\setlength{\leftmargin}{\bibhang}% 17 | \setlength{\itemindent}{-\leftmargin}% 18 | \setlength{\itemsep}{\bibitemsep}% 19 | \setlength{\parsep}{\bibparsep}}} 20 | {\endlist} 21 | {\item} 22 | 23 | \DeclareFieldFormat{sentencecase}{% 24 | \iftoggle{bbx:titlelink}{% 25 | \iffieldundef{url}{#1}{% 26 | \href{\thefield{url}}{\MakeSentenceCase*{#1}}% 27 | }% 28 | }{% 29 | \MakeSentenceCase{#1}% 30 | }% 31 | } 32 | 33 | % gb7714-2015ay.bbx, line 2644 34 | \renewbibmacro*{title}{% 35 | \ifboolexpr{% 36 | test{\iffieldundef{title}}% 37 | and 38 | test{\iffieldundef{subtitle}}% 39 | }% 40 | {}% 41 | {\printtext[title]{\bibtitlefont%增加字体控制命令 42 | \printfield[sentencecase]{title}% 43 | \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题 44 | {}{\setunit{\subtitlepunct}% 45 | \printfield[sentencecase]{subtitle}}% 46 | \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格 47 | {\setunit{\subtitlepunct}\printfield{titleaddon}}% 48 | \iftoggle{bbx:gbtype}{% 49 | \iffieldundef{entrysubtype}{\printfield[gbtypeflag]{usera}}%在标题后直接给出文献标识字母,判断一下,是否是报纸和标准 50 | {\iffieldequalstr{entrysubtype}{standard}{\printfield[gbtypeflags]{usera}}%判断是否为标准 51 | {\iffieldequalstr{entrysubtype}{news}{\printfield[gbtypeflagn]{usera}}%判断是否为报纸 52 | {\printfield[gbtypeflag]{usera}}}%其它 53 | }}{}% 54 | %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点 55 | %\newunit 56 | }% 57 | }} 58 | 59 | \renewbibmacro*{maintitle}{% 60 | \ifboolexpr{ 61 | test {\iffieldundef{maintitle}} 62 | and 63 | test {\iffieldundef{mainsubtitle}} 64 | } 65 | {} 66 | {\printtext[maintitle]{% 67 | % 在 maintitle+title 使用 sentence case,但是在 maintitle+booktitle 使用 title case 68 | % \printfield[titlecase]{maintitle}% 69 | \iffieldundef{booktitle}{% 70 | \printfield[sentencecase]{maintitle}% 71 | }{% 72 | \printfield[titlecase]{maintitle}% 73 | }% 74 | \setunit{\subtitlepunct}% 75 | % \printfield[titlecase]{mainsubtitle}% 76 | \iffieldundef{booktitle}{% 77 | \printfield[sentencecase]{maintitle}% 78 | }{% 79 | \printfield[titlecase]{maintitle}% 80 | }% 81 | }% 82 | \newunit}% 83 | \printfield{maintitleaddon}} 84 | 85 | % 斜线默认使用原字体,不再使用等宽字体 86 | % 87 | \def\SlashFont{} 88 | -------------------------------------------------------------------------------- /ustcthesis-authoryear.cbx: -------------------------------------------------------------------------------- 1 | \ProvidesFile{ustcthesis-authoryear.cbx}[2021/01/19 v1.0 USTCThesis biblatex 2 | citation style] 3 | 4 | \RequireCitationStyle{gb7714-2015ay} 5 | -------------------------------------------------------------------------------- /ustcthesis-bachelor.bbx: -------------------------------------------------------------------------------- 1 | \ProvidesFile{ustcthesis-bachelor.bbx}[2021/01/19 v1.0 USTCThesis biblatex 2 | bibliography style] 3 | 4 | \RequireBibliographyStyle{gb7714-2015} 5 | 6 | \ExecuteBibliographyOptions{ 7 | gbalign = left, 8 | gbnamefmt = lowercase, 9 | gbpub = false, 10 | url = false, 11 | doi = false, 12 | } 13 | 14 | \setlength\biblabelsep{0pt} 15 | 16 | % 顺序编码制悬挂缩进 2.5 字符 17 | \defbibenvironment{bibliography} 18 | {\list 19 | {\printtext[labelnumberwidth]{% 20 | \printfield{labelprefix}% 21 | \printfield{labelnumber}}} 22 | % {\setlength{\labelwidth}{\labelnumberwidth}% 23 | % \setlength{\leftmargin}{\labelwidth}% 24 | {\setlength{\labelwidth}{2.5em}% 25 | \setlength{\leftmargin}{2.5em}% 26 | \setlength{\labelsep}{\biblabelsep}% 27 | \addtolength{\leftmargin}{\labelsep}% 28 | \setlength{\itemsep}{\bibitemsep}% 29 | \setlength{\parsep}{\bibparsep}}% 30 | % 参考文献表的编号居左。 31 | % \renewcommand*{\makelabel}[1]{\hss##1}} 32 | \renewcommand*{\makelabel}[1]{\hss##1}} 33 | {\endlist} 34 | {\item} 35 | 36 | 37 | \DeclareFieldFormat{sentencecase}{% 38 | \iftoggle{bbx:titlelink}{% 39 | \iffieldundef{url}{#1}{% 40 | \href{\thefield{url}}{\MakeSentenceCase*{#1}}% 41 | }% 42 | }{% 43 | \MakeSentenceCase{#1}% 44 | }% 45 | } 46 | 47 | % 48 | % 重设title的输出 49 | % 50 | % 20180425,v1.0k,为标题增加字体控制命令,Hu Zhenzhen 51 | % 原理方法:将文献类型标识符输出出去,原输出来自biblatex.def文件 52 | % 利用toggle做标识符是否输出的判断 53 | \renewbibmacro*{title}{% 54 | \ifboolexpr{% 55 | test{\iffieldundef{title}}% 56 | and 57 | test{\iffieldundef{subtitle}}% 58 | }% 59 | {}% 60 | {\printtext[title]{\bibtitlefont%增加字体控制命令 61 | \printfield[sentencecase]{title}% 62 | \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题 63 | {}{\setunit{\subtitlepunct}% 64 | \printfield[sentencecase]{subtitle}}% 65 | \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格 66 | {\setunit{\subtitlepunct}\printfield{titleaddon}}% 67 | \iftoggle{bbx:gbtype}{% 68 | \iffieldundef{entrysubtype}{\printfield[gbtypeflag]{usera}}%在标题后直接给出文献标识字母,判断一下,是否是报纸和标准 69 | {\iffieldequalstr{entrysubtype}{standard}{\printfield[gbtypeflags]{usera}}%判断是否为标准 70 | {\iffieldequalstr{entrysubtype}{news}{\printfield[gbtypeflagn]{usera}}%判断是否为报纸 71 | {\printfield[gbtypeflag]{usera}}}%其它 72 | }}{}% 73 | %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点 74 | %\newunit 75 | }% 76 | }} 77 | 78 | \renewbibmacro*{maintitle}{% 79 | \ifboolexpr{ 80 | test {\iffieldundef{maintitle}} 81 | and 82 | test {\iffieldundef{mainsubtitle}} 83 | } 84 | {} 85 | {\printtext[maintitle]{% 86 | % 在 maintitle+title 使用 sentence case,但是在 maintitle+booktitle 使用 title case 87 | \printfield[titlecase]{maintitle}% 88 | \iffieldundef{booktitle}{% 89 | \printfield[sentencecase]{maintitle}% 90 | }{% 91 | \printfield[titlecase]{maintitle}% 92 | }% 93 | \setunit{\subtitlepunct}% 94 | % \printfield[titlecase]{mainsubtitle}% 95 | \iffieldundef{booktitle}{% 96 | \printfield[sentencecase]{maintitle}% 97 | }{% 98 | \printfield[titlecase]{maintitle}% 99 | }% 100 | }% 101 | \newunit}% 102 | \printfield{maintitleaddon}} 103 | 104 | % 斜线默认使用原字体,不再使用等宽字体 105 | % 106 | \def\SlashFont{} 107 | -------------------------------------------------------------------------------- /ustcthesis-bachelor.cbx: -------------------------------------------------------------------------------- 1 | \ProvidesFile{ustcthesis-bachelor.cbx}[2021/01/19 v1.0 USTCThesis biblatex 2 | citation style] 3 | 4 | \RequireCitationStyle{gb7714-2015} 5 | -------------------------------------------------------------------------------- /ustcthesis-inline.cbx: -------------------------------------------------------------------------------- 1 | \ProvidesFile{ustcthesis-inline.cbx}[2021/01/19 v1.0 USTCThesis biblatex 2 | citation style] 3 | 4 | \RequireCitationStyle{gb7714-2015} 5 | 6 | \ExecuteBibliographyOptions{ 7 | autocite = inline, 8 | } 9 | 10 | \DeclareCiteCommand{\cite}%[\mkbibbrackets] 11 | {[\usebibmacro{cite:init}%] 12 | \usebibmacro{prenote}}% 13 | {\usebibmacro{citeindex}% 14 | \usebibmacro{cite:comp}} 15 | {} 16 | {%[ 17 | \usebibmacro{cite:dump}]% 18 | \mkbibsuperscript{\printfield{postnote}}} 19 | -------------------------------------------------------------------------------- /ustcthesis-numeric.bbx: -------------------------------------------------------------------------------- 1 | \ProvidesFile{ustcthesis-numeric.bbx}[2021/01/19 v1.0 USTCThesis biblatex 2 | bibliography style] 3 | 4 | \RequireBibliographyStyle{gb7714-2015} 5 | 6 | \ExecuteBibliographyOptions{ 7 | gbalign = left, 8 | gbnamefmt = lowercase, 9 | gbpub = false, 10 | url = false, 11 | doi = false, 12 | } 13 | 14 | \setlength\biblabelsep{0pt} 15 | 16 | % 顺序编码制悬挂缩进 2.5 字符 17 | \defbibenvironment{bibliography} 18 | {\list 19 | {\printtext[labelnumberwidth]{% 20 | \printfield{labelprefix}% 21 | \printfield{labelnumber}}} 22 | % {\setlength{\labelwidth}{\labelnumberwidth}% 23 | % \setlength{\leftmargin}{\labelwidth}% 24 | {\setlength{\labelwidth}{2.5em}% 25 | \setlength{\leftmargin}{2.5em}% 26 | \setlength{\labelsep}{\biblabelsep}% 27 | \addtolength{\leftmargin}{\labelsep}% 28 | \setlength{\itemsep}{\bibitemsep}% 29 | \setlength{\parsep}{\bibparsep}}% 30 | % 参考文献表的编号居左。 31 | % \renewcommand*{\makelabel}[1]{\hss##1}} 32 | \renewcommand*{\makelabel}[1]{\hss##1}} 33 | {\endlist} 34 | {\item} 35 | 36 | 37 | \DeclareFieldFormat{sentencecase}{% 38 | \iftoggle{bbx:titlelink}{% 39 | \iffieldundef{url}{#1}{% 40 | \href{\thefield{url}}{\MakeSentenceCase*{#1}}% 41 | }% 42 | }{% 43 | \MakeSentenceCase{#1}% 44 | }% 45 | } 46 | 47 | % 48 | % 重设title的输出 49 | % 50 | % 20180425,v1.0k,为标题增加字体控制命令,Hu Zhenzhen 51 | % 原理方法:将文献类型标识符输出出去,原输出来自biblatex.def文件 52 | % 利用toggle做标识符是否输出的判断 53 | \renewbibmacro*{title}{% 54 | \ifboolexpr{% 55 | test{\iffieldundef{title}}% 56 | and 57 | test{\iffieldundef{subtitle}}% 58 | }% 59 | {}% 60 | {\printtext[title]{\bibtitlefont%增加字体控制命令 61 | \printfield[sentencecase]{title}% 62 | \ifboolexpr{test {\iffieldundef{subtitle}}}%这里增加了对子标题的判断,解决不判断多一个点的问题 63 | {}{\setunit{\subtitlepunct}% 64 | \printfield[sentencecase]{subtitle}}% 65 | \iffieldundef{titleaddon}{}%判断一下titleaddon,否则直接加可能多一个空格 66 | {\setunit{\subtitlepunct}\printfield{titleaddon}}% 67 | \iftoggle{bbx:gbtype}{% 68 | \iffieldundef{entrysubtype}{\printfield[gbtypeflag]{usera}}%在标题后直接给出文献标识字母,判断一下,是否是报纸和标准 69 | {\iffieldequalstr{entrysubtype}{standard}{\printfield[gbtypeflags]{usera}}%判断是否为标准 70 | {\iffieldequalstr{entrysubtype}{news}{\printfield[gbtypeflagn]{usera}}%判断是否为报纸 71 | {\printfield[gbtypeflag]{usera}}}%其它 72 | }}{}% 73 | %\iffieldundef{booktitle}{\newunit}{}%当title是析出时,不要标点 74 | %\newunit 75 | }% 76 | }} 77 | 78 | \renewbibmacro*{maintitle}{% 79 | \ifboolexpr{ 80 | test {\iffieldundef{maintitle}} 81 | and 82 | test {\iffieldundef{mainsubtitle}} 83 | } 84 | {} 85 | {\printtext[maintitle]{% 86 | % 在 maintitle+title 使用 sentence case,但是在 maintitle+booktitle 使用 title case 87 | \printfield[titlecase]{maintitle}% 88 | \iffieldundef{booktitle}{% 89 | \printfield[sentencecase]{maintitle}% 90 | }{% 91 | \printfield[titlecase]{maintitle}% 92 | }% 93 | \setunit{\subtitlepunct}% 94 | % \printfield[titlecase]{mainsubtitle}% 95 | \iffieldundef{booktitle}{% 96 | \printfield[sentencecase]{maintitle}% 97 | }{% 98 | \printfield[titlecase]{maintitle}% 99 | }% 100 | }% 101 | \newunit}% 102 | \printfield{maintitleaddon}} 103 | 104 | % 斜线默认使用原字体,不再使用等宽字体 105 | % 106 | \def\SlashFont{} 107 | -------------------------------------------------------------------------------- /ustcthesis-numeric.cbx: -------------------------------------------------------------------------------- 1 | \ProvidesFile{ustcthesis-numeric.cbx}[2021/01/19 v1.0 USTCThesis biblatex 2 | citation style] 3 | 4 | \RequireCitationStyle{gb7714-2015} 5 | --------------------------------------------------------------------------------