Your thesis compiles, the PDF looks fine, and the deadline is close. Before you upload it, spend twenty minutes on the log file. LaTeX quietly tells you about problems that are easy to miss on screen and very easy for an examiner to spot on paper.
Here are the eight warnings and errors worth fixing before you submit, what each one means, and how to fix it.
How to read the log quickly
Open thesis.log (in Overleaf: the Logs and output files button) and search for three words: Warning, Overfull and undefined. That finds almost everything below. If you compile with latexmk, run it once more at the end so cross-references and citations are settled.
1. Reference 'fig:results' on page 12 undefined
In the PDF this shows up as ??. Either the label doesn't exist, it's spelled differently, or LaTeX hasn't had a second pass yet.
- Compile twice (or let
latexmkdo it). - Check that
\labelcomes after\captioninside the figure or table. A label before the caption points at the section, not the figure. - Search the source for the exact label text.
fig:resultandfig:resultsare different labels.
2. Citation 'rodell2009' on page 4 undefined
In the PDF: [?] or a bold key. The key isn't in your .bib, or BibTeX/Biber didn't run.
- Check the key spelling in the
.bibfile. - Make sure the backend matches your setup:
biblatexusually wants Biber,natbiband plain\bibliography{}use BibTeX. - Delete the auxiliary files (
.aux,.bbl,.bcf) and compile from scratch if things look stuck.
3. Overfull \hbox (14.2pt too wide) in paragraph at lines 210--214
Something sticks out into the right margin: a long URL, an unbreakable word, an inline equation or a table.
- Add
draftto your document class options for one compile (\documentclass[draft]{report}). LaTeX draws a black box at the end of every overfull line, so you can find them by scrolling. - For URLs, load
xurl(orurlwith\Urlmuskip), so long links can break. - For wide tables, see the fixes in point 6.
A few points too wide is invisible; anything over about 5pt is usually worth fixing.
4. Underfull \hbox (badness 10000)
Usually caused by \\ used to end paragraphs, or by a very narrow column. It rarely shows in print, but a long run of them often means \\ where a blank line should be. Use a blank line to start a new paragraph and \\ only inside tables and similar environments.
5. LaTeX Font Warning: Font shape 'T1/cmr/m/scit' undefined
LaTeX couldn't find the exact font you asked for (here, small caps italic) and substituted another. Usually harmless, but check the pages it mentions: a missing bold or italic can make emphasis disappear. Loading lmodern with \usepackage[T1]{fontenc} avoids many of these.
6. Float too large for page by 38.5pt
A figure or table is taller than the text area. LaTeX may push it to the end of the chapter.
- Scale the figure:
\includegraphics[width=\linewidth]{...}, or reduce the height. - For tables: let text columns wrap with
tabularxand anXcolumn, use\smallinside the table, or reduce\tabcolsep. - For very wide tables,
sidewaystablefrom therotatingpackage turns the table onto its side. - Use
\resizeboxonly as a last resort: it shrinks fonts by a different amount in every table.
7. Unicode character − (U+2212) not set up for use with LaTeX
You pasted text from a PDF. PDFs often store the minus sign as U+2212 (and ligatures such as "fi" as one character), which pdfLaTeX doesn't know.
- Retype it as
$-0.5$in maths mode, or - declare it once in the preamble:
\DeclareUnicodeCharacter{2212}{\ensuremath{-}}
- or compile with LuaLaTeX or XeLaTeX and a Unicode font.
8. There were multiply-defined labels
Two things share one label, so some cross-references point at the wrong place. This often happens after copying a figure environment and forgetting to change the label. Search the log for multiply defined to find the label name, then rename one of them.
Then check the PDF, not just the log
The log won't tell you about:
- figures and tables that are never mentioned in the text,
-
TODO,XXor comments left in the text, - a table with a wrong number in it.
Scroll through the final PDF page by page. Search it for ??, [?], TODO and XX.
Fewer warnings from the start
Most of these warnings come from content pasted in by hand: tables retyped from papers, equations copied from PDFs, reference lists assembled from several sources. If you take tables, equations, plots and reference lists from PDFs often, CatchTeX snips them into LaTeX and compiles every result with a built-in pdfLaTeX before you copy it. It runs offline on Windows, Mac and Linux, and the free edition gives you 10 snips a day. Disclosure: I build it.
Good luck with the submission.
Top comments (0)