---
description: Use before thesis/report submission to check a LaTeX PDF, page count, references, declarations, figures, tables, TODOs, formatting, appendices, source code exclusion, and final upload readiness.
---

# Final PDF Gate

Run the boring checks that catch expensive mistakes. Load `../../references/report-writing.md`, `../../references/source-declarations.md`, and `../../references/assessment-rubric.md`.

## Checks

- compile succeeds from a clean state
- PDF opens and page count is within the content-page limit
- title, abstract, contents, chapters, references, declarations, and appendices are present
- abstract is under one page and has no citations
- references are cited and bibliography entries are complete enough to locate
- Harvard author-date style is used unless the project template, department, or rubric says otherwise
- no unresolved `TODO`, `??`, missing references, or placeholder citations
- figures/tables/equations are referenced and explained
- no source code listing bloat unless intentionally justified
- declarations cover GenAI, ethics status, sustainability, and data/material availability
- repo/data/web-app access details are present where relevant
- final PDF is ready for both required submission systems if applicable

## Useful Commands

Prefer the project's existing commands. If none exist, try:

```bash
latexmk -pdf main.tex
pdfinfo main.pdf
pdftotext -layout main.pdf -
rg -n "TODO|FIXME|\\?\\?|undefined|Citation|Reference" .
```

## Default Output

```markdown
## Gate Result

## Blocking Issues

## Fix Before Upload

## Acceptable Risks

## Submission Files
```
