Quick Start
ZhThesis compiles with XeLaTeX. Nothing needs to be installed beyond a normal LaTeX distribution and Chinese fonts that the distribution can find.
Requirements
- A LaTeX distribution: TeX Live, MacTeX, or MiKTeX
- XeLaTeX and BibTeX
- Chinese fonts available to the environment
Get the files
git clone https://github.com/yixnhuang/zhthesis.git
cd zhthesis
Compile
Four passes: the first writes the citation keys, bibtex resolves them, and the last two
settle the bibliography and the table of contents.
xelatex main.tex
bibtex main
xelatex main.tex
xelatex main.tex
The first three edits
- Set the metadata at the top of
main.tex:\titlename,\title,\school,\class,\author,\supervisor. - Write both abstracts in
texs/00_abstract.tex. The Chinese one goes inabstract, the English one inenabstract, each followed by its keyword command. - Write the first chapter in
texs/01_intro.tex, then add further chapter files and\includethem frommain.tex.
Overleaf
- Package the repository as a
.ziparchive. - In Overleaf, choose New Project → Upload Project and upload it.
- Set the compiler to XeLaTeX in the project menu.
There is no official Overleaf template link yet.