웹을 검색했지만 내 질문에 대한 해결책을 찾을 수 없습니다.
나는 다음과 같은 형식으로 방정식을 작성하려고 합니다.
TYPE a:
A = {mathematics relation-a} 3.1
TYPE b:
B = {mathematics relation-b} 3.2
TYPE c:
C = {mathematics relation-c} 3.3
시도해 보았 subequations
으나 결과는 이렇습니다.
\begin{subequations}
\begin{align}
TYPE_A= \\ A = \{ relqtion equation a \} \label{eq:subeq1}\\
TYPE_B= \\ B = \{ relqtion equation b \} \label{eq:subeq2}\\
TYPE_C= \\ C = \{ relqtion equation c \} \label{eq:subeq3}
\end{align}
\end{subequations}
결과는 다음과 같습니다.
TYPE a: 3.1
A = {mathematics relation-a} 3.2
TYPE b: 3.3
B = {mathematics relation-b} 3.4
TYPE c: 3.5
C = {mathematics relation-c} 3.6
어떤 도움이라도 주시면 감사하겠습니다.
답변1
코드에 "정렬 후크"를 제공하지 않습니다. 따라서 모든 것이 오른쪽 가장자리로 밀려납니다. 다음은 여러분의 취향에 더 맞을 수 있습니다. &
6개 줄 모두와 의 세 가지 경우에 기호가 사용된 점에 유의하세요 \notag
.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{subequations}
\begin{align}
&\text{TYPE A} \notag \\
&A = \{ \text{relation equation a} \} \label{eq:subeq1}\\
&\text{TYPE B} \notag\\
&B = \{ \text{relation equation b} \} \label{eq:subeq2}\\
&\text{TYPE C} \notag\\
&C = \{ \text{relation equation c} \} \label{eq:subeq3}
\end{align}
\end{subequations}
\end{document}
답변2
\notag
라벨이 있는 라인에 사용하고alignat
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{subequations}
\begin{alignat}{2}
&\makebox[0pt][l]{Type A:}\notag \\
&& A &= 1+1 \label{eq:subeq1}\\
\makebox[0pt][l]{Type B:}\notag \\
&& B &= 2+2 \label{eq:subeq2}\\
&\makebox[0pt][l]{Type C:}\notag \\
&& C &= 3+3 \label{eq:subeq3}
\end{alignat}
\end{subequations}
\end{document}