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>
\par
l.12
Please, can anyone see the mistake in this?
\documentclass[a4paper,11pt]{report}
\usepackage[T1]{fontenc}
\usepackage[czech,english]{babel}
\usepackage[cp1250]{inputenc}
\usepackage{amssymb, amsmath}
\usepackage{epsfig}
\usepackage[a4paper]{geometry}
\usepackage{natbib}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{a4wide}
\usepackage{array}
\usepackage{paralist}
\usepackage{verbatim}
\usepackage{subfig}
\usepackage{natbib}
\usepackage{wrapfig}
\usepackage{xcolor}
\usepackage{index}
\usepackage[linktoc=all]{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
figureenvironment. – Mico Apr 13 '13 at 20:18l.12which means the error occurred on line 12. I assume you have\inputor\included files. Have a look in the log file to see what's the last named file before that error. That will help trace where the error occurs so that you can create a MWE – Nicola Talbot Apr 13 '13 at 21:35\includefiles and then add hyperref make sure you delete all the the.auxfiles, or do not use\includeonlyfor one run so fresh ones get generated. (unrelated but don't loadepsfigunless you need compatibility with the LaTeX2.09 package of that name ie documents from 1980's) – David Carlisle Apr 13 '13 at 22:08.auxfiles, then try again. – barbara beeton Apr 13 '13 at 22:29-file-line-errorand compile from the terminal, it should tell you which file has the problematic code. – jon Apr 13 '13 at 22:48.auxfile is likely: deleting it and re-running LaTeX may well solve the issue. – Joseph Wright Aug 13 '13 at 07:34