I am trying to add extra space after the left bracket and before the right bracket in a matrix. I've changed the column spacing with \arraycolsep
, but I also want the entries right aligned.
I can make it work for the left bracket by using \
for the first column, but the right alignment overrides this in the last column:
\begin{vmatrix*}[r]
\vec{i} & \vec{j} & \vec{k} \ \\
\ #1 & #2 & #3 \\
\ #4 & #5 & #6
\end{vmatrix*}
I'm using the following command to input the entries of this matrix:
\def\crossmatrix#1{\crossmatrixentries(#1)}
\def\crossmatrixentries(#1,#2,#3,#4,#5,#6)
I've inserted
\renewcommand\arraystretch{1.5} \arraycolsep=5pt
to help with spacing. I then called the matrix below by
\crossmatrix{-3,-6,9,2,-7,-4}