| 1 |
# njustthesis |
| 2 |
|
| 3 |
Thesis template for [NJUST](https://njust.edu.cn). |
| 4 |
|
| 5 |
## License |
| 6 |
|
| 7 |
This work may be distributed and/or modified under the conditions of GPLv3+. |
| 8 |
|
| 9 |
## Dependent |
| 10 |
|
| 11 |
### Required |
| 12 |
|
| 13 |
- A `LaTex` distribution. Such as |
| 14 |
[texlive](https://github.com/TeX-Live/texlive-source). |
| 15 |
- [cnlogo](https://github.com/yuxtech/cnlogo/) provides the logos of many |
| 16 |
Chinese Universities. |
| 17 |
|
| 18 |
## Install |
| 19 |
|
| 20 |
### Use Package Manager |
| 21 |
|
| 22 |
```shell |
| 23 |
tlmgr install njustthesis |
| 24 |
``` |
| 25 |
|
| 26 |
### Install From Source Code |
| 27 |
|
| 28 |
```shell |
| 29 |
l3build install |
| 30 |
``` |
| 31 |
|
| 32 |
## Customize |
| 33 |
|
| 34 |
Default values: |
| 35 |
|
| 36 |
```latex |
| 37 |
\njustsetup{ |
| 38 |
logo = \njustwhole[njust][0.5], % depend on cnlogo |
| 39 |
cover-title = 毕业设计说明书, |
| 40 |
author = 佚名, |
| 41 |
id = 916101630000, |
| 42 |
department = 电子工程与光电技术学院, |
| 43 |
discipline = 电子工程与光电技术, |
| 44 |
title = , |
| 45 |
subtitle = , |
| 46 |
supervisor = 张三, |
| 47 |
associate-supervisor = 李四, |
| 48 |
judge = 王五, |
| 49 |
supervisor-title = 教授, |
| 50 |
associate-supervisor-title = 教授, |
| 51 |
judge-title = 教授, |
| 52 |
year = \the\year, % the time of paper |
| 53 |
month = \the\month, |
| 54 |
day = \the\day, |
| 55 |
abstract-prefix = 毕业论文, |
| 56 |
signature = , |
| 57 |
signature* = , % star means english |
| 58 |
abstract-prefix = 毕业论文, |
| 59 |
title* = , |
| 60 |
subtitle* = , |
| 61 |
header-title = 本科毕业设计说明书, |
| 62 |
} |
| 63 |
``` |
| 64 |
|
| 65 |
**Note**: Add `{}` around the string which contain ' ','=', and','. |
| 66 |
|
| 67 |
Example: |
| 68 |
|
| 69 |
```latex |
| 70 |
\documentclass{njustthesis} |
| 71 |
\njustsetup{% |
| 72 |
author = 张不三, |
| 73 |
id = 916101630000, |
| 74 |
discipline = 电子信息工程, |
| 75 |
title = {论文名字带逗号,或空格 }, |
| 76 |
subtitle = 所以加花括弧括起来, |
| 77 |
title* = {English name}, |
| 78 |
supervisor = , |
| 79 |
supervisor-title = 教授, |
| 80 |
judge = , |
| 81 |
% signature = \includegraphics{signature.pdf}, |
| 82 |
judge-title = 教授, |
| 83 |
} |
| 84 |
\usepackage{subfiles} |
| 85 |
\begin{document} |
| 86 |
|
| 87 |
\maketitle |
| 88 |
|
| 89 |
\frontmatter |
| 90 |
\tableofcontents |
| 91 |
\listoffigures |
| 92 |
\listoftables |
| 93 |
|
| 94 |
\mainmatter% |
| 95 |
% \subfile{subfiles/chapter1.tex} |
| 96 |
|
| 97 |
\backmatter% |
| 98 |
% \bibliography{refs/main.bib} |
| 99 |
|
| 100 |
\appendix |
| 101 |
% \subfile{subfiles/appendix1.tex} |
| 102 |
|
| 103 |
\end{document} |
| 104 |
``` |
| 105 |
|
| 106 |
See more [examples](https://github.com/Freed-Wu?tab=repositories&q=njust&language=tex). |
| 107 |
|
| 108 |
## Tips |
| 109 |
|
| 110 |
```shell |
| 111 |
texdoc njusthesis |
| 112 |
``` |
| 113 |
|
| 114 |
## Todo |
| 115 |
|
| 116 |
- [pandoc](https://github.com/jgm/pandoc) template for user can |
| 117 |
write markdown then convert it to latex. |
| 118 |
- Change format from `ctexbook` to `ctexart` in order to use |
| 119 |
`beamerarticle.sty` more conveniently. |
| 120 |
|
| 121 |
## FAQ |
| 122 |
|
| 123 |
Q: Why another wheel? |
| 124 |
|
| 125 |
A: Because former wheels cannot satisfy me. Some even only provide a |
| 126 |
`*.tex` not `*.cls`. So crude. |
| 127 |
|
| 128 |
Q: 100% compatible with official `docx` template? |
| 129 |
|
| 130 |
A: If you find something unreasonable, welcome to pull request! |
| 131 |
|
| 132 |
More questions see [issues](https://github.com/Freed-Wu/njustthesis/issues). |
| 133 |
|
| 134 |
## Reference |
| 135 |
|
| 136 |
- [thuthesis](https://github.com/tuna/thuthesis) May be the best thesis |
| 137 |
template among all Chinese theses. Any one can learn something from it. Such |
| 138 |
as literate programming, separation of content and presentation, etc. |