I'm writing my bachelor thesis at the moment and I encountered a problem regarding \listoffigures.
I wrote different tex-files and \input them all togheter and the list of figures worked at the beginning, but suddenly an error occured. If I comment the command out, everything works fine. But now, even if I comment everything out, it won't compile.
This is the error message:
And this is the code of the master tex-file. If other information is needed, just say it! pdfTeX error (ext1): \pdfendlink cannot be used in vertical mode.
\close@pdflink ...\Hy@VerboseLinkStop \pdfendlink
l.18 ...5}{\ignorespaces \@@par }}{18}{figure.2.5}

Code: Select all
\documentclass[a4paper,twoside,english,12pt]{scrbook}
\input{formal/packages}
\input{formal/pagestyle}
\makeindex
\hfuzz=20pt
\vfuzz=20pt
\pagenumbering{alph}
\selectlanguage{english}
\begin{document}
\addtokomafont{captionlabel}{\sffamily\bfseries}\setcapindent{0pt}
\renewcommand{\tocetcmark}[1]{\markboth{#1}{#1}}
\input{formal/startpages}
\input{summary}
\input{zusammenfassung}
\tableofcontents
\input{abbriviations}
\cleardoublepage
\pagenumbering{arabic}
\input{introduction}
\input{theory}
\input{experiment}
\input{results}
\input{outlook}
\begin{appendix}
\cleardoublepage
\pagenumbering{Alph}
\input{appendix}
\input{formal/bibliography}
\listoffigures
\input{formal/index}
\input{formal/endpages}
\end{appendix}
\end{document}
cheers, Patrick
\EDIT: Maybe the packages I use, can be helpful.
Code: Select all
\usepackage{graphicx}
\usepackage{color}
\usepackage{subfigure}
\usepackage[chapter,numbib]{tocbibind}
\setcounter{tocdepth}{2}
\setlength\belowcaptionskip{15pt}
\usepackage{supertabular}
\usepackage{fancyhdr}
\usepackage{fancybox}
\usepackage{wrapfig}
\usepackage{picinpar}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{upgreek}
\usepackage{pifont}
\usepackage{textcomp}
\usepackage{scrtime}
\usepackage[numbers,sort&compress]{natbib}
\usepackage{makeidx}
\usepackage[english,german]{babel}
\usepackage{units}
\usepackage{color}
\definecolor{darkblue}{rgb}{0,0,0.5}
\definecolor{lila}{rgb}{0.3,0,0.3}
\definecolor{turq}{rgb}{0,0.1,0.4}
\usepackage{url}