Featured Book

LaTeX Beginners Guide

Who is online

In total there are 15 users online :: 1 registered, 0 hidden and 14 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: Bing [Bot] and 14 guests

Listoffigures prevents compiling Topic is solved

captionsfragileAdd tags LaTeX specific issues not fitting into one of the other forums of this category.

Listoffigures prevents compiling

Postby diamond_kid on Wed Jul 10th, 2013

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

Code: Select all  •  Open in writeLaTeX
\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.

Code: Select all  •  Open in writeLaTeX
\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
}
diamond_kid
 
Posts: 2
Joined: Wed Jul 10th, 2013

Re: Listoffigures prevents compiling  Topic is solved

Postby sommerfee on Thu Jul 11th, 2013

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.
User avatar
sommerfee
 
Posts: 493
Joined: Mon Apr 9th, 2007

Re: Listoffigures prevents compiling

Postby diamond_kid on Thu Jul 11th, 2013

You are right, I used \textcolor with a self-defined color and that caused the problem. \protect fixed the problem, thanks a lot!
diamond_kid
 
Posts: 2
Joined: Wed Jul 10th, 2013


Topic Tags

captionsfragile

Return to General

Who is online

Users browsing this forum: Bing [Bot] and 14 guests