![在对齐环境中左对齐文本](https://linux22.com/image/323118/%E5%9C%A8%E5%AF%B9%E9%BD%90%E7%8E%AF%E5%A2%83%E4%B8%AD%E5%B7%A6%E5%AF%B9%E9%BD%90%E6%96%87%E6%9C%AC.png)
我想在我的对齐环境中将文本左对齐。基本上,我想得到这种效果:
这是我的代码:
\documentclass{article}
\usepackage{amsmath,amsfonts,amssymb,amsthm, bm}
\begin{document}
\begin{flalign}
\mbox{For the \emph{steady-state filter system}} \quad\quad \bm{\Phi}_{f} & = (\mathbf{I}-\mathbf{\bar{K}h'})\bm{\Phi}&\\
\mbox{For the \emph{steady-state predictor system}} \quad\quad \bm{\Phi}_{p} & = (\mathbf{I}-\mathbf{\bar{K}h'})\bm{\Phi}&
\end{flalign}
\end{document}
答案1
您忘记了一些&
:
\documentclass{article}
\usepackage{showframe}% just for the example
\usepackage{amsmath,amsfonts,amssymb,amsthm, bm}
\begin{document}
\begin{flalign}
&\text{For the \emph{steady-state filter system}} &
\bm{\Phi}_{f} & = (\mathbf{I}-\bar{\mathbf{K}}\mathbf{h}')\bm{\Phi} &&\\
&\text{For the \emph{steady-state predictor system}} &
\bm{\Phi}_{p} & = (\mathbf{I}-\bar{\mathbf{K}}\mathbf{h}')\bm{\Phi} &&
\end{flalign}
\end{document}
我修复了语法:\mathbf{\bar{K}h'}
在概念上是错误的。即使更长,也要使用逻辑标记:
\bar{\mathbf{K}} \mathbf{h}'
是正确的输入。