Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Katex rendering equations multiple times

I am using Docusaurus to generate a static website. I integrated katex using the official instructions (https://docusaurus.io/docs/next/markdown-features/math-equations).

I want to render this:

$$
\begin{aligned}
    \begin{split}    
        u &= u^0(x,y)+z\varphi(x,y)  \\
        v &= v^0(x,y)+z\theta(x,y) \\
        w &= w^0(x,y)
    \end{split}
    \tag{1.1}
\end{aligned}
$$

What I get is this: katex output

What I do not understand is, that the text is rendered again underneath the correctly rendered equation. What am I missing?

like image 547
Leon Bohmann Avatar asked Dec 18 '25 07:12

Leon Bohmann


1 Answers

I had the same problem.

The problem was that I didn't exactly follow the instructions in the docs.

After I downloaded all the assets from GitHub and unzipped them into the /static folder, everything worked fine.

like image 192
miu Avatar answered Dec 21 '25 04:12

miu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!