My problem is that if I try to recompile a text after correction of some mistake, e.g. missing "}", the I get a message
Runaway argument?
{\contentsline {figure}{\numberline {\relax 3.9}{\ignorespaces
! File ended while scanning use of \@writefile.
l.128 \begin{document} \par
Then I delete the *.aux file and other auxiliary files and so I can recompile without any problem. Howewer if again I get a mistake, compile the text,get an error message, stop compiling, fix an error in the text and try to recompile, again I will get the same "File ended while scanning use of \@writefile." and again the only one way is to delete the auxiliary files. Any suggestions how to fix the problem?
\centering \includegraphics[width=0.8\linewidth]{Off-Spec_Kinematics} \caption{ Scheme of GI off-specular scattering kinematics. Modified from \cite{Zabel2007handbook} } \label{Off-Spec_Kinematics} \end{figure} – redspirit Jun 11 '14 at 23:14
linebreak:" what does it means? – redspirit Jun 11 '14 at 23:23
\citecommand should not be a cause for the error; however this depends on what packages you load, because usually\citewill not be a problem in\caption. A minimal working example (MWE) is needed. – egreg Jun 12 '14 at 06:54