LaTeX forum ⇒ GeneralListoffigures prevents compiling Topic is solved

LaTeX specific issues not fitting into one of the other forums of this category.
diamond_kid
Posts: 2
Joined: Wed Jul 10, 2013 11:38 pm

Listoffigures prevents compiling

Postby diamond_kid » Wed Jul 10, 2013 11:50 pm

Hello,
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:

! pdfTeX error (ext1): \pdfendlink cannot be used in vertical mode.
\close@pdflink ...\Hy@VerboseLinkStop \pdfendlink
l.18 ...5}{\ignorespaces \@@par }}{18}{figure.2.5}


And this is the code of the master tex-file. If other information is needed, just say it :)

\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}


Thanks in advance!

cheers, Patrick

\EDIT: Maybe the packages I use, can be helpful.

\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} 

User avatar
sommerfee
Posts: 500
Joined: Mon Apr 09, 2007 4:20 pm

Postby sommerfee » Thu Jul 11, 2013 7:34 am

diamond_kid wrote:! pdfTeX error (ext1): \pdfendlink cannot be used in vertical mode.
\close@pdflink ...\Hy@VerboseLinkStop \pdfendlink
l.18 ...5}{\ignorespaces \@@par }}{18}{figure.2.5}


There is a problem with your \caption of Figure 2.5, I assume you use a fragile command in there which needs protection.

Comment out this caption, delete your .aux and .lof file, and try again. If you can compile your document twice now, take a closer look at the \caption you have commented out to see what's wrong with it.

diamond_kid
Posts: 2
Joined: Wed Jul 10, 2013 11:38 pm

Postby diamond_kid » Thu Jul 11, 2013 8:53 pm

You are right, I used \textcolor with a self-defined color and that caused the problem. \protect fixed the problem, thanks a lot!


Return to “General”

Who is online

Users browsing this forum: No registered users and 8 guests