子數方程式在一行文字後繼續

子數方程式在一行文字後繼續

如同問題(但不足以重複),我試圖得出一個定理,其中一些方程式之間有一行文本,並且我希望子編號能夠繼續穿過它們。 IE

x = y + 1 (1)

可以證明x = 4,因此

y = 3 (1a)

(忽略非右對齊的編號)

如果我嘗試連結問題中的方法(使用\begin{subequations}tag{}),我似乎無法讓編號繼續如上,而是編號重置(下面的範例)

\begin{subequations}\label{eq:foo}
\begin{alignat}{2}
x = y + 1  \tag{\ref{eon:foo}} \\
\text{It can be shown that x = 4, therefore} \\
y = 3  
\end{alignat}
\end{subequations}

給予

x = y + 1 (1)

可以證明 x = 4,因此 (1a)

y = 3 (1b)

如何讓編號繼續?

提前致謝。

答案1

歡迎來到 TeX.SE。這是一個快速答案,但它不是一個有很大誠意的好答案,因為您應該為和subequations方程式添加一個新的計數器。

在此輸入影像描述

\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\begin{subequations}\label{eq:foo}
\begin{alignat}{2}
x = y + 1  \tag{1} \\
\intertext{It can be shown that $x = 4$, therefore} \nonumber\\
y = 3  
\end{alignat}
\end{subequations}
\end{document}

相關內容