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 am using LaTex from the JetPack plugin, which is similar but not identical to TeX for maths, for my WordPress blog where I post course work. How do I get the generated formulae to centre on the line so the equals sign lines up with the normal text that I have typed? to see what I mean please check this blog entry.

here are a the two offending pieces of LaTeX for the last two equations of the equations:

$latex = \large{\dfrac{1}{62,000}} $

and

\left(\large{\dfrac{10,000}{62,000,000}}\right) 100\% $

thanks for your time :)

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

I haven't used that plugin, so I can't speak to whether there are any configurations that would help. However, I think your issue could be solved with a simple css rule:

img.latex {
    vertical-align: middle;
}

would center all your LaTeX-generated images on the line they fall on.

share|improve this answer
    
A quick test in the Chrome debugger confirms that this would do the trick. –  EAMann Dec 29 '11 at 16:51
    
Added it as a custom css part inside the theme options, works like a charm, thank you so very much for such a quick, simple answer :) –  Neil Nelson Dec 29 '11 at 17:22
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.