如何删除子方程中的方程标签?

如何删除子方程中的方程标签?

我有以下命令来创建 2 行方程。第一行包含 4 个方程,因此应标记为 (1a-d)。第二行包含 2 个方程,因此应标记为 (1f-e)。但由于子方程具有自动标记,因此会破坏一切。

{\begin{subequations}\label{eq:1}
\begin{equation}
\refstepcounter{equation}\tag{\theequation a-d}\
\bar{\eta}_1(\frac{\mathcal{L}}{2}) = \bar{\eta}_3(0), \qquad \frac{\partial \bar{\eta}_1}{\partial X}(\frac{\mathcal{L}}{2}) = \frac{\partial \bar{\eta}_3}{\partial X}(0), \qquad \eta(\frac{\mathcal{L}}{2})=0, 
\end{equation}
\begin{equation}
\refstepcounter{equation}\tag{\theequation e-f}\
\qquad \eta(0) = \bar{\eta}_1(0) = \frac{1}{2}.
\bar{\eta}_3(\infty)=0.
\end{equation}
\end{subequations}}

答案1

使用\ref

\documentclass{article}
\usepackage{amsmath}

\newcommand{\pder}[2]{\frac{\partial #1}{\partial #2}}

\begin{document}

Here are six equations grouped in a fancy way
\begin{subequations}\label{double}
\begin{gather}
\bar{\eta}_1\Bigl(\frac{\mathcal{L}}{2}\Bigr) = \bar{\eta}_3(0), \qquad
\pder{\bar{\eta}_1}{X}\Bigl(\frac{\mathcal{L}}{2}\Bigr) = \pder{\bar{\eta}_3}{X}(0), \qquad
\eta\Bigl(\frac{\mathcal{L}}{2}\Bigr)=0,
\tag{\ref{double}a--c}
\\
\eta(0) = \frac{1}{2},\qquad
\bar{\eta}_1(0) = \frac{1}{2}, \qquad
\bar{\eta}_3(\infty)=0.
\tag{\ref{double}d--f}
\end{gather}
\end{subequations}
and here is another, just to check that the numbering is in synch
\begin{equation}
0=0
\end{equation}

\end{document}

在此处输入图片描述

相关内容