A comprehensive LaTeX template for the Master of Science in Precision Health and Medicine (MSc. PHM) capstone reports at the National University of Singapore (NUS).
- Compliant formatting with NUS thesis requirements
- MSc. PHM specific modifications including:
- Customized cover page for capstone reports
- Declaration of AI usage (required for modern academic integrity)
- Research attachment period specification
- Academic/Industrial report type selection
- Professional styling with proper typography and spacing
- Comprehensive examples including figures, tables, algorithms, and citations
- Automated compilation with build scripts
- Cross-platform support (Linux, macOS, Windows)
-
Clone this repository
git clone https://github.com/arnold117/nus_phm_thesis.git cd nus_phm_thesis
-
Edit the main content
-
Compile your thesis
./build.sh
├── main.tex # Main document entry point
├── nusthesis.cls # NUS thesis document class
├── _global_settings.tex # Global packages and configurations
├── references.bib # Bibliography database
├── build.sh # Compilation script
├── chapters/ # Individual chapter files
│ ├── abstract.tex
│ ├── acknowledgments.tex
│ ├── ch-intro.tex
│ ├── ch-review.tex
│ └── ...
├── pic/ # Figures and images
├── exp/ # Experimental plots and data
└── fairy-lite/ # LaTeX compilation utilities
# Default compilation
./build.sh
# Custom output filename
./build.sh --pdf-name "MyCapstoneReport"
# Clean build files
./build.sh --clean
If you prefer manual control:
pdflatex main.tex
biber main
pdflatex main.tex
pdflatex main.tex
Note: The bibliography compilation requires biber
(not bibtex
), and multiple LaTeX runs are necessary for proper cross-references and bibliography generation.
Edit the following in main.tex
:
\title{Your Capstone Title}
\author{Your Name}
\nusid{A1234567X}
\supervisor{Your Supervisor Name \\ Department/Institution}
\startdate{Start Date}
\enddate{End Date}
\typeofReport{Academic} % or Industrial
\AIVersion{ChatGPT (OpenAI, GPT-4)} % Specify AI tools used
For double-sided printing, uncomment this line in main.tex
:
\newcommand*{\DoubleSided}{}
For electronic submission (default), keep it commented out.
- Introduction:
chapters/ch-intro.tex
- Contains LaTeX tips and tricks - Literature Review:
chapters/ch-review.tex
- Main Content: Add your research chapters following the example structure
- Conclusion:
chapters/ch-concl.tex
- Use
\SetPicSubDir{folder-name}
to organize figures by chapter - Use
\Pic{extension}{filename}
for figures:\includegraphics{\Pic{pdf}{my-figure}}
- Use
\Exp{extension}{filename}
for experimental plots
- Add references to
references.bib
- Use
\cite{key}
for citations and\citet{key}
for author-year format - Bibliography is automatically generated using IEEE style
- LaTeX Distribution: TeX Live (recommended) or MiKTeX
- Bibliography Tool: biber
- Build Environment: Bash shell (built-in on Linux/macOS, WSL/Git Bash on Windows)
All required packages are automatically loaded. Key packages include:
biblatex
with IEEE style for referencesalgorithm2e
for pseudocodehyperref
for cross-references and linksgraphicx
for figures- And many more (see
_global_settings.tex
)
For a consistent development environment:
# Using VS Code with Docker
code .
# Select "Reopen in Container" when prompted
The .devcontainer/
setup provides a complete LaTeX environment with VS Code extensions.
This template includes comprehensive examples:
- Algorithm pseudocode with proper formatting
- Mathematical equations and notation
- Figure and table placement with captions
- Cross-referencing system
- Citation styles for different source types
- Appendices structure
Found an issue or have an improvement?
- Create an issue
- Submit a pull request
- Contact the maintainer
This project is licensed under the MIT License - see the LICENSE file for details.
This template is derived from the original nusthesis template by Qian Lin, which is also under MIT License. The MIT License ensures maximum compatibility and ease of use for academic and research purposes.
Special thanks to Qian Lin for the original nusthesis template. This template has been adapted and enhanced specifically for the MSc. PHM program requirements.
Good luck with your capstone report! 🎓