From cb855af5b89733507bd5aaaf86660aaaa9f4d161 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 4 Mar 2022 21:51:50 +0000 Subject: njustthesis (4mar22) git-svn-id: svn://tug.org/texlive/trunk@62409 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/njustthesis/README.md | 134 +++++++++++++++++++++ .../doc/latex/njustthesis/njustthesis.pdf | Bin 0 -> 211883 bytes 2 files changed, 134 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/njustthesis/README.md create mode 100644 Master/texmf-dist/doc/latex/njustthesis/njustthesis.pdf (limited to 'Master/texmf-dist/doc/latex/njustthesis') diff --git a/Master/texmf-dist/doc/latex/njustthesis/README.md b/Master/texmf-dist/doc/latex/njustthesis/README.md new file mode 100644 index 00000000000..7026370d435 --- /dev/null +++ b/Master/texmf-dist/doc/latex/njustthesis/README.md @@ -0,0 +1,134 @@ +# njustthesis + +Thesis template for [NJUST](https://njust.edu.cn). + +## Dependent + +### Required + +- A `LaTex` distribution. Such as + [texlive](https://github.com/TeX-Live/texlive-source). +- [cnlogo](https://github.com/yuxtech/cnlogo/) provides the logos of many + Chinese Universities. + +## Install + +### Use Package Manager + +```shell +tlmgr install njustthesis +``` + +### Install From Source Code + +```shell +l3build install +``` + +## Customize + +Default values: + +```latex +\njustsetup{ + logo = \njustwhole[njust][0.5], % depend on cnlogo + cover-title = 毕业设计说明书, + author = 佚名, + id = 916101630000, + department = 电子工程与光电技术学院, + discipline = 电子工程与光电技术, + title = , + subtitle = , + supervisor = 张三, + associate-supervisor = 李四, + judge = 王五, + supervisor-title = 教授, + associate-supervisor-title = 教授, + judge-title = 教授, + year = \the\year, % the time of paper + month = \the\month, + day = \the\day, + abstract-prefix = 毕业论文, + signature = , + signature* = , % star means english + abstract-prefix = 毕业论文, + title* = , + subtitle* = , + header-title = 本科毕业设计说明书, +} +``` + +**Note**: Add `{}` around the string which contain ' ','=', and','. + +Example: + +```latex +\documentclass{njustthesis} +\njustsetup{% + author = 张不三, + id = 916101630000, + discipline = 电子信息工程, + title = {论文名字带逗号,或空格 }, + subtitle = 所以加花括弧括起来, + title* = {English name}, + supervisor = , + supervisor-title = 教授, + judge = , + % signature = \includegraphics{signature.pdf}, + judge-title = 教授, +} +\usepackage{subfiles} +\begin{document} + +\maketitle + +\frontmatter +\tableofcontents +\listoffigures +\listoftables + +\mainmatter% +% \subfile{subfiles/chapter1.tex} + +\backmatter% +% \bibliography{refs/main.bib} + +\appendix +% \subfile{subfiles/appendix1.tex} + +\end{document} +``` + +See more [examples](https://github.com/Freed-Wu?tab=repositories&q=njust&language=tex). + +## Tips + +```shell +texdoc njusthesis +``` + +## Todo + +- [pandoc](https://github.com/jgm/pandoc) template for user can + write markdown then convert it to latex. +- Change format from `ctexbook` to `ctexart` in order to use + `beamerarticle.sty` more conveniently. + +## FAQ + +Q: Why another wheel? + +A: Because former wheels cannot satisfy me. Some even only provide a +`*.tex` not `*.cls`. So crude. + +Q: 100% compatible with official `docx` template? + +A: If you find something unreasonable, welcome to pull request! + +More questions see [issues](https://github.com/Freed-Wu/njustthesis/issues). + +## Reference + +- [thuthesis](https://github.com/tuna/thuthesis) May be the best thesis + template among all Chinese theses. Any one can learn something from it. Such + as literate programming, separation of content and presentation, etc. diff --git a/Master/texmf-dist/doc/latex/njustthesis/njustthesis.pdf b/Master/texmf-dist/doc/latex/njustthesis/njustthesis.pdf new file mode 100644 index 00000000000..9af23f7d750 Binary files /dev/null and b/Master/texmf-dist/doc/latex/njustthesis/njustthesis.pdf differ -- cgit v1.2.3