This site is a showcase for using LatexRender for mathematics in WordPress

Using LaTeX in WordPress

Poor GIF output in LatexRender

Friday 28th August 2009

Filed under: — Steve @ 6:18 pm

John Forkosh (author of mathTeX) has brought to my attention a bug in the latest version of ImageMagick’s convert. This is used to produce the gif image and can result in poor output with very light fonts. If you get this you can get a better result with LatexRender if you convert to a png instead.

In class.latexrender.php look for the line
var $_image_format = "gif"; //change to png if you prefer
and change it to
var $_image_format = "png";

You could instead use an older version of ImageMagick (such as version 6.2.9) or bypass ImageMagick altogether with dvipng, which is the method that WordPress.com uses.

Discussion of this problem can be found here. Let’s hope the bug is resolved in the near future.

No Comments yet

Sorry, the comment form is closed at this time.


 

This site is a showcase for using LatexRender for mathematics in WordPress