
\begin{subequations}
\begin{align}
a_1 x + b_1 &\geq 0 \\
a_2 x + b_2 &\geq 0 \\
a_3 x + b_3 &\geq 0
\end{align}
\end{subequations}
\begin{align}
\therefore x \leq 0
\end{align}
이 코드는 다음을 생성합니다.
번호 매기기는 내가 원하는 것이지만 &
코드가 align
환경을 3개로 분할하기 때문에 이러한 표현식은 수평으로 정렬되지 않습니다. 또한 분할로 인해 선 (1c)와 (2), 선 (2)와 (3) 사이의 간격이 다른 것보다 더 큽니다.
(2)가 아닌 (2a) 방정식 번호를 설정하면 이 두 문제는 다음의 방법으로 해결될 수 있습니다.연속 정렬 환경 정렬 및 방정식 번호 매기기 유지, 그런데 위의 상황이 해결될 수 있을까요? 몇 가지 코드를 작성해 보았지만 해결할 수 없었습니다.
답변1
이것은 효과가 있지만 정말로 원하는 것인지 다시 생각해 보아야 합니다.
\renewcommand
방정식 번호에 더 많은 구조가 있는 경우 조정해야 합니다 .
\documentclass{article}
\usepackage{amsmath,amssymb}
\newcommand{\resetparent}[1][0]{%
\stepcounter{parentequation}%
\setcounter{equation}{#1}%
}
\begin{document}
\begin{subequations}%
\renewcommand{\theparentequation}{\arabic{parentequation}}%
\begin{align}
a_1 x + b_1 &\geq 0 \\
a_2 x + b_2 &\geq 0 \\
a_3 x + b_3 &\geq 0 \\
\resetparent[-1]
\therefore x &\leq 0 \\
\resetparent
aaaa_1 x + b_1 &\geq 0 \\
a_2 x + b_2 &\geq 0 \\
a_3 x + b_3 &\geq 0
\end{align}
\end{subequations}
\end{document}