Latex matrix in Makie

VictorSeven
Thu, 13 Jun 2024 15:54:09 +0000
General Usage

Hi,

I’m trying to show a matrix in Makie, via text!. Latex in general works well, but when I try to plot the matrix

text!(ax, pos; text=L"\begin{pmatrix} 1 & 2 \\ 3 & 4\end{pmatrix}")

I receive an error

ERROR: LoadError: TeXParseError: unsupported command \begin
at position 7 (string index 7)
\begin{pmatrix}1 & 2 \\ 3 & 4\end{pmatrix}
      ^

It seems that Makie does not like the \begin command. I have not found any potential workaround for it. If you know of any, I’d be grateful.

If this is really not yet supported, also, is there any ongoing issue on Github?

Hopefully this is not a duplicated question, but I’ve been searching for a while already and could not find any hint for this problem. Thanks!!

4 posts - 3 participants