Matrices pasted from LaTeX become tabular structure in TeXmacs

Pasting matrices from LaTeX into TeXmacs results in a tabular structure, although TeXmacs has a separate markup for matrices, which I would intuitively expect.

Is this behaviour a deliberate design offering advantages over the insertion as matrices?

If not, is there a way to paste matrices from LaTeX as matrices (and not tabular) into TeXmacs?

I found out that plain matrices are pasted as tables, while matrices surrounded by parentheses are pasted as matrices. I don’t see an easy way to change the paste behaviour, let’s see if someone else does.

1 Like

Thanks @pireddag, this is perfect:

Using

\begin{pmatrix} 1 & 2\\ 3 & 4\end{pmatrix}

works also for me and is actually exactly what I want!