Descritption: Equations below won’t display in two lines, but in one, after rendering. It against MathJax or Latex syntax, and I can’t find any way to break the line when I write math equations in Obisidian. Is it a bug or unimplemented feature? Or i just use it wrong?
$$
1 == 1 \\
2 == 2 \\
$$
Could anybody help me out please?
2 Likes
By the way ,this happens on both mac and linux.
Hi,
For me it’s not a bug, it might be a misunderstanding of maths in LaTeX. You cannot have two equations on two separate lines like this. If you have a system of equations, or some set of equations, it should be written like this:
$$
\begin{align}
1 == 1 \\
2 == 2
\end{align}
$$
Olivier
7 Likes
It’s due to mathjax, you should use a multiline environment, the most frequently used is aligned
$$
\begin{aligned}
a &= b \\
&= c
\end{aligned}
$$
the &
is align mark.
Or, usemulti
, cases
, array
and so on.
9 Likes
Hi, thanks a lot, it helps me a lot.
Thanks for your answer, it helps me a lot.