删除等式 LaTex 中的缩进

Remove indent in equation LaTex

我有一个相当简单的问题。我的方程式中有一个不需要的缩进。

\documentclass[11 pt, a4paper, fleqn]{article}
\usepackage{float}
\usepackage{amssymb}
\usepackage{amsmath}
\setlength{\mathindent}{0cm}
\begin{document}
\noindent Through rigorous analytical calculations found in \textbf{Appendix A} a state space representation was found:

\begin{multline}
X= \begin{pmatrix}\dot{x_1} \ \dot{x_2} \ \dot{x_3} \end{pmatrix} =
\begin{pmatrix}0 & 1 & 0\ 0 & 0 & 1 \ -1000 & -300 & -30\end{pmatrix}
\begin{pmatrix}x_1 \ x_2 \ x_3 \end{pmatrix}+\begin{pmatrix} 0 \ 0 \ 160 \end{pmatrix}u \
\noindent Y=\begin{pmatrix}1 & 0 & 0 \end{pmatrix} \begin{pmatrix}
x_1 \ x_2 \ x_3 \end{pmatrix}
\end{multline}
\end{document}

这给了我这个结果: enter image description here

我希望第二行位于左边距。 我试过使用 \[ \begin{aligned} \end{aligned} \] 并且在开始我的文档之前我有命令 \setlength{\mathindent}{0cm} 但缩进仍然存在。这让我很生气。

拜托,谢谢!

编辑:可编译

您可以使用:

\begin{align}
X &= \begin{pmatrix}\dot{x_1} \ \dot{x_2} \ \dot{x_3} \end{pmatrix} =
\begin{pmatrix}0 & 1 & 0\ 0 & 0 & 1 \ -1000 & -300 & -30\end{pmatrix}
\begin{pmatrix}x_1 \ x_2 \ x_3 \end{pmatrix}+\begin{pmatrix} 0 \ 0 \ 160 \end{pmatrix}u \
Y &=\begin{pmatrix}1 & 0 & 0 \end{pmatrix} \begin{pmatrix}
x_1 \ x_2 \ x_3 \end{pmatrix}
\end{align}

如果不需要行号,请使用对齐*。

希望有用!

multiline 环境专门用于对一行来说太长的单个方程。第一行向左对齐,第二行向右对齐。

如果你想对齐多个不同的方程式,我会使用类似 align 环境的东西,正如@HelloWorld 在他们的回答中显示的那样。

但是为了完整起见,您也可以使用 multiline:

\documentclass[11 pt, a4paper, fleqn]{article}
\usepackage{float}
\usepackage{amssymb}
\usepackage{amsmath}
\setlength{\mathindent}{0cm}
\begin{document}
\noindent Through rigorous analytical calculations found in \textbf{Appendix A} a state space representation was found:

\begin{multline}
X= \begin{pmatrix}\dot{x_1} \ \dot{x_2} \ \dot{x_3} \end{pmatrix} =
\begin{pmatrix}0 & 1 & 0\ 0 & 0 & 1 \ -1000 & -300 & -30\end{pmatrix}
\begin{pmatrix}x_1 \ x_2 \ x_3 \end{pmatrix}+\begin{pmatrix} 0 \ 0 \ 160 \end{pmatrix}u \
Y=\begin{pmatrix}1 & 0 & 0 \end{pmatrix} \begin{pmatrix}
x_1 \ x_2 \ x_3 \end{pmatrix}\hfill
\end{multline}
\end{document}