/dsa4199

Primary LanguageTeXMIT LicenseMIT

A LaTeX Template for PhD/Master Thesis of the National University of Singapore (NUS)

This set of latex code (mainly the nusthesis.cls) composes a template of NUS thesis, which is compliant with the university's requirement. Using this template to organize your thesis content can save a lot of effort spent on formatting.

Apart from formatting, the example .tex files also include a lot of latex tricks extracted from my years' experience of using latex. These tricks are mainly described and demonstrated in the chapters/ch-Intro.tex file.

You may refer to this to preview a sample thesis generated using this template. In addition, the template is also available on Overleaf (but it may not be timely synchronized with updates maintained in this repository).

Compilation

Run the build.sh script to compile in Linux, macOS or emulated Unix-like environment for Windows (e.g., Cygwin and MinGW). For compilation in the native Windows, run the build.bat script. The produced .pdf file locates in the same folder.

You may customize the name of the output .pdf file by configuring PDF_NAME in the above scripts. Alternatively, you could specify the filename with the --pdf-name option (or -o for short). For example,

$ ./build.sh --pdf-name MyThesis

This will produce MyThesis.pdf as output.

ps: Since Windows 10 already provides built-in Linux Bash Shell, the original crappy build.bat script has been deprecated. Nevertheless, you are still welcomed to provide a robust one via pull request if you believed that's really necessary.

Manual Compilation

In case you prefer to compile the code manually, please run exactly the following commands at the project root (i.e., where the main.tex locates at the same directory level).

$ pdflatex main.tex
$ biber main
$ pdflatex main.tex
$ pdflatex main.tex

Note that the parameter to biber is the filename without extension. Moreover, you must run the second pdflatex to generate bibliography and resolve citations, and the third pdflatex to generate the bibliography entry in the table of contents.

Dependencies

Editing

Your edit should start with main.tex, which is also the compilation entry (as configured in build.sh). Sources of individual chapters as well as abstract, acknowledgments, appendices, etc., are placed in the chapters folder. Illustrative figures and analytical plottings should be stored in the pic and exp folders respectively.

Printing vs. Electronic

Uncomment the following line at the head of main.tex when you are producing the thesis for printing hard copies in a double-sided fashion.

\newcommand*{\DoubleSided}{}

And comment it out when you are producing the electronic thesis for the final submission.

Contact

If you encounter any problem of using this template, feel free to contact me or create an issue in this repository.

All the best for your graduation!