What is the best way to find the source of error Paragraph ended before \underline was complete.? As far as I know this could be any missing parentheses whatsoever. I got several files for text that I merge in a main file. I tried to isolate the source of error by commenting out each file one by one but the error persists, what I don't understand to be honest.

Do you have any suggestions?

  • 2
    Hi dude, have a closer look at your log file, it probably tells you a line number and the file it is processing right now. Maybe the error is in an auxiliary file. A simple algorithm helps you to find the cause. – Johannes_B May 26 '16 at 7:45
  • 3
    Keep doing what you've already started: Remove bit by bit until you're left with the smallest piece of code that reproduces the error. Essentially the process of creating a minimal working example (MWE) – Torbjørn T. May 26 '16 at 7:46
  • Crosspost – Johannes_B May 26 '16 at 7:51
  • 3
    The log file tells you which file and what line the error is on. – David Carlisle May 26 '16 at 7:52
  • If you run latex with the -file-line-error option, it will show the filename and line number at the start of the error message. – Nicola Talbot May 27 '16 at 17:51

Paragraph ended before \underline was complete.: You want to underline something but the argument of \underline{...} has an empty line, which is the end of a paragraph. But \underline works only inside one paragraph. In most cases one has forgotten the corresponding closing }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.