I am looking for a nice state space representation. Does someone know how to place text left to the equation in a split environment? What environment should be used for the explanations?
\usepackage{mathtools}
\begin{document}
This looks nice
\begin{align}
\begin{split}
\mathbf{\dot{x}}_z &= \mathbf{A}_z \mathbf{x}_z +\mathbf{B}_z \mathbf{u}_z\\
\mathbf{y}_z &= \mathbf{C}_z \mathbf{x}_z + \mathbf{D}_z \mathbf{u}_z
\end{split}
\end{align}
A -- Matrix\hspace{15pt}\hspace{15pt}\hspace{15pt}u - Vector
B -- Matrix\hspace{15pt}\hspace{15pt}\hspace{15pt}z - Vector
C -- Matrix\hspace{15pt}\hspace{15pt}\hspace{15pt}y - Vector
D - Matrix\\
Here the spacing of the equation number is improvable
\begin{align}
\begin{split}
\\[\medskipamount]
\text{some text}\quad
\mathbf{\dot{x}}_z &= \mathbf{A}_z \mathbf{x}_z +\mathbf{B}_z \mathbf{u}_z
\\[\medskipamount]
\text{another text}\quad
\mathbf{y}_z &= \mathbf{C}_z \mathbf{x}_z + \mathbf{D}_z \mathbf{u}_z
\end{split}
\end{align}
Here an annother approach\\
some text:\hspace{65pt}$\mathbf{z}=\mathbf{A}_z \mathbf{x}_z +\mathbf{B}_z \mathbf{u}_z$
some text:\hspace{65pt}$\mathbf{y}_z = \mathbf{C}_z \mathbf{x}_z + \mathbf{D}_z \mathbf{u}_z $\\
A -- Matrix\hspace{15pt}\hspace{15pt}\hspace{15pt}u - Vector
B -- Matrix\hspace{15pt}\hspace{15pt}\hspace{15pt}z - Vector
C -- Matrix\hspace{15pt}\hspace{15pt}\hspace{15pt}y - Vector
D - Matrix
\end{document}
Best Answer
For this purpose, I usually use the
flalign
ofmathtools/amsmath
and the\text{ }
command ofamsmath
:Please notice the initial and final
&
.The centering of the equation number is more tricky but a solution is provided below.
EDIT : this is in fact a duplicate of Use flalign or alignat or align or similar environment to align to the left
EDIT2 : The expected result can be achieved bu using
flalign
only to get the flushleft effect and the single centered line number; and inserting the annotated equations in analigned
: