1. Start from a thesis template
Don't start from an empty file. Check first whether your university or department has an official template: it already has the title page, the margins and the bibliography style the committee expects. If it has none, start from a general thesis template built on the book, report or KOMA-Script scrbook class.
- Use book or scrbook for a thesis with chapters, a front matter and a bibliography; report is enough for a shorter dissertation.
- Set the paper, the font size and one-sided or two-sided printing once, in the options of the class.
- Keep the packages and your own macros in one settings file, so the main file stays readable.
2. Split the thesis into files
Keep one file per chapter and a short main file that puts them in order. The main file reads like the table of contents of the thesis, and two people can work on two chapters without getting in each other's way.
- \include starts a new page and is meant for chapters; \input pastes a file where it is, and suits the title page, the abstract and the settings.
- \frontmatter numbers the pages in Roman numerals, \mainmatter restarts in Arabic numerals, \backmatter stops numbering the chapters.
- Put the images in one folder and the chapters in another: paths stay short and predictable.

3. Figures, tables and cross-references
Give every figure and table a caption and a label, and refer to them with \ref instead of typing the number. LaTeX renumbers everything when you move a figure or add a chapter.
- Choose a prefix for each kind of label, such as fig:, tab:, sec: and eq:, and keep to it.
- Put \label after \caption, or the reference will point to the section instead of the figure.
- Use vector images (PDF) for plots and diagrams, so they stay sharp in print.
- In tables, the booktabs rules (\toprule, \midrule, \bottomrule) are the standard in scientific writing.
4. The bibliography
Keep the references in a .bib file and let LaTeX format them. With biblatex and Biber you choose the style in one line and change it later without touching the entries.
- Use keys you can remember, such as the first author and the year.
- Take the entries from the publisher or from a database such as dblp instead of typing them: fewer mistakes in authors and page numbers.
- Check which citation style your department requires before you choose between numeric and author-year.

5. Compile a long document
A thesis with a few hundred pages, many figures and a large bibliography takes longer to compile than an article, and it needs several passes before the table of contents and the references settle.
- Compile often: an error is easy to find when you have just written the line that caused it.
- Read the first error first. The ones that follow are often its consequences.
- When the PDF seems stuck on an error you already fixed, rebuild everything from scratch.
- Use LuaLaTeX if you need OpenType fonts with fontspec; otherwise pdfLaTeX is the default.
6. Work with your supervisor
A thesis goes back and forth many times. Decide early how your supervisor will read each draft and how you will collect the comments, so that nothing is lost in email attachments.

Save a version every time you send a draft, with a title such as First submission to the supervisor. For the next draft you can then show exactly what changed.

7. Before you submit
Go through this list on the final version, a few days before the deadline.
- Compile from scratch and check that no error is left.
- Read the warnings: undefined references and citations show as ?? or as a key in bold in the PDF.
- Hide the notes and replace every placeholder with the real citation or reference.
- Check the title page against the rules of your university: names, academic year, logo.
- Look at the table of contents and the lists of figures and tables for titles that are too long or missing.
- Run the spell check on every chapter.
- Save a version, download the PDF and download the project as a zip.