TeXpad

LaTeX error: Runaway argument (Paragraph ended before … was complete)

A command argument started with { and TeX kept reading, looking for the matching }, until it hit a blank line (a new paragraph) or the end of the file. "Runaway argument?" is followed by the text it swallowed, which starts right where the brace opened.

Runaway argument? ! File ended while scanning use of \textbf.

Try it: this example has the error

Press Fix it in the error box, and it compiles to a PDF. What pdfTeX printed for it:

Runaway argument?
{very important text. \par Next paragraph here. \end {document} 
! File ended while scanning use of \textbf .
<inserted text>
or paste your own document

Ready. Press Compile (or Ctrl/Cmd + Enter).

Open in the full editor →

Common causes

How to fix it

  1. Look at the first words after "Runaway argument?": the opening brace is just before them.
  2. Add the missing } where the argument should end.
  3. TeXpad points at the line where the brace opened and offers to close it there.

Related errors