# IITR Masters Thesis LaTeX Template

A clean, complete, and well-documented LaTeX template for M.Tech / M.Sc thesis submissions at **Indian Institute of Technology Roorkee**. Designed to be easy to use for students with little or no prior LaTeX experience.

> A compiled sample `main.pdf` is included in the repository so you can preview exactly what the output looks like before getting started.

---

## Features

- Single config block in `main.tex` — fill in your details once, and they update everywhere (title page, declaration, AI disclosure form, etc.)
- Correct IIT Roorkee formatting: Times New Roman font, double spacing, binding-side margins, chapter style
- Both **SEG author-year** `(Smith, 2020)` and **IEEE numbered** `[1]` citation styles included — switch with one line
- Official **IIT Roorkee AI Use Disclosure Form** included and ready to fill
- AI assistance note template at the end of each chapter (commented out — uncomment if you used AI)
- Working examples of a **figure**, **table**, and **citations** so you can see exactly how they work
- Turnitin report section pre-wired (commented out — uncomment when you have your report)
- Compatible with **Overleaf** (recommended) and local LaTeX installations

---

## File Structure

```
IITR-Masters-Thesis-Template/
├── main.tex                        ← Start here — fill in your details
├── preamble.tex                    ← Packages and formatting (do not edit)
├── references.bib                  ← Add your references here (BibTeX format)
├── seg.bst                         ← SEG bibliography style file
│
├── frontmatter/
│   ├── titlepage.tex               ← Auto-filled from config block
│   ├── declaration.tex             ← Auto-filled from config block
│   ├── acknowledgements.tex        ← Write your acknowledgements
│   ├── abstract.tex                ← Write your abstract
│   └── symbols.tex                 ← List of symbols and abbreviations
│
├── chapters/
│   ├── ch1_introduction.tex
│   ├── ch2_literature_survey.tex
│   ├── ch3_methods.tex
│   ├── ch4_results.tex
│   └── ch5_conclusions.tex
│
├── backmatter/
│   ├── appendices.tex              ← Add appendices here
│   └── ai_disclosure.tex           ← IIT Roorkee AI Use Disclosure Form
│
└── figures/
    ├── iitr_logo.png
    └── fig1_1_das_schematic.png    ← Example figure (replace with your own)
```

---

## Formatting Specifications

<details>
<summary>Click to expand — full format reference for students, supervisors, and committee members</summary>

### Page Setup

| Property | Value |
| --- | --- |
| Paper size | A4 |
| Layout | Two-sided (twoside) |
| Top margin | 20 mm |
| Bottom margin | 20 mm |
| Inner margin (binding side) | 30 mm |
| Outer margin | 20 mm |
| Page numbering | Roman numerals (i, ii, iii, ...) for front matter; Arabic numerals (1, 2, 3, ...) for main content starting from Chapter 1 (Introduction) |
| Chapter/section starts | Every chapter and frontmatter section begins on an odd-numbered page; a blank page is inserted automatically if needed |

### Typography

| Property | Value |
| --- | --- |
| Body font | Times New Roman, 12 pt (via `mathptmx` — also covers math mode) |
| Line spacing | Double |
| Paragraph indent | None |
| Paragraph gap | 8 pt |

### Heading Styles

| Level | Format | Example |
| --- | --- | --- |
| Chapter | Centred, bold, 16 pt, ALL CAPS, underlined, preceded by "CHAPTER N" | `CHAPTER 1` / `INTRODUCTION` |
| Section (1.1) | Left-aligned, bold, 14 pt | `1.1  Motivation` |
| Subsection (1.1.1) | Left-aligned, bold, 12 pt | `1.1.1  Sub-topic` |
| Appendix | Same as chapter, "APPENDIX A" instead of "CHAPTER N" | `APPENDIX A` / `TITLE` |

### Frontmatter Order and Page Numbers

| Section | Page number |
| --- | --- |
| Title page | i (no number printed) |
| Blank | ii |
| Declaration of Authorship | iii |
| Blank | iv |
| Acknowledgements | v |
| Blank | vi |
| Abstract | vii |
| Blank | viii |
| Table of Contents | ix |
| Blank | x |
| List of Figures | xi |
| Blank | xii |
| List of Tables | xiii |
| Blank | xiv |
| List of Symbols and Abbreviations | xv |
| Blank | xvi |
| Chapter 1 (Introduction) | 1 |

> Actual page numbers depend on how many pages each section occupies. The table above reflects the template with placeholder content only. Arabic numerals start from page 1 (Chapter 1 Introduction).

### Figures and Tables

- All figures go in the `figures/` folder
- Figure and table numbering is flat (Figure 1, 2, 3 … — no chapter prefix)
- Captions: small font, bold label (`Figure 1:`), justified
- Tables use the `booktabs` package style (`\toprule`, `\midrule`, `\bottomrule`) — no vertical lines

### Citations

- Default: **SEG author-year** style — `(Smith, 2020)` / `Smith (2020)`
- Alternative: **IEEE numbered** style — `[1]` (one-line switch in `preamble.tex`)
- Bibliography title: "References" (not "Bibliography")

### Headers and Footers

