1 In my [[last post|MathML]] I plugged Jason Blevins' [mdwn_itex
2 plugin][plugin]. It turns out that it was harder than I'd expected to
3 get the plugin working with ikiwiki, so I'm recording the steps I took
4 here in case other ikiwiki users find this useful.
7 * [Install][install_plugin] my updated [[mdwn_itex.pm|mdwn_itex.pm]]
8 plugin ([[mdwn_itex.patch|mdwn_itex.patch]] against Jason's
10 * Patch your ikiwiki [templates][] to use a `DOCTYPE` supporting
11 MathML ([[mdwn_itex-templates.patch|mdwn_itex-templates.patch]]).
12 * Add config options along the lines of:
14 # plugins to add to the default configuration
15 add_plugins => [qw{ ... mdwn_itex ...}],
17 disable_plugins => [qw{... htmlscrubber htmltidy ...}],
19 # location of template files
20 templatedir => '/path/to/patched/templates',
23 # path to the itex2MML binary
24 itex2mml => '/usr/local/bin/itex2MML',
25 # autonumber display equations?
26 itex_num_equations => 1,
28 * Create new files with the `.mdwn_itex` extension, and start
33 \[ e^{i \pi} + 1 = 0 \]
35 has lots of fun constants: $e$, $i$, $\pi$,
36 $1$, and $0$.
42 \[ e^{i \pi} + 1 = 0 \]
44 has lots of fun constants: $e$, $i$, $\pi$, $1$, and $0$.
46 The `htmlscrubber` and `htmltidy` plugins must be disabled because
47 otherwise they [strip out the MathML markup][strip].
49 [plugin]: http://jblevins.org/git/ikiwiki/plugins.git/plain/mdwn_itex.pm
50 [itex2MML]: http://golem.ph.utexas.edu/~distler/blog/itex2MML.html
51 [install_plugin]: http://ikiwiki.info/plugins/install/
52 [templates]: http://ikiwiki.info/templates/
53 [strip]: http://ikiwiki.info/todo/svg/
54 [itex]: http://golem.ph.utexas.edu/~distler/blog/itex2MMLcommands.html
56 [[!tag tags/blogging]]