错误:多重定义的标签

错误:多重定义的标签

下面给出的示例给出了此错误。!SIAM 标签错误:存在多重定义的标签。更正多重定义的标签。

\documentclass[final,leqno,onefignum,onetabnum]{siamltex1213}
\usepackage{amsmath}
\usepackage{subfig}
\title{USING SIAM'S \LaTeX\ MACROS\thanks{This work was
supported by the Society for Industrial and Applied
Mathematics}}
\begin{document}
\maketitle

\section{example}

\begin{figure}[H]
\subfloat[Read Availability (13 copies)]{\includegraphics[width=3in]{readavail13.jpg}}
\label{Worst Quorum Size}
\hfil
\subfloat[Read Availability (40 copies)]{\includegraphics[width=3in]{readavail40.jpg}}
\label{Optimal Quorum Size}
\caption{Read Availability}
\label{ra}
\end{figure}


\begin{figure}[H]
\subfloat[Write Availability (13 copies)]{\includegraphics[width=3in]{writeavailthrt.jpg}}
\label{Worst Quorum Size}
\hfil
\subfloat[Write Availability (40 copies)]{\includegraphics[width=3in]{writeavailforty.jpg}}
\label{Optimal Quorum Size}
\caption{Write Availability}
\label{figsim}
\end{figure}
\end{document} 

所有定义的标签都是唯一的,并且不会重复。siamlatex1213.cls文件可以在以下位置找到http://www.siam.org/journals/auth-info.php

答案1

它应该是一条注释,但是代码太长了。

\documentclass[final,leqno,onefignum,onetabnum]{siamltex1213}
\usepackage{amsmath}
\usepackage{subfig}
\title{USING SIAM'S \LaTeX\ MACROS\thanks{This work was
supported by the Society for Industrial and Applied
Mathematics}}
\begin{document}
\maketitle

\section{example}

\begin{figure}[H]
\subfloat[Read Availability (13 copies)]{\includegraphics[width=3in]{readavail13.jpg}}
\label{Worst Quorum Size}
% The first occurence of this label
\hfil
\subfloat[Read Availability (40 copies)]{\includegraphics[width=3in]{readavail40.jpg}}
\label{Optimal Quorum Size}
% The first occurence of this label
\caption{Read Availability}
\label{ra}
\end{figure}


\begin{figure}[H]
\subfloat[Write Availability (13 copies)]{\includegraphics[width=3in]{writeavailthrt.jpg}}
\label{Worst Quorum Size}
% The second occurence of this label
\hfil
\subfloat[Write Availability (40 copies)]{\includegraphics[width=3in]{writeavailforty.jpg}}
\label{Optimal Quorum Size}
% The second occurence of this label
\caption{Write Availability}
\label{figsim}
\end{figure}
\end{document} 

相关内容