- No header rule, no header text
- Page number on the outer (non-binding) edge of the footer — bottom-right on odd pages, bottom-left on even pages

### AI Disclosure

- Official IIT Roorkee AI Use Disclosure Form included as the final section
- Per-chapter AI assistance note available as a commented-out block at the end of each chapter file

</details>

---

## Getting Started

### Option 1 — Overleaf (Recommended)

Overleaf is the easiest way to use this template — no installation required.

1. Download this repository as a ZIP (click **Code → Download ZIP** on GitHub)
2. Go to [overleaf.com](https://www.overleaf.com) and log in
3. Click **New Project → Upload Project** and upload the ZIP file
4. Open `main.tex` and fill in your details in the config block at the top
5. Click **Recompile** — Overleaf handles everything automatically

### Option 2 — Local Installation

You need a LaTeX distribution installed ([TeX Live](https://www.tug.org/texlive/) on Linux/Mac, [MiKTeX](https://miktex.org/) on Windows).

1. Clone or download this repository
2. Open `main.tex` and fill in your details in the config block
3. Compile in this order:
   ```
   pdflatex main
   bibtex main
   pdflatex main
   pdflatex main
   ```
   > **Note:** You may see `Underfull \vbox` warnings in the compile log — these are harmless and caused by blank pages inserted between chapters. Ignore them.

---

## How to Customise

### Step 1 — Fill in your details

Open `main.tex`. At the top you will find a config block like this:

```latex
\newcommand{\ThesisTitle}{Full Title of Your Thesis Here}
\newcommand{\AuthorName}{Your Full Name}
\newcommand{\EnrolNo}{XXXXXXXXX}
\newcommand{\SupervisorName}{Prof. Full Name}
...
```

Edit only this block. Your details will automatically appear on the title page, declaration, acknowledgements, and AI disclosure form.

### Step 2 — Write your chapters

Open the files in `chapters/` one by one. Each file has:
- Suggested section headings (rename them to suit your topic)
- `% TODO:` comments guiding you on what to write in each section
- See the sample content in `ch1_introduction.tex` and `ch3_methods.tex` for working examples of figures, tables, and citations

### Step 3 — Add your references

Open `references.bib` and add your references. Example entries for all common types (journal article, book, conference paper, thesis, website) are already included with comments explaining each field.

Cite in your text using:
```latex
\citep{key}   →  (Smith and Jones, 2020)
\citet{key}   →  Smith and Jones (2020)
```

### Step 4 — Add your figures

Place all figure files (PNG, PDF, EPS) in the `figures/` folder. Include them in your text like this:

```latex
\begin{figure}[htbp]
  \centering
  \includegraphics[width=\textwidth]{your_figure_filename}
  \caption{Your caption here.}
  \label{fig:your_label}
\end{figure}
```

Then cross-reference with: `Figure~\ref{fig:your_label}`

### Step 5 — Choose your citation style (optional)

The default is **SEG author-year**: `(Smith, 2020)`. To switch to **IEEE numbered** `[1]`, open `preamble.tex` and follow the one-line swap described in the `CITATION STYLE` comment block there.

---

## AI Use Disclosure Form

The official IIT Roorkee AI Use Disclosure Form is included in `backmatter/ai_disclosure.tex`.

- **Section A** is filled automatically from your config block — nothing to change.
- **Section B** — for each category, change `\cbno` (unchecked) to `\cbx` (checked) if you used AI for that purpose.
- **Section C** — sign and date before submission.

Each chapter also has a short AI assistance note template at the very end (commented out). If you used AI while writing that chapter, uncomment those lines and describe how you used it.

---

## Turnitin Similarity Report

The template includes a dedicated section for your Turnitin Similarity Report (typically required by IIT Roorkee for thesis submission).

- **Location**: Last section of the thesis, after the AI Use Disclosure Form
- **Placeholder**: Currently includes a 2-page Turnitin guide PDF explaining how to interpret similarity scores and improve your writing
- **How to replace**: Once you have your actual Turnitin report:
  1. Export your report as PDF from Turnitin
  2. Replace `Turnitin_report.pdf` in the project root with your report file
  3. Update the `\includepdf` commands in `main.tex` (lines 127-130) to match your report's page count
  4. Uncomment additional `\includepdf` lines if your report has more than 2 pages

---

All required files are included in this repository. All packages used (`natbib`, `geometry`, `booktabs`, `titlesec`, etc.) are part of a standard **full** TeX Live or MiKTeX installation. If you use a minimal install and encounter missing-package errors, install the named package via your distribution's package manager (`tlmgr install <package>` for TeX Live).

---

## Created By

**Raj Gupta**, Integrated M.Tech, 2026  
Department of Earth Sciences, IIT Roorkee

GitHub: https://github.com/RajGupta2509/IITR-Masters-Thesis-Template

Overleaf: https://www.overleaf.com/read/sxxpzcyzprmp#2adee1

This template is based on the format used and supervisor-approved for an M.Tech thesis submission in May 2026. It is shared freely for use by any Masters student at IIT Roorkee.

---

*If you find this template useful, consider sharing it with your batchmates and juniors.*
