Code: Select all
\documentclass[12pt,letterpaper]{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\begin{document}
Bla bla bla
\begin{align*}
A =
\left[ \begin{array}{c|ccc}
\gamma & 0 & 0 & -\, \gamma \, v \\
\hline 0 & 1 & 0 & 0 \\
0 & 0 & 1 & 0 \\
-\, \gamma \, v & 0 & 0 & \gamma \\
\end{array} \right]\!\!
&\left[ \begin{array}{c|ccc}
0 & 0 & 0 & g \\
\hline 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 \\
g & 0 & 0 & 0 \\
\end{array} \right]\!\!
\left[ \begin{array}{c|ccc}
\gamma & 0 & 0 & \gamma \, v \\
\hline 0 & 1 & 0 & 0 \\
0 & 0 & 1 & 0 \\
\gamma \, v & 0 & 0 & \gamma \\
\end{array} \right]\!.
\end{align*}
Bla bla bla
\end{document}
- The spacing after the equal sign is a bit too much. I don't know what is wrong in my code above.
- The columns spacing is horrible in the first and third matrices, especially in the first matrix because of the - sign. I need them to be equally spaced.