Latex matrix rendering not working

What I’m trying to do

Hey guys. I’m trying to render matrices for my math notes as I’m in Uni, and I’ve been having success on Obsidian. I’ve been using it for a while but recently I tried to put a new matrix into existing notes to extend on the topic (in this case Gaussian Elimination and trying to include examples so future me can actually understand what I was thinking and so it’s logical). Suddenly all of my matrices just stopped working and game me errors.

This has also messed with all of my existing Matrices (in other notes as well) so any and all of my notes on matrices is broken (when it comes to Latex, normal text still remains).

Things I have tried

So far this is my latex ‘code’ I guess.

$$
\begin{vmatrix}
1 & 14 & -8 & | &-3 \
0 & 1 & 3 & | & 6 \
0 & 0 & 1 & | & 2
\end{vmatrix}
$$

This is not rendering and is just giving me it printed with a yellow box over it. When I hover over the yellow text it reads “Misplaced &” and when I remove the actual number and just left with the begin and end it says “Missing \begin{vmatrix} or extra \end{vmatrix}”

I don’t know what wrong and simple math works.

I have also tried examples of other people matrices (copy & paste) that work for them, and they bring me the same problems.

1 Like

It can be done in the following ways

$$
\begin{bmatrix}
a & b & c \\
d & e & f \\
g & h & i
\end{bmatrix}
$$

$$
\begin{Bmatrix}
a & b & c \\
d & e & f \\
g & h & i
\end{Bmatrix}
$$

$$
\begin{vmatrix}
a & b & c \\
d & e & f \\
g & h & i
\end{vmatrix}
$$

$$
\begin{Vmatrix}
a & b & c \\
d & e & f \\
g & h & i
\end{Vmatrix}
$$

$$
\begin{matrix}
a & b & c \\
d & e & f \\
g & h & i
\end{matrix}
$$

$$
\begin{pmatrix}
a & b & c \\
d & e & f \\
g & h & i
\end{pmatrix}
$$

I understand that you can use different types of matrices but my obsidian just doesn’t recognise it. I’ve tried all the different types, formating it nicely and everything but it still comes down to the fact that it just doesn’t recognise it and just gives me error codes. I’m trying to solve the underlying issue. (Tho maybe it is better in bugs?)

Have you tried it already with all plugins disabled?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.