Attached is an enhanced version of this interesting plugin. It
contains the following stuff:
- Corrected a bug where dvipng was invoked with imgname instead
of imgpath.
- Added support for configuring parameteres on trac.ini. This
parameterers are supported: cache_dir, latex_cmd and
dvipng_cmd. Example configuration for my windows machine with
MikTex?:
[tracmath]
cache_dir = c:/TEMP
latex_cmd = c:/apps/miktex/miktex/bin/latex.exe
dvipng_cmd = c:/apps/miktex/miktex/bin/dvipng.exe
- Images are centered vertically.
- Support for writing latex math in the usual way, i.e.: {{{$\pi
\over 2 $}}} (Please observe the space before the closing $.) This
feature is a bit controversial. It remains to be seen the
implications of using the dollar sign for as a delimiter. This
feature can be easily removed by deleting the IWikiSyntaxProvider
methods.
TODO:
- Sanity checking for trac.ini parameters.
- trac.ini entries for parameters for dvipng and latex.
- Some system for deleting old entries on the cache.
- Support for international characters withing Latex text. Right now,
writing something like [[latex($รก$)]] produces a traceback.