If I have constructed a blocked array using an org-mode table, I can easily export the table as, e.g., a pmatrix array as presented below. However, the pmatrix is exported within a math environment (\[..\]). How can I change that to, e.g., an eqnarray environment in order to attach an equation reference?
So, I have this code:
#+ATTR_LATEX: :environment pmatrix :mode math :math-prefix N= :math-suffix ,
| A | B |
| B^T | D |
which is exported to
\[
N=\begin{pmatrix}
A & B \\
B^T & D \\
\end{pmatrix},
\]
I wish to replace the \[..\] by eqnarray, i.e., produce
\begin{eqnarray}
N=\begin{pmatrix}
A & B \\
B^T & D \\
\end{pmatrix},\label{eq:normal}
\end{eqnarray}
Is this possible using org-mode options or do I have to re-write the back-end? If so, where in the back-end should I start?