我在網上搜尋但找不到我的問題的解決方案:
我嘗試用以下格式寫方程式:
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
您沒有在程式碼中提供任何“對齊掛鉤”;因此,所有東西都被推向右側邊緣。以下內容可能更符合您的喜好 - 請注意所有六行中符號的使用&
以及 的三個實例\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}