Archive for the ‘blog’ Category

Facebook link

Saturday, May 9th, 2009

Kevin suggested I link my blog into facebook so that he could comment through there. Here’s a wordpress plugin that accomplishes this.

This post should test whether the plugin is working.

Update: When debugging wordpress plugins, it’s very convenient to have a friend who knows the developer personally. Thanks Adam Hupp!

Update: Unfortunately, facebook connect appears to be incompatible with an application/xhtml+xml content type. I need that content type for mathml use (facebook math), so no luck for now. Thanks again to Adam Hupp for tracking this down, and to Kevin Der for asking him.

Itex2MML

Sunday, November 23rd, 2008

Latex formula support is provided via itex2MML and Jacques Distler’s excellent WordPress pluginFrederick Leitner modified these for WordPress 2.0.0/2.0.1.  Unfortunately, WordPress 2.6 is different again, so I had to tweak a bit further.  Here are instructions:

  1. Install itex2MML and the itex2MML WordPress plugin.
  2. Install the content negotiation plugin.
  3. Apply the diff formatting.php.diff to get formatting.php. This is a modified version of the diff provided by Leitner. Note that I had to remove the “|math|” bit from allblocks to prevent inline math from breaking. Some of the cases probably could use “|math|”, so this may need additional modification.
  4. Modify the doctype in wp-content/themes/…/header.php to allow general mathml: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" >
  5. (Update) Change the {1,8} ranges in formatting.php to at least {1,10} in order to treat &rightarrow; correctly.

Warning: itex2MML produces MathML, which is not readable by a many browsers. Hopefully this situation will improve, but until then this blog will be nonportable.

A blog!

Sunday, November 23rd, 2008

Basic math support appears to be working, so now I have a blog.

Here’s a test of inline math (x+y+x y+x y) and an integral:

0 1 xdx=1 2

Success!  I’ll provide details of the mathml/itex setup in a separate post.