以下是最小的不起作用的示例:
\documentclass[12pt,letterpaper]{article}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
\begin{align}
\nonumber \label{SR1} &\text{Rho-DNA} \mathrel{\mathop{\longrightarrow}^{k_1}} \text{Rho}\quad&&\text{SR1} \\
\nonumber \label{SR2} &\text{Rho} + \text{GDP} \mathrel{\mathop{\longrightarrow}^{k_2}} \text{Rho-GDP}\quad&&\text{SR2} \\
\nonumber \label{SR3} &\text{Rho-GDP} + \text{GDI} \mathrel{\mathop{\longleftrightarrow}^{k_3}_{k_4}} \text{Rho-GDI}\quad&&\text{SR3} \\
\nonumber \label{SR4} &\text{Rho-GDP} + \text{GTP} \mathrel{\mathop{\rightarrow}^{k_5}} \text{Rho-GTP} + \text{GDP}\quad&&\text{SR4} \\
\end{align}
\end{document}
我收到的错误是:
line 0: Package amsmath Error: Multiple \label's: label 'SR1' will be lost
line 0: Package amsmath Error: Multiple \label's: label 'SR3' will be lost
问题是什么?
答案1
您可能为此目的使用了错误的工具。
如果您想要一个唯一的编号,则可以使用表格;如果您希望将标签视为方程式编号,则可以align
一起使用表格。\tag
\documentclass[12pt,letterpaper]{article}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{chemformula}
\begin{document}
\begin{equation}
\renewcommand{\arraystretch}{2}
\begin{tabular}{ll}
\ch{"Rho-DNA" ->[$k\sb1$] "Rho"} & \text{SR1} \\
\ch{"Rho" + "GDP" ->[$k\sb2$] "Rho-GDP"} & \text{SR2} \\
\ch{"Rho-GDP" + "GDI" <->[$k\sb3$][$k\sb4$] "Rho-GDI"} & \text{SR3} \\
\ch{"Rho-GDP" + "GTP" ->[$k\sb5$] "Rho-GTP" + "GDP"} & \text{SR4}
\end{tabular}
\end{equation}
\begin{align}
&\ch{"Rho-DNA" ->[$k\sb1$] "Rho"} \tag{SR1}\label{SR1} \\
&\ch{"Rho" + "GDP" ->[$k\sb2$] "Rho-GDP"} \tag{SR2}\label{SR2} \\
&\ch{"Rho-GDP" + "GDI" <->[$k\sb3$][$k\sb4$] "Rho-GDI"} \tag{SR3}\label{SR3} \\
&\ch{"Rho-GDP" + "GTP" ->[$k\sb5$] "Rho-GTP" + "GDP"} \tag{SR4}\label{SR4}
\end{align}
\end{document}