Whoa, I got LaTeX and Lilypond working in WordPress with FigureRender. Cool stuff!
The only bump in the road was the fact that my host is running PHP4 and FigureRender was written for PHP5. The changes to make it work in PHP4 were pretty trivial, though, so I hacked up a patch. I sent it to the author, but it’s here for anyone else who might need it.
Patching instructions (assuming you have shell access to your host):
- Extract the FigureRender files directory to your WordPress plugin directory and not in a subdirectory. (Only version 1.0 has been tested.)
- Download the patch file to a temporary directory.
- Navigate to your WordPress plugin directory.
- Execute:
patch -Np1 </path/to/figurerender-pfp4.patch
- It should say:
patching file class.figurerender.inc.php patching file wp-figurerender.php
- You then should be able to enable the plugin and configure it without any errors.
One Trackback/Pingback
[…] TeX can be rendered. I stole the idea from fakalin. […]
Post a Comment