Code Monkey home page Code Monkey logo

nusthesis's Introduction

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.