WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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}} $


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

thanks for your time :)

share|improve this question
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

Your Answer


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.