I tried to add hyperref package, but TexWorks has this error:

Runaway argument?
{\@firstoffive }\fi . \begin {figure}[h!] \centering \includegraphics \ETC.
! Paragraph ended before \Hy@setref@link was complete.
<to be read again> 

Please, can anyone see the mistake in this?

\usepackage{amssymb, amsmath}    

closed as unclear what you're asking by Joseph Wright Aug 13 '13 at 7:33

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    Welcome to TeX.SE! Real quick -- by indenting lines of LaTeX code by four spaces, the material will be "pretty-printed" automatically, making it much easier to read. Please edit your example to create a minimum working example (MWE) that generates the issue you're trying to fix. Much of the preamble material you've posted would appear to be irrelevant to the error you report, which seems to be occurring somewhere inside a figure environment. – Mico Apr 13 '13 at 20:18
  • 7
    If you have any \include files and then add hyperref make sure you delete all the the .aux files, or do not use \includeonly for one run so fresh ones get generated. (unrelated but don't load epsfig unless you need compatibility with the LaTeX2.09 package of that name ie documents from 1980's) – David Carlisle Apr 13 '13 at 22:08
  • 66
    remove all .aux files, then try again. – barbara beeton Apr 13 '13 at 22:29
  • 2
    Without a full MWE, this is unclear as the error could be anywhere. As Barbara comments, a fault in the .aux file is likely: deleting it and re-running LaTeX may well solve the issue. – Joseph Wright Aug 13 '13 at 7:34
  • 1
    Had the same problem six years after the question was posed and removing the .aux files worked for me. I wish the question would be reopened and Barbara Beeton would post the comment as answer so I could upvote it properly. As it is, comments can theoretically vanish at any time. – Trilarion Apr 5 at 10:46

Browse other questions tagged or ask your own question.