\endcsname と複数定義されたラベル。

\endcsname と複数定義されたラベル。

私は LaTeX を使い始めたばかりですが、LaTeX を使用していくつかの文書を作成しましたが、大きなエラーはありませんでした。現在、論文を書いているのですが、図を挿入するとエラーが発生します。

エラーの原因となるコードは次のとおりです。

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

主に $\alpha$ の部分だと思いますが、これは図のリストに含まれているためと思われます。

また、ラベルが複数定義されていることにも気付きました。

[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.

関連情報