[email protected] schrieb: > Hi, > I don't know if this is the correct place to file bug reports, but I > couldn't find a bug > > I find that when I use sphinx.ext.pngmath with 'preview.sty' and the > 'default.css', not all LaTeX equations get correctly aligned. It > appears that those for which 'preview.sty' returns a depth of 0 don't > get the 'vertical-align' style set on the images, and then inherit > 'vertical-align: center' from 'default.css'. > > The problem appears to be on line 190 of pngmath.py (in Sphinx 0.5.1) > where depth is used in a ternary expression of the form: > depth and 'style="vertical-align: %dpx" ' ... > The variable 'depth' has the value None when preview.sty isn't being > used, and can have the value '0' sometimes when preview.sty is being > used. Changing the above line to > depth is not None and 'style="vertical-align: %dpx" '... > fixes the problem to me.
You're right, this is a bug. Fixed in 0.5 and 0.6 branches now. thanks, Georg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
