答案1
使用*
没有编号的环境版本,然后输入\tag
所需的方程式。例如,如果您有三个方程式,并且只希望第二行有一个数字:
\documentclass{article}
\usepackage{commath}
\begin{document}
\begin{flalign*}
F &= ma&&\\
a^2 &= b^2 + c^2&&\refstepcounter{equation}\tag{\theequation}\\
0 &= e^{i\pi} + 1
\end{flalign*}
\end{document}
这里\refstepcounter{equation}
增加方程计数器的值并且使其可访问\label
然后\tag{\theequation}
用当前方程编号标记该方程。
答案2
我认为没有理由将单个显示器的标准居中改为左对齐,所以我想你想要全部显示与左齐平。
\documentclass{article}
\usepackage[fleqn]{amsmath}
\setlength{\mathindent}{0pt}
\begin{document}
This is some text prior to the display running to at least
cover two lines; let's add some words until they fit
\begin{equation}
\begin{split}
\tilde{A}
&= A_{N,m} A_{m,m}^{-1} A_{m,N} \\
&= A_{N,m} U \wedge^{-1} U^T A_{N,m}^T \\
&= A_{N,m} U \wedge^{-1/2} {} \wedge^{-1/2} U^T A_{N,m}^T \\
&= GG^{T}
\end{split}
\end{equation}
and some text past the display.
\end{document}
如果你真的想要这个特定的显示左对齐,但我不知道为什么,你可以这样做
\documentclass{article}
\usepackage{amsmath}
\begin{document}
This is some text prior to the display running to at least
cover two lines; let's add some words until they fit
\begin{flalign}
\begin{aligned}
\tilde{A}
&= A_{N,m} A_{m,m}^{-1} A_{m,N} \\
&= A_{N,m} U \wedge^{-1} U^T A_{N,m}^T \\
&= A_{N,m} U \wedge^{-1/2} {} \wedge^{-1/2} U^T A_{N,m}^T \\
&= GG^{T}
\end{aligned}&&
\end{flalign}
and some text past the display.
\end{document}
输出与以前相同。
答案3
一个包含嵌套在环境aligned
中的普通环境的解决方案,由包定义:equation
fleqn
nccmath
\documentclass{article}
\usepackage{amsmath, nccmath}
\usepackage{commath}
\begin{document}
\noindent Some text. some text. Some more text. Some more text.
\begin{fleqn}
\begin{equation}
\begin{aligned}
\tilde{A} & = A_{N, m}A_{m, m}^{-1}A_{m, N} \\
& = A_{N, m}\wedge^{-1}U^{\mathrm t} A_{N, m}^{\mathrm t} \\
& = A_{N, m}\wedge^{-1/2}\wedge^{-1/2}U^{\mathrm t} A_{N, m}^{\mathrm t} \\
& = GG^{\mathrm t}
\end{aligned}%
\label{nystrom_evd_approx_for_indefinite}
\end{equation}
\end{fleqn}
\end{document}