Writing Your Thesis or Dissertation in LaTeX: A Complete Guide
To write a thesis in LaTeX, use the report or book document class, split each chapter into its own file with \include, and let LaTeX generate your table of contents, list of figures, and bibliography automatically. The safest way to do this without losing months of work to a broken local install is a cloud editor like LetX, where your document is saved, versioned, and always compiles.
A thesis is the single largest document most students ever write — often 100+ pages with dozens of figures, equations, and hundreds of citations. This is exactly the kind of document LaTeX was built for. Here's how to structure it.
Why LaTeX Wins for Long Documents
Word processors buckle under the weight of a dissertation: numbering breaks, figures drift, and the file becomes slow and corruptible. LaTeX handles all of it:
- Automatic numbering for chapters, sections, equations, figures, and tables.
- A table of contents, list of figures, and list of tables generated with one command each.
- Stable cross-references — refer to "Figure 4.2" and it's always correct.
- Rock-solid citations through BibTeX, even with 300+ references.
1. Use a Multi-File Structure
Never write a thesis in one giant file. Use a main file that pulls in each chapter:
\documentclass[12pt,oneside]{report}
\usepackage{graphicx}
\usepackage[margin=1.5in]{geometry}
\usepackage{setspace}
\doublespacing
\begin{document}
\include{frontmatter/titlepage}
\tableofcontents
\listoffigures
\listoftables
\include{chapters/introduction}
\include{chapters/literature-review}
\include{chapters/methodology}
\include{chapters/results}
\include{chapters/conclusion}
\bibliographystyle{apalike}
\bibliography{references}
\end{document}Each \include points to a separate .tex file, so you can work on one chapter at a time without scrolling through the whole thesis.
Because each chapter lives in its own file, you can comment out \include lines to compile just the chapter you're editing — a huge time-saver on a 200-page document.
2. Meet Your University's Formatting Rules
Most universities dictate margins, line spacing, and a title page format. LaTeX makes these trivial:
\usepackage[margin=1.5in]{geometry} % common thesis margin
\usepackage{setspace}
\doublespacing % or \onehalfspacingMany institutions publish an official thesis class file (e.g. ucbthesis.cls). Drop it in your project and your document conforms automatically.
3. Generate the Front Matter
The table of contents, list of figures, and list of tables are one line each and update on every compile:
\tableofcontents
\listoffigures
\listoftablesCross-references and the table of contents need two compilation passes to resolve page numbers. Cloud editors like LetX handle this for you automatically so your ToC is always up to date.
4. Handle Hundreds of Citations
A .bib file scales effortlessly. Cite by key and BibTeX formats and orders the entire reference list to your required style:
As demonstrated in prior work \cite{jones2024, smith2025}, the effect persists.5. Protect Your Work
The worst thesis horror stories are lost files and last-minute compile failures. Writing in LetX means:
- Your document is saved continuously in the cloud.
- It always compiles — the environment is pre-configured with a full TeX distribution.
- Your advisor can comment on the live document instead of marking up printed pages.
Start Your Thesis the Right Way
Set up your multi-file structure once and you'll write for months without fighting your tools. Don't risk a local install breaking the week before your deadline.
Start writing your thesis for free at LetX.app.