| 1 |
<!-- This README aims to be packed into bithesis LaTeX package --> |
| 2 |
|
| 3 |
# The `bithesis` Class |
| 4 |
|
| 5 |
$\LaTeX$ thesis template for [Beijing Institute of Technology (BIT)](https://bit.edu.cn). |
| 6 |
|
| 7 |
This project is maintained by [BITNP (Net Pioneer Association of BIT)](https://bitnp.net), the de facto TUG at BIT. |
| 8 |
Maintainers are listed on [the BIThesis website](https://bithesis.bitnp.net/guide/acknowledgements.html). |
| 9 |
|
| 10 |
[](https://bithesis.bitnp.net/) |
| 11 |
[](https://mg.readthedocs.io/latexmk.html) |
| 12 |
[](./LICENSE) |
| 13 |
|
| 14 |
BIThesis is an unofficial LaTeX template set for your |
| 15 |
**undergraduate, master, or doctoral thesis** as well as other academic writing here at BIT. |
| 16 |
|
| 17 |
This project is supported by the _[Dept. of Undergraduate Academic Affairs, BIT](https://jwb.bit.edu.cn/)_ and the _[School of Computer Science and Technology, BIT](https://cs.bit.edu.cn/)_. See [Acknowledgements - Official Sponsors](https://bithesis.bitnp.net/guide/acknowledgements.html#%E5%AE%98%E6%96%B9%E8%B5%9E%E5%8A%A9-official-sponsors). |
| 18 |
|
| 19 |
At present, `bithesis` only supports XeTeX and LuaTeX engines. `bithesis` only allows `UTF-8` encoding. |
| 20 |
|
| 21 |
## Installation |
| 22 |
|
| 23 |
```shell |
| 24 |
tlmgr install bithesis |
| 25 |
``` |
| 26 |
|
| 27 |
## How to use BIThesis? |
| 28 |
|
| 29 |
**For a comprehensive guide on how to install LaTeX, compile `bithesis`, and use BIThesis' templates, please refer to BIThesis' Wiki. 👇** |
| 30 |
|
| 31 |
[](https://bithesis.bitnp.net/) |
| 32 |
|
| 33 |
## How to build PDF documentations? |
| 34 |
|
| 35 |
This section describes how to generate the following PDF documentations from `bithesis-doc-src.zip` manually. |
| 36 |
|
| 37 |
- Package documentation: `bithesis.pdf` |
| 38 |
- Quick start handbooks: `bithesis-handbook-{undergraduate,graduate}.pdf` |
| 39 |
|
| 40 |
However, it is much easier to generate them by cloning our [repo](https://github.com/BITNP/BIThesis) and running `just doc handbooks`. Details can be found in `DEVELOPMENT.md` there. |
| 41 |
|
| 42 |
### Package documentation |
| 43 |
|
| 44 |
```shell |
| 45 |
xetex bithesis.ins |
| 46 |
|
| 47 |
7z x bithesis-doc-src.zip bithesis-pdf |
| 48 |
mv bithesis-pdf/* . |
| 49 |
rmdir bithesis-pdf |
| 50 |
|
| 51 |
curl https://bithesis.bitnp.net/faq/index.tex -o assets/faq.tex |
| 52 |
|
| 53 |
latexmk -xelatex -shell-escape bithesis.dtx # `-shell-escape` is for lt3luabridge |
| 54 |
``` |
| 55 |
|
| 56 |
Now check `bithesis.pdf`. |
| 57 |
|
| 58 |
### Quick start handbooks |
| 59 |
|
| 60 |
1. Generate `bithesis.cls` with `xetex bithesis.ins` or `tlmgr install bithesis` |
| 61 |
2. Run the following commands |
| 62 |
|
| 63 |
```shell |
| 64 |
7z x bithesis-doc-src.zip handbook |
| 65 |
cd handbook |
| 66 |
|
| 67 |
cp path/to/bithesis.cls . |
| 68 |
|
| 69 |
latexmk |
| 70 |
mv main.pdf bithesis-handbook-undergraduate.pdf |
| 71 |
|
| 72 |
GRADUATE=true latexmk -gt # `-gt` forces reprocessing *.tex files |
| 73 |
mv main.pdf bithesis-handbook-graduate.pdf |
| 74 |
``` |
| 75 |
|
| 76 |
## Contributing |
| 77 |
|
| 78 |
For more details, please see the [contributing doc](./contributing.md). |
| 79 |
|
| 80 |
## Contributors |
| 81 |
|
| 82 |
For more information, please see: [GitHub Contributors](https://github.com/BITNP/BIThesis/graphs/contributors) and [Acknowledgements](https://bithesis.bitnp.net/guide/acknowledgements.html). |