September 10, 2008 · all, linux, latex

testing inline LaTeX

Using WordPress 2.6 and wp-latexrender and an installer. Success after jiggling with the paths and editing class.latexrender.php lines 197--224 to replace each instance of '\f' with '\\f'.

For example, line 203 had to be changed from

$string .= "\\newsavebox{\formulabox}\n";

to

$string .= "\\newsavebox{\\formulabox}\n";

This change is apparently only necessary in PHP versions >5.2.5 (thanks to steve at sixthform for figuring that out).

e^{i\pi}+1 =0

ta da!

← All posts