我想使用 align 和 text 删除某些方程的编号(参见 MWE)。我已阅读此页面上的许多帖子,并尝试在第二个方程的末尾添加\nonumber
和,但收到了错误消息。 任何建议都会有所帮助。\notag
“软件包 amsmath 错误:多个 \label:标签‘Equ:ConeAng’将丢失。\end{align}”带有 \notag
\documentclass[english,10pt,letterpaper]{article}
\usepackage{array}
\usepackage{babel}
\usepackage{mathtools}
\begin{document}
\begin{align}
\shortintertext{Radial difference outside diameter and inside diameter of the cone. (in)}
C &= \cfrac{B-A}{2} \label{Equ:C} = \;B'-A'
\intertext{Cone angle. (degrees)}
E &= tan^{-1}\left(\cfrac{C}{D}\right) \label{Equ:ConeAng}
\intertext{Diagonal length of flat cone. (in)}
F &= \cfrac{C}{sin(E)} \label{Equ:DiagL}
\end{align}
\end{document}
答案1
\label
在未编号的方程式中不起作用。的方程式环境需要amsmath
对支持进行一些特殊处理\label
,这会将\label
命令限制为每个编号方程式一个。如果没有\label
,命令\nonumber
或\notag
将起作用:
\documentclass[english,10pt,letterpaper]{article}
\usepackage{array}
\usepackage{babel}
\usepackage{mathtools}
\begin{document}
\begin{align}
\shortintertext{Radial difference outside diameter and inside diameter of the co
C &= \cfrac{B-A}{2} \label{Equ:C} = \;B'-A'
\intertext{Cone angle. (degrees)}
E &= \tan^{-1}\left(\cfrac{C}{D}\right) \nonumber
\intertext{Diagonal length of flat cone. (in)}
F &= \cfrac{C}{\sin(E)} \label{Equ:DiagL}
\end{align}
\end{document}