# Problems with undefined control sequence in list of figures

I'm using TeXLive 2011. I had a lot of problems with compiling my large document yesterday and finally seemed to have gotten back to a working version, however now I get strange error messages in the list of figures like

[5 ./Diss.lof:61: Undefined control sequence. ...skip \abovedisplayskip \let \sml@listi =\leftmargin \leftmargini ... l.61 ...S.~391]{Johannaber2004}}}{49}{figure.2.10}

or

[5 ./Diss.lof:61: Undefined control sequence. ...skip \abovedisplayskip \let \sml@listi =\leftmargin \leftmargini ... l.61 ...te [S.~6ff]{Starke2004}}}{51}{figure.2.10}

The corresponding code in the lof file looks like that:

\contentsline {figure}{\numberline {\relax 2.10}{\ignorespaces Ursachen f\"ur Ma\IeC {\ss }abweichungen des Spritzgie\IeC {\ss }werkzeugs beim Kunststoffspritzguss nach~\textcite [S.~6ff]{Starke2004}}}{51}{figure.2.10}


I'm sorry, that at the moment I can not provide a minimal example, can someone explain, what this undefined control sequences are about? It seems to be a cite command in a caption.

EDIT

after Herbert's suggestion, I modified the source in the following way and removed all aux, lof, lot etc. files:

\caption[pure text without any command]{text with~\protect\textcite[][]{}}


But the problem persists:

[5 ! Undefined control sequence. ...skip \abovedisplayskip \let \sml@listi =\leftmargin \leftmargini ... l.61 ...te [S.~6ff]{Starke2004}}}{51}{figure.2.10}

I'm using the scrbook class (komascript). I'll try to set up a minimal example asap.

-
You should at least tell the class you're using. – egreg Jan 11 '12 at 11:52
@egreg: sorry, I'll edit the question – Martin Jan 11 '12 at 12:06

use \protect\textcite{} in your caption or better

\caption[entry for the lof without (!) \textcite]{... \protect\textcite{...} ...}


and delete the *.lof file for the next run otherwise you'll get always the same error again.

-
thank you. I'm just confused, because I've been using cite and citet and also citeauthor for a long time in captions without any problem (and without \protect). Is there any difference between them and \textcite (biblatex package)? – Martin Jan 11 '12 at 11:31
the \protect does not solve the problem, see my edit – Martin Jan 11 '12 at 11:43
yes, I deleted all auxiliary files before the next runs. The problem occurs in the 2nd pdflatex run. – Martin Jan 11 '12 at 12:08
delete the cite command, delete all auxiliary files and run pdflatex twice. Did you get the error? – Herbert Jan 11 '12 at 12:11
That line cannot be the problem and there is no other way than creating a minimal example. Move the \end{document} up until the error is gone. – Herbert Jan 11 '12 at 13:19
I wanted to change the size of fixme´ annotations tosmall and tried like that
\usepackage[draft, silent=true]{fixme}
`