# \endcsname and multiply-defined labels. [closed]

I am fairly new to latex but have written a few documents using it, with no major errors. I am currently writing my dissertation and after inserting a figure I generate an error.

Here is the code causing the error:

\begin{figure}[h]
\centering
\includegraphics[width=0.5\textwidth]{helix.jpg}
\caption{$\alpha$ -helix formation}
\label{fig:$\alpha$ -helix formation}
\end{figure}


I think mainly the $\alpha$ parts, and it seems to be due to it being included within a list of figures.

I have also just noticed it says I have multiply-define labels.

[5] [6] (./DissertationLayout.aux
./DissertationLayout.aux:38: Missing \endcsname inserted.
<to be read again>
\alpha
l.38 ...ha $-helix formation\relax }{figure.3}{}} ? ./DissertationLayout.aux:38: Missing$ inserted.
<inserted text>
$l.38 ...ha$ -helix formation\relax }{figure.3}{}}

?
./DissertationLayout.aux:38: Extra \endcsname.
\@newl@bel ... \bbl@tempa \csname #1@#2\endcsname
\def \bbl@tempb {#3}\@safe...
l.38 ...ha \$ -helix formation\relax }{figure.3}{}}

?
)

LaTeX Warning: There were multiply-defined labels.

-

## closed as too localized by Claudio Fiandrino, Mico, mafp, Kurt, ThorstenApr 5 '13 at 12:19

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

do not use the math stuff inside a label. USe something like \label{fig:alpha-helix-formation} and prevent spaces in labels –  Herbert Apr 5 '13 at 11:24
Thank you! I was mistaken in thinking the label was the thing being shown within my list of figures, I now know they are used for cross-referencing. –  Carl Wright Apr 5 '13 at 11:35
@CarlWright: if the problem is solved do you mind if we close this as "too localized"? –  Claudio Fiandrino Apr 5 '13 at 11:40