Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
    
what kind of Latex commands do you use there ? –  birgire Apr 19 '13 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 '13 at 20:00
add comment

1 Answer

up vote 6 down vote accepted

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

share|improve this answer
1  
I tried it and it worked. I cannot believe I missed that. Thank you! –  Ben Apr 19 '13 at 20:10
    
I'm glad to hear it worked for you ;-) –  birgire Apr 19 '13 at 20:20
2  
+1, for LaTeX typesetting! F*** you, WYSIWYG. –  Johannes Pille Apr 19 '13 at 20:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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