preload
Apr 20

Well… I’ve been using jsMath on my Wiki, and now I’m keen to use it on my blog.  There does not seem to be a WordPress plugin explicitly for jsMath (if anyone knows of one, please let me know), but you don’t need one. Using jsMath from WordPress is actually easy via a different plugin. Continue reading »

  • Share/Bookmark
Tagged with:
Jul 07

I used to have a site that used LaTeX to render equations.  This worked pretty well, except that I didn’t have LaTeX installed on the server.  It turns out that you can do pretty well without it.

There’s an excellent program called mimeTeX that renders math without a TeX installation. I used it with Drupal and DruTeX. Now I’m not using Drupal… so I need to find another way to display math.  Oh, mimeTeX still works, but you have to explicitly encode the link.  I’m way too lazy to do that.

[equation]

Update: I’ve been experimenting with using [ tex ]…[ /tex ] from the mimeTex plugin to WordPress. It’s working now, but I needed to do two things to make it work.

  • Create a cache folder under my wp-content folder.
  • Modify the plugin to point to my local installation of mimetex.cgi.

I also had to go into the cache folder and delete all the files that were created during the process, so I could see the effect of the changes. But now it works!

Here’s an example of an equation array. Note that you need to use & to insert the required ampersand delimiters.

\begin{eqnarray}<br />
\overset{*}{\triangleright}\!(uvx) & = & \triangleright\!(\overset{*}{\triangleright}\!(uv)x) \\<br />
& = & \triangleright\!(\overset{*}{\triangleright}\!(\overset{*}{\triangleright}\!(u)v)x) \\<br />
& = & \overset{*}{\triangleright}\!(\overset{*}{\triangleright}\!(u)vx)<br />
\end{eqnarray}

[ tex ]\begin{eqnarray}
 \overset{*}{\triangleright}\!(uvx) &amp; = &amp; \triangleright\!(\overset{*}{\triangleright}\!(uv)x) \\
 &amp; = &amp; \triangleright\!(\overset{*}{\triangleright}\!(\overset{*}{\triangleright}\!(u)v)x) \\
 &amp; = &amp; \overset{*}{\triangleright}\!(\overset{*}{\triangleright}\!(u)vx)
 \end{eqnarray}[ /tex ]

So… shouldn’t everyone just install LaTeX by default? Shouldn’t all CMS ship with some math solution? Of course! :-)

  • Share/Bookmark
Tagged with: