So richten Sie die Matrix in der Bmatrix-Umgebung linksbündig aus

So richten Sie die Matrix in der Bmatrix-Umgebung linksbündig aus

Im folgenden MWE sind die Matrizen A und B perfekt ausgerichtet. Die Matrix C richtet sich jedoch nach rechts aus. Wie kann man sie nach links ausrichten?

  \begin{multline}
  A=
\begin{bmatrix}
0 & 1 & 0 & \cdots & 0\\
0 & 0 & 1 & \cdots & 0 \\
\vdots & \vdots & \vdots & \ddots & \vdots\\
0 & 0 & 0 & \cdots & 1 \\
-q_{0}&-q_{1}&-q_{2}&\cdots&-q_{n-1}
 \end{bmatrix}
  ,\,\,
  B=
  \begin{bmatrix}
   0 \\
   0  \\
   \vdots \\
    b_e
   \end{bmatrix}
   \\ 
  C =
  \begin{bmatrix}
   1 &b_1/b_0  &\cdots &b_{n-1}/b_0
   \end{bmatrix}
   \end{multline}

Antwort1

Möglicherweise möchten Sie, dass die Zeilenmatrix in Bezug auf den obersten Block zentriert ist:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}
\begin{gathered}
A=\begin{bmatrix}
  0 & 1 & 0 & \cdots & 0\\
  0 & 0 & 1 & \cdots & 0 \\
  \vdots & \vdots & \vdots & \ddots & \vdots\\
  0 & 0 & 0 & \cdots & 1 \\
  -q_{0}&-q_{1}&-q_{2}&\cdots&-q_{n-1}
\end{bmatrix}
,\quad
B=\begin{bmatrix} 0 \\ 0 \\ \vdots \\ b_e \end{bmatrix}
\\[2ex]
C = \begin{bmatrix} 1 & b_1/b_0 & \cdots & b_{n-1}/b_0 \end{bmatrix}
\end{gathered}
\end{equation}

\end{document}

Bildbeschreibung hier eingeben

Wenn Sie möchten, dass die Gleichheitszeichen ausgerichtet werden, verwenden Sie aligned:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}
\begin{aligned}
A&=\begin{bmatrix}
  0 & 1 & 0 & \cdots & 0\\
  0 & 0 & 1 & \cdots & 0 \\
  \vdots & \vdots & \vdots & \ddots & \vdots\\
  0 & 0 & 0 & \cdots & 1 \\
  -q_{0}&-q_{1}&-q_{2}&\cdots&-q_{n-1}
\end{bmatrix}
,\quad
B=\begin{bmatrix} 0 \\ 0 \\ \vdots \\ b_e \end{bmatrix}
\\[2ex]
C&=\begin{bmatrix} 1 & b_1/b_0 & \cdots & b_{n-1}/b_0 \end{bmatrix}
\end{aligned}
\end{equation}

\end{document}

Bildbeschreibung hier eingeben

Antwort2

Verwenden Sie align*anstelle von multiline. Fügen Sie einige Ausrichtungsregisterkarten hinzu.

Wie kommentiert, multilinewird es nicht mit Ausrichtung geliefert. Ich würde vermuten, dass es die Absicht ist, die zweite Zeile rechtsbündig auszurichten, als wäre sie die Fortsetzung einer langen Gleichung.

\documentclass{article}
\usepackage{amsmath}
%\usepackage{unicode-math}
\begin{document}
  \begin{align*}
  A&=
\begin{bmatrix}
0 & 1 & 0 & \cdots & 0\\
0 & 0 & 1 & \cdots & 0 \\
\vdots & \vdots & \vdots & \ddots & \vdots\\
0 & 0 & 0 & \cdots & 1 \\
-q_{0}&-q_{1}&-q_{2}&\cdots&-q_{n-1}
 \end{bmatrix}
  ,\,\,
  B=
  \begin{bmatrix}
   0 \\
   0  \\
   \vdots \\
    b_e
   \end{bmatrix}
   \\[8pt]
  C &=
  \begin{bmatrix}
   1 &b_1/b_0  &\cdots &b_{n-1}/b_0
   \end{bmatrix}
   \end{align*}

\end{document}

Bildbeschreibung hier eingeben

Außerdem \,\,könnten Sie statt durch ersetzen , wodurch vor der Matrix &eine größere Lücke entsteht .B

verwandte Informationen