# Itex2MML

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: 
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.