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 :)

  1. \documentclass[a4paper,twoside,english,12pt]{scrbook}
  2.  
  3.  
  4. \input{formal/packages}
  5. \input{formal/pagestyle}
  6.  
  7. \makeindex
  8. \hfuzz=20pt
  9. \vfuzz=20pt
  10. \pagenumbering{alph}
  11. \selectlanguage{english}
  12.  
  13. \begin{document}
  14. \addtokomafont{captionlabel}{\sffamily\bfseries}\setcapindent{0pt}
  15. \renewcommand{\tocetcmark}[1]{\markboth{#1}{#1}}
  16.  
  17. \input{formal/startpages}
  18. \input{summary}
  19. \input{zusammenfassung}
  20. \tableofcontents
  21. \input{abbriviations}
  22.  
  23. \cleardoublepage
  24. \pagenumbering{arabic}
  25.  
  26. \input{introduction}
  27. \input{theory}
  28. \input{experiment}
  29. \input{results}
  30. \input{outlook}
  31.  
  32. \begin{appendix}
  33. \cleardoublepage
  34. \pagenumbering{Alph}
  35. \input{appendix}
  36. \input{formal/bibliography}
  37. \listoffigures
  38. \input{formal/index}
  39. \input{formal/endpages}
  40. \end{appendix}
  41. \end{document}


Thanks in advance!

cheers, Patrick

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

  1. \usepackage{graphicx}
  2. \usepackage{color}
  3. \usepackage{subfigure}
  4. \usepackage[chapter,numbib]{tocbibind}
  5. \setcounter{tocdepth}{2}
  6. \setlength\belowcaptionskip{15pt}
  7.  
  8. \usepackage{supertabular}
  9. \usepackage{fancyhdr}
  10. \usepackage{fancybox}
  11. \usepackage{wrapfig}
  12. \usepackage{picinpar}
  13.  
  14. \usepackage{amsmath}
  15. \usepackage{amssymb}
  16. \usepackage{upgreek}
  17. \usepackage{pifont}
  18. \usepackage{textcomp}
  19.  
  20. \usepackage{scrtime}
  21. \usepackage[numbers,sort&compress]{natbib}
  22. \usepackage{makeidx}
  23. \usepackage[english,german]{babel}
  24. \usepackage{units}
  25.  
  26. \usepackage{color}
  27. \definecolor{darkblue}{rgb}{0,0,0.5}
  28. \definecolor{lila}{rgb}{0.3,0,0.3}
  29. \definecolor{turq}{rgb}{0,0.1,0.4}
  30.  
  31. \usepackage{url}

Link:
BBcode:
HTML:
Hide post links
Show post links

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

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.

Link:
BBcode: Topic is solved[/url]" title="Click to select post's link in BBcode format" onclick="this.focus();this.select();" />
HTML: Topic is solved</a>" title="Click to select post's link in HTML format" onclick="this.focus();this.select();" />
Hide post links
Show post links

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!

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “General”

Who is online

Users browsing this forum: Google [Bot] and 9 guests