Ticket #1676 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Corrections and enhancements.

Reported by: ofv@wanadoo.es Assigned to: rlotun
Priority: normal Component: TracMathPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

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.

Attachments

tracmath.py (5.2 kB) - added by ofv@wanadoo.es on 06/17/07 17:34:48.
Enhanced version.

Change History

06/17/07 17:34:48 changed by ofv@wanadoo.es

  • attachment tracmath.py added.

Enhanced version.

06/18/07 18:00:30 changed by rlotun

  • status changed from new to closed.
  • resolution set to fixed.

(In [2316]) Contributed some changes and suggestions by ofv@wanadoo.es. Includes: - parsing of trac.ini for [tracmath]

including options for cache_dir, latex_cmd, dvipng_cmd, max_png

- a simple cache manager - unicode won't cause a traceback now

closes #1676


Add/Change #1676 (Corrections and enhancements.)




Change Properties
Action