I have install a plugin named latex for wordpress
, which use mathjax to render the latex mathematical symbols.
An matrix example
$$mathbf{P} = left[ begin{matrix} x y end{matrix}
right],mathbf{P’} = left[ begin{matrix} x y end{matrix}
right],mathbf{T} = left[ begin{matrix} t_{x} t_{y}
end{matrix} right] $$
The problem is I could not break the statement into multiple lines when the statement become too long in a single line. Because wordpress would automatically insert <br>
to the equation.
So I need to disable automatically generation of <br>
in and only in this circumstances.
Could I do this with some extra tags?
Assuming, you’re using a
latex
shortcode, the following should do what you’ve asked for:This is an adapted version of some code found here. However, I did not test the code.