Search code examples
wordpresslatex

Latex Notation in Wordpress


Oddly I cannot get Latex parsing correctly in WP. So wordpress now supports natively latex but it seems that I am struggling with some basic latex examples, that work without any errors. For example using the following code works:

$latex i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H\left|\Psi(t)\right>&s=3$

but

$latex \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix}$

or

$latex \usepackage{amsmath} \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix}$

lead to errors in wordpress

Formula does not pass

One issue could be related to the markdown plugin which I fear is interfering with the markdown WP Editor.md. Is there a way to escape correctly?


Solution

  • Not ideal, but I removed the plugin Markdown and used the option for markdown on the Jetpack. Now I am able to do .md and latex in one file.