我开始这。您会看到我们有几个方程式,它们都只引用一个数字,即正中间的 $(1)$。在这里,我想用文字代替该数字,因此我通过操作代码执行了以下 MWF:
\documentclass[12pt]{book}
\usepackage{amsmath,amssymb,amsthm,amsfonts}
\begin{document}
\begin{flalign*}
(a)~ & \det (A_1+A', A_2)=\det (A_1,A_2)+\det (A'_1,A_2) &\\
(b)~ & \det(A_1, A_2+A'_2)=\det (A_1,A_2)+\det (A_1, A'_2) \\[-1.8ex]
& \hspace*{9.5cm}\text{(666)}\\[-1.8ex]
(c)~ & \det (cA_1,A_2)=c\det (A_1,A_2) \\
(d)~& \det(A_1, cA_2)=c\det (A_1, A_2)
\end{flalign*}
\end{document}
查找:
还有其他方法吗?如果这个问题重复,请指导我,并随意添加所需的标签。
答案1
只需最少改动的解决方案:
\documentclass[12pt]{book}
\usepackage{amsmath,amssymb,amsthm,amsfonts}
\begin{document}
\begin{equation}
\tag{Damien 666}
\begin{array}{ll}
\text{(a)}~ & \det (A_1+A', A_2)=\det (A_1,A_2)+\det (A'_1,A_2) \\
\text{(b)}~ & \det(A_1, A_2+A'_2)=\det (A_1,A_2)+\det (A_1, A'_2) \\
\text{(c)}~ & \det (cA_1,A_2)=c\det (A_1,A_2) \\
\text{(d)}~& \det(A_1, cA_2)=c\det (A_1, A_2)
\end{array}
\end{equation}
\end{document}
答案2
如果你编译这个:
\documentclass[12pt]{book}
\usepackage{amsmath,amssymb,amsthm,amsfonts}
\begin{document}
\begin{equation}
\begin{aligned}
(a)~ & \det (A_1+A', A_2)=\det (A_1,A_2)+\det (A'_1,A_2) \\
(b)~ & \det(A_1, A_2+A'_2)=\det (A_1,A_2)+\det (A_1, A'_2) \\
(c)~ & \det (cA_1,A_2)=c\det (A_1,A_2) \\
(d)~& \det(A_1, cA_2)=c\det (A_1, A_2)
\end{aligned}
\tag{666}
\end{equation}
\end{document}
然后你会得到这个:
答案3
这是一个将enumerate
环境嵌入到环境中的解决方案。此方法将允许您通过标准机制minipage
交叉引用枚举项。\label
\ref
\documentclass[12pt]{book}
\usepackage{enumitem}
\usepackage{amsmath} % for '\tag' macro
\begin{document}
\begin{equation}
\begin{minipage}{0.9\textwidth}
\begin{enumerate}[label=(\alph*),left=0pt,itemsep=2pt]
\item $\det(A_1+A', A_2)=\det (A_1,A_2)+\det (A'_1,A_2)$
\item $\det(A_1, A_2+A'_2)=\det (A_1,A_2)+\det (A_1, A'_2)$
\item $\det(cA_1,A_2)=c\det (A_1,A_2)$
\item $\det(A_1, cA_2)=c\det (A_1, A_2)$
\end{enumerate}
\end{minipage}
\tag{666}
\end{equation}
\end{document}
答案4
你可以那样做,但我更喜欢subequations
。
\documentclass[12pt]{book}
\usepackage{amsmath,amssymb,amsthm,amsfonts}
\usepackage{lipsum} % for context
\begin{document}
\setcounter{equation}{665}
\lipsum[10][1-5]
\begin{flalign}
\makebox[2em][l]{(a)} & \det (A_1+A', A_2)=\det (A_1,A_2)+\det (A'_1,A_2) & \notag \\
\makebox[2em][l]{(b)} & \det(A_1, A_2+A'_2)=\det (A_1,A_2)+\det (A_1, A'_2) \notag \\[-1.8ex]
\\[-1.8ex]
\makebox[2em][l]{(c)} & \det (cA_1,A_2)=c\det (A_1,A_2) \notag \\
\makebox[2em][l]{(d)} & \det(A_1, cA_2)=c\det (A_1, A_2) \notag
\end{flalign}
\lipsum[10][1-5]
\begin{subequations}
\lipsum[10][1-5]
\begin{align}
& \det (A_1+A', A_2)=\det (A_1,A_2)+\det (A'_1,A_2)\\
& \det(A_1, A_2+A'_2)=\det (A_1,A_2)+\det (A_1, A'_2) \\
& \det (cA_1,A_2)=c\det (A_1,A_2) \\
& \det(A_1, cA_2)=c\det (A_1, A_2)
\end{align}
\lipsum[10][1-5]
\end{subequations}
\end{document}