I want the simplest way of exporting matrices, and vector from mathematica to Latex.
Usually, I display my matrices in MatrixForm and copy as Latex to paste in my latex document. However it seems it doesn't always work, take the following code:
vv = {1, 2};
vv // MatrixForm
If from the display you do "copy as -> Latex", it returns you:
\{1,2\}
Instead of (for example):
\begin{pmatrix} 1 \\ 2 \end{pmatrix}
Which would match the mathematica display. If I input a matrix however (thus having more than 1 column), it works as it should.
How to make it really returns me something that will look like a column vector in latex ?
array
, notpmatrix
. $\endgroup$