[Tex/LaTex] Matrix is not the same size

matrices

I am trying to write this matrix

enter image description here

But this matrix is awful aesthetically. The middle matrix is tall, the other two are short. I want to make all 3 matrixes the same height.

This is my Latex code:

\tt \color{Black}
\begin{bmatrix}
1 & -1 & -1\\
0 & 13 & -10\\
0 & 7 & \phantom{-} 17 
\end{bmatrix}

\begin{bmatrix}
I_{1}\\
I_{2}\\
I_{3}
\end{bmatrix}

=

\begin{bmatrix}
\phantom{-}0\\
\phantom{-}4\\
-3
\end{bmatrix}

But this is my problem. I am using macOS Pages that have limited Latex support. This is what apple has to say about it.

Unfortunately this solution is not working.

Is there a way to make everything the same height?

thanks

Best Answer

I looked at the supported commands and it says that \color is supported. This allows one to cheat by putting a white, i.e. invisible, dot on top of the symbols.

\documentclass{article}
\usepackage{amsmath}
\usepackage{color}
\begin{document}
\[
\begin{bmatrix}
\color{white}\dot{\color{black}1} & -1 & -1\phantom{0}\\
\color{white}\dot{\color{black}0} & 13 & -10\\
\color{white}\dot{\color{black}0} & \phantom{-}7 & \phantom{-} 17 
\end{bmatrix}
%
\begin{bmatrix}
I_{1}\\
I_{2}\\
I_{3}
\end{bmatrix}
%
=
%
\begin{bmatrix}
\phantom{-}\color{white}\dot{\color{black}0}\\
\phantom{-}\color{white}\dot{\color{black}4}\\
-\color{white}\dot{\color{black}3}
\end{bmatrix}
\]
\end{document}

I Just checked myself, if you remove the %, i.e. insert

\[
\begin{bmatrix}
\color{white}\dot{\color{black}1} & -1 & -1\phantom{0}\\
\color{white}\dot{\color{black}0} & 13 & -10\\
\color{white}\dot{\color{black}0} & \phantom{-}7 & \phantom{-} 17 
\end{bmatrix}

\begin{bmatrix}
I_{1}\\
I_{2}\\
I_{3}
\end{bmatrix}

=

\begin{bmatrix}
\phantom{-}\color{white}\dot{\color{black}0}\\
\phantom{-}\color{white}\dot{\color{black}4}\\
-\color{white}\dot{\color{black}3}
\end{bmatrix}
\]

you'll get

enter image description here

(For other Mac users: in a document inside the text, click on the insert symbol, which looks a bit like a reverse double-stroke P, and click insert equation, you'll be able to verify that it works. Whether or not this is an appropriate question for this site, I cannot judge.)

NOTE: I removed the \vphantom parts I had originally as this seems not to be supported by pages.