我想要一个方程组,比如 2x2,并且每个方程组都有独立的标签和编号。请查看下面的示例。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align} %---> This works fine
a + b &=c \label{eq:1}\\
d - e &=f \label{eq:2}
\end{align}
\begin{align} %---> How can I put numbers and labels here?
a + b + c &=d \label{eq:11} & d + e &=f \label{eq:12} \\
g + h &=i \label{eq:21} & j + k -l &=m \label{eq:22}
\end{align}
\end{document}
谢谢。
马可
答案1
快速而肮脏:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align} %---> This works fine
a + b &=c \label{eq:1}\\
d - e &=f \label{eq:2}
\end{align}
\begin{subequations}
\begin{minipage}{0.5\textwidth}
\begin{align}
a + b + c &=d \\
g + h &=i
\end{align}
\end{minipage}
\begin{minipage}{0.5\textwidth}
\begin{align}
d + e &=f\\
g + h &=i
\end{align}
\end{minipage}
\end{subequations}
\end{document}