Use vmatrix
, not array
.
I also suggest to define a command for the task, which might seem redundant (we split at semicolons just to add them back in) but isn't as I'll show later.
\documentclass{article}
\usepackage{amsmath}
\usepackage{fouriernc}
\ExplSyntaxOn
\NewDocumentCommand{\rowvec}{m}
{
\left(
\seq_set_split:Nnn \l_tmpa_seq { ; } { #1 }
\seq_use:Nn \l_tmpa_seq { ; }
\right)
}
\ExplSyntaxOff
\begin{document}
\[
\rowvec{x;y;z}+\rowvec{1;2;3}
\]
\[
\rowvec{
\begin{vmatrix}
a_2 & a_3 \\
b_2 & b_3
\end{vmatrix} ;
\begin{vmatrix}
a_3 & a_1 \\
b_3 & b_1
\end{vmatrix} ;
\begin{vmatrix}
a_1 & a_2 \\
b_1 & b_2
\end{vmatrix}
}
\]
\end{document}
Now, suppose your coauthor finds that the space after the semicolons is too small: you simply change the definition. For instance, adding a thick space \;
after the semicolon (and a thin space in front of it).
\documentclass{article}
\usepackage{amsmath}
\usepackage{fouriernc}
\ExplSyntaxOn
\NewDocumentCommand{\rowvec}{m}
{
\left(
\seq_set_split:Nnn \l_tmpa_seq { ; } { #1 }
\seq_use:Nn \l_tmpa_seq { \,;\; }
\right)
}
\ExplSyntaxOff
\begin{document}
\[
\rowvec{x;y;z}+\rowvec{1;2;3}
\]
\[
\rowvec{
\begin{vmatrix}
a_2 & a_3 \\
b_2 & b_3
\end{vmatrix} ;
\begin{vmatrix}
a_3 & a_1 \\
b_3 & b_1
\end{vmatrix} ;
\begin{vmatrix}
a_1 & a_2 \\
b_1 & b_2
\end{vmatrix}
}
\]
\end{document}
Or maybe you change your mind and decide to use commas instead of semicolons. You just need to change the code into
\seq_use:Nn \l_tmpa_seq { , }
and keep the rest of the document as it is without the need of chasing for semicolons.