I'd like to position two matrices under each other so that the columns of the matrices are rendered under each other, too. An example what I'd like to have:
|100 200|
A=| 30 3 |
| 1 119|
b=[ 1 0 ]
I've tried this:
\begin{align*}
A= &\begin{vmatrix}
100 & 200 \\
30 & 3\\
1 & 119
\end{vmatrix}\\
b= &\begin{bmatrix}
1 & 0
\end{bmatrix}
\end{align*}
…but it only aligns the = signs, but not the columns of the two matrices. What's the trick? Thanks in advance!
Best Answer
I assume the numbers should be right-aligned in the respective columns. If that's the case, you could
use
{vmatrix*}[r]
environments and employ suitably chosen\phantom
directives to "pad" the numbers in theb
row vector with invisible zeros; orload the
siunitx
package and use itsS
column type insidearray
environments.