\endcsname 和多重定義的標籤。

\endcsname 和多重定義的標籤。

我對 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.

相關內容