4

I have installed a Mathjax plugin on my local wordpress installation, and the plugin works fine. However, I can't get it to show Latex in-text; it creates an own line for every latex formula. I end up with pages like this (this is an extreme example to get my point across better :)):

Mathjax

How can I make it work to show Latex in-text? I've tried multiple plugins and they all seem to have this issue, with no option to resolve this.

2
  • what kind of Latex commands do you use there ?
    – birgire
    Apr 19, 2013 at 19:52
  • I just use $$ latex here $$. No matter what's between the dollar signs, the plugin will give it its own line.
    – Ben
    Apr 19, 2013 at 20:00

1 Answer 1

7

To create an inline formula in LaTeX we can use single dollar signs $:

This formula $x=y+z$ is inline.

To display math on its own line, we can use double dollar signs $$:

$$ a = b + c $$

Here is an example with Simple Mathjax installed:

Editor

This will be displayed like this:

View

2
  • 1
    I tried it and it worked. I cannot believe I missed that. Thank you!
    – Ben
    Apr 19, 2013 at 20:10
  • I'm glad to hear it worked for you ;-)
    – birgire
    Apr 19, 2013 at 20:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.