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

Using LaTeX in WordPress

Improved Output

Saturday 22nd January 2005

Filed under: — Steve @ 11:09 pm

Benjamin Schwartz has adapted class.latexrender.php to improve the quality of the output. He has used “the PNG format’s support for true alpha blending to make those jagged edges (on non-white background) disappear”. The text colour for both PNG and GIF are customizable as is the background colour for GIFs. The original settings are still available.

You can download the file here and view its effect at Digital Diary of Ben Schwartz. The enhancement works best on dark backgrounds so, if you are using Firefox or Opera then try switching the stylesheet to ‘Dark Fire’ on that page.

Some things to be aware of:

  • the improved output may have a small speed penalty
  • the system will only work with recent versions of ImageMagick (such as 6.1.2)
  • Internet Explorer on Windows does not show PNGs as transparent


RSS feed for comments on this post. TrackBack URI

  1. Math test
    I should probably put up some math, since some people may come to this page looking for examples of my modified \LaTeX code.
    So here’s some math:
    and how about

    Trackback by ldotDigital Diary of Ben Schwartz — Sunday 23rd January 2005 1:06 am #

  2. I’m interested in using this for improved output, but it seems the link to the updated file is gone. Does anyone have their own local copy of this? Please let me know in an e-mail to apetresc at uwaterloo dot ca

    Thanks! =)

    Comment by Adrian Petrescu — Thursday 31st May 2007 11:44 pm #

  3. I have uploaded Benjamin Schwartz’s files (the class file and a patch file) so they are available here.

    Comment by Steve — Friday 1st June 2007 1:03 pm #

  4. Thanks Steve!

    Comment by Adrian Petrescu — Monday 4th June 2007 4:08 am #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


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