Skip to content

A LaTeX template for Capstone Report of the Master of Science in Precision Health and Medicine (MSc. PHM), National University of Singapore (NUS)

License

Notifications You must be signed in to change notification settings

arnold117/nus_phm_thesis

 
 

Repository files navigation

NUS MSc. PHM Capstone Report LaTeX Template

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).

✨ Features

  • 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)

🚀 Quick Start

  1. Clone this repository

    git clone https://github.com/arnold117/nus_phm_thesis.git
    cd nus_phm_thesis
  2. Edit the main content

    • Modify main.tex with your thesis details
    • Add your chapters in the chapters/ folder
    • Place figures in pic/ and experimental plots in exp/
  3. Compile your thesis

    ./build.sh

📁 Project Structure

├── 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

🔧 Compilation

Automated Build (Recommended)

# Default compilation
./build.sh

# Custom output filename
./build.sh --pdf-name "MyCapstoneReport"

# Clean build files
./build.sh --clean

Manual Compilation

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.

✏️ Customization

Essential Information

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

Print vs. Electronic Version

For double-sided printing, uncomment this line in main.tex:

\newcommand*{\DoubleSided}{}

For electronic submission (default), keep it commented out.

📖 Writing Guide

Chapter Organization

Figures and Tables

  • 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

Citations and References

  • Add references to references.bib
  • Use \cite{key} for citations and \citet{key} for author-year format
  • Bibliography is automatically generated using IEEE style

🛠️ Dependencies

Required Software

  • LaTeX Distribution: TeX Live (recommended) or MiKTeX
  • Bibliography Tool: biber
  • Build Environment: Bash shell (built-in on Linux/macOS, WSL/Git Bash on Windows)

LaTeX Packages

All required packages are automatically loaded. Key packages include:

  • biblatex with IEEE style for references
  • algorithm2e for pseudocode
  • hyperref for cross-references and links
  • graphicx for figures
  • And many more (see _global_settings.tex)

🐳 Development Container (Optional)

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.

📋 Examples Included

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

🤝 Contributing

Found an issue or have an improvement?

📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

License Compatibility

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.

🙏 Acknowledgments

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! 🎓

About

A LaTeX template for Capstone Report of the Master of Science in Precision Health and Medicine (MSc. PHM), National University of Singapore (NUS)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TeX 60.6%
  • Shell 35.4%
  • Gnuplot 3.2%
  • Dockerfile 0.8%