I wish these packages from amsmath have more options!
Is there a way to add a macro to add dashed lines between rows and columns for a matrix typeset using pmatrix? Similar to what is being asked here A Matrix with labels, dashed lines
But I can't use the solution given in the above, since I have to use pmatrix
I have to use pmatrix, since this is what Scientific Word supports/produces when I click on add a matrix from the GUI and I have no control over changing this. Here is a typical Latex file generated using one matrix
\documentclass{article}%
\usepackage{amsmath}%
\usepackage{amsfonts}%
\begin{document}
This is my matrix
$
\begin{pmatrix}
\sin x & \cos x\\
B & A
\end{pmatrix}
$
\end{document}

I can't modify the code generated and change pmatrix to say array or such in order to use the solution shown above, since then SW will not display the result on the screen when I open the file again to continue working on it. But what I can do is add a macro in the preamble to modify the definition of pmatrix since I use texlive 2013 to build the file and only use SW for entering the math since it is much easier for me to do so at this time.
So, I'd like to ask for help if there is a way to use some \renewcommad or such to replace pmatrix with array or some other solution in order to add these dashed lines between rows and columns when compiling the file?
thank you,
